kumquat-buildroot/package/gcc/4.9.3
Max Filippov c917e11f05 gcc: fix libsanitizer build with _FILE_OFFSET_BITS=64
After the commit f67a4f50e2 "gcc: preserve CXXFLAGS_FOR_TARGET"
target CFLAGS are passed to all libraries bundled with gcc. This breaks
libsanitizer on gcc-4.9.x when building with _FILE_OFFSET_BITS=64:

  error: size of array ‘assertion_failed__837’ is negative
  ...
  libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:837:1:
  note: in expansion of macro ‘CHECK_SIZE_AND_OFFSET’
  CHECK_SIZE_AND_OFFSET(dirent, d_ino);

This issue is fixed in the libsanitizer mainline and in gcc-5.x.
There's no issue with gcc-4.8.x and earlier.

Reported-by: Julien CORJON <corjon.j@ecagroup.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Backported from: https://llvm.org/svn/llvm-project/compiler-rt/trunk@220328
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-03-24 22:55:57 +01:00
..
100-uclibc-conf.patch
111-pr65730.patch
120-gcc-config.gcc-fix-typo-for-powerpc-e6500-cpu_is_64b.patch
130-pr43538.patch gcc: preserve CXXFLAGS_FOR_TARGET 2016-03-15 23:14:18 +01:00
140-sanitizer-Fix-build-with-_FILE_OFFSET_BITS-64.patch gcc: fix libsanitizer build with _FILE_OFFSET_BITS=64 2016-03-24 22:55:57 +01:00
301-missing-execinfo_h.patch
810-arm-softfloat-libgcc.patch
830-arm_unbreak_armv4t.patch
840-microblaze-enable-dwarf-eh-support.patch
850-libstdcxx-uclibc-c99.patch
860-cilk-wchar.patch
870-xtensa-add-mauto-litpools-option.patch
871-xtensa-reimplement-register-spilling.patch
872-xtensa-use-unwind-dw2-fde-dip-instead-of-unwind-dw2-.patch
873-xtensa-fix-_Unwind_GetCFA.patch
880-nios2_legitimize_address.patch
890-fix-m68k-compile.patch arch/m68k: re-enable the architecture 2016-03-20 15:28:44 +01:00
900-musl-support.patch
920-libgcc-remove-unistd-header.patch
1000-powerpc-link-with-math-lib.patch.conditional