public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] hppa: Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h
@ 2021-11-05 15:16 John David Anglin
  0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2021-11-05 15:16 UTC (permalink / raw)
  To: GCC Patches

The D language build on hppa64 does not include pa64-hpux.h.  It only includes pa.h.  As
a result PREFERRED_DEBUGGING_TYPE was not defined.  This caused a build error when defaults.h
was included.

The include issue might affect other defines but so far I haven't noticed any problems.

Tested on hppa64-hp-hpux11.11.

Committed to trunk.

Dave
---
Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h

This fixes D language build on hppa64-hpux11.

2021-11-05  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

	* config/pa/pa.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2_DEBUG.
	* config/pa/pa64-hpux.h (PREFERRED_DEBUGGING_TYPE): Remove define.

diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 7a313d617b0..96815ec69cb 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -136,6 +136,9 @@ extern unsigned long total_code_bytes;
     by default.  */
  #define DEFAULT_GDB_EXTENSIONS 1

+/* Select dwarf2 as the preferred debug format.  */
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+
  /* This used to be zero (no max length), but big enums and such can
     cause huge strings which killed gas.

diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h
index c25bc38ba64..3ee97a418a2 100644
--- a/gcc/config/pa/pa64-hpux.h
+++ b/gcc/config/pa/pa64-hpux.h
@@ -266,7 +266,6 @@ do {								\
  /* It looks like DWARF2 will be the easiest debug format to handle on this
     platform.  */
  #define DWARF2_DEBUGGING_INFO 1
-#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG

  /* This target uses the ELF object file format.  */
  #define OBJECT_FORMAT_ELF

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

only message in thread, other threads:[~2021-11-05 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 15:16 [committed] hppa: Move PREFERRED_DEBUGGING_TYPE define in pa64-hpux.h to pa.h John David Anglin

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).