[PATCH,testsuite] fix some struct-reorg tests on bare metal targets

Janis Johnson janis187@us.ibm.com
Mon Jan 12 21:25:00 GMT 2009


On Mon, 2009-01-12 at 12:59 -0800, Nathan Froyd wrote:
> On powerpc-none-eabi* (and any other target using the GDB simulator, I
> think), the following tests fail:
> 
> FAIL: gcc.dg/struct/wo_prof_single_str_global.c execution test
> FAIL: gcc.dg/struct/wo_prof_single_str_local.c execution test
> FAIL: gcc.dg/struct/wo_prof_single_str_pointer.c execution test
> 
> The tests return "256" -- which happens to be equivalent to zero on
> POSIX systems.  But the GDB simulator passes along the full return
> value, and we get a FAIL.
> 
> Fixed by masking the return value.  Tested on powerpc-none-eabi.  OK to
> commit?
> 
> -Nathan
> 
> 2009-01-12  Mark Mitchell  <mark@codesourcery.com>
> 
> 	* gcc.dg/struct/wo_prof_single_str_global.c: Mask return value.
> 	* gcc.dg/struct/wo_prof_single_str_local.c: Mask return value.
> 	* gcc.dg/struct/wo_prof_single_str_pointer.c: Mask return value.

OK.

Janis



More information about the Gcc-patches mailing list