[Bug inline-asm/37018] compiling inline assembly for ia32 produces ia64 registers

2008-08-03 Thread gcc at karrels dot org


--- Comment #3 from gcc at karrels dot org  2008-08-04 01:39 ---
(In reply to comment #0)

Bug only occurs with optimization turned on.


-- 

gcc at karrels dot org changed:

   What|Removed |Added

 CC||gcc at karrels dot org


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



[Bug inline-asm/37018] compiling inline assembly for ia32 produces ia64 registers

2008-08-03 Thread gcc at karrels dot org


--- Comment #2 from gcc at karrels dot org  2008-08-04 01:37 ---
Created an attachment (id=16008)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16008&action=view)
Output from "gcc -v -save-temps -O -c foo.c"


-- 


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



[Bug inline-asm/37018] compiling inline assembly for ia32 produces ia64 registers

2008-08-03 Thread gcc at karrels dot org


--- Comment #1 from gcc at karrels dot org  2008-08-04 01:35 ---
Created an attachment (id=16007)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16007&action=view)
preprocessed source


-- 


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



[Bug inline-asm/37018] New: compiling inline assembly for ia32 produces ia64 registers

2008-08-03 Thread gcc at karrels dot org
In this sample, which includes inline assembly code, GCC produces assembly that
uses 64-bit registers when the target is 32-bit code.  The assembler complains:

foo.c: Assembler messages:
foo.c:17: Error: bad register name `%dil'


-- 
   Summary: compiling inline assembly for ia32 produces ia64
registers
   Product: gcc
   Version: 4.3.1
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: inline-asm
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc at karrels dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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