[PATCH] Fix PR28684 (RESUBMISSION)
Revital1 Eres
ERES@il.ibm.com
Mon Nov 27 12:28:00 GMT 2006
Hello,
Based on the latest discussions about the definition of the flags;
I am resubmitting the patch.
Thanks,
Revital
2006-11-23 Revital Eres <eres@il.ibm.com>
Richard Guenther <rguenther@suse.de>
R. Clint Whaley <whaley@cs.utsa.edu>
* doc/invoke.texi: Document -fassociative-math and -freciprocal-math.
* tree-tailcall.c (process_assignment): Use -fassociative-math
when reodering operands of floating-point type.
* fold-const.c (negate_expr_p, fold_comparison, fold_binary): Use
-fassociative-math
and -freciprocal-math.
* toplev.h (set_unsafe_math_optimizations_flags): Declare function.
* tree-ssa-math-opts.c (gate_cse_reciprocals): Use -freciprocal-math
instead of
-funsafe-math-optimizations.
* opts.c (common_handle_option): Call
set_unsafe_math_optimizations_flags.
(set_fast_math_flags): Set -freciprocal-math and -fassociative-math
when -ffast-math is set.
(set_unsafe_math_optimizations_flags): New Function to set
-freciprocal-math
and -fassociative-math when -funsafe-math-optimizations is set.
* tree-vectorizer.c (vect_is_simple_reduction): Use
-fassociative-math
when doing reduction on floats.
* loop-unroll.c (analyze_insn_to_expand_var): Use -fassociative-math
when expanding an accumulator of type float.
* simplify-rtx.c (simplify_binary_operation_1): Use
-fassociative-math
and -freciprocal-math when reodering operands of floating-point type.
* combine.c (apply_distributive_law): Likewise.
(combine_simplify_rtx): Use -freciprocal-math instead of
-funsafe-math-optimizations in reciprocal operations.
* tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
Likewise.
* common.opt: Declare new flags -fassociative-math and
-freciprocal-math.
(See attached file: patch_diff)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_diff
Type: application/octet-stream
Size: 18812 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061127/1d474e2a/attachment.obj>
More information about the Gcc-patches
mailing list