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]

x86-arm bug in 20000501 snapshot


GCC Version:
Host=i586-pc-cygwin32
Target=arm-elf
Version=20000501 snapshot

Problem:
Compiler places const structures into .bss section when compiling
with -fdata-sections

Example:

const int ix = 5;

typedef struct M {
  int cc;
} MM;
const MM __hc = {
  5
};

output from compiling with -c -save-temps -mcpu=arm7di -fdata-sections :

@ Generated by gcc 2.96 20000501 (experimental) for ARM/elf
 .file "hi.c"
.gcc2_compiled.:
 .global ix
 .section .rodata.ix,"a"
 .align 2
 .type  ix,object
 .size  ix,4
ix:
 .word 5
 .global __hc
 .section .bss.__hc,"a"
 .align 2
 .type  __hc,object
 .size  __hc,4
__hc:
 .word 5




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