Re: RFA: save/restore target options in handle_optimize_attribute

2021-06-01 Thread Martin Liška
On 5/19/21 11:48 PM, Joern Wolfgang Rennecke wrote: We set default for some target options in TARGET_OPTION_OPTIMIZATION_TABLE, but these can be overridden by specifying the corresponding explicit -mXXX / -mno-XXX options. When a function bears the attribue __attribute__ ((optimize("02"))) the ta

Re: RFA: save/restore target options in handle_optimize_attribute

2021-05-27 Thread Martin Liška
On 5/26/21 10:51 PM, Joseph Myers wrote: This commit breaks the build of glibc for powerpc64le-linux-gnu. Compile the following code with -O2 -mlong-double-128 -mabi=ibmlongdouble and I get the error opts-bug.c:8:1: error: '-mabi=ibmlongdouble' requires '-mlong-double-128' 8 | { | ^

Re: RFA: save/restore target options in handle_optimize_attribute

2021-05-26 Thread Joseph Myers
This commit breaks the build of glibc for powerpc64le-linux-gnu. Compile the following code with -O2 -mlong-double-128 -mabi=ibmlongdouble and I get the error opts-bug.c:8:1: error: '-mabi=ibmlongdouble' requires '-mlong-double-128' 8 | { | ^ which is clearly nonsensical, since -mlon

Re: RFA: save/restore target options in handle_optimize_attribute

2021-05-25 Thread Richard Biener via Gcc-patches
On Mon, May 24, 2021 at 10:56 AM Martin Liška wrote: > > On 5/20/21 9:55 AM, Richard Biener wrote: > > On Thu, May 20, 2021 at 12:29 AM Joern Wolfgang Rennecke > > wrote: > >> > >> We set default for some target options in TARGET_OPTION_OPTIMIZATION_TABLE, > >> but these can be overridden by spec

Re: RFA: save/restore target options in handle_optimize_attribute

2021-05-24 Thread Martin Liška
On 5/20/21 9:55 AM, Richard Biener wrote: On Thu, May 20, 2021 at 12:29 AM Joern Wolfgang Rennecke wrote: We set default for some target options in TARGET_OPTION_OPTIMIZATION_TABLE, but these can be overridden by specifying the corresponding explicit -mXXX / -mno-XXX options. When a function b

Re: RFA: save/restore target options in handle_optimize_attribute

2021-05-20 Thread Richard Biener via Gcc-patches
On Thu, May 20, 2021 at 12:29 AM Joern Wolfgang Rennecke wrote: > > We set default for some target options in TARGET_OPTION_OPTIMIZATION_TABLE, > but these can be overridden by specifying the corresponding explicit > -mXXX / -mno-XXX options. > When a function bears the attribue > __attribute__ ((

RFA: save/restore target options in handle_optimize_attribute

2021-05-19 Thread Joern Wolfgang Rennecke
We set default for some target options in TARGET_OPTION_OPTIMIZATION_TABLE, but these can be overridden by specifying the corresponding explicit -mXXX / -mno-XXX options. When a function bears the attribue __attribute__ ((optimize("02"))) the target options are set to the default for that optimizat