[arm] PR target/83206: Make native driver select fp-capable armv6 cores

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Fri Dec 8 11:20:00 GMT 2017


A quirk in the historical naming of some ARMv6 products means that the
main CPU name implies the presence or otherwise of the floating point unit.
This causes problems when using -mfpu=auto with -mcpu=native: the driver is
picking a CPU that does not support a floating-point unit, even though
one may well exist.

This patch addresses this by selecting the FP-capable names so that FP
instructions will be generated if the other options suggest this is
permitted.

Note that a more complete fix is really needed here to look up the
FP/simd capabilities and append the appropriate capability extensions.
This will be the subject of some follow-up patches.

	* config/arm/driver-arm.c (arm_cpu_table): Use fp-capable product names
	for armv6 ARM CPU IDs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb8617.patch
Type: text/x-patch
Size: 1013 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20171208/4171f325/attachment.bin>


More information about the Gcc-patches mailing list