OSDN Git Service

2010-11-04 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Nov 2010 11:10:21 +0000 (11:10 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Nov 2010 11:10:21 +0000 (11:10 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166305 138bc75d-0d04-0410-961f-82ee72b054a4

14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr27898_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr27898_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr28706_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr28706_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr28712_0.c [moved from gcc/testsuite/gcc.dg/pr28712.c with 56% similarity]
gcc/testsuite/gcc.dg/lto/pr28712_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr28712_2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr34989-1_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr34989-1_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr27898.c [deleted file]
gcc/testsuite/gcc.dg/pr28706.c [deleted file]
gcc/testsuite/gcc.dg/pr34989-1.c [deleted file]
gcc/testsuite/gcc.dg/pr34989-2.c [deleted file]

index a025ce4..ebbd125 100644 (file)
@@ -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 (file)
index 0000000..c7e23f3
--- /dev/null
@@ -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 (file)
index 0000000..110e0d9
--- /dev/null
@@ -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 (file)
index 0000000..aaa8940
--- /dev/null
@@ -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 (file)
index 0000000..4550b63
--- /dev/null
@@ -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 *);
similarity index 56%
rename from gcc/testsuite/gcc.dg/pr28712.c
rename to gcc/testsuite/gcc.dg/lto/pr28712_0.c
index f398321..dff029c 100644 (file)
@@ -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 (file)
index 0000000..8a32245
--- /dev/null
@@ -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 (file)
index 0000000..1937e88
--- /dev/null
@@ -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 (file)
index 0000000..245486b
--- /dev/null
@@ -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 (file)
index 0000000..59604b6
--- /dev/null
@@ -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 (file)
index 2763a49..0000000
+++ /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 (file)
index 1ecb8b2..0000000
+++ /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 (file)
index 47d8363..0000000
+++ /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 (file)
index c2c719d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/* { dg-do compile } */
-
-extern struct globals *const ptr_to_globals;