public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-8526] bootstrap/105551 - restore nvptx build
@ 2022-06-29 9:39 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-06-29 9:39 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a6a0f3423f3053999c0eb6e7183319c1dca6455d
commit r12-8526-ga6a0f3423f3053999c0eb6e7183319c1dca6455d
Author: Richard Biener <rguenther@suse.de>
Date: Wed May 11 10:47:34 2022 +0200
bootstrap/105551 - restore nvptx build
The following makes sure to disable var-tracking if only
dwarf2-line debuginfo is present.
2022-05-11 Richard Biener <rguenther@suse.de>
PR bootstrap/105551
* opts.cc (finish_options): Also disable var-tracking if
!DWARF2_DEBUGGING_INFO.
(cherry picked from commit e7d9fdf5e0ee4c34a880139254340b4165016289)
Diff:
---
gcc/opts.cc | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/gcc/opts.cc b/gcc/opts.cc
index c9badd241a0..3a89da2dd03 100644
--- a/gcc/opts.cc
+++ b/gcc/opts.cc
@@ -1334,11 +1334,15 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
|| opts->x_flag_selective_scheduling2));
/* We know which debug output will be used so we can set flag_var_tracking
- and flag_var_tracking_uninit if the user has not specified them. Note
- we have not yet initialized debug_hooks so we might uselessly run
- var-tracking on targets without var_location debug hook support. */
+ and flag_var_tracking_uninit if the user has not specified them. */
if (opts->x_debug_info_level < DINFO_LEVEL_NORMAL
- || !dwarf_debuginfo_p (opts))
+ || !dwarf_debuginfo_p (opts)
+ /* We have not yet initialized debug hooks so match that to check
+ whether we're only doing DWARF2_LINENO_DEBUGGING_INFO. */
+#ifndef DWARF2_DEBUGGING_INFO
+ || true
+#endif
+ )
{
if ((opts_set->x_flag_var_tracking && opts->x_flag_var_tracking == 1)
|| (opts_set->x_flag_var_tracking_uninit
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-29 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 9:39 [gcc r12-8526] bootstrap/105551 - restore nvptx build Jakub Jelinek
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).