This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: EGCS 1.1.1 bug with -g
- To: rose at acm dot org, vonbrand at sleipnir dot valparaiso dot cl
- Subject: Re: EGCS 1.1.1 bug with -g
- From: Ken Rose <rose at netcom dot com>
- Date: Thu, 25 Feb 1999 10:42:48 -0800 (PST)
- Cc: egcs-bugs at cygnus dot com
Horst von Brand wrote:
>Ken Rose <rose@acm.org> said:
>> If the -g is omitted, compilation is successful. The source is:
>
>Strange. Neither egcs-2.91.60 nor 2.91.61 (1.1.1 and 1.1.2-pre1) give any
>trouble, egcs-19990221 also compiles this fine. Are you sure that DATA or
>LIST aren't #defined elsewhere? OTOH, yours is a cross compiler to COFF.
The compilation is right out of the box, no modifications. Run under gdb,
it gives the following message:
(gdb) run
Starting program: /home/kenr/egcs-1.1.1/gcc/cc1plus foobar.ii -quiet -dumpbase foobar.cc -g -version -o foobar.s
GNU C++ version egcs-2.91.60 19981201 (egcs-1.1.1 release) (i386-coff) compiled by GNU C version 2.7.2.3.
Program received signal SIGSEGV, Segmentation fault.
0x80ff2c3 in sdbout_one_type (type=0x8212008) at sdbout.c:1251
1251 if (TREE_CODE (tem) == FIELD_DECL
(gdb)
so it may be related to the use of SDB debugging, rather than stabs or
some other.
- ken