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
* [Bug c/39287] corrupted prologue generated
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 ` sb-sf at users dot sourceforge dot net
2009-02-24 13:53 ` [Bug target/39287] " eric dot weddington at atmel dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: sb-sf at users dot sourceforge dot net @ 2009-02-24 10:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from sb-sf at users dot sourceforge dot net 2009-02-24 10:16 -------
Created an attachment (id=17356)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17356&action=view)
file to reproduce bug
avr-gcc main.c -mmcu=atmega8 -S
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39287
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/39287] corrupted prologue generated
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 ` eric dot weddington at atmel dot com
2009-02-24 17:52 ` eric dot weddington at atmel dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: eric dot weddington at atmel dot com @ 2009-02-24 13:53 UTC (permalink / raw)
To: gcc-bugs
--
eric dot weddington at atmel dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39287
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/39287] corrupted prologue generated
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
4 siblings, 0 replies; 6+ messages in thread
From: eric dot weddington at atmel dot com @ 2009-02-24 17:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from eric dot weddington at atmel dot com 2009-02-24 17:52 -------
What host are you building on?
With gcc 4.3.2 with patches from WinAVR I get this:
.file "test.c"
__SREG__ = 0x3f
__SP_H__ = 0x3e
__SP_L__ = 0x3d
__CCP__ = 0x34
__tmp_reg__ = 0
__zero_reg__ = 1
.text
.global b
.type b, @function
b:
push r29
push r28
rcall .
rcall .
in r28,__SP_L__
in r29,__SP_H__
/* prologue: function */
/* frame size = 4 */
movw r24,r28
adiw r24,1
rcall d
/* epilogue start */
pop __tmp_reg__
pop __tmp_reg__
pop __tmp_reg__
pop __tmp_reg__
pop r28
pop r29
ret
.size b, .-b
--
eric dot weddington at atmel dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39287
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/39287] corrupted prologue generated
2009-02-24 10:14 [Bug c/39287] New: corrupted prologue generated sb-sf at users dot sourceforge dot net
` (2 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: sb-sf at users dot sourceforge dot net @ 2009-02-24 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sb-sf at users dot sourceforge dot net 2009-02-24 20:56 -------
(In reply to comment #2)
> What host are you building on?
Windows, WinAVR 20081205.
Or... is "rcall ." the space allocating trick? If so, I'm wrong, and you can
close this bug report as invalid. I was expecting something like in-sbiw-out.
Sorry for distrubing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39287
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/39287] corrupted prologue generated
2009-02-24 10:14 [Bug c/39287] New: corrupted prologue generated sb-sf at users dot sourceforge dot net
` (3 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: eric dot weddington at atmel dot com @ 2009-02-25 1:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from eric dot weddington at atmel dot com 2009-02-25 01:29 -------
(In reply to comment #3)
> (In reply to comment #2)
> > What host are you building on?
> Windows, WinAVR 20081205.
> Or... is "rcall ." the space allocating trick?
Yes it is.
Closing as invalid.
--
eric dot weddington at atmel dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
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).