This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27899] New: Compile warning with --combine and global register variables.
- From: "dwmw2 at infradead dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2006 10:14:18 -0000
- Subject: [Bug c/27899] New: Compile warning with --combine and global register variables.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ echo 'register struct foo *current asm ("r2");' > foobar.c
$ gcc --combine foobar.c foobar.c -c
foobar.c:1: warning: register used for two global register variables
Is this warning harmless? It's still going to do the right thing, yes?
Also happens on i386 (with s/r2/ebx/)
gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)
--
Summary: Compile warning with --combine and global register
variables.
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dwmw2 at infradead dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27899