diff options
author | Nick Clifton <nickc@redhat.com> | 2011-07-28 16:35:48 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-07-28 16:35:48 +0000 |
commit | 9aec20268e477ab268c345b58e6659b622028536 (patch) | |
tree | e84827c981988bae07a7cdd900f0ef257a9c42a7 /gas/testsuite | |
parent | d91a6875d0339cd9e4397b641678f0657c20f395 (diff) | |
download | gdb-9aec20268e477ab268c345b58e6659b622028536.zip gdb-9aec20268e477ab268c345b58e6659b622028536.tar.gz gdb-9aec20268e477ab268c345b58e6659b622028536.tar.bz2 |
* dwarf2dbg.c (out_debug_line): Ignore non-normal segments, with a
warning.
* doc/as.texinfo (Offset): Document .offset directive.
testsuite/
* gas/elf/warn-2.s: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/elf.exp | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/warn-2.s | 12 |
3 files changed, 23 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index a4ad91b..568b104 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-07-27 Nathan Sidwell <nathan@codesourcery.com> + + * gas/elf/warn-2.s: New. + * gas/elf/elf.exp: Run the new test. + 2011-07-26 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com> * gas/rx/r-bcc.d: Update expected disassembly of synthetic beq.a diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp index 6eff0dd..0f5e97b 100644 --- a/gas/testsuite/gas/elf/elf.exp +++ b/gas/testsuite/gas/elf/elf.exp @@ -181,4 +181,10 @@ if { ([istarget "*-*-*elf*"] run_dump_test "dwarf2-4" run_dump_test "bad-section-flag" run_dump_test "bad-size" + +load_lib gas-dg.exp +dg-init +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" "" +dg-finish + } diff --git a/gas/testsuite/gas/elf/warn-2.s b/gas/testsuite/gas/elf/warn-2.s new file mode 100644 index 0000000..0d69f10 --- /dev/null +++ b/gas/testsuite/gas/elf/warn-2.s @@ -0,0 +1,12 @@ +;# { dg-do assemble } +;# { dg-skip-if "DWARF2 output not supported" { mcore-*-* mn10*-*-* moxie-*-* v850-*-* } } +;# { dg-skip-if "no NOP opcode" { mmix-*-* openrisc-*-* or32-*-* } } +;# { dg-options "--gdwarf2 --defsym ia64=0" } +;# { dg-options "--gdwarf2 --defsym ia64=1" { target ia64-*-* i370-*-* } } + .offset 40 +.ifeq ia64 - 1 + nop 0 +.else + nop +.endif +;# { dg-warning "Warning: dwarf line number information for .* ignored" "" { target *-*-* } 0 } |