diff mbox series

Switch AIX configuration to DWARF2 debugging

Message ID CAGWvnyncrw=4rJ7knF=KT2oahTJJMxMFdKjGFFJ57LhEQJEb2Q@mail.gmail.com
State New
Headers show
Series Switch AIX configuration to DWARF2 debugging | expand

Commit Message

David Edelsohn April 23, 2021, 12:08 a.m. UTC
As requested at the end of Stage 4, this patch changes the debugging
format for AIX configuration of GCC to "DWARF2".  This is in
preparation for removing stabs debugging support from GCC.

The rs6000 configuration files remain somewhat intertwined with the
stabs debugging support, but the configuration no longer generates
stabs debugging information.

I have been bootstrapping and testing GCC with this configuration for years.

This patch means that earlier releases (Technology Levels) of AIX 7.1
and 7.2, prior to DWARF support and fixes, cannot build GCC or support
GCC.

Thanks, David

* config/rs6000/aix71.h (PREFERRED_DEBUGGING_TYPE): Change to DWARF2_DEBUG.
* config/rs6000/aix72.h (PREFERRED_DEBUGGING_TYPE): Same.
diff mbox series

Patch

diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h
index 3612ed2593b..807e260a175 100644
--- a/gcc/config/rs6000/aix71.h
+++ b/gcc/config/rs6000/aix71.h
@@ -272,9 +272,9 @@  extern long long int    atoll(const char *);

 #define TARGET_AIX_VERSION 71

-/* AIX 7.1 supports DWARF3 debugging, but XCOFF remains the default.  */
+/* AIX 7.1 supports DWARF3+ debugging.  */
 #define DWARF2_DEBUGGING_INFO 1
-#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 #define DEBUG_INFO_SECTION     "0x10000"
 #define DEBUG_LINE_SECTION     "0x20000"
 #define DEBUG_PUBNAMES_SECTION "0x30000"

diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h
index d34909283cc..36c5d994439 100644
--- a/gcc/config/rs6000/aix72.h
+++ b/gcc/config/rs6000/aix72.h
@@ -273,9 +273,9 @@  extern long long int    atoll(const char *);

 #define TARGET_AIX_VERSION 72

-/* AIX 7.2 supports DWARF3 debugging, but XCOFF remains the default.  */
+/* AIX 7.2 supports DWARF3+ debugging.  */
 #define DWARF2_DEBUGGING_INFO 1
-#define PREFERRED_DEBUGGING_TYPE XCOFF_DEBUG
+#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 #define DEBUG_INFO_SECTION     "0x10000"
 #define DEBUG_LINE_SECTION     "0x20000"
 #define DEBUG_PUBNAMES_SECTION "0x30000"