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.
This commit is contained in:
Nick Clifton
2020-03-06 14:52:14 +00:00
parent 09f2921cc9
commit 31bf18645d
6 changed files with 88 additions and 11 deletions

View File

@@ -89,7 +89,7 @@
#endif
#ifndef DWARF2_VERSION
#define DWARF2_VERSION 2
#define DWARF2_VERSION dwarf_level
#endif
/* The .debug_aranges version has been 2 in DWARF version 2, 3 and 4. */