AW: gcc 3.3 / i386 / -O2 question

Luca Benini lbenini@csr.unibo.it
Tue Nov 16 15:55:00 GMT 2004


Beschorner Daniel wrote:
lbenini@neuromancer:~$ gcc -O3 test.c
lbenini@neuromancer:~$ ./a.out
-1343238496
lbenini@neuromancer:~$ gcc -O0 test.c
lbenini@neuromancer:~$ ./a.out
-1343238496
lbenini@neuromancer:~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --disable-checking 
--with-gnu-ld --verbose --target=i486-slackware-linux 
--host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
lbenini@neuromancer:~$ gcc test.s
lbenini@neuromancer:~$ ./a.out
-1474736480

Unable to repeate your problem, with 3.3.4 test.c (see your previuos 
mail) work fine in -O0/-O1/-O2/-O3
your compiler installations has passed check?

Luca Benini



More information about the Gcc mailing list