This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,testsuite] Mark builtin_return-1 test XFAIL on AVR target.
- From: Andy H <hutchinsonandy at aim dot com>
- To: gcc-patches at gcc dot gnu dot org, janis187 at us dot ibm dot com
- Date: Tue, 17 Jun 2008 21:53:31 -0400
- Subject: [PATCH,testsuite] Mark builtin_return-1 test XFAIL on AVR target.
Test gcc.dg/builtin-return-1.c will fail for AVRtarget.
Default implementation of untyped return is a single register. Which for
AVR is just a byte, not int as test expects.
So high byte may get overwritten before return.
I have marked as XFAIL until either test considers return value limit
(unlikely and awkward) - or a complete untyped return is added for AVR.
Also added missing prototype for exit() to prevent warning.
Test on i686 and AVR target.
Ok for 4.4 mainline?
2008-06-17 Andy Hutchinson <hutchinsonandy@aim.com>
* gcc/testsuite/gcc.dg/builtin-return-1.c: Mark as xfail on AVR
target. Add exit prototype.
Attachment:
return.patch
Description: Text document