This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Strange bug in GCC 2.95.2 (Linux/I386/Suse7.0
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Strange bug in GCC 2.95.2 (Linux/I386/Suse7.0
- From: Laurent dot Kersten at alcatel dot be
- Date: Wed, 14 Feb 2001 14:20:07 +0100
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