Strange bug in GCC 2.95.2 (Linux/I386/Suse7.0
Laurent.Kersten@alcatel.be
Laurent.Kersten@alcatel.be
Wed Feb 14 05:22:00 GMT 2001
I discover a silly bug in GCC that seems to produce incorrect assembly !
Here is a test example :
char *my_string="\x45\x00\x90";
Produce -> (gcc -S)
.file "x.c"
.version "01.01"
gcc2_compiled.:
.globl my_string
.section .rodata
.LC0:
.string "E"
.string "\220"
.data
.align 4
.type my_string,@object
.size my_string,4
my_string:
.long .LC0
.ident "GCC: (GNU) 2.95.2 19991024 (release)"
Obvously my second character has vanished !
a print of the second character give me a 'F' Char !!!!
Is there a way to avoid the problem ?
Laurent
More information about the Gcc-bugs
mailing list