]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
align-7.c: Skip for -flto -fno-fat-lto-objects.
authorMarek Polacek <polacek@redhat.com>
Mon, 10 Nov 2014 10:07:34 +0000 (10:07 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 10 Nov 2014 10:07:34 +0000 (10:07 +0000)
* c-c++-common/ubsan/align-7.c: Skip for -flto -fno-fat-lto-objects.
* c-c++-common/ubsan/align-8.c: Likewise.
* g++.dg/ubsan/null-4.C: Likewise.
* g++.dg/ubsan/null-5.C: Likewise.

From-SVN: r217282

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/align-7.c
gcc/testsuite/c-c++-common/ubsan/align-8.c
gcc/testsuite/g++.dg/ubsan/null-4.C
gcc/testsuite/g++.dg/ubsan/null-5.C

index 8c9df3d70c4ed387951d6f812c52427b103aca16..9695c2eece640c15ad23c25a1e7c255a40000ae7 100644 (file)
@@ -1,3 +1,10 @@
+2014-11-10  Marek Polacek  <polacek@redhat.com>
+
+       * c-c++-common/ubsan/align-7.c: Skip for -flto -fno-fat-lto-objects.
+       * c-c++-common/ubsan/align-8.c: Likewise.
+       * g++.dg/ubsan/null-4.C: Likewise.
+       * g++.dg/ubsan/null-5.C: Likewise.
+
 2014-11-10  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc.misc-tests/gcov-16.c: New test.
index 4a18d8d5f05ab2963ab25e56c31af9098cee9507..68c9135fa4272c7babc9f7ce8376c9374410026b 100644 (file)
@@ -1,6 +1,7 @@
 /* Limit this to known non-strict alignment targets.  */
 /* { dg-do run { target { i?86-*-linux* x86_64-*-linux* } } } */
 /* { dg-options "-O -fsanitize=alignment -fno-sanitize-recover=alignment -fdump-tree-sanopt-details" } */
+/* { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } } */
 /* { dg-shouldfail "ubsan" } */
 
 struct S { int a; char b; long long c; short d[10]; };
@@ -27,6 +28,6 @@ main ()
   return 0;
 }
 
-/* { dg-output "\.c:15:\[0-9]*: \[^\n\r]*member access within misaligned address 0x\[0-9a-fA-F]* for type 'struct S', which requires \[48] byte alignment.*" } */
+/* { dg-output "\.c:16:\[0-9]*: \[^\n\r]*member access within misaligned address 0x\[0-9a-fA-F]* for type 'struct S', which requires \[48] byte alignment.*" } */
 /* { dg-final { scan-tree-dump-times "Optimizing" 4 "sanopt"} } */
 /* { dg-final { cleanup-tree-dump "sanopt" } } */
index b930162d92e13be5da56ac9d4ded99b3b8a33770..4e43a09ff3a2aaa62a3fff65b006dd7c8f343b49 100644 (file)
@@ -1,6 +1,7 @@
 /* Limit this to known non-strict alignment targets.  */
 /* { dg-do run { target { i?86-*-linux* x86_64-*-linux* } } } */
 /* { dg-options "-O -fsanitize=alignment -fsanitize-undefined-trap-on-error -fdump-tree-sanopt-details" } */
+/* { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } } */
 /* { dg-shouldfail "ubsan" } */
 
 struct S { int a; char b; long long c; short d[10]; };
index 9cb04ef2fccb70f88820a0dda85bf56fa757e0da..55944a4712c4ac3617918bae4182a6ab9419f0a1 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-O -fsanitize=null -fno-sanitize-recover=null -fdump-tree-sanopt-details" }
+// { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } }
 // { dg-shouldfail "ubsan" }
 
 int
index d8e4a686e53ea8e52ce838eb5b6240aeb5cce612..fbda96ff471fd12c04cfb39c893e72b3a0ee6dea 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-O -fsanitize=null -fsanitize-undefined-trap-on-error -fdump-tree-sanopt-details" }
+// { dg-skip-if "" { *-*-* } { "-flto -fno-fat-lto-objects" } }
 // { dg-shouldfail "ubsan" }
 
 int