From: John David Anglin Date: Fri, 1 Oct 2021 17:35:45 +0000 (+0000) Subject: Default to dwarf version 4 on hppa64-hpux X-Git-Tag: releases/gcc-11.3.0~841 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aac3b6a7e3a7b810005343e62e6822338fcb85d4;p=thirdparty%2Fgcc.git Default to dwarf version 4 on hppa64-hpux 2021-10-01 John David Anglin gcc/ChangeLog: PR debug/102373 * config/pa/pa.c (pa_option_override): Default to dwarf version 4 on hppa64-hpux. --- diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 46194ba395d1..87802ece7b93 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)