aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-02-11 15:30:55 +0000
committerNick Clifton <nickc@redhat.com>2016-02-11 15:30:55 +0000
commitbd5608dcc6a76876db06b1af1852252a4282aa2f (patch)
tree52b42f6769739207278db2a83a23425cede1f6be /gas/testsuite
parent9f5fed7852cae412443957862d759660cfcb3fd5 (diff)
downloadgdb-bd5608dcc6a76876db06b1af1852252a4282aa2f.zip
gdb-bd5608dcc6a76876db06b1af1852252a4282aa2f.tar.gz
gdb-bd5608dcc6a76876db06b1af1852252a4282aa2f.tar.bz2
Allow the .cfi_sections directive to be reissued provided that CFI generation has not yet started.
PR gas/19614 * dw2gencfi.c (cfi_sections_set): Delay setting this variable until it is actually used. (cfi_set_sections): Set cfi_sections_set to true. (dot_cfi_startproc): Likewise. (dot_cfi_endproc): Likewise. (dot_cfi_fde_data): Likewise. (cfi_finish): Likewise. (dot_cfi_sections): Do not set cfi_sections_set. * doc/as.texinfo (.cfi_sections): Note that targets can provide their own cfi section name. Also note that the directive can be reissued provided that CFI generation has not started. * testsuite/gas/mips/compact-eh-err2.s: Add .cfi_startproc and .cfi_endproc directives so that the redefinition of .cfi_sections will trigger the generation of the error message. * testsuite/gas/mips/compact-eh-err2.l: Update expected line number of error message.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/mips/compact-eh-err2.l2
-rw-r--r--gas/testsuite/gas/mips/compact-eh-err2.s3
2 files changed, 4 insertions, 1 deletions
diff --git a/gas/testsuite/gas/mips/compact-eh-err2.l b/gas/testsuite/gas/mips/compact-eh-err2.l
index c52976a..11e9b8e 100644
--- a/gas/testsuite/gas/mips/compact-eh-err2.l
+++ b/gas/testsuite/gas/mips/compact-eh-err2.l
@@ -1,2 +1,2 @@
.*: Assembler messages:
-.*:7: Error: inconsistent uses of .cfi_sections
+.*:8: Error: inconsistent uses of .cfi_sections
diff --git a/gas/testsuite/gas/mips/compact-eh-err2.s b/gas/testsuite/gas/mips/compact-eh-err2.s
index acf83d1..2ce265a 100644
--- a/gas/testsuite/gas/mips/compact-eh-err2.s
+++ b/gas/testsuite/gas/mips/compact-eh-err2.s
@@ -4,4 +4,7 @@
.align 2
.globl _Z3fooi
.cfi_sections .eh_frame_entry
+ .cfi_startproc
.cfi_sections .eh_frame
+ .cfi_endproc
+