From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6215 invoked by alias); 25 Feb 2008 14:27:44 -0000 Received: (qmail 6057 invoked by uid 48); 25 Feb 2008 14:27:01 -0000 Date: Mon, 25 Feb 2008 14:27:00 -0000 Message-ID: <20080225142701.6056.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/35295] 64-bit host cross compile to 32-bit target differs from 32-bit host cross compile to 32-bit target In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "benny at ammitzboell-consult dot dk" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg02665.txt.bz2 ------- 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