From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 1F3C0385802B; Thu, 21 Oct 2021 11:51:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F3C0385802B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/PR102585-var-tracking-options-fix-v3)] Another code movement. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/PR102585-var-tracking-options-fix-v3 X-Git-Oldrev: 7af7e92f6be0b65237900ac479e17970daa5faf0 X-Git-Newrev: 711cf8550ce00a1318ffe7127bb99cef7a3b0222 Message-Id: <20211021115141.1F3C0385802B@sourceware.org> Date: Thu, 21 Oct 2021 11:51:41 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2021 11:51:41 -0000 https://gcc.gnu.org/g:711cf8550ce00a1318ffe7127bb99cef7a3b0222 commit 711cf8550ce00a1318ffe7127bb99cef7a3b0222 Author: Martin Liska Date: Thu Oct 21 13:50:33 2021 +0200 Another code movement. Diff: --- gcc/opts.c | 19 +++++++++++++++++++ gcc/toplev.c | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/gcc/opts.c b/gcc/opts.c index 2dd1e5d5372..4472cec1b98 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -1369,6 +1369,25 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, warning_at (loc, 0, "var-tracking-assignments changes selective scheduling"); + if (flag_syntax_only) + { + write_symbols = NO_DEBUG; + profile_flag = 0; + } + + if (flag_gtoggle) + { + if (debug_info_level == DINFO_LEVEL_NONE) + { + debug_info_level = DINFO_LEVEL_NORMAL; + + if (write_symbols == NO_DEBUG) + write_symbols = PREFERRED_DEBUGGING_TYPE; + } + else + debug_info_level = DINFO_LEVEL_NONE; + } + if (!OPTION_SET_P (debug_nonbind_markers_p)) debug_nonbind_markers_p = (optimize diff --git a/gcc/toplev.c b/gcc/toplev.c index 67f921afb3e..486bd8804fa 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1378,25 +1378,6 @@ process_options (bool no_backend) } } - if (flag_syntax_only) - { - write_symbols = NO_DEBUG; - profile_flag = 0; - } - - if (flag_gtoggle) - { - if (debug_info_level == DINFO_LEVEL_NONE) - { - debug_info_level = DINFO_LEVEL_NORMAL; - - if (write_symbols == NO_DEBUG) - write_symbols = PREFERRED_DEBUGGING_TYPE; - } - else - debug_info_level = DINFO_LEVEL_NONE; - } - /* CTF is supported for only C at this time. */ if (!lang_GNU_C () && ctf_debug_info_level > CTFINFO_LEVEL_NONE)