This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36571] New: Default untyped return for AVR is byte register.
- From: "hutchinsonandy at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jun 2008 22:53:30 -0000
- Subject: [Bug c/36571] New: Default untyped return for AVR is byte register.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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