public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36571] New: Default untyped return for AVR is byte register.
@ 2008-06-18 22:54 hutchinsonandy at gcc dot gnu dot org
2008-06-18 23:01 ` [Bug middle-end/36571] " hutchinsonandy at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: hutchinsonandy at gcc dot gnu dot org @ 2008-06-18 22:54 UTC (permalink / raw)
To: gcc-bugs
Test testsuite/gcc.dg/builtin-return-1.c will fail for avr target.
Default implementation of builtin-return-1 is untyped return of a single
register.
Which is R25 and only 1 byte. This is not int as test expects.
So high byte may and does get overwritten before outer return.
The test may be invalid, but this is also reminder that AVR target does not
have a complete definition for untyped return. The default is pretty useless.
Test with be marked XFAIL.
--
Summary: Default untyped return for AVR is byte register.
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hutchinsonandy at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: avr-unknown-nne
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36571
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-18 23:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-18 22:54 [Bug c/36571] New: Default untyped return for AVR is byte register hutchinsonandy at gcc dot gnu dot org
2008-06-18 23:01 ` [Bug middle-end/36571] " hutchinsonandy 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).