public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR102585-var-tracking-options-fix-v3)] Another code movement.
@ 2021-10-21 11:51 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-10-21 11:51 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:711cf8550ce00a1318ffe7127bb99cef7a3b0222

commit 711cf8550ce00a1318ffe7127bb99cef7a3b0222
Author: Martin Liska <mliska@suse.cz>
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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-21 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 11:51 [gcc(refs/users/marxin/heads/PR102585-var-tracking-options-fix-v3)] Another code movement Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).