diff options
author | Ben Elliston <bje@au.ibm.com> | 2009-07-02 04:50:20 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2009-07-02 14:50:20 +1000 |
commit | 2011dbb082aff3399a262ca1bb23958c62fd0656 (patch) | |
tree | 09f1b720824436fdf7ae58dacda9aaeb1bd810ee /gcc | |
parent | c57801d4ac1e5c6e77ca97743d2376a0da13047f (diff) | |
download | gcc-2011dbb082aff3399a262ca1bb23958c62fd0656.zip gcc-2011dbb082aff3399a262ca1bb23958c62fd0656.tar.gz gcc-2011dbb082aff3399a262ca1bb23958c62fd0656.tar.bz2 |
unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move pc_low and pc_high declarations to the top of the function.
* unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
pc_low and pc_high declarations to the top of the function.
From-SVN: r149167
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/unwind-dw2-fde-glibc.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6248ca1..68e0f33 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-07-02 Ben Elliston <bje@au.ibm.com> + + * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move + pc_low and pc_high declarations to the top of the function. + 2009-07-01 DJ Delorie <dj@redhat.com> * config/mep/mep.c (mep_handle_option): Leave IVC2 control diff --git a/gcc/unwind-dw2-fde-glibc.c b/gcc/unwind-dw2-fde-glibc.c index 0e3d0a3..8f6473db 100644 --- a/gcc/unwind-dw2-fde-glibc.c +++ b/gcc/unwind-dw2-fde-glibc.c @@ -135,7 +135,8 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr) const struct unw_eh_frame_hdr *hdr; _Unwind_Ptr eh_frame; struct object ob; - + _Unwind_Ptr pc_low = 0, pc_high = 0; + struct ext_dl_phdr_info { ElfW(Addr) dlpi_addr; @@ -226,8 +227,6 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr) + sizeof (info->dlpi_phnum)) return -1; - _Unwind_Ptr pc_low = 0, pc_high = 0; - /* See if PC falls into one of the loaded segments. Find the eh_frame segment at the same time. */ for (n = info->dlpi_phnum; --n >= 0; phdr++) |