This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]



Based on the latest discussions about the definition of the flags;
I am resubmitting the patch.


2006-11-23  Revital Eres  <>
            Richard Guenther  <>
            R. Clint Whaley  <>

      * 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
      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
      * opts.c (common_handle_option): Call
      (set_fast_math_flags): Set -freciprocal-math and -fassociative-math
when -ffast-math is set.
      (set_unsafe_math_optimizations_flags): New Function to set
      and -fassociative-math when -funsafe-math-optimizations is set.
      * tree-vectorizer.c (vect_is_simple_reduction): Use
      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
      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):
      * common.opt: Declare new flags -fassociative-math and

(See attached file: patch_diff)

Attachment: patch_diff
Description: Binary data

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]