delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2021/09/09/13:38:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
Subject: [rguenther AT suse DOT de: [PATCH] Remove dbx.h, do not set
PREFERRED_DEBUGGING_TYPE from
dbxcoff.h, lynx.h]
Date: Thu, 09 Sep 2021 13:38:43 -0400
Message-ID: <xnsfyd4pjw.fsf@envy.delorie.com>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

--=-=-=
Content-Type: text/plain


Other than symify (if that), is there anything that can't handle dwarf?


--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

X-From-Line: rguenther AT suse DOT de  Thu Sep  9 09:19:15 2021
Return-Path: <rguenther AT suse DOT de>
Received: from delorie.com (localhost [127.0.0.1])
	by delorie.com (8.15.2/8.15.2) with ESMTPS id 189DJFYP029487
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
	for <dj AT delorie DOT com>; Thu, 9 Sep 2021 09:19:15 -0400
Received: from smtp-out2.suse.de (root AT localhost)
	by delorie.com (8.15.2/8.15.2/Submit) with SMTP id 189DJEqo029484
	for <dj AT delorie DOT com>; Thu, 9 Sep 2021 09:19:14 -0400
Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29])
	by delorie.com (antispam)
X-Recipient: dj AT delorie DOT com
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 0700B1FDEE;
	Thu,  9 Sep 2021 13:19:12 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa;
	t=1631193552; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:
	 mime-version:mime-version:content-type:content-type;
	bh=FlNHa0pq16tQw2nGEniQ1urs4zEIcGZRueD4au6RrXI=;
	b=JtjrNELuZybLK1iJPn9brbZW3IaJ9qF/7S3Oj2zm3wVurE+TzbrsqG3h7tbs46bHcSlDqR
	Z2GnqxWVqvqHJ5ylT/nIcLfVGDHOYmfA5BX29h8H3kU2KrUpHztBg9S3/1tRHSl2HARxak
	z1rpZ+H0uA1r78pj/PplpaPLwH7nEF4=
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;
	s=susede2_ed25519; t=1631193552;
	h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:
	 mime-version:mime-version:content-type:content-type;
	bh=FlNHa0pq16tQw2nGEniQ1urs4zEIcGZRueD4au6RrXI=;
	b=nseRM2iMCT/2H/FhaFPZV49lx4h7/V701XbacuIeI/W7/mKPiqBKsOhBe5QaNLkyCwhXof
	xQLdfu6BC6NRXCDA==
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 DF13C13B36;
	Thu,  9 Sep 2021 13:19:11 +0000 (UTC)
Received: from dovecot-director2.suse.de ([192.168.254.65])
	by imap2.suse-dmz.suse.de with ESMTPSA
	id F6WwNM8JOmF1EgAAMHmgww
	(envelope-from <rguenther AT suse DOT de>); Thu, 09 Sep 2021 13:19:11 +0000
Date: Thu, 9 Sep 2021 15:19:11 +0200 (CEST)
From: Richard Biener <rguenther AT suse DOT de>
To: gcc-patches AT gcc DOT gnu DOT org
cc: 10walls AT gmail DOT com, dj AT delorie DOT com
Subject: [PATCH] Remove dbx.h, do not set PREFERRED_DEBUGGING_TYPE from
 dbxcoff.h, lynx.h
Message-ID: <49oqn7p0-n811-366q-p55q-1s9pq9ss8n3 AT fhfr DOT qr>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-UID: 8                                                  
Status: O
Content-Length: 3781
X-RMAIL-ATTRIBUTES: --------

The following removes the unused config/dbx.h file and removes the
setting of PREFERRED_DEBUGGING_TYPE from dbxcoff.h which is
overridden by all users (djgpp/mingw/cygwin) via either including
config/i386/djgpp.h or config/i386/cygming.h

There are still circumstances where mingw and cygwin default to
STABS, namely when HAVE_GAS_PE_SECREL32_RELOC is not defined and
the target defaults to 32bit code generation.

The new style handling DBX_DEBUGGING_INFO is in line with
dbxelf.h which does not define PREFERRED_DEBUGGING_TYPE either.

The patch also removes the PREFERRED_DEBUGGING_TYPE define from
lynx.h which always follows elfos.h already defaulting to DWARF,
so the comment about STABS being the default is misleading and
outdated.  There's no listed maintainer for Lynx OS.

I have not tested this in any ways but I also have no idea how
to meaningfully do so.

OK?

Thanks,
Richard.

2021-09-09  Richard Biener  <rguenther AT suse DOT de>

	PR target/102255
	* config/dbx.h: Remove.
	* config/dbxcoff.h: Do not define PREFERRED_DEBUGGING_TYPE.
	* config/lynx.h: Likewise.
---
 gcc/config/dbx.h     | 32 --------------------------------
 gcc/config/dbxcoff.h |  6 ------
 gcc/config/lynx.h    |  7 -------
 3 files changed, 45 deletions(-)
 delete mode 100644 gcc/config/dbx.h

diff --git a/gcc/config/dbx.h b/gcc/config/dbx.h
deleted file mode 100644
index b270a07cf9f..00000000000
--- a/gcc/config/dbx.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Prefer DBX (stabs) debugging information.
-   Copyright (C) 1996-2021 Free Software Foundation, Inc.
-
-This file is part of GCC.
-
-GCC is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 3, or (at your option)
-any later version.
-
-GCC is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-Under Section 7 of GPL version 3, you are granted additional
-permissions described in the GCC Runtime Library Exception, version
-3.1, as published by the Free Software Foundation.
-
-You should have received a copy of the GNU General Public License and
-a copy of the GCC Runtime Library Exception along with this program;
-see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
-<http://www.gnu.org/licenses/>.  */
-
-/* This file causes gcc to prefer using DBX (stabs) debugging
-   information.  The configure script will add a #include of this file
-   to tm.h when --with-stabs is used for certain targets.  */
-
-#define DBX_DEBUGGING_INFO 1
-
-#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
diff --git a/gcc/config/dbxcoff.h b/gcc/config/dbxcoff.h
index d491cff961f..bd705f93711 100644
--- a/gcc/config/dbxcoff.h
+++ b/gcc/config/dbxcoff.h
@@ -25,12 +25,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #define DBX_DEBUGGING_INFO 1
 
-/* Generate DBX debugging information by default.  */
-
-#ifndef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-#endif
-
 /* Be function-relative for block and source line stab directives.  */
 
 #define DBX_BLOCKS_FUNCTION_RELATIVE 1
diff --git a/gcc/config/lynx.h b/gcc/config/lynx.h
index 020cc97352f..14387040cba 100644
--- a/gcc/config/lynx.h
+++ b/gcc/config/lynx.h
@@ -158,13 +158,6 @@ along with GCC; see the file COPYING3.  If not see
   while (0)
 #endif
 
-/* Keep the *_DEBUGGING_INFO defines from elfos.h except that stabs is
-   the default on LynxOS.  */
-
-#ifndef PREFERRED_DEBUGGING_TYPE
-# define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-#endif
-
 #ifndef TARGET_POSIX_IO
 # define TARGET_POSIX_IO
 #endif
-- 
2.31.1


--=-=-=--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019