diff options
author | Martin Liska <mliska@suse.cz> | 2021-09-03 10:53:00 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-09-27 16:58:37 +0200 |
commit | a64697d7a3e0bf9e5b0d79e253f2b7dc3eb2fb00 (patch) | |
tree | 93af7a8ed8a199673d1b446e7d23cba2623d270e /gcc/go | |
parent | 3e6a511b94fd653d8d03491eae20307bd27b8f8e (diff) | |
download | gcc-a64697d7a3e0bf9e5b0d79e253f2b7dc3eb2fb00.zip gcc-a64697d7a3e0bf9e5b0d79e253f2b7dc3eb2fb00.tar.gz gcc-a64697d7a3e0bf9e5b0d79e253f2b7dc3eb2fb00.tar.bz2 |
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.
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/go-lang.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index a01db8d..c3ae6f0 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -174,6 +174,7 @@ go_langhook_init_options_struct (struct gcc_options *opts) /* Default to avoiding range issues for complex multiply and divide. */ opts->x_flag_complex_method = 2; + opts->x_flag_default_complex_method = opts->x_flag_complex_method; /* The builtin math functions should not set errno. */ opts->x_flag_errno_math = 0; |