aboutsummaryrefslogtreecommitdiff
path: root/gcc/unwind-dw2-fde-glibc.c
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-10-31 21:46:26 +0100
committerAndreas Jaeger <aj@gcc.gnu.org>2003-10-31 21:46:26 +0100
commita30794da5120a57b548210f7d72056ee12d8eb57 (patch)
tree5fd6f522dcfa77a58cb609edfc8c646b1149826d /gcc/unwind-dw2-fde-glibc.c
parentf3dd79b90f3f6e8c5a49be3b4e21b59052167437 (diff)
downloadgcc-a30794da5120a57b548210f7d72056ee12d8eb57.zip
gcc-a30794da5120a57b548210f7d72056ee12d8eb57.tar.gz
gcc-a30794da5120a57b548210f7d72056ee12d8eb57.tar.bz2
2003-10-31 Andreas Jaeger <aj@suse.de>,
Zack Weinberg <zack@codesourcery.com> * crtstuff.c (__register_frame_info, __register_frame_info_bases) (__deregister_frame_info, __deregister_frame_info_bases): Constify void * argument. * unwind-dw2-fde.h (struct fde_vector): Constify 'orig_data' and 'array' fields. (__register_frame_info, __register_frame_info_bases) (__deregister_frame_info, __deregister_frame_info_bases): Constify void * argument. (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments, return values, and casts of type fde *, struct dwarf_fde *, and struct dwarf_cie *. * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases) (__deregister_frame_info, __deregister_frame_info_bases): Constify void * argument. (get_cie_encoding, ): Constify struct dwarf_cie * argument. (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare) (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert) fde_split, SWAP, frame_downheap, frame_heapsort) (classify_object_over_fdes, add_fdes, linear_search_fdes, binary_search_unencoded_fdes, binary_search_single_encoding_fdes, binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE): Constify arguments, local variables, return values, and casts of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *. Use const pointer types in sizeof expressions, for clarity. * unwind-dw2-fde-glibc.c (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value. (struct unw_eh_callback_data): Constify 'ret' field. Co-Authored-By: Zack Weinberg <zack@codesourcery.com> From-SVN: r73155
Diffstat (limited to 'gcc/unwind-dw2-fde-glibc.c')
-rw-r--r--gcc/unwind-dw2-fde-glibc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/unwind-dw2-fde-glibc.c b/gcc/unwind-dw2-fde-glibc.c
index fbd4291..71fbf61 100644
--- a/gcc/unwind-dw2-fde-glibc.c
+++ b/gcc/unwind-dw2-fde-glibc.c
@@ -52,7 +52,7 @@
&& (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
-static fde * _Unwind_Find_registered_FDE (void *pc, struct dwarf_eh_bases *bases);
+static const fde * _Unwind_Find_registered_FDE (void *pc, struct dwarf_eh_bases *bases);
#define _Unwind_Find_FDE _Unwind_Find_registered_FDE
#include "unwind-dw2-fde.c"
@@ -68,7 +68,7 @@ struct unw_eh_callback_data
void *tbase;
void *dbase;
void *func;
- fde *ret;
+ const fde *ret;
};
struct unw_eh_frame_hdr
@@ -261,11 +261,11 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
return 1;
}
-fde *
+const fde *
_Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
{
struct unw_eh_callback_data data;
- fde *ret;
+ const fde *ret;
ret = _Unwind_Find_registered_FDE (pc, bases);
if (ret != NULL)