This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16452] New: [3.5 regression] Register name lost when compiling with -O2
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2004 14:23:22 -0000
- Subject: [Bug c/16452] New: [3.5 regression] Register name lost when compiling with -O2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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