Backport manual fixes for GCC in order to fix various build and runtime errors. 79/72379/1
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Thu, 24 Mar 2016 12:12:28 +0000 (15:12 +0300)
committerMaxim Ostapenko <m.ostapenko@samsung.com>
Tue, 31 May 2016 14:36:36 +0000 (17:36 +0300)
commit39ede12005f326a6834d9648be18a8fe97f7d47d
tree6df7781be71ad9fbc33419f3008f8d3268f9a1d9
parenteb6a09268d33c4caabd006ebf06613fab125b372
Backport manual fixes for GCC in order to fix various build and runtime errors.

- Return to old hash table.
- Define missing void_zero_node macro.
- Add missing tree_int_cst_le function.
- Add missing gcc/signop.h header.
- Add missing macro.
- Add missing specialization stuff for double_int class.
- Add missing wi::clz and wi::clrsb functions. Add new file wide-int.cc.
- Remove include of double-int.h from gcc/gengtype.c and gcc/gengtype-state.c.
- Small fix for hash table. Change operator '->' to '.' because we have
  a reference to hash table, not a pointer.
- Change varpool_node::finalize_decl (var) back to varpool_finalize_decl (var).
- Fix sanopt.c optimizing part to fit old style pointer map.
- Fix for CHECK_TYPE_SIZE(__kernel_old_uid_t) and CHECK_TYPE_SIZE(__kernel_old_gid_t)
  fails on Aarch64.
- Replace gcall back to gimple_statement_call.
- Use old cgraph interface.
- Define missing void_node macro.
- Add missing SUBREG_PROMOTED_SIGN macro.
- Fix ICE in ubsan_type_descriptor due to overflow in tree_fits_uhwi_p.

Change-Id: I9741e28505c96c37fb1ff89f4721725c1a5a5eaf
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
17 files changed:
gcc/Makefile.in
gcc/asan.c
gcc/c-family/c-gimplify.c
gcc/c-family/c-ubsan.c
gcc/double-int.h
gcc/gengtype-state.c
gcc/gengtype.c
gcc/internal-fn.c
gcc/rtl.h
gcc/sanopt.c
gcc/signop.h [new file with mode: 0644]
gcc/system.h
gcc/tree.c
gcc/tree.h
gcc/ubsan.c
gcc/wide-int.cc [new file with mode: 0644]
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc