This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C Parser Cleanup
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: C Parser Cleanup
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 10 May 2001 19:04:04 +0200
- Cc: gcc-patches at gcc dot gnu dot org, "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <20010510063911.A16312@daikokuya.demon.co.uk>
Neil Booth <neil@daikokuya.demon.co.uk> writes:
| +/* Return the address of a LABEL as a pointer. */
| +tree
| +label_pointer (name)
| + tree name;
| +{
| + tree label, result;
| +
| + if (pedantic)
| + pedwarn ("ISO C forbids `&&'");
Since the C++ front-end uses bits from the C front-end, this type of
diagnostic should test for the front-end used --- yes, you just moved
but it is appropriate to improve it because now it is exported and
not embedded in the parser.