This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/7022: #line in .i files is broken in gcc 3.1
- From: neil at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ted at arraycomm dot com
- Date: 13 Jun 2002 20:29:30 -0000
- Subject: Re: preprocessor/7022: #line in .i files is broken in gcc 3.1
- Reply-to: neil at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, ted at arraycomm dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: #line in .i files is broken in gcc 3.1
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Thu Jun 13 13:29:29 2002
State-Changed-Why:
This is intentional: -fpreprocessed only expects to see what can appear in a preprocessed file. In particular, it doesn't expand macros, and #line expects macros to expand.
Please change your tool to do the # markers; they work on all versions of GCC.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7022