This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/21250] [4.1 Regression] line number 0 for <built-in> causes GAS to complain
- From: "ppluzhnikov at charter dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Sep 2005 23:31:24 -0000
- Subject: [Bug preprocessor/21250] [4.1 Regression] line number 0 for <built-in> causes GAS to complain
- References: <20050427133010.21250.segher@kernel.crashing.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ppluzhnikov at charter dot net 2005-09-15 23:31 -------
The line '#0 <built-in>' causes trouble for other tools that work with
the output from 'gcc -E'; e.g. edgcpfe refuses to parse it:
$ gcc -E - < /dev/null > junk.i && edgcpfe --c junk.i
"<stdin>", line 1: error: invalid line number
# 0 "<built-in>"
^
1 error detected in the compilation of "junk.i".
What is the problem of emitting '#1 <built-in>' anyway?
Since neither corresponds to a "real" line number, it's not clear what
advantage '#0' has, especially if it is to be suppressed in the output.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at charter dot
| |net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21250