Commit 25e20805 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/39764 (ICE in set_lattice_value, at tree-ssa-ccp.c:468…

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
parent 90cc3676
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.
......
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.
......
/* { 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment