diff options
author | Richard Guenther <rguenther@suse.de> | 2006-04-24 08:21:41 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2006-04-24 08:21:41 +0000 |
commit | c0a3f887e5153990dd33e72dd4a6530ba19ab5ce (patch) | |
tree | 9447643cb0f66e8473863d82719834c532c200c3 /gcc/tree-complex.c | |
parent | 72fa5e06ab66219c7c7ef13e2bd9a2e123a89672 (diff) | |
download | gcc-c0a3f887e5153990dd33e72dd4a6530ba19ab5ce.zip gcc-c0a3f887e5153990dd33e72dd4a6530ba19ab5ce.tar.gz gcc-c0a3f887e5153990dd33e72dd4a6530ba19ab5ce.tar.bz2 |
re PR middle-end/26869 (Segfault in find_lattice_value() for complex operands.)
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.
From-SVN: r113219
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r-- | gcc/tree-complex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index 0529131..65466bb 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); |