[Bug middle-end/35295] 64-bit host cross compile to 32-bit target differs from 32-bit host cross compile to 32-bit target

benny at ammitzboell-consult dot dk gcc-bugzilla@gcc.gnu.org
Mon Feb 25 14:27:00 GMT 2008



------- Comment #8 from benny at ammitzboell-consult dot dk  2008-02-25 14:27 -------
Added test program and RTL output from 32-bit host and 64-bit host. Note the
difference in the const_int lines:

bla@bla-desktop:~/src/kuss$ diff /home/bla/Desktop/main.c.01.rtl
/home/bla/Desktop/main.c.01.rtl_64
7c7
<                 (const_int -4 [0xfffffffc])) [0 a+0 S4 A32])
---
>                 (const_int -4 [0xfffffffffffffffc])) [0 a+0 S4 A32])
15c15
< (note 6 5 7 0xf7eeb190 NOTE_INSN_BLOCK_BEG)
---
> (note 6 5 7 0x2ac25dcd19b0 NOTE_INSN_BLOCK_BEG)
29c29
<                 (const_int -4 [0xfffffffc])) [0 a+0 S4 A32])) -1 (nil)
---
>                 (const_int -4 [0xfffffffffffffffc])) [0 a+0 S4 A32])) -1 (nil)
39c39
<     (expr_list:REG_EH_REGION (const_int -1 [0xffffffff])
---
>     (expr_list:REG_EH_REGION (const_int -1 [0xffffffffffffffff])
49c49
<                         (const_int -4 [0xfffffffc])) [0 a+0 S4 A32]))
---
>                         (const_int -4 [0xfffffffffffffffc])) [0 a+0 S4 A32]))
54c54
<                 (const_int -4 [0xfffffffc])) [0 a+0 S4 A32])) -1 (nil)
---
>                 (const_int -4 [0xfffffffffffffffc])) [0 a+0 S4 A32])) -1 (nil)
107c107
< (note 32 31 33 0xf7eeb190 NOTE_INSN_BLOCK_END)
---
> (note 32 31 33 0x2ac25dcd19b0 NOTE_INSN_BLOCK_END)
125d124
<


Output from 64-bit host arm-gcc -v:

Reading specs from /arm-gcc-3/bin/../lib/gcc/arm-uclinux-elf/3.4.6/specs
Configured with: /arm-gcc3-source/build_arm-uclinux/gcc-3.4.6/configure 
--enable-languages=c --disable-libmudflap --disable-nls 
--enable-long-long --target=arm-uclinux-elf --prefix=/arm-gcc-3/ : 
(reconfigured) /arm-gcc3-source/build_arm-uclinux/gcc-3.4.6/configure 
--target=arm-uclinux-elf --prefix=/arm-gcc-3/ --enable-languages=c,c++ 
--enable-multilib --enable-target-optspace --with-gnu-ld --disable-nls 
--disable-__cxa_atexit --enable-threads=posix --disable-clocale 
--enable-long-long --disable-libstdcxx-pch --disable-checking
Thread model: posix
gcc version 3.4.6


Output from 32-bit host arm-gcc -v:

Reading specs from /arm-gcc-3/bin/../lib/gcc/arm-uclinux-elf/3.4.6/specs
Configured with: /arm-gcc3-source/build_arm-uclinux/gcc-3.4.6/configure 
--enable-languages=c --disable-libmudflap --disable-nls 
--enable-long-long --target=arm-uclinux-elf --host=i686-pc-linux-gnu 
--prefix=/arm-gcc-3/ : (reconfigured) 
/arm-gcc3-source/build_arm-uclinux/gcc-3.4.6/configure 
--target=arm-uclinux-elf --prefix=/arm-gcc-3/ --enable-languages=c,c++ 
--enable-multilib --enable-target-optspace --with-gnu-ld --disable-nls 
--disable-__cxa_atexit --enable-threads=posix --disable-clocale 
--enable-long-long --disable-libstdcxx-pch --disable-checking 
--host=i686-pc-linux-gnu
Thread model: posix
gcc version 3.4.6


-- 


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



More information about the Gcc-bugs mailing list