[ARM] fix big.LITTLE spec rewriting

James Greenhalgh james.greenhalgh@arm.com
Tue Jan 21 10:52:00 GMT 2014


As with the AArch64 case,
( http://gcc.gnu.org/ml/gcc-patches/2014-01/msg01317.html )
the way that we rewrite command lines for big.LITTLE systems
causes bugs where more than one source file is to be used.

The solution here is identical to that proposed for AArch64,
we update the spec command and compensate for that with an
change to arm_rewrite_mcpu to handle multiple names.

The patch has been bootstrapped on a chromebook, and I've
checked combinations of zero or more -mcpu values with
one or more source files, and things seem to work as expected.



2014-01-21  James Greenhalgh  <james.greenhalgh@arm.com>

	* common/config/arm/arm-common.c
	(arm_rewrite_mcpu): Handle multiple names.
	* config/arm/arm.h
	(BIG_LITTLE_SPEC): Do not discard mcpu switches.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ARM-fix-big.LITTLE-spec-rewriting.patch
Type: text/x-patch
Size: 1353 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140121/ff938772/attachment.bin>

More information about the Gcc-patches mailing list