This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

target/5672: Compiler segmentation fault in static initialiser.



>Number:         5672
>Category:       target
>Synopsis:       Compiler segmentation fault in static initialiser.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 12 10:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Neil Turton
>Release:        gcc version 3.1 20020212 (experimental)
>Organization:
>Environment:
i686-pc-linux-gnu
Red Hat 6.2
Linux 2.2.14-5.0smp
libc 2.1.3
Pentium III 800Mhz
>Description:
When the following code is compiled for the mn10200
target, the compiler reports a segmentation fault.

The configuration is:
../gcc/configure --with-gcc-version-trigger=/home/nturton/galileo/mn10200-gcc/gcc/gcc/version.c --host=i686-pc-linux-gnu --target=mn10200-elf --with-as=/bin/false --with-ld=/bin/false --enable-maintainer-mode --disable-nls --enable-languages=c --norecursion 

bash$ ./build/gcc/cc1 test/foo.c -o /dev/null -v
GNU CPP version 3.1 20020212 (experimental) (cpplib) (MN10200)
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/mn10200-elf/3.1/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/mn10200-elf/3.1/../../../../mn10200-elf/sys-include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/mn10200-elf/3.1/../../../../mn10200-elf/include"
#include "..." search starts here:
End of search list.
test/foo.c:3: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
typedef unsigned long addr_t;
int x[2];
addr_t fatal = (addr_t)&x+4;
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]