public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39287]  New: corrupted prologue generated
@ 2009-02-24 10:14 sb-sf at users dot sourceforge dot net
  2009-02-24 10:16 ` [Bug c/39287] " sb-sf at users dot sourceforge dot net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: sb-sf at users dot sourceforge dot net @ 2009-02-24 10:14 UTC (permalink / raw)
  To: gcc-bugs

int a(int *);

int b()
{
  int Tmp[2];
  d(Tmp);
}

produces bad prologue:
        .text
.global b
        .type   b, @function
b:
        push r29
        push r28
        rcall .
        rcall .
        rcall .
        in r28,__SP_L__
        in r29,__SP_H__
/* prologue: function */
/* frame size = 6 */
        movw r24,r28
        adiw r24,1
        rcall d
/* epilogue start */
        adiw r28,6
        in __tmp_reg__,__SREG__
        cli
        out __SP_H__,r29
        out __SREG__,__tmp_reg__
        out __SP_L__,r28
        pop r28
        pop r29
        ret
        .size   b, .-b


-- 
           Summary: corrupted prologue generated
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sb-sf at users dot sourceforge dot net
GCC target triplet: avr


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


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

end of thread, other threads:[~2009-02-25  1:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 10:14 [Bug c/39287] New: corrupted prologue generated sb-sf at users dot sourceforge dot net
2009-02-24 10:16 ` [Bug c/39287] " sb-sf at users dot sourceforge dot net
2009-02-24 13:53 ` [Bug target/39287] " eric dot weddington at atmel dot com
2009-02-24 17:52 ` eric dot weddington at atmel dot com
2009-02-24 20:57 ` sb-sf at users dot sourceforge dot net
2009-02-25  1:29 ` eric dot weddington at atmel dot com

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).