diff options
author | Richard Henderson <rth@redhat.com> | 2011-02-15 18:01:06 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2011-02-15 18:01:06 +0000 |
commit | 4a07d625b23f6ea1284b8d4fe438e0d1edf55506 (patch) | |
tree | 5b35a732b6a2f60713664c166b4db42c51005a8f /gas/dw2gencfi.c | |
parent | 4589c19d54dbc865bdb1fc8ca5c33891e021798f (diff) | |
download | binutils-redhat-4a07d625b23f6ea1284b8d4fe438e0d1edf55506.tar.gz |
* dw2gencfi.c (dot_cfi_dummy): New.
(cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New.
* read.c (pobegin): Unconditionally call cfi_pop_insert.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r-- | gas/dw2gencfi.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c index 974cdfb8bb..59ca27ca1d 100644 --- a/gas/dw2gencfi.c +++ b/gas/dw2gencfi.c @@ -1757,6 +1757,43 @@ cfi_finish (void) } #else /* TARGET_USE_CFIPOP */ + +/* Emit an intelligable error message for missing support. */ + +static void +dot_cfi_dummy (int ignored ATTRIBUTE_UNUSED) +{ + as_bad (_("CFI is not supported for this target")); + ignore_rest_of_line (); +} + +const pseudo_typeS cfi_pseudo_table[] = + { + { "cfi_sections", dot_cfi_dummy, 0 }, + { "cfi_startproc", dot_cfi_dummy, 0 }, + { "cfi_endproc", dot_cfi_dummy, 0 }, + { "cfi_def_cfa", dot_cfi_dummy, 0 }, + { "cfi_def_cfa_register", dot_cfi_dummy, 0 }, + { "cfi_def_cfa_offset", dot_cfi_dummy, 0 }, + { "cfi_adjust_cfa_offset", dot_cfi_dummy, 0 }, + { "cfi_offset", dot_cfi_dummy, 0 }, + { "cfi_rel_offset", dot_cfi_dummy, 0 }, + { "cfi_register", dot_cfi_dummy, 0 }, + { "cfi_return_column", dot_cfi_dummy, 0 }, + { "cfi_restore", dot_cfi_dummy, 0 }, + { "cfi_undefined", dot_cfi_dummy, 0 }, + { "cfi_same_value", dot_cfi_dummy, 0 }, + { "cfi_remember_state", dot_cfi_dummy, 0 }, + { "cfi_restore_state", dot_cfi_dummy, 0 }, + { "cfi_window_save", dot_cfi_dummy, 0 }, + { "cfi_escape", dot_cfi_dummy, 0 }, + { "cfi_signal_frame", dot_cfi_dummy, 0 }, + { "cfi_personality", dot_cfi_dummy, 0 }, + { "cfi_lsda", dot_cfi_dummy, 0 }, + { "cfi_val_encoded_addr", dot_cfi_dummy, 0 }, + { NULL, NULL, 0 } + }; + void cfi_finish (void) { |