PR middle-end/49735
* gcc.c-torture/compile/pr49735.c: New testcase
* ipa-inline.c (recursive_inlining): Look through aliases.
From-SVN: r177482
+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
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
--- /dev/null
+/* { dg-require-alias "" } */
+void bar (void);
+static void foo (void) { bar (); }
+void bar (void) __attribute__((alias("foo")));