diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-17 15:37:47 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-17 15:37:47 +0000 |
commit | 515361411b7d2acf4d1deed616f6024a41fc4e2b (patch) | |
tree | 386dad5929e3765399d5b24a1e7d76be228b6d15 /gcc/unwind-pe.h | |
parent | c4bcc7e4f771d2823affb6d869d83797f21c1b0c (diff) | |
download | gcc-515361411b7d2acf4d1deed616f6024a41fc4e2b.tar.gz |
* unwind-dw2-fde-glibc.c (base_from_cb_data,
_Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
appropriate.
* unwind-dw2-fde.c (__deregister_frame_info_bases,
base_from_object, fde_split, end_fde_sort): Likewise.
* unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op,
execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
uw_init_context_1): Likewise.
* unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
_Unwind_Resume_or_Rethrow): Likewise.
* unwind-pe.h (__gxx_abort): Do not define.
(size_of_encoded_value, base_of_encoded_value,
read_encoded_value_with_base): Use gcc_unreachable.
* unwind.h (_Unwind_GetTextRelBase): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99835 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-pe.h')
-rw-r--r-- | gcc/unwind-pe.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/unwind-pe.h b/gcc/unwind-pe.h index 398165749a5..ce7d6943c0a 100644 --- a/gcc/unwind-pe.h +++ b/gcc/unwind-pe.h @@ -34,13 +34,6 @@ #ifndef GCC_UNWIND_PE_H #define GCC_UNWIND_PE_H -/* If using C++, references to abort have to be qualified with std::. */ -#if __cplusplus -#define __gxx_abort std::abort -#else -#define __gxx_abort abort -#endif - /* Pointer encodings, from dwarf2.h. */ #define DW_EH_PE_absptr 0x00 #define DW_EH_PE_omit 0xff @@ -86,8 +79,9 @@ size_of_encoded_value (unsigned char encoding) return 4; case DW_EH_PE_udata8: return 8; + default: + gcc_unreachable (); } - __gxx_abort (); } #endif @@ -118,8 +112,9 @@ base_of_encoded_value (unsigned char encoding, struct _Unwind_Context *context) return _Unwind_GetDataRelBase (context); case DW_EH_PE_funcrel: return _Unwind_GetRegionStart (context); + default: + gcc_unreachable (); } - __gxx_abort (); } #endif @@ -256,7 +251,7 @@ read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base, break; default: - __gxx_abort (); + gcc_unreachable (); } if (result != 0) |