From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42863 invoked by alias); 12 May 2015 10:27:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 42780 invoked by uid 48); 12 May 2015 10:26:58 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/66119] [5/6 Regression] in optimization of avx-code Date: Tue, 12 May 2015 10:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg00933.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66119 --- Comment #6 from Richard Biener --- Fixed by Index: toplev.c =================================================================== --- toplev.c (revision 223044) +++ toplev.c (working copy) @@ -1311,6 +1311,9 @@ process_options (void) so we can correctly initialize debug output. */ no_backend = lang_hooks.post_options (&main_input_filename); + /* Some machines may reject certain combinations of options. */ + targetm.target_option.override (); + /* Set default values for parameters relation to the Scalar Reduction of Aggregates passes (SRA and IP-SRA). We must do this here, rather than in opts.c:default_options_optimization as historically these @@ -1325,9 +1328,6 @@ process_options (void) get_move_ratio (false) * UNITS_PER_WORD, global_options.x_param_values, global_options_set.x_param_values); - /* Some machines may reject certain combinations of options. */ - targetm.target_option.override (); - /* Avoid any informative notes in the second run of -fcompare-debug. */ if (flag_compare_debug) diagnostic_inhibit_notes (global_dc); though not sure whether a 2nd maybe_set_param_value will still allow the target to adjust this default...