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/28966] New: -maltivec -m32 causes the stack to be saved and restored even though there is no need for it


Testcase:
int f(void)
{
  return 0;
}
This produces with -maltivec -O2:
f:
        stwu 1,-16(1)
        li 3,0
        addi 1,1,16
        blr

With just -O2, we get:
f:
        li 3,0
        blr


-- 
           Summary: -maltivec -m32 causes the stack to be saved and restored
                    even though there is no need for it
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-linux-gnu


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


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