coff: Alignment not a power of 2

Emmanuel Blot emmanuel.blot@ireland.sun.com
Tue Nov 14 04:42:00 GMT 2000


Hi,

It seems that this problem has already been reported, but may be not with this target.
I've tried to compile GCC on a PC, for the target i686-pc-coff.

I always get the same error:
Error: Alignment not a power of 2
for the file libgcc2.c (but also for other files)

The machine is a PIII, 128MB RAM.
I've tried to compile both from Linux 2.2.14 and from NT/Cygwin 1.1.4 and  I get the same problem. I use no specific option, thus
the configure script uses "-O2 -g" flags
It seems that is linked to the 'coff' object format, but I don't know why

The alignment is defined by the compiler to odd values: .align 3, .align 5, depending on the source file that is compiled. Please
find the .s file produced by the xgcc compiler.

eblot@ouessant:~/tmp/gcc-20001106/build/gcc > sudo
/home/eblot/tmp/gcc-20001106/build/gcc/xgcc -B/home/eblot/tmp/gcc-20001106/build/gcc/ -B/usr/local/i686-pc-coff/i686-pc-coff/bin/ -B
/usr/local/i686-pc-coff/i686-pc-coff/lib/ -isystem
/usr/local/i686-pc-coff/i686-pc-coff/include -O2  -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing
-prototypes -isystem
./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include 
 -DL_clz -c ../../gcc/libgcc2.c -o libgcc/./_clz.o -save-temps
libgcc2.s: Assembler messages:
libgcc2.s:435: Error: Alignment not a power of 2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgcc2.s
Type: text/x-asm
Size: 26836 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001114/95dbfc6e/attachment.bin>


More information about the Gcc-bugs mailing list