[PATCH 3/4] S390 -march=native related fixes
Dominik Vogt
vogt@linux.vnet.ibm.com
Mon Jul 20 16:10:00 GMT 2015
On Sat, Jul 18, 2015 at 01:09:26AM +0200, Ulrich Weigand wrote:
> Dominik Vogt wrote:
>
> > + opt_esa_zarch = (has_highgprs) ? " -mzarch" : " -mesa";
>
> This will force -mesa on old machines *even in -m64 mode*,
> which is wrong and will cause compilation to fail.
>
>
> > -/* Defaulting rules. */
> > #ifdef DEFAULT_TARGET_64BIT
> > -#define DRIVER_SELF_SPECS \
>
> This completely removes use of DRIVER_SELF_SPECS for defaulting,
> which I introduced back here:
> https://gcc.gnu.org/ml/gcc-patches/2003-06/msg03369.html
>...
New version of the patch and ChangeLog attached, as discussed
internally:
* -march=native never setzt -mvx or -mhtm but disables these
features if the cpu does not support them. This always wins
against any options set on the command line.
* -march=native never sets -mesa, and appends -mzarch to the
command line if the highgprs cpu flag is present and the command
line does not specify -mesa (or -mzarch).
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
-------------- next part --------------
gcc/ChangeLog
* config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
processor capabilities with -march=native.
* config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
(DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
* (S390_TARGET_BITS_STRING): Macro to simplify specs.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-v3-S390-Handle-processor-capabilities-with-march-native.patch
Type: text/x-diff
Size: 6777 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150720/4f085bc5/attachment.bin>
More information about the Gcc-patches
mailing list