public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* optimization/5959: __attribute__((pure)) ignored on PowerPC AIX
@ 2002-03-13 23:56 Zoltan Hidvegi
  0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 2002-03-13 23:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5959
>Category:       optimization
>Synopsis:       __attribute__((pure)) ignored on PowerPC AIX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 13 23:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Zoltan Hidvegi
>Release:        3.0.3 20011211 (prerelease)
>Organization:
>Environment:
System: AIX vlad 3 4 0005BA2F4C00


	
host: powerpc-ibm-aix4.3.3.0
build: powerpc-ibm-aix4.3.3.0
target: powerpc-ibm-aix4.3.3.0
configured with: ../gcc/configure --prefix=<prefix> --with-local-prefix=<prefix> --enable-languages=c,c++,java --enable-version-specific-runtime-libs --disable-nls --disable-shared
>Description:
Looking at the assembly listing generated by gcc it seems that
__attributed__((pure)) is ignored on PowerPC AIX, while the same code
works on Intel Linux.  The sample code below calls foo twice on AIX
but only once on Linux.
>How-To-Repeat:
int foo(int) __attribute__((pure));

int
twice_foo(int i)
{
    return foo(i) + foo(i);
}

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: optimization/5959: __attribute__((pure)) ignored on PowerPC AIX
@ 2002-04-26 12:18 dje
  0 siblings, 0 replies; 2+ messages in thread
From: dje @ 2002-04-26 12:18 UTC (permalink / raw)
  To: dje, gcc-bugs, gcc-prs, hzoli, nobody

Synopsis: __attribute__((pure)) ignored on PowerPC AIX

Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: dje
Responsible-Changed-When: Fri Apr 26 12:18:34 2002
Responsible-Changed-Why:
    AIX
State-Changed-From-To: open->suspended
State-Changed-By: dje
State-Changed-When: Fri Apr 26 12:18:34 2002
State-Changed-Why:
    This seems to be another case where GCC creates the TOC
    reference to the function early and no longer recognizes
    that the two functions are the same.

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-26 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-13 23:56 optimization/5959: __attribute__((pure)) ignored on PowerPC AIX Zoltan Hidvegi
2002-04-26 12:18 dje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).