OSDN Git Service

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