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]

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


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


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