aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ia64.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-03-06 14:52:14 +0000
committerNick Clifton <nickc@redhat.com>2020-03-06 14:52:14 +0000
commit31bf18645d98b4d3d7357353be840e320649a67d (patch)
tree19e76bea23da3a56de6a64b949a4a8f3cd810fbd /gas/config/tc-ia64.h
parent09f2921cc95466db159cbf0476e1a8eeeee1806b (diff)
downloadgdb-31bf18645d98b4d3d7357353be840e320649a67d.zip
gdb-31bf18645d98b4d3d7357353be840e320649a67d.tar.gz
gdb-31bf18645d98b4d3d7357353be840e320649a67d.tar.bz2
Add support for --dwarf-[3|4|5] to assembler command line.
PR 25612 * as.c (dwarf_level): Define. (show_usage): Add --gdwarf-3, --gdwarf-4 and --gdwarf-5. (parse_args): Add support for the new options. as.h (dwarf_level): Prototype. * dwarf2dbg.c (DWARF2_VERSION): Use dwarf_level as default version value. * config/tc-ia64.h (DWARF2_VERISION): Update definition. (DWARF2_LINE_VERSION): Remove definition. * doc/as.texi: Document the new options.
Diffstat (limited to 'gas/config/tc-ia64.h')
-rw-r--r--gas/config/tc-ia64.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gas/config/tc-ia64.h b/gas/config/tc-ia64.h
index b8abcf6..3a50f86 100644
--- a/gas/config/tc-ia64.h
+++ b/gas/config/tc-ia64.h
@@ -325,6 +325,5 @@ typedef struct unwind_record
/* VMS backtraces expect dwarf version 3. */
#ifdef TE_VMS
-#define DWARF2_VERSION 3
-#define DWARF2_LINE_VERSION 3
+#define DWARF2_VERSION (dwarf_level < 3 ? 3 : debug_level)
#endif