From a334319f6530564d22e775935d9c91663623a1b4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Dec 2004 20:10:10 +0000 Subject: (CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4. --- sysdeps/generic/unwind-dw2.c | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'sysdeps/generic/unwind-dw2.c') diff --git a/sysdeps/generic/unwind-dw2.c b/sysdeps/generic/unwind-dw2.c index d818e5dfd8..619250e614 100644 --- a/sysdeps/generic/unwind-dw2.c +++ b/sysdeps/generic/unwind-dw2.c @@ -1,6 +1,6 @@ /* DWARF2 exception handling and frame unwind runtime interface routines. - Copyright (C) 1997,1998,1999,2000,2001,2002,2003,2005,2006 - Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -257,7 +256,7 @@ extract_cie_info (struct dwarf_cie *cie, struct _Unwind_Context *context, _Unwind_FrameState *fs) { const unsigned char *aug = cie->augmentation; - const unsigned char *p = aug + strlen ((const char *) aug) + 1; + const unsigned char *p = aug + strlen (aug) + 1; const unsigned char *ret = NULL; _Unwind_Word utmp; @@ -838,16 +837,9 @@ execute_cfa_program (const unsigned char *insn_ptr, case DW_CFA_restore_state: { struct frame_state_reg_info *old_rs = fs->regs.prev; -#ifdef _LIBC - if (old_rs == NULL) - __libc_fatal ("invalid DWARF unwind data"); - else -#endif - { - fs->regs = *old_rs; - old_rs->prev = unused_rs; - unused_rs = old_rs; - } + fs->regs = *old_rs; + old_rs->prev = unused_rs; + unused_rs = old_rs; } break; @@ -905,16 +897,12 @@ execute_cfa_program (const unsigned char *insn_ptr, break; case DW_CFA_GNU_window_save: - /* ??? Hardcoded for SPARC register window configuration. - At least do not do anything for archs which explicitly - define a lower register number. */ -#if DWARF_FRAME_REGISTERS >= 32 + /* ??? Hardcoded for SPARC register window configuration. */ for (reg = 16; reg < 32; ++reg) { fs->regs.reg[reg].how = REG_SAVED_OFFSET; fs->regs.reg[reg].loc.offset = (reg - 16) * sizeof (void *); } -#endif break; case DW_CFA_GNU_args_size: -- cgit v1.2.3