summaryrefslogtreecommitdiff
path: root/gcc/ipa-utils.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-19 17:52:03 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-19 17:52:03 +0000
commit9ed5b1f51fab0a96dfa17dfec099a73f4fdeb730 (patch)
treebb5a4b60b2fba01c8f07af7dea9726c29ea518ca /gcc/ipa-utils.c
parent941f2388c6654af085ec92de505bc6b53d90b5fa (diff)
downloadgcc-9ed5b1f51fab0a96dfa17dfec099a73f4fdeb730.tar.gz
* toplev.c (compile_file): Move call to coverage_finish ...
* cgraphunit.c (ipa_passes): ... here. Call cgraph_process_new_functions. * ipa-utils.c (get_base_var): Handle CONSTRUCTOR. * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146354 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-utils.c')
-rw-r--r--gcc/ipa-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c
index 2fe0396b496..97a2b3c8237 100644
--- a/gcc/ipa-utils.c
+++ b/gcc/ipa-utils.c
@@ -222,7 +222,8 @@ get_base_var (tree t)
&& (!CONSTANT_CLASS_P (t))
&& TREE_CODE (t) != LABEL_DECL
&& TREE_CODE (t) != FUNCTION_DECL
- && TREE_CODE (t) != CONST_DECL)
+ && TREE_CODE (t) != CONST_DECL
+ && TREE_CODE (t) != CONSTRUCTOR)
{
t = TREE_OPERAND (t, 0);
}