public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/36722]  New: ICE with inline asm in 64bit mode because of type size
@ 2008-07-03 18:54 adam at os dot inf dot tu-dresden dot de
  2008-08-11  1:28 ` [Bug target/36722] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: adam at os dot inf dot tu-dresden dot de @ 2008-07-03 18:54 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-09  7:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36722-4@http.gcc.gnu.org/bugzilla/>
2014-10-26 13:37 ` [Bug target/36722] ICE with inline asm in 64bit mode because of type size adam at os dot inf.tu-dresden.de
2021-08-09  7:12 ` pinskia at gcc dot gnu.org
2008-07-03 18:54 [Bug inline-asm/36722] New: " adam at os dot inf dot tu-dresden dot de
2008-08-11  1:28 ` [Bug target/36722] " pinskia at gcc dot gnu dot org
2008-08-22 19:11 ` pluto at agmk dot net
2008-08-23  7:23 ` ubizjak at gmail dot com
2008-08-23  8:00 ` schwab at suse dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).