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
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.
--- /dev/null
+/* PR c/27898 */
+/* { dg-lto-do link } */
+
+union u { struct { int i; }; };
+
+extern int foo (union u *);
+
+int main() { return 0; }
--- /dev/null
+union u { struct { int i; }; };
+
+extern int foo (union u *);
--- /dev/null
+/* 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; }
--- /dev/null
+/* PR c/28706 */
+
+struct A
+{
+ int i;
+} __attribute__((aligned (sizeof (long int))));
+
+extern void foo (struct A *);
+extern void foo (struct A *);
/* 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;
extern struct B *b;
struct B { int i; } __attribute__((packed));
+
+int main() { return 0; }
--- /dev/null
+/* 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));
--- /dev/null
+/* 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));
--- /dev/null
+/* { 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; }
--- /dev/null
+struct globals *const ptr_to_globals;
+++ /dev/null
-/* 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 *);
+++ /dev/null
-/* 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 *);
+++ /dev/null
-/* { 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;
-}
+++ /dev/null
-/* { dg-do compile } */
-
-extern struct globals *const ptr_to_globals;