This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/3064: [SPARC/Solaris] optimizer fails to genrate correct code.
- From: pb at gcc dot gnu dot org
- To: barto at visionpro dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pb at gcc dot gnu dot org
- Date: 22 Jan 2002 20:58:32 -0000
- Subject: Re: target/3064: [SPARC/Solaris] optimizer fails to genrate correct code.
- Reply-to: pb at gcc dot gnu dot org, barto at visionpro dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, pb at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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