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