This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Strange bug in GCC 2.95.2 (Linux/I386/Suse7.0




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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]