O3 bug on IRIX (20001024)
jarausch@igpm.rwth-aachen.de
jarausch@igpm.rwth-aachen.de
Mon Oct 30 01:28:00 GMT 2000
Hi,
compiling current gdb-cvs sources
I get a floating point error(!) within the compiler
if I compile the file tracepoint.c with -O3
I have attached the fully preprocessed tracepoint.c
gcc -v gives
Reading specs from /usr/LOCAL/lib/gcc-lib/mips-sgi-irix6.5/2.97/specs
Configured with: --with-gcc-version-trigger=/usr/people/jarausch/ZIP/EGCS/gcc-cvs/gcc/version.c --host=mips-sgi-irix6.5 --prefix=/usr/LOCAL --with-local-prefix=/usr/LOCAL --enable-haifa --enable-cpp --enable-c-cpplib --norecursion
gcc version 2.97 20001024 (experimental)
Invocation and error message:
gcc -c -O3 -I. -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/config -DHAVE_CONFIG_H -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/../include/opcode -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/../readline/.. -I../bfd -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/../bfd -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/../include -I../intl -I/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/../intl -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized /usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c
/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c: In function `map_args_over_tracepoints':
/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c:597: warning: `tpnum' might be used uninitialized in this function
/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c: In function `trace_pass_command':
/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c:597: warning: `tpnum' might be used uninitialized in this function
/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c: In function `stringify_collection_list':
/usr/people/jarausch/ZIP/GNU/gdb-cvs/gdb/tracepoint.c:1442: Internal error: Floating point exception.
Please submit a full bug report.
Reducing the optimization to -O seems to work fine.
Thanks for looking into it.
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tracepoint.c.bz2
Type: application/x-bzip2
Size: 52924 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001030/62a39d39/attachment.bz2>
More information about the Gcc-bugs
mailing list