This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/28966] New: -maltivec -m32 causes the stack to be saved and restored even though there is no need for it
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2006 18:45:35 -0000
- Subject: [Bug target/28966] New: -maltivec -m32 causes the stack to be saved and restored even though there is no need for it
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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