OSDN Git Service

* rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index db71b1e..90bf5e2 100644 (file)
@@ -1,3 +1,109 @@
+2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
+
+       * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
+       (print_c_condition): Declare.
+       * read-rtl.c (ptr_loc): New structure.
+       (ptr_locs, ptr_loc_obstack, joined_conditions)
+       (joined_conditions_obstack): New variables.
+       (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
+       (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
+       (join_c_conditions, print_c_condition): New functions.
+       (apply_macro_to_string): Associate the new string with the same
+       source location as the old one.
+       (add_condition_to_string): Use join_c_conditions.
+       (read_string): Use set_rtx_ptr_loc to record a filename and line
+       number for the string.
+       (read_rtx): Initialize the new variables above.
+       * genattrtab.c (write_test_expr, write_attr_value): Use
+       print_c_condition.
+       * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
+       comment above the GCC_VERSION check.
+       (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
+       Inline the definition of MAYBE_EVAL.
+       * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
+       * genoutput.c (process_template): Likewise.
+       * genpreds.c (write_predicate_subfunction): Likewise.
+       (write_predicate_expr): Use print_c_condition.
+       * genrecog.c (write_cond): Likewise.
+       * gensupport.c (process_rtx): Use join_c_conditions to join the
+       conditions of a define_insn_and_split.  Record a source location
+       for the string after the "&&".
+       (alter_test_for_insn): Use join_c_conditions.
+
+2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       Revert for now:
+       2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
+       PR tree-optimization/15784
+       * fold-const.c (fold): Fold ~A + 1 to -1.  Fold -A - 1
+       and -1 - A to ~A.
+
+2005-03-04  Ben Elliston  <bje@au.ibm.com>
+
+       * gcc.c (option_map): Add --coverage.
+       (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
+       (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
+       * config/darwin.h: Pass -lgcov for `coverage'.
+       * doc/invoke.texi (Debugging Options): Document --coverage.
+
+2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * gcse.c (bypass_block): Use find_edge wherever possible.
+
+2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
+
+       Fix PR debug/20253
+       
+       * c-opts.c (c_common_parse_file): Call start_source_file
+       and end_source_file at the approriate times.
+
+       * dwarf2out.c (dwarf2out_finish): Don't auto-end
+       the main file, it will be done for us now.
+       
+2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * fold-const.c (fold_ternary): New.
+       (fold): Call fold_ternary on ternary expressions.  Remove
+       handling of ternary expressions.
+
+2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
+
+       PR tree-optimization/15784
+       * fold-const.c (fold): Fold ~A + 1 to -1.  Fold -A - 1
+       and -1 - A to ~A.
+
+2005-03-03  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/predicates.md (branch_comparison_operator):
+       Convert from C block to conditional format.
+
+2005-03-03  Jan Hubicka  <jh@suse.cz>
+
+       * tree-dfa.c (add_referenced_var): Don't walk initializer of external
+       and non-constant public variables.
+
+2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
+       with LABEL_EXPR.
+
+       * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
+       EDGE_I.
+
+       * tree-phinodes.c (remove_phi_node): Clean up by factoring out
+       calls to release_ssa_name and release_phi_node.
+
+       * fold-const.c (fold): Remove handling of unary expressions.
+
+       * fold-const.c (fold_unary): Avoid directly using the original
+       expression t as much as possible.
+
+2005-03-03  Roger Sayle  <roger@eyesopen.com>
+           Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
+       RETURN rtx, and not a LABEL_REF containing a NULL pointer.
+
 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
 
        Describe special registers SRP and MOF as allocatable registers.