re PR tree-optimization/39764 (ICE in set_lattice_value, at tree-ssa-ccp.c:468 with -ffinite-math-only)
2009-04-15 Richard Guenther <rguenther@suse.de> PR tree-optimization/39764 * tree-ssa-ccp.c (get_value): Canonicalize value with canonicalize_float_value. * g++.dg/torture/pr39764.C: New testcase. From-SVN: r146120
This commit is contained in:
parent
90cc367655
commit
25e20805c0
|
@ -1,3 +1,9 @@
|
|||
2009-04-15 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/39764
|
||||
* tree-ssa-ccp.c (get_value): Canonicalize value with
|
||||
canonicalize_float_value.
|
||||
|
||||
2009-04-15 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* builtins.def (va_start, va_end, va_copy): Fix my previous commit.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2009-04-15 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/39764
|
||||
* g++.dg/torture/pr39764.C: New testcase.
|
||||
|
||||
2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
* g++.dg/ext/altivec-17.C: New.
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
/* { dg-do compile } */
|
||||
|
||||
class A;
|
||||
class B { };
|
||||
extern const double NaN;
|
||||
B foo(A* exec, double d);
|
||||
inline B baz(A* a) {
|
||||
return foo(a, NaN);
|
||||
}
|
||||
B bar(A* a) {
|
||||
return baz(a);
|
||||
}
|
||||
extern const double NaN = (__builtin_nanf(""));
|
||||
|
|
@ -228,6 +228,8 @@ typedef enum
|
|||
doing the store). */
|
||||
static prop_value_t *const_val;
|
||||
|
||||
static void canonicalize_float_value (prop_value_t *);
|
||||
|
||||
/* Dump constant propagation value VAL to file OUTF prefixed by PREFIX. */
|
||||
|
||||
static void
|
||||
|
@ -387,6 +389,8 @@ get_value (tree var)
|
|||
if (val->lattice_val == UNINITIALIZED)
|
||||
*val = get_default_value (var);
|
||||
|
||||
canonicalize_float_value (val);
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue