aix: default to DWARF 4.

GCC now defaults to DWARF 5.  AIX only supports DWARF 4 (3.5).

This patch overrides the default DWARF version to 4 unless explicitly
stated.

gcc/ChangeLog:

	* config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Override
	dwarf_version to 4.
	* config/rs6000/aix72.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
This commit is contained in:
David Edelsohn 2021-01-17 15:39:46 -05:00
parent 192105b6a2
commit 56b5d13e27
2 changed files with 6 additions and 0 deletions

View file

@ -62,6 +62,9 @@ do { \
/* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
} \
if (!global_options_set.x_dwarf_version) \
/* AIX only supports DWARF 4. */ \
dwarf_version = 4; \
} while (0)
#define ASM_SPEC32 "-a32"

View file

@ -62,6 +62,9 @@ do { \
/* aix/ppc doesn't support -mvsx and -maltivec with Go */ \
rs6000_isa_flags &= ~(OPTION_MASK_VSX | OPTION_MASK_ALTIVEC); \
} \
if (!global_options_set.x_dwarf_version) \
/* AIX only supports DWARF 4. */ \
dwarf_version = 4; \
} while (0)
#define ASM_SPEC32 "-a32"