diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-08 13:20:13 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-08 13:20:13 +0000 |
commit | 81713f9386aaa3397ac44284a7d6f90fc4b7040e (patch) | |
tree | f10f2534b770430a68f03c63d4712a183babb994 /gcc/cgraphunit.c | |
parent | 39e46e4d64364c5b3381604f6158672745e19d64 (diff) | |
download | gcc-81713f9386aaa3397ac44284a7d6f90fc4b7040e.tar.gz |
2010-01-08 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 155725
{{also coded a bit the infix parser in gcc/melt/ etc..}}
{{merged with trunk rev 155725, and minor additions}}
* gcc/melt-runtime.c: removed useless trailing spaces.
* gcc/melt/warmelt-infixsyntax.melt: added more, notably
class_infix_parser, class_infix_delimiter some delimiters and our
backtrackable getlex & peeklex functions. Still very incomplete.
* gcc/melt/warmelt-outobj.melt: added the translate_macroexpanded_list
function to ease factoring out the common translation between
infix & lisp syntaxes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@155734 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index cf1a0015472..ebe662ad639 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1,5 +1,5 @@ /* Callgraph based interprocedural optimizations. - Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Jan Hubicka @@ -2323,20 +2323,9 @@ cgraph_materialize_all_clones (void) gimple new_stmt; gimple_stmt_iterator gsi; - if (e->callee->same_body) - { - struct cgraph_node *alias; - - for (alias = e->callee->same_body; - alias; - alias = alias->next) - if (decl == alias->decl) - break; - /* Don't update call from same body alias to the real - function. */ - if (alias) - continue; - } + if (cgraph_get_node (decl) == cgraph_get_node (e->callee->decl)) + /* Don't update call from same body alias to the real function. */ + continue; if (cgraph_dump_file) { |