diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h index cb250e9871c..3612ed2593b 100644 --- a/gcc/config/rs6000/aix71.h +++ b/gcc/config/rs6000/aix71.h @@ -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" diff --git a/gcc/config/rs6000/aix72.h b/gcc/config/rs6000/aix72.h index 8bcaca47a7b..d34909283cc 100644 --- a/gcc/config/rs6000/aix72.h +++ b/gcc/config/rs6000/aix72.h @@ -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"