This fixes a few UNRESOLVEDs because I forgot to skip -fno-fat-lto-objects
when I introduced the tests.
Ok for trunk?
2014-11-10 Marek Polacek pola...@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.
diff --git gcc/testsuite/c-c++-common/ubsan/align-7.c
gcc/testsuite/c-c++-common/ubsan/align-7.c
index 4a18d8d..68c9135 100644
--- gcc/testsuite/c-c++-common/ubsan/align-7.c
+++ gcc/testsuite/c-c++-common/ubsan/align-7.c
@@ -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 } } */
diff --git gcc/testsuite/c-c++-common/ubsan/align-8.c
gcc/testsuite/c-c++-common/ubsan/align-8.c
index b930162..4e43a09 100644
--- gcc/testsuite/c-c++-common/ubsan/align-8.c
+++ gcc/testsuite/c-c++-common/ubsan/align-8.c
@@ -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]; };
diff --git gcc/testsuite/g++.dg/ubsan/null-4.C
gcc/testsuite/g++.dg/ubsan/null-4.C
index 9cb04ef..55944a4 100644
--- gcc/testsuite/g++.dg/ubsan/null-4.C
+++ gcc/testsuite/g++.dg/ubsan/null-4.C
@@ -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
diff --git gcc/testsuite/g++.dg/ubsan/null-5.C
gcc/testsuite/g++.dg/ubsan/null-5.C
index d8e4a68..fbda96f 100644
--- gcc/testsuite/g++.dg/ubsan/null-5.C
+++ gcc/testsuite/g++.dg/ubsan/null-5.C
@@ -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
Marek