]> gcc.gnu.org Git - gcc.git/commitdiff
s390.c (s390_asan_shadow_offset): New function.
authorJakub Jelinek <jakub@redhat.com>
Tue, 31 Jan 2017 13:50:20 +0000 (14:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 31 Jan 2017 13:50:20 +0000 (14:50 +0100)
gcc/
* config/s390/s390.c (s390_asan_shadow_offset): New function.
(TARGET_ASAN_SHADOW_OFFSET): Redefine.
libsanitizer/
* configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.

From-SVN: r245060

gcc/ChangeLog
gcc/config/s390/s390.c
libsanitizer/ChangeLog
libsanitizer/configure.tgt

index 772a2f4bad3eaf43748688b6436cbd4e080f6135..604c9bd626a389ca289bf5f2278f3d26d7f8138f 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-31  Jakub Jelinek  <jakub@redhat.com>
+
+       * config/s390/s390.c (s390_asan_shadow_offset): New function.
+       (TARGET_ASAN_SHADOW_OFFSET): Redefine.
+
 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/78597
index fe65846a4f2e9949ca9c654333450b315274387c..93377cdf7c84a8665f5fc6699dfa586d51683472 100644 (file)
@@ -15435,6 +15435,14 @@ s390_excess_precision (enum excess_precision_type type)
   return FLT_EVAL_METHOD_UNPREDICTABLE;
 }
 
+/* Implement the TARGET_ASAN_SHADOW_OFFSET hook.  */
+
+static unsigned HOST_WIDE_INT
+s390_asan_shadow_offset (void)
+{
+  return TARGET_64BIT ? HOST_WIDE_INT_1U << 52 : HOST_WIDE_INT_UC (0x20000000);
+}
+
 /* Initialize GCC target structure.  */
 
 #undef  TARGET_ASM_ALIGNED_HI_OP
@@ -15536,6 +15544,8 @@ s390_excess_precision (enum excess_precision_type type)
 #define TARGET_BUILD_BUILTIN_VA_LIST s390_build_builtin_va_list
 #undef TARGET_EXPAND_BUILTIN_VA_START
 #define TARGET_EXPAND_BUILTIN_VA_START s390_va_start
+#undef TARGET_ASAN_SHADOW_OFFSET
+#define TARGET_ASAN_SHADOW_OFFSET s390_asan_shadow_offset
 #undef TARGET_GIMPLIFY_VA_ARG_EXPR
 #define TARGET_GIMPLIFY_VA_ARG_EXPR s390_gimplify_va_arg
 
index b0a4546f960c94c2eebd5b11b40bcc77ca888a70..97728e766c60aeba11474bcc38ae51a9e62991ed 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-31  Jakub Jelinek  <jakub@redhat.com>
+
+       * configure.tgt: Enable asan and ubsan on 64-bit s390*-*-linux*.
+
 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
 
        * configure.tgt: Enable tsan and lsan on powerpc64{,le}-*-linux*.
index c59b2cd919b0505c8dd95db33ba338528cff2db9..e648051aab82a31fda7ab599133d0676da298017 100644 (file)
@@ -39,6 +39,11 @@ case "${target}" in
        ;;
   sparc*-*-linux*)
        ;;
+  s390*-*-linux*)
+       if test x$ac_cv_sizeof_void_p = x4; then
+               UNSUPPORTED=1
+       fi
+       ;;
   arm*-*-linux*)
        ;;
   aarch64*-*-linux*)
This page took 0.082872 seconds and 5 git commands to generate.