This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]