[Bug inline-asm/37195] different variables get the same memory address in inline assembly

jdemeyer at cage dot ugent dot be gcc-bugzilla@gcc.gnu.org
Wed Sep 3 07:59:00 GMT 2008



------- Comment #4 from jdemeyer at cage dot ugent dot be  2008-09-03 07:57 -------
Created an attachment (id=16200)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16200&action=view)
Testcase for powerpc-unknown-linux-gnu

Also fails on powerpc:
$ gcc -O1 test37195-powerpc.i -save-temps -c -o test37195-powerpc.o
test37195-powerpc.s: Assembler messages:
test37195-powerpc.s:119: Error: ASM 2: %1 and %5 are both equal to 16(1)
test37195-powerpc.s:192: Error: ASM 3: %2 and %5 are both equal to 16(1)

$ gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.2.4/work/gcc-4.2.4/configure
--prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.2.4
--includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.4/include
--datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.2.4
--mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.2.4/man
--infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.2.4/info
--with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.4/include/g++-v4
--host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu
--enable-altivec --enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --enable-secureplt --disable-multilib
--enable-libmudflap --disable-libssp --disable-libgcj
--enable-languages=c,c++,treelang,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.2.4 (Gentoo 4.2.4 p1.0)


-- 


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



More information about the Gcc-bugs mailing list