This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2006 14:24:37 -0000
- Subject: [Bug target/26511] Using -O3, doesn't assign in a pointer to a global structure
- References: <bug-26511-12290@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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