This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/36722] New: ICE with inline asm in 64bit mode because of type size
- From: "adam at os dot inf dot tu-dresden dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2008 18:53:30 -0000
- Subject: [Bug inline-asm/36722] New: ICE with inline asm in 64bit mode because of type size
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code:
void x(void);
void x(void)
{
unsigned a, b;
asm volatile ("" : "=rax" (a), "=rcx" (b) : "0" ((unsigned long) 0x0));
}
compiled with gcc-4.3 -m64 -O -c x.i
emits:
x.i: In function ?x?:
x.i:7: internal compiler error: in inline_secondary_memory_needed, at
config/i386/i386.c:21770
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
Omitting -O compiles the file.
Making a and b unsigned longs also fixes it.
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.1-2'
--with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.1 (Debian 4.3.1-2)
--
Summary: ICE with inline asm in 64bit mode because of type size
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: adam at os dot inf dot tu-dresden dot de
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36722