[SH] PR 50694 - SH2A little endian does not actually work

Oleg Endo oleg.endo@t-online.de
Sun Nov 13 21:47:00 GMT 2011


Hello,

the attached patch addresses PR 50694.
Tested against trunk rev 181301 with:

make -k check RUNTESTFLAGS="--target_board=sh-sim
\{-m2/-ml,-m2/-mb,-m2a-single/-mb,-m4-single/-ml,-m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}"

For -m2a* it introduces two new failures in:

gcc.target/sh/pr21255-2-ml.c
gcc.target/sh/20080410-1.c

...due to test case parameter handling.  The test cases were made for
little endian only but have not been skipped when ran with big endian
parameters.  The patch also fixes those two test cases.

Cheers,
Oleg

ChangeLog:

2011-11-13  Oleg Endo  <oleg.endo@t-online.de>

	PR target/50694
	* config/sh/sh.h (IS_LITTLE_ENDIAN_OPTION, UNSUPPORTED_SH2A):
	New macros.
	(DRIVER_SELF_SPECS): Use new macros to filter out 
	unsupported options taking the default configuration into
	account.

testsuite/ChangeLog:

2011-11-13  Oleg Endo  <oleg.endo@t-online.de>

	* gcc.target/sh/pr21255-2-ml.c: Skip if -mb or -m5* is 
	specified.  Remove redundant runtime checks.
	* gcc.target/sh/20080410-1.c: Skip if -mb is specified.
	Allow for other than -m4.  Fix typos in comments.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr50694.patch
Type: text/x-patch
Size: 2707 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111113/1a331c86/attachment.bin>


More information about the Gcc-patches mailing list