From: Peter Bergner Date: Wed, 31 Jul 2019 17:18:40 +0000 (+0000) Subject: re PR target/91050 (-mdejagnu-cpu= does not affect the -m assembler option) X-Git-Tag: misc/cutover-git~3716 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98ae96d2ade339df1a2d3a46e6a7faa60aece139;p=thirdparty%2Fgcc.git re PR target/91050 (-mdejagnu-cpu= does not affect the -m assembler option) PR target/91050 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option. * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove use of deleted rs6000_dejagnu_cpu_index variable. * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define. (SUBTARGET_DRIVER_SELF_SPECS): Likewise. * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ... (SUBTARGET_DRIVER_SELF_SPECS): ...to this. * config/i386/i386.h (DRIVER_SELF_SPECS): Define. (SUBTARGET_DRIVER_SELF_SPECS): Likewise. From-SVN: r273941 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18f2ce2268c6..7d984df15f95 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2019-07-31 Peter Bergner + + PR target/91050 + * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option. + * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove + use of deleted rs6000_dejagnu_cpu_index variable. + * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define. + (SUBTARGET_DRIVER_SELF_SPECS): Likewise. + * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ... + (SUBTARGET_DRIVER_SELF_SPECS): ...to this. + * config/i386/i386.h (DRIVER_SELF_SPECS): Define. + (SUBTARGET_DRIVER_SELF_SPECS): Likewise. + 2019-07-31 Richard Biener PR tree-optimization/91280 diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index ed8798472a5a..ab5ad03f175d 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -125,7 +125,8 @@ extern GTY(()) int darwin_ms_struct; However, a few can be handled and we can elide options that are silently- ignored defaults, plus warn on obsolete ones that no longer function. */ -#define DRIVER_SELF_SPECS \ +#undef SUBTARGET_DRIVER_SELF_SPECS +#define SUBTARGET_DRIVER_SELF_SPECS \ "%{fapple-kext|mkernel:-static}", \ "%{gfull:-g -fno-eliminate-unused-debug-symbols} %= 0) - rs6000_cpu_index = rs6000_dejagnu_cpu_index; - /* Process the -mcpu= and -mtune= argument. If the user changed the cpu in a target attribute or pragma, but did not specify a tuning option, use the cpu for the tuning option rather than the option specified diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 6c24b48a9abe..9c11a3e4d461 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -77,6 +77,20 @@ #define PPC405_ERRATUM77 0 #endif +#ifndef SUBTARGET_DRIVER_SELF_SPECS +# define SUBTARGET_DRIVER_SELF_SPECS "" +#endif + +/* Only for use in the testsuite: -mdejagnu-cpu= simply overrides -mcpu=. + With older versions of Dejagnu the command line arguments you set in + RUNTESTFLAGS override those set in the testcases; with this option, + the testcase will always win. Ditto for -mdejagnu-tune=. */ +#define DRIVER_SELF_SPECS \ + "%{mdejagnu-cpu=*: %