From af385746fb14957696f524cdc3263cf759f6c732 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 7 Aug 2011 16:32:20 +0000 Subject: * dw2gencfi.c (all_fde_data): Export. * dw2gencfi.h (all_fde_data): Declare. * config/tc-alpha.c (alpha_elf_md_end): Don't convert legacy unwind info to cfi unwind info if the user already has supplied some. --- gas/config/tc-alpha.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gas/config/tc-alpha.c') diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 9523ada..db3f8b4 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -4042,6 +4042,14 @@ alpha_elf_md_end (void) if (bfd_get_section_by_name (stdoutput, ".eh_frame") != NULL) return; + /* ??? In theory we could look for functions for which we have + generated unwind info via CFI directives, and those we have not. + Those we have not could still get their unwind info from here. + For now, do nothing if we've seen any CFI directives. Note that + the above test will not trigger, as we've not emitted data yet. */ + if (all_fde_data != NULL) + return; + /* Generate .eh_frame data for the unwind directives specified. */ for (p = all_frame_data; p ; p = p->next) if (p->prologue_sym) -- cgit v1.1