Commit 498e51ca by Adam Nemet Committed by Adam Nemet

gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P for functions…

gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P for functions for which the parameter types are...

	* gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
	for functions for which the parameter types are unknown.

testsuite/
	* gcc.dg/inline-33.c: New test.

From-SVN: r144801
parent 22571318
2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
* gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
for functions for which the parameter types are unknown.
2009-03-11 Jakub Jelinek <jakub@redhat.com> 2009-03-11 Jakub Jelinek <jakub@redhat.com>
PR target/39137 PR target/39137
......
...@@ -2355,11 +2355,7 @@ gimplify_call_expr (tree *expr_p, gimple_seq *pre_p, bool want_value) ...@@ -2355,11 +2355,7 @@ gimplify_call_expr (tree *expr_p, gimple_seq *pre_p, bool want_value)
else if (parms) else if (parms)
p = parms; p = parms;
else else
{ p = NULL_TREE;
if (nargs != 0)
CALL_CANNOT_INLINE_P (*expr_p) = 1;
p = NULL_TREE;
}
for (i = 0; i < nargs && p; i++, p = TREE_CHAIN (p)) for (i = 0; i < nargs && p; i++, p = TREE_CHAIN (p))
; ;
......
2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
* gcc.dg/inline-33.c: New test.
2009-03-11 Nathan Froyd <froydnj@codesourcery.com> 2009-03-11 Nathan Froyd <froydnj@codesourcery.com>
* gcc.dg/vect/vect-82.c: Combine dg-do and * gcc.dg/vect/vect-82.c: Combine dg-do and
......
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-optimized" } */
int i;
int foo ();
main ()
{
return foo (i);
}
int foo (i)
int i;
{
return bar(i);
}
/* { dg-final { scan-tree-dump-times "bar" 2 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment