target/3064: [SPARC/Solaris] optimizer fails to genrate correct code.

pb@gcc.gnu.org pb@gcc.gnu.org
Tue Jan 22 12:58:00 GMT 2002


Old Synopsis: optimizer fails to genrate correct code.
New Synopsis: [SPARC/Solaris] optimizer fails to genrate correct code.

Responsible-Changed-From-To: unassigned->pb
Responsible-Changed-By: pb
Responsible-Changed-When: Tue Jan 22 12:58:32 2002
Responsible-Changed-Why:
    .
State-Changed-From-To: open->feedback
State-Changed-By: pb
State-Changed-When: Tue Jan 22 12:58:32 2002
State-Changed-Why:
    Doesn't look like a bug.
    
    You didn't provide preprocessed source, so it's hard to say for sure, but I would guess that your "log" function is not marked as attribute(( const )).  Unless the compiler knows that a function has no side effects, it can't safely remove a call to that function.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3064



More information about the Gcc-bugs mailing list