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]
Other format: [Raw text]

[Bug c/12188] null char array initializer skipped


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12188



------- Additional Comments From pat at outerreaches dot com  2003-09-06 05:47 -------
Well it appears this has/had something to do with alignment. For awhile it was 
skipping the first initializer constant (didn't have to be a null). Now I've 
changed some things, and the problem is gone. I think the array was aligned at 
an odd address when the problem was there, now it's even-aligned and I can't 
get it back to odd alignment. Maybe a linker problem? Anyway seems unlikely 
you'll be able to reproduce this problem.

Also I guess my version is actually 3.0.4 (although see "compiled by..." line 
below). Here is -v output:
Reading specs from C:\USR\BIN\..\lib\gcc-lib\m6811-elf\3.0.4\specs
Configured with: ./configure --target=m6811-elf --program-prefix=m6811-elf- --
host=i586-mingw32msvc --build=i686-pc-linux-gnu --enable-languages=c,c++ --
prefix=\usr
Thread model: single
gcc version 3.0.4 m68hc1x-20030430
 C:\USR\BIN\..\lib\gcc-lib\m6811-elf\3.0.4\cc1.exe -lang-c -v -I. -iprefix 
C:\USR\BIN\..\lib/gcc-lib/m6811-elf\3.0.4\ -D__GNUC__=3 -D__GNUC_MINOR__=0 -
D__GNUC_PATCHLEVEL__=4 -Dmc68hc1x -D__mc68hc1x__ -D__mc68hc1x -
D__CHAR_UNSIGNED__ -D__OPTIMIZE_SIZE__ -D__OPTIMIZE__ -D__STDC_HOSTED__=1 -
Wall -D__HAVE_SHORT_INT__ -D__INT__=16 -D__INT_MAX__=32767 -Dmc6812 -DMC6812 -
Dmc68hc12 -D__HAVE_SHORT_DOUBLE__ serial.c -quiet -dumpbase serial.c -m68hc12 -
mshort -g -Os -Wall -version -fshort-double -o C:\WINDOWS.000\TEMP\ccjDKggb.s
GNU CPP version 3.0.4 m68hc1x-20030430 (cpplib) (MC68HC11/MC68HC12/MC68HCS12)
GNU C version 3.0.4 m68hc1x-20030430 (m6811-elf)
	compiled by GNU C version 2.95.3-7 (mingw experimental).
ignoring nonexistent directory "C:/USR/m6811-elf/sys-include"
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory "/usr/m6811-elf/sys-include"
#include "..." search starts here:
#include <...> search starts here:
 .
 C:/USR/lib/gcc-lib/m6811-elf/3.0.4/include
 C:/USR/m6811-elf/include
 /usr/lib/gcc-lib/m6811-elf/3.0.4/include
 /usr/m6811-elf/include
End of search list.
 C:\USR\BIN\..\lib\gcc-lib\m6811-elf\3.0.4\..\..\..\..\m6811-elf\bin\as.exe -
m68hc12 -mshort -mshort-double -o serial.o C:\WINDOWS.000\TEMP\ccjDKggb.s


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