OSDN Git Service

2005-04-27 Richard Guenther <rguenth@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
2
3         * tree-ssa-propagate.c (set_rhs): Check operand of
4         ADDR_EXPR for gimpliness, too.
5
6 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
7
8         * tree-ssa-pre.c: Fix a comment typo.
9
10 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
11
12         PR tree-optimization/21171
13         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
14         record address uses if the reference is volatile.
15
16 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
17
18         * tree-complex.c (expand_vector_operation): New, extracted from
19         expand_vector_operations_1.
20         (tree_vec_extract): Build a NOP_EXPR.
21         (expand_vec_parallel): Do not care about returning the correct type.
22         (expand_vector_operations_1): Call expand_vector_operation.
23         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
24
25         * tree-complex.c (gate_expand_vector_operations): New.
26         (pass_lower_vector_ssa): Use it.
27         * tree-optimize.c (init_tree_optimization_passes): Include
28         pass_lower_vector_ssa.
29         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
30         (vectorizable_operation): Use it.
31         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
32         integer modes for the vector type.
33
34         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
35         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
36         Do not cope with UNITS_PER_SIMD_WORD == 0.
37         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
38         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
39         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
40         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
41         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
42         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
43         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
44
45         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
46         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
47         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
48
49         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
50         (UNITS_PER_SIMD_WORD): New.
51
52 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
53
54         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
55         gcc_unreachable as appropriate.
56         (ia64_expand_load_address, ia64_expand_tls_address,
57         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
58         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
59         next_scratch_gr_reg, ia64_initial_elimination_offset,
60         ia64_expand_prologue, ia64_expand_epilogue,
61         ia64_output_dwarf_dtprel, ia64_print_operand,
62         ia64_register_move_cost, first_instruction, rws_access_regno,
63         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
64         ia64_sched_init, ia64_variable_issue,
65         ia64_first_cycle_multipass_dfs_lookahead_guard,
66         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
67         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
68         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
69         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
70         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
71         * config/ia64/predicates.md (got_symbolic_operand,
72         sdata_symbolic_operand): Likewise.
73         * config/ia64/vect.md (vcondv2sf): Likewise.
74
75 2005-04-27  Matt Thomas <matt@3am-software.com>
76
77         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
78         CONSTANT_ADDRESS_P in config/vax/vax.h
79         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h. 
80         (INDEX_REGISTER_P): New.
81         (BASE_REGISTER_P): New.
82         (indirectable_constant_address_p): New.  Adapted from
83 <<<<<<< ChangeLog
84         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h.
85         Use SYMBOL_REF_LOCAL_P.
86 =======
87         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
88 >>>>>>> 2.8478
89         (indirectable_address_p): New.  Adapted from
90         INDIRECTABLE_ADDRESS_P in vax.h.
91         (nonindexed_address_p): New.  Adapted from
92 <<<<<<< ChangeLog
93         GO_IF_NONINDEXED_ADDRESS in vax.h.
94         (index_temp_p): New.  Adapted from
95         INDEX_TERM_P in vax.h.
96         (reg_plus_index_p): New.  Adapted from
97         GO_IF_REG_PLUS_INDEX in vax.h.
98 =======
99         GO_IF_NONINDEXED_ADDRESS in vax.h.
100         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
101         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
102 >>>>>>> 2.8478
103         (legitimate_address_p): New.  Adapted from
104 <<<<<<< ChangeLog
105         GO_IF_LEGITIMATE_ADDRESS in vax.h
106 =======
107         GO_IF_LEGITIMATE_ADDRESS in vax.h.
108 >>>>>>> 2.8478
109         (vax_mode_dependent_address_p): New.  Adapted from
110 <<<<<<< ChangeLog
111         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h
112 =======
113         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
114 >>>>>>> 2.8478
115         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
116         legitimate_constant_address_p.
117         (CONSTANT_P): Use legitimate_constant_p.
118         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
119         (INDIRECTABLE_ADDRESS_P): Removed.
120         (GO_IF_NONINDEXED_ADDRESS): Removed.
121         (INDEX_TEMP_P): Removed.
122         (GO_IF_REG_PLUS_INDEX): Removed.
123 <<<<<<< ChangeLog
124         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p.
125         Two definitions, depending on whether REG_OK_STRICT is defined.
126 =======
127         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
128         definitions, depending on whether REG_OK_STRICT is defined.
129 >>>>>>> 2.8478
130         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
131         Two definitions, depending on whether REG_OK_STRICT is defined.
132         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
133         added.
134         (legitimate_constant_p): Prototype added.
135         (legitimate_address_p): Prototype added.
136         (vax_mode_dependent_address_p): Prototype added.
137
138 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
139
140         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
141
142 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
143
144         PR c/21213
145         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
146         transparent union.
147
148 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
149
150         PR c/20740
151         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
152         assertion failures, if __gcc_host_wide_int__ is not properly
153         defined.
154         (init_dynamic_diag_info): Give errors, not assertion failures, if
155         location_t, tree or __gcc_host_wide_int__ are not properly
156         defined.
157
158 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
159
160         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
161         n_iv_uses, iv_use, n_iv_cands, iv_cand,
162         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
163         prepare_decl_rtl, free_loop_data,
164         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
165         VARRAY.
166
167         * tree.h (tree_phi_node): Add a comment about the order of PHI
168         arguments.
169
170 2005-04-26  Paul Brook  <paul@codesourcery.com>
171
172         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
173
174 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
175
176         * config/mips.mips.c (mips_legitimize_tls_address): Use
177         gcc_unreachable.
178
179         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
180         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
181         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
182
183         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
184         'abort'.
185
186 2005-04-26  Jeff Law  <law@redhat.com>
187
188         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
189         (op_iter_init_must_and_may_def): Likewise.
190         (unmodifiable_var_p): Move to a later point in the file.
191         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
192         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
193         (dse_record_phis): Directly check for virtual operands rather than
194         using need_imm_uses_for.
195         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
196         store has multiple V_{MAY,MUST}_DEF operands.
197
198 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
199
200         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
201         stmt.
202
203 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
204
205         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
206         call to find_edge outside a loop to go through a PHI chain.
207
208 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
209
210         PR tree-optimization/17598
211         * fold-const.c (fold_binary): Fold comparisons of addresses
212         of COMPONENT_REFs which reference the same field to
213         comparisons of the addresses of the base objects.
214
215 2005-04-26  Julian Brown  <julian@codesourcery.com>
216
217         * config/arm/arm.c (arm_return_in_msb): New function.
218         (arm_must_pass_in_stack): New function.
219         (TARGET_RETURN_IN_MSB): Define target hook.
220         (TARGET_MUST_PASS_IN_STACK): Define target hook.
221         (arm_function_value): Pad small aggregate return.
222         (arm_pad_arg_upward): New function.
223         (arm_pad_reg_upward): New function.
224         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
225         (FUNCTION_ARG_PADDING): Define macro.
226         (BLOCK_REG_PADDING): Define macro.
227         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
228         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
229         (arm_pad_reg_upward): Declare function.
230
231 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
232
233         * basic-block.h (ei_cond): New.
234         (FOR_EACH_EDGE): Call ei_cond.
235
236         PR tree-optimization/21047
237         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
238         (fold): Don't handle ASSERT_EXPR.
239
240 2005-04-25  Roger Sayle  <roger@eyesopen.com>
241
242         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
243         all writes to any stack register as a read/write dependency on
244         FIRST_STACK_REG.
245         (sched_analyze_2): Likewise, for reads from any stack register.
246
247 2005-04-25  Richard Henderson  <rth@redhat.com>
248
249         * final.c (output_addr_const): Revert 2005-04-09 change.
250
251 2005-04-25  Mike Stump  <mrs@apple.com>
252
253         * config/darwin.c (darwin_encode_section_info): Always set
254         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
255
256 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
257
258         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
259         gensupport.c, protoize.c, toplev.c: Replace calls to
260         `unlock_stream' with `unlock_std_streams'.
261
262 2005-04-25  Devang Patel <dpatel@apple.com>
263
264         * dbxout.c (dbxout_type): Emit attribute vector.
265         
266 2005-04-05  Paul Brook  <julian@codesourcery.com>
267
268         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
269         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
270         * config/arm/arm.c (arm_cxx_atexit_name): New function.
271         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
272         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
273         (register_dtor_fn): Likewise.
274         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
275
276 2005-04-25  Ian Lance Taylor  <ian@airs.com>
277
278         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
279         * c-common.h (EXPR_STMT_EXPR): Don't define.
280         (c_common_stmt_codes): Don't define.
281         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
282         * c-gimplify.c (gimplify_expr_stmt): Remove.
283         (c_gimplify_expr): Remove EXPR_STMT case.
284         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
285         to INIT_STATEMENT_CODES.
286         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
287
288 2005-04-25  Jan Hubicka  <jh@suse.cz>
289
290         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
291
292         * except.c: Include diagnostic.h
293         (dump_eh_tree, verify_eh_tree): New functions.
294         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
295         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
296         (dump_function_to_file): dump eh tree.
297         * tree-eh.c (mark_eh_edge): New function.
298         (mark_eh_edge_found_error): New static variable.
299         (verify_eh_edges): New function.
300
301 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
302
303         * tree-ssa-alias.c (fieldoff_t): Remove.
304         (fieldoff_s): typedef the structure itself.  Create a vector of
305         objects.
306         (push_fields_onto_fieldstack): Return count of fields pushed.
307         Remove peeling of first field.  Adjust.
308         (fieldoff_compare): Adjust.
309         (create_overlap_variables_for): Adjust.
310
311 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
312
313         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
314
315 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
316
317         PR bootstrap/21215
318         * doc/install.texi: Document correct assembler and linker to use
319         on i?86-*-solaris2.10.
320
321 2005-04-25  Steven Bosscher  <stevenb@suse.de>
322
323         Fix PR tree-optimization/21173
324
325         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
326         Unshare expression we pass to force_gimple_operand.
327
328 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
329             Stephen Clarke <stevec@superh.com>
330             Roger Sayle <roger@eyesopen.com>
331
332         PR rtl-optimization/20413
333         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
334         VOIDmode for LABEL_REF.
335         * final.c (shorten_branches): Likewise.
336         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
337         * loop.c (reg_dead_after_loop): Likewise.
338         * varasm.c (decode_addr_const): Likewise.
339         * doc/rtl.texi: Document mode requirement for LABEL_REF.
340
341 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
342
343         * config.gcc (avr-*-*): Remove redundant "case".
344
345 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
346
347         * tree-vect-analyze.c (vect_mark_relevant): Take
348         VEC(tree,heap) instead of varray_type as an argument.
349         (vect_mark_stmts_to_be_vectorized): Change the type of
350         worklist to VEC(tree,heap).  Adjust uses of worklist.
351
352 2005-04-24  Devang Patel  <dpatel@apple.com>
353
354         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
355         
356 2005-04-24  Ian Lance Taylor  <ian@airs.com>
357
358         * c-semantics.c (build_stmt): Remove test of specific tree codes
359         for TREE_SIDE_EFFECTS handling.
360
361 2005-04-24  Per Bothner  <per@bothner.com>
362
363         * c-opts.c (finish_options):  Make the line-number of the <built-in>
364         location 0, as assumed elsewhere, rather than 1.
365
366 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
367
368         * tree-ssa-uncprop.c (equiv_stack): Change the type o
369         VEC(tree,heap).
370         (tree_ssa_uncprop, uncprop_finalize_block,
371         uncprop_initialize_block): Update uses of equiv_stack.
372
373 2005-04-24  Richard Henderson  <rth@redhat.com>
374
375         PR rtl-opt/21163
376         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
377         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
378         constm1_rtx.
379         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
380         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
381         <DIV, MOD>: Likewise.
382
383 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
384
385         * collect2.c (main): Unlock the stdio streams.
386         * gcc.c (main): Likewise.
387         * gcov-dump.c (main): Likewise.
388         * gcov.c (main): Likewise.
389         * gen-protos.c (main): Likewise.
390         * gensupport.c (init_md_reader_args_cb): Likewise.
391         * protoize.c (main): Likewise.
392         * toplev.c (general_init): Likewise.
393
394 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
395
396         PR middle-end/20991
397         * cgraph.h (cgraph_local_info): Add vtable_method field.
398         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
399         and node is vtable_method, finalized and not reachable, don't do
400         anything.
401
402 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
403
404         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
405         COMPARISON_CLASS_P.
406         * tree-ssa-pre.c (create_value_expr_from): Use
407         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
408         * tree-ssa-propagate.c (stmt_makes_single_load,
409         stmt_makes_single_store): Use REFERENCE_CLASS_P.
410         * tree-vect-transform.c (vect_is_simple_cond): Use
411         COMPARISON_CLASS_P.
412         * tree-vrp.c (extract_range_from_assert,
413         build_assert_expr_for, fp_predicate, has_assert_expr): Use
414         COMPARISON_CLASS_P.
415
416         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
417         of tpa_to_clear to VEC(int,heap).  Update uses of
418         tpa_to_clear.  Free tpa_to_clear at the end.
419
420 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
421
422         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
423         function decl.
424
425 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
426
427         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
428         and gcc_unreachable as appropriate.
429         (num_insns_constant, output_vec_const_move,
430         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
431         rs6000_emit_set_const, rs6000_emit_move,
432         spe_build_register_parallel, function_arg,
433         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
434         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
435         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
436         rs6000_common_init_builtins, expand_block_clear,
437         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
438         extract_ME, rs6000_get_some_local_dynamic_name,
439         rs6000_output_function_entry, print_operand,
440         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
441         output_cbranch, output_e500_flip_gt_bit,
442         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
443         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
444         compute_save_world_info, rs6000_stack_info,
445         rs6000_emit_load_toc_table, rs6000_frame_related,
446         spe_synthesize_frame_save, rs6000_emit_epilogue,
447         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
448         output_function_profiler, rs6000_trampoline_size,
449         rs6000_initialize_trampoline, find_addr_reg,
450         rs6000_machopic_legitimize_pic_address,
451         rs6000_initial_elimination_offset,
452         rs6000_dbx_register_number): Likewise.
453         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
454         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
455         *movti_power, *movti_string, call, call_value, sibcall,
456         sibcall_value): Likewise.
457         * config/rs6000/spe.md (*movdf_e500_double,
458         *movv2si_internal): Likewise.
459         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
460         from comment.
461
462 2005-04-24  Richard Henderson  <rth@redhat.com>
463
464         PR target/21101
465         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
466         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
467         Deny modes smaller than 4 bytes.
468         * config/i386/i386-protos.h: Update.
469
470 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
471
472         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
473         Switch h8300-*-rtems* to ELF.
474
475 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
476
477         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
478
479 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
480
481         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
482
483 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
484
485         PR middle-end/21082
486         * fold-const.c: Fold &a[i]-&a[j] to i-j.
487
488 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
489
490         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
491         definitions of ssa names in condition.  Split recusive part to ...
492         (tree_simplify_using_condition_1): New function.
493         (expand_simple_operations): New function.
494
495 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
496
497         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
498         (find_interesting_uses_cond): Do not use integer_zerop and
499         integer_nonzerop to check for integer constants.
500         (set_use_iv_cost): Record the value field.
501         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
502         determine_use_iv_cost_outer): Set the value field of the cost pair.
503         (may_eliminate_iv): Do not return the comparison code.
504         (iv_elimination_compare): New function.
505         (determine_use_iv_cost_condition): Set the value field.  Record
506         noneliminable invariants correctly.
507         (rewrite_use_compare, rewrite_use_outer): Use the value field.
508
509 2005-04-23  DJ Delorie  <dj@redhat.com>
510
511         * diagnostic.c (warning): Accept parameter to classify warning option.
512         (warning0): New, for when a pointer to an error() like function is needed.
513         * errors.c (warning): Likewise.
514         * errors.h (warning, warning0): Adjust prototypes.
515         * toplev.h (warning, warning0): Likewise.
516
517         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
518         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
519         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
520         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
521         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
522         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
523         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
524         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
525
526         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
527         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
528         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
529         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
530         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
531         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
532         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
533         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
534         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
535         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
536         config/rs6000/aix52.h, config/rs6000/darwin.h,
537         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
538         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
539         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
540         config/stormy16/stormy16.c, config/v850/v850-c.c,
541         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
542         callers.
543         
544 2005-04-23  Richard Henderson  <rth@redhat.com>
545
546         PR rtl-opt/21102
547         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
548         performing some integral scalar simplifications.
549
550 2005-04-23  Richard Henderson  <rth@redhat.com>
551
552         PR target/21099
553         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
554         simplifying CONST_VECTOR.
555
556 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
557
558         * tree-ssa-live.c (live_worklist): Take a stack allocated on
559         heap as an argument.  Update uses of stack.
560         (calculate_live_on_entry): Allocate stack on heap.
561
562         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
563         partition_link and tpa_nodes on heap.
564
565         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
566         (mark_stmt_necessary, propagate_necessity,
567         mark_really_necessary_kill_operand_phis): Update uses of
568         worklist.
569         (tree_dce_init): Allocate worklist using VEC_alloc.
570         (tree_dce_done): Free worklist using VEC_free.
571
572 2005-04-23  Mike Stump  <mrs@apple.com>
573
574         * config/darwin.c (machopic_indirection_name): Don't use
575         quotes needlessly.
576         (darwin_emit_unwind_label): Use user_label_prefix instead of
577         "_".
578
579 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
580
581         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
582
583 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
584
585         * config.gcc <cris-*>: Specify .opt files.
586         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
587         config/cris/linux.opt: New files.
588         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
589         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
590         (TARGET_ELF): Override to 0.
591         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
592         -melinux-stacksize=N.
593         * config/cris/cris.c: (cris_handle_option): New function.
594         (TARGET_DEFAULT_TARGET_FLAGS): Override.
595         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
596         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
597         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
598         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
599         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
600         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
601         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
602         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
603         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
604         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
605         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
606         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
607         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
608         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
609         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
610         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
611         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
612         (TARGET_LINUX): Define 0.
613         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
614         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
615         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
616         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
617         (TARGET_LINUX): Override to 1.
618         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
619
620 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
621
622         * haifa-sched.c (schedule_block): Fix thinko in previous
623         assertification patch.
624
625 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
626
627         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
628         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
629         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
630         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
631         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
632         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
633         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
634         for hpux11.[1-9]*.
635         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
636         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
637         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
638         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
639         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
640         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
641         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
642         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
643         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
644         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
645         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
646         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
647         (SUBTARGET_OPTIONS): Delete.
648         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
649         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
650         instead of a string.
651         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
652         (pa_cpu_string, pa_unix_string): Delete.
653         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
654         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
655         TARGET_HPUX_10_10.
656         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
657         (pa_handle_option): New function.
658         (override_options): Remove handling of -march=, -mfixed-range=,
659         -mschedule= and -munix=.
660         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
661         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
662         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
663         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
664         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
665         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
666         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
667         redefining.
668         * config/pa/pa.opt: New file.
669         * config/pa/pa-hpux.opt: New file.
670         * config/pa/pa-hpux1010.opt: New file.
671         * config/pa/pa-hpux1111.opt: New file.
672         * config/pa/pa64-hpux.opt: New file.
673
674 2005-04-22  David S. Miller  <davem@davemloft.net>
675
676         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
677         integer when it's mode is VOIDmode not DImode.
678
679 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
680
681         * config/rs6000/rs6000.md (sync_add<mode>_internal,
682         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
683         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
684         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
685         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
686         "bne- $-xxx" rather than local labels.
687         (sync_lock_release<mode>): Add second operand.
688         (lwsync): Use .long rather than a more meaningful opcode.
689         * doc/md.texi (Standard Names): Add description of second
690         parameter to sync_lock_test_and_set.
691
692 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
693
694         PR tree-optimization/21088
695         * fold-const.c (fold_unary, fold_binary, fold_ternary):
696         Export.
697         * tree-vrp.c (compare_values): Use fold_binary to compare
698         pointers.  Use boolean_type_node as the type of a comparison
699         expression being folded.
700         * tree.h: Add prototypes for fold_unary, fold_binary,
701         fold_ternary.
702
703         * tree-ssa-dom.c: Fix formatting.
704
705 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
706
707         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
708         * lambda-code.c (perfect_nestify): Mark virtual operands in
709         the moved statement for renaming.
710         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
711         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
712         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
713         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
714         * tree-flow.h (struct var_ann_d): Update comments.
715         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
716         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
717         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
718         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
719         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
720         debug_names_replaced_by): Remove declarations.
721         (delete_update_ssa, get_current_def, set_current_def): Declare.
722         (rewrite_into_loop_closed_ssa): Add new argument.  Update
723         all callers.
724         * tree-into-ssa.c: Include params.h.
725         (old_virtual_ssa_names): Remove.  Update all users.
726         (need_to_replace_names_p): Remove.  Update all users.
727         (struct update_ssa_stats_d): Declare.
728         (update_ssa_stats): New local.
729         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
730         dump_tree_ssa_stats, debug_tree_ssa_stats,
731         dump_update_ssa, debug_update_ssa,
732         dump_names_replaced_by, debug_names_replaced_by): Declare.
733         (get_current_def, set current_def): Make extern.
734         (is_old_name, is_new_name): Protect against references
735         past the end of the sets.
736         (add_new_name_mapping): Assert that OLD and NEW are
737         different SSA names for the same symbol.
738         When adding a virtual mapping, update stats for virtual
739         mapping heuristic.
740         (insert_phi_nodes_for): If UPDATE_P is true, create the
741         LHS of the new PHI by duplicating SSA name VAR.
742         (insert_phi_nodes_1): Remove.  Update all users.
743         (insert_phi_nodes): Remove second argument.  Update all
744         users.
745         (maybe_replace_use, maybe_replace_def): New.
746         (rewrite_update_stmt): Call them.
747         (mark_def_interesting): Remove calls to is_gimple_reg.
748         (prepare_phi_args_for_update): Remove.  Update all users.
749         (prepare_block_for_update): Only process virtual operands
750         and GIMPLE registers in normal form.
751         (prepare_use_sites_for): New.
752         (prepare_names_to_update): Rename from prepare_def_sites.
753         Call prepare_use_sites_for.
754         (dump_update_ssa): Rename from dump_repl_tbl.
755         Update all users.
756         Show statistics for virtual mapping heuristic.
757         (debug_update_ssa): Rename from debug_debug_repl_tbl.
758         (init_update_ssa): Initialize UPDATE_SSA_STATS.
759         (delete_update_ssa): Make extern.
760         (mark_set_for_renaming): If the set is empty, do nothing.
761         (release_ssa_name_after_update_ssa): Update comment.
762         (insert_updated_phi_nodes_for): Do not remove existing
763         PHI nodes for symbols.
764         (switch_virtuals_to_full_rewrite_p): New.
765         (switch_virtuals_to_full_rewrite): New.
766         (update_ssa): Call them.
767         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
768         for every statement before updating.
769         If all the names in NEW_SSA_NAMES have been marked for
770         removal, do nothing.
771         Only start at the top of the CFG if there are symbols in
772         SYMS_TO_RENAME.
773         (ssa_rewrite_finalize_block): Remove.
774         (ssa_register_new_def): Remove.
775         (ssa_rewrite_stmt): Remove.
776         (ssa_rewrite_phi_arguments): Remove.
777         (ssa_rewrite_initialize_block): Remove.
778         (ssa_mark_def_sites): Remove.
779         (ssa_mark_def_sites_initialize_block): Remove.
780         (ssa_mark_phi_uses): Remove.
781         (rewrite_ssa_into_ssa): Remove.
782         * tree-phinodes.c (find_phi_node_for): Remove.
783         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
784         Call update_ssa.
785         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
786         Remove calls to verify_dominators and
787         verify_loop_structure.
788         (tree_unswitch_single_loop): Call update_ssa.
789         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
790         returns false.
791         Call verify_stmts.
792         (delete_tree_ssa): Assert that need_ssa_update_p returns
793         false.
794         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
795         * tree-vectorizer.c (allocate_new_names, rename_def_op,
796         free_new_names): Remove.  Update all users.
797         (rename_use_op): Call get_current_def.
798         (rename_variables_in_bb): Do not handle any real or
799         virtual definition.
800         (slpeel_update_phis_for_duplicate_loop): Call
801         get_current_def and set_current_def instead of using
802         SSA_NAME_AUX.
803         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
804         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
805         ssa_names_to_replace and delete_update_ssa.
806         * doc/invoke.texi: Document --param min-virtual-mappings
807         and --param virtual-mappings-ratio.
808
809 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
810
811         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
812         for newly created PHI nodes.
813         Call create_new_def_for for every new V_MAY_DEF and
814         V_MUST_DEF on the copied statement.
815         (struct ssa_name_map_entry): Remove.
816         (ssa_name_map_entry_hash): Remove.
817         (ssa_name_map_entry_eq): Remove.
818         (allocate_ssa_names): Remove.
819         (rewrite_to_new_ssa_names_def): Remove.
820         (rewrite_to_new_ssa_names_use): Remove.
821         (rewrite_to_new_ssa_names_bb): Remove.
822         (rewrite_to_new_ssa_names): Remove.
823         (tree_duplicate_sese_region): Remove variables ver,
824         definitions, phi, ssa_name_map and bi.
825         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
826         Call update_ssa.
827         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
828         update_ssa instead of rewrite_ssa_into_ssa.
829         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
830         create_new_def_for.
831         (find_uses_to_rename_use): Add argument 'need_phis'.
832         (find_uses_to_rename_stmt): Do not scan virtual operands.
833         (find_uses_to_rename): Only scan PHI nodes for
834         non-virtual names.
835         (rewrite_into_loop_closed_ssa): Call update_ssa.
836         (check_loop_closed_ssa_use): Ignore virtual operands.
837         (check_loop_closed_ssa_stmt): Likewise.
838         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
839         NULL.
840         (rename_variables, set_phi_def_stmts): Remove.
841         (tree_duplicate_loop_to_header_edge): Reformat comment.
842         Remove variables BB, I and DEFINITIONS.
843         Call need_ssa_update_p.
844         Call update_ssa.
845         (lv_adjust_loop_header_phi): Reformat comment.
846         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
847         (marked_for_rewrite_p, any_marked_for_rewrite_p,
848         mark_for_rewrite, unmark_all_for_rewrite,
849         marked_ssa_names): Remove.  Update all users.
850         (release_ssa_name): If VAR has been registered for SSA
851         updating, do nothing.
852         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
853         (build_assert_expr_for): Call register_new_name_mapping.
854         (insert_range_assertions): Update call to update_ssa.
855         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
856         marked_for_rewrite_p, any_marked_for_rewrite_p,
857         marked_ssa_names): Remove.
858
859 2005-04-22  Jeff Law  <law@redhat.com>
860
861         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
862         (restore_currdefs_to_original_value): Likewise.
863         (register_definitions_for_stmt): Likewise.
864         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
865         for each variable.  Do not allocate/free block_defs_stack either.
866         Do not iterate if we just thread jumps.  Only iterate if the
867         tree_cleanup_cfg does useful work (temporary).
868         (dom_opt_initialize_block): No longer push a marker on
869         BLOCK_DEFS_STACK.
870         (dom_opt_finalize_block): Removal call to restore currdefs.
871         Relax restrictions for recording edge equivalences.
872         (record_equivalences_from_phis): No longer need to track
873         CURRENT_DEF.
874         (optimize_stmt): Similarly.
875         (thread_across_edge): Simplify by removing the requirement that
876         statements in the block we are threading through must be nops.
877         (initialize_hash_element): Handle GOTO_EXPR.
878
879 2005-04-22  David S. Miller  <davem@davemloft.net>
880
881         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
882         CONST_DOUBLE_HIGH.
883         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
884         fix check on CONST_DOUBLE mode.  It should be VOIDmode
885         when it is representing an integer.
886
887 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
888
889         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
890         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
891         * c-format.c (get_constant, decode_format_attr, get_flag_spec, 
892         find_char_info_specifier_index,
893         find_length_info_modifier_index): Likewise.
894         * c-typeck.c (composite_type, pop_init_level): Likewise.
895         * combine.c (cant_combine_insn_p, try_combine): Likewise.
896         * cse.c (cse_insn): Likewise
897         * dominance.c (calc_dfs_tree): Likewise
898         dwarf2out.c (loc_descriptor_from_tree_1,
899         add_abstract_origin_attribute, force_decl_die,
900         force_type_die): Likewise
901         emit-rtl.c (operand_subword_force): Likewise
902         explow.c (hard_function_value): Likewise
903         expmed.c (store_bit_field, expand_divmod,
904         emit_store_flag_force): Likewise
905         expr.c (emit_move_multi_word, store_expr,
906         expand_expr_real_1): Likewise
907         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
908         output_operand): Likewise
909         flow.c (recompute_reg_usage): Likewise
910         * function.c (assign_stack_temp_for_type, assign_temp, 
911         handle_epilogue_set): Likewise
912         * genextract.c (main): Likewise
913         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
914         gimplify_modify_expr_rhs, gimplify_expr): Likewise
915         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
916         ready_remove, rm_line_notes, rm_other_notes,
917         schedule_block): Likewise
918         mips-tfile.c (copy_object, out_of_bounds): Likewise
919
920 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
921
922         PR target/20813
923         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
924         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
925         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
926         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
927         TARGET_XL_COMPAT.
928         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
929
930 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
931
932         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
933         (gcc_tree_to_linear_expression): Convert to heap allocated
934         vectors.
935         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
936         lbv_to_gcc_expression, lle_to_gcc_expression,
937         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, 
938         perfect_nestify): Likewise.
939         lambda.h (gcc_loopnest_to_lambda_loopnest,
940         lambda_loopnest_to_gcc_loopnest): Likewise.
941         tree-loop-linear.c (linear_transform_loops): Likewise.
942
943 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
944
945         * config/sparc/predicates.md (arith_double_operand): Use
946         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
947         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
948         (DImode, DFmode constant splitters): Likewise.  Remove code for
949         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
950         (logical constant splitters): Use const_int_operand predicate.
951         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
952         HOST_BITS_PER_WIDE_INT < 64.
953
954 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
955
956         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
957         gcc_unreachable as appropriate.
958         (force_mode, emit_move_sequence, singlemove_string,
959         output_move_double, output_fp_move_double, find_addr_reg,
960         output_block_move, output_block_clear, output_and,
961         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
962         pa_adjust_cost, pa_issue_rate, print_operand,
963         output_global_address, output_arg_descriptor, output_cbranch,
964         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
965         output_call): Likewise.
966         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
967         prefetch, prefetch_cc, prefetch_nocc): Likewise.
968
969 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
970
971         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
972         _gcov_pow2_profiler and _gcov_one_value_profiler.
973         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
974         (GTFILES): Add $(srcdir)/tree-profile.c.
975         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
976         __gcov_one_value_profiler): Declare.
977         * gimplify.c (force_gimple_operand): Check whether the statements
978         should be produced in ssa form.
979         (force_gimple_operand_bsi): New function.
980         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
981         __gcov_one_value_profiler): New functions.
982         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
983         the profiled value is a power of two or not.
984         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
985         * tree-flow.h (in_ssa_p): Declare.
986         (force_gimple_operand_bsi): Declare.
987         * tree-into-ssa.c (in_ssa_p): New variable.
988         (rewrite_into_ssa): Set in_ssa_p.
989         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
990         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
991         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
992         tree_one_value_profiler_fn): New variables.
993         (tree_init_edge_profiler): Initialize the profiler function decls.
994         (tree_gen_edge_profiler): Use global gcov_type_node.
995         (prepare_instrumented_value): New function.
996         (tree_gen_interval_profiler, tree_gen_interval_profiler,
997         tree_gen_one_value_profiler): Call the library functions instead of
998         creating instrumentation code.
999         * tree.c (build_fn_decl): New function.
1000         * tree.h (build_fn_decl): Declare.
1001         * value-prof.c (rtl_divmod_values_to_profile,
1002         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
1003         tree_mod_pow2_value_transform, tree_find_values_to_profile):
1004         Do not handle may_be_other and precise values of exponents at pow2
1005         profiler.
1006         (tree_mod_subtract_transform): Reflect that value field of
1007         histogram has changed meaning.
1008         (tree_divmod_values_to_profile): Record the values correctly.
1009         (tree_values_to_profile): Update comment.
1010         * value-prof.h (struct histogram_value_t): Remove pow2 data.
1011
1012 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
1013
1014         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
1015         (decl).
1016
1017 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
1018
1019         * config/i386/i386.md (length_immediate): Use gcc_assert or
1020         gcc_unreachable, as appropriate.
1021         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
1022         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
1023         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
1024         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
1025         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
1026         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
1027         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
1028         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
1029         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
1030         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
1031         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
1032         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
1033         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
1034         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
1035         *prefetch_sse_rex): Likewise.
1036         * config/i386/predicates.md (x86_64_immediate_operand,
1037         x86_64_zext_immediate_operand, symbolic_operand,
1038         no_seg_address_operand, aligned_operand,
1039         memory_displacement_operand): Likewise.
1040         * config/i386/sse.md (*mov<mode>_internal,
1041         *movv2df_internal): Likewise.
1042
1043 2005-04-22  Jan Hubicka  <jh@suse.cz>
1044
1045         * Makefile.in (ipa.o, ipa-inline.o): New files.
1046         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
1047         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
1048         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
1049         * cgraphunit.c (cgraph_default_inline_p,
1050         cgraph_decide_inlining_incrementally,  ncalls_inlined,
1051         nfunctions_inlined, initial_insns, overall_insns, 
1052         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1053         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1054         cgraph_mark_inline, cgraph_check_inline_limits,
1055         cgraph_default_inline_p, cgraph_recursive_inlining_p,
1056         update_callee_keys, lookup_recursive_calls,
1057         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
1058         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
1059         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
1060         pass_ipa_inline): Move to ipa-inline.c
1061         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
1062         * ipa.c: New file.
1063         * ipa-inline.c: New file.
1064
1065 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1066
1067         * doc/invoke.texi (SPARC options): Document that -mapp-regs
1068         is turned off by default on Solaris.
1069
1070 2005-04-21  Roger Sayle  <roger@eyesopen.com>
1071
1072         * c-common.h (objc_build_method_signature): Update prototype.
1073         * stub-objc.c (objc_build_method_signature): Update the stub
1074         implementation to accept and ignore additional parameter.
1075         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
1076         the value of ellipsis to objc_build_method_signature instead
1077         of setting TREE_OVERFLOW on the parms TREE_LIST node.
1078
1079 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
1080
1081         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
1082         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
1083         gen_rtx_* not gen_rtx_fmt_*.
1084         (rs6000_emit_vector_select): Likewise.
1085         (rs6000_emit_sync): New.
1086         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
1087         (larx, stcx, cmp): New mode substitutions.
1088         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
1089         UNSPEC_ISYNC): New constants.
1090         (rlwinm): Give name.
1091         (memory_barrier, isync, lwsync): New insns.
1092         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
1093         (sync_lock_release<mode>): New expander.
1094         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
1095         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
1096         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
1097         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
1098         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
1099         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
1100         (sync_add<mode>_internal, sync_addshort_internal,
1101         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
1102         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
1103         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
1104
1105         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
1106         is the memory before, not after, the operation.  Clarify
1107         barrier requirements.
1108
1109 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1110
1111         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
1112         * lambda.h (lambda_vector_min_nz): Likewise.
1113         * langhooks.h (struct lang_hooks_for_types,
1114         struct lang_hooks): Likewise.
1115         * output.h (assemble_integer, this_is_asm_operands): Likewise.
1116         * tree.h: Likewise.
1117         * vec.h: Likewise.
1118         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
1119         
1120         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
1121         comments to avoid 'abort'.  Use gcc_assert as necessary.
1122         * opts.c (common_handle_option): Likewise.
1123         * pretty-print.c (pp_base_format_text): Likewise.
1124         * print-rtl.c (print_rtx): Likewise.
1125         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
1126         * regmove.c (try_auto_increment): Likewise.
1127         * reload.c (find_valid_class, find_reloads_toplev,
1128         find_equiv_reg): Likewise.
1129         * reload1.c (reload, forget_old_reloads_1, function_invariant_p, 
1130         merge_assigned_reloads): Likewise.
1131         * tree-inline.c (inline_forbidden_p_1,
1132         estimate_num_insns_1): Likewise.
1133         * tree-optimize.c (execute_todo): Likewise.
1134         * tree-outof-ssa.c (eliminate_phi): Likewise.
1135         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
1136         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
1137         * tree-ssa-operands.c (parse_ssa_operands,
1138         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
1139         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
1140         * tree-ssanames.c (release_ssa_name): Likewise.
1141         * tree.c (int_bit_position, int_byte_position, tree_low_cst, 
1142         walk_tree): Likewise.
1143
1144         * tree-ssa-operands.c (verify_abort): Fold into ..
1145         (verify_imm_links): ... here.
1146
1147 2005-04-21  Richard Henderson  <rth@redhat.com>
1148
1149         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
1150         on non-memory operand for previous inversion.
1151
1152 2005-04-21  Devang Patel  <dpatel@apple.com>
1153
1154         PR optimization/20994
1155         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
1156         x = !(a == b) : p , q;.
1157         (pass_if_conversion): Verify stmts and flow.
1158         
1159 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1160
1161         * optabs.c (gen_conditional_trap): Restore #define.
1162
1163         * alias.c (true_dependence): Remove 'abort' from comments. Use
1164         gcc_assert and gcc_unreachable as appropriate.
1165         (canon_true_dependence): Likewise.
1166         * bb-reorder.c (connect_traces): Likewise.
1167         * c-common.c (c_add_case_label): Likewise.
1168         * c-decl.c (finish_function): Likewise.
1169         * caller-save.c (insert_restore, insert_save): Likewise.
1170         * cfg.c (update_bb_profile_for_threading): Likewise.
1171         * cfganal.c (flow_active_insn_p): Likewise.
1172         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1173         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
1174         cfg_layout_merge_blocks): Likewise.
1175         * ifcvt.c (cond_exec_process_insns, merge_if_block,
1176         find_if_block): Likewise.
1177         * integrate.c (allocate_initial_values): Likewise.
1178         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
1179         swap_condition, unsigned_condition, signed_condition,
1180         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
1181         reg_or_subregno): Likewise.
1182         * lambda-code.c (lambda_compute_auxillary_space,
1183         lambda_transform_legal_p): Likewise.
1184         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
1185         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
1186         lhd_incomplete_type_error, lhd_expand_expr,
1187         lhd_types_compatible_p, lhd_tree_size): Likewise.
1188         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
1189         * local-alloc.c (update_equiv_regs): Likewise.
1190         * loop-unroll.c (peel_loop_completely
1191         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
1192         peel_loop_simple, unroll_loop_stupid,
1193         analyze_iv_to_split_insn): Likewise.
1194         * loop.c (gen_prefetch, find_and_verify_loops,
1195         basic_induction_var): Likewise.
1196         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
1197         * value-prof.c (tree_find_values_to_profile): Likewise.
1198         * varasm.c (named_section, default_assemble_integer,
1199         decode_addr_const): Likewise.
1200
1201 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
1202            Fariborz Jahanian <fjahanian@apple.com>
1203
1204         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
1205         portion of argument passed in fpr.
1206         * expr.c (emit_push_insn): Fix computation of 'offset' used to
1207         decide on partial argument save on stack.
1208
1209 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
1210
1211         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
1212         comment typos.
1213
1214 2005-04-21  Jan Hubicka  <jh@suse.cz>
1215
1216         * cgraphunit.c: Include tree-pass.h
1217         (cgraph_decide_recursive_inlining,
1218         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
1219         cgraph_decide_inlining): Dump goes to dump_file.
1220         (cgraph_optimize): Call ipa passes instead of inliner.
1221         (cgraph_gate_inlining, pass_ipa_inline): New.
1222         * tree-optimize.c (all_ipa_passes): New static variable.
1223         (register_one_dump_file): Dead with IPA passes.
1224         (register_dump_files): Likewise.
1225         (init_tree_optimization_passes): Initialize IPA passes.
1226         (execute_todo): Do cgraph dump when asked to, do not dump function body
1227         for IPA pass.
1228         * tree-pass.h (TODO_dump_cgraph): New macro.
1229         (ipa_passes): Declare.
1230         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
1231
1232 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1233
1234         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
1235         gcc_assert instead of abort.
1236         (classify_argument, examine_argument, construct_container,
1237         contains_128bit_aligned_vector_p, ix86_check_movabs,
1238         standard_80387_constant_opcode, standard_80387_constant_rtx,
1239         ix86_initial_elimination_offset, ix86_compute_frame_layout,
1240         pro_epilogue_adjust_stack, ix86_expand_epilogue,
1241         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
1242         legitimize_tls_address, output_pic_addr_const,
1243         i386_output_dwarf_dtprel, put_condition_code, print_reg,
1244         get_some_local_dynamic_name, print_operand, print_operand_address,
1245         output_387_binary_op, emit_i387_cw_initialization,
1246         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
1247         ix86_expand_clear, ix86_expand_binary_operator,
1248         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
1249         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
1250         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
1251         ix86_expand_branch, ix86_expand_setcc,
1252         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
1253         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
1254         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
1255         memory_address_length, ix86_attr_length_immediate_default,
1256         ix86_attr_length_address_default, ix86_agi_dependant,
1257         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
1258         ix86_expand_binop_builtin, ix86_force_to_memory,
1259         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
1260         x86_emit_floatuns): Likewise.
1261         * config/i386/netware.c (gen_regparm_prefix,
1262         i386_nlm_strip_name_encoding): Likewise.
1263         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
1264
1265 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1266
1267         * optabs.c (gen_condiational_trap): Remove #define.
1268         (add_equal_note): Assertify. Remove explicit indirection from
1269         call via function pointer.
1270         (expand_ternary_op, expand_simple_binop, expand_binop,
1271         expand_twoval_unop, expand_twoval_binop,
1272         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
1273         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
1274         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
1275         prepare_float_lib_cmp, emit_conditional_move,
1276         emit_conditional_add, gen_add2_insn, gen_add3_insn,
1277         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
1278         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
1279         vector_compare_rtx, expand_vec_cond_expr): Likewise.
1280
1281 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1282
1283         * vec.h: Update API to separate allocation mechanism from type.
1284         (VEC_safe_grow): New.
1285         * vec.c (calculate_allocation): New.
1286         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
1287         (vec_gc_free, vec_heap_free): Remove.
1288         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
1289         (VEC): Likewise.
1290         (mangle_macro_name): New.
1291         (struct macro_def): New.
1292         (struct macro): Add multiple argument values.
1293         (macro_expans_end): New.
1294         (push_macro_expansion):  Chain on new macro. Process multiple
1295         args, create follow on expansion. Return follow on argument.
1296         (macro_input): Deal with multiple arguments.
1297         
1298         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
1299         (struct tree_binfo): Adjust.
1300         * basic-block.h: Define VEC(edge,gc).
1301         (struct edge_def): Adjust.
1302         (struct basic_block_def, struct edge_iterator): Likewise.
1303         (ei_container, ei_start_1, ei_last_1): Likewise.
1304         * cfg.c (connect_src, connect_dest): Likewise.
1305         * cfgrtl.c (force_nonfallthru_and_redirect)
1306         * dbxout.c (dbxout_type)
1307         * dwarf2out.c (gen_member_die)
1308         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
1309         (gcc_tree_to_linear_expression): Adjust.
1310         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
1311         lbv_to_gcc_expression, lle_to_gcc_expression,
1312         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
1313         perfect_nestify): Likewise.
1314         * lambda.h (gcc_loopnest_to_lambda_loopnest,
1315         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
1316         * profile.c (instrument_values): Adjust.
1317         * tree-cfg.c (modified_noreturn_calls): Adjust.
1318         (remove_fallthru_edge): Likewise.
1319         * tree-dump.c (dequeue_and_dump): Adjust.
1320         * tree-flow-inline.h (mark_stmt_modified): Adjust.
1321         * tree-flow.h (modified_noreturn_calls): Adjust.
1322         (tree_on_heap): Remove. (yay!)
1323         (register_new_def): Adjust.
1324         * tree-into-ssa.c: Define VEC(int,heap).
1325         (block_defs_stack): Adjust.
1326         (find_idf, insert_phi_nodes, register_new_def,
1327         rewrite_initialize_block, rewrite_finalize_block,
1328         register_new_update_single, rewrite_update_init_block,
1329         rewrite_update_fini_block, rewrite_blocks,
1330         ssa_rewrite_finalize_block, ssa_register_new_def,
1331         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
1332         * tree-loop-linear.c (linear_transform_loops): Adjust.
1333         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
1334         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
1335         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
1336         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
1337         vrp_variables_stack): Adjust declarations.
1338         (tree_ssa_dominator_optimize): Adjust.
1339         (dom_opt_initialize_block, remove_local_expressions_from_table,
1340         restore_nonzero_vars_to_original_value,
1341         restore_vars_to_original_value,
1342         restore_currdefs_to_original_value, dom_opt_finalize_block,
1343         record_var_is_nonzero, record_cond, record_const_or_copy_1,
1344         optimize_stmt, update_rhs_and_lookup_avail_expr,
1345         lookup_avail_expr, record_range): Likewise.
1346         * tree-ssa-pre.c: Define VEC(basic_block,heap).
1347         (compute_antic_aux): Adjust.
1348         (inserted_exprs, create_expression_by_pieces, 
1349         insert_into_preds_of_block, eliminate, mark_operand_necessary, 
1350         remove_dead_inserted_code, fini_pre): Likewise.
1351         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
1352         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist. 
1353         ssa_prop_init): Likewise.
1354         * tree-ssa.c: Define VEC(bitmap,heap).
1355         (verify_name_tags): Adjust.
1356         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
1357         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
1358         tree_divmod_values_to_profile, tree_find_values_to_profile,
1359         value_profile_transformations): Likewise.
1360         * value-prof.h: Define VEC(histogram_value,heap).
1361         * varasm.c: Remove alias_pair pointer typedef, define
1362         VEC(alias_pair,gc).
1363         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
1364         
1365         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
1366         not a pointer to it.  Create an object vector.
1367         (extern_symbols): Turn into an object vector.
1368         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
1369
1370 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
1371
1372         PR/20742
1373         * Makefile.in (tree-chrec.o): Depend on params.h.
1374         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
1375         default value 20.
1376         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
1377         and fold build with fold_buildN.
1378         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
1379         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1380         (tree_contains_chrecs): Compute an estimation of the size of the
1381         given expression.
1382         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
1383         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
1384         * tree-scalar-evolution.c (simple_iv): Ditto.
1385         * doc/invoke.texi (scev-max-expr-size): Documented.
1386
1387 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
1388
1389         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
1390         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
1391         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
1392         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
1393         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1394         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
1395         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
1396         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
1397         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
1398         (darwin_fix_and_continue_switch): Delete.
1399         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
1400         (SUBTARGET_SWITCHES): Delete.
1401         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
1402         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
1403         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
1404         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
1405         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
1406         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
1407         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
1408         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
1409         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
1410         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
1411         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
1412         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
1413         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
1414         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
1415         (TARGET_64BIT): Undef before redefining.
1416         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
1417         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
1418         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
1419         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
1420         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
1421         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
1422         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
1423         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1424         (ix86_debug_arg_string, ix86_debug_addr_string)
1425         (ix86_align_loops_string, ix86_align_jumps_string)
1426         (ix86_align_funcs_string): Delete.
1427         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
1428         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
1429         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
1430         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
1431         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
1432         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
1433         (SUBTARGET_SWITCHES): Delete.
1434         * config/i386/i386.c (ix86_debug_arg_string): Delete.
1435         (ix86_debug_addr_string): Delete.
1436         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
1437         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
1438         (ix86_align_loops_string, ix86_align_jumps_string)
1439         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1440         (ix86_align_funcs_string): Make static.
1441         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1442         (ix86_handle_option): New function.
1443         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
1444         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
1445         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
1446         of darwin_fix_and_continue_switch.
1447         (darwin_one_byte_bool): Delete.
1448         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
1449         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
1450         to darwin_one_byte_bool.
1451         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
1452         * config/i386/djgpp.opt, config/i386/i386.opt,
1453         * config/i386/sco5.opt: New files.
1454
1455 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1456
1457         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
1458         fp_zero_operand, fp_register_operand, intreg_operand,
1459         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
1460         call_operand, call_operand_address, tgd_symbolic_operand,
1461         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
1462         symbolic_operand, symbolic_memory_operand, label_ref_operand,
1463         sp64_medium_pic_operand, data_segment_operand,
1464         text_segment_operand, splittable_symbolic_memory_operand,
1465         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
1466         eq_or_neq, normal_comp_operator, noov_compare_op,
1467         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
1468         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
1469         const64_operand, const64_high_operand, arith11_operand,
1470         arith10_operand, arith_double_operand, arith_double_4096_operand,
1471         arith_double_add_operand, arith11_double_operand,
1472         arith10_double_operand, small_int, small_int_or_double,
1473         uns_small_int, uns_arith_operand, clobbered_register,
1474         input_operand, compare_operand): Delete.
1475         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
1476         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
1477         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
1478         (GEN_HIGHINT64, GEN_INT64): Delete.
1479         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
1480         gen_safe_XOR64): Adjust for above deletion.
1481         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
1482         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
1483         (legitimate_constant_p): Use const_zero_operand instead.
1484         (sparc_extra_constraint_check): Likewise.
1485         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
1486         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
1487         (PREDICATE_CODES): Delete.
1488         * config/sparc/sparc.md: Include predicates.md.
1489         (All patterns): Adjust for new predicate names.
1490         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
1491         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
1492         (movdi): Use general_operand predicate.
1493         (movdi_sp64_dbl): Delete.
1494         (movdi_const64_special): Add 'N' constraint.
1495         (movdicc): Use arith10_operand predicate.
1496         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
1497         (movdi_cc_reg_sp64): Use arith10_operand predicate.
1498         (movdi_cc_reg_sp64_trunc): Delete.
1499         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
1500         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
1501         (subdi3_sp32): Delete.
1502         (subdi3_insn_sp32): Change to define_insn_and_split.
1503         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
1504         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
1505         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
1506         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
1507         small_int_operand predicate.
1508         (divdi3, udivdi3): Use arith_operand predicate.
1509         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
1510         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
1511         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
1512         (xordi3_sp64_dbl): Delete.
1513         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
1514         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
1515         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
1516         cmp_ccx_set_not): Use arith_operand predicate.
1517         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
1518         * config/sparc/predicates.md: New file.
1519
1520 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
1521
1522         PR tree-optimization/14846
1523         * fold-const.c (fold_single_bit_test_into_sign_test): New,
1524         split out from ...
1525         (fold_single_bit_test): ... here.
1526         (fold_binary): Call fold_single_bit_test_into_sign_test
1527         instead of fold_single_bit_test.
1528
1529 2005-04-20  James E Wilson  <wilson@specifixinc.com>
1530
1531         PR c++/20805
1532         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
1533         is another declaration.
1534
1535 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
1536
1537         * config/cris/predicates.md: New file.
1538         * config/cris/cris-protos.h (cris_store_multiple_op_p)
1539         (cris_movem_load_rest_p): Declare.
1540         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
1541         (cris_movem_load_rest_p): Ditto.  Globalize.
1542         (cris_bdap_operand, cris_bdap_biap_operand,
1543         cris_orthogonal_operator, cris_commutative_orth_op,
1544         cris_operand_extend_operator,
1545         cris_additive_operand_extend_operator, cris_extend_operator,
1546         cris_plus_or_bound_operator, cris_mem_op,
1547         cris_general_operand_or_symbol,
1548         cris_general_operand_or_gotless_symbol,
1549         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
1550         cris_load_multiple_op): Remove predicate functions.
1551         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
1552         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
1553         * config/cris/cris.h (PREDICATE_CODES): Don't define.
1554         * config/cris/cris.md: Include predicates.md.
1555         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
1556
1557 2005-04-20  Ian Lance Taylor  <ian@airs.com>
1558
1559         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
1560         * c-common.h (STMT_EXPR_STMT): Don't define.
1561         (STMT_EXPR_NO_SCOPE): Don't define.
1562         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
1563         * c-pretty-print.c (pp_c_primary_expression): Likewise.
1564         (pp_c_expression): Likewise.
1565
1566 2005-04-20  Richard Henderson  <rth@redhat.com>
1567
1568         PR target/21100
1569         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
1570
1571 2005-04-20  Jeff Law  <law@redhat.com>
1572
1573         * reload1.c (reload): Ignore equivalences between pseudos and
1574         read only memory.
1575
1576 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
1577
1578         PR c/12913
1579         * c-tree.h (struct c_label_list): Update comment.
1580         (struct c_label_context): Rename to struct c_label_context_se.
1581         (label_context_stack): Rename to label_context_stack_se.
1582         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
1583         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
1584         c_end_vm_scope): New.
1585         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
1586         * c-decl.c (pop_scope): Call c_end_vm_scope.
1587         (pushdecl): Call c_begin_vm_scope for variably modified
1588         declarations.
1589         (define_label): Check for jumping into scope of identifier with
1590         variably modified type.  Push label on stack for those defined at
1591         current context of identifiers with variably modified type.
1592         (start_function): Create stack level for context of identifiers
1593         with variably modified type.
1594         (finish_function): Pop stack level for context of identifiers with
1595         variably modified type.
1596         * c-typeck.c (label_context_stack): Rename to
1597         label_context_stack_se.
1598         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
1599         (c_finish_goto_label): Check for jumping into scope of identifier
1600         with variably modified type.  Push label on stack for those jumped
1601         to from current context of identifiers with variably modified
1602         type.
1603         (struct c_switch): Add blocked_vm.
1604         (c_start_case): Initialize blocked_vm.
1605         (do_case): Check blocked_vm.
1606         (c_finish_case): Add comment.
1607         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
1608         variable label_context_stack.
1609
1610 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1611
1612         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
1613         conditional_replacement, value_replacement, abs_replacement,
1614         minmax_replacement.
1615         (replace_phi_edge_with_variable): Remove argument BB.
1616         (conditional_replacement, value_replacement,
1617         minmax_replacement, abs_replacement): Remove argument PHI_BB.
1618         Update a call to replace_phi_edge_with_variable.
1619
1620         * tree-ssa-phiopt.c: Fix comments.
1621
1622 2005-04-20  Michael Matz  <matz@suse.de>
1623
1624         PR20973
1625         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
1626         pseudos.
1627
1628 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1629
1630         * tree-ssa-phiopt.c: Fix comment typos.
1631
1632         PR tree-optimization/21116
1633         * tree-ssa-phiopt.c: Fix a typo.
1634
1635 2005-04-19  Richard Henderson  <rth@redhat.com>
1636
1637         * builtins.c (expand_builtin_sync_operation): Revert last change.
1638         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
1639         not vs new value.
1640         (expand_compare_and_swap_loop): Likewise.
1641         (expand_sync_operation): Remove fallback from NAND to AND; invert
1642         memory operand when expanding from cmpxchg.
1643         (expand_sync_fetch_operation): Likewise.
1644         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
1645         compare-and-swap.
1646
1647         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
1648         when implementing NAND.  Fix double-add for AFTER.
1649         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
1650         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
1651         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
1652         memory value.
1653         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
1654         memory barrier.
1655
1656         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
1657         to return old memory value.
1658         (sync_compare_and_swap_cc<IMODE>): Likewise.
1659
1660         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
1661         return pre-reload.  Don't consider output or anti dependencies.
1662         * config/ia64/sync.md (IMODE): New.
1663         (modesuffix): Add QI and HI.
1664         (memory_barrier): Simplify expansion.
1665         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
1666         (cmpxchg_acq_<IMODE>): Likewise.
1667         (sync_lock_test_and_set<IMODE>): Likewise.
1668         (sync_lock_release<IMODE>): Likewise.
1669
1670 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1671
1672         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
1673         ~X or ~Y simplify.
1674
1675 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1676
1677         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
1678
1679 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
1680             Joseph S. Myers  <joseph@codesourcery.com>
1681
1682         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
1683         * c-typeck.c (build_c_cast): Check these options.
1684         * doc/invoke.texi: Document these options.
1685
1686 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1687
1688         * tree-ssa-phiopt.c: Update a comment about the pass.
1689
1690 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1691
1692         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
1693         config/mcore/mcore.c: Fix comment typos.
1694
1695 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
1696
1697         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
1698         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
1699
1700 2005-04-19  Paul Brook  <paul@codesourcery.com>
1701
1702         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. 
1703
1704 2005-04-19  Andrew Haley  <aph@redhat.com>
1705
1706         PR java/21022
1707         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
1708         looking at a field's bitpos.
1709
1710 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1711
1712         * system.h (fopen, fdopen, freopen): Define these to the unlocked
1713         libiberty functions.
1714
1715 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1716
1717         PR tree-optimization/21096
1718         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
1719
1720 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
1721
1722         PR target/21098
1723         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
1724         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
1725
1726 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
1727
1728         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
1729         refers to the function being dumped.
1730
1731 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
1732
1733         * varasm.c (assemble_start_function): Remove reset of in_section.
1734
1735 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1736
1737         PR tree-optimization/21085
1738         * fold-const (fold_binary): Don't change X % -C to X % C if C has
1739         overflowed.
1740
1741 2005-04-19  Ben Elliston  <bje@au.ibm.com>
1742
1743         * doc/invoke.texi (Optimize Options): Refer to the correct
1744         optimisation flag -ftree-dominator-opts, not -ftree-dom.
1745
1746 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
1747
1748         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
1749         alloca argument to be big enough.
1750
1751 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
1752
1753         PR middle-end/21049
1754         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
1755         cfun->cfg are NULL.
1756
1757 2005-04-18  Tom Tromey  <tromey@redhat.com>
1758
1759         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
1760         typo.
1761
1762 2005-04-18  Richard Henderson  <rth@redhat.com>
1763
1764         * config/alpha/alpha.c (alpha_split_atomic_op): New.
1765         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
1766         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
1767         * config/alpha/alpha-protos.h: Update.
1768         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
1769         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
1770         (attr type): Add ld_l, st_c, mb.
1771         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
1772         iornotsi3, xorsi_internal, xornotsi3): New.
1773         * config/alpha/ev4.md (ev4_ld): Add ld_l.
1774         (ev4_ist_c, ev4_mb): New.
1775         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
1776         (ev5_ld_l): New.
1777         * config/alpha/ev6.md (ev6_ild): Add ld_l.
1778         (ev6_ist): Add st_c.
1779         (ev6_mb): New.
1780         * config/alpha/sync.md: New file.
1781
1782 2005-04-18  Richard Henderson  <rth@redhat.com>
1783
1784         * builtins.c (expand_builtin_sync_operation): Fold nand to and
1785         for constants.
1786
1787         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
1788
1789 2005-04-18  Devang Patel  <dpatel@apple.com>
1790
1791         * config/rs6000/atlivec.md (mulv4si3): New pattern.
1792         
1793 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1794
1795         PR tree-optimization/20922
1796         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
1797         Fold X + c >= X and fold X - c <= X to true.
1798
1799 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1800
1801         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
1802         unsigned int.
1803         (emergency_labeled_state_free): Likewise.
1804
1805 2005-04-18  Nick Clifton  <nickc@redhat.com>
1806
1807         * config/h8300/h8300.md (jump): Remove prescan parameter from
1808         calls to final_scan_insn.
1809
1810         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
1811         parameter from calls to final_scan_insn.
1812
1813         * config.gcc (m68hc12): Use the m68hc11.opt file for target
1814         specific options.
1815         (v850e, v850e1): Use the v850.opt file for target specific
1816         options.
1817
1818 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
1819
1820         PR tree-optimization/21001
1821         * tree-optimize.c (init_tree_optimization_passes): Move the
1822         first pass_forwprop immediately before pass_vrp.
1823
1824 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1825
1826         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
1827         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
1828         from enum tree_code op to bool is_sizeof.
1829         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
1830         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1831         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
1832         case.
1833         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
1834         cases.
1835         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
1836         ALIGNOF_EXPR cases.
1837
1838 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1839
1840         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
1841
1842 2005-04-17  Richard Henderson  <rth@redhat.com>
1843
1844         * config/alpha/alpha.c (va_list_skip_additions): Only define if
1845         TARGET_ABI_OSF.
1846         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
1847         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
1848         of indirection through ssa names while looking for the gpr counter
1849         field.
1850         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
1851         saved va_list_gpr_size and va_list_fpr_size.
1852
1853 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1854
1855         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
1856         both pointers or both integers.
1857
1858         * tree-vrp.c (maybe_add_assert_expr): Don't assert
1859         ASSERT_EXPRs for single-use variable.
1860
1861         * tree-into-ssa.c: Fix a comment typo.
1862
1863 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
1864
1865         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
1866         -mipsN before forcing a default of -mips2.
1867
1868 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1869
1870         * predict.h (IS_TAKEN): Remove.
1871         * rtl.h (NOTE_PREDICTION): Likewise.
1872
1873         * modulo-sched.c (CFG_HOOKS): Remove.
1874
1875         * c-parser.c (N_C_TTYPES): Remove.
1876
1877         * tree-flow-inline.h (get_stmt_operands): Remove.
1878         * lambda-code.c, tree-ssa-loop-unswitch.c,
1879         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
1880         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
1881         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
1882         calls to get_stmt_operands.
1883         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
1884
1885 2005-04-17  Richard Henderson  <rth@redhat.com>
1886
1887         PR target/20375
1888         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
1889         of CUMULATIVE_ARGS past the last named argument.
1890         (alpha_va_start): Expect pretend_args_size only if strictly less than
1891         6 named arguments.
1892
1893 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1894
1895         PR middle-end/21024
1896         * builtins.c (expand_builtin_strcat): Convert the result of
1897         strlen to the right type.
1898         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
1899         avoid creating type mismatches.
1900         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
1901         type mismatches.
1902
1903         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
1904
1905 2005-04-16  Richard Henderson  <rth@redhat.com>
1906
1907         PR target/21051
1908         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
1909         Use the mode of boolean_type_node when the user doesn't provide one.
1910         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
1911
1912 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
1913
1914         PR target/20126
1915         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
1916         (const)).
1917
1918         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
1919         comment.
1920
1921 2005-04-16  Roger Sayle  <roger@eyesopen.com>
1922             Steven Bosscher  <stevenb@suse.de>
1923
1924         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
1925         (fold_unary_to_constant): Likewise.
1926
1927 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
1928
1929         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
1930         PROP_ASM_SCAN.
1931
1932 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
1933
1934         * doc/install.texi (Specific): Avoid using asterisks in @anchor
1935         names related to target triplets.
1936         Remove i?86-*-esix from platform directory.
1937         Remove powerpc-*-eabiaix from platform directory.
1938
1939 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
1940
1941         PR middle-end/20491
1942         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
1943         falling through from SUBREG case to REG.
1944
1945 2005-04-15  Roger Sayle  <roger@eyesopen.com>
1946
1947         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
1948         (fold_binary): Update comment mentioning fold_relational_hi_lo.
1949         (fold_binary_to_constant): Simplify using fold_binary.
1950         (fold_unary_to_constant): Likewise, simplify using fold_unary.
1951
1952 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1953
1954         * gthr-posix.c (pthread_cancel): Define.
1955         (pthread_mutexattr_init): Likewise.
1956         (pthread_mutexattr_settype): Likewise.
1957         (pthread_mutexattr_destroy): Likewise.
1958
1959 2005-04-15  David S. Miller  <davem@davemloft.net>
1960
1961         PR target/20673
1962         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
1963
1964 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1965
1966         PR tree-optimization/21031
1967         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
1968         (forward_propagate_into_cond_1): Call it.  Forward propagate
1969         integer-integer casts into COND_EXPRs.
1970
1971 2005-04-15  Dave Korn  <dave.korn@artimi.com>
1972
1973         * gcc.c (default_compilers): Clarify obscure error message when
1974         reading from standard input.
1975
1976 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1977
1978         * basic-block.h (PROP_EQUAL_NOTES): Remove.
1979         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
1980
1981         * tree-ssa-alias.c (init_alias_info): Remove a call to
1982         get_stmt_operands.
1983
1984 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
1985
1986         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
1987         of non-virtual PHI nodes like we use to.
1988
1989 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
1990
1991         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
1992         (attr_copy_rtx): Do not use it.
1993
1994 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
1995
1996         * doc/tree-ssa.texi: Grammer/abbreviation updates.
1997
1998 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
1999
2000         * tree-vect-transform.c (vectorizable_store): Mark necessary
2001         objects in the vectorized store needing renaming.  Update the
2002         SSA graph for V_MAY_DEF operands in the original store.
2003
2004 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
2005
2006         * tree-ssa-pre.c (compute_avail): It's okay to have
2007         TREE_INVARIANT's here, and value number the resulting expressions.
2008         (create_expression_by_pieces): Make sure operands that were
2009         min_invariant when we started, stay that way.
2010
2011 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
2012
2013         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
2014
2015 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
2016
2017         PR tree-optimization/20936.
2018         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
2019
2020 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2021
2022         * doc/invoke.texi: Fix typos.
2023         * doc/md.texi: Likewise.
2024         * doc/rtl.texi: Likewise.
2025         * doc/sourcebuild.texi: Likewise.
2026         * doc/tm.texi: Likewise.
2027
2028 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
2029
2030         PR tree-optimization/21004
2031         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
2032         and floorl in c99 mode only.
2033         * builtins.c (expand_builtin_int_roundingfn): Assert that
2034         fallback_fndecl is not NULL_TREE.
2035
2036 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
2037
2038         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
2039         * basic-block.h: Update the prototype for
2040         purge_all_dead_edges.
2041         * cfgexpand.c (tree_expand_cfg): Update a call to
2042         purge_all_dead_edges.
2043         * combine.c (combine_instructions): Likewise.
2044         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
2045         rest_of_handle_cse2, rest_of_handle_gcse,
2046         rest_of_handle_postreload): likewise.
2047
2048 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
2049
2050         PR middle-end/20739
2051         * gimplify.c (gimplify_addr_expr): Compensate for removal of
2052         e.g. cv-qualification conversions.
2053
2054 2005-04-14  Mike Stump  <mrs@apple.com>
2055
2056         * config/darwin-c.c (framework_construct_pathname): We must
2057         find all headers of a framework in the first instance of it
2058         found in the seach path.
2059
2060 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
2061
2062         PR tree-optimization/21021
2063         * tree-vrp.c (compare_values): Work around a bug in the front
2064         end that produces a comparison of mismatched types.
2065
2066 2004-04-14  Richard Henderson  <rth@redhat.com>
2067
2068         * config/ia64/ia64.h (enum fetchop_code): Remove.
2069         (enum ia64_builtins): Move ...
2070         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
2071         members except BSP and FLUSHRS.
2072         (ia64_init_builtins): Remove __sync builtins.
2073         (ia64_expand_builtin): Likewise.
2074         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
2075         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
2076         (ia64_expand_lock_release): Remove.
2077         * config/ia64/ia64.md (mf): Move to sync.md.
2078         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
2079         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
2080         * config/ia64/sync.md: New file.
2081         (memory_barrier): Rename from mf.
2082         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
2083         (cmpxchg_acq_<I48MODE>): Likewise.
2084         (sync_lock_test_and_set<I48MODE>): Likewise.
2085
2086         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
2087         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
2088
2089 2004-04-14  Richard Henderson  <rth@redhat.com>
2090
2091         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
2092         (ix86_compare_emitted): New.
2093         (ix86_expand_compare): Use ix86_compare_emitted if set.
2094         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
2095         and ix86_compare_op0 are set.
2096         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
2097         (TARGET_CMPXCHG, TARGET_XADD): New.
2098         (ix86_compare_emitted): Declare.
2099         * config/i386/i386.md: Include sync.md
2100         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
2101         (UNSPECV_XCHG, UNSPECV_LOCK): New.
2102         * config/i386/sync.md: New file.
2103
2104 2004-04-14  Richard Henderson  <rth@redhat.com>
2105
2106         PR middle-end/14311
2107         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
2108         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
2109         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
2110         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
2111         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
2112         BT_FN_I8_VPTR_I8_I8): New.
2113         * builtins.def (DEF_SYNC_BUILTIN): New.
2114         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
2115         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
2116         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
2117         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
2118         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
2119         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
2120         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
2121         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
2122         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
2123         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
2124         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
2125         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
2126         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
2127         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
2128         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
2129         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
2130         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
2131         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
2132         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
2133         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
2134         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
2135         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
2136         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
2137         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
2138         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
2139         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
2140         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
2141         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
2142         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
2143         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
2144         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
2145         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
2146         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
2147         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
2148         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
2149         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
2150         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
2151         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
2152         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
2153         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
2154         BUILT_IN_SYNCHRONIZE: New.
2155         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
2156         as a function.  Accept __sync_ as a prefix as well.
2157         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
2158         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
2159         expand_builtin_lock_release): New.
2160         (expand_builtin): Call them.
2161         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
2162         neither BOTH_P nor FALLBACK_P are defined.
2163         (builtin_type_for_size): New.
2164         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
2165         (resolve_overloaded_builtin): New.
2166         * c-common.h (resolve_overloaded_builtin): Declare.
2167         (builtin_type_for_size): Declare.
2168         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
2169         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
2170         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
2171         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
2172         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
2173         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
2174         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
2175         sync_compare_and_swap_cc, sync_lock_test_and_set,
2176         sync_lock_release): New.
2177         * optabs.h: Declare them.
2178         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
2179         expand_sync_operation, expand_sync_fetch_operation,
2180         expand_sync_lock_test_and_set): Declare.
2181         * genopinit.c (optabs): Add sync optabs.
2182         * optabs.c (init_optabs): Initialize sync optabs.
2183         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
2184         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
2185         expand_sync_operation, expand_sync_fetch_operation,
2186         expand_sync_lock_test_and_set): New.
2187         * doc/extend.texi (Atomic Builtins): New section
2188         * doc/md.texi (Standard Names): Add sync patterns.
2189
2190 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
2191
2192         * tree-eh.c (lower_try_finally_copy): Generate new code in
2193         response to goto_queue entries as if the queue was sorted by
2194         index, not pointers.
2195         (lower_try_finally_switch): Likewise.
2196
2197 2005-04-14  Richard Henderson  <rth@redhat.com>
2198
2199         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
2200         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
2201         register.
2202         (ix86_expand_fp_movcc): Update to match.
2203         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
2204         * config/i386/i386-protos.h: Update.
2205         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
2206         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
2207
2208 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
2209
2210         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
2211         refer to 4.0.
2212
2213 2005-04-14  Julian Brown  <julian@codesourcery.com>
2214
2215         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
2216         link failures on ppc64 Linux.
2217
2218 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2219
2220         * config.gcc: Set cpu_type for s390.
2221
2222 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
2223
2224         Fix PR tree-optimization/20963
2225         * tree-ssa-pre.c (compute_avail): Remove special case for
2226         TREE_INVARIANT.
2227         (create_expression_by_pieces): Add value numbers for forced out
2228         statements.
2229
2230 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
2231
2232         * config/cris/cris.md: Replace references to (reg:SI 16) with
2233         (reg:SI CRIS_SRP_REGNUM).
2234
2235 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
2236
2237         PR tree-optimization/20657
2238         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
2239         create an appropriate range from it.
2240
2241 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
2242
2243         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
2244         <UNSPEC_FIST_CEIL> case.
2245
2246         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
2247         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
2248         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
2249         to implement lfloor and llfloor built-ins as x87 intrinsic function.
2250         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
2251         (lfloor<mode>2): New expanders.
2252         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
2253         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
2254         to implement lceil and llceil built-ins as x87 intrinsic function.
2255         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
2256         (lceil<mode>2): New expanders.
2257
2258 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
2259
2260         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
2261         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
2262
2263 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2264
2265         PR target/20927
2266         * config/s390/s390-modes.def: Define TFmode.
2267
2268 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
2269
2270         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
2271         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2272         * config/mips/mips.c (mips16_insn_length): Remove reference to
2273         JUMP_TABLES_IN_TEXT_SECTION.
2274
2275 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
2276
2277         * simplify-rtx.c (simplify_binary_operation_1): Return
2278         scalar or vector of constant 0, depending on the xor's
2279         mode.
2280
2281 2005-04-13  Dale Johannesen  <dalej@apple.com>
2282
2283         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
2284         (objc-act.o):  Ditto.
2285         * objc/objc-act.c (objc_gimplify_expr):  New.
2286         (objc_get_callee_fndecl):  New.
2287         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
2288         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
2289         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
2290
2291 2005-04-13  Devang Patel  <dpatel@apple.com>
2292
2293         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
2294         temp variables.
2295
2296 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
2297
2298         CRIS prologue as RTL.
2299         * config/cris/cris-protos.h (cris_emit_movem_store)
2300         (cris_expand_prologue): Prototype.
2301         * config/cris/cris.c (struct machine_function): New member
2302         stdarg_regs.
2303         (cfa_label_num, cris_target_asm_function_prologue): Remove.
2304         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
2305         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
2306         (cris_load_multiple_op, cris_return_address_on_stack)
2307         (cris_return_address_on_stack_for_return): ISO-Cify.
2308         (cris_store_multiple_op): New predicate function.
2309         (cris_expand_prologue, cris_emit_movem_store): New functions.
2310         (cris_print_operand) <case 'O'>: Handle modifications other than
2311         post-increment.
2312         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
2313         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
2314         (cris_gen_movem_load): Rearrange slightly to make local variable
2315         src a parameter, removing osrc.
2316         (cris_setup_incoming_varargs): Set machine_function member
2317         stdarg_regs to correspond to the number of registers that need to
2318         be saved.
2319         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
2320         CRIS_UNSPEC_GOT.
2321         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
2322         cris_general_operand_or_gotless_symbol accept UNSPEC.
2323         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
2324         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
2325         ("*cris_store_multiple"): New pattern.  Tweak common comment above
2326         this and "*cris_load_multiple".
2327         ("prologue"): New define_expand.
2328
2329         * config/cris/cris.md ("epilogue"): Conditionalize on
2330         TARGET_PROLOGUE_EPILOGUE.
2331
2332 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
2333
2334         PR target/20924
2335         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
2336         fpsr 0 instead of fpsr 1.
2337         (divsf3_internal_thr): Ditto.
2338         (divdf3_internal_lat): Ditto.
2339         (divdf3_internal_thr): Ditto.
2340         (divxf3_internal_lat): Ditto.
2341         (divxf3_internal_thr): Ditto.
2342
2343 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2344
2345         PR tree-optimization/20913
2346         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
2347
2348         PR tree-optimization/20702
2349         * tree-vrp.c (maybe_add_assert_expr): Recurse into
2350         dominator children that haven't been walked into.
2351
2352 2005-04-13  Julian Brown  <julian@codesourcery.com>
2353
2354         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
2355         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
2356         is true.
2357
2358 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2359
2360         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
2361         config/i386/sse.md: Fix comment typos.
2362
2363         * genattrtab.c (NULL_ATTR): Remove.
2364         * ifcvt.c (NULL_EDGE): Likewise.
2365
2366         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
2367
2368         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
2369         NOTE_PREDICT): Remove.
2370
2371 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2372
2373         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
2374         * configure: Regenerate.
2375         * config.in: Likewise.
2376         * system.h: Declare vsnprintf if not already declared.
2377
2378 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2379
2380         * optc-gen.awk: Handle stand-alone Mask records.
2381         * opth-gen.awk: Likewise.
2382         * doc/options.texi (Option file format): Document them.
2383         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
2384         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
2385         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
2386         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
2387         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
2388         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
2389         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
2390         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
2391         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
2392         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
2393         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
2394         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
2395         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
2396         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
2397         TARGET_LONG_DOUBLE_128): Likewise.
2398         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
2399         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
2400         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
2401         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
2402         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
2403         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
2404         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
2405         * config/sparc/sparc.c (fpu_option_set): New global.
2406         (sparc_handle_option): New function.
2407         (sparc_override_options): Test fpu_option_set.
2408         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
2409         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
2410         * config/sparc/sparc.opt: New file.
2411         * config/sparc/little-endian.opt: Likewise.
2412         * config/sparc/long-double-switch.opt: Likewise.
2413
2414 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2415
2416         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
2417         (bfin_handle_options): Set it if -mshared-library-id= is seen.
2418         * config/bfin/bfin.opt (mshared-library-id=): Lose
2419         Var(bfin_lib_id_given).
2420
2421 2005-04-13  Matt Thomas  <matt@3am-software.com>
2422
2423         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
2424         defining.
2425
2426 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2427
2428         * rtl.h (CLEAR_RTX_FLAGS): Remove.
2429
2430         * cgraphunit.c (INSNS_PER_CALL): Remove.
2431
2432         * tree-ssa-forwprop.c (vars,
2433         record_single_argument_cond_exprs,
2434         substitute_single_use_vars): Remove.
2435         (forward_propagate_into_cond_1, forward_propagate_into_cond):
2436         New.
2437         (tree_ssa_forward_propagate_single_use_vars): Call
2438         forward_propagate_into_cond for each COND_EXPR.
2439
2440         * tree-inline.c (INSNS_PER_STMT): Remove.
2441
2442 2005-04-12  Richard Henderson  <rth@redhat.com>
2443
2444         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
2445         (ix86_expand_sse_fp_minmax): ... from ...
2446         (ix86_expand_fp_movcc): ... here.
2447         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
2448         * config/i386/i386-protos.h: Update.
2449         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
2450         (sse_setccsf, sse_setccdf): Allow before reload.
2451         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
2452         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
2453         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
2454         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
2455         (anddf3, nanddf3, iordf3, xordf3): New.
2456
2457 2005-04-12  Jeff Law  <law@redhat.com>
2458
2459         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
2460         (tree-ssa-uncprop.o): Add dependencies.
2461         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
2462         * tree-flow.h (remove_useless_stmts): Remove prototype.
2463         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
2464         remove_useless_stmts.
2465         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
2466         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
2467         * tree-pass.h (pass_uncprop): Declare.
2468         * tree-ssa-uncprop.c: New file.
2469
2470 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
2471
2472         PR target/20670
2473         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
2474
2475 2005-04-12  Caroline Tice  <ctice@apple.com>
2476
2477         Temporary fix for partitioning problems.
2478         * passes.c (rest_of_handle_final): Remove code that
2479         frees unlikely_text_section_name,
2480         * varasm.c (assemble_start_function): Test for partitioning
2481         flag before writing out section labels.
2482         (assemble_end_function): Test for partitioning flag before
2483         writing out section labels.
2484
2485 2005-04-12  Steven Bosscher  <stevenb@suse.de>
2486             Stuart Hastings <stuart@apple.com>
2487             Jan Hubicka  <jh@suse.cz>
2488
2489         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
2490         references to gt-tree-cfg.h.
2491         * basic-block.h (struct basic_block_def): Don't skip rbi
2492         for garbage collection.
2493         (struct reorder_block_def): Make GTY-able.
2494         (struct control_flow_graph): New structure.
2495         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
2496         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
2497         but instead defines to the control_flow_graph for cfun.
2498         (label_to_block_map): New define, points to the label map of
2499         the control_flow_graph for cfun.
2500         (n_edges_for_function, n_basic_blocks_for_function,
2501         last_basic_block_for_function, basic_block_info_for_function,
2502         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
2503         basic_block_info_for_function, label_to_block_map_for_function):
2504         Counterparts for the above, taking a struct function as an extra
2505         argument.
2506         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
2507         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
2508         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
2509         (alloc_rbi_pool, free_rbi_pool): Remove.
2510         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
2511         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
2512         here...
2513         (cfg_layout_finalize) ... and don't free it here.
2514         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
2515         garbage collected.
2516         * flow.c (free_basic_block_vars): Set label_to_block_map and
2517         n_edges to zero too.
2518         * function.h (struct function): Add cfg field.
2519         * function.c (allocate_struct_function): Allocate the cfg.
2520         * tree-cfg.c (label_to_block_map): Remove.
2521         (build_tree_cfg): Don't allocate the rbi pool here...
2522         (delete_tree_cfg_annotations): ...and don't free it here.
2523         Also don't nullify label_to_block_map for cfun.
2524
2525 2005-04-12  Caroline Tice  <ctice@apple.com>
2526
2527         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2528         Revert my patch from April 9.
2529         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
2530         (reorder_basic_blocks): Revert my patch from April 9.
2531         (insert_section_boundary_note): Revert my patch from April 9.
2532         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
2533         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
2534         (COLD_END_LABEL):  Revert my patch from April 9.
2535         (cold_text_section_label):  Revert my patch from April 9.
2536         (cold_end_label): Revert my patch from April 9.
2537         (dwarf2out_switch_text_section): Revert my patch from April 9.
2538         (output_aranges): Revert my patch from April 9.
2539         (output_ranges):  Revert my patch from April 9.
2540         (output_line_info): Revert my patch from April 9.
2541         (add_location_or_const_value_attribute):  Revert my patch from April 9.
2542         (dwarf2out_var_location): Revert my patch from April 9.
2543         (dwarf2out_init):  Revert my patch from April 9.
2544         (dwarf2out_finish): Revert my patch from April 9.
2545         * function.h (struct function): Revert my patch from April 9.
2546         * opts.c (decode_options): Revert my patch from April 9.
2547         * output.h (unlikely_section_label, hot_section_label,
2548         hot_section_end_label, cold_section_end_label,
2549         unlikely_text_section_name): Revert my patch from April 9.
2550         * passes.c (rest_of_handle_final): Revert my patch from April 9.
2551         * varasm.c (unlikely_section_label, hot_section_label,
2552         hot_section_end_label, cold_section_end_label,
2553         unlikely_text_section_name): Revert my patch from April 9.
2554         (initialize_cold_section_name): Revert my patch from April 9.
2555         (unlikely_text_section): Revert my patch from April 9.
2556         (in_unlikely_text_section): Revert my patch from April 9.
2557         (named_section): Revert my patch from April 9.
2558         (function_section): Revert my patch from April 9.
2559         (current_function_section): Revert my patch from April 9.
2560         (assemble_start_function): Revert my patch from April 9.
2561         (assemble_end_function): Revert my patch from April 9.
2562         (default_section_type_flags_1): Revert my patch from April 9.
2563
2564 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2565
2566         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
2567         * config/sparc/sparc.md (untyped_call): Save the registers manually.
2568
2569         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
2570
2571 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2572
2573         PR middle-end/20917
2574         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
2575         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
2576
2577 2004-04-12  Richard Henderson  <rth@redhat.com>
2578
2579         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
2580         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
2581         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
2582         (UNSPEC_*, UNSPECV_*): Renumber.
2583
2584 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
2585
2586         PR mudflap/19266
2587         From Richard Henderson <rth@redhat.com>:
2588         * tree-mudflap.c (mf_build_check_statement_for): Correct block
2589         splitting logic.
2590
2591 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
2592
2593         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
2594
2595 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2596
2597         * config/bfin/bfin.c (bfin_library_id_string): Remove.
2598         (bfin_library_id): New variable.
2599         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
2600         instead of bfin_library_id_string.
2601         (bfin_handle_option): New function.
2602         (override_options): Remove most code to deal with shared library IDs,
2603         just check they aren't used without -mid-shared-library.
2604         (TARGET_HANDLE_OPTION): Define.
2605         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
2606         * config/bfin/bfin.opt (mshared-library-id=): New.
2607
2608 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
2609
2610         * tree-vect-transform.c: Fix comment typos.
2611
2612 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
2613
2614         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
2615         split critical edges when not possible/profitable.
2616
2617 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2618
2619         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
2620         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
2621         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
2622         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
2623         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
2624         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
2625         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
2626         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
2627         MASK_NO_BITFIELD.
2628         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
2629         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2630         * config/ns32k/ns32k.opt: New file.
2631
2632 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2633
2634         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
2635         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
2636         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
2637         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
2638         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
2639         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
2640         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
2641         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
2642         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
2643         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
2644         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
2645         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
2646         (MASK_COLDFIRE): Formatting fixes.
2647         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
2648         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
2649         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
2650         "_current_shared_library_a5_offset_".
2651         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2652         (MASK_ALL_CPU_BITS): New macro.
2653         (m68k_handle_option): New function.
2654         (override_options): Remove handling of m68k_library_id_string.
2655         * config/m68k/m68k.opt: New file.
2656         * config/m68k/ieee.opt: New file.
2657
2658 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
2659
2660         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2661         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
2662         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2663         (TARGET_CXX): Adjust accordingly.
2664         * target.h (struct gcc_target): Remove epxort_class_data.  Add
2665         determine_class_data_visibility and class_data_always_comdat.
2666         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2667         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
2668         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2669         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
2670         (arm_cxx_determine_class_data_visibility): New.
2671         (arm_cxx_class_data_always_comdat): Likewise.
2672         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2673         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2674         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2675         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
2676         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
2677         Define.
2678
2679 2005-04-11  Devang Patel  <dpatel@apple.com>
2680
2681         * tree-data-ref.c (build_classic_dist_vector,
2682         compute_subscript_distance): Make externally visible.
2683         * tree-data-ref.h (build_classic_dist_vector,
2684         compute_subscript_distance): Same.
2685         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
2686         Check distance vector against vectorization factor.
2687         (vect_analyze_loop): Determine vectorizaion factor before
2688         analyzing data dependences.
2689         * tree-vectorizer.c (loops_num): Make it externally visible and
2690         rename ...
2691         * tree-vectorizer.c (vect_loops_num): ... new name.
2692         * tree-vectorizer.h  (vect_loops_num): New.
2693
2694 2005-04-11  Devang Patel  <dpatel@apple.com>
2695
2696         * tree-vect-analyze.c (vect_analyze_operations): Check
2697         vectorizable codition.
2698         * tree-vect-transform.c (vect_is_simple_cond): New function.
2699         (vectorizable_condition): New function.
2700         (vect_transform_stmt): Handle condition_vec_info_type.
2701         * tree-vectorizer.h (enum stmt_vec_info_type): Add
2702         condition_vec_info_type.
2703         (vectorizable_condition): New.
2704
2705 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
2706
2707         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
2708         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
2709         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
2710
2711         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
2712         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
2713
2714         * dwarf2out.c (output_line_info): Don't try to dereference
2715         a NULL current_function_decl.
2716
2717         * config/t-slibgcc-darwin: Don't put shared libraries in
2718         directories other than $(slibdir).
2719         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
2720         OS uses for it.
2721
2722 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2723
2724         PR tree-optimization/20933
2725         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
2726         logic to reject aliases between read-only and writable
2727         variables ...
2728         (may_alias_p): ... here.
2729         (get_tmt_for): Do not associate read-only tags to pointers
2730         whose pointed-to type is not read-only.
2731         * tree-ssa.c (verify_ssa): Check that memory stores have at
2732         least one V_MAY_DEF or V_MUST_DEF.
2733
2734 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2735
2736         PR/17092
2737         * configure.ac (gcc_UNLOCKED_FUNCS): New.
2738         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
2739         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
2740         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
2741         _unlocked function.
2742         (fwrite_unlocked): Fix prototype.
2743
2744         * configure, config.in: Regenerate.
2745
2746 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
2747
2748         * tree-ssa-loop-im.c: Include real.h.
2749         (determine_invariantness_stmt): If real division divisor is
2750         invariant and flag_unsafe_math_optimizations enabled, generate
2751         invariant reciprocal for hoisting.
2752         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
2753
2754 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2755
2756         Fix PR tree-optimization/20926
2757
2758         * tree-ssa-alias.c (add_type_alias): Handle subvars.
2759
2760 2005-04-11  Devang Patel  <dpatel@apple.com>
2761
2762         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
2763         operand ordering.
2764
2765 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2766
2767         * fold-const.c (fold_binary_op_with_conditional_arg):
2768         use fold_buildN instead of "fold (buildN" in some
2769         non obvious places.
2770         (fold_unary): Likewise.
2771         (fold_binary): Likewise.
2772
2773 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2774
2775         Fix PR tree-optimization/20612
2776         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
2777         handling
2778         (perfect_nestify): preheaderbb is *not* part of loop of the
2779         old destination.
2780
2781 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2782
2783         * tree-ssa-alias.c (may_alias_p): If the variable
2784         is a global variable and the pointer is parameter
2785         and -fargument-noalias-global is used, then
2786         the pointer cannot alias the variable.
2787
2788 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
2789
2790         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
2791         * config/sparc/sparc.h: Likewise.
2792         * config/sparc/sparc.md: Likewise.
2793
2794 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
2795
2796         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
2797
2798         * tree-vrp.c: Fix a comment typo.
2799
2800 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2801
2802         PR tree-optimization/20920
2803         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
2804         SSA_NAME flows through an abnormal edge.
2805         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
2806         through abnormal edges.
2807         (maybe_add_assert_expr): Likewise.
2808
2809 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
2810
2811         * config/s390/s390.h (s390_tune_string, s390_arch_string)
2812         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
2813         (s390_stack_size_string, s390_stack_guard_string, target_flags)
2814         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
2815         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
2816         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
2817         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
2818         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
2819         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
2820         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
2821         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
2822         (TARGET_HANDLE_OPTION): Likewise.
2823         (s390_tune): Initialize to PROCESSOR_max.
2824         (s390_arch_string): Make static.
2825         (s390_tune_string, s390_warn_framesize_string): Delete.
2826         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
2827         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
2828         (s390_handle_arch_option, s390_handle_option): New functions.
2829         (override_options): Remove parsing of option strings.
2830         * config/s390/s390.opt: New file.
2831
2832 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2833
2834         * tree-complex.c (expand_vector_operations): Call
2835         update_stmt_if_modified.
2836
2837 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2838
2839         * tree-vect-analyze (vect_determine_vectorization_factor):
2840         Do not use GET_MODE_NUNITS.
2841         * tree-vect-transform.c (vect_get_vec_def_for_operand,
2842         (vectorizable_load, vect_transform_loop): Likewise.
2843
2844 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
2845
2846         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
2847         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
2848         * optabs.h (enum optab_index): Add new OTI_lceil.
2849         (lceil_optab): Define corresponding macro.
2850         * optabs.c (init_optabs): Initialize lceil_optab.
2851         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
2852         and lceildi2 patterns.
2853         * builtins.c (expand_builtin_int_roundingfn): Handle
2854         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
2855         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
2856         BUILT_IN_LLCEIL{,F,L}.
2857         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
2858         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
2859         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
2860         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
2861         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
2862         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
2863         into lceil built-in function and (long long int)ceil{,f,l} into
2864         llceil built-in function.
2865         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
2866         BUILT_IN_LLCEIL.
2867
2868 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2869
2870         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
2871         zero.
2872
2873 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
2874
2875         * config/arm/arm.c: Fix a comment typo.
2876         * doc/tree-ssa.texi: Fix a typo.
2877
2878 2005-04-10  Steven Bosscher  <stevenb@suse.de>
2879
2880         * cselib.c (clear_table): Rename to cselib_clear_table.
2881         * cselib.h (cselib_clear_table): Add prototype.
2882         * gcse.c (gcse_main): Make 'f' argument unused.
2883         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
2884         of each basic block instead.
2885         (compute_sets, compute_hash_table_work): Likewise.
2886         (constprop_register): Change int 'alter_jumps' argument to bool.
2887         (do_local_cprop): Likewise.
2888         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
2889         the insn chain.  Explicitly clear the cselib tables after finishing
2890         one basic block.  Make sure there are no unterminated libcall blocks.
2891         Update compute_sets call.
2892         (cprop): Walk basic blocks instead of the insn chain.
2893         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
2894         Likewise.
2895         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
2896         one_cprop_pass calls.
2897
2898 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2899
2900         * combine.c (combine_simplify_rtx): Remove a transformation that
2901         relies on an invalid assumption about rtl sign-extension semantics.
2902
2903 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2904
2905         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
2906         to build_int_cst_wide.
2907
2908 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
2909
2910         PR target/20126
2911         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
2912         set the original address pseudo to the correct value before the
2913         original insn, if possible, and leave the insn alone, otherwise
2914         create a new pseudo, set it and replace it in the insn.
2915         * recog.c (validate_change_maybe_volatile): New.
2916         * recog.h (validate_change_maybe_volatile): Declare.
2917
2918 2005-04-09  Caroline Tice  <ctice@apple.com>
2919
2920         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2921         Remove targetm.have_named_sections test.
2922         (fix_edges_for_rarely_executed_code): Likewise.
2923         (insert_section_boundary_note): Likewise.
2924         (reorder_basic_blocks): Check partitioning flag before calling
2925         verify_hot_cold_block_grouping.
2926         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
2927         the function struct rather than global variables.
2928         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
2929         (COLD_END_LABEL): Likewise
2930         (cold_text_section_label): New static global variable.
2931         (cold_end_label): Likewise.
2932         (dwarf2out_switch_text_section): Get hot/cold section labels from
2933         the function struct rather than global variables.
2934         (output_aranges): Use cold_text_section_label and cold_end_label;
2935         check partitioning flag before putting out delta.
2936         (output_ranges): Remove incorrect code attempting to use
2937         hot/cold labels.
2938         (output_line_info): Get cold section label from function struct.
2939         (add_location_or_const_value_attribute): Likewise.
2940         (get_subprogram_die): Get hot/cold section labels from function struct.
2941         (dwarf2out_var_location): Likewise.
2942         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
2943         write out cold_text_section_label if partition flag is set.
2944         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
2945         * function.h (struct function): Add new fields to point to hot/cold
2946         section labels: hot_section_label, cold_section_label,
2947         hot_section_end_label and cold_section_end_label; also add new field
2948         for cold text section name, unlikely_text_section_name.
2949         * opts.c (decode_options): Turn off partitioning flag if
2950         !targetm.have_named_sections.
2951         * output.h (hot_section_label): Remove.
2952         (hot_section_end_label): Remove.
2953         (cold_section_end_label): Remove.
2954         (unlikely_section_label): Remove.
2955         (unlikely_text_section_name): Remove.
2956         * passes.c (rest_of_handle_final):  Remove code that frees
2957         unlikely_text_section_name.
2958         * varasm.c (unlikely_section_label): Remove.
2959         (hot_section_label): Remove.
2960         (hot_section_end_label): Remove.
2961         (cold_section_end_label): Remove.
2962         (unlikely_text_section_name):  Remove.
2963         (initialize_cold_section_name): Modify to call
2964         targetm.strip_name_encoding; to store cold section name in current
2965         function struct, if it exists; and to only use the decl_section_name
2966         if flag_named_sections is true.
2967         (unlikely_text_section): Modify to get section name out of current
2968         function struct, if there is one; otherwise build it from
2969         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
2970         (in_unlikely_text_section): Likewise.
2971         (named_section): Modify to get/put cold section name in current function
2972         struct, if there is one.
2973         (function_section):  Change 'bool unlikely' to 'int reloc'; check
2974         targetm.have_named_sections before calling named_section.
2975         (current_function_section): Likewise.
2976         (assemble_start_function): Modify to get/put unlikely_text_section_name
2977         in current function struct; modify to get hot/cold section labels
2978         from function struct; initialize labels using
2979         ASM_GENERATE_INTERNAL_LABEL;
2980         test partitioning flag before writing out hot section label.
2981         (assemble_end_function): Test partitioning flag before writing out
2982         hot/cold section labels.
2983         (default_section_type_flags_1):  Modify to use array instead of
2984          char* for unlikely_text_section_name; set flags correctly for
2985          cold text section if there is not a current function decl.
2986
2987 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2988
2989         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
2990         and TI_VA_LIST_FPR_COUNTER_FIELD.
2991         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
2992         * tree-pass.h (pass_stdarg): Add.
2993         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
2994         * tree-stdarg.c: New file.
2995         * tree-stdarg.h: New file.
2996         * Makefile.in (OBJS-common): Add tree-stdarg.o.
2997         (tree-stdarg.o): Add dependencies.
2998         * function.h (struct function): Add va_list_gpr_size and
2999         va_list_fpr_size fields.
3000         * function.c (allocate_struct_function): Initialize them.
3001         * target.h (struct gcc_target): Add stdarg_optimize_hook.
3002         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
3003         (TARGET_INITIALIZER): Add it.
3004
3005         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
3006         va_list_{g,f}pr_counter_field.
3007         (ix86_setup_incoming_varargs): Don't do anything if reg_save
3008         area will not be used.  Only save registers that tree-stdarg.c
3009         detected they need saving.
3010         (ix86_va_start): Don't set up fields that won't be used.
3011
3012         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
3013         va_list_{g,f}pr_counter_field.
3014         (setup_incoming_varargs): Don't do anything if reg_save
3015         area will not be used.  Only save registers that tree-stdarg.c
3016         detected they need saving.
3017         (rs6000_va_start): Don't set up fields that won't be used.
3018
3019         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
3020         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
3021         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
3022         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
3023
3024 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
3025
3026         PR target/20795
3027         * config/i386/i386.c (construct_container): Pass empty aligned
3028         struct, union or class in memory.
3029
3030 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
3031
3032         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
3033         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
3034         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
3035         config/rs6000/predicates.md: Fix comment typos.
3036
3037         * sched-int.h (haifa_insn_data): Remove blockage and units.
3038         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
3039         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
3040         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
3041
3042 2005-04-09  Jan Hubicka  <jh@suse.cz>
3043             Steven Bosscher  <stevenb@suse.de>
3044
3045         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
3046         * cfgloop.c (get_loop_exit_edges): Likewise.
3047         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
3048         (unloop): Likewise.
3049         * loop-unroll.c (analyze_insns_in_loop): Likewise.
3050         * tree-cfg.c (dump_cfg_status): Likewise.
3051
3052 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
3053
3054         * config/rs6000/predicates.md (altivec_register_operand): Remove
3055         redundant match_code test.
3056         (gpc_reg_operand): Same.
3057         (cc_reg_operand): Same.
3058         (cc_reg_not_cr0_operand): Same.
3059
3060 2005-04-09  Jan Hubicka  <jh@suse.cz>
3061
3062         Forgotten hunk from my last merge patch:
3063         * final.c (output_addr_const): Do not call mark_referenced.
3064
3065 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
3066
3067         * doc/tree-ssa.texi: Add immediate use documentation.
3068
3069 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
3070
3071         * arm.c (FL_WBUF): Define.
3072         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
3073         (arm_is_6_or_7): Delete.
3074         (arm_tune_wbuf): New.
3075         (arm_override_options): Set arm_tune_wbuf.
3076         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
3077         (arm_is_6_or_7): Delete declaration.
3078         (arm_tune_wbuf): New declartion.
3079         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
3080         (model_wbuf): Derive from arm_tune_wbuf.
3081         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
3082         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
3083         (arm740t): Mark CPUs as having a write buffer.
3084
3085 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
3086
3087         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
3088         of 'const_double_operand' in operand 2 constraints.  Update enable
3089         condition.
3090
3091 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
3092
3093         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
3094         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
3095         * optabs.h (enum optab_index): Add new OTI_lfloor.
3096         (lfloor_optab): Define corresponding macro.
3097         * optabs.c (init_optabs): Initialize lfloor_optab.
3098         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
3099         and lfloordi2 patterns.
3100         * builtins.c (expand_builtin_int_roundingfn): New prototype.
3101         (expand_builtin_int_roundingfn): New function.
3102         (fold_builtin_int_roundingfn): New prototype.
3103         (fold_builtin_int_roundingfn): New function, renamed from
3104         fold_builtin_lround.
3105         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
3106         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
3107         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
3108         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
3109         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
3110         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
3111         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
3112         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
3113         into lfloor built-in function and (long long int)floor{,f,l} into
3114         llfloor built-in function.
3115         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
3116         BUILT_IN_LLFLOOR.
3117
3118 2005-04-08  Ian Lance Taylor  <ian@airs.com>
3119
3120         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
3121         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
3122         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
3123         (DO_COND, DO_BODY): Likewise.
3124         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
3125         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
3126         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
3127         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
3128         (build_continue_stmt, build_break_stmt): Don't declare.
3129         (c_do_switch_warnings): Update declaration.
3130         * c-gimplify.c (enum bc_t): Remove.
3131         (struct c_gimplify_ctx, ctxp): Remove.
3132         (push_context, pop_context): Remove static functions.
3133         (c_genericize): Don't call push_context or pop_context.
3134         (begin_bc_block, finish_bc_block): Remove static functions.
3135         (build_bc_goto): Likewise.
3136         (gimplify_c_loop): Likewise.
3137         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
3138         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
3139         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
3140         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
3141         * c-common.c (c_do_switch_warnings): Rename from
3142         c_do_switch_warnings_1.
3143         (c_do_switch_warnings) [old version]: Remove.
3144         (c_do_switch_expr_warnings): Remove.
3145         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
3146         function instead of c_do_switch_expr_warnings.
3147         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
3148         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
3149         * c-pretty-print.c (pp_c_statement): Likewise.
3150         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
3151
3152 2005-04-08  Devang Patel  <dpatel@apple.com>
3153
3154         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
3155         While selecting replacement condition pay attention to loop header.
3156
3157 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
3158
3159         Merge from tree-cleanup-branch: VRP, store CCP, store
3160             copy-prop, incremental SSA updating of FUD chains and
3161             newly exposed symbols.
3162
3163         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
3164         (OBJS-common): Add tree-vrp.o.
3165         (tree-vrp.o): New rule.
3166         * basic-block.h (nearest_common_dominator_for_set): Declare.
3167         * common.opt (ftree-store-ccp): New flag.
3168         (ftree-copy-prop): New flag.
3169         (ftree-vrp): New flag.
3170         (ftree-store-copy-prop): New flag.
3171         * dominance.c (nearest_common_dominator_for_set): New.
3172         * domwalk.c (walk_dominator_tree): Only traverse
3173         statements in blocks marked in walk_data->interesting_blocks.
3174         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
3175         * fold-const.c (fold): Handle ASSERT_EXPR.
3176         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
3177         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
3178         flag_tree_vrp at -O2.
3179         * timevar.def (TV_TREE_VRP): Define.
3180         (TV_TREE_COPY_PROP): Define.
3181         (TV_TREE_STORE_COPY_PROP): Define.
3182         (TV_TREE_SSA_INCREMENTAL): Define.
3183         (TV_TREE_STORE_CCP): Define.
3184         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
3185         to kill_redundant_phi_nodes from comment.
3186         (verify_expr): Handle ASSERT_EXPR.
3187         * tree-dfa.c (mark_new_vars_to_rename): Remove second
3188         argument.  Update all users.
3189         (mark_call_clobbered_vars_to_rename): Remove.  Update all
3190         users.
3191         * tree-flow-inline.h (unmodifiable_var_p): New.
3192         * tree-flow.h (enum value_range_type): Declare.
3193         (struct value_range_def): Declare.
3194         (value_range): Declare.
3195         (remove_all_phi_nodes_for): Remove.  Update all users.
3196         (find_phi_node_for): Declare.
3197         (add_type_alias): Declare.
3198         (count_uses_and_derefs): Declare.
3199         (kill_redundant_phi_nodes): Remove.
3200         (rewrite_into_ssa): Remove.
3201         (rewrite_def_def_chains): Remove.
3202         (update_ssa, register_new_name_mapping, create_new_def_for,
3203         need_ssa_update_p, name_registered_for_update_p,
3204         release_ssa_name_after_update_ssa, dump_repl_tbl,
3205         debug_repl_tbl, dump_names_replaced_by,
3206         debug_names_replaced_by, mark_sym_for_renaming,
3207         mark_set_for_renaming, get_current_def, set_current_def,
3208         get_value_range, dump_value_range, debug_value_range,
3209         dump_all_value_ranges, debug_all_value_ranges,
3210         expr_computes_nonzero, loop_depth_of_name,
3211         unmodifiable_var_p): Declare.
3212         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
3213         ASSERT_EXPR.
3214         * tree-into-ssa.c (block_defs_stack): Update comment.
3215         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
3216         syms_to_rename, names_to_release, repl_tbl,
3217         need_to_initialize_update_ssa_p, need_to_update_vops_p,
3218         need_to_replace_names_p): New locals.
3219         (NAME_SETS_GROWTH_FACTOR): Define.
3220         (struct repl_map_d): Declare.
3221         (struct mark_def_sites_global_data): Add field
3222         interesting_blocks.
3223         (enum rewrite_mode): Declare.
3224         (REGISTER_DEFS_IN_THIS_STMT): Define.
3225         (compute_global_livein): Use last_basic_block instead of
3226         n_basic_blocks.
3227         (set_def_block): Remove last argument.  Update all callers.
3228         (prepare_use_operand_for_rename): Remove.  Update all callers.
3229         (prepare_def_operand_for_rename): Remove.  Update all callers.
3230         (symbol_marked_for_renaming): New.
3231         (is_old_name): New.
3232         (is_new_name): New.
3233         (repl_map_hash): New.
3234         (repl_map_eq): New.
3235         (repl_map_free): New.
3236         (names_replaced_by): New.
3237         (add_to_repl_tbl): New.
3238         (add_new_name_mapping): New.
3239         (mark_def_sites): Assume that all the operands in the
3240         statement are in normal form.
3241         (find_idf): Assert that the block in the stack is valid.
3242         (get_default_def_for): New.
3243         (insert_phi_nodes_for): Add new argument 'update_p'.
3244         Add documentation.
3245         If update_p is true, add a new mapping between the LHS of
3246         each new PHI and the name that it replaces.
3247         (insert_phi_nodes_1): Only call find_idf if needed.
3248         (get_reaching_def): Call get_default_def_for.
3249         (rewrite_operand): Remove.
3250         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
3251         and REWRITE_THIS_STMT are false.
3252         Assume that all the operands in the statement are in
3253         normal form.
3254         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
3255         (rewrite_virtual_phi_arguments): Remove.
3256         (invalidate_name_tags): Remove.
3257         (register_new_update_single, register_new_update_set,
3258         rewrite_update_init_block, replace_use,
3259         rewrite_update_fini_block, rewrite_update_stmt,
3260         rewrite_update_phi_arguments): New.
3261         rewrite_blocks): Remove argument 'fix_virtual_phis'.
3262         Add arguments 'entry', 'what' and 'blocks'.
3263         Initialize the dominator walker according to 'what' and
3264         'blocks'.
3265         Start the dominator walk at 'entry'.
3266         (mark_def_site_blocks): Add argument 'interesting_blocks'.
3267         Use it to configure the dominator walker.
3268         (rewrite_into_ssa): Remove argument 'all'.
3269         Make internal.
3270         (rewrite_all_into_ssa): Remove.
3271         (rewrite_def_def_chains): Remove.
3272         (mark_def_interesting, mark_use_interesting,
3273         prepare_phi_args_for_update, prepare_block_for_update,
3274         prepare_def_site_for, prepare_def_sites,
3275         dump_names_replaced_by, debug_names_replaced_by,
3276         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
3277         delete_update_ssa, create_new_def_for,
3278         register_new_name_mapping, mark_sym_for_renaming,
3279         mark_set_for_renaming, need_ssa_update_p,
3280         name_registered_for_update_p, ssa_names_to_replace,
3281         release_ssa_name_after_update_ssa,
3282         insert_updated_phi_nodes_for, update_ssa): New.
3283         * tree-loop-linear.c (linear_transform_loops): Call
3284         update_ssa instead of rewrite_into_ssa.
3285         * tree-optimize.c (vars_to_rename): Remove.
3286         Update all users.
3287         (init_tree_optimization_passes): Replace
3288         pass_redundant_phi with pass_copy_prop.
3289         Add pass_vrp.
3290         Replace pass_ccp with pass_store_ccp.
3291         Add pass_store_copy_prop after pass_store_ccp.
3292         (execute_todo): If the TODO_ flags don't include updating
3293         the SSA form, assert that it does not need to be updated.
3294         Call update_ssa instead of rewrite_into_ssa and
3295         rewrite_def_def_chains.
3296         If TODO_verify_loops is set, call verify_loop_closed_ssa.
3297         (tree_rest_of_compilation):
3298         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
3299         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
3300         TODO_cleanup_cfg): Renumber.
3301         (TODO_verify_loops, TODO_update_ssa,
3302         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
3303         TODO_update_ssa_only_virtuals): Define.
3304         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
3305         Declare.
3306         * tree-phinodes.c (make_phi_node): Update documentation.
3307         (remove_all_phi_nodes_for): Remove.
3308         (find_phi_node_for): New.
3309         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
3310         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
3311         (interpret_rhs_modify_expr): Likewise.
3312         * tree-sra.c (decide_instantiations): Mark all symbols in
3313         SRA_CANDIDATES for renaming.
3314         (mark_all_v_defs_1): Rename from mark_all_v_defs.
3315         (mark_all_v_defs): New function.  Update all users to call it
3316         with the whole list of scalarized statements, not just the
3317         first one.
3318         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
3319         (compute_flow_insensitive_aliasing): If the tag is
3320         unmodifiable and the variable isn't or vice-versa, don't
3321         make them alias of each other.
3322         (setup_pointers_and_addressables): If the type tag for
3323         VAR is about to change, mark the old one for renaming.
3324         (add_type_alias): New.
3325         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
3326         (ccp_lattice_t): Rename from latticevalue.
3327         (value): Remove.  Update all users.
3328         (const_val): New local variable.
3329         (do_store_ccp): New local variable.
3330         (dump_lattice_value): Handle UNINITIALIZED.
3331         (debug_lattice_value): New.
3332         (get_default_value): Re-write.
3333         (set_lattice_value): Re-write.
3334         (def_to_varying): Remove.  Update all users.
3335         (likely_value): Return VARYING for statements that make
3336         stores when STORE_CCP is false.
3337         Return VARYING for any statement other than MODIFY_EXPR,
3338         COND_EXPR and SWITCH_EXPR.
3339         (ccp_initialize): Re-write.
3340         (replace_uses_in, replace_vuse_in, substitute_and_fold):
3341         Move to tree-ssa-propagate.c.
3342         (ccp_lattice_meet): Handle memory stores when
3343         DO_STORE_CCP is true.
3344         (ccp_visit_phi_node): Likewise.
3345         (ccp_fold): Likewise.
3346         (evaluate_stmt): Likewise.
3347         (visit_assignment): Likewise.
3348         (ccp_visit_stmt): Likewise.
3349         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
3350         into DO_STORE_CCP.
3351         (do_ssa_ccp): New.
3352         (pass_ccp): Use it.
3353         (do_ssa_store_ccp): New.
3354         (gate_store_ccp): New.
3355         (pass_store_ccp): Declare.
3356         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
3357         (may_propagate_copy): Reformat.
3358         Don't abort if ORIG is a virtual and DEST isn't.
3359         If NEW does not have alias information but DEST does,
3360         copy it.
3361         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
3362         copy_prop_kind, which_copy_prop): Declare.
3363         (stmt_may_generate_copy, get_copy_of_val,
3364         get_last_copy_of, set_copy_of_val, dump_copy_of,
3365         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
3366         copy_prop_visit_stmt, copy_prop_visit_phi_node,
3367         init_copy_prop, fini_copy_prop, execute_copy_prop,
3368         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
3369         store_copy_prop): New.
3370         (pass_copy_prop, pass_store_copy_prop): Declare.
3371         * tree-ssa-dom.c (struct opt_stats_d): Add fields
3372         'num_const_prop' and 'num_copy_prop'.
3373         (cprop_operand): Update them.
3374         (dump_dominator_optimization_stats): Dump them.
3375         (tree_ssa_dominator_optimize): Call update_ssa instead of
3376         rewrite_into_ssa.
3377         (loop_depth_of_name): Declare extern.
3378         (simplify_cond_and_lookup_avail_expr): Guard against NULL
3379         values for LOW or HIGH.
3380         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
3381         (record_equivalences_from_stmt): Call expr_computes_nonzero.
3382         (cprop_operand): Only propagate if VAL != OP.
3383         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
3384         statement for renaming.
3385         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
3386         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
3387         add_type_alias if necessary.
3388         Call mark_new_vars_to_rename.
3389         (tree_ssa_iv_optimize): If new symbols need to be renamed,
3390         mark every statement updated, call update_ssa and
3391         rewrite_into_loop_closed_ssa.
3392         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
3393         from LIVEIN if VAR is a virtual.
3394         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
3395         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
3396         (get_call_expr_operands): Reformat statement.
3397         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
3398         symbols.
3399         * tree-ssa-propagate.c (ssa_prop_init): Initialize
3400         SSA_NAME_VALUE for every name.
3401         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3402         get_value_loaded_by): New.
3403         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
3404         substitute_and_fold): Move from tree-ssa-ccp.c.
3405         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
3406         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3407         get_value_loaded_by, replace_uses_in, substitute_and_fold):
3408         Declare.
3409         * tree-ssa.c (verify_use): Fix error message.
3410         (propagate_into_addr, replace_immediate_uses, get_eq_name,
3411         check_phi_redundancy, kill_redundant_phi_nodes,
3412         pass_redundant_phi): Remove.  Update all users.
3413         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
3414         add_type_alias, if necessary.
3415         * tree-vectorizer.h (struct _stmt_vect_info): Update
3416         documentation for field 'memtag'.
3417         * tree-vrp.c: New file.
3418         * tree.def (ASSERT_EXPR): Define.
3419         * tree.h (ASSERT_EXPR_VAR): Define.
3420         (ASSERT_EXPR_COND): Define.
3421         (SSA_NAME_VALUE_RANGE): Define.
3422         (struct tree_ssa_name): Add field 'value_range'.
3423         (PHI_REWRITTEN): Remove.
3424         (struct tree_phi_node): Remove field 'rewritten'.
3425         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
3426         -ftree-store-copy-prop): Document.
3427         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
3428         Document usage of update_ssa.
3429
3430 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
3431
3432         PR target/20814
3433         * config/rs6000/predicates.md (altivec_register_operand): Accept
3434         SUBREG.
3435         (and64_operand): Do not limit CONST_INT to mask64_operand.
3436         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
3437         (and_operand): Do not limit CONST_INT to mask_operand.
3438
3439 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
3440
3441         PR rtl-optimization/20466
3442         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
3443         for overlap of the address of each list member.
3444         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
3445
3446 2005-04-08  Mike Stump  <mrs@apple.com>
3447
3448         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
3449
3450         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
3451         instead of 4.
3452
3453 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3454
3455         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
3456
3457         * function.c (push_function_context_to): Don't set
3458         contains_functions.
3459         * function.h (function): Remove contains_functions.
3460         (current_function_contains_functions): Remove.
3461
3462         * function.h (function): Remove instrument_entry_exit.
3463         (current_function_instrument_entry_exit): Remove.
3464
3465         * function.h (nonlocal_labels): Remove.
3466
3467         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
3468
3469         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
3470         (check_attr_value, write_attr_get, write_expr_attr_cache,
3471         find_attr, make_internal_attr): Don't reference negative_ok or
3472         unsigned_p.
3473         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
3474         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
3475         (ATTR_STATIC): Adjust the value.
3476
3477         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
3478
3479 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
3480
3481         * config/s390/tpf.h (ASM_SPEC): Define.
3482
3483 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3484
3485         * tree-flow.h: Remove the prototype for
3486         redirect_immediate_uses.
3487         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
3488
3489 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
3490
3491         * arm.c (arm_const_double_by_parts): New function.
3492         * arm-protos.h (arm_const_double_by_parts): Add prototype.
3493         * arm.md (define_split for 64-bit constants): Add another one.
3494
3495 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
3496
3497         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
3498
3499 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3500
3501         * system.h: Revert last change.
3502
3503 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
3504
3505         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
3506         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
3507         (TARGET_SWITCHES): Delete.
3508         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
3509         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
3510         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
3511         * config/xtensa/xtensa.opt: New file.
3512
3513 2005-04-08  Ben Elliston  <bje@au.ibm.com>
3514
3515         * config/fp-bit.c: Include L_mul_tf in #endif comment.
3516         * config/fp-bit.h: Tidy comments.
3517
3518 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3519
3520         * system.h: Poison PARAMS.
3521
3522 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
3523
3524         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3525         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
3526         (TARGET_SWITCHES): Delete.
3527         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
3528         * config/vax/vax.opt: New file.
3529
3530 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
3531
3532         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
3533
3534 2005-04-07  Ian Lance Taylor  <ian@airs.com>
3535
3536         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
3537         define.
3538         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
3539         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
3540         Likewise.
3541
3542 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
3543
3544         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
3545         all immediate uses in PHI nodes.
3546
3547 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
3548
3549         * arm.c (arm_const_double_inline_cost): Handle any constant by
3550         using gen_lowpart and gen_highpart_mode.
3551         (note_invalid_constants): All constants in an RTX with a constraint
3552         that permits memory are now pushed to the constant pool.
3553         (output_move_double): Delete code to handle reg to reg and
3554         constant to reg moves.
3555         (const_double_needs_minipool, output_mov_immediate): Delete.
3556         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
3557         CONST_INT and CONST_VECTOR.
3558         * arm.md (ANY64): New mode macro.
3559         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
3560         (movdf_soft_insn): Split reg-reg and const-reg moves.
3561         (split patterns for 64-bit constant and register moves): New.
3562         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
3563         (cirrus_movdf_hard_insn): Likewise.
3564         * fpa.md (movdf_fpa): Likewise.
3565         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
3566         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
3567         constraints.
3568         (movv2si_internal_2): Likewise.
3569         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
3570         (movdf_vfp): Likewise.
3571         * arm-protos.h (output_mov_immediate): Delete prototype.
3572
3573 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
3574
3575         PR target/20093
3576         * simplify-rtx.c (simplify_unary_operation_1): Check
3577         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
3578
3579 2005-04-06  James E Wilson  <wilson@specifixinc.com>
3580
3581         PR target/20717
3582         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
3583         ADDR_EXPR.
3584
3585 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3586
3587         * coverage.h (GCOV_TYPE_NODE): Delete.
3588         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
3589         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
3590         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
3591         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
3592         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
3593
3594 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3595
3596         PR other/20792
3597         * Makefile.in (gcc.pot): Remove options.c dependency.
3598         * optc-gen.awk: Don't quote help strings with N_().
3599
3600 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
3601
3602         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
3603         the function returns a pointer type.
3604
3605 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
3606
3607         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
3608         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
3609         * doc/invoke.texi: Documnet salias-max-implicit-fields.
3610         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
3611         explicit_uses members.
3612         (get_or_create_used_part_for): Initialize new fields.
3613         (fieldoff_compare): New function.
3614         (create_overlap_variables_for): Count number of fields, use
3615         heuristic to determine whether to create subvars for vars with
3616         only implicit uses.
3617         Sort the field list by offset and avoid creating duplicate SFT's.
3618
3619 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3620
3621         * c.opt (-F): Remove trailing whitespace from help string.
3622         (-finput-charset): Use a tab to separate the switch name and help
3623         string.
3624         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
3625         (-ftree-vectorizer-verbose): Likewise.
3626
3627 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3628
3629         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
3630         a PHI argument where a use occurs instead of all PHI arguments.
3631
3632 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
3633
3634         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
3635         scope.
3636
3637 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3638
3639         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
3640         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
3641         config/bfin/bfin.h: Fix comment typos.
3642
3643 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
3644
3645         * doc/install.texi: Update the URL for Jacks.
3646         * doc/sourcebuild.texi: Likewise.
3647
3648 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3649
3650         PR target/17245
3651         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
3652         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
3653
3654 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3655
3656         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
3657
3658 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3659
3660         * config/v850/v850-protos.h (override_options): Delete.
3661         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
3662         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
3663         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
3664         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
3665         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
3666         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
3667         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
3668         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
3669         (OVERRIDE_OPTIONS): Delete.
3670         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
3671         (small_memory_info): Remove the value field.
3672         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
3673         TARGET_NO_APP_REGS.
3674         * config/v850/v850.c (small_memory): Remove the value field.
3675         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3676         (override_options): Delete.
3677         (v850_handle_memory_option, v850_handle_option): New functions.
3678         * config/v850/v850.opt: New file.
3679
3680 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
3681
3682         * config.host: Add a section for generic hosts, and a subsection
3683         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
3684         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
3685         * config/host-darwin.h: New.
3686         * config/x-darwin: New.
3687         * config/i386/host-i386-darwin.c: New.
3688         * config/i386/x-darwin: New.
3689         * config/rs6000/host-darwin.c: Include host-darwin.h.
3690         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
3691         (darwin_rs6000_gt_pch_use_address): Likewise.
3692         * config/rs6000/x-darwin: Change name of .o built, update
3693         dependencies for changes to rs6000/host-darwin.c.
3694
3695 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3696
3697         PR target/17824
3698         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
3699
3700 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
3701
3702         * tree-vect-analyze.c (vect_analyze_loop_form): Call
3703         split_loop_exit_edge instead of loop_split_edge_with.
3704
3705 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
3706
3707         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
3708         UNSPEC_SET_VSCR): New constants, used throughout.
3709         (*andc3_v4sf): New.
3710         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
3711         Replace with...
3712         (altivec_vspltis<VI_char>): ... this pattern, using
3713         a QImode const_int_operand for the immediate.
3714         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
3715         define_expands.
3716
3717 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3718
3719         PR target/17822
3720         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
3721
3722 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3723
3724         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
3725
3726 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3727
3728         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
3729         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
3730         macros as living in "this file" and not gcc.h.
3731
3732 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3733
3734         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
3735         -ftree-live_range_split.  Perhaps renamed at some point?
3736
3737 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3738
3739         PR target/20625
3740         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
3741         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
3742
3743 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3744
3745         * tree-flow.h (number_of_iterations_cond): Declaration removed.
3746         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
3747         (number_of_iterations_special): New function.
3748         (number_of_iterations_exit): Use number_of_iterations_special.
3749         Use simplify_using_outer_evolutions only at -O3.
3750         (number_of_iterations_cond, tree_simplify_using_condition,
3751         simplify_using_initial_conditions, loop_niter_by_eval,
3752         compare_trees, can_count_iv_in_wider_type_bound,
3753         simplify_using_outer_evolutions): Use fold_build.
3754
3755 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
3756
3757         * doc/install.texi (Configuration): Document --with-java-home.
3758
3759 2005-04-05  Richard Henderson  <rth@redhat.com>
3760
3761         PR target/20342
3762         PR target/20447
3763         * config/i386/i386.c (print_operand): Handle vector zeros.
3764         (ix86_split_to_parts): Handle CONST_VECTOR.
3765         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
3766         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
3767         what modes to tie for MMX and SSE registers.
3768         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
3769         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
3770         to vector modes as well.
3771         * config/i386/predicates.md (const0_operand): Handle VOIDmode
3772         properly as an input mode.
3773
3774 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3775
3776         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
3777
3778 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3779
3780         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
3781
3782 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3783
3784         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
3785         and local functions, set sse_nregs to 8 and float_in_sse.
3786         (function_arg_advance, function_arg): If float_in_sse, pass
3787         SFmode and DFmode arguments in SSE registers.
3788         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
3789
3790         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
3791         of -funit-at-a-time.
3792
3793 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3794
3795         * config/i386/i386-protos.h (ix86_function_value): Accept two
3796         arguments, like the target macro.
3797         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
3798         * config/i386/i386.c (ix86_function_value): Accept the second
3799         argument of the target macro.
3800         (ix86_function_ok_for_sibcall): Pass a function pointer to
3801         ix86_function_value.
3802         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
3803         call to ix86_value_regno).
3804         (ix86_value_regno): Add support for returning floating point values
3805         in SSE registers.
3806
3807 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3808
3809         PR tree-optimization/20076
3810         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
3811         that call __builtin_return or __builtin_apply_args.
3812
3813 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3814
3815         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
3816         Use immediate use iterator.
3817         (stmt_is_bumper_for_loop): Use immediate use iterator.
3818         * predict.c (strip_builtin_expect): Use update_stmt.
3819         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
3820         on all elements of a STATEMENT_LIST.
3821         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
3822         (bsi_remove): Remove imm_use links and mark the stmt as modified.
3823         (bsi_replace): Mark stmt as modified and the update it.
3824         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
3825         (expand_complex_libcal): Call update_stmt.
3826         (expand_complex_comparison): Call mark_stmt_modified.
3827         (expand_complex_operations_1): Call update_stmt_if_modified.
3828         (expand_vector_operations_1): Call mark_stmt_modified.
3829         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
3830         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
3831         add_immediate_use, redirect_immediate_use,
3832         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
3833         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
3834         (mark_new_vars_to_rename): Call update_stmt.
3835         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
3836         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
3837         Ignore PHI nodes.
3838         (unmodify_stmt): Delete.
3839         (update_stmt): New.  Force an update of a stmt.
3840         (update_stmt_if_modified): update a stmt if it is out of date.
3841         (get_stmt_operands): Verify stmt is NOT modified.
3842         (stmt_modified_p): Update comment.
3843         (delink_imm_use): Remove a use node from its immuse list.
3844         (link_imm_use_to_list): Link a use node to a specific list.
3845         (link_imm_use): Link a node to the correct list.
3846         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
3847         it in the correct list, if appropriate.
3848         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
3849         (relink_imm_use): Link a use node in place of another node in a list.
3850         (relink_imm_use_stmt): LInk a node in place of another node, and set
3851         the stmt pointer.
3852         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
3853         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
3854         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
3855         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
3856         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
3857         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
3858         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
3859         (has_zero_uses): New.  Return true if there are no uses of a var.
3860         (has_single_use): New.  Return true if there is only a single use of a
3861         variable.
3862         (single_imm_use): New.  Return the simgle immediate use.
3863         (num_imm_uses): New.  Return the number of immediate uses.
3864         (get_v_must_def_ops): Use is now a pointer.
3865         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
3866         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
3867         the use node.
3868         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
3869         (delink_stmt_imm_use): Delink all immuses from a stmt.
3870         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
3871         * tree-flow.h (struct dataflow_d): Delete.
3872         (immediate_use_iterator_d): New.  Immediate use iterator struct.
3873         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
3874         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
3875         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
3876         iteration.
3877         (struct stmt_ann_d): Remove dataflow_t from struct.
3878         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
3879         (if_convertible_phi_p): Use FAST immuse iterator.
3880         (if_convertible_loop_p): Don't call compute_immediate_uses.
3881         (replace_phi_with_cond_modify_expr): Call update_stmt.
3882         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
3883         update_stmt_if_modified.
3884         (rewrite_all_into_ssa): Initialize ssa operands.
3885         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
3886         compute_immediate_uses.
3887         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
3888         ssa_property is available.
3889         (execute_one_pass):  Change parameters passed to execute_todo.
3890         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
3891         (remove_ssa_form): Call fini_ssa_operands.
3892         (insert_backedge_copies): Delete call to modify_stmt.
3893         * tree-phinodes.c (make_phi_node): Initialize use nodes.
3894         (release_phi_node): Delink any use nodes before releasing.
3895         (resize_phi_node): Relink any use nodes.
3896         (remove_phi_arg_num): Delink the use node.
3897         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
3898         (remove_all_phi_nodes_for): Release phi node first.
3899         * tree-pretty-print.c (dump_generic_node): Print stmt address.
3900         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
3901         (scalarize_use, scalarize_copy): Call update_stmt.
3902         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
3903         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
3904         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
3905         (ccp_initialize): Remove call to compute_immediate_uses.
3906         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
3907         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
3908         stmts.
3909         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
3910         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
3911         (eliminate_redundant_computations): Call mark_stmt_modified.
3912         (cprop_operand): Call mark_stmt_modified.
3913         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
3914         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
3915         (dse_optimize_stmt): Use new immuse interface.
3916         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
3917         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
3918         (substitute_single_use_vars): Use new immuse interface.
3919         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
3920         and compute_immediate_uses.
3921         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
3922         interface.
3923         (rewrite_mem_refs): Call update_stmt.
3924         (determine_lsm): Remove call to compute_imm_uses and free_df.
3925         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
3926         (try_unroll_loop_completely): Call update_stmt.
3927         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
3928         (rewrite_use_compare): Call update_stmt.
3929         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
3930         (rewrite_use) : Call update_stmt.
3931         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
3932         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
3933         update_stmt.
3934         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
3935         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
3936         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
3937         use nodes.
3938         (initialize_vuse_operand): New.  Initialize a vuse operand.
3939         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
3940         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
3941         (finalize_ssa_defs): Use stmt parameter.
3942         (correct_use_link): Ensure a use node is in the correct list, and has
3943         the correct stmt pointer.
3944         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
3945         finalize_ssa_v_must_defs): Also initialize use nodes.
3946         (finalize_ssa_stmt_operands): Pass extra stmt operands.
3947         (build_ssa_operands): Seperate parsing from final operand construction.
3948         (parse_ssa_operands): New.  Parse entry point for operand building.
3949         (swap_tree_operands): New.  Swap 2 tree operands.
3950         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
3951         operands.
3952         (get_expr_operands): Call swap_tree_operands when needed.
3953         (copy_virtual_operands): Use initialize routines for virtual use ops.
3954         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
3955         (verify_abort): New.  Issue imm_use error.
3956         (verify_imm_links): New Verify imm_use links for a var.
3957         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
3958         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
3959         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
3960         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
3961         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
3962         (NULL_USE_OPERAND_P) Define.
3963         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
3964         use node.
3965         (struct vuse_operand_type): New struct.
3966         (SET_USE): Call set_ssa_use_from_ptr.
3967         (USE_STMT): Define.
3968         (PHI_ARG_INDEX_FROM_USE): Define.
3969         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
3970         argument via SET_USE, not PHI_ARG_DEF_TREE.
3971         * tree-ssa-pre.c (eliminate): Call update_stmt.
3972         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
3973         call free_df.
3974         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
3975         (nearest_common_dominator_of_uses): Use imm_use iterator.
3976         (statement_sink_location): Use imm_use iterator and interface.
3977         (execute_sink_code): Don't call compute_immediate_uses or free-df.
3978         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
3979         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
3980         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
3981         (verify_ssa): Ensure no stmt is marked modify after optimization pass
3982         if new parameter is true.
3983         (init_tree_ssa): Don't initialize operand cache here.
3984         (delete_tree_ssa): Don't destroy operand cache here.
3985         (propagate_into_addr): Pass in a use pointer, return true if anything
3986         was changed.
3987         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
3988         (check_phi_redundancy): Use imm_use iterator.
3989         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
3990         free_df.
3991         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
3992         (release_ssa_name): Delink node and all elements in its imm_use list.
3993         * tree-tailcall.c (adjust_return_value): Call update_stmt.
3994         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
3995         * tree-vectorizer.c (need_imm_uses_for): Delete.
3996         (vectorize_loops): Dont call compute_immediate_uses or free_df.
3997         * tree.h (struct ssa_imm_use_d): Define.
3998         (SSA_NAME_IMM_USE_NODE): Define.
3999         (struct tree_ssa_name): Add imm_use node.
4000         (PHI_DF): Delete.
4001         (PHI_ARG_IMM_USE_NODE): Define.
4002         (struct phi_arg_d): Add imm_use node.
4003         (struct tree_phi_node): Remove struct dataflow_d element.
4004         (TDF_STMTADDR): Define.
4005
4006 2005-04-05  Dale Johannesen  <dalej@apple.com>
4007
4008         * doc/invoke.texi (Optimization Options):  Remove
4009         duplicate -fcse-follow-jumps.  Add -fweb.
4010         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
4011         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
4012
4013 2005-04-05  Per Bothner  <per@bothner.com>
4014
4015         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
4016         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
4017         (warn_uninit): Get EXPR_LOCUS from context now instead.
4018         This fixes a USE_MAPPED_LOCATION testsuite failure.
4019
4020         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
4021
4022 2005-04-05  Per Bothner  <per@bothner.com>
4023
4024         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
4025         of the artification 'return 0' in main() to BUILTINS_LOCATION.
4026         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
4027         before warning.
4028
4029 2004-04-05  Devang Patel  <dpatel@apple.com>
4030
4031         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
4032         (lhsr<mode>3): ... new name.
4033         (altivec_vsra<VI_char>): Rename to ..
4034         (ashr<mode>3): ... new name.
4035         * config/rs6000/rs6000.c (builtin_description): Rename shift
4036         operations.
4037
4038 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
4039
4040         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
4041         gen_lowpart_for_combine.
4042         * cse.c (gen_lowpart_if_possible): Move...
4043         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
4044         gen_lowpart_SUBREG.
4045         (gen_lowpart_no_emit_general): Use it.
4046
4047 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4048
4049         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
4050         overriding.
4051
4052 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
4053
4054         * system.h: Fix typo.
4055
4056 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
4057
4058         * config/bfin/bfin-modes.def: New file.
4059         * config/bfin/bfin-protos.h: New file.
4060         * config/bfin/bfin.c: New file.
4061         * config/bfin/bfin.h: New file.
4062         * config/bfin/bfin.md: New file.
4063         * config/bfin/bfin.opt: New file.
4064         * config/bfin/crti.s: New file.
4065         * config/bfin/crtn.s: New file.
4066         * config/bfin/elf.h: New file.
4067         * config/bfin/lib1funcs.asm: New file.
4068         * config/bfin/predicates.md: New file.
4069         * config/bfin/t-bfin: New file.
4070         * config/bfin/t-bfin-elf: New file.
4071         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
4072         Document new attributes.
4073         (interrupt, interrupt_handler, saveall): Update documentation for
4074         these attributes.
4075         * doc/install.texi (Specific): Add entry for the Blackfin.
4076         * doc/invoke.texi (Blackfin Options): New section.
4077         * doc/md.texi (Blackfin family): New section to document constraints.
4078         * config.gcc: Add bfin*-* and bfin*-elf configurations.
4079
4080 2005-04-05  Olivier Hainque  <hainque@adacore.com>
4081
4082         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
4083         match what the system unwinder expects.
4084         * config/mips/mips.c (mips_frame_set): If we're saving the return
4085         address register and the dwarf return address column number differs
4086         from the hard register number, adjust the note reg to refer to the
4087         former.
4088
4089 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
4090
4091         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
4092         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
4093         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
4094         (processor_type): New enum.
4095         (mn10300_processor): New variable.
4096         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
4097         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
4098         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
4099         (PROCESSOR_DEFAULT): New macro.
4100         * config/mn10300/mn10300.c (mn10300_processor): New variable.
4101         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4102         (mn10300_handle_option, mn10300_override_options): New functions.
4103         * config/mn10300/mn10300.opt: New file.
4104
4105 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4106             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
4107
4108         PR tree-optimization/19903
4109         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
4110         that don't fit in their type after conversion.
4111
4112 2005-04-05  Uros Bizjak <uros@kss-loka.si>
4113
4114         PR target/20421
4115         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
4116         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
4117         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
4118         flag here. Implement using define_insn_and_split.
4119         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
4120         (frndintxf2_mask_pm_i387): New insn patterns.
4121         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
4122         Do not set ix86_optimize_mode_switching flag.
4123         (ceilsf2, ceildf2, ceilxf2): Same.
4124         (btruncsf2, btruncdf2, btruncxf2): Same.
4125         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
4126
4127 2005-04-05  Ian Lance Taylor  <ian@airs.com>
4128
4129         PR debug/9963
4130         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
4131         i386_pe_record_external_function.
4132         (i386_pe_record_external_function): Update declaration.
4133         * config/i386/winnt.c (struct extern_list): Add decl field.
4134         (i386_pe_record_external_function): Add decl parameter.
4135         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
4136         identifier.
4137         * config/i386/i386-protos.h (i386_pe_record_external_function):
4138         Update declaration.
4139
4140 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
4141
4142         * config/m68k/m68k-protos.h: Add a prototype for
4143         valid_dbcc_comparison_p_2.
4144         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
4145         extend_operator, const_uint32_operand, const_sint32_operand,
4146         general_src_operand, nonimmediate_src_operand,
4147         memory_src_operand, post_inc_operand, pre_dec_operand,
4148         pcrel_address): Move to predicates to predicates.md.
4149         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
4150         * config/m68k/m68k.md: Include predicates.md.
4151         * config/m68k/predicates.md: New.
4152
4153 2005-04-04  Roger Sayle  <roger@eyesopen.com>
4154
4155         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
4156
4157         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
4158
4159 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4160
4161         * c-typeck.c (struct c_switch): Rename switch_stmt field to
4162         switch_expr.
4163         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
4164         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
4165         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
4166         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
4167         * c-common.c (c_do_switch_warnings_1): New static function broken
4168         out of c_do_switch_warnings.
4169         (c_do_switch_warnings): Call c_do_switch_warnings_1.
4170         (c_do_switch_expr_warnings): New function.
4171         * c-common.h (c_do_switch_expr_warnings): Declare.
4172
4173 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
4174             Daniel Jacobowitz  <dan@codesourcery.com>
4175
4176         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
4177         trapping divide.
4178         * rtlanal.c (may_trap_p): Same.
4179
4180 2005-04-04  Dale Johannesen  <dalej@apple.com>
4181
4182         * ChangeLog:  remove reference to ChangeLog.12.
4183
4184 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
4185
4186         CRIS epilogue as RTL.
4187         * config/cris/cris.md: Change all 0 in unspec 0 to
4188         CRIS_UNSPEC_PLT.
4189         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
4190         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
4191         patterns.
4192         ("return"): Change to define_expand.  Call cris_expand_return for
4193         actual expansion.
4194         ("*return_expanded"): New pattern.
4195         ("epilogue"): New define_expand.
4196         * config/cris/cris.h (PREDICATE_CODES): Add
4197         cris_load_multiple_op.
4198         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
4199         type.
4200         (enum cris_retinsn_type): New.
4201         (struct machine_function): New member return_type.
4202         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
4203         (cris_target_asm_function_epilogue): Remove, moving RTLified
4204         contents to...
4205         (cris_expand_epilogue): New function.
4206         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
4207         (cris_gen_movem_load, cris_load_multiple_op)
4208         (cris_return_address_on_stack_for_return, cris_expand_return): New
4209         functions.
4210         (cris_target_asm_function_prologue)
4211         (cris_initial_frame_pointer_offset): Call
4212         cris_reg_saved_in_regsave_area instead of complicated expression.
4213         Call cris_return_address_on_stack instead of an expression.
4214         (cris_print_operand) <case 'o', case 'O'>: New cases.
4215         (cris_return_address_on_stack): Change return-type to bool.
4216         (cris_simple_epilogue): Ditto.  Return false if registers are
4217         saved.
4218         * config/cris/cris-protos.h (cris_simple_epilogue)
4219         (cris_return_address_on_stack): Adjust prototype return type.
4220         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
4221         (cris_return_address_on_stack_for_return): New prototypes.
4222
4223 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4224
4225         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
4226         gpr_or_int12_operand.
4227
4228         * config/frv/frv-protos.h: Add a prototype to
4229         frv_legitimate_memory_operand and frv_const_unspec_p.
4230         (frv_unspec): Move from frv.c.
4231         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
4232         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
4233         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
4234         gpr_or_fpr_operand, gpr_or_int12_operand,
4235         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
4236         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
4237         int6_operand, int5_operand, uint5_operand, uint4_operand,
4238         uint1_operand, int_2word_operand, uint16_operand,
4239         upper_int16_operand, integer_register_operand,
4240         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
4241         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
4242         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
4243         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
4244         move_destination_operand, movcc_fp_destination_operand,
4245         frv_function_symbol_referenced_p, move_source_operand,
4246         condexec_dest_operand, condexec_source_operand,
4247         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
4248         const_unspec_operand, gpr_or_memory_operand,
4249         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
4250         icc_operand, fcc_operand, cc_operand, icr_operand,
4251         fcr_operand, cr_operand, call_operand, sibcall_operand,
4252         symbolic_operand, relational_operator,
4253         integer_relational_operator, float_relational_operator,
4254         ccr_eqne_operator, minmax_operator,
4255         condexec_si_binary_operator, condexec_si_media_operator,
4256         condexec_si_divide_operator, condexec_si_unary_operator,
4257         condexec_sf_conv_operator, condexec_sf_add_operator,
4258         condexec_memory_operand, intop_compare_operator, acc_operand,
4259         even_acc_operand, quad_acc_operand, accg_operand: Move to
4260         predicates.md.
4261         * config/frv/frv.h (PREDICATE_CODES): Remove.
4262         * config/frv/frv.md: Include predicates.md.
4263         * config/frv/predicates.md: New.
4264
4265 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4266
4267         PR target/19537
4268         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
4269         * tree-ssa-loop-ivopts.c: Include langhooks.h.
4270         (add_standard_iv_candidates_for_size): New function, extracting code
4271         from add_standard_iv_candidates and parameterizing it by type size.
4272         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
4273
4274 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4275
4276         * system.h (GCOV_SIZE_TYPE): Unposion.
4277         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
4278         (GCOV_TYPE_SIZE): ...this new macro.
4279         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
4280         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
4281         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
4282         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
4283         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
4284         instead of unsigned_intSI_type_node.
4285         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
4286         (rtl_gen_one_value_profiler_no_edge_manipulation)
4287         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
4288         * value-prof.c: Include coverage.h.
4289
4290 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
4291             Diego Novillo <dnovillo@redhat.com>
4292
4293         Fix PR tree-optimization/20703
4294         Fix PR tree-optimization/20725
4295
4296         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
4297         (create_expression_by_pieces): Ditto.
4298         (valid_in_set): Ditto. Also handle tcc_declaration.
4299         (find_or_generate_expression): Handle comparison class.
4300         (insert_into_preds_of_block): Ditto.
4301         (insert_aux): Ditto.
4302         (create_value_expr_from): Handle comparison class, recursively
4303         handle reference nodes.
4304         (compute_avail): Handle comparison classes, rewrite a little cleaner.
4305         (execute_pre): Fix spacing.
4306         (do_fre): Renamed to execute_fre.
4307
4308 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4309
4310         * doc/invoke.texi (SPARC options): Document that
4311         -mlittle-endian is not supported on Linux either.
4312
4313 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4314
4315         PR target/4198
4316         PR target/12027
4317         * config.gcc (Obsolete configurations): Remove
4318         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
4319         (sparclite-*-coff*): Delete.
4320         (sparclite-*-elf*): Likewise.
4321         (sparc86x-*-elf*): Likewise.
4322         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
4323         * config/sparc/lite.h: Delete.
4324         * config/sparc/litecoff.h: Likewise.
4325         * config/sparc/liteelf.h: Likewise.
4326         * config/sparc/sp86x-elf.h: Likewise.
4327         * config/sparc/t-sparclite: Likewise.
4328         * config/sparc/t-sp86x: Likewise.
4329
4330 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
4331
4332         * config/s390/s390-protos.h: (s390_comparison,
4333         s390_alc_comparison, s390_slb_comparison, const0_operand,
4334         consttable_operand, larl_operand, s_operand,
4335         shift_count_operand, bras_sym_operand, load_multiple_operation,
4336         store_multiple_operation, s390_plus_operand): Remove prototypes.
4337         (s390_legitimate_address_without_index_p): New prototype.
4338         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
4339         to s390.h.
4340         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
4341         const0_operand, consttable_operand, larl_operand, s_operand,
4342         shift_count_operand, bras_sym_operand, load_multiple_operation,
4343         store_multiple_operation, s390_plus_operand): Move to
4344         predicates.md.
4345         (check_mode): Remove.
4346         (s390_branch_condition_mask): Remove 'static'. Move prototype to
4347         s390-protos.h.
4348         (s390_legitimate_address_without_index_p): New.
4349         * config/s390/s390.h (PREDICATE_CODES): Remove.
4350         * config/s390/s390.md: Include predicates.md.
4351         * config/s390/predicates.md: New.
4352
4353 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4354
4355         PR target/20446
4356         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
4357         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
4358         (NEED_INDICATE_EXEC_STACK): Define to 1.
4359         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
4360         (NEED_INDICATE_EXEC_STACK): Define to 1.
4361         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
4362         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
4363         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
4364         (pic_helper_emitted_p): New global.
4365         (emit_pic_helper): New function extracted from...
4366         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
4367         Do not call emit_pic_helper if delay_pic_helper is true.
4368         (sparc_expand_prologue): Pass 'false' to load_pic_register.
4369         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
4370         (sparc_file_end): New function.
4371
4372 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4373
4374         * config/mcore/mcore-protos.h: Remove the prototypes for
4375         mcore_arith_reg_operand, mcore_general_movsrc_operand,
4376         mcore_general_movdst_operand, mcore_reload_operand,
4377         mcore_arith_J_operand, mcore_arith_K_operand,
4378         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
4379         mcore_arith_K_S_operand, mcore_arith_imm_operand,
4380         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4381         mcore_literal_K_operand, mcore_addsub_operand,
4382         mcore_compare_operand, mcore_load_multiple_operation,
4383         mcore_store_multiple_operation, mcore_call_address_operand.
4384         Add a prototype for const_ok_for_mcore.
4385         * config/mcore/mcore.c (mcore_call_address_operand,
4386         mcore_general_movsrc_operand, mcore_general_movdst_operand,
4387         mcore_arith_reg_operand, mcore_reload_operand,
4388         mcore_arith_J_operand, mcore_arith_K_operand,
4389         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
4390         mcore_arith_M_operand, mcore_arith_imm_operand,
4391         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4392         mcore_literal_K_operand, mcore_addsub_operand,
4393         mcore_compare_operand, mcore_load_multiple_operation,
4394         mcore_store_multiple_operation): Move to predicates.md.
4395         (const_ok_for_mcore): Export.
4396         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
4397         * config/mcore/mcore.md: Include predicates.md.
4398         * config/mcore/predicates.md: New.
4399
4400         * config/mcore/predicates.md: Fix a comment typo.
4401
4402 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4403             Adrian Straetling  <straetling@de.ibm.com>
4404
4405         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
4406         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
4407         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
4408         attribute.
4409         ("imul"): Removed from "type" attribute.
4410         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
4411         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
4412         Changed type to imulsi.
4413         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
4414
4415 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4416
4417         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
4418         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
4419         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
4420         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
4421         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
4422         (TARGET_SWITCHES, mcore_stack_increment_string)
4423         (TARGET_OPTIONS): Delete.
4424         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
4425         than *_BIT constants.
4426         (TARGET_8ALIGN): #undef old definition before redefining to 1.
4427         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
4428         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
4429         (mcore_override_options): Delete mcore_stack_increment code.
4430         Change use of M340_BIT to MASK_M340.
4431         * config/mcore/mcore.opt: New file.
4432
4433 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4434
4435         * config/arm/arm.c (replace_symbols_in_block): Remove static
4436         function.
4437
4438 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4439
4440         * config/fr30/fr30-protos.h: Remove the prototypes for
4441         stack_add_operand, add_immediate_operand,
4442         high_register_operand, low_register_operand, call_operand,
4443         di_operand, and nonimmediate_di_operand.
4444         * config/fr30/fr30.c (stack_add_operand,
4445         add_immediate_operand, high_register_operand,
4446         low_register_operand, call_operand, di_operand,
4447         nonimmediate_di_operand): Move to predicates.md.
4448         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
4449         * config/fr30/fr30.md: Include predicates.md.
4450         * config/fr30/predicates.md: New.
4451
4452         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
4453         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
4454         mcore_call_address_operand.
4455
4456         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
4457         general_movsrc_operand.
4458
4459 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
4460
4461         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
4462         after freeing.
4463
4464 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
4465
4466         PR target/14812
4467         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
4468         a negated value.
4469
4470 2005-04-04  Richard Henderson  <rth@redhat.com>
4471             Jakub Jelinek  <jakub@redhat.com>
4472
4473         PR rtl-optimization/16104
4474         * fold-const.c (fold_unary): Fix folding of vector conversions.
4475
4476 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4477
4478         * config.gcc (xstormy16-*-elf): Set extra_options.
4479         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
4480         * config/stormy16/stormy16.opt: New file.
4481
4482 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4483
4484         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
4485         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
4486         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
4487         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
4488         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
4489         (TARGET_UNIX_ASM): Delete.
4490         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
4491         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
4492         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
4493         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4494         * config/pdp11/pdp11.opt: New file.
4495
4496 2005-04-03  Roger Sayle  <roger@eyesopen.com>
4497             Alexandre Oliva  <aoliva@redhat.com>
4498
4499         PR c++/19199
4500         * fold-const.c (non_lvalue): Split tests into...
4501         (maybe_lvalue_p): New function.
4502         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
4503         C++ front-end prior to lowering into gimple form.
4504
4505 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4506
4507         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
4508         BUILT_IN_STRNCASECMP): New.
4509         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
4510         and strndup.
4511
4512 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
4513
4514         PR target/14812
4515         * arm.md (addsi3_compare0_for_combiner): Delete.
4516         (addsi3_compare0_scratch_for_combiner): Delete.
4517         (cmpsi_neg_shiftsi): Delete.
4518         (compare_negsi_si): New pattern.
4519         (cmpsi_negshiftsi_si): New pattern.
4520         (negated_cbranchsi4): Restrict to equality_operator.
4521
4522         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
4523         template.
4524
4525 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4526
4527         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
4528         Fix comment typos.
4529
4530         * doc/install.texi: Fix a typo.
4531
4532 2005-04-03  Steven Bosscher  <stevenb@suse.de>
4533
4534         PR middle-end/20648
4535         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
4536         a computed goto if the edge to the computed goto block has
4537         incoming abnormal edges.  Clarify how the function works.
4538
4539 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
4540
4541         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
4542         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
4543         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
4544         hash_scan_set, reg_set_between_after_reload_p,
4545         reg_used_between_after_reload_p, get_avail_load_store_reg,
4546         eliminate_partially_redundant_load): Likewise.
4547         * postreload.c (reload_cse_simplify_set,
4548         reload_combine_note_use): Likewise.
4549         * predict.c (predict_insn, expected_value_to_br_prob,
4550         propagate_freq, expensive_function_p): Likewise.
4551         * print-rtl.c (print_rtx): Likewise.
4552         * profile.c (instrument_edges, instrument_values,
4553         compute_branch_probabilities, branch_prob, union_groups,
4554         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
4555         * protoize.c (in_system_include_dir, file_could_be_converted,
4556         file_normally_convertible, gen_aux_info_file, seek_to_line,
4557         do_cleaning): Likewise.
4558         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
4559         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
4560         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4561
4562 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4563
4564         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
4565         * modulo-sched.c (undo_replace_buff_elem): New structure.
4566         (kernel_number_of_cycles, ps_unschedule_node,
4567         undo_generate_reg_moves,free_undo_replace_buff,
4568         undo_permute_partial_schedule,  loop_single_full_bb_p,
4569         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
4570         build_loops_structure, get_sched_window): New.
4571         (generate_reg_moves): Return undo_replace_buff_elem and other
4572         fixes.
4573         (generate_prolog_epilog): Remove old loop versioning.
4574         (sms_schedule): Use loop information and loop_version.
4575         (sms_schedule_by_order): Split part of it to get_sched_window.
4576         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
4577         cfg_layout_finalize and free_dominance_info before/after SMS.
4578
4579 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4580
4581         * cfghooks.c (lv_flush_pending_stmts,
4582         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
4583         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
4584         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
4585         lv_add_condition_to_bb,
4586         lv_adjust_loop_header_phi, extract_cond_bb_edges,
4587         flush_pending_stmts): New in cfg_hooks structure.
4588         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
4589         extract_cond_bb_edges, lv_adjust_loop_header_phi,
4590         lv_add_condition_to_bb): New declarations.
4591         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
4592         bool.
4593         (loop_version): Declare.
4594         * cfgloopmanip.c (cfghooks.h): Include.
4595         (duplicate_loop_to_header_edge): Change return type to bool.
4596         (loop_version, lv_adjust_loop_entry_edge): Move here.
4597         * cfgrtl.c (cfgloop.h): Include.
4598         (rtl_verify_flow_info_1): Fix.
4599         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
4600         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
4601         initialization.
4602         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
4603         tree_lv_add_condition_to_bb): New.
4604         (tree_cfg_hooks): Add new hooks to initialization.
4605         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
4606         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
4607
4608 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4609
4610         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
4611         xstormy16_below100_or_register,
4612         xstormy16_splittable_below100_or_register, and
4613         nonimmediate_nonstack_operand.
4614
4615         * config/stormy16/stormy16-protos.h: Remove the prototypes for
4616         xstormy16_ineqsi_operator, equality_operator,
4617         inequality_operator, shift_operator,
4618         xstormy16_below100_operand, xstormy16_below100_or_register,
4619         xstormy16_splittable_below100_or_register,
4620         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
4621         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
4622         equality_operator, inequality_operator,
4623         xstormy16_below100_operand, xstormy16_below100_or_register,
4624         xstormy16_splittable_below100_or_register,
4625         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
4626         nonimmediate_nonstack_operand, shift_operator): Move to
4627         predicates.md.
4628         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
4629         * config/stormy16/stormy16.md: Include predicates.md.
4630         * config/stormy16/predicates.md: New.
4631
4632 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4633
4634         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
4635         small_int, large_int, reg_or_0_operand, simple_memory_operand,
4636         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
4637         move_operand, power_of_2_operand): Move to predicates.md.
4638         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
4639         PREDICATE_CODE): Remove.
4640         * config/iq2000/iq2000.md: Include predicates.md.
4641         * config/iq2000/predicates.md: New.
4642
4643 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
4644
4645         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
4646         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
4647         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
4648         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
4649         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
4650         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
4651         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
4652         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4653         (TARGET_M68HC11): Delete.
4654         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
4655         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
4656         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
4657         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4658         (nb_soft_regs): Delete.
4659         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
4660         (m68hc11_override_options): Remove the code that caters for MASK_M6811
4661         and MASK_M6812 being set simultaneously.  Change the code that sets
4662         the default m68hc11_soft_reg_count to use integers instead of strings.
4663         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
4664         m68hc11_soft_reg_count (which now has an int type) as the number
4665         of soft registers.
4666         * config/m68hc11/m68hc11.opt: New file.
4667
4668 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4669
4670         * config/fr30/fr30.h (PREDICATE_CODES): Remove
4671         fp_displacement_operand, sp_displacement_operand.
4672
4673         * config/m68hc11/m68hc11-protos.h: Add a prototype for
4674         m68hcc_auto_inc_p.
4675         Remove the prototypes for tst_operand, cmp_operand,
4676         stack_register_operand, d_register_operand,
4677         hard_addr_reg_operand, splitable_operand,
4678         m68hc11_logical_operator, m68hc11_arith_operator,
4679         m68hc11_non_shift_operator, m68hc11_shift_operator,
4680         m68hc11_unary_operator, m68hc11_eq_compare_operator,
4681         non_push_operand, hard_reg_operand, and
4682         reg_or_some_mem_operand.
4683         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
4684         extern.
4685         (tst_operand, cmp_operand, non_push_operand,
4686         splitable_operand, reg_or_some_mem_operand,
4687         stack_register_operand, d_register_operand,
4688         hard_addr_reg_operand, hard_reg_operand,
4689         m68hc11_eq_compare_operator, m68hc11_logical_operator,
4690         m68hc11_arith_operator, m68hc11_non_shift_operator,
4691         m68hc11_shift_operator, m68hc11_unary_operator): Move to
4692         predicates.md.
4693         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
4694         * config/m68hc11/m68hc11.md: Include predicates.md.
4695         * config/m68hc11/predicates.md: New.
4696
4697 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4698
4699         PR debug/19345
4700         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
4701         change checked in along with 2005-03-03's patch for debug/20253.
4702         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
4703         (remap_decl): Insert type decl in map earlier.
4704
4705 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4706
4707         PR tree-optimization/20640
4708         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
4709         post-dominator if it has phi nodes.
4710         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
4711         before dead statements.
4712
4713 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4714
4715         PR middle-end/20491
4716         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
4717
4718 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4719
4720         PR rtl-optimization/20290
4721         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
4722         in every iteration if the entry point is the exit test.
4723
4724 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
4725
4726         * config/cris/cris.md (attribute "length"): Define.
4727
4728 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
4729
4730         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
4731         (word_offset_memref_operand): New.
4732         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
4733         (indexed_or_indirect_operand): Delete.
4734         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
4735         (indexed_or_indirect_operand): Delete.
4736
4737         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
4738
4739         PR 20650
4740         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
4741         a register.
4742
4743         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
4744         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
4745
4746 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4747
4748         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
4749
4750 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4751
4752         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
4753         (rus, prus): Remove static variables.
4754         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
4755         (process_command): Permit report_times and use_pipes together.
4756
4757 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4758
4759         * c-decl.c (validate_proto_after_old_defn): Look at
4760         TYPE_MAIN_VARIANT of argument types.
4761
4762 2005-04-01  Paul Brook  <paul@codesourcery.com>
4763
4764         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
4765         (arm_output_function_epilogue): Allow call_via_SP.
4766         (thumb_call_via_reg, arm_file_end): Ditto.
4767         * config/arm/arm.h (struct machine_function): Include space for SP.
4768         (thumb_call_via_label): Update declaration.
4769
4770 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4771
4772         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
4773         doing a peephole optimization, once again put any notes in the
4774         proper position.
4775
4776 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4777
4778         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
4779
4780 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4781
4782         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
4783         (block_alloc, find_free_reg): Likewise.
4784         * loop-doloop.c (doloop_modify): Likewise.
4785         * loop-invariant.c (record_use): Likewise.
4786         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
4787         get_iv_value, canon_condition, eliminate_implied_condition,
4788         eliminate_implied_condition, simplify_using_initial_values,
4789         shorten_into_mode, canonicalize_iv_subregs,
4790         iv_number_of_iterations): Likewise.
4791         * loop-unroll.c (expand_var_during_unrolling): Likewise.
4792         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
4793         unswitch_loop): Likewise.
4794         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
4795         move_movables, replace_call_address, find_and_verify_loops,
4796         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
4797         record_giv, final_giv_value, general_induction_var,
4798         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
4799         loop_giv_dump): Likewise.
4800
4801         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
4802         GCOV_CHECK_WRITING): Remove.
4803         (gcov_position, gcov_rewrite): Use gcc_assert.
4804         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
4805         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
4806         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
4807         gcc_assert.
4808
4809 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4810
4811         * tree-inline.c: Fix a typo.
4812
4813 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4814
4815         * configure.ac (enable-checking): Explicitly set all variables for
4816         collective switch values.  Alphabetize variables. Rename
4817         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
4818         synonym for 'no'.
4819         * doc/install.texi (enable-checking): Update documentation.
4820         * configure: Rebuilt.
4821
4822 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4823
4824         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
4825         possible.
4826
4827 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4828
4829         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
4830         Also reject cases where this pattern will cause load delay stalls
4831         unless optimizing for size and it will produce a shorter sequence.
4832         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
4833         variants to avoid pre-adjusting the base when possible.
4834
4835 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4836
4837         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
4838         the frame and argument pointers.
4839         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
4840         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
4841         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
4842         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
4843         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
4844         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
4845
4846 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
4847
4848         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
4849         with entry for selectany attribute.
4850         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
4851         Declare.
4852         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
4853         (i386_pe_asm_named_section): Handle sections generated by
4854         selectany attribute.
4855         * doc/extend.texi (selectany): Document attribute.
4856
4857 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
4858             Jan Hubicka  <jh@suse.cz>
4859
4860         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
4861         to fix addresses involving EBP and ESP.
4862         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
4863         for SUBREGed registers.
4864         (legitimate_address_p): Accept SUBREGed registers.
4865
4866 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
4867
4868         PR c++/19406
4869         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
4870         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
4871         for FIELD_DECLs.
4872
4873 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4874
4875         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
4876
4877 2005-04-01  James E Wilson  <wilson@specifixinc.com>
4878
4879         PR c++/20505
4880         * dwarf2out.c (rtl_for_decl_init): New function.
4881         (rtl_for_decl_location): Extracted from here.
4882         (tree_add_const_value_attribute): Call rtl_for_decl_init and
4883         add_const_value_attribute.  Delete initializer_constant_valid_p call.
4884
4885 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4886
4887         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
4888         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
4889         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
4890         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
4891         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
4892         config/i386/i386.md, config/rs6000/predicates.md,
4893         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
4894         config/s390/s390.c, config/stormy16/stormy16.c,
4895         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
4896         typos.
4897
4898 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4899
4900         PR c/17855
4901         * gimplify.c (gimplify_expr): Create a temporary for lvalue
4902         COND_EXPR and CALL_EXPR.
4903
4904 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4905
4906         PR target/20632
4907         * genautomata.c (first_cycle_unit_presence): Check all alternative
4908         states for unit presence.
4909
4910         * doc/md.texi: Remove remark about impossibility to query unit
4911         presence in non nondeterministic automaton state.
4912
4913         * config/ia64/ia64.c (get_template): Change order of unit querying.
4914
4915 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4916
4917         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
4918         obsolete comment.
4919
4920 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
4921
4922         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
4923         flag for edges outside any loops.
4924
4925 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
4926
4927         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
4928
4929 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4930
4931         * tree-ssa-alias.c: Follow spelling conventions.
4932         * doc/tree-ssa.texi: Fix a typo.
4933
4934 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
4935
4936         * postreload-gcse.c: Include target.h.
4937         (gcse_after_reload_main): Return early if we cannot modify jumps.
4938         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
4939
4940 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
4941
4942         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
4943         expensive operations.
4944
4945 2005-03-31  Ian Lance Taylor  <ian@airs.com>
4946
4947         * collect2.c (lderrout): New variable.
4948         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
4949         if it is set, to stderr.
4950         (handler): Unlink lderrout if it is set.
4951         (dump_file): Add "to" parameter.  Change all callers.
4952         (main): Initialize lderrout.
4953         (collect_execute): Add errname parameter.  Change all callers.
4954         Rename redir parameter to outname.  Never pass
4955         PEX_STDERR_TO_STDOUT to pex_run.
4956         * collect2.h (collect_execute, dump_file): Update declarations.
4957         * tlink.c (tlink_execute): Add errname parameter.  Change all
4958         callers.
4959         (do_tlink): Check lderrout as well as ldout.
4960
4961 2005-03-31  Caroline Tice  <ctice@apple.com>
4962
4963         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
4964         (bb-reorder.o): Add errors.h to list of requirements.
4965         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
4966         profiledbootstrap flags.
4967         * bb-reorder.c (errors.h): Add new include.
4968         (struct bbro_basic_block_data_def): Add new field, in_trace.
4969         (add_unlikely_executed_notes):  Remove function.
4970         (mark_bb_for_unlikely_executed_section): Remove function.
4971         (insert_section_boundary_note): New function.
4972         (verify_hot_cold_block_grouping): New function.
4973         (push_to_next_round_p): Remove variables and tests that push all
4974         cold blocks to last round.
4975         (find_traces): Remove code that added extra round of trace finding
4976         when doing partitioning.
4977         (find_traces_1_round) :  Remove variable last_round;  add code to
4978         update new struct field, in_trace; correct trace_length where it was
4979         incorrect before (after call to copy_bb); change code that pushed all
4980         cold blocks to last round. Instead verify that all blocks going into
4981         a trace belong in the same partition.
4982         (connect_traces): Modify to connect the traces in two passes, if the
4983         function contains both hot and cold blocks.  The first pass connects
4984         all the traces for blocks in the partition that the first block in
4985         the function belongs to; the second pass connnects all the traces
4986         containing blocks that belong in the other partition.
4987         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
4988         code that automatically put the first block in a function into the
4989         hot partition if the function had any hot blocks.
4990         (fix_crossing_unconditional_branches): Check number of succ edges
4991         before attempting to get one.
4992         (fix_edges_for_rarely_executed_code):  Update comment describing
4993         function.
4994         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
4995         remove call to add_unlikely_executed_notes; add call to
4996         verify_hot_cold_block_grouping.
4997         (duplicate_computed_gotos): Don't change computed goto if it's a
4998         crossing edge.
4999         (partition_hot_cold_basic_blocks):  Update function comment.
5000         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
5001         condition.
5002         (try_forward_edges): Likewise.
5003         (merge_blocks_move_predecessor_nojumps): Likewise.
5004         (merge_blocks_move_successor_nojumps): Likewise.
5005         (merge_blocks_move): Likewise.
5006         (try_crossjump_bb): Likewise.
5007         * cfglayout.c (update_unlikely_executed_notes): Remove function.
5008         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
5009         notes to cold bb's; remove call to update_unlikely_executed_notes.
5010         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
5011         NOTE_INSN_SWITCH_TEXT_SECTIONS.
5012         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
5013         function declaration.
5014         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
5015         from consideration.
5016         (rtl_can_merge_blocks): Remove redundancy from condition.
5017         (try_redirect_by_replacing_jump): Likewise.
5018         (force_nonfallthru_and_redirect): Remove code for adding
5019         UNLIKELY_EXECUTED_CODE notes to cold bb's.
5020         (commit_one_edge_insertion): Likewise.
5021         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
5022         * dbxout.c (FORCE_TEXT): Replace function_section with
5023         current_function_section.
5024         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
5025         function, switch_text_section.
5026         (struct xcoff_debug): Likewise.
5027         (dbxout_function_end): Add code to put out label diffs for both
5028         hot and cold sections.
5029         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
5030         for new debug_hooks funciton, switch_text_section..
5031         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
5032         switch_text_section.
5033         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
5034         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
5035         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
5036         dw_fde_switched_sections.
5037         (output_call_frame_info):  Add test to see if function switches text
5038         sections in the middle; if so, use appropriate extra hot and cold
5039         section labels to compute size deltas for the hot and cold sections.
5040         (dwarf2out_begin_prologue): Add code to initialize new fields in
5041         dw_fde_struct.
5042         (dwarf2out_switch_text_section): New function (invoked through
5043         debug_hook); updates new fields in dw_fde_struct appropriately and
5044         increments separate_line_info_table_in_use.
5045         (dwarf2_debug_hooks): Initialize switch_text_section function to be
5046         dwarf2out_switch_text_section.
5047         (struct var_loc_node): Add new field, section_label.
5048         (output_aranges): Add code to check whether in hot or cold section and
5049         use the appropriate label in calculating deltas.
5050         (output_ranges): Likewise.
5051         (output_line_info): Add code to check which section we're in and
5052         use appropriate hot/cold label.
5053         (add_location_or_constant_value_attribute): Likewise.
5054         (gen_subprogam_die): Modify arange attributes to use correct labels.
5055         (dwarf2out_begin_block): Change call to function_section into call to
5056         current_function_section.
5057         (dwarf2out_end_block): Likewise.
5058         (dwarf2out_source_line): Likewise.
5059         (dwarf2out_var_location): Add code to check whether in hot or cold
5060         section and use the appropriate label.
5061         * except.c (output_function_exception_table): Change call to
5062         function_section into call to current_function_section.
5063         * final.c (profile_function): Likewise.
5064         (scan_ahead_for_unlikely_executed_note): Remove function.
5065         (final_scan_insn):  Remove calls to
5066         scan_ahead_for_unlikely_executed_note, and related code for switching
5067         to cold section, except for the single time
5068         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
5069         debug_hooks->switch_text_sections; replace appropriate calls to
5070         function_section with calls to current_function_section.
5071         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
5072         test_bb to condition.
5073         (find_if_case_2): Likewise.
5074         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
5075         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
5076         * opts.c (decode_options): Change warning about hot/cold partitioning
5077         with exceptionss to inform (so as not to cause bootstrap failures);
5078         remove warning about partitioning with DWARF debug info.
5079         * output.h (current_function_section): Add new function decl.
5080         (insert_section_boundary_note): Likewise.
5081         (enum in_section): Move this declaration here from varasm.c.
5082         (unlikely_section_label): Likewise.
5083         (unlikely_text_section_name): Likewise.
5084         (last_text_section_name): New global variable.
5085         (last_text_section): Likewise.
5086         (hot_section_label): Likewise.
5087         (hot_section_end_label): Likewise.
5088         (cold_section_end_label): Likewise.
5089         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
5090         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
5091         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
5092         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
5093         insn from consideration.
5094         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
5095         switch_text_section.
5096         * varasm.c (basic-block.h): Add new include.
5097         (unlikely_section_label_printed): Remove global variable.
5098         (unlikely_section_label): Make global variable not be static any more.
5099         (unlikely_text_section_name): Likewise.
5100         (hot_section_end_label): New global variable (not static)
5101         (first_function_block_is_cold): Likewise.
5102         (hot_section_label): Likewise.
5103         (cold_section_end_label): Likewise..
5104         (last_text_section): New global variable, not static.
5105         (last_text_section_name): New global variable, not static.
5106         (initialize_cold_section_name): New function.
5107         (enum in_section): Move declaration to output.h.
5108         (text_section): Update last_text_section.
5109         (unlikely_text_section): Replace code to determine cold section name
5110         with call to initialize_cold_section_name; Add code to update
5111         last_text_section; remove code for printing out label.
5112         (named_section_real): Add code to update last_text_section and
5113         last_text_section_name as appropriate.
5114         (function_section): Change test for 'unlikely' to depend on
5115         first_function_block_is_cold (moved old test to
5116         current_function_section).
5117         (current_function_section): New function.
5118         (assemble_start_function): Move code that frees
5119         unlikely_text_section_name; initialize hot_section_end_label;
5120         print hot and cold section labels at the start of the function;
5121         set first_function_block_is_cold, if appropriate; initialize l
5122         ast_text_section; add call to insert_section_boundary_note.
5123         (assemble_end_function):  Add code to write out hot and cold section
5124         end labels.
5125         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
5126         switch_text_section.
5127         * config/darwin.c (machopic_select_section): Replace incorrect
5128         function in base_funs; update reloc for cold sections if necessary.
5129         * config/darwin.h (SECTION_FUNCTION):  Add code to update
5130         last_text_section if appropriate.
5131         (text_unlikely_section): Remove.
5132         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
5133         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
5134         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
5135         partitioning for this architecture.
5136
5137 2005-03-31  Olivier Hainque  <hainque@adacore.com>
5138
5139         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
5140         defined and non-zero.
5141
5142 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5143
5144         PR c++/18644
5145         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
5146         semantics.
5147
5148 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
5149
5150         PR target/20611
5151         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
5152         label operand.  Remove (use (unspec..)).  Don't emit a label on
5153         the offset word.
5154         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
5155         generate inline label for load_toc_v4_PIC_1b.
5156         (rs6000_emit_load_toc_table): Likewise.
5157
5158 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
5159
5160         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
5161         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
5162
5163 2005-03-29  Devang Patel  <dpatel@apple.com>
5164
5165         * tree-sra.c (decide_block_copy): Disable scalarization of
5166         sub-elements.
5167
5168 2005-03-30  Stuart Hastings  <stuart@apple.com>
5169             Dale Johannesen  <dalej@apple.com>
5170
5171         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
5172         * print-tree.c (print_node):  Add case STATEMENT_LIST.
5173
5174 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
5175
5176         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
5177         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
5178         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
5179         is given with "powerpc64*" or "all", or when --with-cpu chooses
5180         a 64-bit cpu.
5181
5182 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
5183
5184         PR debug/20268
5185         * dwarf2out.c (add_high_low_attributes): New function, extracted from
5186         gen_lexical_block_die.
5187         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
5188
5189 2005-03-31  Jan Hubicka  <jh@suse.cz>
5190
5191         2004-11-02  Jan Hubicka  <jh@suse.cz>
5192
5193         * cgraph.c (cgraph_varpool_node_name): New function.
5194         (dump_cgraph_varpool_node): New function.
5195         (dump_varpool): New function.
5196         * cgraphunit.c (cgraph_optimize): Dump varpool.
5197
5198         2004-10-16  Jan Hubicka  <jh@suse.cz>
5199
5200         * cgraph.c (decide_is_variable_needed): New function.
5201         (cgraph_varpool_finalize_decl): Use it.
5202         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
5203         unit-at-a-time.
5204         * final.c (output_addr_const): Do not call mark_referenced.
5205         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
5206         always go via cgraph.
5207         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
5208         (check_global_declarations): Ifdef out code clearing DECL_RTL.
5209         * tree-optimize.c (execute_inline): Mark functions called.
5210         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
5211
5212         2004-10-11  Jan Hubicka  <jh@suse.cz>
5213
5214         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
5215         (cgraph_varpool_last_needed_node): New static variable.
5216         (enqueue_needed_varpool_node): Break out from ...; add items to the
5217         end of queue; update first pointers.
5218         (cgraph_varpool_mark_needed_node): ... here.
5219         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
5220         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
5221         * cgraph.h (cgraph_varpool_node): Add analyzed field.
5222         (cgraph_varpool_first_unanalyzed_node): Declare.
5223         * cgraphunit.c: Include output.h.
5224         (cgraph_varpool_analyze_pending_decls): New function.
5225         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
5226         for errors, analyze pending decls.
5227         (cgraph_finalize_compilation_unit): Only analyze decls.
5228         (cgraph_optimize): Assemble the decls after expanding.
5229
5230 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
5231
5232         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
5233         subvars get marked properly in tags for grouping.
5234         (add_pointed_to_var): Mark only actual pointed to
5235         variables/subvars in addresses needed.
5236         (create_overlap_variables_for): Clear call clobbered on original
5237         variable.
5238         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
5239         addresable vars with subvars into list.
5240         * tree-ssa.c (verify_ssa_name): Verify original is not used where
5241         subvar should be.
5242
5243 2005-03-30  Richard Henderson  <rth@redhat.com>
5244
5245         * cgraph.h (struct cgraph_node): Add alias.
5246         * varasm.c (assemble_alias): Set it.
5247         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
5248         avoid calling cgraph_expand_function.
5249
5250 2005-03-30  Tom Tromey  <tromey@redhat.com>
5251
5252         * tree.def (FILE_TYPE): Removed.
5253         * typeclass.h (enum type_class): Removed file_type_class.
5254         * dwarf2out.c (is_base_type): Updated.
5255         (gen_type_die): Likewise.
5256         * dbxout.c (dbxout_type): Updated.
5257         * builtins.c (type_to_class): Updated.
5258         * tree.c (type_contains_placeholder_1): Updated.
5259         * config/sparc/sparc.c (sparc_type_code): Updated.
5260         * config/ia64/ia64.c (hfa_element_mode): Updated.
5261         * expr.c (count_type_elements): Updated.
5262         * stor-layout.c (layout_type): Updated.
5263         * tree-inline.c (remap_type): Updated.
5264         * tree-pretty-print.c (dump_generic_node): Updated.
5265
5266 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
5267
5268         * builtins.c (expand_builtin_powi): Fix mode of
5269         2nd argument to match int.
5270         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
5271         2nd argument type to int.
5272         * libgcc2.c: Change prototype of __powi* functions to use
5273         int.
5274
5275 2005-03-30  Dale Johannesen  <dalej@apple.com>
5276
5277         PR middle-end/19225
5278         * calls.c (expand_call):  Flush pending deferrals before
5279         throwing call.
5280
5281 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5282
5283         PR c/772
5284         PR c/17913
5285         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
5286         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
5287         c_label_context, label_context_stack): New.
5288         * c-decl.c (define_label): Check for jumps into statement
5289         expressions.  Add label to list of defined labels.
5290         (start_function): Push context on label_context_stack.
5291         (finish_function): Pop context from label_context_stack.
5292         * c-typeck.c (label_context_stack): New.
5293         (c_finish_goto_label): Check for jumps into statement
5294         expressions.  Add label to list of jumped to labels.
5295         (struct c_switch): Add blocked_stmt_expr.
5296         (c_start_case): Initialize it.
5297         (do_case): Check it.
5298         (c_finish_case): Verify !blocked_stmt_expr.
5299         (c_begin_stmt_expr):  Push context on label_context_stack.
5300         Increment blocked_stmt_expr.  Mark labels jumped to from outside
5301         as undefinable.
5302         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
5303         defined in the statement expression and no longer jumpable to.
5304         Mark labels jumped to from just outside the statement expression
5305         as again definable.  Pop context from label_context_stack.
5306         * doc/extend.texi (Statement Exprs): Update.
5307
5308 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5309
5310         PR c/20368
5311         * c-decl.c (start_function): Check for old_decl being
5312         error_mark_node.
5313
5314 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5315
5316         * final.c (final): Remove prescan parameter.  Change all callers.
5317         (final_scan_insn): Remove prescan parameter.  Change all callers.
5318
5319 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
5320
5321         * tree-vectorizer.c: Fix comment typos.
5322
5323 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
5324
5325         * tree-scalar-evolution.c (instantiate_parameters_1): Return
5326         as soon as a chrec_dont_know is detected.
5327
5328 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
5329
5330         Merge from csl-arm-branch.
5331         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
5332
5333         * tlink.c (recompile_files): Do not assume that "rename" can
5334         overwrite an existing file.
5335
5336 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
5337
5338         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
5339         * gcc/configure: Regenerate.
5340
5341 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5342
5343         * doc/install.texi: Update binutils requirement for powerpc*-linux.
5344
5345         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
5346
5347         * calls.c (struct arg_data): Update "partial" comment.
5348         (load_register_parameters): Update "nregs" comment.
5349
5350 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5351
5352         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
5353         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
5354         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
5355         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
5356         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
5357         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
5358         than target_flags & 0.
5359         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
5360         (iq2000_arch, iq2000_parse_cpu): Delete.
5361         (TARGET_HANDLE_OPTION): Override default.
5362         (iq2000_handle_option): New function.
5363         (override_options): Remove -march= and -mcpu= handling.
5364         * config/iq2000/iq2000.opt: New file.
5365
5366 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5367
5368         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
5369         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
5370         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
5371         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
5372         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
5373         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
5374         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
5375         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
5376         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
5377         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
5378         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
5379         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
5380         (c4x_rpts_cycles_string, c4x_cpu_version_string)
5381         (TARGET_OPTIONS): Delete.
5382         (c4x_rpts_cycles, c4x_cpu_version): Declare.
5383         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
5384         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
5385         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
5386         (c4x_cpu_version_string): Delete.
5387         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5388         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
5389         equivalent -mcpu= option.
5390         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
5391         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
5392         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
5393         or clearing the appropriate MASK_* bit.
5394         (c4x_file_start): Use c4x_cpu_version.
5395         * config/c4x/c4x.opt: New file.
5396
5397 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5398
5399         * doc/options.texi: Document the new MaskExists flag.
5400         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
5401         if the option has the MaskExists flag.
5402
5403 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5404
5405         * opt-functions.awk (flag_set_p, test_flag): New functions.
5406         (switch_flags): Use them.
5407         * opth-gen.awk: Use flag_set_p to check for flags.
5408         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
5409
5410 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5411
5412         * config.host (i[34567]86-*-mingw32*): Don't set
5413         host_can_use_collect2 to no.
5414
5415 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5416
5417         PR target/20203
5418         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
5419         Remove convert_memory_address call duplicating that in memory_address.
5420
5421 2005-03-29  Richard Henderson  <rth@redhat.com>
5422
5423         PR c/20519
5424         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
5425         (build_compound_literal): Likewise.  Propagate decl type into the
5426         initializer.
5427         (finish_decl): Likewise.  Use new return value from complete_array_type
5428         for zero sized arrays.
5429         (complete_array_type): Move ...
5430         * c-common.c (complete_array_type): ... here.  Change first argument
5431         to pointer-to-type-node.  Consistently use sizetype for the index
5432         except for zero sized arrays.  Detect zero sized arrays for pedantic
5433         mode diagnostics.  Create a new type node instead of modifying the
5434         old node in place.
5435         * c-tree.h (complete_array_type): Move decl ...
5436         * c-common.h (complete_array_type): ... here.
5437
5438 2005-03-29  Richard Henderson  <rth@redhat.com>
5439
5440         PR tree-opt/19108
5441         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
5442
5443 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
5444
5445         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
5446         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
5447         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
5448         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
5449
5450 2005-03-29  Eric Christopher  <echristo@redhat.com>
5451
5452         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
5453         truthvalue conversion removal.
5454
5455 2005-03-29  Ian Lance Taylor  <ian@airs.com>
5456
5457         PR bootstrap/14316
5458         * collect2.c: Never include <vfork.h>.
5459         (VFORK_STRING, vfork): Don't define.
5460         (pid): Remove global variable.
5461         (handler): Call raise instead of kill (getpid(), ...).
5462         (collect_wait): Add pex parameter.  Change all callers.  Use
5463         pex_get_status rather than pwait.
5464         (do_wait): Add pex parameter.  Change all callers.
5465         (collect_execute): Return struct pex_obj * rather than void.  Use
5466         pex routines rather than pexecute.
5467         (fork_execute): Get pex_obj from collect_execute, and pass it to
5468         do_wait.
5469         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
5470         Only declare quit_handler if SIGQUIT is defined.
5471         (scan_libraries): Likewise.
5472         * collect2.h (collect_execute): Update declaration.
5473         (collect_wait): Update declaration.
5474         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
5475         pass it to collect_wait.
5476
5477 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
5478
5479         PR c/20672
5480         * c-parser.c (c_parser_compound_statement_nostart): Give error
5481         message for EOF instead of just setting parser->error.
5482
5483 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
5484
5485         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
5486         (slpeel_update_phi_nodes_for_guard1): New function.
5487         (slpeel_update_phi_nodes_for_guard2): New function.
5488         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
5489         of slpeel_update_phi_nodes_for_guard.
5490         (vectorize_loops): Remove call to loop_closed_rewrite.
5491         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
5492         assertion.
5493
5494 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
5495
5496         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
5497         (TARGET_LITTLE_ENDIAN): New macro.
5498         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
5499         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
5500         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
5501         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
5502         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
5503         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
5504         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
5505         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
5506         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
5507         (TARGET_OPTIONS): Delete.
5508         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
5509         (CACHE_FLUSH_TRAP): Turn into an integer.
5510         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
5511         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
5512         -mflush-trap is in use.
5513         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
5514         (m32r_cache_flush_trap_string): Delete.
5515         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
5516         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
5517         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
5518         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5519         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
5520         -mmodel= and -msdata= handling from...
5521         (m32r_init): ...here.
5522         * config/m32r/m32r.opt: New file.
5523
5524 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
5525
5526         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
5527         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
5528         * tree-vect-analyze.c (vect_object_analysis): additional parm
5529         pass back a "struct ptr_info_def *" with the points-to info.
5530         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
5531         statement using info returned from vect_object_analysis.
5532         * tree-vect-transform.c (update_vuses_to_preheader): New function.
5533         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
5534         for virtual uses and defs when creating a replacement vector
5535         reference.  Call duplicate_ssa_name_ptr_info to define points-to
5536         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
5537         (vectorizable_store): copy_virtual_operands and update
5538         definition statements.
5539         (vectorizable_load): copy_virtual_operands.  Remove call to
5540         mark_call_clobbered_vars_to_rename for call to "const" builtin.
5541         * tree-vectorizer.c (vectorize_loops): Remove calls to
5542         rewrite_into_ssa and bitmap_clear (vars_to_rename).
5543         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
5544         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
5545         define macro STMT_VINFO_PTR_INFO for use in accessing.
5546         * tree.h add export of duplicate_ssa_name_ptr_info.
5547         * rs6000.c (altivec_init_builtins): Declare builtin function
5548         __builtin_altivec_mask_for_load to be "const".
5549
5550 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
5551
5552         PR middle-end/20622
5553         * cgraph.h (struct cgraph_varpool_node): Add alias field.
5554         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
5555         assemble_variable on aliases.
5556         * varasm.c (assemble_alias): Set node->alias.
5557         * toplev.c (wrapup_global_declarations): Don't call
5558         rest_of_decl_compilation on aliases again.
5559
5560 2005-03-29  Paul Brook  <paul@codesourcery.com>
5561
5562         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
5563         * config/arm/arm.c (arm_dbx_register_number): New function.
5564         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
5565
5566 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5567
5568         PR middle-end/20263
5569         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
5570         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
5571
5572 2005-03-29  Dale Johannesen <dalej@apple.com>
5573
5574         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
5575         $(TREE_H) and $(COVERAGE_H).
5576         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
5577         * opts.c (common_handle_option): Enable tree-based value transforms.
5578         * toplev.c (process_options): Ditto.
5579         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
5580         refers to references to this type.
5581         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
5582         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
5583         for may_be_more, may_be_less.
5584         (rtl_gen_pow2_profiler): Adjust.
5585         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
5586         (rtl_gen_one_value_profiler): Adjust.
5587         (rtl_gen_const_delta_profiler): Adjust.
5588         * tree-profile.c (tree_gen_interval_profiler): Implement.
5589         (tree_gen_pow2_profiler): Ditto.
5590         (tree_gen_one_value_profiler): Ditto.
5591         (tree_profiling): New.
5592         (pass_tree_profile): Reference it.
5593         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
5594         tree.h, gcov-io.h.
5595         (insn_divmod_values_to_profile): Rename to
5596         rtl_divmod_values_to_profile. Adjust.
5597         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
5598         (insn_prefetch_values_to_profile): Adjust.
5599         (rtl_value_profile_transformations): Adjust.
5600         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
5601         (gen_mod_pow2): Rename to rtl_mod_pow2.
5602         (gen_mod_subtract): Rename to rtl_mod_subtract.
5603         (divmod_fixed_value_transform): Rename to
5604         rtl_divmod_fixed_value_transform.
5605         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
5606         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
5607         (rtl_find_values_to_profile): Adjust.
5608         (tree_value_profile_transformations): Implement.
5609         (tree_divmod_values_to_profile): New.
5610         (tree_values_to_profile): New.
5611         (tree_divmod_fixed_value): New.
5612         (tree_mod_pow2): New.
5613         (tree_mod_subtract): New.
5614         (tree_divmod_fixed_value_transform): New.
5615         (tree_mod_pow2_value_transform): New.
5616         (tree_mod_subtract_transform): New.
5617         (tree_find_values_to_profile): Implement.
5618         * profile.c (instrument_values):  Free histograms.
5619         (compute_value_histograms): Adjust. Implement tree version.
5620
5621 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
5622
5623         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
5624         * config/i386/i386.c (output_fix_trunc): Add new round_mode
5625         variable.  Output "fldcw" depending on round_mode.
5626         * config/i386/i386.md (UNSPEC_FIST): New.
5627         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
5628         New isns patterns to implement lrint and llrint built-ins as x87
5629         intrinsic function.
5630         (fistdi2, fist<mode>2 splitters): New splitters.
5631         (lrint<mode>2): New expanders.
5632
5633 2005-03-28  Ian Lance Taylor  <ian@airs.com>
5634
5635         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
5636         0 when calling final_scan_insn.
5637
5638 2005-03-28  Jan Hubicka  <jh@suse.cz>
5639
5640         PR middle-end/20635
5641         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
5642         as needed.
5643
5644         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
5645         types where possible.
5646
5647 2005-03-26  Per Bothner  <per@bothner.com>
5648
5649         Make -f[no-]show-column also control non-cpp diagnostics.
5650         * c.opt (fshow-column): Move option from here ...
5651         * common.opt (fshow-column): ... to here.
5652         * diagnostic.c (diagnostic_build_prefix): Only print column number
5653         if flag_show_column.
5654
5655 2005-03-27  Steven Bosscher  <stevenb@suse.de>
5656
5657         * vax-protos.h (vax_output_int_move, vax_output_int_add,
5658         vax_output_conditional_branch): New prototypes.
5659         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
5660         extracted from vax.md mov and add patterns.
5661         (vax_output_conditional_branch): New function to output conditional
5662         branch instructions.
5663         * vax.md: Use mode macros for arithmetic and mov patterns.
5664         Use code macros for the jump patterns.
5665
5666 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5667
5668         * Makefile.in (libbackend.o): Depend on version files;
5669         add custom generation command.
5670
5671 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5672
5673         PR target/20636
5674         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
5675         sure that we have a REG before getting its REGNO.
5676
5677 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5678
5679         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
5680         * builtins.def (BUILT_IN_STRNDUP): New.
5681
5682 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
5683
5684         PR tree-optimization/20470
5685         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
5686         ABS(x-y).
5687
5688 2005-03-25  Mike Stump  <mrs@apple.com>
5689
5690         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
5691         sized objects.
5692
5693 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
5694
5695         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
5696         Use our own structure definitions.
5697
5698         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
5699         (fix_truncdfsi2): Allow registers or memory as destination.
5700         When TARGET_PPC_GFXOPT, generate simplified pattern.
5701         (fix_truncdfsi2_internal): Use define_insn_and_split.
5702         (fix_truncdfsi2_internal_gfxopt): New.
5703         (fctiwz): Don't confuse register allocation by giving it no choices.
5704         (stfiwx): New.
5705         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
5706         (EXTRA_MEMORY_CONSTRAINT): Likewise.
5707         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
5708         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
5709
5710 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5711
5712         * dominance.c (free_dominance_info): Speed up by freeing et
5713         data structures without maintaining other nodes.
5714         * et-forest.c (et_free_tree_force): New.
5715         * et-forest.h: Add a prototype for et_free_tree_force.
5716
5717         * tree.c (get_set_constructor_bits,
5718         get_set_constructor_bytes): Remove.
5719         * tree.h: Remove the corresponding prototypes.
5720
5721 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
5722
5723         PR target/15491
5724         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
5725         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
5726         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
5727         PRE_DEC, NEG and NOT.
5728
5729 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5730
5731         * fold-const.c: Convert uses of fold (build (...)) to
5732         fold_buildN.
5733
5734 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
5735
5736         PR rtl-optimization/20249
5737         * cse.c (insert_regs): Do not record equivalence of registers in
5738         different modes.
5739
5740 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
5741
5742         * emit-rtl.c (reverse_comparison): Remove.
5743         * rtl.h: Remove the corresponding prototype.
5744
5745 2005-03-24  James E Wilson  <wilson@specifixinc.com>
5746
5747         * doc/install.texi (--enable-altivec): Delete docs.
5748
5749 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
5750
5751         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
5752         SFmode and DFmode before reload when
5753         flag_unsafe_math_optimizations not enabled.
5754
5755 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
5756
5757         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
5758
5759         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
5760         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
5761
5762 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
5763
5764         * configure.ac (enable-checking): Add 'runtime' option.
5765         * doc/install.texi (enable-checking): Document 'runtime' checking.
5766         * tsystem.h (gcc_assert, gcc_unreachable): Define.
5767         * config.in: Regenerated.
5768         * configure: Regenerated.
5769
5770 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
5771
5772         * optabs.h (enum optab_index): Remove OTI_llrint.
5773         (llrint_optab): Remove macro.
5774         * optabs.c (init_optabs): Remove llrint_optab initialization.
5775         * genopinit.c (optabs): Remove llrint_optab implementation.
5776         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
5777         using lrint_optab.
5778
5779 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
5780
5781         PR rtl-optimization/20532
5782         * simplify-rtx.c (simplify_binary_operation_1): Protect from
5783         overflow when adding coefficients for PLUS or MINUS.
5784         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
5785         two as multiplier.
5786
5787 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5788
5789         * langhooks.h (truthvalue_conversion): Remove.
5790         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5791         LANG_HOOKS_TRUTHVALUE_CONVERSION.
5792         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
5793         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
5794         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5795
5796 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
5797
5798         * params.def: Fix a typo.
5799         * config/mips/mips.c: Follow the spelling convensions.
5800         * doc/invoke.texi: Fix typos.
5801
5802 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
5803
5804         Fix PR tree-optimization/20601
5805
5806         * tree-ssa-pre.c (insert_aux): Add missing condition to
5807         constification.
5808
5809 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5810
5811         * final.c (final_scan_insn): Don't remove no-op instructions.
5812         * reload1.c (reload): Remove simple no-op instructions even when
5813         not optimizing.
5814
5815 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
5816
5817         PR tree-optimization/20501
5818         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
5819         reporting that peeling for alignment is applied moved to...
5820         * (vect_analyze_data_refs_alignment): Here.
5821
5822 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5823
5824         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
5825
5826 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5827
5828         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
5829         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
5830
5831 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
5832
5833         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
5834         imply that this is called once, independent of asms in code.
5835         Adjust to now being pased output and input lists.  Mention helper
5836         function decl_overlaps_hard_reg_set_p.
5837         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
5838         hook_tree_tree_identity and to take three trees, returning third.
5839         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
5840         prototype.
5841         * stmt.c: include hard-reg-set.h before tree.h.
5842         (decl_overlaps_hard_reg_set_p): New function, broken out from...
5843         (decl_conflicts_with_clobbers_p): Call
5844         decl_overlaps_hard_reg_set_p.
5845         (expand_asm_operands): Pass output and input lists in call to
5846         targetm.md_asm_clobbers.
5847         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
5848         hook_tree_tree_tree_tree_3rd_identity.
5849         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
5850         parameters.
5851         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
5852         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
5853         parameters, first two unused.
5854         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
5855         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
5856         in constraint letters and MOF is not mentioned as a asm-declared
5857         register in neither of the input and output lists.
5858
5859 2005-03-23  DJ Delorie  <dj@redhat.com>
5860
5861         * optabs.c (expand_binop): Make sure the first subword's result
5862         gets stored.
5863
5864 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5865
5866         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
5867         Call c_common_truthvalue_conversion rather than
5868         lang_hooks.truthvalue_conversion.
5869         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
5870         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
5871         c-typeck.c.
5872         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
5873         c_common_truthvalue_conversion.
5874         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
5875         c_parser_conditional_expression, c_parser_binary_expression): Call
5876         c_objc_common_truthvalue_conversion.
5877         * c-typeck.c (build_unary_op): Call
5878         c_objc_common_truthvalue_conversion.
5879         (build_conditional_expr): Do not call
5880         lang_hooks.truthvalue_conversion.
5881         (build_binary_op): Call c_common_truthvalue_conversion.
5882         (c_objc_common_truthvalue_conversion): Moved from
5883         c-objc-common.c.  Call default_function_array_conversion instead
5884         of default_conversion.
5885
5886 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5887
5888         * c-common.h (default_conversion): Remove.
5889         (perform_integral_promotions): Add.
5890         * c-tree.h (default_conversion): Add.
5891         * c-typeck.c (perform_integral_promotions): New, split out from
5892         default_conversion.
5893         * c-common.c (check_case_value): Use perform_integral_promotions,
5894         not default_conversion.
5895         (c_add_case_label): Don't continue processing case label after
5896         found to be pointer.
5897
5898 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
5899
5900         * gcc.c (do_spec_1): Do not add a -L path for a directory in
5901         the prefix list if we have already added a multilib directory
5902         based on that path.
5903         (main): Do not add MD_EXEC_PREFIX to the list of directories to
5904         search with -L.
5905
5906 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5907
5908         * reload1.c (indirect_symref_ok, reload_obstack): Make them
5909         static.
5910         * reload.h: Remove the prototype for indirect_symref_ok.
5911
5912         * reload1.c (indirect_symref_ok): Make it global.
5913         * reload.h: Add a prototype for indirect_symref_ok.
5914
5915 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5916
5917         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
5918         ashlhi3 expander.
5919
5920 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
5921
5922         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
5923
5924 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
5925
5926         * c-opts.c (c_common_parse_file): Only start/end main source file
5927         if debug hooks says the writer wants it.
5928         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
5929         member.
5930         (xcoff_debug_hooks): Ditto.
5931         * debug.c (do_nothing_hooks): Ditto.
5932         * debug.h (gcc_debug_hooks): Ditto.
5933         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
5934         * sdbout.c (sdb_debug_hooks): Ditto.
5935         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
5936
5937 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
5938
5939         * doc/extend.texi: Deprecate C++ min/max operators.
5940
5941 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
5942
5943         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
5944         artificial original candidates.
5945
5946 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
5947             Jan Hubicka  <jh@suse.cz>
5948             Steven Bosscher <stevenb@suse.de>
5949
5950         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
5951         call cost based on argument sizes.
5952         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
5953         inlining.
5954         * params.def: (max-inline-inssn-single): Set to 450.
5955         (max-inline-insns-auto): Set to 90.
5956         (max-inline-insns-recursive): Set to 450
5957         (max-inline-insns-recursive-auto): Set to 450.
5958         (large-function-insns): Set to 2700.
5959         (inline-call-cost): New parameter.
5960         * tree-inline.c (estimate_move_cost): New function.
5961         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
5962         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
5963         based on arguments.
5964         * tree-inline.h (estimate_move_cost): Declare.
5965         * invoke.texi: (max-inline-inssn-single): Change default to 450.
5966         (max-inline-insns-auto): Change default to 90.
5967         (max-inline-insns-recursive): Change default to 450
5968         (max-inline-insns-recursive-auto): Change default to 450.
5969         (large-function-insns): Change default to 2700.
5970         (inline-call-cost): Document new parameter.
5971
5972 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5973
5974         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
5975         (TARGET_DEFAULT): Delete.
5976         * config/i860/i860.opt: New file.
5977
5978 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5979
5980         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
5981         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5982         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5983         (frv_sched_lookahead): Delete.
5984         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
5985         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
5986         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
5987         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
5988         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
5989         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
5990         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
5991         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
5992         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
5993         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
5994         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
5995         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
5996         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
5997         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
5998         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
5999         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
6000         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
6001         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
6002         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
6003         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
6004         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
6005         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
6006         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
6007         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
6008         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
6009         (frv_sched_lookahead): Delete.
6010         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
6011         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
6012         (frv_handle_option): New function.  Move -mcpu= handling from...
6013         (frv_override_options): ...here.  Remove handling of other
6014         TARGET_OPTIONS.
6015         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
6016         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
6017         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
6018         and TARGET_NO_MULTI_CE.
6019         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
6020         !TARGET_VLIW_BRANCH.
6021         * config/frv/frv.opt: New file.
6022
6023 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
6024
6025         * fold-const.c (fold_ternary): Take decomposed arguments of
6026         CALL_EXPR.
6027         (fold): Update a call to fold_ternary.
6028
6029         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
6030         * tree.h: Add corresponding prototypes.
6031
6032 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
6033
6034         PR target/20561
6035         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
6036         between jump table and its label.
6037         * final.c (shorten_branches): Handle notes in between ADDR_VEC
6038         resp. ADDR_DIFF_VEC and the label preceeding it.
6039         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
6040         is emitted in the right section.
6041
6042 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
6043
6044         * fold-const.c (fold_unary, fold_binary): Update comments
6045         about arguments.
6046
6047 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
6048
6049         PR rtl-optimization/20527
6050         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
6051         REG_INC note, test that the register also isn't mentioned in PRED
6052         or SUCC.
6053
6054 2005-03-22  Ben Elliston  <bje@au.ibm.com>
6055
6056         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
6057         and definition.
6058
6059 2005-03-21  Mike Stump  <mrs@apple.com>
6060
6061         * varasm.c (default_assemble_visibility): Remove extra ().
6062
6063 2005-03-21  Roger Sayle  <roger@eyesopen.com>
6064
6065         PR middle-end/20557
6066         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
6067         to determine whether a block can be duplicated, rather than test
6068         whether the block contains noncopyable insns ourselves.
6069
6070 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6071
6072         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
6073         predicates.
6074
6075 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
6076
6077         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
6078
6079 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
6080
6081         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
6082         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
6083         * config/fr30/fr30.opt: New file.
6084
6085 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
6086
6087         Fix PR tree-optimization/20542
6088
6089         * tree-flow-inline.h (overlap_subvar): Move to here.
6090         * tree-ssa-operands.c: From here.
6091         * tree-flow.h (overlap_subvar): Declare.
6092         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
6093         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
6094         for variables with subvars.
6095
6096 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
6097
6098         PR middle-end/20177
6099         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
6100         * modulo-sched.c (const_iteration_count): Return on NULL
6101         pre-header.
6102         (print_node_sched_params): Return on NULL dump_file.
6103         (generate_reg_moves): Handle reg-anti dependencies and disregard
6104         closing branch when generating register moves.
6105         (sms_schedule): Mark the SMSed block dirty.
6106         * passes.c (rest_of_handle_sms): Call update_life_info for all
6107         basic-blocks.
6108         * testsuite/gcc.dg/20050321-1.c: New test.
6109
6110 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
6111
6112         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
6113         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6114         movqi_internal): Likewise.
6115
6116 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
6117
6118         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
6119         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
6120         xtensa_b4const): Delete prototypes.
6121         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
6122         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
6123         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
6124         xtensa_extra_constraint): New prototypes.
6125         (add_operand, arith_operand, nonimmed_operand, mem_operand,
6126         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
6127         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
6128         move_operand, const_float_1_operand, fpmem_offset_operand,
6129         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
6130         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
6131         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
6132         argument type to HOST_WIDE_INT.
6133         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
6134         xtensa_mask_immediate): Likewise.
6135         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
6136         Likewise.  Also make these functions static.
6137         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
6138         (xtensa_const_ok_for_letter_p): New.
6139         (add_operand, arith_operand, nonimmed_operand, mem_operand,
6140         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
6141         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
6142         move_operand, const_float_1_operand, fpmem_offset_operand,
6143         branch_operator, ubranch_operator, boolean_operator): Move to
6144         predicates.md.
6145         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
6146         (xtensa_mem_offset): Change return type to bool.
6147         (xtensa_extra_constraint): New.
6148         (gen_int_relational): Update type of const_range_p function pointer.
6149         Use xtensa_b4const_or_zero.
6150         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
6151         xtensa_const_ok_for_letter_p.  Update comments.
6152         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
6153         (PREDICATE_CODES): Delete.
6154         * config/xtensa/xtensa.md: Include predicates.md.
6155         * config/xtensa/predicates.md: New file.
6156
6157 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6158
6159         * config/v850/v850-protos.h: Remove the prototypes for
6160         reg_or_int9_operand, reg_or_const_operand,
6161         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
6162         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
6163         movsi_source_operand, power_of_two_operand,
6164         not_power_of_two_operand, special_symbolref_operand,
6165         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
6166         register_is_ok_for_epilogue.
6167         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
6168         reg_or_int9_operand, reg_or_const_operand,
6169         call_address_operand, special_symbolref_operand,
6170         movsi_source_operand, power_of_two_operand,
6171         not_power_of_two_operand, register_is_ok_for_epilogue,
6172         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
6173         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
6174         predicates.md.
6175         * config/v850/v850.h (PREDICATE_CODES): Remove.
6176         * config/v850/v850.md: Include predicates.md.
6177         * config/v850/predicates.md: New.
6178
6179 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
6180
6181         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
6182         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
6183         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
6184         (itoolsdir, itoolsdatadir): Move definition above new first use.
6185         (install-itoolsdirs): New rule.
6186         (install-mkheaders): Depend on install-itoolsdirs, not
6187         install-include-dir.
6188
6189 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6190
6191         * tree-into-ssa.c: Remove obsolete comments.
6192
6193 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
6194
6195         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
6196         unrolling if -fpeel-loops is specified, too.
6197         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6198         Remove superfluous check for flag_unroll_loops.
6199
6200 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
6201
6202         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
6203         (lrint_optab, llrint_optab): Define corresponding macros.
6204         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
6205         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
6206         pattern and llrint_optab using llrintdi2 patterns.
6207         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
6208         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
6209         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
6210         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
6211         flag_unsafe_math_optimizations is set.
6212
6213 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
6214
6215         * combine.c (combine_simplify_rtx, simplify_if_then_else,
6216         simplify_logical, if_then_else_cond, known_cond,
6217         simplify_comparison): Adjust calls to reverse_comparison.
6218         Don't use combine_reversed_comparison_code).
6219         (combine_reversed_comparison_code): Remove.
6220         (reversed_comparison): Using reversed_comparison_code, move it...
6221         * jump.c (reversed_comparison): ... here.
6222         * rtl.h (reversed_comparison): Add prototype.
6223
6224 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6225
6226         * builtins.c (fold_builtin): Take decomposed arguments of
6227         CALL_EXPR.
6228         * fold-const.c (fold_ternary): Update a call to fold_builtin.
6229         * gimplify.c (gimplify_call_expr): Likewise.
6230         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
6231         * tree.h: Update the prototype of fold_builtin.
6232
6233 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
6234
6235         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
6236         * rtlhooks.c (gen_lowpart_no_emit_general): New.
6237         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
6238         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
6239         * simplify-rtx.c (simplify_binary_operation_1): Use it.
6240
6241 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6242
6243         * builtins.c (fold_builtin_1): Take decomposed arguments of
6244         CALL_EXPR.
6245         (fold_builtin): Update a call to fold_builtin_1.
6246
6247 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
6248
6249         PR other/20564
6250         * gcov.c (output_lines): Only output function block summary when
6251         outputting branch information.
6252         * doc/gcov.texi: Document format of preamble and additional block
6253         information lines.
6254
6255 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
6256
6257         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
6258         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
6259         the defaults false if BITS_PER_UNIT != 8.
6260         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
6261         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
6262         than BITS_PER_UNIT != 8.
6263         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
6264         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
6265         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
6266         #undefs.
6267         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
6268         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
6269
6270 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6271
6272         PR middle-end/20539
6273         * fold-const.c (fold_binary): Fix type mismatch between
6274         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
6275         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
6276         for non-truth-valued expressions.
6277
6278         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
6279         and FUNCTION_DECL in the main switch.
6280         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6281         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
6282         we also need to convert their operands to match.
6283         <TRUTH_NOT_EXPR>: Likewise.
6284
6285 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
6286
6287         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
6288         diagnostic without checking whether an lvalue.
6289         * c-common.h (lvalue_p): Remove.
6290         (enum lvalue_use): Update comment.
6291         (lvalue_or_else): Replace by lvalue_error.
6292         * c-typeck.c (lvalue_p): Make static.
6293         (lvalue_or_else): New.  Call lvalue_error.
6294
6295 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
6296
6297         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
6298         (function_arg_advance): Use rs6000_parm_start.
6299         (function_arg, rs6000_arg_partial_bytes): Likewise.
6300
6301 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6302
6303         * c-common.c (check_case_value): Adjust comment about stripping
6304         NOPs.
6305         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
6306         * c-typeck.c (default_conversion, convert_arguments,
6307         build_modify_expr, convert_for_assignment, store_init_value,
6308         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
6309         manually.  Remove inaccurate comments.
6310
6311 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6312             Joseph S. Myers  <joseph@codesourcery.com>
6313
6314         * varasm.c (do_assemble_alias): Restore comment describing function.
6315         Annotate the target parameter as potentially unused.
6316
6317 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6318
6319         PR target/18551
6320         * config/avr/avr.c (avr_output_function_prologue): Do not use
6321         current_function_name() in a label, use a local label instead.
6322
6323 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
6324
6325         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
6326         flag_finite_math_only, not flag_unsafe_math_optimizations.
6327
6328 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6329
6330         * builtins.c (fold_builtin_1): Update a call to
6331         targetm.fold_builtin.
6332         * hooks.c (hook_tree_tree_bool_null): Rename to
6333         hook_tree_tree_tree_bool_null.  Take one more argument of type
6334         tree.
6335         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
6336         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
6337         hook_tree_tree_tree_bool_null.
6338         * target.h (gcc_target): Update the prototype of fold_builtin.
6339         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
6340         arguments of CALL_EXPR.
6341         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
6342         new prototype.
6343
6344 2005-03-20  Jan Hubicka  <jh@suse.cz>
6345
6346         * cgraph.h (cgraph_node): Add prev_clone pointer.
6347         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
6348         (cgraph_clone_node): Produce doubly linked chain.
6349
6350 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6351
6352         * c-common.c (handle_aligned_attribute, check_function_sentinel,
6353         get_nonnull_operand, handle_sentinel_attribute,
6354         check_function_arguments_recurse): Do not strip NOPS from
6355         INTEGER_CSTs.
6356         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
6357         Likewise.
6358         * c-format.c (get_constant): Likewise.
6359         * c-parser.c (c_parser_postfix_expression): Likewise.
6360         * c-typeck.c (set_init_index): Likewise.
6361         (convert_arguments): Don't check for NOP_EXPR containing integer
6362         constant.
6363
6364 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6365
6366         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
6367         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
6368         Take decomposed arguments of CALL_EXPR.
6369         (fold_builtin_1): Update calls to the functions mentioned
6370         above.
6371
6372 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6373
6374         * c-decl.c (check_bitfield_type_and_width): Require bit-field
6375         width to have integer type.
6376         (build_enumerator): Require enumerator value to have integer type.
6377
6378 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6379
6380         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
6381         to __builtin_inff.
6382
6383 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6384
6385         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
6386         std=iso9899:199x): Correct descriptions.
6387
6388 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6389
6390         * config.gcc: Consistently use solaris2.1[0-9]* instead of
6391         solaris2.1[0-9].
6392
6393 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6394
6395         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
6396         of CALL_EXPR.
6397         (expand_builtin_memcpy, fold_builtin_1): Update calls to
6398         fold_builtin_memcpy.
6399
6400         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
6401         arguments of CALL_EXPR.
6402         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
6403         fold_builtin_found, fold_builtin_1): Update calls to
6404         fold_trunc_transparent_mathfn.
6405
6406 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6407
6408         PR middle-end/20493
6409         * fold-const.c (fold_widened_comparison): Don't optimize casts of
6410         function pointers on targets that require function pointer
6411         canonicalization.
6412         (fold_sign_changed_comparison): Likewise.
6413
6414 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
6415
6416         * combine.c (try_combine): When changing the mode of a hard reg, make
6417         sure that doing so is valid.
6418
6419 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
6420
6421         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
6422         (TARGET_HANDLE_OPTION): Override default.
6423         (avr_handle_option): New function.
6424         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
6425         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
6426         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
6427         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
6428         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
6429         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
6430         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
6431         (TARGET_OPTIONS): Delete.
6432         * config/avr/avr.opt: New file.
6433
6434 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6435
6436         * config/m32r/m32r-protos.h: Remove the prototypes for
6437         call_address_operand, symbolic_operand, seth_add3_operand,
6438         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6439         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6440         two_insn_const_operand, move_src_operand,
6441         move_double_src_operand, move_dest_operand,
6442         eqne_comparison_operator, signed_comparison_operator,
6443         large_insn_p, conditional_move_operand, carry_compare_operand,
6444         m32r_block_immediate_operand, extend_operand,
6445         reg_or_eq_int16_operand, int8_operand, and
6446         reg_or_zero_operand.
6447         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6448         seth_add3_operand, int8_operand, cmp_int16_operand,
6449         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6450         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6451         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6452         move_double_src_operand, move_dest_operand,
6453         eqne_comparison_operator, signed_comparison_operator,
6454         extend_operand, small_insn_p, large_insn_p,
6455         conditional_move_operand, carry_compare_operand,
6456         m32r_block_immediate_operand): Move to predicates.md.
6457         (MAX_MOVE_BYTES): Move to m32r.h.
6458         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6459         * config/m32r/m32r.md: Include predicates.md.
6460         * config/m32r/predicates.md: New.
6461
6462 2005-03-18  James E Wilson  <wilson@specifixinc.com>
6463
6464         PR c++/19769
6465         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
6466         origin.
6467
6468 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6469
6470         * config/mn10300/mn10300-protos.h: Remove the prototypes for
6471         call_address_operand, const_8bit_operand.
6472         * config/mn10300/mn10300.c (call_address_operand,
6473         const_8bit_operand, const_1f_operand): Move to predicates.md.
6474         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
6475         * config/mn10300/mn10300.md: Include predicates.md.
6476         * config/mn10300/predicates.md: New.
6477
6478 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
6479
6480         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
6481         declarations in diagnostics and %E for identifiers, not %s.
6482
6483 2005-03-18  Jan Hubicka  <jh@suse.cz>
6484             Dale Johannesen  <dalej@apple.com>
6485
6486         * basic-block.h (scale_bbs_frequencies_int,
6487         scale_bbs_frequencies_gcov_type): Declare.
6488         * cfg.c (RDIV): New macro.
6489         (update_bb_frequency_for_threading): Fix.
6490         * basic-block.h (scale_bbs_frequencies_int,
6491         scale_bbs_frequencies_gcov_type): New.
6492         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
6493         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
6494         scale_bbs_frequencies_int.
6495         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
6496
6497 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6498
6499         * config/m32r/m32r-protos.h: Remove the prototypes for
6500         call_address_operand, symbolic_operand, seth_add3_operand,
6501         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6502         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6503         two_insn_const_operand, move_src_operand,
6504         move_double_src_operand, move_dest_operand,
6505         eqne_comparison_operator, signed_comparison_operator,
6506         large_insn_p, conditional_move_operand, carry_compare_operand,
6507         m32r_block_immediate_operand, extend_operand,
6508         reg_or_eq_int16_operand, int8_operand, and
6509         reg_or_zero_operand.
6510         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6511         seth_add3_operand, int8_operand, cmp_int16_operand,
6512         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6513         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6514         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6515         move_double_src_operand, move_dest_operand,
6516         eqne_comparison_operator, signed_comparison_operator,
6517         extend_operand, small_insn_p, large_insn_p,
6518         conditional_move_operand, carry_compare_operand,
6519         m32r_block_immediate_operand): Move to predicates.md.
6520         (MAX_MOVE_BYTES): Move to m32r.h.
6521         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6522         * config/m32r/m32r.md: Include predicates.md.
6523         * config/m32r/predicates.md: New.
6524
6525         * config/pa/pa-protos.h: Add prototypes for magic_milli and
6526         shadd_constant_p.
6527         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
6528         symbolic_operand, symbolic_memory_operand,
6529         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
6530         indexed_memory_operand, move_dest_operand, move_src_operand,
6531         prefetch_cc_operand, prefetch_nocc_operand,
6532         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
6533         arith_operand, arith11_operand, pre_cint_operand,
6534         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
6535         ireg_operand, int5_operand, uint5_operand, int11_operand,
6536         uint32_operand, arith5_operand, and_operand, ior_operand,
6537         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
6538         pc_or_label_operand, div_operand, plus_xor_ior_operator,
6539         shadd_operand, movb_comparison_operator,
6540         cmpib_comparison_operator): Move to predicates.md.
6541         (magic_milli, shadd_constant_p): Make it extern.
6542         * config/pa/pa.h (PREDICATE_CODES): Remove.
6543         * config/pa/pa.md: Include predicates.md.
6544         * config/pa/predicates.md: New.
6545
6546         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
6547         predicate.
6548
6549 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6550
6551         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
6552         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
6553         config/alpha/freebsd.h, config/alpha/linux.h,
6554         config/alpha/netbsd.h, config/alpha/osf5.h,
6555         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
6556         config/h8300/h8300-protos.h, config/h8300/h8300.c,
6557         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
6558         doc/cppopts.texi: Update copyright.
6559
6560 2005-03-18  Jan Hubicka  <jh@suse.cz>
6561
6562         PR middle-end/20225
6563         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
6564         too late.
6565         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
6566         called too late.
6567
6568 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6569
6570         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
6571         VEC_safe_push.
6572
6573 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
6574
6575         * combine.c (gen_binary): Remove.
6576         (known_cond, simplify_shift_const, find_split_point,
6577         combine_simplify_rtx, simplify_if_then_else, simplify_set,
6578         simplify_logical, expand_field_assignment, extract_left_shift,
6579         force_to_mode, if_then_else_cond, apply_distributive_law,
6580         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
6581         simplify_comparison, reversed_comparison): Replace with
6582         simplify_gen_binary, simplify_gen_relational or
6583         distribute_and_simplify_rtx.
6584         (distribute_and_simplify_rtx): New function.
6585
6586 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
6587             Paolo Bonzini  <gcc.gnu.org>
6588
6589         * calls.c (setjmp_call_p, special_function_p): Update comments
6590         at the head of the functions.
6591
6592 2005-03-18  Jan Hubicka  <jh@suse.cz>
6593
6594         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
6595
6596         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
6597         function body should be released; do not proactively release function
6598         bodies in non-unit-at-a-time mode.
6599
6600 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
6601
6602         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
6603         mno-fp-ret-in-387 multilib variants.
6604
6605 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
6606
6607         * common.opt (m): Remove.
6608         * opts.c (handle_option): Pass 'm' options to set_target_switch if
6609         table lookup fails.
6610         (common_handle_option): Remove OPT_m case.
6611
6612 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6613
6614         * builtins.c (fold_builtin_bitop): Take decomposed arguments
6615         of CALL_EXPR.
6616         (fold_builtin_1): Update a call to fold_builtin_bitop.
6617
6618         * builtins.c (fold_builtin_signbit): Take decomposed arguments
6619         of CALL_EXPR.
6620         (fold_builtin_1): Update a call to fold_builtin_signbit.
6621
6622 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
6623
6624         PR tree-optimization/20474
6625         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
6626         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
6627
6628 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6629
6630         * config/h8300/h8300-protos.h: Remove prototypes for
6631         general_operand_src, general_operand_dst, single_one_operand,
6632         single_zero_operand, call_insn_operand,
6633         two_insn_adds_subs_operand, small_call_insn_operand,
6634         jump_address_operand, bit_operand, bit_memory_operand,
6635         stack_pointer_operand, const_int_gt_2_operand,
6636         const_int_ge_8_operand, const_int_qi_operand,
6637         const_int_hi_operand, incdec_operand, bit_operator,
6638         nshift_operator, eqne_operator, gtle_operator,
6639         gtuleu_operator, iorxor_operator.
6640         Add prototypes for h8sx_shift_type h8sx_classify_shift and
6641         h8300_ldm_stm_parallel.
6642         * config/h8300/h8300.c (h8sx_shift_type,): Move to
6643         h8300-protos.h.
6644         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
6645         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
6646         (h8300_ldm_stm_parallel): Make it extern.
6647         (h8300_ldm_parallel, h8300_stm_parallel,
6648         h8300_return_parallel, general_operand_src,
6649         general_operand_dst, h8300_dst_operand, h8300_src_operand,
6650         nibble_operand, reg_or_nibble_operand, single_one_operand,
6651         single_zero_operand, call_insn_operand,
6652         two_insn_adds_subs_operand, small_call_insn_operand,
6653         jump_address_operand, bit_operand, bit_memory_operand,
6654         stack_pointer_operand, const_int_gt_2_operand,
6655         const_int_ge_8_operand, const_int_qi_operand,
6656         const_int_hi_operand, incdec_operand, eqne_operator,
6657         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
6658         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
6659         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
6660         nshift_operator): Move to predicates.md.
6661         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
6662         * config/h8300/h8300.md: Include predicates.md.
6663         * config/h8300/predicates.md: New.
6664
6665 2005-03-17  Richard Henderson  <rth@redhat.com>
6666
6667         * config.gcc (ia64*-*-hpux*): Add extra_options.
6668         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
6669         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6670         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
6671         (ia64_tls_size_string, ia64_tune_string): Remove.
6672         (ia64_tune): Init to PROCESSOR_ITANIUM2.
6673         (TARGET_DEFAULT_TARGET_FLAGS): New.
6674         (TARGET_HANDLE_OPTION): New.
6675         (ia64_override_options): Move options parsing ...
6676         (ia64_handle_option): ... here.  New.
6677         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
6678         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
6679         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
6680         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
6681         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
6682         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
6683         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
6684         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
6685         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
6686         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
6687         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
6688         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
6689         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
6690         TARGET_EARLY_STOP_BITS): Remove.
6691         (TARGET_ILP32): Default false.
6692         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
6693         (enum ia64_inline_type): New.
6694         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6695         * config/ia64/ia64.md: Update for new definitions of
6696         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
6697         * config/ia64/ia64.opt: New file.
6698         * config/ia64/ilp32.opt: New file.
6699
6700 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6701
6702         PR target/18380
6703         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
6704
6705 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6706
6707         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
6708         instead of MASK_H8300S.
6709         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
6710         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
6711         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
6712         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
6713         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
6714         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
6715         TARGET_SWITCHES): Remove.
6716         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
6717         TARGET_H8300SX.
6718         * config/h8300/h8300.opt: New.
6719
6720         * config/alpha/alpha.opt, config/arc/arc.opt,
6721         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
6722         notices.
6723
6724 2005-03-17  Ian Lance Taylor  <ian@airs.com>
6725
6726         * gmon.c: Remove.
6727
6728 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
6729
6730         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
6731         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
6732         (TARGET_HANDLE_OPTION): Override default.
6733         (arc_handle_option): New function.
6734         (arc_init): Remove code to set arch_cpu_string.
6735         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
6736         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
6737         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
6738         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
6739         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
6740         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
6741         (arc_rodata_string, TARGET_OPTIONS): Delete.
6742         * config/arc/arc.opt: New file.
6743
6744 2005-03-17  Richard Henderson  <rth@redhat.com>
6745
6746         * doc/extend.texi (Weak Pragmas): New section.
6747         (attribute alias): Clarify that target must be in the same
6748         translation unit.
6749
6750 2005-03-17  Richard Henderson  <rth@redhat.com>
6751
6752         * config/alpha/alpha.opt: New file.
6753         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
6754         of alpha_cpu.
6755         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
6756         alpha_fprm_string, alpha_fptm_string): Make static.
6757         (alpha_tls_size_string): Remove.
6758         (alpha_handle_option): New.
6759         (override_options): Update for alpha_cpu/alpha_tune split.
6760         (alpha_file_start): Likewise.
6761         (TARGET_DEFAULT_TARGET_FLAGS): New.
6762         (TARGET_HANDLE_OPTION): New.
6763         * config/alpha/alpha.h (alpha_tune): Declare.
6764         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
6765         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
6766         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
6767         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
6768         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
6769         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
6770         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
6771         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
6772         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
6773         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
6774         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
6775         (TARGET_DEFAULT): Remove MASK_FP.
6776         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
6777         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
6778         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
6779         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
6780         alpha_tls_size_string): Remove.
6781         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
6782         (attribute tune): Rename from attribute cpu.
6783         * config/alpha/ev4.md: Update to match.
6784         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
6785         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
6786         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
6787         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
6788         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
6789         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
6790
6791 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
6792
6793         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
6794         and return without creating new state if before_nops_num is nonzero.
6795         * config/ia64/ia64.md (first_insn): New attribute.
6796         (alloc): Set it to yes.
6797
6798 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6799
6800         * tree-vectorizer.c (new_vec_stmt_info): Initialize
6801         STMT_VINFO_SUBVARS to NULL.
6802         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6803
6804 2005-03-16 Dale Johannesen  <dalej@apple.com>
6805
6806         * rtlanal.c (find_first_parameter_load):  Rewrite to
6807         return actual first param load or the call if none,
6808         instead of first in block, when not all loads exist.
6809
6810 2005-03-16  Roger Sayle  <roger@eyesopen.com>
6811
6812         * optabs.c (expand_copysign_absneg): Make static.
6813         * optabs.h (expand_copysign_absneg): Delete prototype.
6814         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
6815
6816 2005-03-16  Richard Henderson  <rth@redhat.com>
6817
6818         PR middle-end/15700
6819         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
6820         (alias_pairs): Rename from output_defs.
6821         (find_decl_and_mark_needed): Split out from assemble_alias.
6822         (do_assemble_alias): New.
6823         (assemble_output_def): Remove.
6824         (finish_aliases_1, finish_aliases_2): New.
6825         (process_pending_assemble_output_defs): Remove.
6826         (assemble_alias): Defer aliases for which we don't yet have a
6827         non-external decl for the target symbol.
6828         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
6829         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
6830         * toplev.c (compile_file): Use finish_aliases_2 instead of
6831         process_pending_assemble_output_defs.
6832         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
6833         (process_pending_assemble_output_defs): Remove.
6834
6835 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6836
6837         Fix PR tree-optimization/20489
6838
6839         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
6840         for empty structures.
6841
6842 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6843
6844         Fix PR tree-optimization/20490
6845
6846         * tree-ssa-pre.c (create_expression_by_pieces): Use
6847         force_gimple_operand on result of fold.
6848
6849 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
6850
6851         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
6852         of closing parenthesis.
6853
6854 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
6855
6856         * builtins.c (expand_movstr): Update a call to
6857         fold_builtin_strcpy.
6858         (expand_builtin_strncpy): Update a call to
6859         fold_builtin_strncpy.
6860         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
6861         arguments of CALL_EXPR.
6862         (fold_builtin_1): Update calls to fold_builtin_strcpy and
6863         fold_builtin_strncpy.
6864         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
6865         * tree.h: Update the prototypes of fold_builtin_strcpy and
6866         fold_builtin_strncpy.
6867
6868 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6869             Dorit Naishlos  <dorit@il.ibm.com>
6870
6871         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
6872         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
6873         error.
6874
6875 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6876
6877         * tree-inline.c (walk_type_fields, walk_tree,
6878         walk_tree_without_duplicates): Move from here...
6879         * tree.c: ...to here.
6880
6881 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
6882
6883         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
6884         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
6885         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
6886         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
6887         (version): Define using $(BASEVER_c).
6888         (Makefile, config.status, build/gcov-iov.o): No longer depends on
6889         version.c.
6890         (version.o): Depend on version files; add custom generation command.
6891         (prefix.o): Define BASEVER on command line.
6892         (s-iov): Depend on version files; adjust command.
6893         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
6894         Add gcc-vers.texi.
6895         (gcc-vers.texi): New rule.
6896         (doc/%.info, doc/%.dvi): Add -I . to command line.
6897         (doc/gccinstall.dvi): Likewise.
6898         (PACKAGE): Delete.  All uses replaced with "gcc".
6899         * aclocal.m4: Do not include gcc-version.m4.
6900         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
6901         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
6902         Set is_release based on contents of DEV-PHASE.
6903         Set gcc_version based on contents of BASE-VER.
6904         Define WIN32_REGISTRY_KEY only if the user overrode the default.
6905         * config.in, configure: Regenerate.
6906         * gccbug.in: Determine version of GCC in use at runtime.
6907         * gcov-iov.c: Get version number and development phase from
6908         command line, not by including version.c.
6909         * intl.c: Replace all uses of PACKAGE with "gcc".
6910         * libada-mk.in: Delete unused "gcc_version" variable.
6911         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
6912         * version.c: (VERSUFFIX): New hook for redistributors; adjust
6913         commentary to match.
6914         (version_string): Put together from pieces.
6915         * config/alpha/x-vms: Do not use $(gcc_version).
6916         * config/i386/t-nwld: Likewise.
6917         * doc/include/gcc-common.texi: Include gcc-vers.texi for
6918         version-GCC and DEVELOPMENT.
6919
6920 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6921
6922         PR tree-optimization/17454
6923         * tree.c (tree_size): Add case for TREE_BINFO.
6924         * fold-const.c (fold_checksum_tree): Only clear the overloaded
6925         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
6926
6927 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6928
6929         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
6930         op1 whilst expanding the signed widenening multiply variant.
6931
6932 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
6933
6934         * toplev.c (display_target_options): Avoid unused variable warning if
6935         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
6936         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
6937         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
6938         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
6939         (mips_isa_info): New variable.
6940         (mips_parse_cpu): Remove the first argument and leave the caller
6941         to report errors.
6942         (TARGET_HANDLE_OPTION): Override default.
6943         (mips_handle_option): New function.  Move option validation code from...
6944         (override_options): ...here.  Update calls to mips_parse_cpu.
6945         * config/mips/mips.h (mips_arch_string, mips_tune_string)
6946         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
6947         (SUBTARGET_TARGET_OPTIONS): Delete.
6948         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
6949         (mno-flush-func, mtune=): New options.
6950
6951 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6952             Richard Henderson  <rth@redhat.com>
6953
6954         * real.c (c4x_single_format, c4x_extended_format): Provide values
6955         for signbit_ro for c4x's single and extended floating point formats.
6956         * optabs.c (expand_copysign): Use the floating point format's
6957         signbit_ro for expanding via expand_copysign_absneg, and it's
6958         signbit_rw field for expanding via expand_copysign_bit.
6959
6960 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
6961
6962         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
6963         known_alignment_for_access_p.
6964         (known_alignment_for_access_p): New.
6965         (do_peeling_for_alignment): Field made int instead of bool and renamed
6966         to peeling_for_alignment.
6967         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
6968         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
6969         functionality used to be in vect_analyze_operations.
6970         (vect_analyze_operations): Code to determine vectorization factor was
6971         moved to vect_determine_vectorization_factor.
6972         (vect_enhance_data_refs_alignment): Update to correct alignment when it
6973         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
6974         factor.
6975         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
6976         be part of vect_analyze_operations).
6977         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
6978         creating the guard condition, as the number of iterations may be
6979         constant.
6980         (slpeel_tree_peel_loop_to_edge): Use new name of
6981         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
6982         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
6983         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
6984         (vect_do_peeling_for_alignment): Use fold.
6985         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
6986
6987         (vect_update_inits_of_dr): Renamed to
6988         vect_update_init_of_dr.
6989         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
6990         (vectorizable_store): Fix assertion to use == instead of =.
6991
6992 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
6993
6994         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
6995         call_used_regs for wCG registers.
6996
6997 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6998
6999         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
7000         for non-offsettable memory references to cope with outstanding reload
7001         replacements, take 2.
7002
7003 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
7004
7005         PR target/18668
7006         * config/i386/i386.h (x86_fisttp): New.
7007         (TARGET_FISTTP): New macro.
7008         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
7009         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
7010         instruction when fisttp flag is set.
7011         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
7012
7013         * config/i386/i386.md (type attribute): Add fisttp.
7014         (unit attribute): Set to i387 for fisttp type.
7015         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
7016         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
7017         TARGET_FISTTP.
7018         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
7019         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
7020         macros.
7021         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
7022         patterns for TARGET_FISTTP.  Enable patterns for
7023         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
7024         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
7025         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
7026         implement fisttp x87 insn.
7027         (fix_trunc*_i387_fisttp splitters): New patterns.
7028         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
7029         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
7030         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
7031         clobber.
7032         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
7033         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
7034         Implement using mode macros. Disable patterns for TARGET_FISTTP.
7035         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
7036         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
7037         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
7038         Disable patterns for TARGET_FISTTP.
7039         (fix_trunc*_i387 splitters): Implement usign mode macros.
7040         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
7041         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
7042         (fix_trunx*_sse peephole2s): Implement using mode macros.
7043
7044 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
7045
7046         PR rtl-optimization/20291
7047         * combine.c (try_combine): If splitting fails, re-try with
7048         original combined pattern, i.e. before clobber stripping.
7049
7050 2005-03-14  Eric Christopher  <echristo@redhat.com>
7051
7052         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
7053         STACK_GROWS_DOWNWARD.
7054
7055 2005-03-14  Roger Sayle  <roger@eyesopen.com>
7056
7057         * real.h (struct real_format): Split the signbit field into two
7058         two fields, signbit_ro and signbit_rw.
7059         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
7060         mips_double_format, ieee_extended_motorola_format,
7061         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
7062         ieee_extended_intel_128_format, ibm_extended_format,
7063         mips_extended_format, ieee_quad_format, mips_quad_format,
7064         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
7065         i370_double_format, c4x_single_format, c4x_extended_format,
7066         real_internal_format): Update initializers for new field.
7067         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
7068         real_format structure.
7069         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
7070         field of the real_format structure.
7071
7072 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
7073
7074         Fix PR tree-optimization/20458
7075
7076         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
7077         DECL_EXTERNAL on STRUCT_FIELD tags.
7078         (clear_call_clobbered): Ditto.
7079         * tree-ssa-operands.c (note_addressable): Make sure the original
7080         variable doesn't slip into the addressable list if we have
7081         subvars.
7082         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
7083         tags too.
7084
7085 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
7086
7087         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
7088         (-fwide-exec-charset): Likewise.
7089         (-finput-charset): Likewise.
7090         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
7091         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
7092         * c.opt (Wnormalized): New.
7093
7094 2005-03-14  Devang Patel  <dpatel@apple.com>
7095
7096         * doc/invoke.texi: Add reference to Visibility document.
7097
7098 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
7099
7100         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
7101         MASK_SPLIT_ADDRESSES.
7102         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
7103         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
7104         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
7105         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
7106         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
7107         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
7108         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
7109         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
7110         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
7111         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
7112         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
7113         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
7114         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
7115         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
7116         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
7117         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
7118         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
7119         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
7120         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
7121         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
7122         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
7123         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
7124         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
7125         (TARGET_EXPLICIT_RELOCS): Delete.
7126         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
7127         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
7128         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
7129         (override_options): Set MASK_LONG64 if -mint64 is given and no
7130         -mlongXX option is.  Complain about -mint64 -mlong32.
7131         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
7132         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
7133         * config/mips/mips.opt: New file.
7134
7135 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
7136
7137         * config.gcc (extra_options): New variable for listing option files.
7138         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
7139         * configure.ac (extra_opt_files): New AC_SUBST variable.
7140         (tm_file_list, tm_include_list): Include options.h first.
7141         * configure: Regenerate.
7142         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
7143         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
7144         (s-options-h): New rule.
7145         (options.h): Depend on it.
7146         (TEXI_GCCINT_FILES): Add options.texi.
7147         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
7148         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
7149         * target.h (gcc_target): Add default_target_flags and handle_option.
7150         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
7151         (TARGET_HANDLE_OPTION): New macros.
7152         (TARGET_INITIALIZER): Include them.
7153         * opt-functions.awk (opt_args, nth_arg): New functions.
7154         (switch_flags): Handle the "Target" flag.
7155         (var_args): Delete.
7156         (var_name): Use opt_args and nth_arg.
7157         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
7158         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
7159         macros for the "Mask" and "InverseMask" options.
7160         * opts.h (cl_var_cond): New enum.
7161         (cl_option): Replace the "has_set_value" and "set_value" fields with
7162         "var_cond" and "var_value".
7163         (CL_TARGET): New macro.
7164         (option_enabled, print_filtered_help): Declare.
7165         (decode_options): Move definition.
7166         * opts.c (handle_option): Search for the original option before
7167         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
7168         var_cond and var_value fields.  Use targetm.handle_option to handle
7169         target options.
7170         (decode_options): Set target_flags to targetm.default_target_flags.
7171         (print_filtered_help): Make global.  Handle CL_TARGET.
7172         (option_enabled): New function.
7173         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
7174         (display_target_options, set_target_switch, print_switch_values)
7175         (default_pch_valid_p): Guard uses of target_switches with
7176         #ifdef TARGET_SWITCHES.  Also...
7177         (display_target_options): Display the CL_TARGET entries in cl_options.
7178         (set_target_option): Don't complain about the "" option when
7179         TARGET_SWITCHES is undefined.
7180         (print_switch_values): Use option_enabled.
7181         (default_pch_valid_p): Check cl_options[] when looking for something
7182         that has changed the value of target_flags.
7183         * c.opt: Remove documentation from top of file.
7184         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
7185         * doc/sourecebuild.texi: Refer to the new options documentation
7186         instead of c.opt.  Document machine-specific .opt files.
7187         * doc/tm.texi (target_flags): Say that this variable is declared
7188         by options.h.
7189         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
7190         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
7191         an alternative.
7192         * doc/options.texi: New file.
7193
7194 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
7195
7196         PR middle-end/18628
7197         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
7198         register.
7199
7200 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
7201
7202         PR c++/20280
7203         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
7204         temporary variable of pointer type if an lvalues is required.
7205         (gimplify_modify_expr_rhs): Request an rvalue from it.
7206         (gimplify_expr): Pass fallback on.
7207
7208 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7209
7210         * cfgbuild.c: Update comments.
7211
7212 2005-03-14  Roger Sayle  <roger@eyesopen.com>
7213
7214         PR rtl-optimization/17236
7215         * optabs.c (expand_doubleword_mult): New helper function split out
7216         from expand_binop.  Permute the order in which instructions are
7217         emitted to minimize the number of simultaneously live registers.
7218         (expand_binop): Call expand_doubleword_mult to synthesize a double
7219         word multiplication.
7220
7221 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7222
7223         * basic-block.h: Update the prototypes of cached_make_edge and
7224         rtl_make_eh_edge.
7225         * cfg.c (cached_make_edge): Take edge_cache representing one
7226         row of the adjacency matrix of edges.
7227         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
7228         (make_edges): Initialize edge_cache to represent one row of
7229         the adjacency matrix of edges.
7230
7231 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7232
7233         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
7234         New functions.
7235         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
7236         Remove unused removed_phis variable.
7237         (conditional_replacement): Use build1/build2.
7238         (abs_replacement): Use last_and_only_stmt and build1/build2.
7239
7240 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7241
7242         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
7243         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
7244         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
7245         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
7246         * c-common.c (handle_novops_attribute): New function.
7247         (c_common_attribute_table): Add "no vops" entry.
7248         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
7249         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
7250         * tree-ssa-operands.c (get_call_expr_operands): Do not
7251         create virtual operands for calls with ECF_NOVOPS flag.
7252         * tree.h (DECL_IS_NOVOPS): New macro.
7253         (struct tree_decl): Add novops_flag.
7254         (ECF_NOVOPS): New constant.
7255
7256 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
7257
7258         PR target/17688
7259         * config/i386/i386.c (x86_use_himode_fiop): New.
7260         (x86_use_simode_fiop): Rename from x86_use_fiop.
7261         * config/i386/i386.h (x86_use_himode_fiop): Declare.
7262         (TARGET_USE_HIMODE_FIOP): New.
7263         (x86_use_simode_fiop): Rename from x86_use_fiop.
7264         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
7265
7266         * config/i386/i386.md (X87MODEI12): New mode macro define.
7267         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
7268         to implement x87 FP compare with HImode input operands.
7269         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
7270         Use X87MODEI12 mode macro to handle HImode input operands.
7271         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
7272         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
7273         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
7274         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
7275         macro to implement x87 operators with HImode input operands.
7276         (fop splitters): Use X87MODEI12 mode macro to handle HImode
7277         input operands.
7278
7279 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7280
7281         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
7282         integer_zerop.
7283         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
7284         constants invariant.
7285
7286 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7287
7288         * basic-block.h (BB_VISITED): Removed.
7289         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
7290
7291 2005-03-14  Falk Hueffner  <falk@debian.org>
7292
7293         PR bootstrap/20424
7294         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
7295
7296 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7297
7298         * ggc-zone.c: Fix comment typos.
7299
7300         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
7301         stringpool.c, config/mips/mips-protos.h: Update copyright.
7302
7303 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7304
7305         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
7306         throughout with its typedef, "rtx".
7307         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
7308         (rs6000_tls_symbol_ref_1): Remove inline keyword.
7309         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
7310         regs in comment to match code.
7311
7312 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7313
7314         * except.c (check_handled): Make it static.
7315         * except.h: Remove the corresponding prototype.
7316
7317         * function.c (get_func_frame_size): Make it static.
7318         * function.h: Remove the corresponding type.
7319
7320         * regclass.c (reg_class_superclasses, reg_class_subclasses):
7321         Make them static.
7322         * hard-reg-set.h: Remove the corresponding declarations.
7323
7324         * tree-cfg.c (verify_stmts): Check that
7325         bb_for_stmt (stmt) == bb for every PHI node and statement.
7326
7327 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7328
7329         * config.gcc: Remove excess indentation.
7330         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
7331
7332 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7333
7334         PR middle-end/19331
7335         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
7336         * fold-const.c (fold_sign_changed_comparison): Likewise.
7337         (fold_binary): Optimize comparisons against widened operands if
7338         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
7339
7340 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7341
7342         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
7343         (sparc_override_options): Initialize it.
7344         (sparc_struct_value_rtx): Set it on the MEM to be returned.
7345
7346 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
7347
7348         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
7349         (reg_or_none500mem_operand): New predicate.
7350         (zero_reg_mem_operand): New predicate.
7351         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
7352         to reg_or_none500mem_operand.
7353         (extendsfdf2_fpr): Add MEM alternative.
7354         (extenddftf2_internal): Change operand2 predicate to
7355         zero_reg_mem_operand.
7356
7357 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7358
7359         * ggc-zone.c: Rewritten.
7360
7361         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
7362         if there are none.
7363         * configure.ac: Define GGC_ZONE for --with-gc=zone.
7364         * config.in: Regenerated.
7365         * configure: Regenerated.
7366         * gengtype.c (write_types_process_field, write_func_for_structure):
7367         Pass new argument to gt_pch_note_object.
7368         * ggc-common.c (struct ptr_data): Add TYPE.
7369         (gt_pch_note_object): Take TYPE argument and save it.
7370         (call_count): Update call to ggc_pch_count_object.
7371         (call_alloc): Update call to ggc_pch_alloc_object.
7372         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
7373         file.
7374         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
7375         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
7376         (ggc_alloc_zone_stat): Delete.
7377         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
7378         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
7379         (ggc_pch_alloc_object): Update prototypes.
7380         (garbage_zone): Delete.
7381         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
7382         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
7383         pointers.
7384         (tree_id_zone): New variable.
7385         (ggc_alloc_cleared_zone): Remove unused.
7386         (ggc_alloc_zone): Define.
7387         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
7388         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
7389         ggc_alloc_zone_stat.
7390         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
7391         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
7392         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
7393         (make_node_stat): Likewise.  Use tree_id_zone.
7394
7395 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7396             Joseph S. Myers  <joseph@codesourcery.com>
7397
7398         * configure.ac: Check for MIPS TLS.
7399         * configure: Regenerated.
7400         * config/mips/mips-protos.h (enum mips_symbol_type): Add
7401         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
7402         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
7403         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
7404         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7405         (mips_classify_symbol, mips_symbolic_constant_p)
7406         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
7407         (mips_tls_operand_p, mips_call_tls_get_addr)
7408         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
7409         (mips_tls_symbol_ref_1): New functions.
7410         (mips_legitimize_address, mips_legitimize_const_move): Call
7411         mips_legitimize_tls_address.
7412         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
7413         for MIPS16.
7414         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
7415         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
7416         (mips_char_to_class): Document V1_REG.
7417         (HAVE_AS_TLS): Provide default.
7418         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
7419         constants.
7420         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
7421         !TARGET_ABICALLS.
7422         (tls_get_tp_<mode>): New instruction.
7423
7424 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7425
7426         * configure.ac: Update checks for target tools.
7427         * configure: Regenerated.
7428
7429 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7430
7431         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
7432
7433 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7434
7435         * expmed.c (expand_mult): Use synthetic multiplication sequences for
7436         more classes of DImode multiplication by constant.  Allow both
7437         multiplication by small negative constants (by performing a
7438         multiplication by a positive constant and negating the result) and
7439         multiplications by large powers of two, by using a left shift.
7440
7441 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7442
7443         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
7444         of basic blocks into work_stack.
7445
7446         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
7447         config/mips/vr.h: Update copyright.
7448
7449         * c-decl.c (c_init_decl_processing): Remove useless calls to
7450         build_function_type.
7451
7452         * builtins.c (fold_trunc_transparent_mathfn,
7453         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
7454         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
7455         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
7456         fold_builtin_strcpy, fold_builtin_strncpy,
7457         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
7458         TREE_TYPE (exp).
7459
7460         * builtins.c (expand_builtin_mathfn_3): Remove local variable
7461         before_call.
7462
7463         * lambda-code.c (lambda_compute_auxillary_space): Remove local
7464         variable determinant.
7465
7466         * tree-cfg.c (group_case_labels): Remove local variable type.
7467
7468         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
7469         variable ann.
7470
7471         * tree-ssa-phiopt.c (value_replacement): Remove local variable
7472         result.
7473
7474 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
7475
7476         PR target/18251
7477         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
7478         (*movmemqi_insn): Delete.
7479         (*movmemhi): Delete.
7480
7481 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7482
7483         * builtins.c (fold_builtin_classify): Take decomposed
7484         arguments of CALL_EXPR.
7485         (fold_builtin_1): Update a call to fold_builtin_classify.
7486
7487 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
7488
7489         PR c/20402
7490         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
7491         through into call to parser_xref_tag after parse error.
7492         (c_parser_struct_declaration): Consistently return NULL_TREE on
7493         error.
7494
7495 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
7496
7497         * tree-flow-inline.h (ref_contains_array_ref): New function.
7498         (lookup_subvars_for_var): Ditto.
7499         (get_subvars_for_var): Ditto.
7500         (var_can_have_subvars): Ditto.
7501
7502         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
7503         (struct subvar): New type.
7504
7505         * tree-dfa.c (okay_component_ref_for_subvars): New function.
7506
7507         * tree-optimize.c (init_tree_optimization_passes): Call
7508         pass_create_structure_vars.
7509
7510         * tree-ssa-alias.c: Include vec.h.
7511         (init_alias_info): Don't auto-clear call clobbered on struct-field
7512         tags.
7513         (compute_flow_insensitive_aliasing): Handle subvars.
7514         (group_aliases): Handle STRUCT_FIELD aliases.
7515         (setup_pointers_and_addressables): Ditto.
7516         Don't mark variables non-addressable if they still have
7517         addressable subvars.
7518         Also mark subvars addressable when the real variable is marked
7519         addressable.
7520         (add_pointed_to_var): Try to prune the pointed-to set by only
7521         pointing to subvars when possible.
7522         Otherwise, make sure we set addresses_needed and pt_vars to
7523         properly include subvars.
7524         (bitpos_of_field): New function.
7525         (push_fields_onto_fieldstack): Ditto.
7526         (get_or_create_used_part_for): Ditto.
7527         (create_overlap_variables_for): Ditto.
7528         (find_used_portions): Ditto.
7529         (create_structure_vars): Ditto.
7530         (pass_create_structure_vars): New structure.
7531
7532         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
7533         (get_expr_operands): Handle subvars.  Also try to turn
7534         COMPONENT_REF accesses into must-defs now that we can accurately
7535         portray it.
7536         (note_addressable): Try to only mark as addressable those subvars
7537         we know a COMPONENT_REF touches.
7538         (overlap_subvar): New function.
7539
7540         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
7541         Handle subvar storing.
7542         (vect_address_analysis): Update caller of vect_object_analysis.
7543
7544         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
7545
7546         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
7547         (STMT_VINFO_SUBVARS): New macro.
7548
7549         * common.opts: add flag_tree_salias.
7550
7551         * opts.c (decode_options): flag_tree_salias defaults to on.
7552
7553         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
7554
7555         * doc/tree-ssa.texi: Document structural alias analysis.
7556
7557 2005-03-12  Steven Bosscher  <stevenb@suse.de>
7558
7559         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
7560         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
7561         * tree-ssa-operands.c (get_expr_operands): Likewise.
7562         (get_expr_operands): Likewise for ERROR_MARK.
7563
7564 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7565
7566         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
7567         var.
7568
7569         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
7570         removed_phis.
7571
7572         * tree-ssa-pre.c (compute_avail): Remove local variable val.
7573         (mark_operand_necessary): Remove local variable ver.
7574
7575         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
7576         variable prefix_len.
7577
7578         * value-prof.c (mod_subtract_transform): Remove local variable
7579         value.
7580
7581         * builtins.c (fold_builtin_exponent): Take decomposed
7582         arguments of CALL_EXPR.
7583         (fold_builtin_1): Update a call to fold_builtin_exponent.
7584
7585         * builtins.c (fold_builtin_logarithm): Take decomposed
7586         arguments of CALL_EXPR.
7587         (fold_builtin_1): Update a call to fold_builtin_logarithm.
7588
7589         * c-decl.c (c_init_decl_processing): Remove local variables
7590         ptr_ftype_void and ptr_ftype_ptr.
7591
7592         * gimplify.c (gimplify_expr): Remove local variables r0 and
7593         r1.
7594
7595         * reg-stack.c (move_for_stack_reg): Remove local variable
7596         push_insn.
7597         (compare_for_stack_reg): Remove local variable flags_user.
7598         (convert_regs_1): Remove local variable deleted.
7599
7600         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
7601         variable new_cond.
7602         (combine_blocks): Remove local variables exits and new_e.
7603
7604         * tree-inline.c (expand_call_inline): Remove local variable
7605         decl.
7606
7607         * tree-ssa-live.c (create_ssa_var_map,
7608         calculate_live_on_entry): Remove local variable snn.
7609
7610 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
7611
7612         * c-lex.c (c_lex_with_flags): Add parameter to call to
7613         cpp_spell_token.
7614
7615 2005-03-11  Per Bothner  <per@bothner.com>
7616
7617         * c-tree.h (struct c_declarator): New id_loc field.
7618         * c-pragma.h (c_lex_with_flags): Take position reference.
7619         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
7620         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
7621         (c_lex): Pass dummy location to c_lex_with_flags.
7622         * c-parser.c (c_lex_one_token): Set c_token's location using
7623         c_lex_with_flags, instead of input_location, which might be "ahead".
7624         (c_parser_direct_declarator): Set declarator's id_loc from
7625         c_token's id_loc.
7626         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
7627         declarator's id_loc, rather than probably-imprecise input_location.
7628         (build_id_declarator): Initialize c_declarator's id_loc field.
7629
7630 2005-03-11  Roger Sayle  <roger@eyesopen.com>
7631
7632         PR middle-end/20419
7633         * builtins.c (expand_builtin_signbit): Force the signbit's word
7634         into an integer register to avoid SUBREGs of floating point modes.
7635
7636 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7637
7638         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
7639         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
7640         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
7641         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
7642
7643 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
7644
7645         PR rtl-optimization/20306
7646         * expr.c (emit_move_complex): Set try_int false if mode is
7647         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
7648         emit_block_move if try_int is true.
7649
7650 2005-03-11  Richard Henderson  <rth@redhat.com>
7651
7652         PR target/20415
7653         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
7654         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
7655         to match.
7656
7657 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7658
7659         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
7660         (TARGET_FIX_VR4130): New macro.
7661         (TARGET_OPTIONS): Add -mfix-vr4130.
7662         (ISA_HAS_MACCHI): New macro.
7663         (ASM_SPEC): Add -mfix-vr4130.
7664         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
7665         (override_options): Handle mips_fix_vr4130_string.
7666         (mips_avoid_hazards): Clear all_noreorder_p
7667         if we're working around VR4130 errata and the macc alternatives
7668         are not available.
7669         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
7670         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
7671         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
7672         (MULTILIB_DEFAULTS): Remove leading "march=".
7673         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
7674         if no architecture option is given.
7675         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
7676         VR4130 multilibs.
7677         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
7678         * doc/invoke.texi: Document -mfix-vr4130.
7679
7680 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7681
7682         * config/mips/mips.c (override_options): Only warn about -mint64
7683         deprecation if TARGET_INT64.
7684
7685 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7686
7687         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
7688         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
7689         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
7690         are non-specific regarding the nonnull parameter positions.
7691         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
7692         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
7693         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
7694         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
7695
7696         * builtins.def: Use the non-specific "nonnull" attibute lists.
7697
7698 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7699
7700         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7701         single_pred_edge, single_succ, single_pred): Improve comments.
7702
7703 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7704
7705         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7706         single_pred_edge, single_succ, single_pred): New inline functions.
7707         * bb-reorder.c (rotate_loop, find_traces_1_round,
7708         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
7709         duplicate_computed_gotos): Use the single_succ/pred functions.
7710         * cfganal.c (forwarder_block_p): Ditto.
7711         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7712         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7713         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
7714         merge_seq_blocks): Ditto.
7715         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
7716         * cfglayout.c (fixup_reorder_chain): Ditto.
7717         * cfgloop.c (mark_single_exit_loops, update_latch_info,
7718         canonicalize_loop_headers, verify_loop_structure): Ditto.
7719         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
7720         mfb_update_loops, create_preheader, force_single_succ_latches,
7721         create_loop_notes): Ditto.
7722         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
7723         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
7724         commit_one_edge_insertion, purge_dead_edges,
7725         cfg_layout_can_merge_blocks_p): Ditto.
7726         * except.c (sjlj_emit_function_enter): Ditto.
7727         * flow.c (init_propagate_block_info): Ditto.
7728         * function.c (thread_prologue_and_epilogue_insns): Ditto.
7729         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
7730         insert_insn_end_bb): Ditto.
7731         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
7732         find_if_case_2): Ditto.
7733         * lambda-code.c (perfect_nestify): Ditto.
7734         * lcm.c (optimize_mode_switching): Ditto.
7735         * loop-doloop.c (doloop_modify): Ditto.
7736         * loop-init.c (loop_optimizer_init): Ditto.
7737         * loop-iv.c (simplify_using_initial_values): Ditto.
7738         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
7739         * loop-unswitch.c (unswitch_loop): Ditto.
7740         * modulo-sched.c (generate_prolog_epilog): Ditto.
7741         * predict.c (combine_predictions_for_insn, estimate_probability,
7742         tree_estimate_probability, last_basic_block_p,
7743         estimate_bb_frequencies): Ditto.
7744         * profile.c (branch_prob): Ditto.
7745         * regrename.c (copyprop_hardreg_forward): Ditto.
7746         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
7747         * tracer.c (layout_superblocks): Ditto.
7748         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
7749         cfg_remove_useless_stmts_bb, cleanup_control_flow,
7750         cleanup_control_expr_graph, disband_implicit_edges,
7751         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
7752         tree_verify_flow_info, tree_make_forwarder_block,
7753         tree_forwarder_block_p, remove_forwarder_block,
7754         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
7755         * tree-if-conv.c (tree_if_conversion): Ditto.
7756         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7757         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
7758         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
7759         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
7760         copy_loop_headers): Ditto.
7761         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
7762         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
7763         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
7764         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
7765         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
7766         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
7767         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
7768         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
7769         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
7770         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
7771         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
7772         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
7773         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
7774         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
7775         slpeel_add_loop_guard): Ditto.
7776
7777 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
7778
7779         PR tree-optimization/15784
7780         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
7781         and -1 - A to ~A.
7782
7783         * stmt.c (expand_case): Don't change index_type.  Convert minval
7784         to the proper type.
7785
7786         PR tree-optimization/20130
7787         * fold-const.c (fold): Fold x * -1 into -x.
7788
7789 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7790
7791         PR rtl-optimization/20331
7792         * rtlanal.c (modified_between_p): Check its address first for MEM.
7793         (modified_in_p): Likewise.
7794
7795 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
7796
7797         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
7798
7799 2005-03-10  Steven Bosscher  <stevenb@suse.de>
7800
7801         * expr.c (expand_expr_real_1): If possible, use a conditional
7802         move for expanding MIN_EXPR and MAX_EXPR.
7803         Use temp for moving around rtx-en.
7804
7805 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
7806
7807         PR rtl-opt/20412
7808         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
7809         correct mode.
7810
7811 2005-03-10  Roger Sayle  <roger@eyesopen.com>
7812
7813         * builtins.c (expand_builtin_signbit): Extend to handle floating
7814         point modes wider than the largest integer type, using the
7815         operand_subword_force function to obtain the signbit's word.
7816
7817 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7818
7819         PR target/20322
7820         * combine.c (try_combine): If recog_for_combine added CLOBBERs
7821         to NEWI2PAT, fail to combine if they are used by NEWPAT.
7822
7823 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
7824
7825         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
7826
7827 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
7828
7829         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
7830         type void.
7831         (perform_edge_inserts): Unconditionally call
7832         free_dominator_info.
7833
7834         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
7835
7836 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
7837
7838         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
7839
7840 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
7841
7842         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
7843
7844         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
7845         gcc_unreachable.
7846         (rtl_register_value_prof_hooks,
7847         tree_value_profile_transformations,
7848         tree_register_value_prof_hooks): Likewise.
7849         * var-tracking.c (stack_adjust_offset_pre_post,
7850         variable_htab_free, variable_union, dataflow_set_different_2,
7851         count_uses, variable_was_changed, set_frame_base_location,
7852         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
7853         vt_add_function_parameters): Likewise.
7854         * varasm.c (named_section_real, named_section, make_decl_rtl,
7855         asm_emit_uninitialised, assemble_integer, decode_addr_const,
7856         const_hash_1, compare_constant, copy_constant, force_const_mem,
7857         output_constant_pool_2, output_constant_pool_1, output_constant,
7858         output_constructor, make_decl_one_only, decl_tls_model,
7859         default_no_named_section, default_elf_select_section_1,
7860         default_unique_section_1): Likewise.
7861         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
7862         * vmsdbgout.c (addr_const_to_string): Likewise.
7863
7864         PR c++/20375
7865         * function.c (struct assign_parm_data_one): Remove last_named
7866         field.
7867         (assign_parm_find_data_types): Don't determine last_named.
7868         Reorder named_parm determination.
7869         (assign_parms): Only setup varargs on the last non-varadic
7870         parameter.
7871
7872 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
7873
7874         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
7875         sda base address on medium model.
7876
7877 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
7878
7879         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
7880         * cfgloop.c (flow_loop_nodes_find): Export.
7881         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
7882         Declare.
7883         * cfgloopmanip.c (fix_loop_structure): New function.
7884         * predict.c (predict_loops): Clean up the loops information.
7885         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
7886         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
7887         loop structure.
7888         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
7889         (rewrite_into_loop_closed_ssa): Declaration changed.
7890         * tree-loop-linear.c (linear_transform_loops): Add argument to
7891         rewrite_into_loop_closed_ssa call.
7892         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
7893         * tree-ssa-loop-im.c (move_computations): Ditto.
7894         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
7895         * tree-vectorizer.c (vectorize_loops): Ditto.
7896         * tree-optimize.c: Include cfgloop.h.
7897         (execute_todo): Choose whether to call cleanup_tree_cfg or
7898         cleanup_tree_cfg_loop.
7899         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
7900         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
7901         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
7902         cleanup_tree_cfg_loop call.
7903         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
7904         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
7905         work on part of cfg.
7906
7907 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7908
7909         PR inline-asm/20314
7910         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
7911         with multiple alternatives.
7912
7913         * stmt.c (parse_output_constraint): Fix a typo.
7914
7915 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
7916
7917         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
7918         assembly directive instead of deprecated "no-generics".
7919
7920 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
7921
7922         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
7923         for non-offsettable memory references to cope with outstanding reload
7924         replacements.
7925         * config/s390/s390.md ("reload_outti"): Call find_replacement to
7926         avoid losing outstanding address reloads.
7927         ("reload_outdi", "reload_outdf"): Likewise.
7928
7929 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7930
7931         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
7932         code.  Add more cbrt transformations.
7933
7934 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7935
7936         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
7937
7938 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7939
7940         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
7941         NULL_TREE when a given tree is not simplified.
7942         (fold): Return the original tree when any of the functions
7943         mentioned above NULL_TREE.
7944
7945         * fold-const.c (fold_unary, fold_binary): Take decomposed
7946         arguments, code, type, op0, and op1 in case of fold_binary.
7947         (fold): Update calls to fold_unary and fold_binary.
7948
7949 2005-03-09  Roger Sayle  <roger@eyesopen.com>
7950
7951         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
7952         a fndecl and an arglist instead of a CALL_EXPR, exp.
7953
7954 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7955
7956         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
7957
7958         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
7959
7960         * expr.c (expand_assignment): Remove orig_to_rtx.
7961
7962         * fold-const.c (int_const_binop): Remove no_overflow.
7963
7964         * ifcvt.c (noce_emit_move_insn): Remove inmode.
7965
7966         * loop-iv.c (get_biv_step_1): Remove lhs.
7967
7968         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
7969
7970         * real.c (real_nan): Remove neg.
7971
7972         * function.c (thread_prologue_and_epilogue_insns): Remove i
7973         and newinsn.
7974
7975         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
7976         tb.
7977
7978         * tree-eh.c (tree_could_trap_p): Remove idx.
7979
7980         * tree-into-ssa.c (ann): Remove ann.
7981
7982         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
7983
7984         * tree-sra.c (decide_block_copy): Remove inst_count.
7985
7986         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
7987
7988         * tree-ssa-loop-im.c (lhs): Remove.
7989
7990         * cfgbuild.c (state, STATE, SET_STATE,
7991         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
7992         make_edges.
7993         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
7994         (find_basic_blocks): Set the state of each basic block to
7995         BLOCK_NEW.
7996
7997 2005-03-08  Jeff Law  <law@redhat.com>
7998
7999         * tree-cfg.c (cleanup_control_flow): If removal of a computed
8000         goto results in the removal of edges in the CFG, then we need
8001         to recompute dominators.
8002
8003 2005-03-09  Ben Elliston  <bje@au.ibm.com>
8004
8005         * c-common.c (c_do_switch_warnings): Comment fix.
8006
8007 2005-03-08  Julian Brown  <julian@codesourcery.com>
8008
8009         * Patch from 2005-03-08 reverted for causing regressions and
8010         ppc-darwin bootstrap failure.
8011
8012 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
8013
8014         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
8015         Define the real function for ppc-darwin.
8016         * c-typeck.c (convert_arguments): Check for target-specific
8017         invalid argument call to unprototyped function.
8018         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
8019         New Macro.
8020         * target.h (invalid_arg_for_unprototyped_fn): New field
8021         in struct calls.
8022         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
8023         default target hook.
8024         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
8025         Declare.
8026
8027 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8028
8029         * c-typeck.c (constructor_stack, constructor_range_stack,
8030         initializer_stack): Make them static.
8031
8032         * cfg.c (rbi_pool): Make it static.
8033
8034         * gimple-low.c (lower_stmt_body): Make it static.
8035         * tree-flow.h: Remove the corresponding prototype.  Don't
8036         declare lower_data.
8037
8038         * sched-deps.c (cache_size): Make it static.
8039
8040         * stor-layout.c (lang_adjust_rli): Make it static.
8041
8042 2005-03-08  Julian Brown  <julian@codesourcery.com>
8043
8044         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
8045         from being used for symbols with vague linkage when
8046         HAVE_GAS_COMDAT_GROUP is true.
8047
8048 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
8049
8050         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
8051         nlabel == JUMP_LABEL (jump).
8052
8053 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8054
8055         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
8056         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
8057         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
8058         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
8059
8060 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
8061
8062         PR c/14411
8063         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
8064         * c-common.c (handle_returns_twice): New function.
8065         (c_common_attribute_table): Declare eturns_twice' attribute.
8066         * doc/extend.texi: Document eturns_twice' attribute.
8067         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
8068         (struct tree_decl): Add returns_twice_flag.
8069
8070 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8071
8072         * tree-ssa-phiopt.c: Fix a comment typo.
8073
8074         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
8075         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
8076         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
8077         copyright.
8078
8079 2005-03-08  Richard Henderson  <rth@redhat.com>
8080
8081         * config/alpha/alpha.c (code_for_builtin): Replace special-case
8082         builtin codes with ctzdi2, clzdi2, popcountdi2.
8083         (struct alpha_builtin_def): Add is_const.
8084         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
8085         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
8086         (alpha_init_builtins): Init them.  Set nothrow and const attributes
8087         on builtins.
8088         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
8089         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
8090         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
8091         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
8092         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
8093         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
8094         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
8095         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
8096         (TARGET_FOLD_BUILTIN): New.
8097         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
8098         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
8099         (ffsdi2): Use ctz.
8100         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
8101
8102 2005-03-08  Ira Rosen  <irar@il.ibm.com>
8103
8104         PR tree-optimization/20122
8105         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
8106         condition of access function instead of base.
8107
8108 2005-03-07  Jeff Law  <law@redhat.com>
8109             Steven Bosscher  <stevenb@suse.de>
8110
8111         * tree-cfg.c (find_taken_edge_computed_goto): New function.
8112         (find_taken_edge): Call find_taken_edge_computed_goto as
8113         appropriate.  Allow any gimple invariant rather than just
8114         INTEGER_CST for VAL.
8115         (cleanup_control_flow): Cleanup a computed goto which has turned
8116         into a simple goto.
8117         (tree_merge_blocks): If block B has any forced labels, move
8118         them to the start of block A.
8119         * tree-ssa-dom.c (thread_across_edge): Allow threading across
8120         computed gotos as well.
8121         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
8122         removal of unnecessary computed gotos too.
8123         (lookup_redirection_data): Fix type of INSERT argument.  Callers
8124         updated.
8125
8126 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8127
8128         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
8129         Remove trailing spaces.
8130
8131         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
8132         unshare_all_trees): Make them static.
8133         * tree-gimple.h: Remove the corresponding prototypes.
8134
8135         * diagnostic.h: Remove unused prototype
8136         debug_output_buffer.
8137         * modulo-sched.c: Remove unused prototype
8138         set_row_column_for_ps.
8139
8140         * tree-ssa-phiopt.c (tree_ssa_phiopt,
8141         replace_phi_edge_with_variable): Remove unused variable i.
8142
8143 2005-03-07  Per Bothner  <per@bothner.com>
8144
8145         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
8146
8147 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
8148
8149         PR tree-opt/17671
8150         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
8151         bbs on the COND_EXPR instead of the PHI_NODEs.
8152         (candidate_bb_for_phi_optimization): Remove.
8153         (replace_phi_with_stmt): Rename to ...
8154         (replace_phi_edge_with_variable): this and change so that we
8155         replace the phi argument instead of removing the PHI.
8156         (conditional_replacement): Change so we deal with PHI with more
8157         than two arguments.
8158         (value_replacement): Likewise.
8159         (abs_replacement): Likewise.
8160
8161 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
8162
8163         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
8164         output_e500_flip_gt_bit.
8165
8166         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
8167         as bit 31.
8168         (rs6000_generate_compare): Fix logic to look at the correct bits.
8169         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
8170         Look at GT bit.
8171         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
8172         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
8173         gen_move_from_CR_gt_bit.
8174
8175         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
8176         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
8177         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
8178
8179         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
8180         (E500_CR_IOR_COMPARE): New constant.
8181
8182 2005-03-08  Earl Chew <earl_chew@agilent.com>
8183             David Billinghurst <David.Billinghurst@riotinto.com>
8184
8185         * config/i386/host-cygwin.c: New file to support precompiled
8186         headers on cygwin
8187         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
8188         * config.host: Use above files for cygwin host.
8189
8190 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
8191
8192         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
8193         ordering ops from earlier change.
8194
8195 2005-03-07  Per Bothner  <per@bothner.com>
8196
8197         Various fixes to allow us to again build if --enable-mapped-location:
8198         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
8199         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
8200         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
8201         local variable loc. Change logic appropriately.
8202         * tree-vect-transform.c (vect_finish_stmt_generation): Use
8203         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
8204         * c-parser.c (c_parser_for_statement): Initialize loc variable.
8205         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
8206         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
8207
8208 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
8209
8210         PR rtl-optimization/19683
8211         * reload1.c (choose_reload_regs): Pass the number of bits, not the
8212         number of bytes, to smallest_int_for_mode.  Fix arguments to
8213         REG_CANNOT_CHANGE_MODE_P.
8214
8215 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8216
8217         * reorg.c (relax_delay_slots): Check that the jump is
8218         conditional before trying to invert it.
8219
8220 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8221
8222         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
8223         Make them static.
8224
8225         * calls (stack_arg_under_construction): Make it static.
8226
8227         * flow.c (regs_live_at_setjmp): Make it static.
8228         * flow.h: Remove the corresponding prototype.
8229
8230         * reload1.c (reload_startobj, reload_firstobj,
8231         something_needs_operands_changed, reload_inherited,
8232         reload_inheritance_insn, reload_override_in,
8233         reload_spill_index): Make them static.
8234
8235         * recog.c (verify_changes): Make it static.
8236         * recog.h: Remove the corresponding prototype.
8237
8238         * cfgbuild.c (find_sub_basic_blocks): Remove.
8239         * basic-block.h: Remove the corresponding prototype.
8240         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
8241         in comments.
8242         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
8243
8244         * tree-ssa-operands.c (check_build_stmt): Remove.
8245
8246         * stor-layout.c (set_alignment): Remove.
8247         * tree.h: Remove the corresponding prototype.
8248
8249         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
8250
8251         * tree-ssa-dce.c (control_dependence_map,
8252         visited_control_parents): Make them static.
8253
8254         * cfghooks.c (verify_flow_info): Remove local variable
8255         num_bb_notes.
8256
8257         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
8258         last_bb_seen.
8259
8260         * loop-unswitch.c (unswitch_loop): Remove local variable src.
8261
8262 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
8263
8264         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
8265
8266 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
8267
8268         * config/ia64/hpux.h (LINK_SPEC): Add -z.
8269         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
8270         PARALLEL for an empty structure.
8271
8272 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8273
8274         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
8275
8276         * fold-const.c (fold_binary): Unroll the very first "for"
8277         loop.
8278
8279 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
8280
8281         * config/rs6000/predicates.md (branch_comparison_operator): Remove
8282         redundant match_code test.
8283         (scc_comparison_operator): Swap match_operand and match_code
8284         tests.
8285         (branch_positive_comparison_operator): Same.
8286         (trap_comparison_operator): Use comparison_operator and swap with
8287         match_code test.
8288
8289 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8290
8291         PR target/20288
8292         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
8293         (out_movhi_r_mr): Read low byte of volatile MEM first.
8294         (out_movhi_mr_r): Write high byte of volatile MEM first.
8295
8296 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8297
8298         * cselib.c (reg_values, reg_values_size): Make them static.
8299
8300         * cse.c (cse_reg_info_table): Make it static.
8301
8302         * fold-const.c (fold_unary): Use build1 instead of copy_node.
8303
8304 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
8305
8306         * cse.c (find_best_addr): Use canon_for_address.
8307
8308 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8309
8310         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
8311         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
8312         SUBREG and MEM, respectively.
8313
8314         * fold-const.c (fold_binary): Use code instead of t.
8315
8316         * fold-const.c (optimize_minmax_comparison): Take decomposed
8317         arguments code, type, op0, and op1 instead of t.
8318         (fold_binary): Update a call to optimize_minmax_comparison.
8319
8320         * fold-const.c (fold_range_test): Take decomposed arguments
8321         code, type, op0, and op1 instead of t.
8322         (fold_binary): Update a call to fold_range_test.
8323
8324         * fold-const.c (fold_binary_op_with_conditional_arg): Take
8325         decomposed arguments code, type, op0, and op1 instead of t.
8326         (fold_binary): Update a call to fold_range_test.
8327
8328 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8329
8330         * fold-const.c (fold_binary): Avoid directly using the original
8331         expression t as much as possible.
8332
8333 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8334
8335         * c-semantics.c (build_stmt): Use TYPE_P instead of
8336         IS_NON_TYPE_CODE_CLASS.
8337         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
8338         (NON_TYPE_CHECK): Use TYPE_P instead of
8339         IS_NON_TYPE_CODE_CLASS.
8340
8341         * fold-const.c (fold): Remove handling of binary expressions.
8342
8343 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
8344
8345         * doc/c-tree.texi: Wrap comments in @r{}.
8346         * doc/cpp.texi: Likewise.
8347         * doc/cppinternals.texi: Likewise.
8348         * doc/extend.texi: Likewise.
8349         * doc/md.texi: Likewise.
8350         * doc/objc.texi: Likewise.
8351         * doc/sourcebuild.texi: Likewise.
8352         * doc/tm.texi: Likewise.
8353         * doc/tree-ssa.texi
8354
8355 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8356
8357         * predict.c (apply_return_prediction): Standardize PHI chain
8358         walking.
8359         * tree-ssa.c (ssa_redirect_edge): Likewise.
8360
8361         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
8362         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
8363         Update copyright.
8364
8365         * tree-phinodes.c (remove_phi_node): Drop the last argument.
8366         * tree-flow.h: Adjust the prototype for remove_phi_node.
8367         * lambda-code.c (perfect_nestify): Adjust a call to
8368         remove_phi_node.
8369         * tree-cfg.c
8370         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
8371         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
8372         Likewise.
8373         * tree-ssa-dce.c (remove_dead_phis): Likewise.
8374         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
8375         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8376         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
8377
8378         * combine.c (simplify_and_const_int): Use gen_int_mode instead
8379         of GEN_INT (trunc_int_for_mode (...)).
8380         * loop-iv.c (iv_number_of_iterations): Likewise.
8381         * postreload.c (reload_cse_move2add): Likewise.
8382         * simplify-rtx.c (simplify_const_unary_operation,
8383         simplify_const_binary_operation): Likewise.
8384         * stor-layout.c (get_mode_bounds): Likewise.
8385
8386         * fold-const.c (fold_binary): New.
8387         (fold): Call fold_binary on binary expressions.
8388
8389 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
8390
8391         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
8392         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
8393         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
8394         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
8395         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
8396
8397 2005-03-04  Devang Patel  <dpatel@apple.com>
8398
8399         PR tree-optimization/18815
8400         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8401         loops with zero exit edges.
8402
8403 2005-03-04  Devang Patel  <dpatel@apple.com>
8404
8405         * doc/invoke.texi: Remove reference to webpage that does not exist.
8406
8407 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
8408             Joseph S. Myers  <joseph@codesourcery.com>
8409
8410         PR c++/19797
8411         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
8412         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
8413         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
8414         * pa.c (get_plabel): Change argument to symbol_ref.  Call
8415         maybe_get_identifier instead of get_identifier.
8416         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
8417         (struct deferred_plabel): Replace name field with symbol field.
8418         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
8419         ASM_OUTPUT_EXTERNAL_REAL is defined.
8420         (output_global_address): Use output_addr_const for output of all
8421         symbol_refs.
8422         (output_deferred_plabels): Use symbol_ref instead of name for address
8423         output.
8424         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
8425         ASM_OUTPUT_SYMBOL_REF): New macros.
8426         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
8427         comment.
8428         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
8429         label.
8430
8431 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
8432
8433         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
8434         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
8435
8436 2005-03-04  Jeff Law  <law@redhat.com>
8437
8438         * basic-block.h (rediscover_loops_after_threading): Declare.
8439         * tree-ssa-dom.c: Include cfgloop.h.
8440         (tree_ssa_dominator_optimize): Discover loops and some basic
8441         properties.  Remove forwarder blocks recreated by loop header
8442         canonicalization.  Also mark backedges in the CFG.
8443         * tree-ssa-threadupdate.c: Include cfgloop.h
8444         (rediscover_loops_after_threading): Define.
8445         (struct local_info): New field, JUMP_THREADED.
8446         (prune_undesirable_thread_requests): New function.
8447         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
8448         then record that fact for the callers of redirct_edges.
8449         (thread_block): If BB has incoming backedges, then call
8450         prune_undesirable_thraed_requests.    Note when we are
8451         going to have to rediscover loop information.  Return a
8452         boolean indicating if any jumps were threaded.
8453         (thread_through_all_blocks): Bubble up boolean indicating
8454         if any jumps were threaded.
8455         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
8456         (tree-ssa-threadupdate.o): Similarly.
8457
8458 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8459
8460         * fold-const.c (fold_ternary): Unroll the "for" loop to
8461         extract operands.
8462
8463 2005-03-04  Andrew Haley  <aph@redhat.com>
8464
8465         * unwind-dw2-fde-glibc.c (struct
8466         unw_eh_callback_data.check_cache): New field.
8467         (frame_hdr_cache): New.
8468         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
8469         Cache frame header info.
8470
8471 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
8472
8473         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8474         (print_c_condition): Declare.
8475         * read-rtl.c (ptr_loc): New structure.
8476         (ptr_locs, ptr_loc_obstack, joined_conditions)
8477         (joined_conditions_obstack): New variables.
8478         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
8479         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8480         (join_c_conditions, print_c_condition): New functions.
8481         (apply_macro_to_string): Associate the new string with the same
8482         source location as the old one.
8483         (add_condition_to_string): Use join_c_conditions.
8484         (read_string): Use set_rtx_ptr_loc to record a filename and line
8485         number for the string.
8486         (read_rtx): Initialize the new variables above.
8487         * genattrtab.c (write_test_expr, write_attr_value): Use
8488         print_c_condition.
8489         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
8490         comment above the GCC_VERSION check.
8491         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
8492         Inline the definition of MAYBE_EVAL.
8493         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
8494         * genoutput.c (process_template): Likewise.
8495         * genpreds.c (write_predicate_subfunction): Likewise.
8496         (write_predicate_expr): Use print_c_condition.
8497         * genrecog.c (write_cond): Likewise.
8498         * gensupport.c (process_rtx): Use join_c_conditions to join the
8499         conditions of a define_insn_and_split.  Record a source location
8500         for the string after the "&&".
8501         (alter_test_for_insn): Use join_c_conditions.
8502
8503 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
8504
8505         Revert for now:
8506         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8507         PR tree-optimization/15784
8508         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8509         and -1 - A to ~A.
8510
8511 2005-03-04  Ben Elliston  <bje@au.ibm.com>
8512
8513         * gcc.c (option_map): Add --coverage.
8514         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
8515         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
8516         * config/darwin.h: Pass -lgcov for `coverage'.
8517         * doc/invoke.texi (Debugging Options): Document --coverage.
8518
8519 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8520
8521         * gcse.c (bypass_block): Use find_edge wherever possible.
8522
8523 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
8524
8525         Fix PR debug/20253
8526
8527         * c-opts.c (c_common_parse_file): Call start_source_file
8528         and end_source_file at the approriate times.
8529
8530         * dwarf2out.c (dwarf2out_finish): Don't auto-end
8531         the main file, it will be done for us now.
8532
8533 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8534
8535         * fold-const.c (fold_ternary): New.
8536         (fold): Call fold_ternary on ternary expressions.  Remove
8537         handling of ternary expressions.
8538
8539 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8540
8541         PR tree-optimization/15784
8542         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8543         and -1 - A to ~A.
8544
8545 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
8546
8547         * config/rs6000/predicates.md (branch_comparison_operator):
8548         Convert from C block to conditional format.
8549
8550 2005-03-03  Jan Hubicka  <jh@suse.cz>
8551
8552         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
8553         and non-constant public variables.
8554
8555 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8556
8557         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
8558         with LABEL_EXPR.
8559
8560         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
8561         EDGE_I.
8562
8563         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
8564         calls to release_ssa_name and release_phi_node.
8565
8566         * fold-const.c (fold): Remove handling of unary expressions.
8567
8568         * fold-const.c (fold_unary): Avoid directly using the original
8569         expression t as much as possible.
8570
8571 2005-03-03  Roger Sayle  <roger@eyesopen.com>
8572             Andrew Pinski  <pinskia@physics.uc.edu>
8573
8574         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
8575         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
8576
8577 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
8578
8579         Describe special registers SRP and MOF as allocatable registers.
8580         * config/cris/cris.c (cris_md_asm_clobbers): New function.
8581         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
8582         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
8583         TARGET_HAS_MUL_INSNS.
8584         (cris_print_operand) <case 'd'>: New case.
8585         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
8586         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
8587         define.
8588         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
8589         (REG_ALLOC_ORDER): Update for MOF.
8590         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
8591         SPECIAL_REGS.
8592         (GENERAL_REGS): No longer a define of ALL_REGS.
8593         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
8594         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
8595         Adjust accordingly.
8596         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
8597         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
8598         (SECONDARY_RELOAD_CLASS): Define.
8599         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
8600         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
8601         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
8602         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
8603         (REGISTER_MOVE_COST): Define.
8604         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
8605         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
8606         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
8607         (CRIS_MOF_REGNUM): New define_constants.
8608         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
8609         special registers.
8610         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
8611         New patterns.
8612         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
8613         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
8614         Adjust for MOF being properly described as a register.
8615         (indir_to_reg_split): Name this split.  Conditionalize on the
8616         destination register being a general register.
8617         (movei): Conditionalize on on operands 0 and 1 having the same
8618         register class.
8619
8620 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
8621
8622         PR target/20277
8623         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
8624         -mcpu to override any other explicitly given flags.
8625
8626 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
8627
8628         * recog.c (verify_changes, confirm_change_group): New functions,
8629         broken out of apply_change_group.
8630         (apply_change_group): Use them.
8631         * recog.h (verify_change, confirm_change_group): Declare.
8632         * rtl.h (redirect_jump_2): Declare.
8633         * jump.c (redirect_exp, invert_exp): Delete.
8634         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
8635         (redirect_jump_2): New function, broken out of redirect_jump.
8636         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
8637         (invert_jump): Use invert_jump_1 and redirect_jump_2.
8638         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
8639
8640 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
8641
8642         * varasm.c (named_section): Use xstrdup rather than doing it by
8643         hand.
8644
8645         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
8646
8647 2005-03-02  Devang Patel  <dpatel@apple.com>
8648
8649         Undo PR tree-optimization/18815 fix.
8650
8651 2005-03-02  Devang Patel  <dpatel@apple.com>
8652
8653         PR tree-optimization/18815
8654         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8655         loops with zero exit edges.
8656
8657 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8658
8659         * cfg.c (connect_src, connect_dest, disconnect_src,
8660         disconnct_dest): New.
8661         (unchecked_make_edge, remove_edge, redirect_edge_succ,
8662         redirect_edge_pred): Use the new functions.
8663
8664         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
8665         free_dominance_info only when needed.
8666
8667 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
8668
8669         PR target/20276
8670         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
8671         (reg_or_sub_cint64_operand): Same.
8672
8673 2005-03-02  Jeff Law  <law@redhat.com>
8674
8675         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
8676         CFG_ALTERED in the main DOM iteration loop.
8677
8678 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
8679
8680         PR c++/19916
8681         * varasm.c (initializer_constant_valid_p): Allow conversions
8682         between OFFSET_TYPEs.  Tidy.
8683
8684 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
8685
8686         * config/cris/cris.md ("return"): Remove epilogue delay list
8687         sanity check.
8688
8689 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
8690
8691         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
8692         for Thumb.
8693         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
8694
8695 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8696
8697         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
8698         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
8699         config/m68k/m68k.c, config/mips/mips.h,
8700         config/rs6000/rs6000-protos.h, doc/contrib.texi,
8701         doc/include/gcc-common.texi: Update copyright.
8702
8703         PR middle-end/18029 and PR middle-end/18030
8704         * expr.c (optimize_bitfield_assignment_op): Add a special case
8705         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
8706
8707         * fold-const.c (fold_unary): New.
8708         (fold): Call fold_unary on unary expressions.
8709
8710 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
8711
8712         * cgraph.h (struct cgraph_edge): Add prev_caller and
8713         prev_callee fields.
8714         (cgraph_node_remove_callees): Export.
8715         * cgraph.c (cgraph_create_edge): Initialize prev_caller
8716         and prev_callee.
8717         (cgraph_edge_remove_callee): New function.
8718         (cgraph_edge_remove_caller): Likewise.
8719         (cgraph_remove_edge): Use.
8720         (cgraph_redirect_edge_callee): Likewise.
8721         (cgraph_node_remove_callees): New function.
8722         (cgraph_node_remove_callers): Likewise.
8723         (cgraph_remove_node): Use.
8724         * tree-optimize.c (tree_rest_of_compilation): Use
8725         cgraph_node_remove_callees instead of manual loop.
8726         * cgraphunit.c (cgraph_finalize_function): Likewise.
8727         (cgraph_expand_function): Likewise.
8728         (cgraph_remove_unreachable_nodes): Likewise.
8729
8730 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
8731
8732         PR c/8927
8733         * c-tree.h (undeclared_variable, build_external_ref): Add extra
8734         argument.
8735         * c-decl.c (undeclared_variable): Take location as argument.
8736         * c-typeck.c (build_external_ref): Likewise.
8737         * c-parser.c (c_parser_postfix_expression): Pass location of
8738         identifier to build_external_ref.
8739
8740 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8741
8742         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
8743         CCEQ mode for branch_positive_comparison_operator test.
8744         * config/rs6000/predicates (branch_comparison_operator): Revert to
8745         define_predicate.
8746         (scc_comparison_operator): Same.
8747         (branch_positive_comparison_operator): Same.
8748
8749 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
8750
8751         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
8752         (cris_delay_slots_for_epilogue): Remove.
8753         (save_last): Move into cris_target_asm_function_epilogue.
8754         (cris_target_asm_function_epilogue): Remove tests for file being
8755         NULL.
8756         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
8757         (cris_delay_slots_for_epilogue): Remove prototypes.
8758         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
8759         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
8760
8761 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8762
8763         * config/rs6000/predicates.md (branch_comparison_operator): Change
8764         to define_special_predicate.
8765         (scc_comparison_operator): Same.
8766         (branch_positive_comparison_operator): Same.
8767
8768 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
8769
8770         * Makefile.in (tree-ssa-sink.o): New.
8771         (OBJS-common): Add tree-ssa-sink.o.
8772         * common.opt: Add -ftree-sink
8773         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
8774         * timevar.def (TV_TREE_SINK): new timevar.
8775         * tree-flow.h (is_hidden_global_store): Prototype.
8776         * tree-optimize.c (init_tree_optimization_passes): Add
8777         pass_sink_code.
8778         * tree-pass.h (pass_sink_code): New.
8779         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
8780         for non-obvious global store store to is_hidden_global_store, and
8781         call that new function.
8782         * tree-ssa-sink.c: New file.
8783         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
8784         * doc/passes.texi: Document forward store motion.
8785         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
8786         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
8787         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
8788         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
8789
8790 2005-03-01  Per Bothner  <per@bothner.com>
8791
8792         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
8793         and we have a non-zero column-number, add it to the message.
8794         Also factor out the diagnostic_kind_text.
8795
8796 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
8797
8798         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8799         flow_loop_pre_header_scan, flow_loop_pre_header_find,
8800         flow_loop_scan): Removed.
8801         (flow_loop_dump): Do not dump removed fields.
8802         (flow_loop_free): Do not free removed fields.
8803         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
8804         (loop_exit_edge_p): New function.
8805         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
8806         num_pre_header_edges, entry_edges, num_entries, exit_edges,
8807         num_exits, exits_doms.
8808         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
8809         LOOP_EDGES, LOOP_ALL): Removed.
8810         (flow_loop_scan): Declaration removed.
8811         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
8812         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
8813         flow_loops_find.
8814         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
8815         (if_convert): Call flow_loops_find and flow_loops_free
8816         when calling mark_loop_exit_edges.
8817         * cfgloopanal.c (mark_loop_exit_edges): Moved from
8818         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
8819         free_dominance_info calls.
8820         * loop-init.c (flow_loops_find): Ditto.
8821         * passes.c (rest_of_handle_branch_prob): Ditto.
8822         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
8823         * loop-unroll.c (analyze_insns_in_loop): Do not use
8824         EDGE_LOOP_EXIT.
8825         * predict.c (predict_loops): Do not call flow_loop_scan.
8826         Use get_loop_exit_edges.
8827         (tree_estimate_probability): Do not pass flags to flow_loops_find.
8828         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
8829         Do not use EDGE_LOOP_EXIT.
8830         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
8831         to bb_with_exit_edge_p.
8832         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
8833         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
8834         to bb_with_exit_edge_p.
8835         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
8836         EDGE_LOOP_EXIT.
8837         * tree-loop-linear.c (linear_transform_loops): Do not call
8838         flow_loop_scan.  Use loop->single_exit.
8839         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
8840         (vect_analyze_loop_form): Do not call flow_loop_scan.
8841         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
8842         loop->single_exit.
8843         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
8844         loop->single_exit.
8845         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
8846         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
8847         slpeel_tree_duplicate_loop_to_edge_cfg,
8848         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
8849         Use loop_preheader_edge and loop->single_exit.  Do not call
8850         flow_loop_scan.
8851
8852 2005-03-01  Nick Clifton  <nickc@redhat.com>
8853
8854         * config/arm/arm.c (thumb_find_work_register): Check all of the
8855         argument registers to see if they are free, and a couple of
8856         special cases where the last argument register but can be proved
8857         to be available during the function's prologue.
8858         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
8859         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
8860         thumb_unexpanded_epilogue): Use unsigned long as the type for the
8861         register bit-mask.
8862         (thumb_compute_save_reg_mask): Likewise.  Also use
8863         thumb_find_work_register() to ensure that there is agreement about
8864         which work register is going to be used in the prologue.
8865         (thumb_output_function_prologue): Use unsigned long as the type
8866         for the register bit-mask.  Also delay pushing the link register if
8867         other high registers are going to be pushed.
8868         (thumb_compute_save_reg_mask, emit_multi_reg_push,
8869         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
8870         redundant prototypes.
8871
8872 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
8873
8874         PR target/19819
8875         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
8876         and after reload in REG+REG indexed addresses without REG_POINTER
8877         set in the base and not set in the index.
8878
8879 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8880
8881         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
8882         Don't undefine here.
8883         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
8884         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
8885         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
8886         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
8887         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
8888         Delete.
8889         * config.gcc (sh*-*-linux*): Use config/linux.h.
8890
8891 2005-02-28  Dale Johannesen  <dalej@apple.com>
8892             Stan Shebs  <shebs@apple.com>
8893
8894         Rewrite of 64-bit Darwin structure-by-value pass/return.
8895         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
8896         intoffset, use_stack, named.
8897         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
8898         (rs6000_darwin64_record_arg_advance_flush):  New.
8899         (rs6000_darwin64_record_arg_advance_recurse): New.
8900         (rs6000_darwin64_record_arg_flush):  New.
8901         (rs6000_darwin64_record_arg_recurse):  New.
8902         (rs6000_darwin64_record_arg):  New.
8903         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
8904         (function_arg_boundary):  Handle 128-bit aligned structs.
8905         (function_arg_advance):  Rewrite darwin64 struct handling.
8906         (function_arg):  Call rs6000_darwin64_record_arg.
8907         (function_arg_partial_nregs):  Handle darwin64 structs.
8908         (rs6000_darwin64_function_value):  Remove.
8909         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
8910
8911 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8912
8913         PR tree-optimization/20216
8914         * tree-chrec.c (tree_fold_factorial): Delete.
8915         (tree_fold_binomial): Change argument list to take a return type
8916         and change the type of K to unsigned int.  Rewrite to avoid explicit
8917         evaluation of factorials, and (recursively) calling fold to perform
8918         compile-time arithmetic.  Return NULL on (internal) overflow.
8919         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
8920         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
8921         if any intermediate calculation overflows.
8922         (chrec_apply): Update call to chrec_evaluate.
8923
8924 2005-02-28  James E Wilson  <wilson@specifixinc.com>
8925
8926         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
8927
8928 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
8929
8930         PR c/20245
8931         * c-parser.c (c_parser_compound_statement): Return error_mark_node
8932         instead of NULL_TREE on error.
8933
8934 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
8935
8936         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
8937         (EASY_VECTOR_15_ADD_SELF): Remove.
8938         (num_insns_constant_wide): Not static.
8939         (validate_condition_mode): Not static.
8940         (toc_relative_expr_p): Not static.
8941         (legitimate_indirect_address_p): Not static.
8942         (macho_lo_sum_memory_operand): Not static.
8943         (invalid_e500_subreg): Not static.
8944         (easy_vector_same): Not static.
8945         (easy_vector_splat_const): Not static.
8946         (RS6000_SYMBOL_REF_TLS_P): Remove.
8947         (any_operand): Delete.
8948         (any_parallel_operand): Delete.
8949         (count_register_operand): Delete.
8950         (altivec_register_operand): Delete.
8951         (xer_operand): Delete.
8952         (s8bit_cint_operand): Delete.
8953         (short_cint_operand): Delete.
8954         (u_short_cint_operand): Delete.
8955         (non_short_cint_operand): Delete.
8956         (exact_log2_cint_operand): Delete.
8957         (gpc_reg_operand): Delete.
8958         (cc_reg_operand): Delete.
8959         (cc_reg_not_cr0_operand): Delete.
8960         (reg_or_short_operand): Delete.
8961         (reg_or_neg_short_operand): Delete.
8962         (reg_or_aligned_short_operand): Delete.
8963         (reg_or_u_short_operand): Delete.
8964         (reg_or_cint_operand): Delete.
8965         (reg_or_arith_cint_operand): Delete.
8966         (reg_or_add_cint64_operand): Delete.
8967         (reg_or_sub_cint64_operand): Delete.
8968         (reg_or_logical_cint_operand): Delete.
8969         (got_operand): Delete.
8970         (got_no_const_operand): Delete.
8971         (easy_fp_constant): Delete.
8972         (easy_vector_constant): Delete.
8973         (easy_vector_constant_add_self): Delete.
8974         (zero_constant): Delete.
8975         (zero_fp_constant): Delete.
8976         (volatile_mem_operand): Delete.
8977         (offsettable_mem_operand): Delete.
8978         (mem_or_easy_const_operand): Delete.
8979         (add_operand): Delete.
8980         (non_add_cint_operand): Delete.
8981         (logical_operand): Delete.
8982         (non_logical_cint_operand): Delete.
8983         (mask_operand): Delete.
8984         (mask_operand_wrap): Delete.
8985         (mask64_operand): Delete.
8986         (mask64_2_operand): Delete.
8987         (and64_operand): Delete.
8988         (and64_2_operand): Delete.
8989         (and_operand): Delete.
8990         (reg_or_mem_operand): Delete.
8991         (lwa_operand): Delete.
8992         (symbol_ref_operand): Delete.
8993         (call_operand): Delete.
8994         (current_file_function_operand): Delete.
8995         (input_operand): Delete.
8996         (rs6000_nonimmediate_operand): Delete.
8997         (rs6000_tls_symbol_ref): Delete.
8998         (save_world_operation): Delete.
8999         (restore_world_operation): Delete.
9000         (load_multiple_operation): Delete.
9001         (store_multiple_operation): Delete.
9002         (vrsave_operation): Delete.
9003         (mfcr_operation): Delete.
9004         (mtcrf_operation): Delete.
9005         (lmw_operation): Delete.
9006         (stmw_operation): Delete.
9007         (branch_comparison_operator): Delete.
9008         (branch_positive_comparison_operator): Delete.
9009         (scc_comparison_operator): Delete.
9010         (trap_comparison_operator): Delete.
9011         (boolean_operator): Delete.
9012         (boolean_or_operator): Delete.
9013         (min_max_operator): Delete.
9014         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
9015         (EASY_VECTOR_15): Moved to here.
9016         (EASY_VECTOR_15_ADD_SELF): Move to here.
9017         (PREDICATE_CODES): Delete.
9018         * config/rs6000/rs6000-protos.h: Delete predicate functions.
9019         Declare functions no longer static.
9020         * config/rs6000/predicates.md: New.
9021         * config/rs6000/rs6000.md: Include predicates.md
9022
9023 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
9024
9025         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
9026         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
9027         REG_ALWAYS_RETURN.
9028         * cfgrtl.c (need_fake_edge_p): Likewise.
9029         * combine.c (distribute_notes): Likewise.
9030         * emit-rtl.c (try_split): Likewise.
9031         * recog.c (peephole2_opimize): Likewise.
9032         * reg-notes.def (ALWAYS_RETURN): Remove.
9033         * rtl.h (LCT_ALWAYS_RETURN): Remove.
9034         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
9035         * tree.h (ECF_ALWAYS_RETURN): Remove.
9036
9037 2005-02-28  Roger Sayle  <roger@eyesopen.com>
9038
9039         PR middle-end/19874
9040         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
9041         between different machine modes is never a "useless" conversion.
9042
9043 2005-02-28  Geert Bosch  <bosch@gnat.com>
9044
9045         PR ada/15977
9046         * doc/contrib.texi: List contributors for Ada front end
9047
9048 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
9049
9050         * simplify-rtx.c (simplify_unary_operation_1,
9051         simplify_const_unary_operation): New, extracted from...
9052         (simplify_unary_operation): ... this one.
9053         (simplify_binary_operation_1,
9054         simplify_const_binary_operation): New, extracted from...
9055         (simplify_binary_operation): ... this one.
9056         * rtl.h (simplify_const_unary_operation,
9057         simplify_const_binary_operation): Add prototypes.
9058
9059 2005-02-28  Julian Brown  <julian@codesourcery.com>
9060
9061         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
9062         building libjava and caused PR regression/20228.
9063
9064 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
9065
9066         PR bootstrap/17383
9067         * Makefile.in (host_subdir): New.
9068         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
9069         * configure: Regenerate.
9070
9071 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
9072
9073         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
9074         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
9075         installation directory first.
9076
9077 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
9078
9079         PR target/19065.
9080         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
9081         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
9082         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
9083         * config/cris/cris.md: Tweak comments referring to Q.
9084         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
9085         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
9086         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
9087         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
9088         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
9089         Insert spaces in constraints to align alternatives vertically for
9090         readability.
9091         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
9092         operand 1: "M".
9093
9094 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9095
9096         PR rtl-optimization/17728
9097         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
9098         operand 0 from general_operand to move_dest_operand.
9099
9100 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9101
9102         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
9103         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
9104         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
9105         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
9106
9107 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
9108
9109         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
9110         * configure: Regenerate.
9111         * libada-mk.in: Remove CC; rename
9112         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
9113
9114 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
9115
9116         PR tree-opt/20188
9117         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
9118         for the lhs, also walk over the tree.  Likewise for rhs.
9119
9120 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
9121
9122         * tree-ssa-dom.c (simple_iv_increment_p): New function.
9123         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
9124         Do not propagate value of iv before increment over the increment.
9125
9126 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
9127
9128         * c-parser.c: New file.
9129         * c-parse.in: Remove.
9130         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
9131         Remove.
9132         (c-parser.o): Add dependencies.
9133         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
9134         maintainer-clean, TAGS): Update.
9135         * c-config-lang.in (gtfiles): Update.
9136         * gengtype-lex.l: Don't handle "@@".
9137         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
9138         objc_build_synchronized, objc_begin_try_stmt,
9139         objc_begin_catch_clause, objc_finish_catch_clause,
9140         objc_build_finally_clause, objc_finish_try_stmt): New.
9141         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
9142         type_seen_p.
9143         (c_parse_init): Update comment.
9144         * c-decl.c (c_init_decl_processing): Update comment.
9145         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
9146         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
9147         new c_declspecs members.
9148
9149 2005-02-25  Julian Brown  <julian@codesourcery.com>
9150
9151         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
9152         from being used for symbols with vague linkage when
9153         HAVE_GAS_COMDAT_GROUP is true.
9154
9155 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
9156
9157         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
9158
9159 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
9160
9161         PR target/19930
9162         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
9163         (LIBGCC2_HAS_DF_MODE): New.
9164         (LIBGCC2_HAS_XF_MODE): New.
9165         (LIBGCC2_HAS_TF_MODE): New.
9166         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
9167         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
9168         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
9169         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
9170         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
9171         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
9172         and add _fixtfdi, _fixunstfdi, _floatditf
9173         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
9174         L_fixunstfdi, L_floatditf.
9175         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
9176         (LIBGCC2_HAS_TF_MODE): Define.
9177
9178 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
9179
9180         PR tree-optimization/20204
9181         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
9182         REWRITE_THIS_STMT markers on PHI nodes.
9183         (rewrite_initialize_block): Likewise.
9184
9185 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
9186
9187         * version.c (version_string): Update to 4.1.
9188
9189 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
9190
9191         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
9192         Clarify that the alternative way doesn't work in GNU C++.
9193
9194 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
9195
9196         PR tree-optimization/19937
9197         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
9198         to the type of the induction variable.
9199
9200 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9201
9202         PR rtl-optimization/20117
9203         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
9204         the block including noncopyable insn.
9205
9206 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9207
9208         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
9209         calls to find_reg_note.
9210
9211 2005-02-24  Richard Henderson  <rth@redhat.com>
9212
9213         PR tree-opt/20127
9214         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
9215         the type.
9216
9217 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
9218
9219         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
9220         vector types if to use base reg for misaligned non-word ld/std.
9221
9222 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9223
9224         PR target/14619
9225         * config/cris/cris.c (cris_target_asm_function_prologue): Create
9226         dwarf2 label manually and put it after, not before the prologue.
9227
9228 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
9229
9230         PR target/19019
9231         * reload.c (operands_match_p): Only increment register number for
9232         SCALAR_INT_MODE_P modes in multiple hard registers.
9233
9234         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
9235         Fix formatting.
9236
9237 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9238
9239         * ChangeLog.5: Fix log message typo(s).
9240         * ChangeLog.7: Likewise.
9241         * ChangeLog.tree-ssa: Likewise.
9242         * cfgexpand.c: Fix comment typo(s).
9243         * conflict.c: Likewise.
9244         * defaults.h: Likewise.
9245         * dwarf2out.c: Likewise.
9246         * gcse.c: Likewise.
9247         * ggc-page.c: Likewise.
9248         * tree-eh.c: Likewise.
9249         * tree-ssa-dom.c: Likewise.
9250
9251 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
9252
9253         PR target/19019
9254         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
9255         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
9256         if SHARED is defined.
9257
9258         PR target/20196
9259         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
9260         allow splitting only if operands 0 and 3 don't overlap.
9261
9262 2005-02-24  Richard Henderson  <rth@redhat.com>
9263
9264         PR middle-end/19953
9265         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
9266         (fold_builtin_1): Call them.
9267         * fold-const.c (fold_complex_mult_parts): Split out from ...
9268         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
9269         (fold_complex_div_parts, fold_complex_div): New.
9270         (fold): Use them.
9271         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
9272
9273 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9274
9275         * tree-ssa-ccp.c (visit_assignment): Verify that result of
9276         VIEW_CONVERT_EXPR is_gimple_min_invariant.
9277
9278         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
9279         (print_node): Likewise.
9280         Print TYPE_SIZES_GIMPLIFIED.
9281
9282 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9283
9284         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
9285         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
9286         operands as commutative in constraints.
9287
9288 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
9289
9290         * tree-into-ssa.c: Re-organize internal functions.
9291
9292 2005-02-24  Richard Henderson  <rth@redhat.com>
9293
9294         PR middle-end/18902
9295         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
9296         for c99.
9297         * common.opt (fcx-limited-range): New.
9298         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
9299         * toplev.c (flag_complex_method): Initialize to 1.
9300         (process_options): Set flag_complex_method to 0 if
9301         flag_cx_limited_range.
9302         * doc/invoke.texi (-fcx-limited-range): New.
9303
9304 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9305
9306         * cse.c (delete_trivially_dead_insns): Speed up by using
9307         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
9308         prev_real_insn.
9309
9310 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
9311
9312         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
9313         functions when -mid-shared-library is being used.
9314
9315 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9316
9317         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
9318         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
9319         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
9320         * system.h: Poison LINK_LIBGCC_SPECIAL.
9321
9322 2005-02-23  James E Wilson  <wilson@specifixinc.com>
9323
9324         * gengtype.c (note_insn_name): Make 1 element larger.
9325
9326 2005-02-23  Roger Sayle  <roger@eyesopen.com>
9327
9328         PR target/20018
9329         PR rtl-optimization/20097
9330         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
9331         BImode SUBREGs of SImode registers which confuse the ia64 backend.
9332
9333 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
9334
9335         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
9336         * t-aix52 (SHLIB_INSTALL): Same.
9337
9338 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9339
9340         * genpreds.c: Update copyright.
9341
9342 2005-02-23  Michael Beach  <michaelb@ieee.org>
9343
9344         PR target/20159
9345         * config/sparc/t-elf (startup files): Assemble with CPP.
9346
9347 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
9348
9349         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
9350         (write_predicate_expr): Likewise.
9351
9352 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9353
9354         PR tree-optimization/20100
9355         PR tree-optimization/20115
9356         * tree-optimize.c (init_tree_optimization_passes): Remove
9357         pass_maybe_create_global_var.
9358         * tree-pass.h (pass_maybe_create_global_var): Remove.
9359         * tree-ssa-alias.c (aliases_computed_p): Declare.
9360         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
9361         (count_calls_and_maybe_create_global_var): Remove.
9362         (pass_maybe_create_global_var): Remove.
9363         (init_alias_info): Do not declare aliases_computed_p.
9364         (maybe_create_global_var): If the function contains no
9365         call-clobbered variables and a mix of pure/const and regular
9366         function calls, create .GLOBAL_VAR.
9367         Mark all call-clobbered variables for renaming.
9368         (merge_pointed_to_info): Update comment.
9369         (add_pointed_to_var): Likewise.
9370         (is_escape_site): Likewise.
9371         Accept struct alias_info * instead of size_t *.
9372         Update all users.
9373         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
9374         as necessary.
9375         * tree-ssa-operands.c (get_call_expr_operands): If
9376         ALIASES_COMPUTED_P is false, do not add call-clobbering
9377         operands.
9378         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
9379         (delete_tree_ssa): Likewise.
9380
9381 2005-02-22  James E Wilson  <wilson@specifixinc.com>
9382
9383         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
9384         (do_compile): Do call it here.
9385
9386 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9387
9388         PR rtl-optimization/20017.
9389         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
9390         rest_of_handle_cse2, rest_of_handle_gcse): Call
9391         delete_dead_jumptables immediately before calling cleanup_cfg.
9392
9393 2005-02-22  Devang Patel  <dpatel@apple.com>
9394
9395         PR 19952
9396         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
9397         all labels
9398
9399 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
9400
9401         * config/rs6000/aix.h (WINT_TYPE): Define.
9402
9403 2005-02-22  Stan Shebs  <shebs@apple.com>
9404
9405         * config/rs6000/rs6000.c (rs6000_override_options): Default to
9406         natural alignment for 64-bit Darwin.
9407         (rs6000_parse_alignment_option): Warn about uses of -malign-power
9408         on 64-bit Darwin.
9409         * doc/invoke.texi: Document this.
9410
9411 2005-02-22  DJ Delorie  <dj@redhat.com>
9412
9413         * c-common.c (c_common_type_for_mode): Pass the mode's precision
9414         to make_[un]signed_type, not the mode itself.
9415
9416 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9417
9418         * cfg.c (cached_make_edge): Call make_edge if edge cache is
9419         not available.  Use tail calls wherever possible.
9420         (make_edge): Call unchecked_make_edge to create an edge.
9421
9422         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
9423         (coalesce_ssa_name): Don't check for
9424         SSANORM_USE_COALESCE_LIST.
9425         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
9426
9427 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9428
9429         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
9430         (rewrite_into_ssa): ... here.
9431
9432 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
9433
9434         PR tree-optimization/19786
9435         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
9436         tag to another's may-alias bitmap when adding to the other's list.
9437
9438 2005-02-21  DJ Delorie  <dj@redhat.com>
9439
9440         * tree-ssa-loop-ivopts.c (computation_cost): Start register
9441         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
9442         registers in unsupported ways.
9443         * expmed.c (init_expmed): Likewise.
9444
9445 2005-02-21  Stan Cox  <scox@redhat.com>
9446
9447         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
9448
9449 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9450
9451         * tree-cfg.c (fold_cond_expr_cond): New.
9452         (make_edges): Call fold_cond_expr_cond.
9453         (find_taken_edge): Accept nothing but INTEGER_CST.
9454         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
9455         and 1.
9456         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
9457
9458         * flow.c (delete_dead_jumptables): Speed up by scanning insns
9459         that do not belong to any basic block.
9460
9461 2005-02-21  Jeff Law  <law@redhat.com>
9462
9463         * cfganal.c (find_unreachable_blocks): Manually CSE load of
9464         e->dest.
9465
9466 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9467
9468         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
9469         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
9470         Adjust their definitions.
9471         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
9472         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
9473
9474         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
9475         genautomata.c, langhooks.c, langhooks.h, system.h,
9476         config/arm/lib1funcs.asm: Update copyright.
9477
9478 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9479
9480         * dbxout.c (dbxout_function_end): Emit Lscope label always.
9481
9482 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
9483
9484         PR bootstrap/13770
9485         * doc/install.texi: Document --with-gc.
9486
9487 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
9488
9489         * simplify-rtx.c (simplify_unary_operation): Add a missing
9490         "break" statement.
9491
9492 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9493
9494         PR tree-optimization/18663
9495         * tree-ssa-dom.c (extract_range_from_cond): Return 0
9496         if the type has variable bounds.
9497
9498 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9499
9500         * gcse.c: Remove an obsolete comment.
9501
9502         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
9503
9504 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
9505
9506         * doc/extend.texi (Function Attributes) <Attribute const>: The
9507         attribute "pure" is below this text, not above.
9508
9509 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9510
9511         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
9512         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
9513         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
9514
9515 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
9516
9517         PR 18785
9518         * langhooks.h (struct lang_hooks): Add to_target_charset.
9519         * langhooks.c (lhd_to_target_charset): New function.
9520         * langhooks-def.h: Declare lhd_to_target_charset.
9521         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
9522         (LANG_HOOKS_INITIALIZER): Update.
9523         * c-common.c (c_common_to_target_charset): New function.
9524         * c-common.h: Declare it.
9525         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
9526         c_common_to_target_charset.
9527
9528         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
9529         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
9530         Delete definitions.
9531         * system.h: Poison them.
9532         * doc/tm.texi: Don't discuss them.
9533         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
9534         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
9535         (pp_c_char): Do not attempt to generate letter escapes for
9536         newline, tab, etc.
9537         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
9538         * config/mips/mips.c (mips_output_ascii): Likewise.
9539
9540 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
9541
9542         PR tree-optimization/19951
9543         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
9544         is abnormal.
9545
9546 2005-02-19  Steven Bosscher  <stevenb@suse.de>
9547
9548         PR middle-end/19698
9549         * function.h (struct function): New field `max_loop_depth'.
9550         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
9551         (flow_loops_find): Reset the max loop depth count before finding loops.
9552         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
9553         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
9554         (calculate_global_regs_live): Make sure the loop will terminate
9555         when the initial sets are not empty.
9556
9557 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
9558
9559         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
9560         object inside.
9561         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
9562
9563 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
9564
9565         PR other/19525
9566         * doc/invoke.texi: Remove documentation of %M spec.
9567         * gcc.c: Likewise.
9568         (init_spec): Remove %M suffix from -lgcc_s.
9569         (do_spec_1): Remove 'M' case.
9570         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
9571         to put shared libraries in the multilib directory.  Remove the
9572         shlib_so_soname substitution variable.  Don't add a multilib encoding
9573         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
9574         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
9575         SHLIB_INSTALL as well as SHLIB_LINK.
9576         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
9577         (SHLIB_NAME): Delete.
9578         (SHLIB_DIR): New macro.
9579         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
9580         (SHLIB_INSTALL): Adjust accordingly.
9581         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
9582         * config/t-slibgcc-sld: Likewise.
9583         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
9584         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
9585         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
9586         in $(SHLIB_DIR).
9587         (SHLIBUNWIND_INSTALL): Adjust accordingly.
9588         * config/i386/t-nwld (SHLIB_SONAME): Delete.
9589         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
9590         Use @shlib_base_name@ instead of @shlib_so_name@.
9591         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
9592         and @shlib_base_name@.so in @multilib_dir@.
9593         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
9594         to the install path.
9595         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
9596         (SHLIB_LINK): Remove previous workaround.
9597         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
9598         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
9599         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
9600         the install path.
9601         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
9602         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
9603         (SHLIB_INSTALL): Adjust accordingly.
9604         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
9605         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
9606         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
9607         config/t-slibgcc-elf-ver.
9608
9609 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
9610             Jakub Jelinek  <jakub@redhat.com>
9611
9612         PR tree-optimization/19828
9613         * tree-ssa-loop-im.c: Add a TODO comment.
9614         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
9615         without side-effects.
9616
9617 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9618
9619         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
9620         call fold_convert.
9621
9622 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
9623
9624         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
9625         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
9626         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
9627         functions.
9628         (ia64_reorg): Delete fixup_errata call.
9629         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
9630         (TARGET_SWITCHES): Delete -mb-step entry.
9631
9632 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
9633
9634         PR c/20043
9635         * c-typeck.c (composite_type): Handle quals in transparent unions.
9636         (type_lists_compatible_p): Likewise.
9637
9638 2005-02-18  Stan Shebs  <shebs@apple.com>
9639
9640         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
9641         expressions in the .literal8 section.
9642
9643 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
9644
9645         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
9646
9647 2005-02-18  Roger Sayle  <roger@eyesopen.com>
9648
9649         * fold-const.c (constant_boolean_node): Always create values of the
9650         specified type, don't bother calling truthvalue_conversion.
9651
9652 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9653
9654         * except.c (output_function_exception_table): Call
9655         assemble_external_libcall (eh_personality_libfunc).
9656
9657 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9658
9659         PR target/19886
9660         * config/ia64/ia64.h (struct machine_function): Add state_num.
9661         * config/ia64/ia64.c (process_epilogue,
9662         process_for_unwind_directive): Use new unwind state numbers each
9663         time rather than state 1.
9664
9665 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9666
9667         PR target/20054
9668         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
9669         before the "*llgt_didi" pattern.
9670
9671 2005-02-18  Jason Merrill  <jason@redhat.com>
9672
9673         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
9674
9675 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
9676
9677         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
9678         (div0): Use it in place of ARM_FUNC_ALIAS.
9679         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
9680
9681 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
9682
9683         PR middle-end/20030
9684         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
9685         access, the lower bound of the array type if it exists.
9686
9687 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
9688
9689         PR c++/20008
9690         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
9691         cases that are out-of-range for the index type.
9692
9693 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9694
9695         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
9696         (estimate_case_costs): Don't call convert.
9697         * expmed.c (expand_shift): Likewise.
9698         (make_tree): Call fold_convert instead of convert.
9699
9700 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9701
9702         PR c++/19813
9703         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
9704         that ref to be marked MEM_READONLY_P doesn't have base that needs
9705         constructing.
9706
9707 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9708
9709         * genautomata.c (output_get_cpu_unit_code_func,
9710         output_cpu_unit_reservation_p): Don't generate old-style function
9711         definitions.
9712
9713 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9714
9715         PR c++/20023
9716         PR tree-optimization/20009
9717         * convert.c (convert_to_integer): Revert 2005-02-16 change.
9718
9719         PR tree-optimization/18947
9720         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
9721         inline, remove all nodes that are inlined into the extern inline
9722         being redefined.
9723
9724 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9725
9726         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
9727         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
9728         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
9729         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
9730         Update copyright.
9731
9732 2005-02-17  Roger Sayle  <roger@eyesopen.com>
9733
9734         PR tree-optimization/19917
9735         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
9736         to be potentially trapping.
9737
9738 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9739
9740         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
9741
9742 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9743
9744         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
9745         tem becomes a local variable which is set to the value of the
9746         back end defined INITIAL_FRAME_ADDRESS macro.
9747         (expand_builtin_frame_address): Omit the base parameter to
9748         expand_builtin_return_addr.
9749         (expand_builtin_profile_func): Likewise.
9750         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
9751         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
9752         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
9753
9754 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
9755
9756         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
9757         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
9758         * config/frv/frv.c (frv_function_epilogue): Likewise.
9759
9760 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
9761
9762         * lambda-code (perfect_nestify): Remove mark/unmark
9763         for rewriting hack.
9764         * tree-loop-linear.c (linear_transform_loops): Add
9765         rewrite_into_ssa call so that ssa is correct for
9766         rewriting into loop closed.
9767
9768 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9769
9770         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
9771         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
9772         BITMAP_FREE.
9773         * bt-load.c (btr_def_live_range, combine_btr_defs,
9774         migrate_btr_def, migrate_btr_defs): Likewise.
9775         * cfgcleanup.c (thread_jump): Likewise.
9776         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
9777         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
9778         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
9779         df_rd_local_compute, df_reg_info_compute): Likewise.
9780         * dominance.c (init_dom_info, free_dom_info): Likewise.
9781         * flow.c (init_propagate_block_info,
9782         free_propagate_block_info): Likewise.
9783         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
9784         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
9785         modify_reg_pav): Likewise.
9786         * loop-invariant.c (find_defs, find_invariant_insn,
9787         find_invariants, free_inv_motion_data): Likewise.
9788         * predict.c (tree_predict_by_opcode,
9789         estimate_bb_frequencies): Likewise.
9790         * stmt.c (expand_case): Likewise.
9791         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
9792         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
9793         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
9794         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
9795         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
9796         rewrite_ssa_into_ssa): Likewise.
9797         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9798         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
9799         analyze_edges_for_bb, perform_edge_inserts): Likewise.
9800         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
9801         * tree-sra.c (tree_sra): Likewise.
9802         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
9803         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
9804         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
9805         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9806         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
9807         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
9808         Likewise.
9809         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
9810         calculate_live_on_entry, calculate_live_on_exit,
9811         build_tree_conflict_graph): Likewise.
9812         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
9813         record_important_candidates, set_use_iv_cost, find_depends,
9814         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
9815         tree_ssa_iv_optimize_finalize): Likewise.
9816         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
9817         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
9818         tree_duplicate_loop_to_header_edge): Likewise.
9819         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
9820         * tree-ssa.c (verify_flow_insensitive_alias_info,
9821         verify_name_tags, verify_ssa, init_tree_ssa,
9822         delete_tree_ssa): Likewise.
9823         * tree-ssanames.c (marked_ssa_names, init_ssanames,
9824         fini_ssanames): Likewise.
9825         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
9826
9827 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
9828
9829         * config/rs6000/t-rtems: Completely reworked.
9830
9831 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9832
9833         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
9834
9835 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9836
9837         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
9838         POINTER_TYPE_P when checking that type is a pointer.
9839         (vect_get_memtag): Remove.
9840         (vect_address_analysis): Use POINTER_TYPE_P. Call
9841         vect_object_analysis with dummy parameter for memtag.
9842         (vect_object_analysis): Extract memtag (functionality that
9843         used to be in vect_get_memtag and moved here). Fix printings.
9844         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
9845         with correct parameters. Remove call to vect_get_memtag.
9846
9847 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
9848
9849         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
9850         (tree-vectorizer.o): Added missing dependencies.
9851
9852         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
9853         decleration.
9854         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
9855         declaration in tree-vectorizer.c, now has an extern declaration in
9856         tree-vectorizer.h).
9857         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9858         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9859         get_vectype_for_scalar_type, vect_is_simple_use,
9860         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9861         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
9862         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
9863         vectorizable_store, vectorizable_operation, vectorizable_assignment,
9864         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
9865         find_loop_location): Likewise.
9866
9867         * tree-vectorizer.c (langhooks.h): #include removed.
9868         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
9869         moved to tree-vectorized.h.
9870         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9871         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9872         get_vectype_for_scalar_type, vect_is_simple_use,
9873         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9874         vect_supportable_dr_alignment, new_loop_vec_info,
9875         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
9876         vect_set_verbosity_level, find_loop_location): Likewise.
9877
9878         (vect_analyze_loop): Function externalized. Declaration moved to
9879         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
9880         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
9881         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
9882         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
9883         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
9884         vect_enhance_data_refs_alignment, vect_analyze_operations,
9885         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
9886         vect_stmt_relevant_p, vect_get_loop_niters,
9887         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
9888         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
9889         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
9890         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
9891         vect_get_memtag): Likewise.
9892
9893         (vectorizable_load): Function externalized. Declaration moved to
9894         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
9895         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
9896         vect_transform_loop): Likewise.
9897         (vect_transform_stmt): Moved to tree-vect-transform.c.
9898         (vect_align_data_ref, vect_create_destination_var,
9899         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
9900         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
9901         vect_get_vec_def_for_operand, vect_init_vector,
9902         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
9903         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
9904         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
9905         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
9906         vect_do_peeling_for_loop_bound): Likewise.
9907
9908         * tree-vect-analyze.c: New file.
9909         * tree-vect-transform.c: New file.
9910
9911 2005-02-17  Jason Merrill  <jason@redhat.com>
9912
9913         PR mudflap/19319, c++/19317
9914         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
9915         slot explicit.
9916
9917 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
9918
9919         * doc/install.texi (Specific): Update link for Darwin-specific
9920         tool binary site.
9921
9922 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
9923
9924         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
9925         constant_boolean_node.
9926
9927 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
9928
9929         PR target/19019
9930         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
9931         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
9932
9933 2005-02-16  Richard Henderson  <rth@redhat.com>
9934
9935         PR 19920
9936         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
9937         with W_TYPE_SIZE.
9938         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
9939         replace uses with Wtype_MAXp1_F.
9940         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
9941         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
9942         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
9943         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
9944         and HAVE_TFMODE as appropriate.
9945         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
9946         (__floatdisf): Likewise.
9947         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
9948         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
9949         (Wtype_MAXp1_F): New.
9950         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
9951         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
9952
9953 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
9954
9955         * PR target/19162
9956         * arm.c (arm_apply_result_size): New function.
9957         * arm.h (APPLY_RESULT_SIZE): Define.
9958         * arm-protos.h (arm_apply_result_size): Add prototype.
9959         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
9960         (movxf): New expand.
9961         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
9962         (call_value_symbol): Remove predicate for operand 0.
9963         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
9964         (untyped_call): Rework to correclty return values for any type.
9965         (untyped_return): New expand.
9966         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
9967
9968 2005-02-16  Stan Shebs  <shebs@apple.com>
9969
9970         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
9971         * config/rs6000/t-darwin8: New, for 64-bit multilib.
9972
9973 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9974
9975         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
9976         configure settings on Solaris 7 and later.
9977
9978 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
9979
9980         PR tree-optimization/19865
9981         * tree-optimize.c (init_tree_optimization_passes): Run
9982         pass_may_alias after pass_sra.
9983
9984 2005-02-16  Richard Henderson  <rth@redhat.com>
9985             Stuart Hastings  <stuart@apple.com>
9986
9987         PR debug/19521
9988         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
9989         Do nothing if debug info suppressed for this function.
9990         (dbxout_begin_function): Early exit if debug info suppressed for
9991         this function.
9992
9993 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
9994
9995         PR target/20007
9996         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
9997         find_basic_blocks.
9998         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9999
10000         PR tree-optimization/19967
10001         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
10002         expand_builtin_strchr, expand_builtin_strrchr): Take a new
10003         argument TYPE.  Adjust calls to fold_builtin_XXX.
10004         (expand_builtin, fold_builtin_1): Adjust calls to
10005         expand_builtin_XXX.
10006         (fold_builtin_strchr, fold_builtin_strpbrk,
10007         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
10008         result to a requested type TYPE.
10009
10010 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
10011
10012         PR middle-end/19857
10013         * fold-const.c (fold): Don't optimize (T)(x & cst) to
10014         (T)x & (T)cst if (T)cst overflows.
10015         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
10016         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
10017
10018 2005-02-15  Jeff Law  <law@redhat.com>
10019
10020         * gcse.c (blocks_with_calls): New bitmap.
10021         (alloc_gcse_mem): Allocate it.
10022         (free_gcse_mem): Free it.
10023         (clear_modifY_mem_tables): Clear it.
10024         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
10025         when we encounter CALL_INSNs.
10026         (compute_transp, case MEM): Handle blocks with calls separate
10027         from blocks without calls.  Use bitmap iterators rather than
10028         FOR_EACH_BB.
10029
10030 2005-02-15  Peter O'Gorman  <peter@pogma.com>
10031
10032         PR bootstrap/18810
10033         * mklibgcc.in (vis_hide): Use a temporary object file, not
10034         -o /dev/null.
10035
10036 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
10037
10038         PR target/19924
10039         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
10040         access optimization.
10041
10042 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
10043             Alan Modra  <amodra@bigpond.net.au>
10044
10045         PR target/19019
10046         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
10047         (_xlqsub): Rename to __gcc_qsub.
10048         (_xlqmul): Rename to __gcc_qmul.
10049         (_xlqdiv): Rename to __gcc_qdiv.
10050         Provide versioned symbol aliases with old names.
10051         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
10052         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
10053         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
10054         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
10055         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
10056
10057 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
10058
10059         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
10060         Fold ~(A - 1) and ~(A + -1) to -A.
10061
10062 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
10063
10064         PR pch/14940
10065         PR target/19300
10066         * config/host-linux.c (linux_gt_pch_use_address): Copy from
10067         config/pa/pa-host.c:pa_gt_pch_use_address.
10068
10069 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
10070
10071         * tree-vn.c (get_value_handle): Make sure that given an
10072         is_gimple_min_invariant expression, we always return it.
10073
10074 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
10075
10076         * passes.c (rest_of_handle_gcse): Fix a comment.
10077
10078 2005-02-15  Jeff Law  <law@redhat.com>
10079
10080         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
10081         bitmap.
10082         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
10083         (canon_list_insert, record_last_mem_set_info): Similarly.
10084         (clear_modify_mem_tables): Similarly.
10085
10086 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
10087
10088         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
10089         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
10090         config/mips/mips.md, config/rs6000/aix.h,
10091         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
10092
10093 2005-02-15  Richard Henderson  <rth@redhat.com>
10094
10095         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
10096         call to be best_edge.
10097
10098 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10099
10100         * basic-block.h: Adjust the prototype for find_basic_blocks.
10101         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
10102         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
10103         find_basic_blocks.
10104
10105         * flow.c (recompute_reg_usage): Remove all arguments.
10106         * passes.c (rest_of_compilation): Adjust the call to
10107         recompute_reg_usage.
10108         * rtl.h: Adjust the prototype for recompute_reg_usage.
10109
10110 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
10111
10112         * tree-dump.c (dump_files): Update to reflect new member
10113         of dump_file_info.
10114         (dump_register): Add new argument.
10115         Set glob name.
10116         (dump_switch_p_1): Check against glob name if doglob was passed.
10117         (dump_switch_p): Check against regular first, then glob if
10118         we didn't have any hits on the dump name.
10119         * tree-optimize.c (register_one_dump_file):
10120         Pass in glob name as well.
10121         * tree-pass.h (struct dump_file_info): Add glob
10122         member.
10123
10124 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
10125
10126         PR preprocessor/16323
10127         * doc/invoke.texi: Document that -Wendif-labels is on by default.
10128
10129 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
10130
10131         PR target/19019
10132         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
10133         (trunctfdf2_internal1): New.
10134         (trunctfdf2_internal2): Renamed from trunctfdf2.
10135
10136 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
10137
10138         PR tree-optimization/19853
10139         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
10140
10141 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10142
10143         * passes.c (rest_of_handle_loop_optimize): Remove calls to
10144         delete_dead_jumptables and cleanup_cfg.
10145
10146 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
10147
10148         * reload.c (find_reloads): Swap address_reloaded flags when
10149         swapping commutative operands.
10150
10151 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
10152
10153         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
10154         Use standard_iv_increment_position for computing the bsi position
10155         for create_iv.
10156         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
10157         the bsi position.
10158
10159 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
10160
10161         PR target/17428
10162         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
10163         life range of hard registers.
10164         * value-prof.c (insn_prefetch_values_to_profile): Only
10165         scan normal insns.
10166
10167         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
10168         profile in libcalls.
10169
10170 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
10171
10172         * bitmap.h (bitmap_and_compl_into): Return bool.
10173         * bitmap.c (bitmap_and_compl_into): Return changed flag.
10174
10175 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
10176
10177         PR tree-optimization/19944
10178         * fold-const.c (fold): Re-add ABS_EXPR folding.
10179
10180 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
10181
10182         PR target/19019
10183         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
10184         {TARGET,MASK}_XL_COMPAT.
10185         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
10186         MASK_XL_COMPAT.
10187         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
10188         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
10189         TARGET_XL_COMPAT.
10190         (rs6000_arg_partial_bytes): Same.
10191         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
10192         and XL compatibility enabled.
10193         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
10194         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
10195         test to final condition.
10196         (cmptf_internal2): New.
10197         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
10198         xl-compat.  Add TFmode information to description.
10199
10200 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
10201
10202         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
10203
10204 2005-02-13  Jason Merrill  <jason@redhat.com>
10205
10206         PR c++/16405
10207         * fold-const.c (fold_indirect_ref_1): Split out from...
10208         (build_fold_indirect_ref): Here.
10209         (fold_indirect_ref): New fn.
10210         * tree.h: Declare it.
10211         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
10212         (gimplify_modify_expr_rhs): Likewise.
10213         (gimplify_expr): Likewise.
10214
10215 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
10216
10217         PR tree-optimization/14303
10218         PR tree-optimization/15784
10219         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
10220         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
10221         ABS_EXPR<x> != 0 to x != 0.
10222
10223 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
10224
10225         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
10226         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
10227         spelling conventions.
10228
10229         * passes.c (rest_of_handle_gcse): Don't run cse_main and
10230         delete_trivially_dead_insns too many times.
10231
10232         * passes.c (rest_of_handle_gcse): Remove dead assignments to
10233         tem and tem2.
10234
10235 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10236
10237         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
10238         (vect_is_simple_iv_evolution): Remove redundant parameter
10239         and step check.
10240         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
10241         without last parameter.
10242         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
10243         Return pointer step. Call vect_is_simple_iv_evolution without
10244         last parameter. Check only that the step is multiple of size
10245         type. Remove stmt_vinfo updates.
10246         (vect_get_memtag_and_dr): Remove.
10247         (vect_get_memtag): New function.
10248         (vect_address_analysis): New function.
10249         (vect_object_analysis): New function.
10250         (vect_analyze_data_refs): Call vect_object_analysis and
10251         vect_get_memtag. Update stmt_vinfo fields.
10252
10253 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10254
10255         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
10256         exist and are objects. Remove checks for pointer.
10257         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
10258         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
10259         (vect_create_data_ref_ptr): Likewise.
10260         (vect_base_addr_differ_p): New function.
10261         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
10262         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
10263         Don't set the DR_BASE_NAME field of data-ref.
10264         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
10265
10266 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
10267
10268         * optabs.h (enum optab_index): Add new OTI_ldexp.
10269         (ldexp_optab): Define corresponding macro.
10270         * optabs.c (init_optabs): Initialize ldexp_optab.
10271         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
10272         patterns.
10273         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
10274         using ldexp_optab.
10275         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
10276         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
10277
10278         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
10279         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
10280         intrinsics.
10281
10282 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10283
10284         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
10285         to base_address.
10286         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
10287         stmt_vec_info.
10288         (vect_get_base_and_offset): Always return an address.
10289         (vect_create_addr_base_for_vector_ref): Remove treatment for
10290         different data reference types.
10291         (vect_compute_data_ref_alignment): Rename base to base_address in
10292         stmt_vec_info. Get the object in order to force its alignment.
10293         (vect_get_memtag_and_dr): Rename base to base_address in
10294         stmt_vec_info. Extract the object for memtag analysis.
10295
10296 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
10297
10298         PR regression/19898.
10299         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
10300         changes cc_status, use apply modified_in_p to part of cc_status
10301         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
10302         body.
10303
10304 2005-02-11  Richard Henderson  <rth@redhat.com>
10305
10306         * tree-complex.c (expand_complex_libcall): New.
10307         (expand_complex_multiplication): Use it for c99 compliance.
10308         (expand_complex_division): Likewise.
10309         * fold-const.c (fold_complex_add, fold_complex_mult): New.
10310         (fold): Call them.
10311         * builtins.c (built_in_names): Remove const.
10312         * tree.c (build_common_builtin_nodes): Build complex arithmetic
10313         builtins.
10314         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
10315         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
10316         (built_in_names): Remove const.
10317         * c-common.c (c_common_type_for_mode): Handle complex modes.
10318         * flags.h, toplev.c (flag_complex_method): Rename from
10319         flag_complex_divide_method.
10320         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
10321         __mulsc3, __muldc3, __mulxc3, __multc3): New.
10322         * libgcc2.h: Declare them.
10323         * libgcc-std.ver: Export them.
10324         * mklibgcc.in (lib2funcs): Build them.
10325
10326 2005-02-11  Steven Bosscher  <stevenb@suse.de>
10327
10328         PR tree-optimization/19876
10329         Partially revert my change from 2005-01-14
10330         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
10331         (compute_antic): ...and remove the loop here.
10332
10333 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
10334
10335         PR middle-end/19858
10336         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
10337         is number of inner's bits, avoid creating a BIT_FIELD_REF.
10338
10339         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
10340         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
10341
10342 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
10343
10344         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
10345         offsets for the big-endian 32-bit case.
10346
10347 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
10348
10349         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
10350
10351 2005-02-11  Dale Johannesen  <dalej@apple.com>
10352
10353         * cselib.c (cselib_process_insn):  Clear out regs where
10354         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
10355         * reload.c (find_equiv_reg): Ditto.
10356
10357 2005-02-11  Ian Lance Taylor  <ian@airs.com>
10358
10359         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
10360         with no elements.
10361
10362         * tree.c (build_function_type_list): Work correctly if there are
10363         no arguments.
10364
10365 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
10366
10367         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
10368         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
10369         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
10370         TARGET_ZARCH instead of TARGET_64BIT.
10371
10372 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
10373
10374         * config/rs6000/t-rtems:
10375         (MULTILIB_OPTIONS): Remove mcpu=602.
10376         (MUTLILIB_DIRNAMES): Remove m602.
10377         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
10378         Let mcpu=602 match mcpu=603.
10379         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
10380
10381 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10382
10383         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
10384         signal trampolines.
10385
10386 2005-02-10  David Daney  <ddaney@avtrex.com>
10387
10388         * config/alpha/linux-unwind.h: Add exception clause to copyright.
10389         * config/i386/linux-unwind.h: Likewise.
10390         * config/ia64/linux-unwind.h: Likewise.
10391         * config/mips/linux-unwind.h: Likewise.
10392         * config/pa/linux-unwind.h: Likewise.
10393         * config/rs6000/linux-unwind.h: Likewise.
10394         * config/s390/linux-unwind.h: Likewise.
10395         * config/sh/linux-unwind.h: Likewise.
10396         * config/sparc/linux-unwind.h: Likewise.
10397
10398 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10399
10400         PR tree-optimization/17549
10401         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
10402         TER to replace a DEF with its expression if the DEF and the
10403         rhs of the expression we replace into have the same root
10404         variable.
10405
10406 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
10407
10408         * config/mips/mips.md: Fix the placement of the match_scratch in the
10409         lea64 peephole2.
10410
10411 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10412
10413         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
10414         Fix comment typos.
10415
10416 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
10417
10418         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
10419         (strip_offset): Handle addresses.
10420         (add_address_candidates): Use strip_offset.
10421         (difference_cost): Reflect strip_offset change.
10422         (force_var_cost, difference_cost): Strip nops.
10423
10424 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10425
10426         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
10427
10428         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
10429         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
10430         config/cris/cris-protos.h, config/cris/cris.c: Update
10431         copyright.
10432
10433 2005-02-10  Jeff Law  <law@redhat.com>
10434
10435         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
10436         (lookup_avail_expr): Similarly.
10437
10438 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
10439
10440         * builtins.c (fold_builtin_powi): New function.
10441         (fold_builtin_1): Call it.
10442
10443 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10444
10445         PR documentation/19309
10446         * doc/cpp.texi: The __GNUC__ and related predefined macros
10447         are also defined for the "standalone" cpp.
10448         Some non-GCC compilers may also define __GNUC__.
10449
10450 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
10451
10452         PR c/19342
10453         * c-typeck.c (common_type): New routine.  Old common_type renamed
10454         to...
10455         (c_common_type): ...this.
10456         (build_conditional_expr, build_binary_op): Use c_common_type instead
10457         of common_type.
10458
10459 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10460
10461         * doc/md.texi: Replace @samp{length} with @code{length}.
10462
10463 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
10464
10465         PR tree-optimization/18687
10466         * tree-flow.h (find_loop_niter): Declare.
10467         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
10468         Try using scev even for loops with more than one exit.
10469         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
10470         (struct ivopts_data): Added niters field.
10471         (struct nfe_cache_elt): New.
10472         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
10473         functions.
10474         (tree_ssa_iv_optimize_init): Initialize niters cache.
10475         (determine_number_of_iterations): Removed.
10476         (find_induction_variables): Do not call determine_number_of_iterations.
10477         Access niters for single exit through niter_for_single_dom_exit.
10478         (add_iv_outer_candidates): Access niters for single exit through
10479         niter_for_single_dom_exit.
10480         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
10481         number_of_iterations_cond.
10482         (iv_period): New function.
10483         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
10484         (may_replace_final_value): Take data argument.  Use
10485         niter_for_single_dom_exit.
10486         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
10487         (rewrite_use_compare): Pass data to may_eliminate_iv.
10488         (rewrite_use_outer): Pass data to may_replace_final_value.
10489         (free_loop_data): Clean up the niters cache.
10490         (tree_ssa_iv_optimize_finalize): Free the niters cache.
10491         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
10492         * tree-ssa-loop-niter.c (find_loop_niter): New function.
10493         (find_loop_niter_by_eval): Use tree_int_cst_lt.
10494         (num_ending_zeros): Moved to tree.c.
10495         * tree.h (num_ending_zeros): Declare.
10496         * tree.c (num_ending_zeros): Moved from tree.c.
10497
10498 2005-02-09  Richard Henderson  <rth@redhat.com>
10499
10500         * builtins.c (DEF_BUILTIN): Add COND argument.
10501         * tree.h (DEF_BUILTIN): Likewise.
10502         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
10503         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
10504         match.
10505         (DEF_BUILTIN_STUB): New.
10506         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
10507         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
10508         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
10509         * c-common.c (DEF_BUILTIN): Add COND argument.
10510         * tree.c (local_define_builtin): New.
10511         (build_common_builtin_nodes): New.
10512
10513 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10514
10515         * fold-const.c (fold_strip_sign_ops): New function to simplify a
10516         floating point expression ignoring the sign of the result.
10517         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
10518         (fold) <MULT_EXPR>: Use it to simplify x*x.
10519         * tree.h (fold_strip_sign_ops): Prototype here.
10520         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
10521         argument.  Use fold_strip_sign_ops to simplify the first argument.
10522         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
10523         first argument when the second argument is an even integer
10524         constant, but only with -funsafe_math_optimizations.
10525         (fold_builtin_1): Update call to fold_builtin_copysign.
10526
10527 2005-02-09  Ian Lance Taylor  <ian@airs.com>
10528
10529         PR middle-end/19583
10530         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
10531         just check whether EH_FILTER_FAILURE falls through.
10532
10533 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
10534
10535         * gcc/haifa-sched.c (schedule_block): Make queued sched group
10536         insns return to ready list in the next turn.
10537
10538 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10539
10540         PR middle-end/19402
10541         * builtins.def: New __builtin_powi[lf].
10542         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
10543         (expand_builtin_powi): New function.
10544         (expand_builtin): Dispatch to expand_builtin_powi.
10545         * libgcc2.h: Add prototypes for __builtin_powi[lf].
10546         * libgcc2.c: Add __builtin_powi[lf] implementation.
10547         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
10548         * optabs.h: Add powi_optab.
10549         * optabs.c (init_optabs): Initialize powi_optab.
10550         * doc/extend.texi: Document __builtin_powi[lf].
10551
10552 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
10553
10554         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
10555         exists.
10556
10557 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10558
10559         PR middle-end/19854
10560         * fold-const.c (try_move_mult_to_index): Remove redundant
10561         type argument.  Create ADDR_EXPR with correct type.
10562         (fold): Update callers of try_move_mult_to_index.  Convert
10563         result to the appropriate type.
10564
10565 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10566
10567         PR target/19597
10568         * config/avr/avr.c (default_rtx_costs): Delete.
10569         (avr_operand_rtx_cost): New function.
10570         (avr_rtx_costs): Completely rewrite.
10571
10572 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
10573
10574         PR target/19806
10575         * config/cris/cris.c (in_code): New variable.
10576         (cris_output_addr_const): Now a static function, a wrapper for
10577         output_addr_const.
10578         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
10579         case from old cris_output_addr_const.
10580         (cris_asm_output_label_ref): Similar for LABEL_REF.
10581         (cris_output_addr_const_extra): Similar for UNSPEC.
10582         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
10583         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
10584         * config/cris/cris-protos.h (cris_output_addr_const): Remove
10585         declaration.
10586         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
10587         (cris_asm_output_label_ref): Declare.
10588
10589 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
10590
10591         PR preprocessor/19801
10592         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
10593         filenames that changed when libcpp was moved to the toplevel.
10594
10595 2005-02-07  Roger Sayle  <roger@eyesopen.com>
10596
10597         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
10598         zero extensions of BImode operands.  Call lowpart_subreg instead
10599         of gen_lowpart_common and gen_lowpart_SUBREG.
10600
10601 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
10602
10603         PR ada/19489
10604         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
10605         * configure.ac: Set cc_for_cross_gnattools.
10606         * configure: Regenerate.
10607
10608 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
10609
10610         PR target/19803
10611         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
10612
10613 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10614
10615         PR debug/19327
10616         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
10617         of nested functions.
10618
10619 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
10620
10621         * doc/extend.texi: Document deprecated extensions allowing
10622         static floating-point members to have initializers and allowing
10623         floating-point literals in integral constant expressions.
10624
10625 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10626
10627         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
10628         config/darwin7.h, config/mips/mips.c,
10629         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
10630         Update copyright.
10631
10632         * cse.c: Update comments.
10633
10634 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
10635
10636         PR middle-end/19775
10637         * builtins.c (fold_builtin_sqrt): Transform
10638         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
10639         pow(x,y*0.5).
10640
10641 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
10642             Dorit Naishlos  <dorit@il.ibm.com>
10643
10644         * doc/invoke.texi (ftree-vectorizer-verbose): New.
10645         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
10646         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
10647         was added.
10648         * tree.h (vect_set_verbosity_level): New extern function declaration
10649         added.
10650         * tree-vectorizer.h (verbosity_levels): New enum type.
10651         * tree-vectorizer.c (vect_debug_stats): Function removed.
10652         (vect_debug_details): Likewise.
10653         (vect_verbosity_level): Global variable was defined and initialized.
10654         (vect_dump): Global variable definition.
10655         (vect_print_dump_info): New function.
10656         (vect_set_dump_settings): New function.
10657         (vect_set_verbosity_level): New function.
10658         (vectorize_loops): Add call to vect_set_dump_settings.
10659
10660         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
10661         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10662         (slpeel_tree_peel_loop_to_edge): Likewise.
10663
10664         (vect_analyze_offset_expr): Call to vect_print_dump_info with
10665         appropriate verbosity level instead of call to vect_debug_details
10666         or vect_debug_stats.
10667         (vect_get_base_and_offset):
10668         (vect_create_addr_base_for_vector_ref):
10669         (get_vectype_for_scalar_type):
10670         (vect_create_data_ref_ptr):
10671         (vect_init_vector):
10672         (vect_get_vec_def_for_operand):
10673         (vect_finish_stmt_generation):
10674         (vectorizable_assignment):
10675         (vectorizable_operation):
10676         (vectorizable_store):
10677         (vectorizable_load):
10678         (vect_transform_stmt):
10679         (vect_update_ivs_after_vectorizer):
10680         (vect_do_peeling_for_loop_bound):
10681         (vect_update_inits_of_drs):
10682         (vect_do_peeling_for_alignment):
10683         (vect_transform_loop):
10684         (vect_is_simple_use):
10685         (vect_analyze_operations):
10686         (vect_is_simple_iv_evolution):
10687         (vect_analyze_scalar_cycles):
10688         (vect_analyze_data_ref_dependence):
10689         (vect_analyze_data_ref_dependences):
10690         (vect_compute_data_ref_alignment):
10691         (vect_enhance_data_refs_alignment):
10692         (vect_analyze_data_refs_alignment):
10693         (vect_analyze_data_ref_access):
10694         (vect_analyze_data_ref_accesses):
10695         (vect_analyze_pointer_ref_access):
10696         (vect_get_memtag_and_dr):
10697         (vect_analyze_data_refs):
10698         (vect_mark_relevant):
10699         (vect_stmt_relevant_p):
10700         (vect_mark_stmts_to_be_vectorized):
10701         (vect_can_advance_ivs_p):
10702         (vect_get_loop_niters):
10703         (vect_analyze_loop_form):
10704         (vect_analyze_loop):
10705         (vectorize_loops): Likewise.
10706
10707         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
10708         (vect_update_inits_of_drs):
10709         (vect_do_peeling_for_alignment):
10710         (vect_transform_loop):
10711         (vect_analyze_operations):
10712         (vect_analyze_scalar_cycles):
10713         (vect_analyze_data_ref_dependences):
10714         (vect_analyze_data_refs_alignment):
10715         (vect_analyze_data_ref_accesses):
10716         (vect_analyze_data_refs):
10717         (vect_mark_stmts_to_be_vectorized):
10718         (vect_get_loop_niters):
10719         (vect_analyze_loop_form):
10720         (vect_analyze_loop): Likewise.
10721         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
10722
10723 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
10724
10725         PR bootstrap/19796
10726         Revert:
10727         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
10728         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
10729         either -ffast-math or -funsafe-math-optimizations is in use.
10730
10731         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
10732         * config/mips/irix-csr.c: New file.
10733         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
10734         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
10735         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
10736         executables.
10737
10738 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
10739
10740         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
10741         redundant, incorrect definitions.
10742
10743         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
10744         expand.
10745         ("*tls_indirect_call"): New, reference hard regs directly.
10746         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
10747
10748 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10749
10750         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
10751         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
10752
10753 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10754
10755         PR rtl-optimization/19800
10756         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
10757         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
10758         gen_lowpart.
10759
10760 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10761
10762         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
10763
10764 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
10765
10766         PR other/17135
10767         * doc/invoke.texi: Correct documentation of -freorder-functions.
10768
10769 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10770
10771         PR other/14402
10772         * doc/invoke.texi: Don't mention gccbug.
10773
10774 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10775             Andrew Pinski  <pinskia@physics.uc.edu>
10776             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
10777
10778         * simplify-rtx.c (simplify_relational_operation_1): Simplify
10779         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
10780         into just (zero_extract:SI FOO (const_int 1) BAR).
10781
10782 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10783
10784         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
10785         macro locally.  Don't give last revision date.  Use GCC version
10786         number from gcc-common.texi.
10787         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
10788         revision date.  Use GCC version number from gcc-common.texi.
10789         Describe being a library as current state rather than as 3.x
10790         history.
10791         * doc/gcc.texi: Remove last update date.
10792         * doc/gccint.texi: Likewise.  Update copyright dates.
10793         * doc/install.texi: Update copyright dates.
10794
10795 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10796
10797         PR other/7549
10798         * doc/invoke.texi: Mention for each option included in -Wall that
10799         it is included in -Wall.
10800         * doc/gcc.texi: Update copyright and last modification date.
10801
10802 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10803
10804         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
10805         unnecessary cast to original induction variable increments.
10806
10807 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10808
10809         PR tree-optimization/18219
10810         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
10811         in distributed form.
10812
10813 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
10814
10815         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
10816         Set bitpos and offset later in the function.  Do nothing if the
10817         target is a register and if the bitfield lies completely outside
10818         that register.
10819         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
10820         here.  Return an uninitialised register if the source value is stored
10821         in a register and the bitfield lies completely outside that register.
10822
10823 2005-02-06  Steven Bosscher  <stevenb@suse.de>
10824
10825         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
10826         not SET_DEST.
10827
10828 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
10829
10830         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
10831
10832 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
10833
10834         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
10835         * config/darwin8.h: New.
10836         * config/darwin7.h: Update comment.
10837
10838 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10839             Dorit Naishlos  <dorit@il.ibm.com>
10840
10841         * tree-vectorizer.h (LOC): New type.
10842         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
10843         (loop_line_number): New field in struct _loop_vec_info.
10844         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
10845
10846         * tree-vectorizer.c (input.h): Included.
10847         (find_loop_location): New function.
10848         (vect_debug_stats): Argument changed from loop to LOC. Computation of
10849         loop line number removed.
10850         (vect_debug_details): Likewise.
10851         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
10852
10853         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
10854         call to vect_debug_details/stats changed from loop to loop_loc.
10855         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10856         (slpeel_tree_peel_loop_to_edge): Likewise.
10857
10858         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
10859         changed from NULL to UNKNOWN_LOC.
10860         (vect_get_base_and_offset):
10861         (vect_create_addr_base_for_vector_ref):
10862         (get_vectype_for_scalar_type):
10863         (vect_create_data_ref_ptr):
10864         (vect_init_vector):
10865         (vect_get_vec_def_for_operand):
10866         (vect_finish_stmt_generation):
10867         (vectorizable_assignment):
10868         (vectorizable_operation):
10869         (vectorizable_store):
10870         (vectorizable_load):
10871         (vect_transform_stmt):
10872         (vect_update_ivs_after_vectorizer):
10873         (vect_do_peeling_for_loop_bound):
10874         (vect_do_peeling_for_alignment):
10875         (vect_transform_loop):
10876         (vect_is_simple_use):
10877         (vect_analyze_operations):
10878         (vect_is_simple_iv_evolution):
10879         (vect_analyze_scalar_cycles):
10880         (vect_analyze_data_ref_dependences):
10881         (vect_compute_data_ref_alignment):
10882         (vect_enhance_data_refs_alignment):
10883         (vect_analyze_data_ref_access):
10884         (vect_analyze_data_ref_accesses):
10885         (vect_analyze_pointer_ref_access):
10886         (vect_get_memtag_and_dr):
10887         (vect_analyze_data_refs):
10888         (vect_mark_relevant):
10889         (vect_stmt_relevant_p):
10890         (vect_mark_stmts_to_be_vectorized):
10891         (vect_can_advance_ivs_p):
10892         (vect_get_loop_niters):
10893         (vect_analyze_loop):
10894         (vectorize_loops): Likewise.
10895
10896         (vectorizable_load): Argument in call to vect_debug_details/stats
10897         changed from loop to LOOP_LOC (loop_vinfo).
10898         (vect_transform_loop):
10899         (vect_analyze_operations):
10900         (vect_analyze_scalar_cycles):
10901         (vect_analyze_data_ref_dependence):
10902         (vect_enhance_data_refs_alignment):
10903         (vect_analyze_data_ref_accesses):
10904         (vect_analyze_pointer_ref_access):
10905         (vect_analyze_data_refs):
10906         (vect_analyze_loop): Likewise.
10907
10908         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
10909         changed from loop to loop_loc.
10910
10911         (vect_enhance_data_refs_alignment): Removed unused variable loop.
10912
10913 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10914             Dorit Naishlos  <dorit@il.ibm.com>
10915
10916         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
10917         declaration added.
10918         (vect_analyze_data_ref_dependences): Likewise.
10919
10920         (vect_is_simple_use): Argument changed from loop structure to
10921         loop_vect_info structure.
10922         (vect_can_advance_ivs_p): Likewise.
10923         (vect_create_index_for_vector_ref): Likewise.
10924         (vect_update_ivs_after_vectorizer): Likewise.
10925         (new_stmt_vec_info): Likewise.
10926
10927         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
10928         changed from loop to loop_vinfo.
10929         (vect_create_data_ref_ptr): First argument in call to
10930         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
10931         (vectorizable_assignment): Second argument in call to vect_is_simple_use
10932         was changed from loop to loop_vinfo.
10933         (vectorizable_operation): Likewise.
10934         (vectorizable_store): Likewise.
10935         (vect_mark_stmts_to_be_vectorized): Likewise.
10936         (vect_do_peeling_for_loop_bound): First argument in call to
10937         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
10938         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
10939         was changed from loop to loop_vinfo.
10940         (vect_analyze_data_ref_dependences): Third argument in call to
10941         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
10942
10943         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
10944         (vect_create_data_ref_ptr): Likewise.
10945         (vect_init_vector): Likewise.
10946         (vect_get_vec_def_for_operand): Likewise.
10947         (vectorizable_assignment): Likewise.
10948         (vectorizable_operation): Likewise.
10949         (vectorizable_store): Likewise.
10950         (vectorizable_load): Likewise.
10951         (vect_update_ivs_after_vectorizer): Likewise.
10952         (vect_is_simple_use): Likewise.
10953         (vect_analyze_data_ref_dependence): Likewise.
10954         (vect_analyze_pointer_ref_access): Likewise.
10955         (vect_can_advance_ivs_p): Likewise.
10956
10957         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
10958         before _stmt_vec_info.
10959         (_stmt_vec_info): Loop field replaced by loop_vec_info.
10960         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
10961         (new_stmt_vec_info): Argument changed from loop structure to
10962         loop_vect_info structure
10963
10964         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
10965         (vect_analyze_offset_expr): Avoid 80 columns overflow.
10966         (vect_create_addr_base_for_vector_ref): Likewise.
10967         (vect_analyze_pointer_ref_access): Likewise.
10968
10969 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10970
10971         PR tree-opt/19768
10972         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
10973         phi flag if the phi is abnormal.
10974
10975 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10976
10977         PR tree-opt/19736
10978         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
10979         information for the new statement.
10980
10981 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10982
10983         PR driver/19117
10984         * gcc.c (main): Include the target in -v output.
10985
10986 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
10987
10988         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
10989         Do not drop the extend if we'd have to add a paradoxical subreg
10990         later.  Include optabs.h and insn-codes.h.
10991         * Makefile.in (combine.o): Depend on $(OPTABS_H).
10992
10993 2005-02-02  Roger Sayle  <roger@eyesopen.com>
10994
10995         PR middle-end/19405
10996         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
10997         * fold-const.c (const_binop): Avoid constant folding floating
10998         point operations in modes that use composite representations.
10999         * simplify-rtx.c (simplify_binary_operation): Likewise.
11000
11001 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
11002
11003         * config/rs6000/altivec.md (altivec_dst): Make the first operand
11004         a REG, not a MEM.
11005         (altivec_dstt): Likewise.
11006         (altivec_dstst): Likewise.
11007         (altivec_dststt): Likewise.
11008         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
11009         of first operand.
11010
11011 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
11012
11013         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
11014         EXPR_LOCUS from orig_cond to the new cond_stmt.
11015         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
11016         the new vec_stmt.
11017
11018 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
11019
11020         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
11021         standard_iv_increment_position. Remove call to bsi_next
11022         (no need to bump the iterator anymore).
11023         (vect_create_index_for_vector_ref): Call
11024         standard_iv_increment_position. Remove second function argument.
11025         (vect_finish_stmt_generation): Remove call to bsi_next
11026         (no need to bump the iterator anymore).
11027         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
11028         to vect_create_index_for_vector_ref.
11029
11030 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
11031
11032         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
11033         phis are used out of the loop.
11034
11035 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
11036
11037         PR c/17807
11038         * c-decl.c (undef_nested_function): New variable.
11039         (pop_scope): Diagnose undefined nested functions.
11040         (finish_function): Don't attempt cgraph processing or genericizing
11041         if current top-level function contained an undefined nested
11042         function.  Reset undef_nested_function at the end of a top-level
11043         function.
11044
11045 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
11046
11047         * tree.c (build_int_cst_type): Take sign of the value into account
11048         when deciding whether sign extend the value.
11049
11050 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
11051
11052         PR c/18502
11053         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
11054         (cpp_options, cc1_options): Change %{std*&ansi} to
11055         %{std*&ansi&trigraphs}.
11056
11057 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
11058
11059         * cse.c: Update comments.
11060
11061 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
11062
11063         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
11064         arguments go on the stack.  Do not put complex doubles in odd/even
11065         pairs.
11066
11067 2005-02-02  Steven Bosscher  <stevenb@suse.de>
11068
11069         * doc/invoke.texi: Update the options enabled at -O1, -O2,
11070         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
11071         -ftree-pre, and -fthread-jumps.
11072
11073 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
11074
11075         PR tree-optimization/19578
11076         * tree-flow.h (modified_noreturn_calls): Declare.
11077         (noreturn_call_p): Declare.
11078         * tree-flow-inline.h (noreturn_call_p): New function.
11079         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
11080         * tree-cfg.c (modified_noreturn_calls): New variable.
11081         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
11082         that contain a mid-block noreturn call.
11083         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
11084
11085 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
11086
11087         * df.c (df_def_record_1, df_uses_record): Don't use
11088         DF_FOR_REGALLOC.
11089         * df.h (DF_FOR_REGALLOC): Remove.
11090
11091 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
11092
11093         PR c/19435
11094         * c-typeck.c (really_start_incremental_init): Reset
11095         constructor_max_index for arrays of incomplete type.
11096
11097 2005-02-02  Jeff Law  <law@redhat.com>
11098
11099         * gcse.c (struct reg_set): Store the block index where the register
11100         was set rather than the setting insn.
11101         (record_one_set, compute_transp): Corresponding changes.
11102         (pre_insert_copy_insn): Do not call replace_one_set.
11103         (replace_one_set): Remove.
11104
11105 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
11106
11107         PR other/15514
11108         * doc/gcov.texi: Fix typo.
11109
11110 2005-02-01  Richard Henderson  <rth@redhat.com
11111
11112         PR target/19680
11113         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
11114         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
11115         type to bool.
11116         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
11117         * config/i386/i386-protos.h: Update.
11118
11119 2005-02-01  Steven Bosscher  <stevenb@suse.de>
11120
11121         PR tree-optimization/19217
11122         * tree-cfg.c (verify_expr): Use the data field to see if TP was
11123         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
11124         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
11125         that it is walking a PHI node.
11126
11127 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
11128
11129         * doc/extend.texi (Nested Functions): Update.
11130
11131 2005-02-01  Richard Henderson  <rth@redhat.com>
11132
11133         PR 19696
11134         * optabs.c (expand_copysign_absneg): Export.
11135         * optabs.h (expand_copysign_absneg): Declare.
11136         * config/rs6000/rs6000.md (copysigntf3): New.
11137
11138 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
11139
11140         PR tree-optimization/19633
11141         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
11142         * tree-ssa-alias.c (init_alias_info): Initialize.
11143         (merge_pointed_to_info): Set.
11144         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
11145         (dump_points_to_info_for): Show value of pt_null.
11146         (struct count_ptr_d): Declare.
11147         (find_ptr_dereference): Remove.
11148         (ptr_is_dereferenced_by): Remove.
11149         (count_ptr_derefs): New local function.
11150         (count_uses_and_derefs): New local function.
11151         (compute_points_to_and_addr_escape): Call it.  If the number
11152         of dereferences is greater than zero, mark the pointer as
11153         dereferenced.  If there are fewer dereferences than uses of
11154         the pointer, the pointer's value escapes.
11155
11156 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
11157
11158         PR tree-optimization/19670
11159         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
11160         here...
11161         (verify_use): ... set it here, instead.
11162
11163 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
11164
11165         * doc/sourcebuild.texi (Test directives): Fix formatting.
11166
11167         * doc/sourcebuild.texi (Test directives): Describe selector
11168         expressions.
11169
11170 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
11171
11172         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
11173         specific 64-bit CPUs.
11174
11175 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
11176
11177         PR target/16201
11178         * arm.c (arm_eliminable_register): New function.
11179         (adjacent_mem_locations): Don't allow eliminable registers.  Use
11180         HOST_WIDE_INT for address offsets.
11181         * arm-protos.h (arm_eliminable_register): Add prototype.
11182
11183 2005-02-01  Steven Bosscher  <stevenb@suse.de>
11184
11185         PR optimization/15242
11186         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
11187         * basic-block.h (duplicate_computed_gotos): Add prototype.
11188         * bb-reorder.c (duplicate_computed_gotos): New function to
11189         duplicate sufficiently small blocks ending in a computed jump.
11190         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
11191         if not optimizing for size.
11192         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
11193         never do tail merging for blocks ending in a computed jump.
11194         * doc/invoke.texi: Document the max-goto-duplication-insns param.
11195
11196 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
11197
11198         Patch from Richard Sandiford <rsandifo@redhat.com>
11199         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
11200         from inheriting a subreg equivalence with a non-spill register.
11201
11202         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
11203
11204 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
11205
11206         * config/frv/frv.c (movcc_fp_destination_operand): New.
11207         (gpr_or_memory_operand): Fix typo in comment.
11208         (gpr_or_memory_operand_with_scratch): New.
11209         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
11210         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
11211         movcc_fp_destination_operand.
11212         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
11213         Legitimize memory addresses using a scratch register.
11214
11215 2005-01-31  Jeff Law  <law@redhat.com>
11216
11217         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
11218         bitmap a sparse bitmap instead of a simple bitmap.
11219         (mark_def_sites_initialize_block):  Corresponding changes.
11220         (ssa_mark_def_sites_initialize_block): Likewise.
11221         (ssa_mark_phi_uses): Likewise.
11222         (mark_def_site, ssa_mark_def_sites): Likewise.
11223         (mark_def_site_blocks): Likewise.
11224         (rewrite_ssa_into_ssa): Likewise.
11225
11226         * tree-ssa-dom.c (record_cond): Pass correct variable type
11227         for last argument to htab_find_slot_with_hash.
11228
11229         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
11230         effects when optimizing 0 % X.  Do not try to optimize X % 0.
11231
11232 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
11233
11234         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
11235         1_mmalua.
11236
11237 2005-02-01  Eric Christopher  <echristo@redhat.com>
11238
11239         * config/mips/mips.c (override_options): Warn if -mint64
11240         is used.
11241         * doc/invoke.texi (MIPS Options): Document that -mint64 is
11242         deprecated.
11243
11244 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
11245
11246         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
11247         timestamp.
11248         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
11249         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
11250         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
11251         (cached_regno): Initialize to INVALID_REGNUM.
11252         (cse_reg_info_table_size,
11253         cse_reg_info_table_first_uninitialized,
11254         cse_reg_info_timestamp): New.
11255         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
11256         get_cse_reg_info.
11257         (init_cse_reg_info, get_cse_reg_info_1): New.
11258         (get_cse_reg_info): Cache the last look-up.
11259         (new_basic_block): Update the code to clear mappings from
11260         registers to cse_reg_info entries.
11261         (cse_main): Call init_cse_reg_info.
11262
11263         * cse.c (get_cse_reg_info): Update a comment.
11264
11265 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11266
11267         PR c/19333
11268         * c-decl.c (start_decl): Do not warn about arrays of elements with
11269         an incomplete type here.
11270         (grokdeclarator): Do it here by making a pedwarn an error.
11271         * c-typeck.c (push_init_level): If there were previous errors with
11272         the constructor type, do not warn about braces for initializers.
11273         (process_init_element): Likewise for excess initializer elements.
11274
11275 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
11276
11277         * cse.c (delete_trivially_dead_insn): Don't iterate.
11278
11279 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11280
11281         * config/rs6000/rs6000.md (copysignsf3): New expand.
11282         (copysigndf3): Likewise.
11283
11284 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11285
11286         * recog.c (constrain_operands): Only look for earlyclobber operand
11287         conflicts if an '&' constraint was seen.
11288
11289 2005-01-31  Marc Espie <espie@openbsd.org>
11290
11291         * config.gcc: Don't include embedded systems fragment, switches default
11292         debugging format to ELF.
11293         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
11294         longer pick it up there.
11295
11296 2005-01-31  Dale Johannesen  <dalej@apple.com>
11297
11298         * doc/extend.texi (nested functions): Fix linkage description.
11299         Clarify that static is not allowed.
11300
11301 2005-01-31  Dale Johannesen  <dalej@apple.com>
11302
11303         * config/rs6000/darwin.md (movsf_low_di):  Make work.
11304         (movdf_low_di):  Make work.
11305
11306 2005-01-31  Dale Johannesen  <dalej@apple.com>
11307
11308         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
11309         Make work for 64 bit.
11310
11311 2005-01-31  Roger Sayle  <roger@eyesopen.com>
11312             Dale Johannesen  <dalej@apple.com>
11313
11314         PR middle-end/19650
11315         * fold-const.c (fold_binary_op_with_conditional_arg):
11316         Make types match original operands, before STRIP_NOPS.
11317
11318 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
11319
11320         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
11321         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
11322         (struct gcc_sigcontext): Delete.  Merge contents to..
11323         (struct gcc_ucontext): ..here.
11324         (get_sigcontext): Delete.
11325         (get_regs): New function, like get_sigcontext but return regs ptr.
11326         64-bit version finds regs from r1 to support vdso.
11327         (ppc_linux_aux_vector): New function.
11328         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
11329         and vector regs.
11330
11331 2005-01-31  Ira Rosen  <irar@il.ibm.com>
11332
11333         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
11334         sizetype.
11335         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
11336         redundant fold. Fix misalignment for MINUS_EXPR.
11337         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
11338         (vect_analyze_pointer_ref_access): Likewise.
11339         (vect_get_memtag_and_dr): Likewise.
11340
11341 2005-01-31  Richard Henderson  <rth@redhat.com>
11342
11343         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
11344         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
11345         absnegdf2_i387, absnegxf2_i387): Likewise.
11346
11347 2005-01-31  Richard Henderson  <rth@redhat.com>
11348
11349         PR 19696
11350         * optabs.c (expand_copysign_absneg): New.
11351         (expand_copysign_bit): Split out from ...
11352         (expand_copysign): ... here.  Use expand_copysign_absneg.
11353
11354 2005-01-30  Roger Sayle  <roger@eyesopen.com>
11355
11356         PR middle-end/19697
11357         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
11358         constant as the second operand and a register as the third.
11359
11360 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
11361
11362         PR target/19704
11363         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
11364         that dllimport'd functions do not use all call-clobbered registers
11365         to pass parameters.
11366
11367 2005-01-30  Richard Henderson  <rth@redhat.com>
11368
11369         PR 19696
11370         * optabs.c (expand_absneg_bit): Split out from expand_unop and
11371         expand_abs_nojump and generalize.  Use operand_subword and
11372         emit_no_conflict_block.  Support large modes.
11373         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
11374         back to maximum.
11375         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
11376         negation to subtraction.
11377         (expand_copysign): Check that the format has signed zeros.
11378         Use operand_subword and emit_no_conflict_block.  Support large modes.
11379
11380 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
11381
11382         Fix PR tree-optimization/19624
11383
11384         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
11385         * tree-ssa-pre.c: Add cfgloop.h.
11386         Update comment.
11387         (pre_stats): New member, constified.
11388         (inserted_exprs): New static variable.
11389         (NECESSARY): New macro.
11390         (create_expression_by_pieces): Fold the expression, and
11391         mark it as defaulting to not necessary. Also put in
11392         inserted_exprs.
11393         (fully_constant_expression): New function.
11394         (insert_into_preds_of_block): Modify to not insert phis when we
11395         are playing with induction variables.
11396         Push phis onto the inserted_exprs vector, and mark them as not
11397         necessary by default.
11398         (insert_aux): Call fully_constant_expression on eprime.
11399         If all edges produce the same value, mark it constant.
11400         (mark_operand_necessary): New function.
11401         (remove_dead_inserted_code): New function.
11402         (init_pre): Init loop optimizer to get loop info.
11403         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
11404         (execute_pre): Commit edge inserts, then remove dead code.
11405
11406 2005-01-30  Richard Henderson  <rth@redhat.com>
11407
11408         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
11409         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
11410
11411 2005-01-30  Richard Henderson  <rth@redhat.com>
11412
11413         PR target/19700
11414         * config/i386/i386.c (ix86_expand_copysign): New.
11415         (ix86_split_copysign_const): New.
11416         (ix86_split_copysign_var): Rename from ix86_split_copysign,
11417         rearrange op1/nmask operands.
11418         * config/i386/i386-protos.h: Update.
11419         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
11420         (copysigndf3): Likewise.
11421         (copysignsf3_const, copysigndf3_const): New.
11422         (copysignsf3_var): Rename from copysignsf3, split out splitter
11423         and fix split predicate for X constraint.
11424         (copysigndf3_var): Similarly.
11425
11426 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11427
11428         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
11429         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
11430         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
11431
11432 2005-01-29  Richard Henderson  <rth@redhat.com>
11433
11434         PR target/19690
11435         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
11436         of # and * in constraints.
11437
11438 2005-01-29  Richard Henderson  <rth@redhat.com>
11439
11440         PR middle-end/19689
11441         * expr.c (store_field): Don't strip sub-mode cast when the input
11442         data is even smaller.
11443
11444 2005-01-29  Richard Henderson  <rth@redhat.com>
11445
11446         PR middle-end/19687
11447         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
11448         union being empty.
11449
11450 2005-01-29  Richard Henderson  <rth@redhat.com>
11451
11452         * combine.c (make_field_assignment): Fix argument order
11453         to gen_int_mode.
11454
11455 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
11456
11457         PR tree-optimization/15791
11458         * fold-const.c (extract_array_ref): New function.
11459         (fold): Fold comparisons between &a[i] and &a[j] or
11460         semantically equivalent trees.
11461
11462 2005-01-29  Jeff Law  <law@redhat.com>
11463
11464         * gcse.c (insert_expr_in_table): Revamp handling of available
11465         and anticipatable occurrence lists to avoid unnecessary list
11466         walking.
11467         (insert_set_in_table): Similarly.
11468
11469 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
11470
11471         * c-common.c (fix_string_type): Just use c_build_qualified_type to
11472         build string type.
11473         (c_build_qualified_type): Build qualified array types with
11474         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
11475         * c-decl.c (c_make_fname_decl): Build unqualified array type
11476         before qualified type.
11477         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
11478         type is qualified, not just if type itself is.  Don't apply
11479         qualifiers to array type when declarator is processed.  Apply
11480         qualifiers to field type whether or not it is an array type.
11481         Don't handle array types specially for applying qualifiers to
11482         variables.
11483         * c-typeck.c (composite_type): Build unqualified element type and
11484         array type when forming composite of array types.
11485         (common_pointer_type, comptypes, comp_target_types,
11486         type_lists_compatible_p, build_indirect_ref, build_array_ref,
11487         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
11488         types.
11489         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
11490         (args2) in variables a1 and a2.
11491
11492 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
11493
11494         * cse.c (n_elements_made, max_elements_made): Remove.
11495         (insert): Don't touch n_elements_made.
11496         (cse_main): Don't touch n_elements_made or max_elements_made.
11497
11498 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
11499
11500         PR target/15384
11501         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
11502         configuration part of dp-bit.c to be lost.
11503
11504 2005-01-28  Roger Sayle  <roger@eyesopen.com>
11505
11506         * expmed.c (expand_mult_highpart_optab): When attempting to use
11507         a non-widening multiplication in a wider mode, the operands need
11508         to be converted (zero or sign extended) to that mode.
11509
11510 2005-01-28  Ian Lance Taylor  <ian@airs.com>
11511
11512         PR middle-end/16558
11513         PR middle-end/19583
11514         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
11515         through if both operands fall through.
11516
11517 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11518
11519         * cse.c (fold_rtx) <PC>: Don't optimize.
11520
11521 2005-01-28  Jeff Law  <law@redhat.com>
11522
11523         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
11524         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
11525
11526 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11527
11528         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
11529         cse_reg_info_used_list_end): Remove.
11530         (cse_reg_info_list, cse_reg_info_list_free): New.
11531         (get_cse_reg_info): When allocating an instance of
11532         cse_reg_info, add it to the beginning of the cse_reg_info_list
11533         list.  Remove code to maintain cse_reg_info_used_list.
11534         (new_basic_block): Reset the free list to the beginning of
11535         cse_reg_info_list.
11536
11537 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
11538
11539         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
11540         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
11541         (frv_expand_mdpackh_builtin): New function.
11542         (frv_expand_builtin): Use it to expand __MDPACKH.
11543         * doc/extend.texi (__MDPACKH): Update documentation.
11544
11545 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
11546
11547         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
11548         SSE_FLOAT_MODE_P for use_sse computation.
11549
11550 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
11551
11552         PR target/19663
11553         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
11554
11555 2005-01-27  Richard Henderson  <rth@redhat.com>
11556
11557         * builtins.c (expand_builtin_copysign): New.
11558         (expand_builtin): Call it.
11559         * genopinit.c (optabs): Add copysign_optab.
11560         * optabs.c (init_optabs): Initialize it.
11561         (expand_copysign): New.
11562         * optabs.h (OTI_copysign, copysign_optab): New.
11563         (expand_copysign): Declare.
11564
11565         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
11566         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
11567
11568         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
11569         (ix86_expand_fp_absneg_operator): ... here.
11570         (ix86_split_copysign): New.
11571         * config/i386/i386-protos.h: Update.
11572         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
11573         (copysignsf3, copysigndf3): New.
11574
11575         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
11576         (copysignsf3, ncopysignsf3): New.
11577         (copysigndf3, ncopysigndf3): New.
11578         (copysignxf3, ncopysignxf3): New.
11579         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
11580
11581 2005-01-27  Arend Bayer  <arend.bayer@web.de>
11582             Kazu Hirata  <kazu@cs.umass.edu>
11583
11584         * cse.c: (find_best_addr): Don't call copy_rtx before calling
11585         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
11586         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
11587         NULL_RTX.
11588
11589 2005-01-27  Jeff Law  <law@redhat.com>
11590
11591         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
11592         definitions of SSA_NAMEs which are not being rewritten.
11593         (rewrite_ssa_into_ssa): Only initialize the current definition
11594         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
11595         If checking is enabled, assert that SSA_NAME_AUX is clear for all
11596         SSA_NAMEs before returning.
11597
11598 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
11599
11600         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
11601         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
11602         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
11603         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
11604         config/mips/iris6.h, config/sh/sh.c: Update copyright.
11605
11606 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11607
11608         PR middle-end/17278
11609         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
11610         higher to -O2 and higher.  Likewise for tree PRE.
11611         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
11612         and better.
11613
11614 2005-01-27  Ian Lance Taylor  <ian@airs.com>
11615
11616         PR middle-end/19583
11617         * gimple-low.c (try_catch_may_fallthru): New static function.
11618         (block_may_fallthru): Handle TRY_CATCH_EXPR.
11619         * tree-inline.c (expand_call_inline): Don't warn about reaching
11620         the end of a non-void function being inlined if the function uses
11621         a return slot.
11622
11623 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
11624
11625         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
11626
11627         PR c/18946
11628         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
11629         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
11630         (implicitly_declare): Handle error_mark_node.
11631
11632 2005-01-27  Richard Henderson  <rth@redhat.com>
11633
11634         PR tree-opt/14329
11635         * tree.h (struct tree_decl): Add debug_expr_is_from.
11636         (DECL_DEBUG_EXPR_IS_FROM): New.
11637         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
11638         * dwarf2out.c (dwarf2out_var_location): Update to match.
11639         * tree-outof-ssa.c (create_temp): Likewise.
11640         * var-tracking.c (track_expr_p): Likewise.
11641         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
11642         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
11643         * toplev.c (default_tree_printer): Likewise.
11644
11645 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
11646
11647         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
11648         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
11649
11650 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11651
11652         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
11653         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
11654         ASM_CLOBBERS): Add tree checks.
11655
11656         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
11657         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
11658         * c-common.def (SWITCH_STMT): Update to match.
11659         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
11660         macros instead of SWITCH_EXPR ones.
11661         * c-dump.c (c_dump_tree): Likewise.
11662         * c-gimplify.c (gimplify_switch_stmt): Likewise.
11663         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
11664
11665         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
11666
11667 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
11668
11669         * unwind-dw2.c (execute_stack_op): Add missing cases for
11670         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
11671
11672 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
11673
11674         * config.gcc (Obsolete configurations): Remove 'dummy', add
11675         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
11676         sparc-*-openbsd*.
11677
11678 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
11679
11680         PR tree-optimization/19633
11681         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
11682         CALL_EXPRs.
11683         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
11684         are no call-clobbered variables.
11685         * tree-outof-ssa.c (check_replaceable): Return false for calls
11686         with side-effects.
11687
11688 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
11689
11690         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
11691         even for variables with NULL DECL_INITIAL.
11692
11693 2005-01-26  Stuart Hastings  <stuart@apple.com>
11694
11695         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
11696
11697 2005-01-26  Richard Henderson  <rth@redhat.com>
11698
11699         PR middle-end/18008
11700         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11701         field's type.
11702         * expr.c (store_field): Strip conversions to odd-bit-sized types
11703         if the destination field width matches.
11704
11705 2005-01-26  Richard Henderson  <rth@redhat.com>
11706
11707         * c-decl.c, expmed.c, expr.c: Revert last change.
11708
11709 2005-01-26  Richard Henderson  <rth@redhat.com>
11710
11711         PR middle-end/18008
11712         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11713         field's type.
11714         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
11715         if we don't need the bits above those present in the current mode.
11716         * expr.c (store_field): Strip conversions to odd-bit-sized types
11717         if the destination field width matches.
11718
11719 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
11720
11721         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
11722         either -ffast-math or -funsafe-math-optimizations is in use.
11723
11724 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11725
11726         PR target/19293
11727         PR target/19329
11728         * config/avr/avr.c (notice_update_cc): Only set condition code for
11729         ashrqi3 if shift count > 0.
11730         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
11731         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
11732         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
11733         count <= 0 as a no-op, and shift count >= width by copying zero
11734         or sign bit to all bits of the result.
11735         * config/avr/avr.md (all shifts): Add alternatives for zero shift
11736         count, with attribute "length" set to 0 and "cc" set to "none".
11737
11738 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11739
11740         * doc/invoke.texi: Document -mTLS.
11741
11742         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
11743         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
11744         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
11745         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
11746         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
11747         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
11748         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
11749         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
11750
11751         * configure.ac: Check for a TLS capable gas.
11752
11753         * configure: Regenerate.
11754
11755 2005-01-26  Richard Henderson  <rth@redhat.com>
11756
11757         PR middle-end/18008
11758         * combine.c (make_field_assignment): Simplify store to zero_extract
11759         from a source with an overlapping mask.
11760
11761 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11762
11763         2004-11-11  Eric Christopher  <echristo@redhat.com>
11764
11765         * config/frv/frv.md: Add fr400_integer automaton. Don't
11766         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
11767         to TYPE_MACC.
11768
11769 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11770
11771         PR middle-end/16585
11772         * cfgbuild.c (make_edges): Do not clear or set
11773         current_function_has_computed_jump.
11774         * function.h (struct function): Remove the has_computed_jump field.
11775         (current_function_has_computed_jump): Do not define.
11776         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
11777         in a computed jump.  Ignore current_function_has_computed_jump.
11778
11779 2005-01-26  Richard Henderson  <rth@redhat.com>
11780
11781         PR middle-end/19515
11782         * expr.c (categorize_ctor_elements): New argument p_must_clear.
11783         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
11784         fully initialized.
11785         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
11786         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
11787         objects into static storage if they have more than one non-zero value.
11788         * tree.h (categorize_ctor_elements): Update decl.
11789
11790 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11791
11792         PR middle-end/19616
11793         * tree.h (CALL_EXPR_TAILCALL): Add comment.
11794         * calls.c (check_sibcall_argument_overlap_1): Revert the change
11795         to this function from 2004-07-10.
11796         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
11797         the current function for tail call optimizations if the address
11798         of one of it its arguments is taken.
11799
11800 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
11801
11802         * cse.c (fold_rtx): Call equiv_constant only when necessary.
11803
11804 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
11805
11806         * function.c (expand_function_end): If current_function_calls_alloca,
11807         emit stack restore in a place that is reached when the function falls
11808         through at the end.
11809
11810 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
11811
11812         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
11813         rule to avoid matching inappropriate suffix rule.
11814
11815 2005-01-26  Jan Hubicka  <jh@suse.cz>
11816
11817         PR tree-optimization/19241
11818         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
11819
11820 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11821
11822         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
11823         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
11824         of doubling.
11825         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
11826         <sim*>: Always use crt1.o, regardless of N in simN.
11827         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11828         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
11829         (CRT_CALL_STATIC_FUNCTION): Remove.
11830         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
11831         use crt1.o, regardless of N in simN.
11832         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11833         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
11834         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
11835         case isystem setting.
11836         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
11837
11838 2005-01-25  Ian Lance Taylor  <ian@airs.com>
11839
11840         * gimple-low.c (block_may_fallthru): Correct handling of
11841         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
11842
11843 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11844
11845         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
11846         handlers to match indentation; nested under the mtune=* handler.
11847         Similar for mcpu= and march=.
11848
11849 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
11850
11851         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
11852         * config/mips/linux64.h (LIB_SPEC): Likewise.
11853         * config/mn10300/linux.h (LIB_SPEC): Likewise.
11854         * config/sh/linux.h (LIB_SPEC): Likewise.
11855
11856 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
11857
11858         * config/frv/frv.c (frv_legitimize_tls_address): New.
11859         (TARGET_HAVE_TLS): Define.
11860         (FRV_SYMBOL_REF_TLS_P): Define.
11861         (frv_override_options): Handle new register classes.
11862         (frv_legitimate_address_p): Reject tls addresses.
11863         (frv_legitimize_address): Handle TLS addresses.
11864         (gen_inlined_tls_plt): New.
11865         (gen_tlsmoff): New.
11866         (frv_legitimize_tls_address): New.
11867         (unspec_got_name): Add TLS entries.
11868         (got12_operand): Add R_FRV_TLSMOFF12 case.
11869         (frv_emit_move): Fixup TLS addresses.
11870         (frv_emit_movsi): Legitimize TLS addresses.
11871
11872         * config/frv/frv.h (MASK_BIG_TLS): New.
11873         (TARGET_BIG_TLS): New.
11874         (HAVE_AS_TLS): Define.
11875         (TARGET_SWITCHES): Add -mTLS and -mtls options.
11876         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
11877         (REG_CLASS_NAMES): Same.
11878         (REG_CLASS_CONTENTS): Same.
11879         (CONSTRAINT_LEN): New.
11880         (REG_CLASS_FROM_CONSTRAINT): New.
11881         (PREDICATE_CODES): Add symbolic_operand.
11882
11883         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
11884         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
11885         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
11886         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
11887         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
11888         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
11889         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
11890         GR9_REG, GR14_REG, LRREG.
11891         (type): Add load_or_call attribute.
11892         ("load_or_call"): New reservation.
11893         ("call_gettlsoff"): New.
11894         ("tls_indirect_call"): New.
11895         ("tls_load_gottlsoff12"): New.
11896         ("tlsoff_hilo"): New.
11897         ("tls_tlsdesc_ldd"): New.
11898         ("tls_tlsoff_ld"): New.
11899         ("tls_lddi"): New.
11900
11901         * config/frv/frv-protos.h (symbolic_operand): Protoize.
11902
11903         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
11904
11905         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
11906         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
11907         * config/frv/frv.c (TLS_BIAS): Define.
11908         (frv_output_dwarf_dtprel): New.
11909
11910 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
11911
11912         PR rtl-optimization/19579
11913         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
11914         both A and B, see if they don't clobber registers the other expr uses.
11915
11916 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
11917
11918         * real.c (do_add): Initialize signalling and canonical members.
11919
11920         * real.c (real_from_integer): Zero out destination.
11921
11922 2005-01-18  Jan Hubicka  <jh@suse.cz>
11923
11924         PR tree-optimize/19337
11925         * tree-inline.c (initialize_inlined_parameters): Copy
11926         saved_static_chain_decl only.
11927
11928 2005-01-25  Richard Henderson  <rth@redhat.com>
11929
11930         PR target/19556
11931         PR target/19584
11932         * config/i386/i386.c (x86_inter_unit_moves): Zero.
11933         (ix86_preferred_reload_class): Rewrite fp-constant section, with
11934         80387 enabled, to return a proper subclass.  Return the subset that
11935         overlaps with GENERAL_REGS for PLUS.
11936         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
11937
11938 2005-01-25  Richard Henderson  <rth@redhat.com>
11939
11940         PR middle-end/19609
11941         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
11942
11943 2005-01-25  Roger Sayle  <roger@eyesopen.com>
11944
11945         * expmed.c (choose_multiplier): Change interface to return the
11946         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
11947         (expand_divmod): Update calls to choose_multiplier.
11948
11949 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11950
11951         PR middle-end/19330
11952         * expmed.c (extract_bit_field): Use adjust_address instead of
11953         gen_lowpart when op0 is a MEM.
11954
11955 2005-01-24  Steven Bosscher  <stevenb@suse.de>
11956
11957         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
11958
11959 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
11960
11961         * config/mips/irix-csr.c: New file.
11962         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
11963         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
11964         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
11965         executables.
11966
11967 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
11968
11969         PR bootstrap/19364
11970         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
11971         sparc/elf.h, add sparc/sp-elf.h.
11972         (sparc-*-rtems*): Likewise.
11973         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
11974         tm-dwarf2.h, add sparc/sp-elf.h.
11975         (sparc86x-*-elf): Likewise.
11976         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
11977         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
11978         TARGET_OS_CPP_BUILTINS.
11979         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11980         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11981         Undefine it.
11982         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
11983         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
11984         (SWITCH_TAKES_ARG): Likewise.
11985         (LOCAL_LABEL_PREFIX): Likewise.
11986         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11987         (TARGET_N_FORMAT_TYPES): Delete.
11988         (TARGET_FORMAT_TYPES): Likewise.
11989         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11990         * config/sparc/elf.h: Delete.
11991         * config/sparc/sp-elf.h: New file.
11992
11993 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11994
11995         * tree-flow-inline.h (phi_arg_from_edge): Remove.
11996         * tree-flow.h: Remove the corresponding prototype.
11997         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
11998         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
11999
12000 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
12001
12002         PR target/17751
12003         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
12004         for AIX ABI or ELF -fPIC.
12005         (rs6000_emit_load_toc_table): Don't create toc_section here.
12006         (rs6000_xcoff_file_start): Nor here.
12007
12008 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
12009
12010         * sh.c (ra.h): Don't #include.
12011         (hard_regs_intersect_p): New function, resurrected from ra.c.
12012
12013         * sh.c: Fix 1996 Copyright.
12014
12015 2005-01-24  Richard Henderson  <rth@redhat.com>
12016             Aldy Hernandez  <aldyh@redhat.com>
12017
12018         * regrename.c (note_sets): Handle subregs.
12019
12020 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
12021
12022         PR bootstrap/18058
12023         * genconditions.c (write_header, write_conditions): Elide file if
12024         not GCC >= 3.0.1.
12025
12026 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
12027
12028         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
12029         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
12030         Update copyright.
12031
12032 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
12033
12034         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
12035         expand_builtin_printf, expand_builtin_fprintf,
12036         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
12037         checking against POINTER_TYPE.
12038         (validate_arglist): Handle POINTER_TYPE code by checking
12039         POINTER_TYPE_P.
12040
12041 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
12042
12043         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
12044         init_rtlanal): New.
12045         (for_each_rtx): Call for_each_rtx_1.
12046         * rtl.h (init_rtlanal): Declare.
12047         * toplev.c (backend_init): Call init_rtlanal.
12048
12049 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
12050
12051         * flow.c (propagate_one_insn): Formatting.
12052
12053         PR middle-end/19551
12054         * flow.c (libcall_dead_p): Be more conservative if unsure.
12055         If there are any instructions between insn and call, see if they are
12056         all dead before saying the libcall is dead.
12057
12058 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
12059
12060         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
12061         operand constraint for operand 0.
12062
12063 2005-01-23  Richard Henderson  <rth@redhat.com>
12064
12065         PR 19486
12066         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
12067         edges leading to join block.
12068
12069 2005-01-23  Roger Sayle  <roger@eyesopen.com>
12070
12071         * expmed.c (expand_mult_highpart): Make static.  Change type of
12072         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
12073         (expand_divmod): Updates calls to expand_mult_highpart by using
12074         gen_int_mode to pass a CONST_INT rtx.
12075         * rtl.h (expand_mult_highpart): Remove prototype.
12076
12077 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
12078
12079         * flow.c (regset_bytes, regset_size): Remove.
12080
12081         * cfganal.c: Fix a reference to Harvey's paper.
12082
12083 2005-01-23  Steven Bosscher  <stevenb@suse.de>
12084
12085         PR rtl-optimization/19464
12086         * tree-optimize.c (init_tree_optimization_passes): Add one more
12087         copyrename pass just before out-of-ssa.
12088
12089 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
12090
12091         PR bootstrap/18058
12092         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
12093         * ggc-none.c (ggc_free): Define.
12094
12095 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
12096
12097         * cse.c (max_reg, max_insn_uid): Remove.
12098         (cse_main): Don't access max_reg or max_insn_uid.
12099
12100         * c-common.c (explicit_flag_signed_bitfields,
12101         lang_statement_code_p, lang_expand_function_end): Remove.
12102         * c-common.h: Remove the corresponding declarations.
12103         * c-opts.c (c_common_handle_option): Remove all write access
12104         to explicit_flag_signed_bitfields.
12105
12106         * cgraph.c (cgraph_varpool_n_nodes): Remove.
12107         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
12108         * cgraph.h: Remove the corresponding declaration.
12109
12110         * gcse.c (null_pointer_info): Remove.
12111
12112 2005-01-23  Roger Sayle  <roger@eyesopen.com>
12113             Eric Botcazou  <ebotcazou@libertysurf.fr>
12114
12115         * combine.c (simplify_logical): Only simplify logical expressions
12116         of the form ior(and(x,y),z) by the inverse distributive law if the
12117         result is cheaper than the original.
12118
12119 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
12120
12121         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
12122         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
12123         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
12124         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
12125         config/freebsd-spec.h, config/arm/arm.h,
12126         config/h8300/h8300.md, config/i386/i386.md,
12127         config/i386/predicates.md, config/i386/sse.md,
12128         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
12129         config/vax/vax.md: Fix comment typos.  Follow spelling
12130         conventions.
12131
12132 2005-01-23  Steven Bosscher  <stevenb@suse.de>
12133
12134         * gengtype.c (walk_type): Produce `not equal to' compares for loop
12135         tests, instead of `less than'.
12136
12137 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
12138
12139         * function.c (assign_parm_setup_block): When creating a new stack slot
12140         for a parameter, get its alignment from the parameter's DECL_ALIGN
12141         rather than the type's TYPE_ALIGN.  Make sure that the parameter
12142         is at least word aligned.
12143
12144 2005-01-22  Roger Sayle  <roger@eyesopen.com>
12145
12146         PR middle-end/19378
12147         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
12148
12149 2005-01-22  Richard Henderson  <rth@redhat.com>
12150
12151         PR target/19506
12152         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
12153         in both compare operands.
12154         (movdfcc_1_sse_max): Likewise.
12155         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
12156         (movdfcc_1_sse): Likewise.
12157         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
12158         scratch register as needed.
12159
12160 2005-01-22  Richard Henderson  <rth@redhat.com>
12161
12162         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
12163
12164         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
12165
12166 2005-01-22  Richard Henderson  <rth@redhat.com>
12167
12168         * genopinit.c (optabs): Use smin/smax for floating point too.
12169         * doc/md.texi: Update to match.  Clarify that floating point
12170         results are undefined for +0/-0 and NaN.
12171         * doc/rtl.texi: Likewise.
12172         * rtl.def (SMIN, SMAX): Likewise
12173         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
12174
12175         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
12176         leading 's' to the name.
12177         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
12178         smaxxf3, sminxf3): Likewise.
12179         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
12180         Likewise.
12181
12182 2005-01-22  Paul Brook  <paul@codesourcery.com>
12183
12184         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
12185
12186 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
12187
12188         * config/s390/s390.c (struct processor_costs): New fields
12189         dlgr, dlr, dr, dsgfr, dsgr.
12190         (z900_cost, z990_cost): Values for new fields.
12191         (s390_rtx_costs): New cases MEM und COMPARE in switch
12192         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
12193         DIV, MOD, UDIV, UMOD.
12194
12195 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
12196
12197         * config/s390/s390.md ("doloop_si64"): Reload input value directly
12198         into the register being decremented.
12199         ("doloop_si31", "doloop_di"): Likewise.
12200         ("*doloop_si_long"): Adapt pattern.
12201
12202 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
12203
12204         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
12205         access registers.
12206         (CLASS_MAX_NREGS): Likewise.
12207
12208 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
12209
12210         * doc/tree-ssa.texi (Statement Operands): Add example for new
12211         must-def macro. Note deprecation of old operands interface.
12212
12213 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
12214
12215         PR tree-optimization/19484
12216         * tree-cfg.c (remove_fallthru_edge): New function.
12217         (cleanup_control_flow): Remove fallthru edges from calls that are
12218         now known not to return.
12219
12220 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12221
12222         Fix PR tree-optimization/19038
12223         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
12224         copies with loop variant ones.
12225
12226 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
12227
12228         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
12229         config/alpha/alpha-protos.h, config/alpha/alpha.h,
12230         config/alpha/alpha.md, config/alpha/predicates.md,
12231         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
12232         config/sparc/sol2.h: Update copyright.
12233
12234         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
12235         first label to see if it is a nonlocal label.
12236
12237 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
12238             Andrew Pinski  <pinskia@physics.uc.edu>
12239
12240         PR target/19491
12241         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
12242         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
12243
12244 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
12245
12246         * config/rs6000/rtems.h: Update copyright.
12247
12248 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
12249
12250         PR target/19548
12251         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
12252         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
12253         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
12254
12255 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12256
12257         PR c/18809
12258         * c-typeck.c (convert_arguments): Check for error_mark_node.
12259
12260 2005-01-21  Ian Lance Taylor  <ian@airs.com>
12261
12262         PR tree-optimization/13000
12263         * tree-inline.c: Include "tree-flow.h".
12264         (expand_call_inline): If warn_return_type, warn if non-void inline
12265         function falls through.
12266         * tree-cfg.c (execute_warn_function_return): Don't warn about
12267         control reaching end if TREE_NO_WARNING is set.  Set
12268         TREE_NO_WARNING.
12269         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
12270         has been lowered.
12271         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
12272         branch if we don't need one.
12273         * c-typeck.c: Include "tree-flow.h"
12274         (c_finish_bc_stmt): Don't add a goto if the current statement
12275         list doesn't fall through to the current point.
12276
12277 2005-01-21  Roger Sayle  <roger@eyesopen.com>
12278
12279         PR rtl-optimization/576
12280         * real.c (real_arithmetic): Change return type from void to bool
12281         to return an indication that the result may be inexact.
12282         * real.h (real_arithmeric): Update prototype.
12283         * fold-const.c (const_binop):  Don't constant fold floating
12284         point expressions when the user specifies -frounding-math and
12285         the result may depend upon the run-time rounding mode.
12286         (fold_convert_const_real_from_real): Clean-up.
12287         (fold_initializer): Ignore flag_rounding_math for initializers.
12288         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
12289         constant fold FP operations with flag_rounding_math if the
12290         result may depend upon the run-time rounding mode.
12291
12292 2005-01-21  Tom Tromey  <tromey@redhat.com>
12293
12294         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
12295
12296 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
12297
12298         * tree-cfg.c: Fix comment typos.
12299
12300 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
12301
12302         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
12303         around the call to rest_of_handle_branch_target_load_optimize.
12304
12305 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
12306
12307         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
12308         (sparc64-*-openbsd*): Likewise.
12309         (sparclite-*-elf*): Include tm-dwarf2.h.
12310         (sparc86x-*-elf*): Likewise.
12311         (sparc64-*-elf*): Likewise.
12312         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
12313         (DBX_DEBUGGING_INFO): Likewise.
12314         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
12315         (PREFERRED_DEBUGGING_TYPE): Likewise.
12316         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12317         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
12318         (PREFERRED_DEBUGGING_TYPE): Likewise.
12319         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
12320         (PREFERRED_DEBUGGING_TYPE): Likewise.
12321         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
12322
12323 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12324
12325         PR target/18701
12326         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
12327
12328 2005-01-20  Paul Brook  <paul@codesourcery.com>
12329
12330         * doc/rtl.texi: Document value extension requirements for CONST_INT.
12331
12332 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12333
12334         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
12335         label is first in a sequence of labels.
12336
12337         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
12338
12339 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
12340             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12341
12342         * doc/sourcebuild.texi (Test Directives): New.
12343
12344 2005-01-20  Roger Sayle  <roger@eyesopen.com>
12345
12346         * real.c (real_floor): Don't leave the result uninitialized when
12347         mode is VOIDMode, but return the unrounded intermediate value.
12348         (real_ceil): Likewise.
12349
12350 2005-01-20  Paul Brook  <paul@codesourcery.com>
12351
12352         * config/arm/arm.md (insv): Use gen_int_mode.
12353
12354 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
12355
12356         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
12357         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12358         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12359         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12360         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12361
12362 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12363
12364         Fix PR debug/19124
12365         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
12366         fbreg, so we have to assume we can't.
12367         (loc_descriptor_from_tree_1): Ditto.
12368         (containing_function_has_frame_base): New function.
12369         (add_location_or_const_value_attribute): Use it.
12370         Also try to generate a frame_base from a single element location
12371         list.
12372
12373 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12374
12375         PR tree-optimization/15349
12376         * timevar.def (TV_TREE_MERGE_PHI): New.
12377         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
12378         PHI_WANTED.
12379         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
12380         calls to tree_forwarder_block_p.
12381         (remove_forwarder_block_with_phi, merge_phi_nodes,
12382         gate_merge_phi, pass_merge_phi): New.
12383         * tree-optimize.c (init_tree_optimization_passes): Add
12384         pass_merge_phi.
12385         * tree-pass.h: Add an extern for pass_merge_phi;
12386
12387 2005-01-20  Richard Henderson  <rth@redhat.com>
12388
12389         PR target/19418
12390         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
12391         (_mm_castps_pd, _mm_castps_si128): New.
12392         (_mm_castsi128_ps, _mm_castsi128_pd): New.
12393
12394 2005-01-20  Richard Henderson  <rth@redhat.com>
12395
12396         PR target/19530
12397         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
12398         __builtin_ia32_vec_init_v2si.
12399         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
12400         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
12401         (ix86_init_mmx_sse_builtins): Create it.
12402         (ix86_expand_builtin): Expand it.
12403         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
12404         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
12405         (vec_extractv2si_0, vec_extractv2si_1): New.
12406
12407 2005-01-20  Richard Henderson  <rth@redhat.com>
12408
12409         PR target/16533
12410         * config/i386/i386.c (ix86_expand_push): New.
12411         * config/i386/mmx.md (push<MMXMODE>1): New.
12412         * config/i386/sse.md (push<SSEMODE>1): New.
12413         * config/i386/i386-protos.h: Update.
12414
12415 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12416
12417         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
12418         copyright.
12419
12420 2005-01-20  Richard Henderson  <rth@redhat.com>
12421
12422         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
12423         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
12424
12425 2005-01-19  Richard Henderson  <rth@redhat.com>
12426
12427         PR target/19350
12428         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
12429         to V4SFmode in SSE1 fallback load path.
12430
12431 2005-01-19  Richard Henderson  <rth@redhat.com>
12432
12433         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
12434         in QImode expansion to ix86_expand_vector_set.
12435         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
12436
12437 2005-01-19  Richard Henderson  <rth@redhat.com>
12438
12439         PR target/19511
12440         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
12441         subclass of the input class.
12442         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
12443         Always true for cross-SSE1 classes.  Rationalize conditionals.
12444         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
12445         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
12446         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
12447         (movdi_2): Add MMX/SSE zeros.
12448         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
12449         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
12450         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
12451         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
12452         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
12453         (zero_extendsidi2_rex64_1): Remove.
12454         (MOV0 peephole): Check GENERAL_REG_P.
12455
12456 2005-01-19  Richard Henderson  <rth@redhat.com>
12457
12458         PR target/19427
12459         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
12460         shufps elements.
12461         (ix86_expand_vector_extract): Likewise.
12462
12463 2005-01-19  Richard Henderson  <rth@redhat.com>
12464
12465         PR middle-end/19304
12466         * expr.c (emit_move_change_mode): New argument force; use
12467         simplify_gen_subreg if true.
12468         (emit_move_via_alt_mode): Merge into ...
12469         (emit_move_via_integer): ... here.
12470         (emit_move_ccmode): Use emit_move_change_mode directly.
12471
12472 2005-01-19  Richard Henderson  <rth@redhat.com>
12473
12474         PR target/19518
12475         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
12476         (alpha_preferred_reload_class): Handle CONST_VECTOR.
12477         (alpha_emit_set_const_1): Add no_output parameter; don't emit
12478         rtl if true.
12479         (alpha_emit_set_const): Likewise.  Make static.
12480         (alpha_emit_set_long_const): Make static.
12481         (alpha_extract_integer): Split out from alpha_expand_mov.
12482         (alpha_split_const_mov): Likewise.
12483         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
12484         (alpha_legitimate_constant_p): New.
12485         * config/alpha/alpha-protos.h: Update.
12486         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
12487         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
12488         * config/alpha/alpha.md (movsi): Add n alternative.
12489         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
12490         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
12491         (splitters for all of the above): Use alpha_split_const_mov.
12492         * config/alpha/predicates.md (non_add_const_operand): New.
12493         (non_zero_const_operand): New.
12494         (input_operand): Use alpha_legitimate_constant_p after reload.
12495
12496 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12497
12498         PR tree-optimization/19038
12499         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
12500         (add_candidate): Add ivs with increment in latch only if
12501         allow_ip_end_pos_p is true.
12502         (determine_iv_cost): Use empty_block_p.
12503
12504 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
12505
12506         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
12507         (compute_dominance_frontiers): Ditto.
12508
12509 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
12510
12511         PR target/19529
12512         * config/sh/t-rtems: New.
12513         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
12514
12515 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12516
12517         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
12518         the offset of the selected field.
12519
12520 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
12521
12522         * tree-cfg.c (remove_forwarder_block): Fix the check to
12523         prevent a nonlocal label from appearing in the middle of a
12524         basic block.
12525
12526 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
12527
12528         PR rtl-optimization/19462
12529         * reorg.c (find_end_label): Create return insn only if
12530         current_function_epilogue_delay_list is empty.
12531
12532 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
12533
12534         * doc/passes.texi: Remove paragraph mentioning new-ra.
12535
12536 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
12537
12538         PR rtl-optimization/15139
12539         * combine.c: Include params.h.
12540         (count_rtxs): New function.
12541         (record_value_for_reg): If replace_rtx would replace at least
12542         2 occurrences of REG in VALUE and TEM is really large, replace REG with
12543         (clobber (const_int 0)) instead of TEM.
12544         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
12545         * params.h (MAX_LAST_VALUE_RTL): New.
12546         * Makefile.in (combine.o): Depend on $(PARAMS_H).
12547         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
12548
12549         PR c/17297
12550         * c-typeck.c (digest_init): Only call build_vector if all constructor
12551         elements are *_CST nodes.
12552         * gimplify.c (gimplify_init_constructor): Likewise.
12553
12554         PR middle-end/19164
12555         * c-typeck.c (digest_init): Only call build_vector if inside_init
12556         is a CONSTRUCTOR.
12557
12558 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
12559
12560         * toplev.c (init_asm_output): Remove dead #ifdef.
12561
12562 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12563
12564         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
12565
12566 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12567
12568         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
12569         accessing DECL_FUNCTION_CODE.
12570         * dojump.c (do_jump): Likewise.
12571         * gimplify.c (gimplify_call_expr): Likewise.
12572         * predict.c (expr_expected_value): Likewise.
12573         (strip_builtin_expect): Likewise.
12574         * tree-inline.c (estimate_num_insns_1): Likewise.
12575         * tree-ssa-loop-im.c (stmt_cost): Likewise
12576         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
12577         (tree_expr_nonnegative_p): Likewise.
12578
12579 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12580
12581         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
12582         variant of the load_pcrel_sym pattern.
12583         * config/sparc/sparc.md (P macro): Move to the top.
12584         (load_pcrel_sym): Macroize using P.
12585         (save_register_window): Likewise.
12586
12587 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
12588
12589         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
12590         ("sordered"): Same.
12591
12592 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
12593
12594         PR C/19472
12595         * c-typeck.c (build_asm_expr): Strip nops off
12596         input memory operands.
12597
12598 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
12599
12600         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
12601         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
12602         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
12603         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
12604
12605 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
12606
12607         PR target/19379
12608         * config/i386/i386.c (override_options): If the 80387 is disabled,
12609         then do not return FP values using FP registers.
12610
12611 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
12612
12613         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
12614         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
12615         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
12616         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
12617         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
12618         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
12619         output.h, postreload-gcse.c, postreload.c, recog.c,
12620         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
12621         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
12622         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
12623         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
12624         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
12625         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
12626         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
12627         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
12628
12629         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
12630         config/alpha/alpha.c, config/arm/vfp.md,
12631         config/i386/emmintrin.h, config/i386/i386-modes.def,
12632         config/i386/i386-protos.h, config/i386/i386.h,
12633         config/i386/pmmintrin.h, config/i386/ppro.md,
12634         config/i386/predicates.md, config/i386/xmmintrin.h,
12635         config/i860/i860.c, config/ia64/ia64-modes.def,
12636         config/ia64/ia64-protos.h, config/ia64/ia64.h,
12637         config/ia64/ia64.md, config/ia64/itanium1.md,
12638         config/ia64/itanium2.md, config/ia64/predicates.md,
12639         config/iq2000/iq2000.h, config/mips/linux64.h,
12640         config/rs6000/aix41.h, config/rs6000/aix43.h,
12641         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
12642         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
12643         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
12644         config/sparc/linux64.h, config/sparc/litecoff.h,
12645         config/sparc/sp64-elf.h, config/sparc/sparc.c,
12646         config/sparc/sparc.h, config/sparc/sparc.md,
12647         config/sparc/sysv4-only.h: Update copyright.
12648
12649 2005-01-18  Richard Henderson  <rth@redhat.com>
12650
12651         PR target/19496
12652         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
12653
12654 2005-01-18  Marc Espie  <espie@openbsd.org>
12655         * config/i386/openbsdelf.h: Typo.
12656
12657 2005-01-18  Richard Henderson  <rth@redhat.com>
12658
12659         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
12660         special case for sse.
12661         * config/i386/predicates.md (sse_comparison_operator): Likewise.
12662
12663 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
12664
12665         * tree-inline.c (estimate_num_insns_1): Added cases for
12666         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
12667
12668 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12669
12670         PR rtl-optimization/19296
12671         * combine.c (simplify_comparison): Rewrite the condition under
12672         which a non-paradoxical SUBREG of a PLUS can be lifted when
12673         compared against a constant.
12674
12675 2005-01-18  Andi Kleen <ak@muc.de>
12676
12677         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
12678         * c.opt (-Wpointer-sign): Add.
12679         * doc/invoke.texi: (-Wpointer-sign): Add.
12680
12681 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12682
12683         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
12684         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
12685         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
12686         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
12687         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
12688         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
12689         for TARGET_MIX_SSE_I387.
12690         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
12691         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
12692         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
12693         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
12694         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
12695         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
12696         TARGET_MIX_SSE_I387.
12697         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
12698         from expander.
12699
12700 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12701
12702         PR target/19424
12703         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
12704         Add movaps alternative for xmm reg->reg move.
12705
12706 2005-01-17  Jeff Law  <law@redhat.com>
12707
12708         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
12709         at the end of the main DOM loop rather than just before DOM exits.
12710
12711 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
12712
12713         PR tree-optimization/19121
12714         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
12715         adding aliases to a name tag, also add them to the pointer's
12716         type tag.
12717         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
12718         sensitive alias info at all.  Only check that the two pointers
12719         have compatible pointed-to sets.
12720         * tree-ssa.c (verify_name_tags): Verify that the alias set of
12721         a pointer's type tag is a superset of the alias set of the
12722         pointer's name tag.
12723
12724 2005-01-17  James E Wilson  <wilson@specifixinc.com>
12725
12726         PR target/19357
12727         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
12728         comment to document why.
12729
12730 2005-01-17  Richard Henderson  <rth@redhat.com>
12731
12732         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
12733         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
12734         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
12735         sse2_vmsminv2df3_finite): New.
12736         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
12737         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
12738         Force op1 into register.
12739
12740 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
12741
12742         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
12743         bubblestrap from always rebuilding build directory.
12744
12745 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
12746
12747         * config/s390/s390.md ("*clc"): Remove incorrect '='.
12748         ("*cmpmem_short"): Likewise.
12749
12750 2005-01-17  Steven Bosscher  <stevenb@suse.de>
12751
12752         * basic-block.h: Document BB_* flags.
12753         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
12754         use an sbitmap instead.
12755         * sched-rgn.c (compute_trg_info): Likewise.
12756
12757 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
12758
12759         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
12760         redundant target_cpu_default and extra_parts lines.  Use the default
12761         "from-abi" ISA.
12762         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
12763         (SUBTARGET_EXTRA_SPECS): Delete.
12764         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
12765         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
12766         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
12767         and "n32" for -mabi=n32.
12768
12769 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12770
12771         PR c/5675
12772         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
12773         fold constant variables into initial values.
12774
12775 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12776
12777         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
12778
12779         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
12780         through the statements backward.
12781
12782 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12783
12784         PR middle-end/13127:
12785         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
12786         a variable set to the return value of the inlined function.
12787
12788 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
12789
12790         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
12791         when modes are tieable.
12792
12793 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
12794
12795         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
12796         of pthread_create to find out if threads are enabled.
12797         * gthr-posix95.h (__gthread_active_p): Likewise.
12798
12799 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
12800
12801         * common.opt (-fnew-ra): Remove.
12802         * ra*.*: Remove.
12803         * toplev.h (flag_new_regalloc): Remove.
12804         * Makefile.in (ra*.*): Don't mention.
12805         * passes.c (rest_of_handle_new_regalloc): Remove.
12806         (rest_of_handle_combine, rest_of_compilation): Always consider
12807         flag_new_regalloc as false.
12808         * doc/invoke.texi: Don't document -fnew-ra.
12809
12810 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
12811
12812         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
12813         last parameter to reg_scan.
12814         * loop.c (loop_optimize): Likewise.
12815         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
12816         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
12817         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12818         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12819         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
12820         * regclass.c (reg_scan): Likewise, for the declaration.
12821         * rtl.h (reg_scan): Likewise, for the prototype.
12822
12823 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12824
12825         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
12826         mark_dfs_back_edges.
12827
12828 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
12829
12830         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
12831         (compute_avail): Uses don't go in tmp_gen.
12832
12833 2005-01-16  Steven Bosscher  <stevenb@suse.de>
12834
12835         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
12836         loop to look for a free slot in a page entry.
12837
12838 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12839
12840         PR target/16304
12841         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
12842         * toplev.c (compile_file): Call process_pending_assemble_output_defs
12843         just before targetm.asm_out.file_end.
12844         * tree.h (process_pending_assemble_output_defs): Declare.
12845         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
12846         New functions.
12847         (assemble_alias): Defer generation of assembly code for defines when
12848         TARGET_DEFERRED_OUTPUT_DEFS is true.
12849         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12850         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12851         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
12852
12853 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12854
12855         PR target/19336
12856         * pa.c (pa_scalar_mode_supported_p): New function.
12857         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12858         * pa.h (MIN_UNITS_PER_WORD): Add comment.
12859
12860         * pa-protos.h (prefetch_operand): Delete.
12861         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
12862         * pa.c (prefetch_operand): Delete.
12863         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
12864         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
12865         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
12866         and prefetch_nocc_operand.
12867         * pa.md (prefetch): Rework to avoid reload problems handling short
12868         displacements when a cache control completer needs to be provided.
12869         (prefetch_32, prefetch_64): Delete.
12870         (prefetch_cc, prefetch_nocc): New patterns.
12871
12872 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
12873
12874         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
12875
12876 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12877
12878         PR ada/19388
12879         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
12880         exceeds maximum alignment for global common data.
12881         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
12882         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
12883
12884 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12885
12886         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
12887
12888 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12889
12890         * harg-reg-set.h (reg_class_names): Prototype global array.
12891         * regclass.c (reg_class_names): Declare here and initialize to
12892         REG_CLASS_NAMES.
12893         (dump_regclass): Remove local declaration of reg_class_names.
12894         (regclass): Likewise.
12895         * cfg.c (dump_flow_info): Likewise.
12896         * ra-debug.c (reg_class_names): Likewise.
12897         * regrename.c (reg_class_names): Likewise.
12898         * reload.c (reg_class_names): Likewise.
12899         * reload1.c (spill_failure): Likewise.
12900         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
12901
12902 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
12903
12904         * config/s390/s390.md ("reload_outti"): Remove predicate for
12905         output operand.  Abort if operand is not a MEM.
12906         ("reload_outdi", "reload_outdf"): Likewise.
12907
12908 2005-01-15  Marc Espie  <espie@openbsd.org>
12909
12910         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
12911         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
12912         * config/openbsd.h:  Fix C++ includes for native configurations.
12913         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
12914         Add trampoline support.
12915         * config/i386/openbsdelf.h: New.
12916
12917 2005-01-15  Marc Espie  <espie@openbsd.org>
12918
12919         * collect2.c (main): Explicitly parse -dynamic-linker option.
12920
12921 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
12922
12923         PR tree-optimization/19060
12924         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
12925         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
12926         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
12927         and handle extract_range_from_cond returning false.
12928         * fold-const.c (fold): Optimize comparisons with min/max even for
12929         width > HOST_BITS_PER_WIDE_INT.
12930
12931 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
12932
12933         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
12934         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
12935         Remove little endian multilib variants.
12936         Add mips32 multilib variant.
12937
12938 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
12939
12940         * explow.c (copy_all_reg, stabilize): Remove.
12941         * expr.h: Remove the corresponding prototypes.
12942
12943         * rtlanal.c (regs_set_between_p): Remove.
12944         * rtl.h: Remove the corresponding prototype.
12945
12946 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
12947
12948         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
12949         to rs6000_nonimmediate_operand.
12950         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
12951         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
12952         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
12953         rs6000_nonimmediate_operand.
12954         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
12955         rs6000_nonimmediate_operand.
12956
12957 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
12958
12959         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
12960
12961 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12962
12963         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
12964         on e500v2.
12965         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
12966         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
12967
12968         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
12969         (rs6k_nonimmediate_operand): New.
12970         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
12971         correctly.
12972         (legitimate_lo_sum_address_p): Same.
12973         (rs6000_legitimize_address): Same.
12974         (rs6000_legitimize_reload_address): Same.
12975         (rs6000_legitimate_address): Same.
12976         (spe_build_register_parallel): Pass DF and DC modes in a DI
12977         register.
12978
12979         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
12980         to rs6k_nonimmediate_operand.
12981
12982         * config/rs6000/spe.md ("*frob_df_di"): New.
12983         ("*frob_di_df"): New.
12984         ("*frob_di_df_2"): New.
12985         ("*mov_sidf_e500_subreg0"): New.
12986         ("*mov_sidf_e500_subreg4"): New.
12987         ("*movdf_e500_double"): Change predicate to
12988         rs6k_nonimmediate_operand.
12989
12990 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12991
12992         * postreload.c (move2add_note_store): Only call
12993         trunc_int_for_mode on scalar integers.
12994
12995 2005-01-14  Steven Bosscher  <stevenb@suse.de>
12996
12997         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
12998         replace BB_VISITED uses.
12999         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
13000         (propagate_necessity): Check the bitmap instead of BB_VISITED.
13001         (tree_dce_done): Free visited_control_parents.
13002         (perform_tree_ssa_dce): Allocate and clear it.
13003         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
13004         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
13005         instead of BB_VISITED.
13006
13007 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
13008
13009         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
13010         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
13011         Remove unused prototypes.
13012
13013 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
13014
13015         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
13016         64-bit register usage.
13017         (spe_func_has_64bit_regs_p): Add FIXME note.
13018
13019 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
13020
13021         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
13022         flag_finite_math_only with flag_unsafe_math_optimizations.
13023
13024 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
13025
13026         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
13027         end-of-stack check.
13028         (__tpf_eh_return): Copy TPF private stack area from the module
13029         boundary stack frame.  Add check for when module addresses are
13030         equal, but no stub address is found.
13031
13032 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
13033
13034         PR target/7525
13035         * arm.h (struct machine_function): Add call_via field.
13036         (thumb_call_via_label): Declare.
13037         * arm.c (thumb_call_via_label): New variable.
13038         (thumb_call_reg_needed): New variable.
13039         (arm_output_function_epilogue): For Thumb code, output any per-function
13040         call-indirect trampolines.
13041         (thumb_call_via_reg): New function.
13042         (arm_file_end): New function.
13043         (TARGET_ASM_FILE_END): Call arm_file_end.
13044         (aof_file_end): Likewise.
13045         * arm-protos.h (thumb_call_via_reg): Declare.
13046         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
13047         thumb_call_via_reg in normal case.
13048
13049 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
13050
13051         PR middle-end/19084
13052         PR rtl-optimization/19348
13053         * recog.c (peephole2_optimize): Do global life update if some peephole
13054         decides it doesn't need at least one of its inputs and that change
13055         influences liveness at the start of the basic block.
13056
13057         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
13058         arguments instead of 1.
13059
13060 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
13061
13062         PR middle-end/18820
13063         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
13064         zero for nested functions needing a static chain or functions
13065         with a non-constant address.
13066
13067 2005-01-13  Roger Sayle  <roger@eyesopen.com>
13068
13069         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
13070         (and (sign_extend X) C) into (zero_extend (and X C)).
13071
13072 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
13073
13074         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
13075
13076 2005-01-13  Richard Henderson  <rth@redhat.com>
13077
13078         PR target/19009
13079         PR target/19250
13080         PR target/19252
13081         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
13082         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
13083         not just TARGET_SSE.
13084         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
13085         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
13086         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
13087         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
13088         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
13089         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
13090         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
13091         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
13092         (movdicc_c_rex64): Rename with '*'.
13093         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
13094         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
13095         (movsfcc_1_387): Rename from movsfcc_1.
13096         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
13097         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
13098         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
13099         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
13100         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
13101         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
13102         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
13103         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
13104         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
13105         sse_movdfcc_const0_4): Remove.
13106         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
13107         recognize min/max early.  Update for changed sse cmove patterns.
13108         (ix86_split_sse_movcc): New.
13109         * config/i386/i386-protos.h: Update.
13110
13111 2005-01-13  Steven Bosscher  <stevenb@suse.de>
13112
13113         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
13114         (fix_stmt_v_may_defs): Likewise.
13115
13116 2005-01-13  Richard Henderson  <rth@redhat.com>
13117
13118         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
13119         for converting the mask.
13120
13121 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
13122
13123         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
13124         definition to 600.
13125
13126 2005-01-13  Richard Henderson  <rth@redhat.com>
13127
13128         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
13129         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
13130         IX86_BUILTIN_MOVDQ2Q): Remove.
13131         (IX86_BUILTIN_VEC_EXT_V4SI): New.
13132         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
13133         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
13134         shuffling.
13135         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
13136         (sse2_pextrw): Fix immediate constraint.
13137         (sse2_loadq, sse2_loadq_rex64): Remove.
13138         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
13139         Use __builtin_ia32_vec_ext_<size>.
13140         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
13141
13142 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
13143
13144         * function.c (assign_parm_setup_block): Look inside original
13145         entry_parm when inspecting PARALLEL.
13146
13147 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
13148             Joel Sherrill  <joel@oarcorp.com>
13149
13150         PR target/19399
13151         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
13152         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
13153         rtems_gxx_recursive_mutex_init.
13154         (__gthread_recursive_mutex_lock): New function.
13155         (__gthread_recursive_mutex_trylock): Likewise.
13156         (__gthread_recursive_mutex_unlock): Likewise.
13157
13158 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
13159
13160         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
13161
13162 2005-01-13  Jan Beulich  <jbeulich@novell.com>
13163
13164         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
13165         (ashrti3_internal): Indicate output is early clobber. Generate result
13166         into output rather than first input. Use move for low word of output
13167         if shift count is exactly 64.
13168         (lshrti3_internal): Likewise.
13169
13170 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
13171
13172         PR target/18329
13173         PR target/18330
13174         * reload1.c (delete_output_reload): Don't delete an output reload
13175         if the pseudo lives longer than a single basic block.  Adjust and
13176         improve wording of comment.
13177
13178 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
13179
13180         PR target/19334
13181         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
13182         of TYPE_SIZE where we mean the number of bytes.
13183
13184 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
13185
13186         * function.c (assign_parm_setup_block): Relax condition on
13187         multi-register optimization.
13188
13189 2005-01-12  Nick Clifton  <nickc@redhat.com>
13190
13191         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
13192         an "in_delay_slot" attribute of "no" to prevent them being used in
13193         delay slots.  This is forbidden because they might generate
13194         exceptions.
13195
13196 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
13197
13198         PR target/19389
13199         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
13200         with r->Y and Y->r.
13201
13202 2005-01-12  Nick Clifton  <nickc@redhat.com>
13203
13204         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
13205         passed on to GAS) but do not define, as GAS no longer supports or
13206         needs the -m2000 option.
13207
13208 2005-01-11  Roger Sayle  <roger@eyesopen.com>
13209
13210         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
13211         type as args of unprototyped builtins aren't automatically promoted.
13212         (fold_builtin_abs): Likewise.
13213
13214 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13215
13216         * Makefile.in: Set a `build-warn' variable.
13217
13218 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
13219
13220         PR tree-optimization/17949
13221         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
13222         (find_interesting_uses_address): Use it.
13223
13224 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
13225
13226         * regrename.c (kill_value): Handle subreg's that won't simplify.
13227
13228 2005-01-11  Richard Henderson  <rth@redhat.com>
13229
13230         PR target/13366
13231         * config/i386/i386.h (enum ix86_builtins): Move ...
13232         * config/i386/i386.c: ... here.
13233         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
13234         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
13235         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
13236         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
13237         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
13238         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
13239         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
13240         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
13241         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
13242         IX86_BUILTIN_LOADDDUP): Remove.
13243         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
13244         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
13245         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
13246         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
13247         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
13248         (ix86_init_builtins): Make static.
13249         (ix86_init_mmx_sse_builtins): Update for changed builtins.
13250         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
13251         if all the modes match.  Otherwise, fake it.
13252         (get_element_number, ix86_expand_vec_init_builtin,
13253         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
13254         (ix86_expand_builtin): Make static.  Update for changed builtins.
13255         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
13256         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
13257         (ix86_expand_vector_init_duplicate): New.
13258         (ix86_expand_vector_init_low_nonzero): New.
13259         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
13260         Split out from ix86_expand_vector_init; handle integer modes.
13261         (ix86_expand_vector_init): Use them.
13262         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
13263         * config/i386/i386-protos.h: Update.
13264         * config/i386/predicates.md (reg_or_0_operand): New.
13265         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
13266         (movv2sf_internal): Likewise.  And a splitter to match them all.
13267         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
13268         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
13269         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
13270         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
13271         (mmx_pinsrw): Fix operand ordering.
13272         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
13273         rather than sse_loadss expander.
13274         (movv2df splitter): Similarly.
13275         (sse_loadss, sse_loadlss): Remove.
13276         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
13277         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
13278         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
13279         (sse3_movddup): Rename with '*'.
13280         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
13281         (sse2_loadsd): Remove.
13282         (vec_dupv2df_sse3): Rename from sse3_loadddup.
13283         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
13284         (sse2_pinsrw): Fix argument ordering.
13285         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
13286         (sse2_stored): Remove 'r' destination.
13287         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
13288         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
13289         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
13290         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
13291         vec_extractv16qi, vec_initv16qi): New.
13292
13293         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
13294         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
13295         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
13296         constructor form.
13297         (_mm_load_pd, _mm_store_pd): Use plain dereference.
13298         (_mm_load_si128, _mm_store_si128): Likewise.
13299         (_mm_load1_pd): Use _mm_set1_pd.
13300         (_mm_load_sd): Use _mm_set_sd.
13301         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
13302         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
13303         (_mm_set_epi64): Use _mm_set_epi64x.
13304         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
13305         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
13306         _mm_setr_epi8): Use _mm_set_foo form.
13307         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
13308         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
13309         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
13310         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
13311         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
13312         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
13313         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
13314         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
13315         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
13316         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
13317         (_mm_movedup_pd): Use _mm_shuffle_pd.
13318         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
13319         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
13320         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
13321         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
13322         Use _mm_setzero_ps.
13323         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
13324         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
13325         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
13326         (_mm_store_ps): Use raw dereference.
13327         (_mm_store1_ps): Use _mm_storeu_ps.
13328         (_mm_storer_ps): Use _mm_store_ps.
13329         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
13330         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
13331
13332 2005-01-11  Stan Shebs  <shebs@apple.com>
13333
13334         * config/rs6000/rs6000.c (machopic_output_stub): Issue
13335         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
13336
13337 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
13338
13339         PR target/18761
13340         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
13341         Skip all DECLs except for FIELD_DECLs.
13342
13343 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13344
13345         * config/s390/s390.c (override_options): Return error if
13346         -mbackchain, -mpacked-stack and -mhard-float are used together.
13347         (s390_va_start): Remove the backchain && packed-stack special case.
13348         (s390_gimplify_va_arg): Likewise.
13349         * doc/invoke.texi: Remove the ABI incompatibility note.
13350
13351 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13352
13353         * config/s390/s390.c (struct s390_frame_layout): Remove
13354         save_backchain_p.
13355         (s390_frame_info, s390_emit_prologue): Replace occurrences of
13356         save_backchain_p with TARGET_BACKCHAIN.
13357
13358 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13359
13360         PR target/18916
13361         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
13362         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
13363         * function.c (locate_and_pad_parm): Set new field.
13364         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
13365         Tweak where_pad test to include "none".  Always set mem align for
13366         stack_parm.
13367         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
13368         not sufficient for type.
13369         (assign_parm_setup_block): If stack_parm is zero on entry, always
13370         make a new stack local.  Block move old stack parm if necessary
13371         to new aligned stack local.
13372         (assign_parm_setup_stack): Use a block move to handle
13373         potentially misaligned entry_parm.
13374         (assign_parms_unsplit_complex): Specify required alignment when
13375         creating stack local.
13376         * calls.c (compute_argument_addresses): Override alignment of stack
13377         arg calculated from its type with the alignment given by
13378         FUNCTION_ARG_BOUNDARY.
13379         (store_one_arg): Likewise.
13380
13381 2005-01-11  Jan Beulich  <jbeulich@novell.com>
13382
13383         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
13384         Change respective itanium_class attribute to ialu.
13385         (shladdp4_internal): New.
13386         * config/ia64/predicates.md (shladd_log2_operand): New.
13387
13388 2005-01-11  Richard Henderson  <rth@redhat.com>
13389
13390         * expr.c (store_constructor): Use rtvec_alloc instead of
13391         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
13392
13393 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
13394
13395         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
13396
13397 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13398
13399         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
13400         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
13401         (TARGET_RWRELOC): Define.
13402         (ia64_rwreloc_section_type_flags): Delete.
13403         (ia64_section_type_flags): New function.
13404         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
13405         (TARGET_RWRELOC): Define.
13406
13407 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
13408
13409         PR target/18987
13410         * config/ia64/ia64.c (process_set): For alloc insn, only call
13411         process_epilogue is !frame_pointer_needed.
13412
13413 2005-01-10  Roger Sayle  <roger@eyesopen.com>
13414
13415         PR c++/19355
13416         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
13417         unary operator and can't be treated as a binary/comparison operator.
13418
13419 2005-01-10  Richard Henderson  <rth@redhat.com>
13420
13421         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
13422         (ix86_return_in_memory): Likewise.
13423         (function_arg_advance):  Likewise.  Mirror structure in function_arg
13424         for choosing register to advance.
13425
13426 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
13427
13428         * tree-vectorizer.c, tree.def: Fix comment typos.
13429
13430 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
13431
13432         * config/s390/s390.c (struct processor_costs): 4 new fields:
13433         ddbr, ddr, debr, der.
13434         (s390_rtx_costs): More precise handling of divide instructions.
13435
13436 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
13437
13438         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
13439
13440 2005-01-10  Jan Beulich  <jbeulich@novell.com>
13441
13442         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
13443         names resulting from -ffunction-sections/-fdata-sections and linkonce
13444         ones.
13445         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
13446         based on the section name. Rearrange the section name comparison logic
13447         slightly so that each section name is compared against at most once.
13448
13449 2005-01-10  Ben Elliston  <bje@au.ibm.com>
13450
13451         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
13452         targets for which -fPIC reduces limitations on the GOT size.
13453
13454 2005-01-09  Falk Hueffner  <falk@debian.org>
13455
13456         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
13457         X/C1 cmpop C2.
13458
13459 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
13460
13461         PR target/18720
13462         * collect2.c (main): Set aixrtl_flag for -brtl option.
13463         (resolve_lib_name): Search for .so file extension before .a
13464         if aixrtl_flag set.
13465
13466 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
13467
13468         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
13469         (vect_analyze_data_refs_alignment): Add dump prints.
13470
13471 2005-01-09  Ira Rosen  <irar@il.ibm.com>
13472
13473         * tree-vectorizer.c (vect_analyze_offset_expr): Use
13474         expr_invariant_in_loop_p.
13475         Initialize outputs first thing in the function.
13476         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
13477         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
13478         (vect_analyze_pointer_ref_access): Check that the initial condition of
13479         the access function is loop invariant.
13480
13481 2005-01-09  Richard Henderson  <rth@redhat.com>
13482
13483         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
13484         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
13485         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
13486         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
13487         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
13488         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
13489         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
13490         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
13491         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
13492         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
13493         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
13494         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
13495         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
13496         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
13497         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
13498         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
13499         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
13500         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
13501         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
13502         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
13503         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
13504         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
13505         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
13506         mmx_ prefix.
13507         (mmx_clrdi, pavgusb): Remove.
13508         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
13509         with leading sse_ prefix.
13510         * config/i386/sse.md: Receive them.
13511         * config/i386/mmx.md: New file.
13512         (MMXMODE12, MMXMODE24, mmxvecsize): New.
13513         (subrv2sf3): Turn into expander for normal subtraction.
13514         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
13515         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
13516         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
13517         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
13518         commutative; use ix86_binary_operator_ok.
13519         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
13520         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
13521         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
13522         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
13523         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
13524         Macroize from existing patterns; use ix86_binary_operator_ok.
13525         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
13526         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
13527         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
13528         with vec_select+vec_concat.
13529         (mmx_pshufw, mmx_pshufw_1): Likewise.
13530         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
13531         (mmx_uavgv4hi3): Model correctly.
13532         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
13533         _mm_xor_si64): Remove casts.
13534
13535 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
13536
13537         PR tree-optimization/19224
13538         * tree-scalar-evolution.c (get_instantiated_value,
13539         set_instantiated_value): New functions.
13540         (instantiate_parameters_1): Cache the results.
13541         (instantiate_parameters, resolve_mixers): Initialize and free
13542         the cache.
13543
13544 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
13545
13546         * config/i386/i386.md (addhi_4): Correct reference in comment.
13547         (addqi_4): Same.
13548
13549 2005-01-08  Richard Henderson  <rth@redhat.com>
13550
13551         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
13552         (_mm_cvtsi128_si64x): Likewise.
13553         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
13554         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
13555         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
13556         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
13557         * config/i386/i386-protos.h: Update.
13558         * config/i386/i386.c (print_operand): Add 'H'.
13559         (ix86_fixup_binary_operands): Split out from ...
13560         (ix86_expand_binary_operator): ... here.
13561         (ix86_fixup_binary_operands_no_copy): New.
13562         (ix86_expand_fp_absneg_operator): Handle vector mode results.
13563         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
13564         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
13565         (safe_vector_operand): Use CONST0_RTX.
13566         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
13567         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
13568         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
13569         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
13570         special cases.
13571         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
13572         (IX86_BUILTIN_CMPNGESS): New.
13573         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
13574         (attr type): Add sselog1.
13575         (attr unit, attr memory): Handle it.
13576         (movti, movti_internal, movti_rex64): Move near other integer moves.
13577         (movtf, movtf_internal): Move near other fp moves.
13578         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
13579         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
13580         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
13581         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
13582         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
13583         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
13584         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
13585         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
13586         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
13587         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
13588         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
13589         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
13590         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
13591         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
13592         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
13593         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
13594         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
13595         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
13596         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
13597         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
13598         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
13599         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
13600         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
13601         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
13602         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
13603         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
13604         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
13605         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
13606         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
13607         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
13608         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
13609         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
13610         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
13611         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
13612         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
13613         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
13614         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
13615         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
13616         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
13617         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
13618         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
13619         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
13620         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
13621         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
13622         same time.
13623         (SSEPUSH, push<SSEPUSH>): Remove.
13624         (MMXPUSH, push<MMXPUSH>): Remove.
13625         (sse_movaps, sse_movaps_1, sse_movups): Remove.
13626         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
13627         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
13628         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
13629         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
13630         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
13631         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
13632         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
13633         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
13634         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
13635         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
13636         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
13637         (ppro_sse_log_V4SF): Handle sselog1.
13638         * config/i386/predicates.md (const_0_to_1_operand): New.
13639         (const_0_to_255_mul_8_operand): New.
13640         (const_1_to_31_operand): Rename from const_int_1_31_operand.
13641         (const_2_to_3_operand, const_4_to_7_operand): New.
13642         * config/i386/sse.md: New file.
13643         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
13644         (sse_movups): Rename from sse_movups_1.
13645         (sse_loadlss): Rename from sse_loadss_1.
13646         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
13647         from the name.
13648         (negv4sf2): Use ix86_expand_fp_absneg_operator.
13649         (absv4sf2, negv2df, absv2df): New.
13650         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
13651         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
13652         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
13653         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
13654         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
13655         (sse3_addsubv4sf3): Model correctly.
13656         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
13657         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
13658         (sse_movhlps): Model with vec_select+vec_concat.
13659         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
13660         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
13661         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
13662         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
13663         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
13664         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
13665         sse2_pshufhw_1): Likewise.
13666         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
13667         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
13668         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
13669         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
13670         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
13671         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
13672         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
13673         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
13674         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
13675         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
13676         sminv8hi3): Mark commutative
13677         operands.  Use ix86_binary_operator_ok.
13678         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
13679         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
13680         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
13681         sse2_punpcklqdq): Allow operand2 in memory.
13682         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
13683         sse2_movsd): Add memory alternatives.
13684         (sse_storelps): Turn expander into an insn; split after reload.
13685         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
13686         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
13687
13688 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13689
13690         * configure.ac (DWARF-2 debug_line): Use objdump.
13691         * configure: Regenerate.
13692
13693 2005-01-08  Jeff Law  <law@redhat.com>
13694             Diego Novillo  <dnovillo@redhat.com>
13695
13696         PR tree-optimization/18241
13697         * tree-nrv.c (tree_nrv): Ignore volatile return values.
13698         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
13699         statements with volatile operands.
13700         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
13701         operands after marking a statement with has_volatile_ops.
13702
13703 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13704
13705         * tree.c (int_fits_type_p): Always honor integer constant
13706         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
13707
13708 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13709
13710         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
13711         the latent bug in rtl_delete_block has been resolved.
13712
13713 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13714
13715         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
13716         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
13717
13718 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13719
13720         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
13721         library as @multilib_dir@/$(SHLIB_SONAME).
13722
13723 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13724
13725         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
13726         * configure: Regenerate.
13727
13728 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13729
13730         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
13731         TYPE_MODE.
13732
13733 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
13734
13735         PR target/13674
13736         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
13737         Convert non-word aligned offset address using ld/std into
13738         indirect address.
13739
13740 2005-01-07  Richard Henderson  <rth@redhat.com>
13741
13742         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
13743
13744 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
13745
13746         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
13747
13748 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13749
13750         PR tree-optimization/19283
13751         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
13752         is not shorter than the original type.
13753
13754         PR rtl-optimization/19012
13755         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
13756
13757         PR rtl-optimization/18861
13758         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
13759         (FULL_STATE): Define.
13760         (mark_tablejump_edge): New function.
13761         (purge_dead_tablejump_edges): New function.
13762         (find_bb_boundaries): Use it.
13763
13764         PR tree-optimization/18828
13765         * builtins.c (expand_builtin_next_arg): Remove argument and all
13766         the argument checking.
13767         (expand_builtin): Adjust caller.
13768         (expand_builtin_va_start): Likewise.  Remove error for too many
13769         arguments.
13770         (fold_builtin_next_arg): Issue error for too many arguments.
13771         After checking arguments, replace them with magic arguments that
13772         prevent further checking of the args.
13773
13774 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13775
13776         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
13777
13778 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13779
13780         PR target/6077
13781         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
13782         and %{.S:...} (and their negative variants) to test whether the
13783         input file is assembler or pre-processed-assembler independent of
13784         the actual filename extension.
13785
13786 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13787
13788         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
13789         of sign or zero extended values.
13790
13791 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
13792
13793         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
13794         for IBM long double format correctly.
13795
13796 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
13797
13798         Fix PR tree-optimization/18792
13799
13800         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
13801         to first_loop_depth, and use loop depth instead of loop number.
13802         (build_classic_dir_vector): Ditto.
13803         (compute_data_dependences_for_loop): Use depth, not loop number.
13804         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
13805         number. Pass in loops, instead of loop numbers.
13806         (gather_interchange_stats): Ditto.
13807         (linear_transform_loops): Ditto.
13808
13809 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
13810
13811         PR rtl-opt/13299
13812         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
13813         biv_fits_mode_p, extension_within_bounds_p): New functions.
13814         (check_ext_dependent_givs): Use them.
13815
13816 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13817
13818         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
13819         more than one barrier, in which case we should delete them all.
13820
13821 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
13822
13823         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
13824
13825 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
13826
13827         Fix PR middle-end/19286
13828         Fix PR debug/19267
13829         * dwarf2out.c (gen_subprogram_die): If we've already tried to
13830         output this subprogram, simply ignore this attempt to do it again.
13831         (add_abstract_origin_attribute): Don't abort trying to add the abstract
13832         origin attribute if it's not possible.
13833         (gen_block_die): Don't ignore subblocks of "unused" blocks.
13834         (decls_for_scope): Ditto.
13835         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
13836         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
13837
13838 2005-01-05  Richard Henderson  <rth@redhat.com>
13839
13840         PR target/11327
13841         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
13842         (bdesc_2arg): Use it.
13843         (ix86_expand_binop_builtin): Force operands into registers
13844         when optimizing.
13845         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
13846         ix86_expand_sse_compare, ix86_expand_sse_comi,
13847         ix86_expand_builtin): Likewise.
13848
13849 2005-01-05  Richard Henderson  <rth@redhat.com>
13850
13851         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
13852         and VEC_SELECT.
13853         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
13854         (mulv4hi3): Set itanium_class mmmul.
13855         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
13856         (fpack): Rename from fpack_sfsf.
13857
13858 2005-01-05  Richard Henderson  <rth@redhat.com>
13859
13860         PR rtl-opt/10692
13861         * reload1.c (do_input_reload): Restrict the optimization deleteing
13862         a previous output reload to RELOAD_FOR_INPUT.
13863
13864 2005-01-05  Steven Bosscher  <stevenb@suse.de>
13865
13866         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
13867         comment that we fall through after case.
13868         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
13869         (distribute_links): Likewise.
13870         * cse.c (cse_insn): Likewise.
13871         * cselib.c (cselib_invalidate_mem): Likewise.
13872         * df.c: Update comments at the top of the file.
13873         (read_modify_subreg_p): Update comments here too.
13874         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
13875         * flow.c (mark_set_1): Likewise.
13876         (mark_used_regs): Likewise.
13877         * gcse.c (mems_conflict_for_gcse_p): Likewise.
13878         (canon_list_insert): Likewise.
13879         (mark_set): Likewise.
13880         (try_replace_reg): Likewise.
13881         (store_killed_in_insn): Likewise.
13882         * loop.c (count_one_set): Likewise.
13883         (basic_induction_var): Likewise.
13884         * postreload-gcse.c (find_mem_conflicts): Likewise.
13885         * postreload.c (reload_combine_note_store): Likewise.
13886         (move2add_note_store): Likewise.
13887         * reload.c (find_equiv_reg): Likewise.
13888         (mark_referenced_resources): Likewise.
13889         * rtlanal.c (set_noop_p): Likewise.
13890         (note_stores): Likewise.
13891         (note_uses): Likewise.
13892         * sched-deps.c (sched_analyze_1): Likewise.
13893         * sched-rgn.c (check_live_1): Likewise.
13894         (update_live_1): Likewise.
13895         * config/i860/i860.c: Likewise.
13896
13897         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
13898         an lvalue.
13899         (ZERO_EXTRACT): Mention that this one can be an lvalue.
13900
13901         * doc/rtl.texi: Update documentation for bit-fields and SET.
13902
13903 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13904
13905         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
13906
13907 2005-01-05  Jan Hubicka  <jh@suse.cz>
13908             Richard Henderson  <rth@redhat.com>
13909
13910         PR target/18910
13911         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
13912         with an offset.
13913
13914 2005-01-05  Richard Henderson  <rth@redhat.com>
13915
13916         PR target/12902
13917         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
13918         (sse_shufps): Change operand 3 to const_int_operand.
13919         (sse2_storelps): Fix typo in template.
13920         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
13921         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
13922         (ix86_expand_builtin): Likewise.
13923
13924 2005-01-05  Julian Brown  <julian@codesourcery.com>
13925
13926         * config/arm/arm.c (arm_return_in_memory): Treat complex types
13927         as aggregates for AAPCS ABIs.
13928
13929 2005-01-05  Stan Shebs  <shebs@apple.com>
13930
13931         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
13932         Mach-O getters if ppc64.
13933         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
13934         size argument.
13935         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13936         signed four-byte field for global code case.
13937         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
13938
13939 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13940
13941         PR middle-end/19100
13942         * c-common.c: Include real.h.
13943         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
13944         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
13945         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
13946         * Makefile.in (c-common.o): Update dependencies.
13947
13948 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13949
13950         * c-parse.in (asm_string): Add trailing semicolon.
13951
13952 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13953
13954         * c-parse.in (asm_string): New.  Don't allow wide strings in
13955         'asm'.
13956         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
13957         asm_string instead of STRING.
13958
13959 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13960
13961         * c-typeck.c (constructor_no_implicit): Remove.
13962         (set_designator, process_init_element): Don't check
13963         constructor_no_implicit.
13964
13965 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
13966             Kaz Kojima  <kkojima@gcc.gnu.org>
13967
13968         PR target/16482
13969         * lcm.c (create_pre_exit): New.
13970         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
13971         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
13972
13973 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13974
13975         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
13976         -msoft-float in target_float_switch.
13977         * arm.c (arm_override_options): Fix processing of target_float_switch.
13978
13979 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13980
13981         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
13982         preferencing.
13983
13984 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
13985
13986         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
13987         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
13988
13989 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13990
13991         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
13992         if deleting the then-block allows the test-block to fallthru to the
13993         else-block.
13994
13995 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
13996
13997         PR c/19152
13998         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
13999         after the full declaration if the are in two different TUs.
14000
14001 2005-01-04  Richard Henderson  <rth@redhat.com>
14002
14003         PR tree-opt/19158
14004         * tree-sra.c (generate_one_element_init): Just
14005         call gimplify_and_add.
14006         (generate_element_init): Record the
14007         new referenced variables and mark them for renaming
14008         and split out to ...
14009         (generate_element_init_1): This.
14010         (scalarize_init): Don't call push_gimplify_context/
14011         pop_gimplify_context.
14012
14013 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
14014
14015         * toplev.c (get_src_pwd): Handle failure of getpwd().
14016
14017 2005-01-04  Roger Sayle  <roger@eyesopen.com>
14018
14019         * fold-const.c (fold_single_bit_test): Delete unreachable handling
14020         of TRUTH_NOT_EXPR.
14021         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
14022         all the cases handled by it are inverted by invert_truthvalue.
14023
14024 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14025
14026         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
14027         (save_register_windowsi): Likewise.
14028
14029 2005-01-04  Richard Henderson  <rth@redhat.com>
14030
14031         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
14032
14033 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
14034
14035         PR middle-end/17767
14036         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
14037         any simplifications of vector mode comparison operators.
14038         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
14039
14040 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
14041             Devang Patel  <dpatel@apple.com>
14042
14043         PR tree-optimization/18308
14044         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
14045         the operands before creating a new expression.
14046         * dojump.c (do_jump): Make drop_through_label available
14047         for all cases.  Add expansion of COND_EXPR.
14048
14049 2005-01-04  Ira Rosen  <irar@il.ibm.com>
14050
14051         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
14052         INTEGER_CST instead of TREE_CONSTANT.
14053         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
14054         instead of TREE_CONSTANT.
14055         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
14056         instead of TREE_CONSTANT.
14057
14058 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14059
14060         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
14061
14062 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
14063
14064         PR target/19240
14065         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
14066         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
14067
14068 2005-01-03  Richard Henderson  <rth@redhat.com>
14069
14070         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
14071         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
14072         fold_convert_const_real_from_real): Split out from ...
14073         (fold_convert_const): ... here.
14074
14075 2005-01-03  Richard Henderson  <rth@redhat.com>
14076
14077         PR target/19235
14078         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
14079         (mov<MMXMODEI>_internal): Likewise.
14080         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
14081         Add V2SF case; use it for SSE1; don't use TI.
14082         (movdf_integer): Likewise.
14083         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
14084
14085 2005-01-03  Ira Rosen  <irar@il.ibm.com>
14086
14087         * tree-vectorizer.c (vect_strip_conversions): New function.
14088         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
14089         check for binary class.
14090
14091 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
14092
14093         Fix PR debug/17924
14094         Fix PR debug/19191
14095         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
14096         is a decl.
14097         * gimple-low.c (mark_blocks_with_used_vars): New function.
14098         (mark_blocks_with_used_subblocks): Ditto.
14099         (mark_used_blocks): Ditto.
14100         (pass_mark_used_blocks): New pass.
14101         * tree-inline.c: Include debug.h.
14102         (expand_call_inline): Call outlining_inline_function here.
14103         * tree-optimize.c (init_tree_optimization_passes): Add
14104         pass_mark_used_blocks.
14105         * tree-pass.h (pass_mark_used_blocks): New.
14106         * Makefile.in (tree-inline.o): Add debug.h dependency.
14107
14108 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
14109
14110         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
14111         VAR_DECLs to have weak_import attribute.
14112
14113         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
14114         'struct ucontext'.
14115
14116 2004-01-03  Steven Bosscher  <stevenb@suse.de>
14117
14118         * passes.c (rest_of_compilation): Don't run regmove if only
14119         flag_expensive_optimizations, require flag_regmove instead.
14120
14121 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14122
14123         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
14124         register "sparc".
14125         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
14126         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
14127         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
14128         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
14129
14130 2005-01-03  Richard Henderson  <rth@redhat.com>
14131
14132         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
14133         (ia64_const_ok_for_letter_p): New.
14134         (ia64_const_double_ok_for_letter_p): New.
14135         (ia64_extra_constraint): New.
14136         (ia64_expand_vecint_compare): New.
14137         (ia64_expand_vcondu_v2si): New.
14138         (ia64_expand_vecint_cmov): New.
14139         (ia64_expand_vecint_minmax): New.
14140         (ia64_print_operand): Add 'v'.
14141         (ia64_preferred_reload_class): New.
14142         (ia64_vector_mode_supported_p): New.
14143         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
14144         (PREFERRED_RELOAD_CLASS): Move to function.
14145         (CONST_OK_FOR_LETTER_P): Move to function.
14146         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
14147         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
14148         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
14149         (EXTRA_CONSTRAINT): Move to function.
14150         * config/ia64/ia64.md: Include vect.md.
14151         (itanium_class): Add mmalua.
14152         (type): Handle it.
14153         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
14154         (1b_mmalua): New.
14155         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
14156         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
14157         CONST0_RTX.
14158         (const_int_2bit_operand): New.
14159         (fr_reg_or_0_operand): New.
14160         * config/ia64/ia64-modes.def: Add vector modes.
14161         * config/ia64/ia64-protos.h: Update.
14162         * config/ia64/vect.md: New file.
14163
14164 2005-01-03  Richard Henderson  <rth@redhat.com>
14165
14166         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
14167
14168 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
14169
14170         PR target/19236
14171         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
14172         to SFmode.
14173         (log1pdf2): Change mode of operands[0,1] to DFmode.
14174
14175 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14176
14177         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
14178         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
14179         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14180         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
14181         SPARC_RELAXED_ORDERING.
14182
14183 2005-01-03  Richard Henderson  <rth@redhat.com>
14184             Uros Bizjak  <uros@kss-loka.si>
14185
14186         PR target/14631
14187         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
14188         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
14189         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
14190         handling.
14191         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
14192         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
14193         const_pow2_1_to_128_operand): New predicates.
14194
14195 2005-01-02  Greg McGary  <greg@mcgary.org>
14196
14197         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
14198         anonymous decls.
14199         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
14200         object.  [ptr_type]: Remove unused variable.
14201         Remember nearest addressable array-element or record-component
14202         when checking bitfield components.  Tolerate empty BIND_EXPR.
14203
14204 2005-01-01  Richard Henderson  <rth@redhat.com>
14205
14206         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
14207         that don't narrow the value.  Fail for other conversions.
14208
14209 2005-01-01  Richard Henderson  <rth@redhat.com>
14210
14211         PR c/19031
14212         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
14213         * c-lang.c (finish_file): Don't do it here.
14214         * objc/objc-act.c (objc_finish_file): Likewise.
14215
14216         * cgraph.c (decl_assembler_name_equal): New.
14217         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
14218         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
14219         * cgraph.h (struct cgraph_varpool_node): Add next.
14220         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
14221         * varasm.c (assemble_alias): Mark the target as needed.
14222
14223 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
14224
14225         PR middle-end/19221
14226         * function.c (get_arg_pointer_save_area): Use entry_of_function
14227         instead of get_insns.
14228
14229 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14230             Andrew Pinski  <pinskia@physics.uc.edu>
14231             James E. Wilson  <wilson@specifixinc.com>
14232
14233         PR rtl-optimization/12092
14234         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
14235         is zero.
14236
14237 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14238             Olivier Hainque  <hainque@act-europe.fr>
14239
14240         * tree.c (int_fits_type_p): A narrower type always fits in a
14241         wider one, except for negative values into unsigned types.
14242
14243 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14244
14245         * tree.c (int_fits_type_p): Compare the result of force_fit_type
14246         with the original constant rather than require TREE_OVERFLOW.
14247
14248 2005-01-01  Steven Bosscher  <stevenb@suse.de>
14249
14250         PR middle-end/17544
14251         * c-decl.c (finish_function): If compiling C99, annotate the
14252         compiler generated return with the current file name and line 0.
14253         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
14254         the source line is greater than 0.
14255         (remove_bb): Likewise.