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
This commit is contained in:
parent
5e499a4de0
commit
5114f0ed90
|
@ -1,3 +1,9 @@
|
|||
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>
|
||||
|
||||
* config/mips/mips.c (mips_emit_prefetch): Use operand 3
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
2003-10-02 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR optimization/12180
|
||||
* gcc.dg/20031002-1.c: New test.
|
||||
|
||||
PR c++/12486
|
||||
* g++.dg/inherit/error1.C: New test.
|
||||
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
/* { 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,
|
|||
arguments. */
|
||||
case BUILT_IN_VA_START:
|
||||
case BUILT_IN_STDARG_START:
|
||||
case BUILT_IN_NEXT_ARG:
|
||||
case BUILT_IN_VA_END:
|
||||
{
|
||||
inline_forbidden_reason
|
||||
= N_("%Jfunction '%F' can never be inlined because it "
|
||||
|
|
Loading…
Reference in New Issue