mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 12:01:06 +08:00
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
This commit is contained in:
parent
1694907238
commit
e4d8d4ea19
@ -1,3 +1,21 @@
|
||||
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>
|
||||
|
||||
|
8
gcc/testsuite/gcc.dg/lto/pr27898_0.c
Normal file
8
gcc/testsuite/gcc.dg/lto/pr27898_0.c
Normal file
@ -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; }
|
3
gcc/testsuite/gcc.dg/lto/pr27898_1.c
Normal file
3
gcc/testsuite/gcc.dg/lto/pr27898_1.c
Normal file
@ -0,0 +1,3 @@
|
||||
union u { struct { int i; }; };
|
||||
|
||||
extern int foo (union u *);
|
12
gcc/testsuite/gcc.dg/lto/pr28706_0.c
Normal file
12
gcc/testsuite/gcc.dg/lto/pr28706_0.c
Normal file
@ -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; }
|
9
gcc/testsuite/gcc.dg/lto/pr28706_1.c
Normal file
9
gcc/testsuite/gcc.dg/lto/pr28706_1.c
Normal file
@ -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 *);
|
@ -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; }
|
12
gcc/testsuite/gcc.dg/lto/pr28712_1.c
Normal file
12
gcc/testsuite/gcc.dg/lto/pr28712_1.c
Normal file
@ -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));
|
13
gcc/testsuite/gcc.dg/lto/pr28712_2.c
Normal file
13
gcc/testsuite/gcc.dg/lto/pr28712_2.c
Normal file
@ -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));
|
10
gcc/testsuite/gcc.dg/lto/pr34989-1_0.c
Normal file
10
gcc/testsuite/gcc.dg/lto/pr34989-1_0.c
Normal file
@ -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; }
|
1
gcc/testsuite/gcc.dg/lto/pr34989-1_1.c
Normal file
1
gcc/testsuite/gcc.dg/lto/pr34989-1_1.c
Normal file
@ -0,0 +1 @@
|
||||
struct globals *const ptr_to_globals;
|
@ -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 *);
|
@ -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 *);
|
@ -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;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
/* { dg-do compile } */
|
||||
|
||||
extern struct globals *const ptr_to_globals;
|
Loading…
x
Reference in New Issue
Block a user