public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11520] New: code generator bug for avr mega8
@ 2003-07-15 0:01 rod at cs dot mun dot ca
2003-07-16 16:08 ` [Bug target/11520] " pinskia at physics dot uc dot edu
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: rod at cs dot mun dot ca @ 2003-07-15 0:01 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
Summary: code generator bug for avr mega8
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rod at cs dot mun dot ca
CC: gcc-bugs at gcc dot gnu dot org
version:
avr-gcc -v
Reading specs from /opt/avr-20030707/lib/gcc-lib/avr/3.3.1/specs
Configured with: ../configure --target=avr --enable-languages=c
--prefix=/opt/avr-20030707
Thread model: single
gcc version 3.3.1 20030707 (prerelease)
------------- bug.c -------------------
typedef void (*Jmp)(void);
int main( int ac, char *av[] )
{
Jmp jmp = 0;
(*jmp)(); /* jump to reset vector */
return 0;
}
------------ bug.s ---------------------
global main
.type main, @function
main:
/* prologue: frame size=0 */
ldi r28,lo8(__stack - 0)
ldi r29,hi8(__stack - 0)
out __SP_H__,r29
out __SP_L__,r28
/* prologue end (size=4) */
rcall 0 <-- relative address ???
ldi r24,lo8(0)
ldi r25,hi8(0)
/* epilogue: frame size=0 */
rjmp exit
/* epilogue end (size=1) */
/* function main size 8 (3) */
.size main, .-main
----------------------------------------------------------------
avr-objdump -D a.out yeilds
bug.o: file format elf32-avr
Disassembly of section .text:
0000005c <main>:
5c: cf e5 ldi r28, 0x5F ; 95
5e: d4 e0 ldi r29, 0x04 ; 4
60: de bf out 0x3e, r29 ; 62
62: cd bf out 0x3d, r28 ; 61
64: fb df rcall .-10 ; 0x5c <-- not address 0
66: 80 e0 ldi r24, 0x00 ; 0
68: 90 e0 ldi r25, 0x00 ; 0
6a: 00 c0 rjmp .+0 ; 0x6c
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
@ 2003-07-16 16:08 ` pinskia at physics dot uc dot edu
2003-07-19 3:47 ` pinskia at physics dot uc dot edu
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-16 16:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
Keywords| |wrong-code
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
2003-07-16 16:08 ` [Bug target/11520] " pinskia at physics dot uc dot edu
@ 2003-07-19 3:47 ` pinskia at physics dot uc dot edu
2003-08-06 6:16 ` pinskia at physics dot uc dot edu
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-19 3:47 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |avr-elf
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
2003-07-16 16:08 ` [Bug target/11520] " pinskia at physics dot uc dot edu
2003-07-19 3:47 ` pinskia at physics dot uc dot edu
@ 2003-08-06 6:16 ` pinskia at physics dot uc dot edu
2003-08-23 0:19 ` dhazeghi at yahoo dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-06 6:16 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-06 06:16:06
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 06:16 -------
I can confirm this on the mainline (20030806).
The problem is located in avr.md in the insn "call_insn" but I do not have enough avr
knowledge to fix this.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
` (2 preceding siblings ...)
2003-08-06 6:16 ` pinskia at physics dot uc dot edu
@ 2003-08-23 0:19 ` dhazeghi at yahoo dot com
2004-03-19 23:09 ` kazu at cs dot umass dot edu
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23 0:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4 |---
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
` (3 preceding siblings ...)
2003-08-23 0:19 ` dhazeghi at yahoo dot com
@ 2004-03-19 23:09 ` kazu at cs dot umass dot edu
2004-03-19 23:13 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-03-19 23:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kazu at cs dot umass dot edu 2004-03-19 23:09 -------
The maintainer just checked in:
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01636.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
` (4 preceding siblings ...)
2004-03-19 23:09 ` kazu at cs dot umass dot edu
@ 2004-03-19 23:13 ` cvs-commit at gcc dot gnu dot org
2004-03-19 23:31 ` pinskia at gcc dot gnu dot org
2004-08-28 10:11 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-19 23:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-19 23:12 -------
Subject: Bug 11520
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: kazu@gcc.gnu.org 2004-03-19 23:12:32
Modified files:
gcc : ChangeLog
Log message:
PR target/11520
* config/avr/avr.md ("call_insn"): Handle explicit integer
specially.
(call_value_insn): Likewise.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3220&r2=2.3221
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
` (5 preceding siblings ...)
2004-03-19 23:13 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-19 23:31 ` pinskia at gcc dot gnu dot org
2004-08-28 10:11 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 23:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-19 23:31 -------
Fixed for 3.5.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/11520] code generator bug for avr mega8
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
` (6 preceding siblings ...)
2004-03-19 23:31 ` pinskia at gcc dot gnu dot org
@ 2004-08-28 10:11 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-28 10:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-28 10:11 -------
*** Bug 17098 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |danni at specs dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11520
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-08-28 10:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 0:01 [Bug c/11520] New: code generator bug for avr mega8 rod at cs dot mun dot ca
2003-07-16 16:08 ` [Bug target/11520] " pinskia at physics dot uc dot edu
2003-07-19 3:47 ` pinskia at physics dot uc dot edu
2003-08-06 6:16 ` pinskia at physics dot uc dot edu
2003-08-23 0:19 ` dhazeghi at yahoo dot com
2004-03-19 23:09 ` kazu at cs dot umass dot edu
2004-03-19 23:13 ` cvs-commit at gcc dot gnu dot org
2004-03-19 23:31 ` pinskia at gcc dot gnu dot org
2004-08-28 10:11 ` 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).