[Bug c/40907] -O2 generates incorrect code on i386

sperber at deinprogramm dot de gcc-bugzilla@gcc.gnu.org
Wed Jul 29 17:37:00 GMT 2009



------- Comment #1 from sperber at deinprogramm dot de  2009-07-29 17:37 -------
Created an attachment (id=18271)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18271&action=view)
preprocessed source file

gcc -v output:

kramer[420] gcc -v -save-temps -c  -DHAVE_CONFIG_H
-D__COMPILING_SCHEME48_ITSELF__
-DS48_HOST_ARCHITECTURE=\"i386-unknown-freebsd7.2\" -I ./c -I../s48/c
-I../s48/c/net -I../s48/c/bibop -g -O2 -pthread -o c/scheme48vm-32.o
../s48/c/scheme48vm-32.c
Using built-in specs.
Target: i386-unknown-freebsd7.2
Configured with: ./configure
--prefix=/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723
--with-gmp=/afs/informatik.uni-tuebingen.de/i386_fbsd70
--with-mpfr=/afs/informatik.uni-tuebingen.de/i386_fbsd72
Thread model: posix
gcc version 4.5.0 20090723 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-DHAVE_CONFIG_H'
'-D__COMPILING_SCHEME48_ITSELF__'
'-DS48_HOST_ARCHITECTURE="i386-unknown-freebsd7.2"' '-I' './c' '-I../s48/c'
'-I../s48/c/net' '-I../s48/c/bibop' '-g' '-O2' '-pthread' '-o'
'c/scheme48vm-32.o' '-mtune=i386'

/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/libexec/gcc/i386-unknown-freebsd7.2/4.5.0/cc1
-E -quiet -v -I ./c -I../s48/c -I../s48/c/net -I../s48/c/bibop -DHAVE_CONFIG_H
-D__COMPILING_SCHEME48_ITSELF__
-DS48_HOST_ARCHITECTURE="i386-unknown-freebsd7.2" ../s48/c/scheme48vm-32.c
-mtune=i386 -g -fworking-directory -O2 -fpch-preprocess -o scheme48vm-32.i
ignoring nonexistent directory
"/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/4.5.0/../../../../i386-unknown-freebsd7.2/include"
#include "..." search starts here:
#include <...> search starts here:
 ./c
 ../s48/c
 ../s48/c/net
 ../s48/c/bibop
 /usr/local/include
 /afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/include

/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/4.5.0/include

/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/4.5.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-DHAVE_CONFIG_H'
'-D__COMPILING_SCHEME48_ITSELF__'
'-DS48_HOST_ARCHITECTURE="i386-unknown-freebsd7.2"' '-I' './c' '-I../s48/c'
'-I../s48/c/net' '-I../s48/c/bibop' '-g' '-O2' '-pthread' '-o'
'c/scheme48vm-32.o' '-mtune=i386'

/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/libexec/gcc/i386-unknown-freebsd7.2/4.5.0/cc1
-fpreprocessed scheme48vm-32.i -quiet -dumpbase scheme48vm-32.c -mtune=i386
-auxbase-strip c/scheme48vm-32.o -g -O2 -version -o scheme48vm-32.s
GNU C (GCC) version 4.5.0 20090723 (experimental) (i386-unknown-freebsd7.2)
        compiled by GNU C version 4.5.0 20090723 (experimental), GMP version
4.2.4, MPFR version 2.4.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C (GCC) version 4.5.0 20090723 (experimental) (i386-unknown-freebsd7.2)
        compiled by GNU C version 4.5.0 20090723 (experimental), GMP version
4.2.4, MPFR version 2.4.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 2ffc104588e5268bc0421635a8aaa323
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-DHAVE_CONFIG_H'
'-D__COMPILING_SCHEME48_ITSELF__'
'-DS48_HOST_ARCHITECTURE="i386-unknown-freebsd7.2"' '-I' './c' '-I../s48/c'
'-I../s48/c/net' '-I../s48/c/bibop' '-g' '-O2' '-pthread' '-o'
'c/scheme48vm-32.o' '-mtune=i386'
 as -o c/scheme48vm-32.o scheme48vm-32.s
COMPILER_PATH=/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/libexec/gcc/i386-unknown-freebsd7.2/4.5.0/:/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/libexec/gcc/i386-unknown-freebsd7.2/4.5.0/:/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/libexec/gcc/i386-unknown-freebsd7.2/:/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/4.5.0/:/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/
LIBRARY_PATH=/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/4.5.0/:/afs/informatik.uni-tuebingen.de/i386_fbsd72/gcc-4.5-20090723/lib/gcc/i386-unknown-freebsd7.2/4.5.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-DHAVE_CONFIG_H'
'-D__COMPILING_SCHEME48_ITSELF__'
'-DS48_HOST_ARCHITECTURE="i386-unknown-freebsd7.2"' '-I' './c' '-I../s48/c'
'-I../s48/c/net' '-I../s48/c/bibop' '-g' '-O2' '-pthread' '-o'
'c/scheme48vm-32.o' '-mtune=i386'


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40907



More information about the Gcc-bugs mailing list