public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/15623] New: nop insertion does not look see restrict pointers
@ 2004-05-24 13:57 pinskia at gcc dot gnu dot org
  2004-05-26 15:16 ` [Bug target/15623] " amodra at bigpond dot net dot au
  2004-08-25  1:53 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 13:57 UTC (permalink / raw)
  To: gcc-bugs

Compile with -O2 -mcpu=power4 and see that both functions are the same but the second one should 
not have nops as we know that they are located at different places in memory as their declared as 
restrict:

int zero_restrict_pointers(int *p, int *q)
{
        *p = 0;
        return *q;
}
int two_restrict_pointers(int *restrict p, int *restrict q)
{
        *p = 0;
        return *q;
}

-- 
           Summary: nop insertion does not look see restrict pointers
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15623


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

end of thread, other threads:[~2009-06-25 19:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-15623-6528@http.gcc.gnu.org/bugzilla/>
2008-10-01 14:32 ` [Bug target/15623] nop insertion does not look see restrict pointers rguenth at gcc dot gnu dot org
2009-06-25 11:14 ` rguenth at gcc dot gnu dot org
2009-06-25 17:57 ` pinskia at gcc dot gnu dot org
2009-06-25 19:30 ` rguenth at gcc dot gnu dot org
2009-06-25 19:33   ` Andrew Pinski
2009-06-25 19:34 ` pinskia at gmail dot com
2009-06-25 19:51 ` rguenth at gcc dot gnu dot org
2004-05-24 13:57 [Bug target/15623] New: " pinskia at gcc dot gnu dot org
2004-05-26 15:16 ` [Bug target/15623] " amodra at bigpond dot net dot au
2004-08-25  1:53 ` pinskia at gcc dot gnu dot org

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).