[PATCH,testsuite] Mark builtin_return-1 test XFAIL on AVR target.

Janis Johnson janis187@us.ibm.com
Wed Jun 18 14:11:00 GMT 2008


On Tue, 2008-06-17 at 21:53 -0400, Andy H wrote:
> 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.

An XFAIL must reference a problem report.  That's not true of all
of them in the testsuite, but should be so we can keep track of
them.  Please open a PR and reference it in the test.

Janis



More information about the Gcc-patches mailing list