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 target/26511] Using -O3, doesn't assign in a pointer to a global structure



------- Comment #9 from falk at debian dot org  2006-03-03 14:24 -------
The reason is:

pl-thread.c:78: warning: ignoring asm-specifier for non-static local variable
'_sc_0'
pl-thread.c:78: warning: ignoring asm-specifier for non-static local variable
'_sc_19'

This makes gcc not know that $19 gets clobbered by syscall. You need to add the
 register" keyword. I don't know exactly where your syscall macro is coming
from, but it's broken. I'd suggest you get a proper one from current glibc.


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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