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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- Comment #3 from benny at ammitzboell-consult dot dk  2008-02-25 14:09 
---
Created an attachment (id=15224)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15224action=view)
Test program


-- 


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



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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- Comment #4 from benny at ammitzboell-consult dot dk  2008-02-25 14:13 
---
Created an attachment (id=15225)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15225action=view)
Output from arm-gcc -c -dr main.c (32-bit host)


-- 


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



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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- Comment #5 from benny at ammitzboell-consult dot dk  2008-02-25 14:14 
---
Created an attachment (id=15226)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15226action=view)
Output from arm-gcc -c -dM main.c (32-bit host)


-- 


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



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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- Comment #6 from benny at ammitzboell-consult dot dk  2008-02-25 14:21 
---
Created an attachment (id=15227)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15227action=view)
Output from arm-gcc -c -dr main.c (64-bit host)


-- 


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



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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- Comment #7 from benny at ammitzboell-consult dot dk  2008-02-25 14:22 
---
Created an attachment (id=15228)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15228action=view)
Output from arm-gcc -c -dM main.c (64-bit host)


-- 


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



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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- 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:

[EMAIL PROTECTED]:~/src/kuss$ diff /home/bla/Desktop/main.c.01.rtl
/home/bla/Desktop/main.c.01.rtl_64
7c7
 (const_int -4 [0xfffc])) [0 a+0 S4 A32])
---
 (const_int -4 [0xfffc])) [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 [0xfffc])) [0 a+0 S4 A32])) -1 (nil)
---
 (const_int -4 [0xfffc])) [0 a+0 S4 A32])) -1 (nil)
39c39
 (expr_list:REG_EH_REGION (const_int -1 [0x])
---
 (expr_list:REG_EH_REGION (const_int -1 [0x])
49c49
 (const_int -4 [0xfffc])) [0 a+0 S4 A32]))
---
 (const_int -4 [0xfffc])) [0 a+0 S4 A32]))
54c54
 (const_int -4 [0xfffc])) [0 a+0 S4 A32])) -1 (nil)
---
 (const_int -4 [0xfffc])) [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



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

2008-02-25 Thread benny at ammitzboell-consult dot dk


--- Comment #9 from benny at ammitzboell-consult dot dk  2008-02-25 14:31 
---
(In reply to comment #2)
 As when you say bigger do you mean the assembly is different sizes?  Or do you
 mean the actually text/data sections are bigger in the object file?
 

The assembly is bigger on the 64-bit host. Because the 64-bit constants get
treated as such and generates more assembler.


-- 


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



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

2008-02-22 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2008-02-22 17:58 ---
As when you say bigger do you mean the assembly is different sizes?  Or do you
mean the actually text/data sections are bigger in the object file?


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

  Component|c   |middle-end


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