This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/66274] gcc6: x86 -m32 emits 64bit register in inline asm


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66274

UroÅ Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-05-25
           Assignee|unassigned at gcc dot gnu.org      |ubizjak at gmail dot com
   Target Milestone|---                         |6.0
     Ever confirmed|0                           |1

--- Comment #1 from UroÅ Bizjak <ubizjak at gmail dot com> ---
Oops.

--cut here--
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c  (revision 223641)
+++ config/i386/i386.c  (working copy)
@@ -15229,7 +15229,7 @@ print_reg (rtx x, int code, FILE *file)
     case 8:
     case 4:
       if (LEGACY_INT_REGNO_P (regno))
-       putc (msize == 8 ? 'r' : 'e', file);
+       putc (msize == 8 && TARGET_64BIT ? 'r' : 'e', file);
     case 16:
     case 12:
     case 2:
--cut here--

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]