OSDN Git Service

* genextract.c (VEC_safe_set_locstr): Take VEC by reference;
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 6b723cc..4d284e2 100644 (file)
@@ -1,3 +1,164 @@
+2006-01-24  Richard Henderson  <rth@redhat.com>
+
+       * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
+       update all callers.
+
+2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
+
+        PR rtl-optimization/25890
+        PR rtl-optimization/25905
+        * combine.c (expand_compound_operation, expand_field_assignment):
+        Fail if the bitfield's final position is out of bounds.
+
+2006-01-24  Ian Lance Taylor  <ian@airs.com>
+
+       PR middle-end/25930
+       * cgraphunit.c (cgraph_output_in_order): Don't clear
+       cgraph_asm_nodes until after asm strings have been output.
+
+2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
+
+        * fix-header.c (read_scan_file): Add new parameter imultilib when
+       calling register_include_chains.
+
+2006-01-23  Diego Novillo  <dnovillo@redhat.com>
+
+       * omp-low.c: Update documentation.
+
+2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
+           Daniel Berlin  <dberlin@dberlin.org>
+
+       PR tree-opt/25315
+       PR tree-opt/25857
+       * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal 
+       return from the function.
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * rtl.def (match_code): Add second argument.
+       * genpreds.c (write_extract_subexp): New function.
+       (write_match_code): Add path argument.  Use write_extract_subexp.
+       (write_predicate_expr): Pass path to write_match_code.
+       (mark_mode_tests): MATCH_CODE applied to a subexpression does
+       not perform a mode test.
+       * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
+       a subexpression does not constrain the top-level code set.
+       * read-rtl.c (read_rtx_variadic): New function.
+       (read_rtx_1): Use it; allow AND and IOR to be variadic.
+       * doc/md.texi: Document new notation.
+       * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
+       (cmpsi_operand): ... here, using new notation.
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * varray.c: Remove GENERATOR_FILE #ifdefs.
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * genautomata.c (output_reserved_units_table): Emit nothing if
+       description->query_units_num is zero.  Remove extra blank line.
+       (output_cpu_unit_reservation_p): Short circuit
+       if description->query_units_num is zero.
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
+       and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
+       nor any of the random handful of variables that used to be necessary
+       when this program was linked with rtlanal.o.  Prune set of forward
+       function declarations.
+       (struct attr_desc): Remove static_p field.
+       (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
+       (check_attr_test, make_internal_attr, make_numeric_value): Make static.
+       (attr_string): Do not read the character one past the length of
+       the string.
+       (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
+       (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
+       (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
+       (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
+       (make_automaton_attrs): New.
+       (main): Do not call into genautomata.  Call local gen_bypass
+       and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
+       Remove special case for insn_alts.
+       * genautomata.c: Include gensupport.h; not genattrtab.h nor
+       varray.h (leftover from previous change).  Prune set of forward
+       function declarations.  Remove state_alts fields from all
+       structures.  Remove state_alts_table from struct automaton.
+       Make everything except main static.  Do not maintain num_dfa_decls.
+       Do not maintain state_alts fields of various structures.
+       (process_decls): Don't validate condexp for dm_insn_reserv decls.
+       (add_arc): Remove state_alts argument.  All callers updated.
+       (output_reserved_units_table): Emit #ifdef here...
+       (output_tables): ...not here.  Don't generate state_alts tables.
+       (expand_automata): Don't generate attributes.
+       (write_automata): Don't generate state_alts functions.
+       (main): New function.
+       (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
+       (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
+       (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
+       (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
+       (BYPASS_P_FUNC_NAME, output_state_alts_table)
+       (output_automata_list_state_alts_code, output_internal_state_alts_func)
+       (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
+       (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
+       Delete.
+       * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
+       * genattrtab.h: Delete file.
+       * Makefile.in (OBJS-common): Add insn-automata.o.
+       (insn-automata.o): New rule.
+       (simple_generated_c): Add insn-automata.c.
+       (build/genattrtab.o, build/genautomata.o): Update dependencies.
+       (genprogmd): Add automata.
+       (build/genattrtab): Needs no extra objects nor libraries.
+       (build/genautomata): Needs build/vec.o and -lm.
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
+       (output_dfa_max_issue_rate, locked_states_num): Delete.
+       (struct automaton): Add locked_states field.
+       (output_dead_lock_vect): Save number of locked states in
+       automaton->locked_states.  If it is zero, don't print anything.
+       (output_max_insn_queue_index_def): Define max_insn_queue_index const.
+       (output_internal_dead_lock_func): Only test the dead_lock_vect
+       for automata that have locked states.
+       (output_statistics): Always print the number of locked states for
+       each automaton.  Calculate total number of locked states here.
+       (write_automata): Don't call output_dfa_max_issue_rate.
+       * genattrtab.c: Define length_unit_log as a const variable.
+       * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
+       max_insn_queue_index const.
+       * final.c (length_unit_log): Declare const.
+       * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * genautomata.c:  Include vec.h, not varray.h.
+       Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
+       VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
+       VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
+       VEC_* macros operating on appropriately typed vectors, or to
+       malloced arrays when the size is known in advance.  Const-ify
+       many char* variables and function arguments.  No functional changes.
+       * Makefile.in (build/varray.o): Delete rule.
+       (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
+       (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
+
+2006-01-22  Zack Weinberg  <zackw@panix.com>
+
+       * gensupport.c: Define get_insn_name and record_insn_name here.
+       (read_md_rtx): Call record_insn_name as appropriate.
+       * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
+       * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
+       * genpreds.c, genrecog.c: Don't define get_insn_name nor
+       record_insn_name.
+       * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
+       (BUILD_VARRAY): Delete.
+       (genprognormal): Rename genprogmd.  Fold in all programs from
+       genprognoprint; also attrtab.
+       (build/genattrtab): Just mention genautomata.o and varray.o.
+       Reorganize a bit, add comments to make the categories clearer.
+
 2006-01-22  Zack Weinberg  <zackw@panix.com>
 
        * genconditions.c (condition_table, add_condition): Delete.