+2021-01-21 Alan Modra <amodra@gmail.com>
+
+ 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.
+
2021-01-21 Alan Modra <amodra@gmail.com>
PR 27218
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;
}
#xfail: mn102*-*
# score-elf, tic6x-elf and xtensa-elf need special handling to support .nop 16
#xfail: score-* tic6x-* xtensa-*
-#warning: .* \.alloc0 ignored
-#warning: .* \.alloc1 ignored
-#warning: .* \.nonalloc ignored
-#warning: .* \.nonallocexec ignored
Contents of the .debug_aranges section:
run_dump_test "bignums"
run_dump_test "section-symbol-redef"
-
- load_lib gas-dg.exp
- dg-init
- dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
- dg-finish
}
+++ /dev/null
-;# { dg-do assemble }
-;# { dg-options "--gdwarf2" }
-
- .offset 40
- .nop
-
-;# { dg-warning "Warning: dwarf line number information for .* ignored" "" { xfail v850*-*-* } 0 }
#as: -m68hc12 -gdwarf2
#name: 68HC12 indexed addressing mode with 5, 9 and 16-bit offsets (indexed12)
#source: indexed12.s
-#warning: .* line number information for \.data ignored
-#warning: .* line number information for \.data ignored
-#warning: .* line number information for \.data ignored
-#warning: .* line number information for \.data ignored
.*: +file format elf32\-m68hc12