Commit 5114f0ed by Mark Mitchell Committed by Mark Mitchell

re PR rtl-optimization/12180 (Inline optimization fails for variadic function)

	PR optimization/12180
	* tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
	functions containing calls to

	PR optimization/12180
	* gcc.dg/20031002-1.c: New test.

From-SVN: r72057
parent 5e499a4d
2003-10-02 Mark Mitchell <mark@codesourcery.com>
PR optimization/12180
* tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
functions containing calls to
2003-10-02 Chris Demetriou <cgd@broadcom.com> 2003-10-02 Chris Demetriou <cgd@broadcom.com>
* config/mips/mips.c (mips_emit_prefetch): Use operand 3 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
......
2003-10-02 Mark Mitchell <mark@codesourcery.com> 2003-10-02 Mark Mitchell <mark@codesourcery.com>
PR optimization/12180
* gcc.dg/20031002-1.c: New test.
PR c++/12486 PR c++/12486
* g++.dg/inherit/error1.C: New test. * g++.dg/inherit/error1.C: New test.
......
/* { dg-do compile } */
/* { dg-options "-O2" } */
void generic_sendmsg (char *fmt, ...)
{
__builtin_next_arg(fmt);
}
void generic_sendstat()
{
double t;
generic_sendmsg("F %3.2f", t);
}
...@@ -922,6 +922,8 @@ inline_forbidden_p_1 (tree *nodep, int *walk_subtrees ATTRIBUTE_UNUSED, ...@@ -922,6 +922,8 @@ inline_forbidden_p_1 (tree *nodep, int *walk_subtrees ATTRIBUTE_UNUSED,
arguments. */ arguments. */
case BUILT_IN_VA_START: case BUILT_IN_VA_START:
case BUILT_IN_STDARG_START: case BUILT_IN_STDARG_START:
case BUILT_IN_NEXT_ARG:
case BUILT_IN_VA_END:
{ {
inline_forbidden_reason inline_forbidden_reason
= N_("%Jfunction '%F' can never be inlined because it " = N_("%Jfunction '%F' can never be inlined because it "
......
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