This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/12935] [3.3/3.4 regression] ICE with: -traditional -E and varargs
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2003 01:45:36 -0000
- Subject: [Bug preprocessor/12935] [3.3/3.4 regression] ICE with: -traditional -E and varargs
- References: <20031107015016.12935.frahm@irsamc.ups-tlse.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dhazeghi at yahoo dot com 2003-12-11 01:45 -------
Here's the reduced testcase:
#define hidden_proto(name, attrs...);
with gcc 3.3, 3.3 branch and current mainline, compiling with -traditional -E yields:
bash-2.05b$ gcc -traditional -E foo.c
# 1 "<built-in>"
# 1 "<command line>"
# 1 "foo.c"
foo.c:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Works fine with gcc 3.2.3 making it a regression. Neil, could you take a look?
Under gdb:
Program received signal SIGSEGV, Segmentation fault.
0x0809b3de in _cpp_create_definition (pfile=0x8434800, node=0x4006734c)
at ../../gcc-3.4-20031203/gcc/cppmacro.c:1517
1517 ../../gcc-3.4-20031203/gcc/cppmacro.c: No such file or directory.
in ../../gcc-3.4-20031203/gcc/cppmacro.c
(gdb) bt
#0 0x0809b3de in _cpp_create_definition (pfile=0x8434800, node=0x4006734c)
at ../../gcc-3.4-20031203/gcc/cppmacro.c:1517
#1 0x080963cb in do_define (pfile=0x8434800)
at ../../gcc-3.4-20031203/gcc/cpplib.c:511
#2 0x08096109 in _cpp_handle_directive (pfile=0x8434800, indented=0)
at ../../gcc-3.4-20031203/gcc/cpplib.c:421
#3 0x0809f33e in _cpp_scan_out_logical_line (pfile=0x8434800, macro=0x0)
at ../../gcc-3.4-20031203/gcc/cpptrad.c:629
#4 0x0809f03d in _cpp_read_logical_line_trad (pfile=0x8434800)
at ../../gcc-3.4-20031203/gcc/cpptrad.c:304
#5 0x08091e45 in scan_translation_unit_trad (pfile=0x8434800)
at ../../gcc-3.4-20031203/gcc/c-ppoutput.c:187
#6 0x08091bf7 in preprocess_file (pfile=0x8434800)
at ../../gcc-3.4-20031203/gcc/c-ppoutput.c:75
#7 0x0808aa0a in c_common_init () at ../../gcc-3.4-20031203/gcc/c-opts.c:1187
#8 0x08093e2e in c_objc_common_init ()
at ../../gcc-3.4-20031203/gcc/c-objc-common.c:165
#9 0x08264002 in lang_dependent_init (name=0xbffffbb8 "foo.c")
at ../../gcc-3.4-20031203/gcc/toplev.c:4470
#10 0x08264217 in do_compile () at ../../gcc-3.4-20031203/gcc/toplev.c:4581
#11 0x08264305 in toplev_main (argc=6, argv=0xbfffeea4)
at ../../gcc-3.4-20031203/gcc/toplev.c:4630
#12 0x080a42d3 in main (argc=6, argv=0xbfffeea4)
at ../../gcc-3.4-20031203/gcc/main.c:35
#13 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |neil at daikokuya dot co dot
| |uk
Severity|normal |critical
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-12-11 01:45:35
date| |
Summary|internal compiler error |[3.3/3.4 regression] ICE
|with: -traditional -E and |with: -traditional -E and
|compiling sscanf.c from |varargs
|glibc-2.3.2 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12935