aix: Switch AIX configurtion to DWARF2 debugging
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 14 Jan 2020 18:12:59 +0000 (13:12 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Fri, 23 Apr 2021 00:11:16 +0000 (20:11 -0400)
This patch 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.

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.

gcc/ChangeLog:

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

gcc/config/rs6000/aix71.h
gcc/config/rs6000/aix72.h

index 3612ed2..807e260 100644 (file)
@@ -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"
index d349092..36c5d99 100644 (file)
@@ -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"