diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-04-19 10:04:47 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-04-19 10:04:47 +0000 |
commit | 4e1f0f8e1fee97fc492f6204c02447a29673a954 (patch) | |
tree | 95f32f4463e62cdb21c1f10503cffc8f1bba5e93 /gcc/cppexp.c | |
parent | bf805def610dbb7c1d685ea1f5696ad503aff7aa (diff) | |
download | gcc-4e1f0f8e1fee97fc492f6204c02447a29673a954.zip gcc-4e1f0f8e1fee97fc492f6204c02447a29673a954.tar.gz gcc-4e1f0f8e1fee97fc492f6204c02447a29673a954.tar.bz2 |
cppexp.c (eval_token): Permit true and false even if pedantic.
* cppexp.c (eval_token): Permit true and false even if pedantic.
testsuite:
* gcc.dg/cpp/truefalse.cpp: New test.
* gcc.dg/cpp/cpp.exp: Update.
From-SVN: r65811
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 59a08e9..9ab7b5f 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -590,14 +590,6 @@ eval_token (pfile, token) { result.high = 0; result.low = (token->val.node == pfile->spec_nodes.n_true); - - /* Warn about use of true or false in #if when pedantic - and stdbool.h has not been included. */ - if (CPP_PEDANTIC (pfile) - && ! cpp_defined (pfile, DSC("__bool_true_false_are_defined"))) - cpp_error (pfile, DL_PEDWARN, - "ISO C++ does not permit \"%s\" in #if", - NODE_NAME (token->val.node)); } else { |