1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 00:27:39 +01:00
libunwind-eh_elf/src
Paul Pluzhnikov e63cadf76d Remove unnecessary calls to labs()
Greetings,

Roman reports that Clang warns on unnecessary calls to labs():

  taking the absolute value of unsigned type 'unw_word_t' (aka
'unsigned long') has no effect [-Werror,-Wabsolute-value]

Since rs->reg[...].val is unw_word_t and unsigned on all platforms,
this patch removes the unnecessary calls to labs().

Tested on Linux x86_64, no regressions.

Thanks,
--
Paul Pluzhnikov
2014-08-15 13:01:47 -07:00
..
aarch64 AARCH64: Change Debug calls to use %lx instead of %x. 2014-03-07 22:52:24 -08:00
arm Add basic support for the QNX operating system 2013-05-13 10:50:17 -05:00
coredump Add Cflags keyword to pkg-config metadata files 2013-08-26 05:40:19 -07:00
dwarf Implement DWARF DW_CFA_val_expression for x86_64 2014-02-08 20:19:20 -08:00
hppa Apply `define_lock()' 2012-09-28 14:51:21 +03:00
ia64 Define and use `CONST_ATTR' 2012-09-28 14:51:21 +03:00
mi Correct name returned by get_proc_name() for some frames. 2014-08-15 13:01:40 -07:00
mips Prefer NULL over zero 2012-09-28 14:51:21 +03:00
ppc Support powerpc64le-linux platform 2013-12-27 07:09:06 -08:00
ppc32 Support powerpc64le-linux platform 2013-12-27 07:09:06 -08:00
ppc64 Support powerpc64le-linux platform 2013-12-27 07:09:06 -08:00
ptrace Add Cflags keyword to pkg-config metadata files 2013-08-26 05:40:19 -07:00
setjmp Add Cflags keyword to pkg-config metadata files 2013-08-26 05:40:19 -07:00
sh Support building with older compilers. 2012-11-24 21:37:07 -08:00
unwind Missing -llzma in libunwind.pc 2013-09-11 00:11:17 -07:00
x86 Adjust use_prev_instr for syscall and frame-chain frames. 2014-08-15 13:01:36 -07:00
x86_64 Remove unnecessary calls to labs() 2014-08-15 13:01:47 -07:00
elf32.c Do nothing of UNW_REMOTE_ONLY is defined. 2003-02-15 03:10:30 +00:00
elf32.h Silence warning about symbol redefinition. 2010-03-07 17:27:41 +02:00
elf64.c Do nothing of UNW_REMOTE_ONLY is defined. 2003-02-15 03:10:30 +00:00
elf64.h Silence warning about symbol redefinition. 2010-03-07 17:27:41 +02:00
elfxx.c Do not compute load offset for MiniDebugInfo 2014-06-07 18:07:06 -07:00
elfxx.h Remove one of duplicated declarations of `get_proc_name' 2013-09-25 07:39:16 -07:00
libunwind-generic.pc.in Add Cflags keyword to pkg-config metadata files 2013-08-26 05:40:19 -07:00
Makefile.am link sublibs against liblzma as needed 2014-02-22 10:53:39 -08:00
os-freebsd.c freebsd: Workaround for old FreeBSD kernels 2012-05-14 23:07:52 -07:00
os-hpux.c Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY 2011-10-15 23:10:28 -07:00
os-linux.c Have tdep_get_elf_image available in case of UNW_REMOTE_ONLY 2011-10-15 23:10:28 -07:00
os-linux.h Prefer NULL over zero 2012-09-28 14:51:21 +03:00
os-qnx.c Fixup long lines. 2013-05-18 23:20:03 -07:00