Re: PR27723, Internal error in select_cie_for_fde
authorAlan Modra <amodra@gmail.com>
Tue, 13 Apr 2021 23:53:12 +0000 (09:23 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 14 Apr 2021 00:07:41 +0000 (09:37 +0930)
commitd20eb46617fc6170e144f80dcbaffbc3f4ff6090
tree42547a6eaa39f4ddfb90bbd2b84a80ada9e36537
parentc48a248e3358ea11e9d1946c50b4bd548cccf939
Re: PR27723, Internal error in select_cie_for_fde

Let's make sure what we allow in the CIE initial instructions and what
select_cie_for_fde compares for a match is always in sync.  Also
correct the previous patch that allowed DW_CFA_GNU_window_save to be
part of the CIE initial instructions, which was likely a mistake.

PR 27723
* dw2gencfi.c (initial_cie_insn): New function, extracted from..
(select_cie_for_fde): ..here.  Simplify.
gas/ChangeLog
gas/dw2gencfi.c