libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 00/57] patchset v2


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 00/57] patchset v2
Date: Fri, 21 Sep 2012 14:11:01 +0300

Hello,

Here is v2 of the patchset that I posted earlier this week. As suggested by
Mike, the attribute macros are now split into a new header that is also taken
into use in the tests. I also slapped in a few more patches, enjoy.

May be also pulled from:
  git://github.com/rantala/libunwind.git for-upstream

Tommi Rantala (57):
  Pull attribute macros from `libunwind_i.h' to new header `compiler.h'
  Remove unneeded `atomic_ops.h' inclusion in `dwarf.h'
  Use GCC __BIGGEST_ALIGNMENT__ for sos-pool MAX_ALIGN
  Workaround non-power-of-two i386 sizeof(long double) in
    src/mi/mempool.c
  Align `sos_memory' to MAX_ALIGN
  Simplify `sos_alloc()' implementation
  Remove unneeded `cmpxchg_ptr()' from include/libunwind_i.h
  Use __sync builtin atomics on all architectures if available
  Invert tdep_init() flag logic
  Apply UNW_ALIGN more in src/mi/mempool.c
  IA64: avoid -Wunused-but-set-variable in src/ia64/init.h
  Remove unused src/x86_64/Lis_signal_frame.c
  PPC: remove unused `PAGE_START' macro from Ginit.c
  HPPA: properly check dwarf_get() return value in unw_step()
  HPPA: kludge out unused variable in unw_get_save_loc() stub
  Default to non-verbose mode in Ltest-cxx-exceptions
  Clear out `ip' to avoid -Wuninitialized warning in
    tests/test-coredump-unwind.c
  Avoid -Wunused-value warning in tests/Gia64-test-stack.c
  Workaround volatileness warning in tests/ia64-test-setjmp.c
  Annotate potentially unused variable in tests/Gtest-bt.c
  Annotate potentially unused variable in tests/Gtest-trace.c
  Annotate potentially unused variable in tests/test-coredump-unwind.c
  Drop `optimize' attribute in tests/test-varargs.c
  Rename `test-varargs' to `Ltest-varargs'
  Remove unneeded `config.h' inclusion in Gtest-nomalloc
  Cleanup dynamically allocated memory before exit in tests
  Rename `rs-race' to `Lrs-race'
  Call `unw_backtrace()' explicitly in test-flush-cache.c
  Roll `test-nocalloc' into `Ltest-nocalloc.c'
  Call snprintf() from signal handler only if required in
    test-async-sig
  Nuke HAVE_BACKTRACE
  Stop including `memory.h'
  MIPS coredump support
  Enable coredump library build on ARM by default
  SuperH port
  ppc32: include `compiler.h' for UNUSED in ucontext_i.h
  ppc32: `UNW_PPC32_REGS' fixlet
  IA64: give prototype for `ia64_find_unwind_table()'
  Set `_UPT_reg_offset' read only
  Constify `dwarf_to_unw_regnum_map'
  Constify `operands' in src/dwarf/Gexpr.c
  IA64: constify read only arrays in `tdep_init()'
  Plug in `ARRAY_SIZE' in ptrace code
  Define and use `NOINLINE'
  Define and use `WEAK'
  Define and use `CONST_ATTR'
  Plug in `ALIAS' attribute
  Use `UNUSED' in tests
  Use shared `ARRAY_SIZE' in IA64 tests
  Teach autotools current ARM `ex_tables.h' location
  Fix second operand read in dwarf_eval_expr()
  Apply `define_lock()'
  Prefer NULL over zero
  Replace empty argument lists with `void' in tests
  Remove unused variable in Ltest-nocalloc
  Add arguments to malloc and calloc prototypes in Ltest-nocalloc
  Assign `func' just once in Ltest-nocalloc glibc case

 Makefile.am                                        |    9 +-
 README                                             |    1 +
 configure.ac                                       |   20 +-
 include/compiler.h                                 |   74 ++++++
 include/dwarf.h                                    |    8 -
 include/dwarf_i.h                                  |    2 +-
 include/libunwind-mips.h                           |    2 +
 include/{libunwind-mips.h => libunwind-sh.h}       |  115 +++------
 include/libunwind.h.in                             |    2 +
 include/libunwind_i.h                              |   86 +------
 include/tdep-arm/libunwind_i.h                     |    4 +-
 include/tdep-hppa/libunwind_i.h                    |    4 +-
 include/tdep-ia64/libunwind_i.h                    |    8 +-
 include/tdep-mips/libunwind_i.h                    |    4 +-
 include/tdep-ppc32/libunwind_i.h                   |    4 +-
 include/tdep-ppc64/libunwind_i.h                   |    4 +-
 .../Gglobal.c => include/tdep-sh/dwarf-config.h    |   42 ++-
 .../Gget_accessors.c => include/tdep-sh/jmpbuf.h   |   34 ++-
 include/{tdep-hppa => tdep-sh}/libunwind_i.h       |   33 +--
 include/tdep-x86/libunwind_i.h                     |    4 +-
 include/tdep-x86_64/libunwind_i.h                  |    4 +-
 include/tdep/dwarf-config.h                        |    2 +
 include/tdep/libunwind_i.h.in                      |    2 +
 src/Makefile.am                                    |   36 ++-
 src/arm/Gex_tables.c                               |    2 +-
 src/arm/Gglobal.c                                  |    8 +-
 src/arm/Ginit_local.c                              |    2 +-
 src/arm/Ginit_remote.c                             |    2 +-
 src/arm/unwind_i.h                                 |    1 -
 src/coredump/_UCD_access_reg_linux.c               |   40 ++-
 src/dwarf/Gexpr.c                                  |    4 +-
 src/dwarf/Gfind_proc_info-lsb.c                    |    2 +-
 src/dwarf/Gparser.c                                |    8 +-
 src/hppa/Gget_save_loc.c                           |    2 +-
 src/hppa/Gglobal.c                                 |    8 +-
 src/hppa/Ginit_local.c                             |    2 +-
 src/hppa/Ginit_remote.c                            |    2 +-
 src/hppa/Gstep.c                                   |    2 +-
 src/hppa/get_accessors.c                           |    8 +-
 src/hppa/unwind_i.h                                |    1 -
 src/ia64/Gglobal.c                                 |   11 +-
 src/ia64/Ginit_local.c                             |    2 +-
 src/ia64/Ginit_remote.c                            |    2 +-
 src/ia64/Gparser.c                                 |    2 +-
 src/ia64/Gscript.c                                 |    2 +-
 src/ia64/init.h                                    |   10 +-
 src/ia64/unwind_i.h                                |    2 +-
 src/mi/Gget_accessors.c                            |    2 +-
 src/mi/Gset_caching_policy.c                       |    2 +-
 src/mi/backtrace.c                                 |    2 +-
 src/mi/dyn-register.c                              |    2 +-
 src/mi/flush_cache.c                               |    2 +-
 src/mi/mempool.c                                   |   70 ++---
 src/mips/Gget_save_loc.c                           |    1 +
 src/mips/Gglobal.c                                 |    8 +-
 src/mips/Ginit.c                                   |    4 +-
 src/mips/Ginit_local.c                             |    2 +-
 src/mips/Ginit_remote.c                            |    2 +-
 src/mips/Gregs.c                                   |    4 +
 src/mips/getcontext.S                              |    8 +
 src/mips/init.h                                    |    4 +-
 src/mips/offsets.h                                 |    3 +
 src/mips/regname.c                                 |    2 +
 src/mips/unwind_i.h                                |    1 -
 src/os-linux.h                                     |    4 +-
 src/ppc/Ginit_local.c                              |    2 +-
 src/ppc/Ginit_remote.c                             |    2 +-
 src/ppc32/Gglobal.c                                |   10 +-
 src/ppc32/Ginit.c                                  |    5 -
 src/ppc32/ucontext_i.h                             |    1 +
 src/ppc32/unwind_i.h                               |    1 -
 src/ppc64/Gglobal.c                                |   10 +-
 src/ppc64/Ginit.c                                  |    5 -
 src/ppc64/unwind_i.h                               |    1 -
 src/ptrace/_UPT_access_fpreg.c                     |    4 +-
 src/ptrace/_UPT_access_reg.c                       |    4 +-
 src/ptrace/_UPT_internal.h                         |    2 +-
 src/ptrace/_UPT_reg_offset.c                       |    7 +-
 .../Ginit_remote.c => sh/Gcreate_addr_space.c}     |   57 ++--
 src/{hppa/get_accessors.c => sh/Gget_proc_info.c}  |   22 +-
 src/{hppa => sh}/Gget_save_loc.c                   |   32 ++-
 src/{mips => sh}/Gglobal.c                         |   15 +-
 src/{mips => sh}/Ginit.c                           |   58 ++---
 src/{arm => sh}/Ginit_local.c                      |    2 +-
 src/{arm => sh}/Ginit_remote.c                     |    2 +-
 src/sh/Gis_signal_frame.c                          |  119 +++++++++
 src/{mips => sh}/Gregs.c                           |   62 ++---
 src/sh/Gresume.c                                   |  165 ++++++++++++
 src/sh/Gstep.c                                     |  117 +++++++++
 .../Lis_signal_frame.c => sh/Lcreate_addr_space.c} |    2 +-
 .../Lis_signal_frame.c => sh/Lget_proc_info.c}     |    2 +-
 .../Lis_signal_frame.c => sh/Lget_save_loc.c}      |    2 +-
 src/{x86_64/Lis_signal_frame.c => sh/Lglobal.c}    |    2 +-
 src/{x86_64/Lis_signal_frame.c => sh/Linit.c}      |    2 +-
 .../Lis_signal_frame.c => sh/Linit_local.c}        |    2 +-
 .../Lis_signal_frame.c => sh/Linit_remote.c}       |    2 +-
 src/{x86_64 => sh}/Lis_signal_frame.c              |    0
 src/{x86_64/Lis_signal_frame.c => sh/Lregs.c}      |    2 +-
 src/{x86_64/Lis_signal_frame.c => sh/Lresume.c}    |    2 +-
 src/{x86_64/Lis_signal_frame.c => sh/Lstep.c}      |    2 +-
 src/sh/gen-offsets.c                               |   51 ++++
 src/sh/init.h                                      |   74 ++++++
 src/{mi/Gget_accessors.c => sh/is_fpreg.c}         |   12 +-
 src/sh/offsets.h                                   |   32 +++
 src/{mips => sh}/regname.c                         |   32 ++-
 src/sh/siglongjmp.S                                |    8 +
 src/{arm => sh}/unwind_i.h                         |   19 +-
 src/x86/Gglobal.c                                  |   10 +-
 src/x86/Ginit_local.c                              |    2 +-
 src/x86/Ginit_remote.c                             |    2 +-
 src/x86/unwind_i.h                                 |    1 -
 src/x86_64/Gglobal.c                               |   10 +-
 src/x86_64/Ginit.c                                 |    2 +-
 src/x86_64/Ginit_local.c                           |    2 +-
 src/x86_64/Ginit_remote.c                          |    4 +-
 src/x86_64/Gtrace.c                                |    8 +-
 src/x86_64/unwind_i.h                              |    1 -
 tests/Gia64-test-nat.c                             |    7 +-
 tests/Gia64-test-rbs.c                             |    7 +-
 tests/Gia64-test-stack.c                           |    5 +-
 tests/Gperf-simple.c                               |    9 +-
 tests/Gperf-trace.c                                |   12 +-
 tests/Gtest-bt.c                                   |   18 +-
 tests/Gtest-concurrent.c                           |    8 +-
 tests/Gtest-dyn1.c                                 |    6 +-
 tests/Gtest-init.cxx                               |    3 +-
 tests/Gtest-nocalloc.c                             |  140 ----------
 tests/Gtest-nomalloc.c                             |   10 +-
 tests/Gtest-resume-sig.c                           |    8 +-
 tests/Gtest-trace.c                                |   18 +-
 tests/{rs-race.c => Lrs-race.c}                    |  271 ++++++++++----------
 tests/Ltest-cxx-exceptions.cxx                     |   14 +-
 tests/Ltest-nocalloc.c                             |  136 +++++++++-
 tests/{test-varargs.c => Ltest-varargs.c}          |   17 +-
 tests/Makefile.am                                  |   12 +-
 tests/crasher.c                                    |   12 +-
 tests/ia64-test-setjmp.c                           |    3 +-
 tests/mapper.c                                     |    2 +-
 tests/test-async-sig.c                             |    7 +-
 tests/test-coredump-unwind.c                       |    9 +-
 tests/test-flush-cache.c                           |   13 +-
 tests/test-init-remote.c                           |    4 +-
 tests/test-mem.c                                   |    4 +-
 tests/test-proc-info.c                             |   61 ++---
 tests/test-ptrace-misc.c                           |    4 +-
 tests/test-ptrace.c                                |    3 +-
 tests/test-setjmp.c                                |    4 +-
 tests/test-static-link-loc.c                       |    3 +-
 tests/test-strerror.c                              |    3 +-
 149 files changed, 1627 insertions(+), 953 deletions(-)
 create mode 100644 include/compiler.h
 copy include/{libunwind-mips.h => libunwind-sh.h} (54%)
 copy src/mips/Gglobal.c => include/tdep-sh/dwarf-config.h (64%)
 copy src/mi/Gget_accessors.c => include/tdep-sh/jmpbuf.h (73%)
 copy include/{tdep-hppa => tdep-sh}/libunwind_i.h (92%)
 copy src/{x86/Ginit_remote.c => sh/Gcreate_addr_space.c} (63%)
 copy src/{hppa/get_accessors.c => sh/Gget_proc_info.c} (80%)
 copy src/{hppa => sh}/Gget_save_loc.c (73%)
 copy src/{mips => sh}/Gglobal.c (81%)
 copy src/{mips => sh}/Ginit.c (71%)
 copy src/{arm => sh}/Ginit_local.c (98%)
 copy src/{arm => sh}/Ginit_remote.c (97%)
 create mode 100644 src/sh/Gis_signal_frame.c
 copy src/{mips => sh}/Gregs.c (65%)
 create mode 100644 src/sh/Gresume.c
 create mode 100644 src/sh/Gstep.c
 copy src/{x86_64/Lis_signal_frame.c => sh/Lcreate_addr_space.c} (77%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Lget_proc_info.c} (78%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Lget_save_loc.c} (78%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Lglobal.c} (78%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Linit.c} (78%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Linit_local.c} (78%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Linit_remote.c} (78%)
 copy src/{x86_64 => sh}/Lis_signal_frame.c (100%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Lregs.c} (78%)
 copy src/{x86_64/Lis_signal_frame.c => sh/Lresume.c} (78%)
 rename src/{x86_64/Lis_signal_frame.c => sh/Lstep.c} (78%)
 create mode 100644 src/sh/gen-offsets.c
 create mode 100644 src/sh/init.h
 copy src/{mi/Gget_accessors.c => sh/is_fpreg.c} (82%)
 create mode 100644 src/sh/offsets.h
 copy src/{mips => sh}/regname.c (66%)
 create mode 100644 src/sh/siglongjmp.S
 copy src/{arm => sh}/unwind_i.h (75%)
 delete mode 100644 tests/Gtest-nocalloc.c
 rename tests/{rs-race.c => Lrs-race.c} (70%)
 rename tests/{test-varargs.c => Ltest-varargs.c} (76%)

-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]