diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2021-01-17 15:39:46 -0500 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 2021-01-17 18:10:00 -0500 |
commit | 56b5d13e27891ed1caec07826a07bb2e0621f914 (patch) | |
tree | 24cf088de2d7edc4c41f65e6a80fde0fea9c57fe | |
parent | 192105b6a2a1f24f974de98c933f372b06c1e06d (diff) | |
download | gcc-56b5d13e27891ed1caec07826a07bb2e0621f914.zip gcc-56b5d13e27891ed1caec07826a07bb2e0621f914.tar.gz gcc-56b5d13e27891ed1caec07826a07bb2e0621f914.tar.bz2 |
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.
-rw-r--r-- | gcc/config/rs6000/aix71.h | 3 | ||||
-rw-r--r-- | gcc/config/rs6000/aix72.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/rs6000/aix71.h b/gcc/config/rs6000/aix71.h index cb250e9..3612ed2 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 8bcaca4..d349092 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" |