[SPARC] Further work around problematic paradoxical subregs

Eric Botcazou ebotcazou@adacore.com
Sun Feb 12 20:53:00 GMT 2012

Word-mode paradoxical subregs have been problematic on big-endian architectures 
for ages, and the PA and SPARC ports have a workaround for this in the form of 
the CANNOT_CHANGE_MODE_CLASS macro.  The SPARC one was more limited in scope, 
but 10 ACATS tests fail at -O2 on the mainline because of this, so this patch 
extends it to fix them.

Tested on SPARC64/Solaris, applied on the mainline.

2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>

	* config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
	disallow changes from SFmode to mode with different size in FP regs.

Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 1232 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120212/c22ca097/attachment.bin>

More information about the Gcc-patches mailing list