commit 33933796b777591007c04448860e781ac17b9070 Author: Olivier Hainque AuthorDate: Thu Apr 21 14:44:47 2022 +0000 Commit: Olivier Hainque CommitDate: Thu Apr 21 14:47:37 2022 +0000 Fix thinko in --with-abi processing on powerpc Make it so any -mabi overrides what --with-abi requests as a default, not only -mabi=elfv*. Part of V415-021 (-mabi overrides on powerpc) Change-Id: I62763dee62bbbd7d446f2dd091017d0c7e719cab diff --git a/gcc/config/rs6000/option-defaults.h b/gcc/config/rs6000/option-defaults.h index 7ebd115755a..ecf246e6b2e 100644 --- a/gcc/config/rs6000/option-defaults.h +++ b/gcc/config/rs6000/option-defaults.h @@ -47,6 +47,7 @@ #endif /* Support for a compile-time default CPU, et cetera. The rules are: + --with-abi is ignored if -mabi is specified. --with-cpu is ignored if -mcpu is specified; likewise --with-cpu-32 and --with-cpu-64. --with-tune is ignored if -mtune or -mcpu is specified; likewise @@ -54,7 +55,7 @@ --with-float is ignored if -mhard-float or -msoft-float are specified. */ #define OPTION_DEFAULT_SPECS \ - {"abi", "%{!mabi=elfv*:-mabi=%(VALUE)}" }, \ + {"abi", "%{!mabi=*:-mabi=%(VALUE)}" }, \ {"tune", "%{!mtune=*:%{!mcpu=*:-mtune=%(VALUE)}}" }, \ {"tune_32", "%{" OPT_ARCH32 ":%{!mtune=*:%{!mcpu=*:-mtune=%(VALUE)}}}" }, \ {"tune_64", "%{" OPT_ARCH64 ":%{!mtune=*:%{!mcpu=*:-mtune=%(VALUE)}}}" }, \