aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2021-10-01 17:34:09 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2021-10-01 17:34:09 +0000
commitf1710910087fb1f4a7706e9ce838163ffcbc50b4 (patch)
tree4ef06ca8dce3cf5ee735a99deeca93881a8a6e70 /gcc
parentcb4b82285b647ef515f649bb165a7dc20599ee84 (diff)
downloadgcc-f1710910087fb1f4a7706e9ce838163ffcbc50b4.zip
gcc-f1710910087fb1f4a7706e9ce838163ffcbc50b4.tar.gz
gcc-f1710910087fb1f4a7706e9ce838163ffcbc50b4.tar.bz2
Default to dwarf version 4 on hppa64-hpux
2021-10-01 John David Anglin <danglin@gcc.gnu.org> gcc/ChangeLog: PR debug/102373 * config/pa/pa.c (pa_option_override): Default to dwarf version 4 on hppa64-hpux.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/pa/pa.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 0614302..69ba5bd 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -541,6 +541,16 @@ pa_option_override (void)
write_symbols = NO_DEBUG;
}
+ if (TARGET_64BIT && TARGET_HPUX)
+ {
+ /* DWARF5 is not supported by gdb. Don't emit DWARF5 unless
+ specifically selected. */
+ if (!global_options_set.x_dwarf_strict)
+ dwarf_strict = 1;
+ if (!global_options_set.x_dwarf_version)
+ dwarf_version = 4;
+ }
+
/* We only support the "big PIC" model now. And we always generate PIC
code when in 64bit mode. */
if (flag_pic == 1 || TARGET_64BIT)