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
+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.
--- /dev/null
+/* { 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(""));
+
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
if (val->lattice_val == UNINITIALIZED)
*val = get_default_value (var);
+ canonicalize_float_value (val);
+
return val;
}