]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR sanitizer/79562 (sanitizer breaks bootstrap of x86_64-*-freebsd)
authorAndreas Tobler <andreast@gcc.gnu.org>
Fri, 17 Feb 2017 19:23:28 +0000 (20:23 +0100)
committerAndreas Tobler <andreast@gcc.gnu.org>
Fri, 17 Feb 2017 19:23:28 +0000 (20:23 +0100)
2017-02-17  Andreas Tobler  <andreast@gcc.gnu.org>

    Backported from mainline
    2017-02-16  Andreas Tobler  <andreast@gcc.gnu.org>

    PR sanitizer/79562
    * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
    upstream r294806.

From-SVN: r245547

libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc

index 13d19493495a36637b50bad604e3ae60d3b2e263..00af6a47885f5a49a0095fa07460417a66cbf8c8 100644 (file)
@@ -1,3 +1,12 @@
+2017-02-17  Andreas Tobler  <andreast@gcc.gnu.org>
+
+       Backported from mainline
+       2017-02-16  Andreas Tobler  <andreast@gcc.gnu.org>
+
+       PR sanitizer/79562
+       * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick
+       upstream r294806.
+
 2016-11-16  Markus Trippelsdorf  <markus@trippelsdorf.de>
 
        PR sanitizer/78294
index 2ef4ca22276e9ea67b6f983c1b4f10f4b98cbcab..0d5b11f6e15f55a3193ced0f329461c9b9633185 100644 (file)
 #ifdef _FILE_OFFSET_BITS
 #undef _FILE_OFFSET_BITS
 #endif
-#if SANITIZER_FREEBSD
-#define _WANT_RTENTRY
-#include <sys/param.h>
-#include <sys/socketvar.h>
-#endif
 #include <arpa/inet.h>
 #include <dirent.h>
 #include <errno.h>
@@ -353,6 +348,7 @@ namespace __sanitizer {
   unsigned struct_input_absinfo_sz = sizeof(struct input_absinfo);
   unsigned struct_input_id_sz = sizeof(struct input_id);
   unsigned struct_mtpos_sz = sizeof(struct mtpos);
+  unsigned struct_rtentry_sz = sizeof(struct rtentry);
   unsigned struct_termio_sz = sizeof(struct termio);
   unsigned struct_vt_consize_sz = sizeof(struct vt_consize);
   unsigned struct_vt_sizes_sz = sizeof(struct vt_sizes);
@@ -372,7 +368,6 @@ namespace __sanitizer {
   unsigned struct_midi_info_sz = sizeof(struct midi_info);
   unsigned struct_mtget_sz = sizeof(struct mtget);
   unsigned struct_mtop_sz = sizeof(struct mtop);
-  unsigned struct_rtentry_sz = sizeof(struct rtentry);
   unsigned struct_sbi_instrument_sz = sizeof(struct sbi_instrument);
   unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);
   unsigned struct_synth_info_sz = sizeof(struct synth_info);