From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 83909385736C for ; Wed, 11 May 2022 08:49:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 83909385736C Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 5C36B1F38A for ; Wed, 11 May 2022 08:49:47 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 47F5D139F9 for ; Wed, 11 May 2022 08:49:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MCo8EKt4e2KoegAAMHmgww (envelope-from ) for ; Wed, 11 May 2022 08:49:47 +0000 Date: Wed, 11 May 2022 10:49:46 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] bootstrap/105551 - restore nvptx build MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Message-Id: <20220511084947.47F5D139F9@imap2.suse-dmz.suse.de> X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2022 08:49:50 -0000 The following makes sure to disable var-tracking if only dwarf2-line debuginfo is present. Bootstrapped on x86_64-unknown-linux-gnu, and nvptx by Tobias, pushed. 2022-05-11 Richard Biener PR bootstrap/105551 * opts.cc (finish_options): Also disable var-tracking if !DWARF2_DEBUGGING_INFO. --- gcc/opts.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/opts.cc b/gcc/opts.cc index cfac72a2eb0..f0c5c4db955 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 -- 2.35.3