OSDN Git Service

2006-01-14 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-01-14  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/22548
4         PR tree-optimization/22555
5         PR tree-optimization/22501
6         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
7         * params.def (salias-max-array-elements): New parameter.
8         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
9         * doc/invoke.texi (salias-max-array-elements): Document.
10         * tree-flow-inline.h (var_can_have_subvars): We also handle
11         arrays now.
12         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
13         COMPONENT_REF.
14         * tree-ssa-structalias.c (params.h): Include.
15         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
16         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
17         (get_constraint_for): For ADDR_EXPR operating on something
18         containing an ARRAY_REF, add all subvars to the solution.
19         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
20         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
21         for creating MUST_DEFs.
22         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
23
24 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
25
26         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
27         functions.
28         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
29         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
30         number_of_iterations_le): New functions.
31         (number_of_iterations_special): Removed.
32         (number_of_iterations_exit): Do not use number_of_iterations_special.
33         * tree.c (unsigned_type_for): Always return integer type.
34
35 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
36         Richard Guenther  <rguenther@suse.de>
37
38         PR rtl-optimization/24257
39         * gcse.c (find_moveable_store): Only consider a store movable
40         when the SET_SRC of the insn can be assigned to a register.
41
42 2006-01-14  Ian Lance Taylor  <ian@airs.com>
43
44         * tree.c (tree_not_class_check_failed): New function.
45         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
46         (tree_not_class_check_failed): Declare.
47
48 2006-01-13  Ian Lance Taylor  <ian@airs.com>
49
50         * reload1.c (do_output_reload): Add assertion rejecting a
51         CALL_INSN.
52
53 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
54
55         * combine.c (struct reg_stat): Add new fields truncation_label and
56         truncated_to_mode.
57         (record_value_for_reg): Reset truncated_to_mode.
58         (record_truncated_value): New function.
59         (check_promoted_subreg): Call it.  Rename to check_conversions.
60         (combine_instructions): Rename check_promoted_subreg to
61         check_conversions.
62         (reg_truncated_to_mode): New function.
63         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
64         (gen_lowpart_or_truncate): New function.
65         (force_to_mode): Use it instead of gen_lowpart.
66
67 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
68
69         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
70         VAR is a tag, not its type tag.
71
72 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
73
74         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
75         alternatives to match style of other entries.
76         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
77
78 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
79
80         PR tree-optimization/25771
81         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
82         SSA_NAMES.
83
84 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
85
86         PR tree-opt/24365
87         * tree-inline.c (declare_return_variable): If the return variable
88         was marked as a non gimple complex, set the return slot variable
89         to be a non gimple comple variable.
90
91 2006-01-13  Richard Guenther  <rguenther@suse.de>
92
93         * builtins.c (expand_builtin_sincos): New function.
94         (expand_builtin_mathfn_3): Remove dead code, sin and cos
95         do not set errno.
96         (expand_builtin): Expand sincos using expand_builtin_sincos.
97
98 2006-01-12  DJ Delorie  <dj@redhat.com>
99
100         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
101         shift counts, separate SI shifts for m32c vs m16c, pass shift type
102         so that constant shifts can be split.
103         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
104         (m32c_valid_pointer_mode): Make static.
105         (shift_gen_func_for): New.
106         (m32c_prepare_shift): Use it.  Split large const shifts into
107         multiple shifts.
108         * config/m32c/predicates.md (shiftcount_operand): Allow more
109         general operands.
110         (longshiftcount_operand): New.
111         * doc/md.texi (Machine Constraints): Document In6.
112
113 2006-01-13  Ben Elliston  <bje@au.ibm.com>
114
115         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
116         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
117         documentation.
118
119 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
120
121         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
122         to try to avoid clobbering pieces of structures when we know
123         something about the whole structure.
124         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
125
126 2006-01-13  Ben Elliston  <bje@au.ibm.com>
127
128         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
129         return in memory, as this is no limitation is no longer present.
130
131 2006-01-12  DJ Delorie  <dj@redhat.com>
132
133         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
134         mova with fb, and for fb+0 -> An.
135
136         * config/m32c/mov.md (peephole2): Fix enabling logic.
137
138         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
139         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
140         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
141         FINI_ARRAY_SECTION_ASM_OP): Define.
142
143         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
144         variable.
145         (m32c_legitimize_reload_address): New logic to reload FB to An.
146         (m32c_output_reg_push): Add newline.
147         (m32c_output_reg_pop): Likewise.
148
149 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
150
151         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
152
153 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
154
155         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
156
157 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
158
159         * config/sh/predicates.md (sh_rep_vec): Add parallel to
160         match_code.
161
162 2006-01-11  Ben Elliston  <bje@au.ibm.com>
163
164         * rtlanal.c (find_reg_note): Assert insn is not null.
165
166 2005-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
167
168         * df-scan.c (df_hard_reg_init): Move declaration of i outside
169         ifdef.
170
171 2006-01-11  Jeff Law  <law@redhat.com>
172
173         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
174         hold edge pairs.
175         (mark_threaded_blocks, register_jump_thread): New functions.
176         (thread_through_all_blocks): Remove unwanted argument.  No
177         longer rely on e->aux to communicate thread target info.
178         Call mark_threaded_blocks.  Release the threaded_blocks
179         bitmap and threaded_edges vector when complete.
180         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
181         (threaded_blocks): Remove.
182         (tree_ssa_dominator_optimize): Remove initialization and
183         finalization of threaded_blocks.  Simplify call to
184         thread_through_all_blocks.
185         (thread_across_edge): Call register_jump_thread rather than
186         storing thread information into e->aux.
187         (free_all_edge_infos): Simplify now that e->aux is no longer
188         used to communicate with thread_through_all_blocks.
189         * tree-flow.h (thread_through_all_blocks): Update prototype.
190         (register_jump_thread): Prototype.
191         
192 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
193
194         * df-core.c (df_compact_blocks, df_bb_replace): Use
195         SET_BASIC_BLOCK instead of BASIC_BLOCK.
196
197 2006-01-11  Richard Guenther  <rguenther@suse.de>
198
199         PR tree-optimization/25734
200         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
201         stop propagation after successful propagation to the LHS.
202
203 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
204
205         * basic-block.h (control_flow_graph): Change the type of
206         x_basic_block_info to VEC(basic_block,gc) *.
207         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
208         basic_block_info.
209         (SET_BASIC_BLOCK): New.
210         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
211         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
212         * cfgbuild.c (find_basic_blocks): Likewise.
213         * cfglayout.c (fixup_reorder_chain): Likewise.
214         * cfgrtl.c (create_basic_block_structure,
215         rtl_create_basic_block): Likewise.
216         * ifcvt.c (find_if_case_1): Likewise.
217         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
218         Likewise.
219
220 2005-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
221
222         * Makefile.in: Removed rotted odf.c entry.
223         
224 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
225
226         PR target/25706
227         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
228         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
229         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
230         output pattern modifier, not %e.
231         * config/cris/cris.c (cris_op_str): Update comment about pattern
232         modifier.
233         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
234         before falling through into...
235         <case 'E'>: Redefined from old 'e' case.
236
237 2006-01-11  Jan Hubicka  <jh@suse.cz>
238
239         PR target/25042
240         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
241
242 2006-01-11  Jan Hubicka  <jh@suse.cz>
243
244         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
245         * i386.c (x86_decompose_lea): Kill.
246         (ix86_rtx_costs): Kill.
247
248 2006-01-11  Jan Hubicka  <jh@suse.cz>
249
250         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
251         * cgraph.h (cgraph_node): Add inline_decl.
252         (cgraph_insert_node_to_hashtable): Declare.
253         (save_inline_function_body): Declare.
254         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
255         clones.
256         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
257         (cgraph_function_versioning): Update call of tree_function_versioning.
258         (save_inline_function_body): New function.
259         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
260         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
261         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
262         (cgraph_default_inline_p): Likewise.
263         (cgraph_decide_inlining_incrementally): Likewise.
264         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
265         (copy_bb): Kill saving; do updating of clones.
266         (copy_cfg_body): Kill saving.
267         (initialize_inlined-parameters): Likewise.
268         (expand_call_inline): Likewise.
269         (save_body): Kill.
270         (tree_function_versioning): New parameter "update_clones".
271         (inlining_p): Kill saving.
272         * tree-inline.h (tree_function_versioning): Update prototype.
273         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
274         saving.
275
276 2006-01-11  Ian Lance Taylor <ian@airs.com>
277
278         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
279         Allow undoing set of machine mode.
280         (do_SUBST): Use enums instead of is_int.
281         (do_SUBST_MODE): New function.
282         (SUBST_MODE): New macro.
283         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
284         reg and trying to replace reg_regno_rtx with a new register.
285         (undo_all): Use new enums, handle undoing a PUT_MODE change.
286         (simplify_set): Use SUBST_MODE.
287         (distribute_notes): Remove code that tried to update reg notes
288         for regno_reg_rtx changes.
289
290 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
291
292         PR tree-optimization/23109
293         PR tree-optimization/23948
294         PR tree-optimization/24123
295
296         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
297         * tree-cfg.c (single_noncomplex_succ): New.
298         * tree-flow.h (single_noncomplex_succ): Declare it.
299         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
300         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
301         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
302         insert_bb, register_division_in, insert_reciprocals,
303         replace_reciprocal, free_bb): New.
304         (execute_cse_reciprocals_1): Rewritten.
305         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
306         Do not commit any edge insertion.  Always compute dominators and
307         create the allocation pool.
308         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
309         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
310         * targhooks.c (default_min_divistions_for_recip_mul): New.
311         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
312         * passes.c (init_optimization_passes): Run recip after tree loop
313         optimizations.
314         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
315
316 2005-01-11  Danny Berlin <dberlin@dberlin.org>
317             Kenneth Zadeck <zadeck@naturalbridge.com>
318
319         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
320         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
321         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
322         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
323         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
324         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
325         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
326         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
327         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
328         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
329         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
330         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
331         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
332         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
333         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
334         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
335         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
336         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
337         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
338         DF_SCAN_POST_ALLOC): New macros.
339         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
340         df_free_bb_function, df_local_compute_function, df_init_function,
341         df_dataflow_function, df_confluence_function_0,
342         df_confluence_function_n, df_transfer_function,
343         df_finalizer_function, df_free_function, df_dump_problem_function,
344         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
345         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
346         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
347         df_urec_bb_info, ) New types.
348         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
349         variables.
350         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
351         df_analyze_simple_change_some_blocks,
352         df_analyze_simple_change_one_block, df_compact_blocks,
353         df_bb_replace, df_bb_regno_last_use_find,
354         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
355         df_insn_regno_def_p, df_find_def, df_find_use,
356         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
357         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
358         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
359         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
360         debug_df_chain, df_get_dependent_problem, df_chain_create,
361         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
362         df_grow_bb_info, df_chain_dump, df_print_bb_index,
363         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
364         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
365         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
366         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
367         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
368         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
369         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
370         df_ref_remove, df_insn_refs_delete, df_refs_delete,
371         df_reorganize_refs, df_set_state, df_hard_reg_init,
372         df_read_modify_subreg_p) New public functions.
373         * df-core.c: The core dataflow solver and glue routines for rtl
374         dataflow.
375         (df_init, df_add_problem, df_set_blocks, df_finish,
376         df_hybrid_search_forward, df_hybrid_search_backward,
377         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
378         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
379         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
380         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
381         df_reg_defined, df_find_use, df_reg_used, df_dump,
382         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
383         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
384         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
385         debug_df_useno, reset_df_after_reload): New functions.
386         * df-scan.c: The scanning fuctions, once in df.c, completely
387         rewritten so that they now fully model the functionality of
388         register usage at the backend.
389         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
390         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
391         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
392         df_grow_insn_info, df_rescan_blocks, df_ref_create,
393         df_get_artificial_defs, df_get_artificial_uses,
394         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
395         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
396         df_refs_delete, df_reorganize_refs, df_set_state,
397         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
398         df_def_record_1, df_defs_record, df_uses_record,
399         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
400         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
401         df_record_exit_block_uses, df_hard_reg_init): New functions.
402
403         * df-problems.c: Seven concrete dataflow problems that use the
404         scanning in df-scan.c and are solved by the engine in df-core.c.
405         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
406         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
407         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
408         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
409         df_ru_free_bb_info, df_ru_alloc,
410         df_ru_bb_local_compute_process_def,
411         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
412         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
413         df_ru_transfer_function, df_ru_free, df_ru_dump,
414         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
415         df_rd_free_bb_info, df_rd_alloc,
416         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
417         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
418         df_rd_transfer_function, df_rd_free, df_rd_dump,
419         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
420         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
421         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
422         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
423         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
424         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
425         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
426         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
427         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
428         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
429         df_urec_mark_reg_change, df_urec_check_earlyclobber,
430         df_urec_mark_reg_use_for_earlyclobber,
431         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
432         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
433         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
434         df_urec_dump, df_urec_add_problem, df_chain_alloc,
435         df_chain_create_bb_process_use, df_chain_create_bb,
436         df_chain_finalize, df_chain_free, df_chains_dump,
437         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
438         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
439         df_reg_lifetime): New functions.
440         * df.c: Deleted file.
441         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
442         consistent with new df api.
443         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
444         rest_of_handle_sms): Ditto.
445         * web.c (unionfind_union, union_defs, entry_register, web_main):
446         Ditto.
447         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
448         invariant_expr_equal_p, find_defs, check_dependencies,
449         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
450         free_inv_motion_data, move_loop_invariants): Ditto.
451         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c): 
452         Update dependencies.
453         (odf.c): Added defective entry that was deleted later in day.
454         * sched-deps.c (sched_analyze_1): Ditto.
455
456 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
457
458         * tree-ssa-operands.c (get_expr_operands): Record addressable
459         variables directly.  Do not call add_stmt_operands for CONST_DECLs
460         and ARRAY_DECLs.
461         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
462         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
463
464 2006-01-11  Ben Elliston  <bje@au.ibm.com>
465
466         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
467         function returns true in the positive case.
468
469 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
470
471         PR target/20754
472         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
473         for SI, DI, SF and DF modes.  Add alternatives to copy between
474         general and floating point registers to the 32-bit patterns.
475         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
476         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
477         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
478         generating 64-bit code.
479         * config/pa/pa.c (output_move_double): Handle copies between general
480         and floating registers.
481
482 2006-01-10  Stuart Hastings  <stuart@apple.com>
483
484         * config/i386/i386.md (set_got): Update.
485         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
486         (builtin_setjmp_receiver): Mach-O support.
487         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
488         (GOT_SYMBOL_NAME): Define.
489         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
490         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
491         * config/i386/i386.c (override_options): Revise for Darwin.
492         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
493         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
494         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
495         * config/i386/i386-protos.h (output_set_got): Likewise.
496         * config/darwin.c (machopic_legitimize_pic_address): Update
497         regs_ever_live[].
498
499 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
500
501         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
502         when MODE isn't BLKmode.
503
504 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
505
506         PR rtl-optimization/25367
507         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
508
509 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
510
511         PR target/25718
512         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
513         for a negative bound.
514
515 2006-01-10  Richard Guenther  <rguenther@suse.de>
516
517         * tree-ssa-structalias.c (get_constraint_for_component_ref):
518         Never override with anything constraint.
519
520 2006-01-10  Jan Beulich  <jbeulich@novell.com>
521
522         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
523         256 bits when optimize_size.
524
525 2006-01-10  Jan Beulich  <jbeulich@novell.com>
526
527         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
528         MASK_ALIGN_DOUBLE.
529         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
530         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
531         arguments.
532
533 2006-01-10  Ben Elliston  <bje@au.ibm.com>
534
535         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
536         float modes.
537         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
538         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
539         (USE_FP_FOR_ARG): Reject decimal float modes.
540         (function_arg_advance): Likewise.
541         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
542         (rs6000_handle_altivec_attribute): Do not permit decimal floating
543         point types in AltiVec vectors.
544         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
545         (rs6000_libcall_value): Likewise.
546
547 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
548
549         * config/xtensa/ieee754-df.S: New file.
550         * config/xtensa/ieee754-sf.S: New file.
551         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
552         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
553         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
554
555 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
556
557         * config/sh/predicates.md (binary_float_operator,
558         binary_logical_operator, commutative_float_operator,
559         equality_comparison_operator, greater_comparison_operator,
560         less_comparison_operator, logical_operator,
561         noncommutative_float_operator, shift_operator,
562         symbol_ref_operand, unary_float_operator): Remove redundant
563         conditionals.
564
565 2006-01-09  Jeff Law  <law@redhat.com>
566
567         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
568         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
569         now unused arguments.  Callers updated.
570         (eliminate_redundant_computations): Remove now unused arguments,
571         callers updated.
572         (local_fold): Remove, no longer used.
573         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
574         and moved to...
575         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
576         (simplify_cond): New function.
577         (forward_propagate_into_cond): Call simplify_cond.
578
579 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
580
581         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
582         (*vec_extractv2di_1_sse): New.
583
584 2006-01-09  Ben Elliston  <bje@au.ibm.com>
585
586         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
587
588 2006-01-08  Richard Guenther  <rguenther@suse.de>
589
590         * tree-ssa-structalias.c (get_constraint_for): Remove
591         anyoffset argument.
592         (get_constraint_for_component_ref): Likewise.
593         (do_deref): Likewise.
594         (get_constraint_for): Likewise.
595         (do_structure_copy): Likewise.
596         (handle_ptr_arith): Likewise.
597         (find_func_aliases): Likewise.  Remove unused need_anyoffset
598         variable.
599
600 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
601             Kaz Kojima  <kkojima@gcc.gnu.org>
602
603         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
604         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
605         (EXTRA_CONSTRAINT_C16): Remove.
606         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
607         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
608         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
609         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
610         constants of SHmedia.  Handle nested constant expressions of
611         SHmedia correctly.
612         (andcosts): Fix the costs for SHmedia constants.
613         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
614         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
615         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
616         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
617         (movv4hi_i, movv2si_i): Likewise.
618         (movsi_const): Adjust the second operand of ior so to match with
619         the Csu constraint.
620         (movdi_const, movdi_const_32bit): Likewise.
621         (movdi_const_16bit+1): Don't sign-extend LOW.
622         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
623         step.
624         (*double_shori): Fix the split condition.  Use GEN_INT instead
625         of get_int_mode calls.  Mask lower 16-bit of the argument of
626         the last GEN_INT.
627         (sym2GOTPLT): Remove.
628         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
629         gen_rtx_UNSPEC.
630         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
631         instead of EXTRA_CONSTRAINT_C16.
632
633 2006-01-07  Ian Lance Taylor  <ian@airs.com>
634             David Edelsohn  <edelsohn@gnu.org>
635
636         PR rtl-optimization/25662
637         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
638         for constant operands instead of simplify_gen_binary.
639         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
640         after trying simplify_binary_operation
641
642 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
643
644         * tree.c (iterative_hash_expr): Hash decls based on UID.
645
646 2006-01-06  Eric Christopher  <echristo@apple.com>
647
648         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
649         (TARGET_UNWIND_EMIT): Fix spelling.
650         * target.h (gcc_target): Add except_table_label.
651         * except.c (output_function_exception_table): Use.
652         * varasm.c (default_emit_except_table_label): New.
653         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
654         define.
655         (asm_out): Add here.
656         * output.h (default_emit_except_table_label): Prototype.
657         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
658         * config/darwin.c (darwin_emit_except_table_label): Define.
659         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
660
661 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
662
663         PR tree-optimization/18527
664         * tree-ssa-loop-niter.c (number_of_iterations_cond,
665         number_of_iterations_special, number_of_iterations_exit):
666         Move base and step of an iv to a single structure.  Add
667         no_overflow flag, and use it in # of iterations analysis.
668         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
669         folded_casts argument.
670         (simple_iv): Pass base and step in a structure.  Set no_overflow
671         flag.
672         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
673         Evaluate expensiveness of computing # of iterations instead of
674         the final expression.
675         * tree-scalar-evolution.h (affine_iv): New structure.
676         (simple_iv): Declaration changed.
677         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
678         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
679         find_givs_in_stmt): Changed due to simple_iv change.
680
681 2006-01-06  Jeff Law  <law@redhat.com>
682
683         PR ada/24994
684         * tree-cfg.c (bsi_replace): Rename final argument from
685         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
686         change (stmt -> orig_stmt).
687         * tree-eh.c (verify_eh_throw_stmt_node): New function.
688         (bsi_remove): Add new argument.  Remove EH information
689         if requested.
690         (verify_eh_throw_table_statements): New function.
691         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
692         updated.
693         * tree-optimize.c (execute_free_cfg_annotations): Verify
694         the EH throw statement table after removing annotations.
695         * except.h (verify_eh_throw_table_statements): Prototype.
696         * tree-flow.h (bsi_remove): Update prototype.
697         * tree-vrp.c (remove_range_assertions): Add new argument to
698         bsi_remove call.
699         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
700         * tree-complex.c (expand_complex_div_wide): Likewise.
701         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
702         * tree-tailcall.c (eliminate_tailcall): Likewise.
703         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
704         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
705         * tree-nrv.c (tree_nrv): Likewise.
706         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
707         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
708         (combine_blocks): Likewise.
709         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
710         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
711         (cleanup_control_flow): Likewise.
712         (remove_forwarder_block): Likewise.
713         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
714         * tree-sra.c (sra_replace): Likewise.
715         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
716         (forward_propagate_single_use_vars): Likewise.
717         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
718         * tree-inline.c (expand_call_inline): Likewise.
719         * tree-vect-transform.c (vect_transform_loop): Likewise.
720         * tree-outof-ssa.c (rewrite_trees): Likewise.
721         * tree-cfg.c (make_goto_expr_edges): Likewise.
722         (cleanup_dead_labels): Likewise.
723         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
724         (bsi_move_before, bsi_move_after): Likewise.
725         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
726         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
727
728 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
729
730         PR tree-opt/25528
731         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
732         and IMAGPART_EXPR.
733         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
734         on non gimple variables.  Also add checks at the top for decls and
735         mtags.
736         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
737         complex types.
738         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
739         and IMAGPART_EXPR for creating MUST_DEFs.
740         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
741         and NAME_MEMORY_TAG separately from the DECLs.
742
743 2006-01-06  Richard Guenther  <rguenther@suse.de>
744
745         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
746         annotation, if necessary.
747         * tree-ssa-pre.c (create_expression_by_pieces): Remove
748         redundant calls to update_stmt.
749         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
750         Likewise.
751
752 2006-01-05  Richard Henderson  <rth@redhat.com>
753
754         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
755
756 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
757
758         * c-typeck.c: Update copyright date.
759
760 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
761
762         * c-typeck.c (build_c_cast): Always warn when casting
763         from a pointer to an integer of different size, even if
764         the node was constant.
765
766 2006-01-05  Richard Guenther  <rguenther@suse.de>
767
768         PR tree-optimization/22555
769         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
770         if one structure field is an array.
771         * tree-ssa-operands.c (get_expr_operands): Continue scanning
772         operands even if we found a subvar, but ignore VOPs in this
773         case.
774         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
775         for renaming.
776         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
777
778 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
779
780         PR middle-end/24998
781         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
782
783 2006-01-05  Richard Guenther  <rguenther@suse.de>
784             Diego Novillo  <dnovillo@redhat.com>
785
786         * tree-pass.h (TODO_remove_unused_locals): Define.
787         * gimple-low.c (expand_var_p, remove_useless_vars,
788         pass_remove_useless_vars): Remove.  Update all users.
789         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
790         (remove_unused_locals): New function.
791         * tree-flow.h (remove_unused_locals): Declare.
792         * passes.c (execute_todo): Call remove_unused_locals if
793         TODO_remove_unused_locals is set.
794         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
795         * tree-ssa-dce.c (pass_dce): Likewise.
796         * tree-outof-ssa.c (pass_del_ssa): Likewise.
797
798 2006-01-05  Richard Guenther  <rguenther@suse.de>
799
800         * tree-flow.h (struct fieldoff): Decompose field to
801         type, size and decl.
802         * tree-ssa-alias.c (create_sft): Take type as parameter.
803         (create_overlap_variables_for): Store type, size and decl
804         in the fieldoff structure.
805         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
806         of struct fieldoff.
807         (push_fields_onto_fieldstack): Likewise.
808         (create_variable_info_for): Likewise.  Use offset for the
809         SFT name if the decl is not available.
810
811 2006-01-04  Paul Brook  <paul@codesourcery.com>
812
813         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
814
815 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
816
817         * lambda-code.c (can_put_in_inner_loop): Relax
818         restrictions.
819         (can_put_after_inner_loop): New function.
820         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
821         (perfect_nestify): Change to make copies and modify uses.
822
823 2006-01-04  Richard Henderson  <rth@redhat.com>
824
825         Merge from gomp branch:
826         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
827         via integer constant.
828         (pragma_lex): Remove.
829         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
830         rather than parsing it.
831         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
832         handle_pragma_extern_prefix): Add %< %> quotes.
833         (registered_pragmas): New.
834         (c_register_pragma_1): New.
835         (c_register_pragma): Use it.
836         (c_register_pragma_with_expansion): Likewise.
837         (c_invoke_pragma_handler): New.
838         (init_pragma): Use cpp_register_deferred_pragma directly for
839         pch_preprocess.
840         * c-pragma.h (enum pragma_kind): New.
841         (pragma_handler): New.
842         (c_invoke_pragma_handler): Declare.
843         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
844         CPP_PRAGMA_EOL.
845         * c-common.h (c_common_pch_pragma): Update decl.
846         * Makefile.in (c-parser.o): Update dependencies.
847         (GTFILES): Add c-pragma.h.
848         * c-parser.c (struct c_token): Add pragma_kind.
849         (struct c_parser): Add in_pragma.
850         (c_lex_one_token): Always initialize keyword and pragma_kind.
851         Extract data for CPP_PRAGMA.
852         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
853         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
854         Don't allow CPP_PRAGMA_EOL if in_pragma.
855         (c_parser_consume_pragma): New.
856         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
857         (c_parser_skip_to_end_of_parameter): Likewise.
858         (c_parser_skip_to_end_of_block_or_statement): Likewise.
859         (c_parser_skip_to_pragma_eol): New.
860         (c_parser_external_declaration): Handle CPP_PRAGMA.
861         (c_parser_compound_statement_nostart): Likewise.
862         (c_parser_statement_after_labels): Likewise.
863         (c_parser_pragma): New.
864         (pragma_lex): Likewise.
865         (c_parser_pragma_pch_preprocess): New.
866         (c_parser_new): Merge into ...
867         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
868
869 2006-01-04  Jeff Law  <law@redhat.com>
870
871         PR ada/24994
872         * tree-cfg.c (bsi_replace): Remove the original statement
873         from the EH throw statement table.
874
875 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
876
877         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
878         make the prototype extern "C" and add throw ().
879
880         PR target/25554
881         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
882         and pos non-negative and pos + len <= 32.
883         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
884         drop pos + len < HOST_BITS_PER_WIDE_INT test.
885         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
886
887         PR c/25559
888         * c-common.c (handle_vector_size_attribute): Reject zero vector size
889         as well as sizes not multiple of component size.
890
891         PR debug/25562
892         * function.c (instantiate_expr): New function.
893         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
894         walk its DECL_VALUE_EXPR with instantiate_expr.
895
896         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
897         DW_OP_deref{,_size} if address isn't going to be added.
898
899 2006-01-04  Ben Elliston  <bje@au.ibm.com>
900
901         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
902         * config/fp-bit.c: Likewise.
903
904 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
905
906         * dominance.c: Add comment about why we use DFS numbering
907         of dominance tree.
908
909 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
910             Richard Henderson  <rth@redhat.com>
911
912         Merge from gomp-branch:
913         * varasm.c (assemble_variable): Handle thread-local COMMON data.
914         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
915
916 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
917
918         PR rtl-optimization/25578
919         * combine.c (combine_simplify_rtx, force_to_mode): Don't
920         pass a parameter to simplify_shift_const if changing ASHIFTRT
921         to LSHIFTRT.
922
923 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
924
925         * builtins.c (get_builtin_sync_mem): New function.
926         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
927         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
928         Call get_builtin_sync_mem to generate mem rtx.
929
930 2006-01-03  Richard Guenther  <rguenther@suse.de>
931
932         PR c/25183
933         * stmt.c (add_case_node): Make sure to clear overflow flags
934         from ranges.
935
936 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
937
938         Merge from gomp-branch.
939         * config/sparc/sync.md: New file.
940         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
941         UNSPECV_LDSTUB): New constants.
942         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
943         * config/sparc/predicates.md (memory_reg_operand): New predicate.
944         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
945         prototype.
946
947 2006-01-03  Roger Sayle  <roger@eyesopen.com>
948
949         * combine.c (reg_subword_p): New predicate to test whether the
950         destination of a set refers to a subword/piece of a register.
951         (try_combine): Generalize the code to merge the setting of a
952         pseudo to a constant followed by a set of a subword of that
953         register to a constant.
954
955 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
956
957         * basic-block.h (control_flow_graph): Change the type of
958         x_label_to_block_map to VEC(basic_block,gc) *.
959         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
960         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
961
962         * tree-ssa-propagate.c (cfg_blocks): Change the type to
963         VEC(basic_block,heap) *.
964         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
965         ssa_prop_fini): Adjust the uses of cfg_blocks.
966
967 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
968
969         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
970         COMPONENT_REFs.
971         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
972         hashing trees instead of a pointer hash.
973         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
974         compare for MEM_EXPR.
975
976         PR rtl-optimization/25130
977         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
978         when comparing MEMs for GCSE
979
980 2006-01-03  Ben Elliston  <bje@au.ibm.com>
981
982         * targhooks.h (default_decimal_float_supported_p): Declare.
983         * targhooks.c (default_decimal_float_supported_p): Define.
984         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
985         `default_decimal_float_supported_p'.
986         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
987
988 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
989
990         * combine.c (apply_distributive_law <SUBREG>): Check
991         TRULY_NOOP_TRUNCATION.
992
993 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
994
995         * dwarf2out.c (have_switched_text_section): Delete.
996         (have_multiple_function_sections): New.
997         (have_location_lists): Make 'bool'.
998         (add_AT_loc_list): Use 'true' not '1'.
999         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
1000         (output_loc_list): Use have_multiple_function_sections.
1001         (output_ranges): Likewise.
1002         (dwarf2out_begin_function): Set have_multiple_function_sections if
1003         necessary.
1004         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
1005         Check function_section rather than DECL_SECTION_NAME.
1006         (dwarf2out_finish): Use have_multiple_function_sections.
1007         Don't clear have_location_lists.
1008
1009 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
1010             Jan Hubicka  <jh@suse.cz>
1011
1012         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
1013         case of conditional jump jumping to the next instruction.
1014         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
1015         cases of conditional jump jumping to the next instruction.
1016
1017 2006-01-02  Jan Hubicka  <jh@suse.cz>
1018
1019         * i386.c (*_cost): Add COSTS_N_INSNS.
1020         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
1021
1022 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
1023
1024         PR target/25259
1025         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
1026
1027 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1028
1029         * config/arm/arm.c (all_fpus): Fix comment typo.
1030         * config/darwin.c: Likewise.
1031         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
1032         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
1033         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
1034
1035 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
1036
1037         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
1038         (rs6000_split_compare_and_swapqhi): New.
1039         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
1040         (sync_compare_and_swapqhi_internal): New.
1041         * config/rs6000/rs6000-protos.h: Declare.