public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/19059] New: Atmel AVR Tiny13 and Tiny2313 support corrupted
@ 2004-12-17 17:44 frouleau at naotek dot com
2004-12-23 8:45 ` [Bug target/19059] " frouleau at naotek dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: frouleau at naotek dot com @ 2004-12-17 17:44 UTC (permalink / raw)
To: gcc-bugs
AtTiny13 and AtTiny2313 are considered as avr4 architecture. But they do not
support all the instructions of avr4.
For example the "mul" instruction does not exist. See bellow a test case for mul.
avr-gcc -mmcu=attiny2313 test_mul.c
int main(void) {
uint8_t a, b;
uint16_t res;
res = a * b;
}
--
Summary: Atmel AVR Tiny13 and Tiny2313 support corrupted
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P1
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: frouleau at naotek dot com
CC: ericw at evcohs dot com,gcc-bugs at gcc dot gnu dot org
GCC build triplet: Any
GCC host triplet: Any
GCC target triplet: avr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19059
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19059] Atmel AVR Tiny13 and Tiny2313 support corrupted
2004-12-17 17:44 [Bug target/19059] New: Atmel AVR Tiny13 and Tiny2313 support corrupted frouleau at naotek dot com
@ 2004-12-23 8:45 ` frouleau at naotek dot com
2004-12-25 22:20 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: frouleau at naotek dot com @ 2004-12-23 8:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From frouleau at naotek dot com 2004-12-23 08:45 -------
Created an attachment (id=7810)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7810&action=view)
workarround to fix the bug
This patch moves attiny13 and attiny2313 from arch4 to arch2. Thus no bugs
occure anymore but the generated code is not optimized (lost movw, spm and some
form of lpm asm instructions).
A new architecture should be created to fully solve the problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19059
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19059] Atmel AVR Tiny13 and Tiny2313 support corrupted
2004-12-17 17:44 [Bug target/19059] New: Atmel AVR Tiny13 and Tiny2313 support corrupted frouleau at naotek dot com
2004-12-23 8:45 ` [Bug target/19059] " frouleau at naotek dot com
@ 2004-12-25 22:20 ` cvs-commit at gcc dot gnu dot org
2004-12-25 23:11 ` pinskia at gcc dot gnu dot org
2005-01-07 14:14 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-25 22:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-25 22:20 -------
Subject: Bug 19059
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: marekm@gcc.gnu.org 2004-12-25 22:20:05
Modified files:
gcc : ChangeLog
gcc/config/avr : avr.c avr.h t-avr
Log message:
PR target/19059
* config/avr/avr.c (avr_mcu_types): Move attiny{13,2313} from avr4
to avr2.
* config/avr/avr.h (LINK_SPEC): Ditto.
* config/avr/t-avr (MULTILIB_MATCHES): Ditto.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6954&r2=2.6955
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/avr/avr.c.diff?cvsroot=gcc&r1=1.124&r2=1.125
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/avr/avr.h.diff?cvsroot=gcc&r1=1.109&r2=1.110
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/avr/t-avr.diff?cvsroot=gcc&r1=1.13&r2=1.14
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19059
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19059] Atmel AVR Tiny13 and Tiny2313 support corrupted
2004-12-17 17:44 [Bug target/19059] New: Atmel AVR Tiny13 and Tiny2313 support corrupted frouleau at naotek dot com
2004-12-23 8:45 ` [Bug target/19059] " frouleau at naotek dot com
2004-12-25 22:20 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-25 23:11 ` pinskia at gcc dot gnu dot org
2005-01-07 14:14 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-25 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-25 23:11 -------
Fixed but who ever applied this patch, please note we are in regression only mode and that this patch
should not have been applied unless you got special approval from Mark M. Also note the patch which
fixed has not been sent to gcc-patches@ yet but really should be as normal produces for gcc.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19059
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/19059] Atmel AVR Tiny13 and Tiny2313 support corrupted
2004-12-17 17:44 [Bug target/19059] New: Atmel AVR Tiny13 and Tiny2313 support corrupted frouleau at naotek dot com
` (2 preceding siblings ...)
2004-12-25 23:11 ` pinskia at gcc dot gnu dot org
@ 2005-01-07 14:14 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-07 14:14 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19059
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-01-07 14:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 17:44 [Bug target/19059] New: Atmel AVR Tiny13 and Tiny2313 support corrupted frouleau at naotek dot com
2004-12-23 8:45 ` [Bug target/19059] " frouleau at naotek dot com
2004-12-25 22:20 ` cvs-commit at gcc dot gnu dot org
2004-12-25 23:11 ` pinskia at gcc dot gnu dot org
2005-01-07 14:14 ` 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).