This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12891] New: Using -imacros causes compiler to segfault.
- From: "jbailey at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2003 21:49:21 -0000
- Subject: [Bug c/12891] New: Using -imacros causes compiler to segfault.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12891
Summary: Using -imacros causes compiler to segfault.
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jbailey at gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: ia64-linux
GCC host triplet: ia64-linux
GCC target triplet: ia64-linux
Using -imacros causes cc1 to segfault. Sorry there isn't a patch associated
with this - I'm behind on some other stuff and don't have time. If noone looks
at this in the next couple of weeks, I'll do it then. I'm using CVS from
November 03, 2003.
Here's my testcase:
$ cat a.h
#define IOO_IMPORTS import "priv.h";
$ cat a.c
#ifdef IO_IMPORTS
IO_IMPORTS
#endif
$ build.gcc/gcc/cc1 -E -imacros a.h a.c
# 1 "<built-in>"
# 1 "<command line>"
# 1 "./a.h" 1
# 2 "<command line>" 2
# 1 "a.c"
a.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.
Tks,
Jeff Bailey