summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-24 08:21:41 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-04-24 08:21:41 +0000
commitf3640b8ad07a02db68a638868740f295778555ad (patch)
tree9447643cb0f66e8473863d82719834c532c200c3 /gcc/tree-complex.c
parent1ab8c36eafa50ade5183af06f5b75e22f8cab634 (diff)
downloadgcc-f3640b8ad07a02db68a638868740f295778555ad.tar.gz
2006-04-24 Richard Guenther <rguenther@suse.de>
PR middle-end/26869 * tree-complex.c (update_parameter_components): Don't handle unused parameters which have no default def. * gcc.dg/torture/pr26869.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113219 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index 0529131301a..65466bbadb3 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -652,6 +652,8 @@ update_parameter_components (void)
type = TREE_TYPE (type);
ssa_name = default_def (parm);
+ if (!ssa_name)
+ continue;
r = build1 (REALPART_EXPR, type, ssa_name);
i = build1 (IMAGPART_EXPR, type, ssa_name);