$ 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