mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 23:00:52 +08:00
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
This commit is contained in:
parent
72fa5e06ab
commit
c0a3f887e5
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
|
||||
Richard Guenther <rguenther@suse.de>
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2006-04-24 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR middle-end/26869
|
||||
* gcc.dg/torture/pr26869.c: New testcase.
|
||||
|
||||
2006-04-24 Andrew Pinski <pinskia@gcc.gnu.org>
|
||||
Richard Guenther <rguenther@suse.de>
|
||||
|
||||
|
7
gcc/testsuite/gcc.dg/torture/pr26869.c
Normal file
7
gcc/testsuite/gcc.dg/torture/pr26869.c
Normal file
@ -0,0 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
|
||||
_Complex float f (_Complex float b, _Complex float c)
|
||||
{
|
||||
_Complex float a = 1.0 + 0.0i;
|
||||
return a / 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user