[gcc/devel/ranger] avr-common.c (avr_option_optimization_table): Set -fsplit-wide-types-early.

Aldy Hernandez aldyh@gcc.gnu.org
Wed Jun 17 17:44:47 GMT 2020


https://gcc.gnu.org/g:ddc8786f8ebe5c97331cbbeef15c99e4878e669e

commit ddc8786f8ebe5c97331cbbeef15c99e4878e669e
Author: Georg-Johann Lay <avr@gjlay.de>
Date:   Thu Jan 9 09:29:30 2020 +0000

    avr-common.c (avr_option_optimization_table): Set -fsplit-wide-types-early.
    
            * common/config/avr/avr-common.c (avr_option_optimization_table)
            [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
    
    From-SVN: r280033

Diff:
---
 gcc/ChangeLog                      | 5 +++++
 gcc/common/config/avr/avr-common.c | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2a5f4e62dbe..4a8e897a421 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-09  Georg-Johann Lay  <avr@gjlay.de>
+
+	* common/config/avr/avr-common.c (avr_option_optimization_table)
+	[OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
+
 2020-01-09  Martin Liska  <mliska@suse.cz>
 
 	* cgraphclones.c (symbol_table::materialize_all_clones):
diff --git a/gcc/common/config/avr/avr-common.c b/gcc/common/config/avr/avr-common.c
index 676b8784927..233468be421 100644
--- a/gcc/common/config/avr/avr-common.c
+++ b/gcc/common/config/avr/avr-common.c
@@ -40,6 +40,8 @@ static const struct default_options avr_option_optimization_table[] =
     { OPT_LEVELS_ALL, OPT_fcaller_saves, NULL, 0 },
     { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_mgas_isr_prologues, NULL, 1 },
     { OPT_LEVELS_1_PLUS, OPT_mmain_is_OS_task, NULL, 1 },
+    // Stick to the "old" placement of the subreg lowering pass.
+    { OPT_LEVELS_1_PLUS, OPT_fsplit_wide_types_early, NULL, 1 },
     /* Allow optimizer to introduce store data races. This used to be the
        default -- it was changed because bigger targets did not see any
        performance decrease. For the AVR though, disallowing data races


More information about the Gcc-cvs mailing list