[Bug c/14470] x86 optimizer error (?)
lvoge at cs dot vu dot nl
gcc-bugzilla@gcc.gnu.org
Sun Mar 7 22:43:00 GMT 2004
------- Additional Comments From lvoge at cs dot vu dot nl 2004-03-07 22:43 -------
(In reply to comment #2)
> I can't reproduce this. Can you post the exact compile line and the output
> of what gcc -v says?
strange that you can't reproduce. I tried it on my own system, FreeBSD 5.2.1 and
the system I initially ran into it, which is RedHat 6 on gcc 3.2.2. this is gcc
-v on my system:
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian)
and I compile with:
$ gcc -o fout fout.c -O
$ ./fout
Segmentation fault
the problem seems this:
movl -504(%ebp), %eax
incl -504(%ebp,%eax,4)
move t[0] into d, use d to index the increment.
but just so I know, even though this construct could perhaps be written more
clearly, this should theoretically work, right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14470
More information about the Gcc-bugs
mailing list