public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/30271]  New: -mstrict-align can cause bad code generation for struct agrument passing
@ 2006-12-21  2:49 pinskia at gcc dot gnu dot org
  2008-12-11  4:44 ` [Bug target/30271] -mstrict-align can an store extra " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-21  2:49 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
struct a { short t, t1;};
int f(struct a b) { return b.t; }
Without -mstrict-align, we get:
.L.f:
        srawi 3,3,16
        extsw 3,3
        blr

But with we get:
.L.f:
        stw 3,48(1)
        nop
        nop
        nop
        lha 3,48(1)
        extsw 3,3
        blr


-- 
           Summary: -mstrict-align can cause bad code generation for struct
                    agrument passing
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc64-linux-gnu


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


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

end of thread, other threads:[~2024-01-20 17:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-30271-4@http.gcc.gnu.org/bugzilla/>
2020-05-21  6:15 ` [Bug target/30271] -mstrict-align can an store extra for struct agrument passing luoxhu at gcc dot gnu.org
2023-12-08 11:01 ` guojiufu at gcc dot gnu.org
2023-12-19  5:18 ` cvs-commit at gcc dot gnu.org
2024-01-04  1:06 ` [Bug target/30271] -mstrict-align can add an store extra for struct argument passing guojiufu at gcc dot gnu.org
2024-01-20 17:13 ` pinskia at gcc dot gnu.org
2006-12-21  2:49 [Bug target/30271] New: -mstrict-align can cause bad code generation for struct agrument passing pinskia at gcc dot gnu dot org
2008-12-11  4:44 ` [Bug target/30271] -mstrict-align can an store extra " pinskia at gcc dot gnu dot org
2008-12-15 15:34 ` zadeck at naturalbridge dot com
2008-12-16  2:09 ` pinskia at gcc dot gnu dot org
2008-12-29 23: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).