aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-11-04 11:10:21 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-11-04 11:10:21 +0000
commite4d8d4ea194dd8a360a3e21474296807984fc833 (patch)
treeb94eff63a1cd1793c1deb383ad272f999ab85d85 /gcc
parent1694907238eb106bf7ac0e4eaedaa77bc7719b6d (diff)
downloadgcc-e4d8d4ea194dd8a360a3e21474296807984fc833.zip
gcc-e4d8d4ea194dd8a360a3e21474296807984fc833.tar.gz
gcc-e4d8d4ea194dd8a360a3e21474296807984fc833.tar.bz2
re PR lto/45702 (New LTO test failures)
2010-11-04 Richard Guenther <rguenther@suse.de> PR testsuite/45702 * gcc.dg/pr34989-1.c: Move ... * gcc.dg/lto/pr34989-1_0.c: ... here. * gcc.dg/pr34989-2.c: Move ... * gcc.dg/lto/pr34989-1_1.c: ... here. * gcc.dg/pr27898.c: Move ... * gcc.dg/lto/pr27898_0.c: ... here and ... * gcc.dg/lto/pr27898_1.c: ... split. * gcc.dg/pr28712.c: Move ... * gcc.dg/lto/pr28712_0.c: ... here and ... * gcc.dg/lto/pr28712_1.c: ... split ... * gcc.dg/lto/pr28712_2.c: ... twice. * gcc.dg/pr28706.c: Move ... * gcc.dg/lto/pr28706_0.c: ... here and ... * gcc.dg/lto/pr28706_1.c: ... split. From-SVN: r166305
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog18
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr27898_0.c8
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr27898_1.c3
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr28706_0.c12
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr28706_1.c9
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr28712_0.c (renamed from gcc/testsuite/gcc.dg/pr28712.c)7
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr28712_1.c12
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr28712_2.c13
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr34989-1_0.c10
-rw-r--r--gcc/testsuite/gcc.dg/lto/pr34989-1_1.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr27898.c9
-rw-r--r--gcc/testsuite/gcc.dg/pr28706.c13
-rw-r--r--gcc/testsuite/gcc.dg/pr34989-1.c11
-rw-r--r--gcc/testsuite/gcc.dg/pr34989-2.c3
14 files changed, 89 insertions, 40 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a025ce4..ebbd125 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,4 +1,22 @@
2010-11-04 Richard Guenther <rguenther@suse.de>
+
+ PR testsuite/45702
+ * gcc.dg/pr34989-1.c: Move ...
+ * gcc.dg/lto/pr34989-1_0.c: ... here.
+ * gcc.dg/pr34989-2.c: Move ...
+ * gcc.dg/lto/pr34989-1_1.c: ... here.
+ * gcc.dg/pr27898.c: Move ...
+ * gcc.dg/lto/pr27898_0.c: ... here and ...
+ * gcc.dg/lto/pr27898_1.c: ... split.
+ * gcc.dg/pr28712.c: Move ...
+ * gcc.dg/lto/pr28712_0.c: ... here and ...
+ * gcc.dg/lto/pr28712_1.c: ... split ...
+ * gcc.dg/lto/pr28712_2.c: ... twice.
+ * gcc.dg/pr28706.c: Move ...
+ * gcc.dg/lto/pr28706_0.c: ... here and ...
+ * gcc.dg/lto/pr28706_1.c: ... split.
+
+2010-11-04 Richard Guenther <rguenther@suse.de>
Richard Henderson <rth@redhat.com>
* gcc.target/i386/fma4-vector-2.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/lto/pr27898_0.c b/gcc/testsuite/gcc.dg/lto/pr27898_0.c
new file mode 100644
index 0000000..c7e23f3
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr27898_0.c
@@ -0,0 +1,8 @@
+/* PR c/27898 */
+/* { dg-lto-do link } */
+
+union u { struct { int i; }; };
+
+extern int foo (union u *);
+
+int main() { return 0; }
diff --git a/gcc/testsuite/gcc.dg/lto/pr27898_1.c b/gcc/testsuite/gcc.dg/lto/pr27898_1.c
new file mode 100644
index 0000000..110e0d9
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr27898_1.c
@@ -0,0 +1,3 @@
+union u { struct { int i; }; };
+
+extern int foo (union u *);
diff --git a/gcc/testsuite/gcc.dg/lto/pr28706_0.c b/gcc/testsuite/gcc.dg/lto/pr28706_0.c
new file mode 100644
index 0000000..aaa8940
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr28706_0.c
@@ -0,0 +1,12 @@
+/* PR c/28706 */
+/* { dg-lto-do link } */
+
+struct A
+{
+ int i;
+} __attribute__((aligned (sizeof (long int))));
+
+extern void foo (struct A *);
+extern void foo (struct A *);
+
+int main() { return 0; }
diff --git a/gcc/testsuite/gcc.dg/lto/pr28706_1.c b/gcc/testsuite/gcc.dg/lto/pr28706_1.c
new file mode 100644
index 0000000..4550b63
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr28706_1.c
@@ -0,0 +1,9 @@
+/* PR c/28706 */
+
+struct A
+{
+ int i;
+} __attribute__((aligned (sizeof (long int))));
+
+extern void foo (struct A *);
+extern void foo (struct A *);
diff --git a/gcc/testsuite/gcc.dg/pr28712.c b/gcc/testsuite/gcc.dg/lto/pr28712_0.c
index f398321..dff029c 100644
--- a/gcc/testsuite/gcc.dg/pr28712.c
+++ b/gcc/testsuite/gcc.dg/lto/pr28712_0.c
@@ -1,8 +1,5 @@
/* PR c/28712 */
-/* { dg-do link } */
-/* { dg-require-effective-target lto } */
-/* { dg-options "-flto -r -nostdlib" } */
-/* { dg-additional-sources "pr28712.c pr28712.c" } */
+/* { dg-lto-do link } */
struct A;
@@ -15,3 +12,5 @@ struct B __attribute__((aligned (sizeof (int))));
extern struct B *b;
struct B { int i; } __attribute__((packed));
+
+int main() { return 0; }
diff --git a/gcc/testsuite/gcc.dg/lto/pr28712_1.c b/gcc/testsuite/gcc.dg/lto/pr28712_1.c
new file mode 100644
index 0000000..8a32245
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr28712_1.c
@@ -0,0 +1,12 @@
+/* PR c/28712 */
+struct A;
+
+extern struct A *a;
+
+struct A { } __attribute__((packed));
+
+struct B __attribute__((aligned (sizeof (int))));
+
+extern struct B *b;
+
+struct B { int i; } __attribute__((packed));
diff --git a/gcc/testsuite/gcc.dg/lto/pr28712_2.c b/gcc/testsuite/gcc.dg/lto/pr28712_2.c
new file mode 100644
index 0000000..1937e88
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr28712_2.c
@@ -0,0 +1,13 @@
+/* PR c/28712 */
+
+struct A;
+
+extern struct A *a;
+
+struct A { } __attribute__((packed));
+
+struct B __attribute__((aligned (sizeof (int))));
+
+extern struct B *b;
+
+struct B { int i; } __attribute__((packed));
diff --git a/gcc/testsuite/gcc.dg/lto/pr34989-1_0.c b/gcc/testsuite/gcc.dg/lto/pr34989-1_0.c
new file mode 100644
index 0000000..245486b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr34989-1_0.c
@@ -0,0 +1,10 @@
+/* { dg-lto-do link } */
+
+extern struct globals *const ptr_to_globals;
+struct globals { };
+int syslogd_main(int argc, char **argv)
+{
+ (*(struct globals**)&ptr_to_globals) = 0;
+}
+
+int main() { return 0; }
diff --git a/gcc/testsuite/gcc.dg/lto/pr34989-1_1.c b/gcc/testsuite/gcc.dg/lto/pr34989-1_1.c
new file mode 100644
index 0000000..59604b6
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/lto/pr34989-1_1.c
@@ -0,0 +1 @@
+struct globals *const ptr_to_globals;
diff --git a/gcc/testsuite/gcc.dg/pr27898.c b/gcc/testsuite/gcc.dg/pr27898.c
deleted file mode 100644
index 2763a49..0000000
--- a/gcc/testsuite/gcc.dg/pr27898.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* PR c/27898 */
-/* { dg-do link } */
-/* { dg-require-effective-target lto } */
-/* { dg-options "-flto -r -nostdlib" } */
-/* { dg-additional-sources "pr27898.c" } */
-
-union u { struct { int i; }; };
-
-extern int foo (union u *);
diff --git a/gcc/testsuite/gcc.dg/pr28706.c b/gcc/testsuite/gcc.dg/pr28706.c
deleted file mode 100644
index 1ecb8b2..0000000
--- a/gcc/testsuite/gcc.dg/pr28706.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/* PR c/28706 */
-/* { dg-do link } */
-/* { dg-require-effective-target lto } */
-/* { dg-options "-flto -r -nostdlib" } */
-/* { dg-additional-sources "pr28706.c" } */
-
-struct A
-{
- int i;
-} __attribute__((aligned (sizeof (long int))));
-
-extern void foo (struct A *);
-extern void foo (struct A *);
diff --git a/gcc/testsuite/gcc.dg/pr34989-1.c b/gcc/testsuite/gcc.dg/pr34989-1.c
deleted file mode 100644
index 47d8363..0000000
--- a/gcc/testsuite/gcc.dg/pr34989-1.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do link } */
-/* { dg-require-effective-target lto } */
-/* { dg-options "-flto -r -nostdlib -O2" } */
-/* { dg-additional-sources "pr34989-2.c" } */
-
-extern struct globals *const ptr_to_globals;
-struct globals { };
-int syslogd_main(int argc, char **argv)
-{
- (*(struct globals**)&ptr_to_globals) = 0;
-}
diff --git a/gcc/testsuite/gcc.dg/pr34989-2.c b/gcc/testsuite/gcc.dg/pr34989-2.c
deleted file mode 100644
index c2c719d..0000000
--- a/gcc/testsuite/gcc.dg/pr34989-2.c
+++ /dev/null
@@ -1,3 +0,0 @@
-/* { dg-do compile } */
-
-extern struct globals *const ptr_to_globals;