* cgraphunit.c (analyze_functions): Always analyze targets of aliases.
authorJan Hubicka <hubicka@gcc.gnu.org>
Mon, 15 Dec 2014 03:42:14 +0000 (03:42 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 15 Dec 2014 03:42:14 +0000 (03:42 +0000)
From-SVN: r218728

gcc/cgraphunit.c

index 9f24c4d054f76e94b45f577558619d54272916f8..b0f78ef908ebd6fc476a6308f174a3cd1e582658 100644 (file)
@@ -1064,6 +1064,7 @@ analyze_functions (void)
                         && optimize)
                        || (TREE_CODE (ref->referred->decl) == FUNCTION_DECL
                            && opt_for_fn (ref->referred->decl, optimize))
+                   || node->alias
                    || ref->referred->alias)))
              enqueue_node (ref->referred);
          symtab->process_new_functions ();