aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2021-11-05 15:05:15 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2021-11-05 15:05:15 +0000
commita505e1fae4378254275ec292bd5299a16357de90 (patch)
tree83c585d6fb6b2a74b5c93426be2533234735be94
parentd8a62882b83d4361a2b54304f80a4d510490811d (diff)
downloadgcc-a505e1fae4378254275ec292bd5299a16357de90.zip
gcc-a505e1fae4378254275ec292bd5299a16357de90.tar.gz
gcc-a505e1fae4378254275ec292bd5299a16357de90.tar.bz2
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.
-rw-r--r--gcc/config/pa/pa.h3
-rw-r--r--gcc/config/pa/pa64-hpux.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 7a313d6..0fe3fd6 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 c25bc38..3ee97a4 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