* gcc.dg/ipa/inline-2.c: Fix implicit declarations.
* gcc.dg/ipa/inline-4.c: Likewise.
* gcc.dg/ipa/inline-5.c: Likewise.
* gcc.dg/ipa/pr57539.c: Likewise.
* gcc.dg/ipa/inline-6.c: Fix implicit declarations. Fix
defaulting to int.
* gcc.dg/ipa/inlinehint-1.c: Likewise.
* gcc.dg/ipa/inlinehint-3.c: Likewise.
* gcc.dg/ipa/inlinehint-2.c: Fix defaulting to int.
* gcc.dg/ipa/ipacost-1.c: Likewise.
* gcc.dg/ipa/ipacost-2.c: Likewise.
* gcc.dg/ipa/pure-const-1.c: Use -fgnu89-inline. Fix defaulting
to int.
From-SVN: r215920
+2014-10-06 Marek Polacek <polacek@redhat.com>
+
+ * gcc.dg/ipa/inline-2.c: Fix implicit declarations.
+ * gcc.dg/ipa/inline-4.c: Likewise.
+ * gcc.dg/ipa/inline-5.c: Likewise.
+ * gcc.dg/ipa/pr57539.c: Likewise.
+ * gcc.dg/ipa/inline-6.c: Fix implicit declarations. Fix
+ defaulting to int.
+ * gcc.dg/ipa/inlinehint-1.c: Likewise.
+ * gcc.dg/ipa/inlinehint-3.c: Likewise.
+ * gcc.dg/ipa/inlinehint-2.c: Fix defaulting to int.
+ * gcc.dg/ipa/ipacost-1.c: Likewise.
+ * gcc.dg/ipa/ipacost-2.c: Likewise.
+ * gcc.dg/ipa/pure-const-1.c: Use -fgnu89-inline. Fix defaulting
+ to int.
+
2014-10-06 Marek Polacek <polacek@redhat.com>
* gcc.dg/debug/20010207-1.c: Use -fgnu89-inline. Fix implicit
/* { dg-options "-O3 -c -fdump-ipa-inline -fno-early-inlining" } */
struct bah {int a,b,d;};
+void test3 (int, int, int, int, int);
__attribute__ ((noinline))
void test(int a,int b,int c,int d,int e)
/* { dg-do compile } */
/* { dg-options "-Os -c -fdump-ipa-inline -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */
+void work_hard (void);
+
void do_something (int shall_i_work)
{
if (shall_i_work)
/* Check statements that are eliminated by inlining. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-inline-details -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */
+
struct a {int a,b,c,d,e;};
+void t(int);
+void t2();
void
accessfield (struct a a)
/* Check statements that are eliminated by inlining. */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-ipa-inline-details -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */
-static t(int a)
+
+void foo (void);
+void bar (void);
+void bagr (void);
+
+static int t(int a)
{
if (a==1)
{
bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr(); bagr();
}
}
+int
main()
{
t(1);
/* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp" } */
+void test2 (int);
+int
test (int a)
{
int i;
test2(a);
}
}
+int
m()
{
test (10);
/* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp" } */
+int
t(int s, void **p)
{
int i;
for (i;i<10000;i+=s)
p[i]=0;
}
+int
m(void **p)
{
t (10, p);
/* { dg-options "-O3 -c -fdump-ipa-inline-details -fno-early-inlining -fno-ipa-cp" } */
void abort (void);
+int scc_entry (int);
int sum;
int a[10];
int
scc_next (c);
return sum;
}
+int
main()
{
int sum;
i_can_not_be_propagated_fully (a);
i_can_not_be_propagated_fully (a);
}
+int
main()
{
i_can_be_propagated_fully2 (array);
}
i_can_not_be_propagated_fully (a);
}
+int
main()
{
int i;
nitem;
typedef int (*distfn) (box *, box *);
typedef int (*intersectfn) (nitem *, nitem *);
+int agnnodes (graph_t *);
+int overlaps (nitem *, int);
static int
cmpitem (Dt_t * d, int *p1, int *p2, Dtdisc_t * disc)
{
/* { dg-do compile { target nonpic } } */
-/* { dg-options "-O3 -fdump-tree-local-pure-const1 -fdump-ipa-pure-const -fdump-tree-optimized -fno-early-inlining" } */
+/* { dg-options "-O3 -fdump-tree-local-pure-const1 -fdump-ipa-pure-const -fdump-tree-optimized -fno-early-inlining -fgnu89-inline" } */
void abort (void);
int error_code;
static int val;
return fn(a);
}
-__attribute__ ((noinline, noclone))
+__attribute__ ((noinline, noclone)) int
i_am_const3(int a)
{
return call_callback (call_me, a);
}
-__attribute__ ((noinline))
+__attribute__ ((noinline)) int
explode_badly()
{
error_code = 0xbad;
abort ();
}
-__attribute__ ((noinline, noclone))
+__attribute__ ((noinline, noclone)) int
i_am_pure4(int a)
{
if (a > 50)
return a;
}
+int
test()
{
int s;