PR27221, 058430b4a1 warnings while assembling the Linux kernel

PR 27221
	* dwarf2dbg.c (dwarf2_gen_line_info_1): Don't warn about ignored
	line number info when gas is generating it.
	* testsuite/gas/elf/dwarf2-20.d: Adjust to not expect warnings.
	* testsuite/gas/m68hc11/indexed12.d: Likewise.
	* testsuite/gas/elf/elf.exp: Don't run warn-2.
	* gas/testsuite/gas/elf/warn-2.s: Delete.
This commit is contained in:
Alan Modra
2021-01-21 16:50:02 +10:30
parent 498ff0328f
commit be07043ea8
6 changed files with 13 additions and 22 deletions

View File

@@ -514,8 +514,9 @@ dwarf2_gen_line_info_1 (symbolS *label, struct dwarf2_line_info *loc)
if ((now_seg->flags & need_flags) != need_flags)
{
/* FIXME: Add code to suppress multiple warnings ? */
as_warn ("dwarf line number information for %s ignored",
segment_name (now_seg));
if (debug_type != DEBUG_DWARF2)
as_warn ("dwarf line number information for %s ignored",
segment_name (now_seg));
return;
}