Commit f791d333 by Jan Hubicka Committed by Jan Hubicka

re PR tree-optimization/49735 (mips64-elf libgcc build fails with apparently infinite recursion.)

        PR middle-end/49735
        * gcc.c-torture/compile/pr49735.c: New testcase
        * ipa-inline.c (recursive_inlining): Look through aliases.

From-SVN: r177482
parent f93b21e2
2011-08-05 Jan Hubicka <jh@suse.cz>
PR middle-end/49735
* ipa-inline.c (recursive_inlining): Look through aliases.
2011-08-05 Jason Merrill <jason@redhat.com>
* config/i386/i386.c (setup_incoming_varargs_ms_64): Move
......
......@@ -1206,8 +1206,9 @@ recursive_inlining (struct cgraph_edge *edge,
depth = 1;
for (cnode = curr->caller;
cnode->global.inlined_to; cnode = cnode->callers->caller)
if (node->decl == curr->callee->decl)
depth++;
if (node->decl
== cgraph_function_or_thunk_node (curr->callee, NULL)->decl)
depth++;
if (!want_inline_self_recursive_call_p (curr, node, false, depth))
continue;
......
2011-08-05 Jan Hubicka <jh@suse.cz>
PR middle-end/49735
* gcc.c-torture/compile/pr49735.c: New testcase.
2011-08-05 Jason Merrill <jason@redhat.com>
PR c++/47453
......
/* { dg-require-alias "" } */
void bar (void);
static void foo (void) { bar (); }
void bar (void) __attribute__((alias("foo")));
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