From: Mike Stump Date: Thu, 15 Jan 2015 18:42:39 +0000 (+0000) Subject: inline_1.c: Rename gcc.dg/inline_[1-4].c to inline-3[6-9].c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37767f4f14a572f2fe673f891bf6efef7be0502f;p=gcc.git inline_1.c: Rename gcc.dg/inline_[1-4].c to inline-3[6-9].c. * gcc.dg/inline_1.c: Rename gcc.dg/inline_[1-4].c to inline-3[6-9].c. * gcc.dg/inline_2.c: Likewise. * gcc.dg/inline_3.c: Likewise. * gcc.dg/inline_4.c: Likewise. From-SVN: r219678 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5751651b88..f6b2ae3ab4d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-01-15 Mike Stump + + * gcc.dg/inline_1.c: Rename gcc.dg/inline_[1-4].c to inline-3[6-9].c. + * gcc.dg/inline_2.c: Likewise. + * gcc.dg/inline_3.c: Likewise. + * gcc.dg/inline_4.c: Likewise. + 2015-01-15 Janus Weil PR fortran/58023 diff --git a/gcc/testsuite/gcc.dg/inline-36.c b/gcc/testsuite/gcc.dg/inline-36.c new file mode 100644 index 00000000000..030138171f6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-36.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline -fdisable-ipa-inline -Wno-attributes" } */ +int g; +__attribute__((always_inline)) void bar (void) +{ + g++; +} + +int foo (void) +{ + bar (); + return g; +} + +int foo2 (void) +{ + bar(); + return g + 1; +} + +/* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline-37.c b/gcc/testsuite/gcc.dg/inline-37.c new file mode 100644 index 00000000000..e3b1df44661 --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-37.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=0:100 -fdisable-ipa-inline -Wno-attributes" } */ +int g; +__attribute__((always_inline)) void bar (void) +{ + g++; +} + +int foo (void) +{ + bar (); + return g; +} + +int foo2 (void) +{ + bar(); + return g + 1; +} + +/* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline-38.c b/gcc/testsuite/gcc.dg/inline-38.c new file mode 100644 index 00000000000..773c301a41a --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-38.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo,foo2 -fdisable-ipa-inline -Wno-attributes" } */ +int g; +__attribute__((always_inline)) void bar (void) +{ + g++; +} + +int foo (void) +{ + bar (); + return g; +} + +int foo2 (void) +{ + bar(); + return g + 1; +} + +/* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline-39.c b/gcc/testsuite/gcc.dg/inline-39.c new file mode 100644 index 00000000000..ebd57e980fd --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-39.c @@ -0,0 +1,23 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */ +/* { dg-add-options bind_pic_locally } */ +int g; +__attribute__((always_inline)) void bar (void) +{ + g++; +} + +int foo (void) +{ + bar (); + return g; +} + +int foo2 (void) +{ + bar(); + return g + 1; +} + +/* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline_1.c b/gcc/testsuite/gcc.dg/inline_1.c deleted file mode 100644 index 030138171f6..00000000000 --- a/gcc/testsuite/gcc.dg/inline_1.c +++ /dev/null @@ -1,22 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline -fdisable-ipa-inline -Wno-attributes" } */ -int g; -__attribute__((always_inline)) void bar (void) -{ - g++; -} - -int foo (void) -{ - bar (); - return g; -} - -int foo2 (void) -{ - bar(); - return g + 1; -} - -/* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline_2.c b/gcc/testsuite/gcc.dg/inline_2.c deleted file mode 100644 index e3b1df44661..00000000000 --- a/gcc/testsuite/gcc.dg/inline_2.c +++ /dev/null @@ -1,22 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=0:100 -fdisable-ipa-inline -Wno-attributes" } */ -int g; -__attribute__((always_inline)) void bar (void) -{ - g++; -} - -int foo (void) -{ - bar (); - return g; -} - -int foo2 (void) -{ - bar(); - return g + 1; -} - -/* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline_3.c b/gcc/testsuite/gcc.dg/inline_3.c deleted file mode 100644 index 773c301a41a..00000000000 --- a/gcc/testsuite/gcc.dg/inline_3.c +++ /dev/null @@ -1,22 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo,foo2 -fdisable-ipa-inline -Wno-attributes" } */ -int g; -__attribute__((always_inline)) void bar (void) -{ - g++; -} - -int foo (void) -{ - bar (); - return g; -} - -int foo2 (void) -{ - bar(); - return g + 1; -} - -/* { dg-final { scan-tree-dump-times "bar" 5 "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/inline_4.c b/gcc/testsuite/gcc.dg/inline_4.c deleted file mode 100644 index ebd57e980fd..00000000000 --- a/gcc/testsuite/gcc.dg/inline_4.c +++ /dev/null @@ -1,23 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized -fdisable-tree-einline=foo2 -fdisable-ipa-inline -Wno-attributes" } */ -/* { dg-add-options bind_pic_locally } */ -int g; -__attribute__((always_inline)) void bar (void) -{ - g++; -} - -int foo (void) -{ - bar (); - return g; -} - -int foo2 (void) -{ - bar(); - return g + 1; -} - -/* { dg-final { scan-tree-dump-times "bar" 4 "optimized" } } */ -/* { dg-final { cleanup-tree-dump "optimized" } } */