Allow the .cfi_sections directive to be reissued provided that CFI generation has...
authorNick Clifton <nickc@redhat.com>
Thu, 11 Feb 2016 15:30:55 +0000 (15:30 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 11 Feb 2016 15:30:55 +0000 (15:30 +0000)
commitbd5608dcc6a76876db06b1af1852252a4282aa2f
tree52b42f6769739207278db2a83a23425cede1f6be
parent9f5fed7852cae412443957862d759660cfcb3fd5
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.
gas/ChangeLog
gas/doc/as.texinfo
gas/dw2gencfi.c
gas/testsuite/gas/mips/compact-eh-err2.l
gas/testsuite/gas/mips/compact-eh-err2.s