cpphash.h (struct spec_nodes): Add n_true and n_false.
authorZack Weinberg <zack@wolery.stanford.edu>
Wed, 7 Feb 2001 18:32:42 +0000 (18:32 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 7 Feb 2001 18:32:42 +0000 (18:32 +0000)
commit7d4918a2d96f1512bd71b00d1deae61fbd4a6ab9
treec4639b8fbbd99fcc0eb642f020f8787aad421122
parent7acfb19e402f6ec59f2efc0f8fe6d462615f6b5d
cpphash.h (struct spec_nodes): Add n_true and n_false.

* cpphash.h (struct spec_nodes): Add n_true and n_false.
* cppinit.c (cpp_create_reader): Initialize them.
(append_include_chain): cxx_aware arg might be unused.
* cppexp.c (lex): In C++ mode, recognize 'true' and 'false'
keywords and give them their phase 7 meaning.  Pedwarn about
this unless '__bool_true_false_are_defined' is defined.

* g++.dg/stdbool-if.C: New test.

From-SVN: r39523
gcc/ChangeLog
gcc/cppexp.c
gcc/cppinit.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/stdbool-if.C [new file with mode: 0644]