[expand PATCH] PR/40597 part 2: fix powerpc bootstrap

Eric Botcazou ebotcazou@adacore.com
Fri Jul 3 16:55:00 GMT 2009


> Fixed by doing a convert_move back to the target.  Bootstrap/regtest in
> progress, but on a target that didn't show the bug in the first place.
> It fixes both testcases posted in the audit trail of the PR (thanks Peter).

The Ada compiler (uintp.adb:UI_From_Int) is miscompiled on i686 at -O0 after 
your expmed.c changes, leading to 4 ACATS failures:

		=== acats tests ===
FAIL:	c34004c
FAIL:	c490003
FAIL:	c4a010b
FAIL:	cxa5a04

		=== acats Summary ===
# of expected passes		2311
# of unexpected failures	4


Reduced C testcase attached.  The conversion in emit_store_flag_1

	  convert_move (target, tem,
			0 == (STORE_FLAG_VALUE
			      & ((HOST_WIDE_INT) 1
				 << (GET_MODE_BITSIZE (word_mode) -1))));

is performed unsigned, while it would need to be signed.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.c
Type: text/x-csrc
Size: 205 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090703/6a5a1eb5/attachment.bin>


More information about the Gcc-patches mailing list