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 c/16452] New: [3.5 regression] Register name lost when compiling with -O2


Zack, your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-07/msg00384.html
caused a regression on mainline:

Compiling the following code on i686-pc-linux-gnu with "-O2"

==============================================
register int* p __asm__("%ebx");

void foo() { --p; }
==============================================

now yields the error message:

bug.c: In function `foo':
bug.c:1: error: register name not specified for 'p'

The code compiles fine, when only "-O" is specified.

-- 
           Summary: [3.5 regression] Register name lost when compiling with
                    -O2
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: rejects-valid, monitored
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,zack at gcc dot gnu dot
                    org


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


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