This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/13046] [3.3/3.4 Regression] -traditional-cpp rejects valid code
- From: "janis187 at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2003 23:14:15 -0000
- Subject: [Bug preprocessor/13046] [3.3/3.4 Regression] -traditional-cpp rejects valid code
- References: <20031114031823.13046.n8gray@caltech.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From janis187 at us dot ibm dot com 2003-12-08 23:14 -------
The regression in PR 13046 was introduced or exposed with this patch:
2002-06-28 Neil Booth <neil@daikokuya.co.uk>
PR preprocessor/7138
* cpplib.c (_cpp_handle_directive): Do traditional
preparation after setting state.angled_headers.
* cpptrad.c (scan_out_logical_line): Fix potential
quote bug.
The regression hunt took place on i686-pc-linux-gnu using the small
test case from comment #2, but is confirmed with the original test
case whose output before the patch (blank lines removed) is:
# 1 "13046_orig.c"
# 1 "<built-in>"
# 1 "<command line>"# 1 "<built-in>"
# 1 "<command line>"
# 1 "13046_orig.c"
13046_orig.c:2: warning: #warning Defining two-argument macros
and right after the patch is:
# 1 "13046_orig.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "13046_orig.c"
13046_orig.c:2: warning: #warning Defining two-argument macros
13046_orig.c:7: macro "btodb" requires 2 arguments, but only 1 given
13046_orig.c:8: macro "dbtob" requires 2 arguments, but only 1 given
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |neil at daikokuya dot co dot
| |uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13046