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]

[Bug target/15623] New: nop insertion does not look see restrict pointers


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


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