aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-11-17 12:41:36 +1030
committerAlan Modra <amodra@gmail.com>2020-11-18 23:46:39 +1030
commit058430b4a1ed7441dfc2e167bfdb9dc89ea9a209 (patch)
tree9b7ec856174062c736b1255b25f7f7e0edae6621 /gas/testsuite
parent99fabbc9739a87ba3433e66792e93b773896790e (diff)
downloadgdb-058430b4a1ed7441dfc2e167bfdb9dc89ea9a209.zip
gdb-058430b4a1ed7441dfc2e167bfdb9dc89ea9a209.tar.gz
gdb-058430b4a1ed7441dfc2e167bfdb9dc89ea9a209.tar.bz2
Re: Stop Gas from generating line info or address ranges
* doc/as.texi (.nop): Document optional size arg. * dwarf2dbg.c (dwarf2_gen_line_info_1): Only check SEC_ALLOC when ELF. Warn whenever dwarf line number information is ignored. * frags.c (frag_offset_ignore_align_p): New function. * frags.h (frag_offset_ignore_align_p): Declare. * read.c (s_nop): Extend to support optional size arg. * testsuite/gas/elf/dwarf2-20.d: Expect warnings, and exact range. * testsuite/gas/elf/dwarf2-20.s: Emit 16 bytes worth of nops. * testsuite/gas/m68hc11/indexed12.d: Expect warnings.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/elf/dwarf2-20.d8
-rw-r--r--gas/testsuite/gas/elf/dwarf2-20.s10
-rw-r--r--gas/testsuite/gas/m68hc11/indexed12.d4
3 files changed, 16 insertions, 6 deletions
diff --git a/gas/testsuite/gas/elf/dwarf2-20.d b/gas/testsuite/gas/elf/dwarf2-20.d
index 363510a..7f3d21c 100644
--- a/gas/testsuite/gas/elf/dwarf2-20.d
+++ b/gas/testsuite/gas/elf/dwarf2-20.d
@@ -3,6 +3,12 @@
#name: DWARF2_20: debug ranges ignore non-code sections
# The mn10200 target has a pointer size of 3, but it does not use segment selectors. This confuses DWARF and readelf will complain.
#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:
@@ -13,6 +19,6 @@ Contents of the .debug_aranges section:
[ ]+Segment Size:[ ]+0
[ ]+Address[ ]+Length
-[ ]+0+000 0+00.
+[ ]+0+000 0+010
[ ]+0+000 0+000
#pass
diff --git a/gas/testsuite/gas/elf/dwarf2-20.s b/gas/testsuite/gas/elf/dwarf2-20.s
index 0ad0cc3..00b6314 100644
--- a/gas/testsuite/gas/elf/dwarf2-20.s
+++ b/gas/testsuite/gas/elf/dwarf2-20.s
@@ -1,10 +1,10 @@
.section .alloc0,"a"
- .nop
+ .nop 16
.section .alloc1,"a"
- .nop
+ .nop 16
.section .nonalloc,""
- .nop
+ .nop 16
.section .allocexec,"ax"
- .nop
+ .nop 16
.section .nonallocexec,"x"
- .nop
+ .nop 16
diff --git a/gas/testsuite/gas/m68hc11/indexed12.d b/gas/testsuite/gas/m68hc11/indexed12.d
index 1862b6a..08279d7 100644
--- a/gas/testsuite/gas/m68hc11/indexed12.d
+++ b/gas/testsuite/gas/m68hc11/indexed12.d
@@ -2,6 +2,10 @@
#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