flag_complex_method: support optimize attribute
authorMartin Liska <mliska@suse.cz>
Fri, 3 Sep 2021 08:53:00 +0000 (10:53 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 27 Sep 2021 14:58:37 +0000 (16:58 +0200)
commita64697d7a3e0bf9e5b0d79e253f2b7dc3eb2fb00
tree93af7a8ed8a199673d1b446e7d23cba2623d270e
parent3e6a511b94fd653d8d03491eae20307bd27b8f8e
flag_complex_method: support optimize attribute

gcc/c-family/ChangeLog:

* c-opts.c (c_common_init_options_struct): Set also
  x_flag_default_complex_method.

gcc/ChangeLog:

* common.opt: Add new variable flag_default_complex_method.
* opts.c (finish_options): Handle flags related to
  x_flag_complex_method.
* toplev.c (process_options): Remove option handling related
to flag_complex_method.

gcc/go/ChangeLog:

* go-lang.c (go_langhook_init_options_struct): Set also
  x_flag_default_complex_method.

gcc/lto/ChangeLog:

* lto-lang.c (lto_init_options_struct): Set also
  x_flag_default_complex_method.

gcc/testsuite/ChangeLog:

* gcc.c-torture/compile/attr-complex-method-2.c: New test.
* gcc.c-torture/compile/attr-complex-method.c: New test.
gcc/c-family/c-opts.c
gcc/common.opt
gcc/go/go-lang.c
gcc/lto/lto-lang.c
gcc/opts.c
gcc/testsuite/gcc.c-torture/compile/attr-complex-method-2.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/attr-complex-method.c [new file with mode: 0644]
gcc/toplev.c