OSDN Git Service

2005-04-27 Matt Thomas <matt@3am-software.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-27  Matt Thomas <matt@3am-software.com>
2
3         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
4                 CONSTANT_ADDRESS_P in config/vax/vax.h
5         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h. 
6         (INDEX_REGISTER_P): New.
7         (BASE_REGISTER_P): New.
8         (indirectable_constant_address_p): New.  Adapted from
9                 INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h.
10                 Use SYMBOL_REF_LOCAL_P.
11         (indirectable_address_p): New.  Adapted from
12                 INDIRECTABLE_ADDRESS_P in vax.h.
13         (nonindexed_address_p): New.  Adapted from
14                 GO_IF_NONINDEXED_ADDRESS in vax.h.
15         (index_temp_p): New.  Adapted from
16                 INDEX_TERM_P in vax.h.
17         (reg_plus_index_p): New.  Adapted from
18                 GO_IF_REG_PLUS_INDEX in vax.h.
19         (legitimate_address_p): New.  Adapted from
20                 GO_IF_LEGITIMATE_ADDRESS in vax.h
21         (vax_mode_dependent_address_p): New.  Adapted from
22                 GO_IF_MODE_DEPENDENT_ADDRESS in vax.h
23         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
24                 legitimate_constant_address_p
25         (CONSTANT_P): Use legitimate_constant_p.
26         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
27         (INDIRECTABLE_ADDRESS_P): Removed.
28         (GO_IF_NONINDEXED_ADDRESS): Removed.
29         (INDEX_TEMP_P): Removed.
30         (GO_IF_REG_PLUS_INDEX): Removed.
31         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p.
32                 Two definitions, depending on whether REG_OK_STRICT is defined.
33         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
34                 Two definitions, depending on whether REG_OK_STRICT is defined.
35         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
36                 added.
37         (legitimate_constant_p): Prototype added.
38         (legitimate_address_p): Prototype added.
39         (vax_mode_dependent_address_p): Prototype added.
40
41 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
42
43         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
44
45 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
46
47         PR c/21213
48         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
49         transparent union.
50
51 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
52
53         PR c/20740
54         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
55         assertion failures, if __gcc_host_wide_int__ is not properly
56         defined.
57         (init_dynamic_diag_info): Give errors, not assertion failures, if
58         location_t, tree or __gcc_host_wide_int__ are not properly
59         defined.
60
61 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
62
63         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
64         n_iv_uses, iv_use, n_iv_cands, iv_cand,
65         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
66         prepare_decl_rtl, free_loop_data,
67         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
68         VARRAY.
69
70         * tree.h (tree_phi_node): Add a comment about the order of PHI
71         arguments.
72
73 2005-04-26  Paul Brook  <paul@codesourcery.com>
74
75         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
76
77 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
78
79         * config/mips.mips.c (mips_legitimize_tls_address): Use
80         gcc_unreachable.
81
82         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
83         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
84         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
85
86         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
87         'abort'.
88
89 2005-04-26  Jeff Law  <law@redhat.com>
90
91         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
92         (op_iter_init_must_and_may_def): Likewise.
93         (unmodifiable_var_p): Move to a later point in the file.
94         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
95         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
96         (dse_record_phis): Directly check for virtual operands rather than
97         using need_imm_uses_for.
98         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
99         store has multiple V_{MAY,MUST}_DEF operands.
100
101 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
102
103         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
104         stmt.
105
106 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
107
108         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
109         call to find_edge outside a loop to go through a PHI chain.
110
111 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
112
113         PR tree-optimization/17598
114         * fold-const.c (fold_binary): Fold comparisons of addresses
115         of COMPONENT_REFs which reference the same field to
116         comparisons of the addresses of the base objects.
117
118 2005-04-26  Julian Brown  <julian@codesourcery.com>
119
120         * config/arm/arm.c (arm_return_in_msb): New function.
121         (arm_must_pass_in_stack): New function.
122         (TARGET_RETURN_IN_MSB): Define target hook.
123         (TARGET_MUST_PASS_IN_STACK): Define target hook.
124         (arm_function_value): Pad small aggregate return.
125         (arm_pad_arg_upward): New function.
126         (arm_pad_reg_upward): New function.
127         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
128         (FUNCTION_ARG_PADDING): Define macro.
129         (BLOCK_REG_PADDING): Define macro.
130         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
131         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
132         (arm_pad_reg_upward): Declare function.
133
134 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
135
136         * basic-block.h (ei_cond): New.
137         (FOR_EACH_EDGE): Call ei_cond.
138
139         PR tree-optimization/21047
140         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
141         (fold): Don't handle ASSERT_EXPR.
142
143 2005-04-25  Roger Sayle  <roger@eyesopen.com>
144
145         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
146         all writes to any stack register as a read/write dependency on
147         FIRST_STACK_REG.
148         (sched_analyze_2): Likewise, for reads from any stack register.
149
150 2005-04-25  Richard Henderson  <rth@redhat.com>
151
152         * final.c (output_addr_const): Revert 2005-04-09 change.
153
154 2005-04-25  Mike Stump  <mrs@apple.com>
155
156         * config/darwin.c (darwin_encode_section_info): Always set
157         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
158
159 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
160
161         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
162         gensupport.c, protoize.c, toplev.c: Replace calls to
163         `unlock_stream' with `unlock_std_streams'.
164
165 2005-04-25  Devang Patel <dpatel@apple.com>
166
167         * dbxout.c (dbxout_type): Emit attribute vector.
168         
169 2005-04-05  Paul Brook  <julian@codesourcery.com>
170
171         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
172         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
173         * config/arm/arm.c (arm_cxx_atexit_name): New function.
174         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
175         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
176         (register_dtor_fn): Likewise.
177         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
178
179 2005-04-25  Ian Lance Taylor  <ian@airs.com>
180
181         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
182         * c-common.h (EXPR_STMT_EXPR): Don't define.
183         (c_common_stmt_codes): Don't define.
184         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
185         * c-gimplify.c (gimplify_expr_stmt): Remove.
186         (c_gimplify_expr): Remove EXPR_STMT case.
187         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
188         to INIT_STATEMENT_CODES.
189         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
190
191 2005-04-25  Jan Hubicka  <jh@suse.cz>
192
193         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
194
195         * except.c: Include diagnostic.h
196         (dump_eh_tree, verify_eh_tree): New functions.
197         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
198         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
199         (dump_function_to_file): dump eh tree.
200         * tree-eh.c (mark_eh_edge): New function.
201         (mark_eh_edge_found_error): New static variable.
202         (verify_eh_edges): New function.
203
204 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
205
206         * tree-ssa-alias.c (fieldoff_t): Remove.
207         (fieldoff_s): typedef the structure itself.  Create a vector of
208         objects.
209         (push_fields_onto_fieldstack): Return count of fields pushed.
210         Remove peeling of first field.  Adjust.
211         (fieldoff_compare): Adjust.
212         (create_overlap_variables_for): Adjust.
213
214 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
215
216         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
217
218 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
219
220         PR bootstrap/21215
221         * doc/install.texi: Document correct assembler and linker to use
222         on i?86-*-solaris2.10.
223
224 2005-04-25  Steven Bosscher  <stevenb@suse.de>
225
226         Fix PR tree-optimization/21173
227
228         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
229         Unshare expression we pass to force_gimple_operand.
230
231 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
232             Stephen Clarke <stevec@superh.com>
233             Roger Sayle <roger@eyesopen.com>
234
235         PR rtl-optimization/20413
236         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
237         VOIDmode for LABEL_REF.
238         * final.c (shorten_branches): Likewise.
239         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
240         * loop.c (reg_dead_after_loop): Likewise.
241         * varasm.c (decode_addr_const): Likewise.
242         * doc/rtl.texi: Document mode requirement for LABEL_REF.
243
244 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
245
246         * config.gcc (avr-*-*): Remove redundant "case".
247
248 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
249
250         * tree-vect-analyze.c (vect_mark_relevant): Take
251         VEC(tree,heap) instead of varray_type as an argument.
252         (vect_mark_stmts_to_be_vectorized): Change the type of
253         worklist to VEC(tree,heap).  Adjust uses of worklist.
254
255 2005-04-24  Devang Patel  <dpatel@apple.com>
256
257         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
258         
259 2005-04-24  Ian Lance Taylor  <ian@airs.com>
260
261         * c-semantics.c (build_stmt): Remove test of specific tree codes
262         for TREE_SIDE_EFFECTS handling.
263
264 2005-04-24  Per Bothner  <per@bothner.com>
265
266         * c-opts.c (finish_options):  Make the line-number of the <built-in>
267         location 0, as assumed elsewhere, rather than 1.
268
269 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
270
271         * tree-ssa-uncprop.c (equiv_stack): Change the type o
272         VEC(tree,heap).
273         (tree_ssa_uncprop, uncprop_finalize_block,
274         uncprop_initialize_block): Update uses of equiv_stack.
275
276 2005-04-24  Richard Henderson  <rth@redhat.com>
277
278         PR rtl-opt/21163
279         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
280         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
281         constm1_rtx.
282         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
283         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
284         <DIV, MOD>: Likewise.
285
286 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
287
288         * collect2.c (main): Unlock the stdio streams.
289         * gcc.c (main): Likewise.
290         * gcov-dump.c (main): Likewise.
291         * gcov.c (main): Likewise.
292         * gen-protos.c (main): Likewise.
293         * gensupport.c (init_md_reader_args_cb): Likewise.
294         * protoize.c (main): Likewise.
295         * toplev.c (general_init): Likewise.
296
297 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
298
299         PR middle-end/20991
300         * cgraph.h (cgraph_local_info): Add vtable_method field.
301         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
302         and node is vtable_method, finalized and not reachable, don't do
303         anything.
304
305 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
306
307         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
308         COMPARISON_CLASS_P.
309         * tree-ssa-pre.c (create_value_expr_from): Use
310         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
311         * tree-ssa-propagate.c (stmt_makes_single_load,
312         stmt_makes_single_store): Use REFERENCE_CLASS_P.
313         * tree-vect-transform.c (vect_is_simple_cond): Use
314         COMPARISON_CLASS_P.
315         * tree-vrp.c (extract_range_from_assert,
316         build_assert_expr_for, fp_predicate, has_assert_expr): Use
317         COMPARISON_CLASS_P.
318
319         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
320         of tpa_to_clear to VEC(int,heap).  Update uses of
321         tpa_to_clear.  Free tpa_to_clear at the end.
322
323 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
324
325         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
326         function decl.
327
328 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
329
330         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
331         and gcc_unreachable as appropriate.
332         (num_insns_constant, output_vec_const_move,
333         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
334         rs6000_emit_set_const, rs6000_emit_move,
335         spe_build_register_parallel, function_arg,
336         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
337         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
338         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
339         rs6000_common_init_builtins, expand_block_clear,
340         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
341         extract_ME, rs6000_get_some_local_dynamic_name,
342         rs6000_output_function_entry, print_operand,
343         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
344         output_cbranch, output_e500_flip_gt_bit,
345         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
346         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
347         compute_save_world_info, rs6000_stack_info,
348         rs6000_emit_load_toc_table, rs6000_frame_related,
349         spe_synthesize_frame_save, rs6000_emit_epilogue,
350         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
351         output_function_profiler, rs6000_trampoline_size,
352         rs6000_initialize_trampoline, find_addr_reg,
353         rs6000_machopic_legitimize_pic_address,
354         rs6000_initial_elimination_offset,
355         rs6000_dbx_register_number): Likewise.
356         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
357         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
358         *movti_power, *movti_string, call, call_value, sibcall,
359         sibcall_value): Likewise.
360         * config/rs6000/spe.md (*movdf_e500_double,
361         *movv2si_internal): Likewise.
362         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
363         from comment.
364
365 2005-04-24  Richard Henderson  <rth@redhat.com>
366
367         PR target/21101
368         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
369         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
370         Deny modes smaller than 4 bytes.
371         * config/i386/i386-protos.h: Update.
372
373 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
374
375         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
376         Switch h8300-*-rtems* to ELF.
377
378 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
379
380         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
381
382 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
383
384         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
385
386 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
387
388         PR middle-end/21082
389         * fold-const.c: Fold &a[i]-&a[j] to i-j.
390
391 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
392
393         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
394         definitions of ssa names in condition.  Split recusive part to ...
395         (tree_simplify_using_condition_1): New function.
396         (expand_simple_operations): New function.
397
398 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
399
400         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
401         (find_interesting_uses_cond): Do not use integer_zerop and
402         integer_nonzerop to check for integer constants.
403         (set_use_iv_cost): Record the value field.
404         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
405         determine_use_iv_cost_outer): Set the value field of the cost pair.
406         (may_eliminate_iv): Do not return the comparison code.
407         (iv_elimination_compare): New function.
408         (determine_use_iv_cost_condition): Set the value field.  Record
409         noneliminable invariants correctly.
410         (rewrite_use_compare, rewrite_use_outer): Use the value field.
411
412 2005-04-23  DJ Delorie  <dj@redhat.com>
413
414         * diagnostic.c (warning): Accept parameter to classify warning option.
415         (warning0): New, for when a pointer to an error() like function is needed.
416         * errors.c (warning): Likewise.
417         * errors.h (warning, warning0): Adjust prototypes.
418         * toplev.h (warning, warning0): Likewise.
419
420         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
421         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
422         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
423         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
424         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
425         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
426         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
427         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
428
429         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
430         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
431         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
432         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
433         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
434         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
435         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
436         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
437         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
438         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
439         config/rs6000/aix52.h, config/rs6000/darwin.h,
440         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
441         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
442         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
443         config/stormy16/stormy16.c, config/v850/v850-c.c,
444         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
445         callers.
446         
447 2005-04-23  Richard Henderson  <rth@redhat.com>
448
449         PR rtl-opt/21102
450         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
451         performing some integral scalar simplifications.
452
453 2005-04-23  Richard Henderson  <rth@redhat.com>
454
455         PR target/21099
456         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
457         simplifying CONST_VECTOR.
458
459 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
460
461         * tree-ssa-live.c (live_worklist): Take a stack allocated on
462         heap as an argument.  Update uses of stack.
463         (calculate_live_on_entry): Allocate stack on heap.
464
465         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
466         partition_link and tpa_nodes on heap.
467
468         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
469         (mark_stmt_necessary, propagate_necessity,
470         mark_really_necessary_kill_operand_phis): Update uses of
471         worklist.
472         (tree_dce_init): Allocate worklist using VEC_alloc.
473         (tree_dce_done): Free worklist using VEC_free.
474
475 2005-04-23  Mike Stump  <mrs@apple.com>
476
477         * config/darwin.c (machopic_indirection_name): Don't use
478         quotes needlessly.
479         (darwin_emit_unwind_label): Use user_label_prefix instead of
480         "_".
481
482 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
483
484         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
485
486 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
487
488         * config.gcc <cris-*>: Specify .opt files.
489         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
490         config/cris/linux.opt: New files.
491         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
492         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
493         (TARGET_ELF): Override to 0.
494         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
495         -melinux-stacksize=N.
496         * config/cris/cris.c: (cris_handle_option): New function.
497         (TARGET_DEFAULT_TARGET_FLAGS): Override.
498         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
499         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
500         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
501         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
502         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
503         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
504         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
505         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
506         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
507         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
508         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
509         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
510         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
511         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
512         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
513         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
514         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
515         (TARGET_LINUX): Define 0.
516         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
517         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
518         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
519         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
520         (TARGET_LINUX): Override to 1.
521         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
522
523 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
524
525         * haifa-sched.c (schedule_block): Fix thinko in previous
526         assertification patch.
527
528 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
529
530         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
531         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
532         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
533         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
534         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
535         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
536         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
537         for hpux11.[1-9]*.
538         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
539         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
540         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
541         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
542         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
543         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
544         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
545         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
546         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
547         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
548         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
549         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
550         (SUBTARGET_OPTIONS): Delete.
551         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
552         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
553         instead of a string.
554         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
555         (pa_cpu_string, pa_unix_string): Delete.
556         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
557         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
558         TARGET_HPUX_10_10.
559         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
560         (pa_handle_option): New function.
561         (override_options): Remove handling of -march=, -mfixed-range=,
562         -mschedule= and -munix=.
563         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
564         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
565         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
566         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
567         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
568         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
569         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
570         redefining.
571         * config/pa/pa.opt: New file.
572         * config/pa/pa-hpux.opt: New file.
573         * config/pa/pa-hpux1010.opt: New file.
574         * config/pa/pa-hpux1111.opt: New file.
575         * config/pa/pa64-hpux.opt: New file.
576
577 2005-04-22  David S. Miller  <davem@davemloft.net>
578
579         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
580         integer when it's mode is VOIDmode not DImode.
581
582 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
583
584         * config/rs6000/rs6000.md (sync_add<mode>_internal,
585         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
586         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
587         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
588         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
589         "bne- $-xxx" rather than local labels.
590         (sync_lock_release<mode>): Add second operand.
591         (lwsync): Use .long rather than a more meaningful opcode.
592         * doc/md.texi (Standard Names): Add description of second
593         parameter to sync_lock_test_and_set.
594
595 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
596
597         PR tree-optimization/21088
598         * fold-const.c (fold_unary, fold_binary, fold_ternary):
599         Export.
600         * tree-vrp.c (compare_values): Use fold_binary to compare
601         pointers.  Use boolean_type_node as the type of a comparison
602         expression being folded.
603         * tree.h: Add prototypes for fold_unary, fold_binary,
604         fold_ternary.
605
606         * tree-ssa-dom.c: Fix formatting.
607
608 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
609
610         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
611         * lambda-code.c (perfect_nestify): Mark virtual operands in
612         the moved statement for renaming.
613         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
614         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
615         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
616         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
617         * tree-flow.h (struct var_ann_d): Update comments.
618         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
619         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
620         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
621         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
622         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
623         debug_names_replaced_by): Remove declarations.
624         (delete_update_ssa, get_current_def, set_current_def): Declare.
625         (rewrite_into_loop_closed_ssa): Add new argument.  Update
626         all callers.
627         * tree-into-ssa.c: Include params.h.
628         (old_virtual_ssa_names): Remove.  Update all users.
629         (need_to_replace_names_p): Remove.  Update all users.
630         (struct update_ssa_stats_d): Declare.
631         (update_ssa_stats): New local.
632         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
633         dump_tree_ssa_stats, debug_tree_ssa_stats,
634         dump_update_ssa, debug_update_ssa,
635         dump_names_replaced_by, debug_names_replaced_by): Declare.
636         (get_current_def, set current_def): Make extern.
637         (is_old_name, is_new_name): Protect against references
638         past the end of the sets.
639         (add_new_name_mapping): Assert that OLD and NEW are
640         different SSA names for the same symbol.
641         When adding a virtual mapping, update stats for virtual
642         mapping heuristic.
643         (insert_phi_nodes_for): If UPDATE_P is true, create the
644         LHS of the new PHI by duplicating SSA name VAR.
645         (insert_phi_nodes_1): Remove.  Update all users.
646         (insert_phi_nodes): Remove second argument.  Update all
647         users.
648         (maybe_replace_use, maybe_replace_def): New.
649         (rewrite_update_stmt): Call them.
650         (mark_def_interesting): Remove calls to is_gimple_reg.
651         (prepare_phi_args_for_update): Remove.  Update all users.
652         (prepare_block_for_update): Only process virtual operands
653         and GIMPLE registers in normal form.
654         (prepare_use_sites_for): New.
655         (prepare_names_to_update): Rename from prepare_def_sites.
656         Call prepare_use_sites_for.
657         (dump_update_ssa): Rename from dump_repl_tbl.
658         Update all users.
659         Show statistics for virtual mapping heuristic.
660         (debug_update_ssa): Rename from debug_debug_repl_tbl.
661         (init_update_ssa): Initialize UPDATE_SSA_STATS.
662         (delete_update_ssa): Make extern.
663         (mark_set_for_renaming): If the set is empty, do nothing.
664         (release_ssa_name_after_update_ssa): Update comment.
665         (insert_updated_phi_nodes_for): Do not remove existing
666         PHI nodes for symbols.
667         (switch_virtuals_to_full_rewrite_p): New.
668         (switch_virtuals_to_full_rewrite): New.
669         (update_ssa): Call them.
670         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
671         for every statement before updating.
672         If all the names in NEW_SSA_NAMES have been marked for
673         removal, do nothing.
674         Only start at the top of the CFG if there are symbols in
675         SYMS_TO_RENAME.
676         (ssa_rewrite_finalize_block): Remove.
677         (ssa_register_new_def): Remove.
678         (ssa_rewrite_stmt): Remove.
679         (ssa_rewrite_phi_arguments): Remove.
680         (ssa_rewrite_initialize_block): Remove.
681         (ssa_mark_def_sites): Remove.
682         (ssa_mark_def_sites_initialize_block): Remove.
683         (ssa_mark_phi_uses): Remove.
684         (rewrite_ssa_into_ssa): Remove.
685         * tree-phinodes.c (find_phi_node_for): Remove.
686         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
687         Call update_ssa.
688         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
689         Remove calls to verify_dominators and
690         verify_loop_structure.
691         (tree_unswitch_single_loop): Call update_ssa.
692         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
693         returns false.
694         Call verify_stmts.
695         (delete_tree_ssa): Assert that need_ssa_update_p returns
696         false.
697         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
698         * tree-vectorizer.c (allocate_new_names, rename_def_op,
699         free_new_names): Remove.  Update all users.
700         (rename_use_op): Call get_current_def.
701         (rename_variables_in_bb): Do not handle any real or
702         virtual definition.
703         (slpeel_update_phis_for_duplicate_loop): Call
704         get_current_def and set_current_def instead of using
705         SSA_NAME_AUX.
706         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
707         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
708         ssa_names_to_replace and delete_update_ssa.
709         * doc/invoke.texi: Document --param min-virtual-mappings
710         and --param virtual-mappings-ratio.
711
712 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
713
714         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
715         for newly created PHI nodes.
716         Call create_new_def_for for every new V_MAY_DEF and
717         V_MUST_DEF on the copied statement.
718         (struct ssa_name_map_entry): Remove.
719         (ssa_name_map_entry_hash): Remove.
720         (ssa_name_map_entry_eq): Remove.
721         (allocate_ssa_names): Remove.
722         (rewrite_to_new_ssa_names_def): Remove.
723         (rewrite_to_new_ssa_names_use): Remove.
724         (rewrite_to_new_ssa_names_bb): Remove.
725         (rewrite_to_new_ssa_names): Remove.
726         (tree_duplicate_sese_region): Remove variables ver,
727         definitions, phi, ssa_name_map and bi.
728         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
729         Call update_ssa.
730         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
731         update_ssa instead of rewrite_ssa_into_ssa.
732         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
733         create_new_def_for.
734         (find_uses_to_rename_use): Add argument 'need_phis'.
735         (find_uses_to_rename_stmt): Do not scan virtual operands.
736         (find_uses_to_rename): Only scan PHI nodes for
737         non-virtual names.
738         (rewrite_into_loop_closed_ssa): Call update_ssa.
739         (check_loop_closed_ssa_use): Ignore virtual operands.
740         (check_loop_closed_ssa_stmt): Likewise.
741         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
742         NULL.
743         (rename_variables, set_phi_def_stmts): Remove.
744         (tree_duplicate_loop_to_header_edge): Reformat comment.
745         Remove variables BB, I and DEFINITIONS.
746         Call need_ssa_update_p.
747         Call update_ssa.
748         (lv_adjust_loop_header_phi): Reformat comment.
749         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
750         (marked_for_rewrite_p, any_marked_for_rewrite_p,
751         mark_for_rewrite, unmark_all_for_rewrite,
752         marked_ssa_names): Remove.  Update all users.
753         (release_ssa_name): If VAR has been registered for SSA
754         updating, do nothing.
755         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
756         (build_assert_expr_for): Call register_new_name_mapping.
757         (insert_range_assertions): Update call to update_ssa.
758         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
759         marked_for_rewrite_p, any_marked_for_rewrite_p,
760         marked_ssa_names): Remove.
761
762 2005-04-22  Jeff Law  <law@redhat.com>
763
764         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
765         (restore_currdefs_to_original_value): Likewise.
766         (register_definitions_for_stmt): Likewise.
767         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
768         for each variable.  Do not allocate/free block_defs_stack either.
769         Do not iterate if we just thread jumps.  Only iterate if the
770         tree_cleanup_cfg does useful work (temporary).
771         (dom_opt_initialize_block): No longer push a marker on
772         BLOCK_DEFS_STACK.
773         (dom_opt_finalize_block): Removal call to restore currdefs.
774         Relax restrictions for recording edge equivalences.
775         (record_equivalences_from_phis): No longer need to track
776         CURRENT_DEF.
777         (optimize_stmt): Similarly.
778         (thread_across_edge): Simplify by removing the requirement that
779         statements in the block we are threading through must be nops.
780         (initialize_hash_element): Handle GOTO_EXPR.
781
782 2005-04-22  David S. Miller  <davem@davemloft.net>
783
784         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
785         CONST_DOUBLE_HIGH.
786         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
787         fix check on CONST_DOUBLE mode.  It should be VOIDmode
788         when it is representing an integer.
789
790 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
791
792         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
793         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
794         * c-format.c (get_constant, decode_format_attr, get_flag_spec, 
795         find_char_info_specifier_index,
796         find_length_info_modifier_index): Likewise.
797         * c-typeck.c (composite_type, pop_init_level): Likewise.
798         * combine.c (cant_combine_insn_p, try_combine): Likewise.
799         * cse.c (cse_insn): Likewise
800         * dominance.c (calc_dfs_tree): Likewise
801         dwarf2out.c (loc_descriptor_from_tree_1,
802         add_abstract_origin_attribute, force_decl_die,
803         force_type_die): Likewise
804         emit-rtl.c (operand_subword_force): Likewise
805         explow.c (hard_function_value): Likewise
806         expmed.c (store_bit_field, expand_divmod,
807         emit_store_flag_force): Likewise
808         expr.c (emit_move_multi_word, store_expr,
809         expand_expr_real_1): Likewise
810         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
811         output_operand): Likewise
812         flow.c (recompute_reg_usage): Likewise
813         * function.c (assign_stack_temp_for_type, assign_temp, 
814         handle_epilogue_set): Likewise
815         * genextract.c (main): Likewise
816         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
817         gimplify_modify_expr_rhs, gimplify_expr): Likewise
818         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
819         ready_remove, rm_line_notes, rm_other_notes,
820         schedule_block): Likewise
821         mips-tfile.c (copy_object, out_of_bounds): Likewise
822
823 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
824
825         PR target/20813
826         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
827         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
828         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
829         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
830         TARGET_XL_COMPAT.
831         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
832
833 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
834
835         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
836         (gcc_tree_to_linear_expression): Convert to heap allocated
837         vectors.
838         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
839         lbv_to_gcc_expression, lle_to_gcc_expression,
840         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, 
841         perfect_nestify): Likewise.
842         lambda.h (gcc_loopnest_to_lambda_loopnest,
843         lambda_loopnest_to_gcc_loopnest): Likewise.
844         tree-loop-linear.c (linear_transform_loops): Likewise.
845
846 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
847
848         * config/sparc/predicates.md (arith_double_operand): Use
849         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
850         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
851         (DImode, DFmode constant splitters): Likewise.  Remove code for
852         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
853         (logical constant splitters): Use const_int_operand predicate.
854         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
855         HOST_BITS_PER_WIDE_INT < 64.
856
857 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
858
859         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
860         gcc_unreachable as appropriate.
861         (force_mode, emit_move_sequence, singlemove_string,
862         output_move_double, output_fp_move_double, find_addr_reg,
863         output_block_move, output_block_clear, output_and,
864         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
865         pa_adjust_cost, pa_issue_rate, print_operand,
866         output_global_address, output_arg_descriptor, output_cbranch,
867         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
868         output_call): Likewise.
869         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
870         prefetch, prefetch_cc, prefetch_nocc): Likewise.
871
872 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
873
874         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
875         _gcov_pow2_profiler and _gcov_one_value_profiler.
876         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
877         (GTFILES): Add $(srcdir)/tree-profile.c.
878         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
879         __gcov_one_value_profiler): Declare.
880         * gimplify.c (force_gimple_operand): Check whether the statements
881         should be produced in ssa form.
882         (force_gimple_operand_bsi): New function.
883         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
884         __gcov_one_value_profiler): New functions.
885         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
886         the profiled value is a power of two or not.
887         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
888         * tree-flow.h (in_ssa_p): Declare.
889         (force_gimple_operand_bsi): Declare.
890         * tree-into-ssa.c (in_ssa_p): New variable.
891         (rewrite_into_ssa): Set in_ssa_p.
892         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
893         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
894         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
895         tree_one_value_profiler_fn): New variables.
896         (tree_init_edge_profiler): Initialize the profiler function decls.
897         (tree_gen_edge_profiler): Use global gcov_type_node.
898         (prepare_instrumented_value): New function.
899         (tree_gen_interval_profiler, tree_gen_interval_profiler,
900         tree_gen_one_value_profiler): Call the library functions instead of
901         creating instrumentation code.
902         * tree.c (build_fn_decl): New function.
903         * tree.h (build_fn_decl): Declare.
904         * value-prof.c (rtl_divmod_values_to_profile,
905         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
906         tree_mod_pow2_value_transform, tree_find_values_to_profile):
907         Do not handle may_be_other and precise values of exponents at pow2
908         profiler.
909         (tree_mod_subtract_transform): Reflect that value field of
910         histogram has changed meaning.
911         (tree_divmod_values_to_profile): Record the values correctly.
912         (tree_values_to_profile): Update comment.
913         * value-prof.h (struct histogram_value_t): Remove pow2 data.
914
915 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
916
917         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
918         (decl).
919
920 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
921
922         * config/i386/i386.md (length_immediate): Use gcc_assert or
923         gcc_unreachable, as appropriate.
924         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
925         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
926         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
927         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
928         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
929         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
930         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
931         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
932         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
933         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
934         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
935         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
936         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
937         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
938         *prefetch_sse_rex): Likewise.
939         * config/i386/predicates.md (x86_64_immediate_operand,
940         x86_64_zext_immediate_operand, symbolic_operand,
941         no_seg_address_operand, aligned_operand,
942         memory_displacement_operand): Likewise.
943         * config/i386/sse.md (*mov<mode>_internal,
944         *movv2df_internal): Likewise.
945
946 2005-04-22  Jan Hubicka  <jh@suse.cz>
947
948         * Makefile.in (ipa.o, ipa-inline.o): New files.
949         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
950         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
951         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
952         * cgraphunit.c (cgraph_default_inline_p,
953         cgraph_decide_inlining_incrementally,  ncalls_inlined,
954         nfunctions_inlined, initial_insns, overall_insns, 
955         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
956         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
957         cgraph_mark_inline, cgraph_check_inline_limits,
958         cgraph_default_inline_p, cgraph_recursive_inlining_p,
959         update_callee_keys, lookup_recursive_calls,
960         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
961         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
962         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
963         pass_ipa_inline): Move to ipa-inline.c
964         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
965         * ipa.c: New file.
966         * ipa-inline.c: New file.
967
968 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
969
970         * doc/invoke.texi (SPARC options): Document that -mapp-regs
971         is turned off by default on Solaris.
972
973 2005-04-21  Roger Sayle  <roger@eyesopen.com>
974
975         * c-common.h (objc_build_method_signature): Update prototype.
976         * stub-objc.c (objc_build_method_signature): Update the stub
977         implementation to accept and ignore additional parameter.
978         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
979         the value of ellipsis to objc_build_method_signature instead
980         of setting TREE_OVERFLOW on the parms TREE_LIST node.
981
982 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
983
984         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
985         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
986         gen_rtx_* not gen_rtx_fmt_*.
987         (rs6000_emit_vector_select): Likewise.
988         (rs6000_emit_sync): New.
989         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
990         (larx, stcx, cmp): New mode substitutions.
991         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
992         UNSPEC_ISYNC): New constants.
993         (rlwinm): Give name.
994         (memory_barrier, isync, lwsync): New insns.
995         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
996         (sync_lock_release<mode>): New expander.
997         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
998         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
999         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
1000         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
1001         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
1002         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
1003         (sync_add<mode>_internal, sync_addshort_internal,
1004         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
1005         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
1006         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
1007
1008         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
1009         is the memory before, not after, the operation.  Clarify
1010         barrier requirements.
1011
1012 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1013
1014         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
1015         * lambda.h (lambda_vector_min_nz): Likewise.
1016         * langhooks.h (struct lang_hooks_for_types,
1017         struct lang_hooks): Likewise.
1018         * output.h (assemble_integer, this_is_asm_operands): Likewise.
1019         * tree.h: Likewise.
1020         * vec.h: Likewise.
1021         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
1022         
1023         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
1024         comments to avoid 'abort'.  Use gcc_assert as necessary.
1025         * opts.c (common_handle_option): Likewise.
1026         * pretty-print.c (pp_base_format_text): Likewise.
1027         * print-rtl.c (print_rtx): Likewise.
1028         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
1029         * regmove.c (try_auto_increment): Likewise.
1030         * reload.c (find_valid_class, find_reloads_toplev,
1031         find_equiv_reg): Likewise.
1032         * reload1.c (reload, forget_old_reloads_1, function_invariant_p, 
1033         merge_assigned_reloads): Likewise.
1034         * tree-inline.c (inline_forbidden_p_1,
1035         estimate_num_insns_1): Likewise.
1036         * tree-optimize.c (execute_todo): Likewise.
1037         * tree-outof-ssa.c (eliminate_phi): Likewise.
1038         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
1039         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
1040         * tree-ssa-operands.c (parse_ssa_operands,
1041         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
1042         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
1043         * tree-ssanames.c (release_ssa_name): Likewise.
1044         * tree.c (int_bit_position, int_byte_position, tree_low_cst, 
1045         walk_tree): Likewise.
1046
1047         * tree-ssa-operands.c (verify_abort): Fold into ..
1048         (verify_imm_links): ... here.
1049
1050 2005-04-21  Richard Henderson  <rth@redhat.com>
1051
1052         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
1053         on non-memory operand for previous inversion.
1054
1055 2005-04-21  Devang Patel  <dpatel@apple.com>
1056
1057         PR optimization/20994
1058         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
1059         x = !(a == b) : p , q;.
1060         (pass_if_conversion): Verify stmts and flow.
1061         
1062 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1063
1064         * optabs.c (gen_conditional_trap): Restore #define.
1065
1066         * alias.c (true_dependence): Remove 'abort' from comments. Use
1067         gcc_assert and gcc_unreachable as appropriate.
1068         (canon_true_dependence): Likewise.
1069         * bb-reorder.c (connect_traces): Likewise.
1070         * c-common.c (c_add_case_label): Likewise.
1071         * c-decl.c (finish_function): Likewise.
1072         * caller-save.c (insert_restore, insert_save): Likewise.
1073         * cfg.c (update_bb_profile_for_threading): Likewise.
1074         * cfganal.c (flow_active_insn_p): Likewise.
1075         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1076         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
1077         cfg_layout_merge_blocks): Likewise.
1078         * ifcvt.c (cond_exec_process_insns, merge_if_block,
1079         find_if_block): Likewise.
1080         * integrate.c (allocate_initial_values): Likewise.
1081         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
1082         swap_condition, unsigned_condition, signed_condition,
1083         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
1084         reg_or_subregno): Likewise.
1085         * lambda-code.c (lambda_compute_auxillary_space,
1086         lambda_transform_legal_p): Likewise.
1087         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
1088         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
1089         lhd_incomplete_type_error, lhd_expand_expr,
1090         lhd_types_compatible_p, lhd_tree_size): Likewise.
1091         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
1092         * local-alloc.c (update_equiv_regs): Likewise.
1093         * loop-unroll.c (peel_loop_completely
1094         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
1095         peel_loop_simple, unroll_loop_stupid,
1096         analyze_iv_to_split_insn): Likewise.
1097         * loop.c (gen_prefetch, find_and_verify_loops,
1098         basic_induction_var): Likewise.
1099         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
1100         * value-prof.c (tree_find_values_to_profile): Likewise.
1101         * varasm.c (named_section, default_assemble_integer,
1102         decode_addr_const): Likewise.
1103
1104 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
1105            Fariborz Jahanian <fjahanian@apple.com>
1106
1107         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
1108         portion of argument passed in fpr.
1109         * expr.c (emit_push_insn): Fix computation of 'offset' used to
1110         decide on partial argument save on stack.
1111
1112 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
1113
1114         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
1115         comment typos.
1116
1117 2005-04-21  Jan Hubicka  <jh@suse.cz>
1118
1119         * cgraphunit.c: Include tree-pass.h
1120         (cgraph_decide_recursive_inlining,
1121         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
1122         cgraph_decide_inlining): Dump goes to dump_file.
1123         (cgraph_optimize): Call ipa passes instead of inliner.
1124         (cgraph_gate_inlining, pass_ipa_inline): New.
1125         * tree-optimize.c (all_ipa_passes): New static variable.
1126         (register_one_dump_file): Dead with IPA passes.
1127         (register_dump_files): Likewise.
1128         (init_tree_optimization_passes): Initialize IPA passes.
1129         (execute_todo): Do cgraph dump when asked to, do not dump function body
1130         for IPA pass.
1131         * tree-pass.h (TODO_dump_cgraph): New macro.
1132         (ipa_passes): Declare.
1133         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
1134
1135 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1136
1137         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
1138         gcc_assert instead of abort.
1139         (classify_argument, examine_argument, construct_container,
1140         contains_128bit_aligned_vector_p, ix86_check_movabs,
1141         standard_80387_constant_opcode, standard_80387_constant_rtx,
1142         ix86_initial_elimination_offset, ix86_compute_frame_layout,
1143         pro_epilogue_adjust_stack, ix86_expand_epilogue,
1144         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
1145         legitimize_tls_address, output_pic_addr_const,
1146         i386_output_dwarf_dtprel, put_condition_code, print_reg,
1147         get_some_local_dynamic_name, print_operand, print_operand_address,
1148         output_387_binary_op, emit_i387_cw_initialization,
1149         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
1150         ix86_expand_clear, ix86_expand_binary_operator,
1151         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
1152         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
1153         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
1154         ix86_expand_branch, ix86_expand_setcc,
1155         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
1156         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
1157         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
1158         memory_address_length, ix86_attr_length_immediate_default,
1159         ix86_attr_length_address_default, ix86_agi_dependant,
1160         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
1161         ix86_expand_binop_builtin, ix86_force_to_memory,
1162         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
1163         x86_emit_floatuns): Likewise.
1164         * config/i386/netware.c (gen_regparm_prefix,
1165         i386_nlm_strip_name_encoding): Likewise.
1166         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
1167
1168 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1169
1170         * optabs.c (gen_condiational_trap): Remove #define.
1171         (add_equal_note): Assertify. Remove explicit indirection from
1172         call via function pointer.
1173         (expand_ternary_op, expand_simple_binop, expand_binop,
1174         expand_twoval_unop, expand_twoval_binop,
1175         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
1176         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
1177         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
1178         prepare_float_lib_cmp, emit_conditional_move,
1179         emit_conditional_add, gen_add2_insn, gen_add3_insn,
1180         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
1181         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
1182         vector_compare_rtx, expand_vec_cond_expr): Likewise.
1183
1184 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1185
1186         * vec.h: Update API to separate allocation mechanism from type.
1187         (VEC_safe_grow): New.
1188         * vec.c (calculate_allocation): New.
1189         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
1190         (vec_gc_free, vec_heap_free): Remove.
1191         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
1192         (VEC): Likewise.
1193         (mangle_macro_name): New.
1194         (struct macro_def): New.
1195         (struct macro): Add multiple argument values.
1196         (macro_expans_end): New.
1197         (push_macro_expansion):  Chain on new macro. Process multiple
1198         args, create follow on expansion. Return follow on argument.
1199         (macro_input): Deal with multiple arguments.
1200         
1201         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
1202         (struct tree_binfo): Adjust.
1203         * basic-block.h: Define VEC(edge,gc).
1204         (struct edge_def): Adjust.
1205         (struct basic_block_def, struct edge_iterator): Likewise.
1206         (ei_container, ei_start_1, ei_last_1): Likewise.
1207         * cfg.c (connect_src, connect_dest): Likewise.
1208         * cfgrtl.c (force_nonfallthru_and_redirect)
1209         * dbxout.c (dbxout_type)
1210         * dwarf2out.c (gen_member_die)
1211         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
1212         (gcc_tree_to_linear_expression): Adjust.
1213         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
1214         lbv_to_gcc_expression, lle_to_gcc_expression,
1215         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
1216         perfect_nestify): Likewise.
1217         * lambda.h (gcc_loopnest_to_lambda_loopnest,
1218         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
1219         * profile.c (instrument_values): Adjust.
1220         * tree-cfg.c (modified_noreturn_calls): Adjust.
1221         (remove_fallthru_edge): Likewise.
1222         * tree-dump.c (dequeue_and_dump): Adjust.
1223         * tree-flow-inline.h (mark_stmt_modified): Adjust.
1224         * tree-flow.h (modified_noreturn_calls): Adjust.
1225         (tree_on_heap): Remove. (yay!)
1226         (register_new_def): Adjust.
1227         * tree-into-ssa.c: Define VEC(int,heap).
1228         (block_defs_stack): Adjust.
1229         (find_idf, insert_phi_nodes, register_new_def,
1230         rewrite_initialize_block, rewrite_finalize_block,
1231         register_new_update_single, rewrite_update_init_block,
1232         rewrite_update_fini_block, rewrite_blocks,
1233         ssa_rewrite_finalize_block, ssa_register_new_def,
1234         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
1235         * tree-loop-linear.c (linear_transform_loops): Adjust.
1236         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
1237         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
1238         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
1239         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
1240         vrp_variables_stack): Adjust declarations.
1241         (tree_ssa_dominator_optimize): Adjust.
1242         (dom_opt_initialize_block, remove_local_expressions_from_table,
1243         restore_nonzero_vars_to_original_value,
1244         restore_vars_to_original_value,
1245         restore_currdefs_to_original_value, dom_opt_finalize_block,
1246         record_var_is_nonzero, record_cond, record_const_or_copy_1,
1247         optimize_stmt, update_rhs_and_lookup_avail_expr,
1248         lookup_avail_expr, record_range): Likewise.
1249         * tree-ssa-pre.c: Define VEC(basic_block,heap).
1250         (compute_antic_aux): Adjust.
1251         (inserted_exprs, create_expression_by_pieces, 
1252         insert_into_preds_of_block, eliminate, mark_operand_necessary, 
1253         remove_dead_inserted_code, fini_pre): Likewise.
1254         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
1255         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist. 
1256         ssa_prop_init): Likewise.
1257         * tree-ssa.c: Define VEC(bitmap,heap).
1258         (verify_name_tags): Adjust.
1259         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
1260         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
1261         tree_divmod_values_to_profile, tree_find_values_to_profile,
1262         value_profile_transformations): Likewise.
1263         * value-prof.h: Define VEC(histogram_value,heap).
1264         * varasm.c: Remove alias_pair pointer typedef, define
1265         VEC(alias_pair,gc).
1266         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
1267         
1268         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
1269         not a pointer to it.  Create an object vector.
1270         (extern_symbols): Turn into an object vector.
1271         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
1272
1273 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
1274
1275         PR/20742
1276         * Makefile.in (tree-chrec.o): Depend on params.h.
1277         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
1278         default value 20.
1279         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
1280         and fold build with fold_buildN.
1281         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
1282         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1283         (tree_contains_chrecs): Compute an estimation of the size of the
1284         given expression.
1285         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
1286         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
1287         * tree-scalar-evolution.c (simple_iv): Ditto.
1288         * doc/invoke.texi (scev-max-expr-size): Documented.
1289
1290 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
1291
1292         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
1293         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
1294         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
1295         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
1296         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1297         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
1298         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
1299         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
1300         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
1301         (darwin_fix_and_continue_switch): Delete.
1302         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
1303         (SUBTARGET_SWITCHES): Delete.
1304         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
1305         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
1306         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
1307         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
1308         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
1309         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
1310         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
1311         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
1312         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
1313         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
1314         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
1315         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
1316         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
1317         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
1318         (TARGET_64BIT): Undef before redefining.
1319         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
1320         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
1321         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
1322         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
1323         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
1324         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
1325         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
1326         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1327         (ix86_debug_arg_string, ix86_debug_addr_string)
1328         (ix86_align_loops_string, ix86_align_jumps_string)
1329         (ix86_align_funcs_string): Delete.
1330         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
1331         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
1332         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
1333         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
1334         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
1335         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
1336         (SUBTARGET_SWITCHES): Delete.
1337         * config/i386/i386.c (ix86_debug_arg_string): Delete.
1338         (ix86_debug_addr_string): Delete.
1339         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
1340         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
1341         (ix86_align_loops_string, ix86_align_jumps_string)
1342         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1343         (ix86_align_funcs_string): Make static.
1344         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1345         (ix86_handle_option): New function.
1346         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
1347         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
1348         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
1349         of darwin_fix_and_continue_switch.
1350         (darwin_one_byte_bool): Delete.
1351         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
1352         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
1353         to darwin_one_byte_bool.
1354         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
1355         * config/i386/djgpp.opt, config/i386/i386.opt,
1356         * config/i386/sco5.opt: New files.
1357
1358 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1359
1360         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
1361         fp_zero_operand, fp_register_operand, intreg_operand,
1362         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
1363         call_operand, call_operand_address, tgd_symbolic_operand,
1364         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
1365         symbolic_operand, symbolic_memory_operand, label_ref_operand,
1366         sp64_medium_pic_operand, data_segment_operand,
1367         text_segment_operand, splittable_symbolic_memory_operand,
1368         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
1369         eq_or_neq, normal_comp_operator, noov_compare_op,
1370         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
1371         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
1372         const64_operand, const64_high_operand, arith11_operand,
1373         arith10_operand, arith_double_operand, arith_double_4096_operand,
1374         arith_double_add_operand, arith11_double_operand,
1375         arith10_double_operand, small_int, small_int_or_double,
1376         uns_small_int, uns_arith_operand, clobbered_register,
1377         input_operand, compare_operand): Delete.
1378         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
1379         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
1380         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
1381         (GEN_HIGHINT64, GEN_INT64): Delete.
1382         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
1383         gen_safe_XOR64): Adjust for above deletion.
1384         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
1385         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
1386         (legitimate_constant_p): Use const_zero_operand instead.
1387         (sparc_extra_constraint_check): Likewise.
1388         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
1389         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
1390         (PREDICATE_CODES): Delete.
1391         * config/sparc/sparc.md: Include predicates.md.
1392         (All patterns): Adjust for new predicate names.
1393         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
1394         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
1395         (movdi): Use general_operand predicate.
1396         (movdi_sp64_dbl): Delete.
1397         (movdi_const64_special): Add 'N' constraint.
1398         (movdicc): Use arith10_operand predicate.
1399         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
1400         (movdi_cc_reg_sp64): Use arith10_operand predicate.
1401         (movdi_cc_reg_sp64_trunc): Delete.
1402         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
1403         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
1404         (subdi3_sp32): Delete.
1405         (subdi3_insn_sp32): Change to define_insn_and_split.
1406         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
1407         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
1408         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
1409         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
1410         small_int_operand predicate.
1411         (divdi3, udivdi3): Use arith_operand predicate.
1412         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
1413         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
1414         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
1415         (xordi3_sp64_dbl): Delete.
1416         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
1417         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
1418         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
1419         cmp_ccx_set_not): Use arith_operand predicate.
1420         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
1421         * config/sparc/predicates.md: New file.
1422
1423 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
1424
1425         PR tree-optimization/14846
1426         * fold-const.c (fold_single_bit_test_into_sign_test): New,
1427         split out from ...
1428         (fold_single_bit_test): ... here.
1429         (fold_binary): Call fold_single_bit_test_into_sign_test
1430         instead of fold_single_bit_test.
1431
1432 2005-04-20  James E Wilson  <wilson@specifixinc.com>
1433
1434         PR c++/20805
1435         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
1436         is another declaration.
1437
1438 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
1439
1440         * config/cris/predicates.md: New file.
1441         * config/cris/cris-protos.h (cris_store_multiple_op_p)
1442         (cris_movem_load_rest_p): Declare.
1443         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
1444         (cris_movem_load_rest_p): Ditto.  Globalize.
1445         (cris_bdap_operand, cris_bdap_biap_operand,
1446         cris_orthogonal_operator, cris_commutative_orth_op,
1447         cris_operand_extend_operator,
1448         cris_additive_operand_extend_operator, cris_extend_operator,
1449         cris_plus_or_bound_operator, cris_mem_op,
1450         cris_general_operand_or_symbol,
1451         cris_general_operand_or_gotless_symbol,
1452         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
1453         cris_load_multiple_op): Remove predicate functions.
1454         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
1455         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
1456         * config/cris/cris.h (PREDICATE_CODES): Don't define.
1457         * config/cris/cris.md: Include predicates.md.
1458         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
1459
1460 2005-04-20  Ian Lance Taylor  <ian@airs.com>
1461
1462         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
1463         * c-common.h (STMT_EXPR_STMT): Don't define.
1464         (STMT_EXPR_NO_SCOPE): Don't define.
1465         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
1466         * c-pretty-print.c (pp_c_primary_expression): Likewise.
1467         (pp_c_expression): Likewise.
1468
1469 2005-04-20  Richard Henderson  <rth@redhat.com>
1470
1471         PR target/21100
1472         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
1473
1474 2005-04-20  Jeff Law  <law@redhat.com>
1475
1476         * reload1.c (reload): Ignore equivalences between pseudos and
1477         read only memory.
1478
1479 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
1480
1481         PR c/12913
1482         * c-tree.h (struct c_label_list): Update comment.
1483         (struct c_label_context): Rename to struct c_label_context_se.
1484         (label_context_stack): Rename to label_context_stack_se.
1485         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
1486         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
1487         c_end_vm_scope): New.
1488         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
1489         * c-decl.c (pop_scope): Call c_end_vm_scope.
1490         (pushdecl): Call c_begin_vm_scope for variably modified
1491         declarations.
1492         (define_label): Check for jumping into scope of identifier with
1493         variably modified type.  Push label on stack for those defined at
1494         current context of identifiers with variably modified type.
1495         (start_function): Create stack level for context of identifiers
1496         with variably modified type.
1497         (finish_function): Pop stack level for context of identifiers with
1498         variably modified type.
1499         * c-typeck.c (label_context_stack): Rename to
1500         label_context_stack_se.
1501         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
1502         (c_finish_goto_label): Check for jumping into scope of identifier
1503         with variably modified type.  Push label on stack for those jumped
1504         to from current context of identifiers with variably modified
1505         type.
1506         (struct c_switch): Add blocked_vm.
1507         (c_start_case): Initialize blocked_vm.
1508         (do_case): Check blocked_vm.
1509         (c_finish_case): Add comment.
1510         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
1511         variable label_context_stack.
1512
1513 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1514
1515         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
1516         conditional_replacement, value_replacement, abs_replacement,
1517         minmax_replacement.
1518         (replace_phi_edge_with_variable): Remove argument BB.
1519         (conditional_replacement, value_replacement,
1520         minmax_replacement, abs_replacement): Remove argument PHI_BB.
1521         Update a call to replace_phi_edge_with_variable.
1522
1523         * tree-ssa-phiopt.c: Fix comments.
1524
1525 2005-04-20  Michael Matz  <matz@suse.de>
1526
1527         PR20973
1528         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
1529         pseudos.
1530
1531 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1532
1533         * tree-ssa-phiopt.c: Fix comment typos.
1534
1535         PR tree-optimization/21116
1536         * tree-ssa-phiopt.c: Fix a typo.
1537
1538 2005-04-19  Richard Henderson  <rth@redhat.com>
1539
1540         * builtins.c (expand_builtin_sync_operation): Revert last change.
1541         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
1542         not vs new value.
1543         (expand_compare_and_swap_loop): Likewise.
1544         (expand_sync_operation): Remove fallback from NAND to AND; invert
1545         memory operand when expanding from cmpxchg.
1546         (expand_sync_fetch_operation): Likewise.
1547         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
1548         compare-and-swap.
1549
1550         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
1551         when implementing NAND.  Fix double-add for AFTER.
1552         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
1553         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
1554         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
1555         memory value.
1556         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
1557         memory barrier.
1558
1559         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
1560         to return old memory value.
1561         (sync_compare_and_swap_cc<IMODE>): Likewise.
1562
1563         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
1564         return pre-reload.  Don't consider output or anti dependencies.
1565         * config/ia64/sync.md (IMODE): New.
1566         (modesuffix): Add QI and HI.
1567         (memory_barrier): Simplify expansion.
1568         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
1569         (cmpxchg_acq_<IMODE>): Likewise.
1570         (sync_lock_test_and_set<IMODE>): Likewise.
1571         (sync_lock_release<IMODE>): Likewise.
1572
1573 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1574
1575         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
1576         ~X or ~Y simplify.
1577
1578 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1579
1580         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
1581
1582 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
1583             Joseph S. Myers  <joseph@codesourcery.com>
1584
1585         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
1586         * c-typeck.c (build_c_cast): Check these options.
1587         * doc/invoke.texi: Document these options.
1588
1589 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1590
1591         * tree-ssa-phiopt.c: Update a comment about the pass.
1592
1593 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1594
1595         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
1596         config/mcore/mcore.c: Fix comment typos.
1597
1598 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
1599
1600         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
1601         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
1602
1603 2005-04-19  Paul Brook  <paul@codesourcery.com>
1604
1605         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. 
1606
1607 2005-04-19  Andrew Haley  <aph@redhat.com>
1608
1609         PR java/21022
1610         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
1611         looking at a field's bitpos.
1612
1613 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1614
1615         * system.h (fopen, fdopen, freopen): Define these to the unlocked
1616         libiberty functions.
1617
1618 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1619
1620         PR tree-optimization/21096
1621         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
1622
1623 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
1624
1625         PR target/21098
1626         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
1627         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
1628
1629 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
1630
1631         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
1632         refers to the function being dumped.
1633
1634 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
1635
1636         * varasm.c (assemble_start_function): Remove reset of in_section.
1637
1638 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1639
1640         PR tree-optimization/21085
1641         * fold-const (fold_binary): Don't change X % -C to X % C if C has
1642         overflowed.
1643
1644 2005-04-19  Ben Elliston  <bje@au.ibm.com>
1645
1646         * doc/invoke.texi (Optimize Options): Refer to the correct
1647         optimisation flag -ftree-dominator-opts, not -ftree-dom.
1648
1649 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
1650
1651         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
1652         alloca argument to be big enough.
1653
1654 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
1655
1656         PR middle-end/21049
1657         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
1658         cfun->cfg are NULL.
1659
1660 2005-04-18  Tom Tromey  <tromey@redhat.com>
1661
1662         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
1663         typo.
1664
1665 2005-04-18  Richard Henderson  <rth@redhat.com>
1666
1667         * config/alpha/alpha.c (alpha_split_atomic_op): New.
1668         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
1669         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
1670         * config/alpha/alpha-protos.h: Update.
1671         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
1672         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
1673         (attr type): Add ld_l, st_c, mb.
1674         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
1675         iornotsi3, xorsi_internal, xornotsi3): New.
1676         * config/alpha/ev4.md (ev4_ld): Add ld_l.
1677         (ev4_ist_c, ev4_mb): New.
1678         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
1679         (ev5_ld_l): New.
1680         * config/alpha/ev6.md (ev6_ild): Add ld_l.
1681         (ev6_ist): Add st_c.
1682         (ev6_mb): New.
1683         * config/alpha/sync.md: New file.
1684
1685 2005-04-18  Richard Henderson  <rth@redhat.com>
1686
1687         * builtins.c (expand_builtin_sync_operation): Fold nand to and
1688         for constants.
1689
1690         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
1691
1692 2005-04-18  Devang Patel  <dpatel@apple.com>
1693
1694         * config/rs6000/atlivec.md (mulv4si3): New pattern.
1695         
1696 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1697
1698         PR tree-optimization/20922
1699         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
1700         Fold X + c >= X and fold X - c <= X to true.
1701
1702 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1703
1704         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
1705         unsigned int.
1706         (emergency_labeled_state_free): Likewise.
1707
1708 2005-04-18  Nick Clifton  <nickc@redhat.com>
1709
1710         * config/h8300/h8300.md (jump): Remove prescan parameter from
1711         calls to final_scan_insn.
1712
1713         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
1714         parameter from calls to final_scan_insn.
1715
1716         * config.gcc (m68hc12): Use the m68hc11.opt file for target
1717         specific options.
1718         (v850e, v850e1): Use the v850.opt file for target specific
1719         options.
1720
1721 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
1722
1723         PR tree-optimization/21001
1724         * tree-optimize.c (init_tree_optimization_passes): Move the
1725         first pass_forwprop immediately before pass_vrp.
1726
1727 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1728
1729         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
1730         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
1731         from enum tree_code op to bool is_sizeof.
1732         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
1733         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1734         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
1735         case.
1736         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
1737         cases.
1738         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
1739         ALIGNOF_EXPR cases.
1740
1741 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1742
1743         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
1744
1745 2005-04-17  Richard Henderson  <rth@redhat.com>
1746
1747         * config/alpha/alpha.c (va_list_skip_additions): Only define if
1748         TARGET_ABI_OSF.
1749         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
1750         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
1751         of indirection through ssa names while looking for the gpr counter
1752         field.
1753         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
1754         saved va_list_gpr_size and va_list_fpr_size.
1755
1756 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1757
1758         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
1759         both pointers or both integers.
1760
1761         * tree-vrp.c (maybe_add_assert_expr): Don't assert
1762         ASSERT_EXPRs for single-use variable.
1763
1764         * tree-into-ssa.c: Fix a comment typo.
1765
1766 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
1767
1768         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
1769         -mipsN before forcing a default of -mips2.
1770
1771 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1772
1773         * predict.h (IS_TAKEN): Remove.
1774         * rtl.h (NOTE_PREDICTION): Likewise.
1775
1776         * modulo-sched.c (CFG_HOOKS): Remove.
1777
1778         * c-parser.c (N_C_TTYPES): Remove.
1779
1780         * tree-flow-inline.h (get_stmt_operands): Remove.
1781         * lambda-code.c, tree-ssa-loop-unswitch.c,
1782         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
1783         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
1784         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
1785         calls to get_stmt_operands.
1786         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
1787
1788 2005-04-17  Richard Henderson  <rth@redhat.com>
1789
1790         PR target/20375
1791         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
1792         of CUMULATIVE_ARGS past the last named argument.
1793         (alpha_va_start): Expect pretend_args_size only if strictly less than
1794         6 named arguments.
1795
1796 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1797
1798         PR middle-end/21024
1799         * builtins.c (expand_builtin_strcat): Convert the result of
1800         strlen to the right type.
1801         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
1802         avoid creating type mismatches.
1803         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
1804         type mismatches.
1805
1806         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
1807
1808 2005-04-16  Richard Henderson  <rth@redhat.com>
1809
1810         PR target/21051
1811         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
1812         Use the mode of boolean_type_node when the user doesn't provide one.
1813         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
1814
1815 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
1816
1817         PR target/20126
1818         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
1819         (const)).
1820
1821         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
1822         comment.
1823
1824 2005-04-16  Roger Sayle  <roger@eyesopen.com>
1825             Steven Bosscher  <stevenb@suse.de>
1826
1827         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
1828         (fold_unary_to_constant): Likewise.
1829
1830 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
1831
1832         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
1833         PROP_ASM_SCAN.
1834
1835 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
1836
1837         * doc/install.texi (Specific): Avoid using asterisks in @anchor
1838         names related to target triplets.
1839         Remove i?86-*-esix from platform directory.
1840         Remove powerpc-*-eabiaix from platform directory.
1841
1842 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
1843
1844         PR middle-end/20491
1845         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
1846         falling through from SUBREG case to REG.
1847
1848 2005-04-15  Roger Sayle  <roger@eyesopen.com>
1849
1850         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
1851         (fold_binary): Update comment mentioning fold_relational_hi_lo.
1852         (fold_binary_to_constant): Simplify using fold_binary.
1853         (fold_unary_to_constant): Likewise, simplify using fold_unary.
1854
1855 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1856
1857         * gthr-posix.c (pthread_cancel): Define.
1858         (pthread_mutexattr_init): Likewise.
1859         (pthread_mutexattr_settype): Likewise.
1860         (pthread_mutexattr_destroy): Likewise.
1861
1862 2005-04-15  David S. Miller  <davem@davemloft.net>
1863
1864         PR target/20673
1865         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
1866
1867 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1868
1869         PR tree-optimization/21031
1870         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
1871         (forward_propagate_into_cond_1): Call it.  Forward propagate
1872         integer-integer casts into COND_EXPRs.
1873
1874 2005-04-15  Dave Korn  <dave.korn@artimi.com>
1875
1876         * gcc.c (default_compilers): Clarify obscure error message when
1877         reading from standard input.
1878
1879 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1880
1881         * basic-block.h (PROP_EQUAL_NOTES): Remove.
1882         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
1883
1884         * tree-ssa-alias.c (init_alias_info): Remove a call to
1885         get_stmt_operands.
1886
1887 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
1888
1889         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
1890         of non-virtual PHI nodes like we use to.
1891
1892 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
1893
1894         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
1895         (attr_copy_rtx): Do not use it.
1896
1897 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
1898
1899         * doc/tree-ssa.texi: Grammer/abbreviation updates.
1900
1901 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
1902
1903         * tree-vect-transform.c (vectorizable_store): Mark necessary
1904         objects in the vectorized store needing renaming.  Update the
1905         SSA graph for V_MAY_DEF operands in the original store.
1906
1907 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
1908
1909         * tree-ssa-pre.c (compute_avail): It's okay to have
1910         TREE_INVARIANT's here, and value number the resulting expressions.
1911         (create_expression_by_pieces): Make sure operands that were
1912         min_invariant when we started, stay that way.
1913
1914 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
1915
1916         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
1917
1918 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1919
1920         PR tree-optimization/20936.
1921         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
1922
1923 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1924
1925         * doc/invoke.texi: Fix typos.
1926         * doc/md.texi: Likewise.
1927         * doc/rtl.texi: Likewise.
1928         * doc/sourcebuild.texi: Likewise.
1929         * doc/tm.texi: Likewise.
1930
1931 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
1932
1933         PR tree-optimization/21004
1934         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
1935         and floorl in c99 mode only.
1936         * builtins.c (expand_builtin_int_roundingfn): Assert that
1937         fallback_fndecl is not NULL_TREE.
1938
1939 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1940
1941         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
1942         * basic-block.h: Update the prototype for
1943         purge_all_dead_edges.
1944         * cfgexpand.c (tree_expand_cfg): Update a call to
1945         purge_all_dead_edges.
1946         * combine.c (combine_instructions): Likewise.
1947         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
1948         rest_of_handle_cse2, rest_of_handle_gcse,
1949         rest_of_handle_postreload): likewise.
1950
1951 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
1952
1953         PR middle-end/20739
1954         * gimplify.c (gimplify_addr_expr): Compensate for removal of
1955         e.g. cv-qualification conversions.
1956
1957 2005-04-14  Mike Stump  <mrs@apple.com>
1958
1959         * config/darwin-c.c (framework_construct_pathname): We must
1960         find all headers of a framework in the first instance of it
1961         found in the seach path.
1962
1963 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
1964
1965         PR tree-optimization/21021
1966         * tree-vrp.c (compare_values): Work around a bug in the front
1967         end that produces a comparison of mismatched types.
1968
1969 2004-04-14  Richard Henderson  <rth@redhat.com>
1970
1971         * config/ia64/ia64.h (enum fetchop_code): Remove.
1972         (enum ia64_builtins): Move ...
1973         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
1974         members except BSP and FLUSHRS.
1975         (ia64_init_builtins): Remove __sync builtins.
1976         (ia64_expand_builtin): Likewise.
1977         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
1978         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
1979         (ia64_expand_lock_release): Remove.
1980         * config/ia64/ia64.md (mf): Move to sync.md.
1981         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
1982         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
1983         * config/ia64/sync.md: New file.
1984         (memory_barrier): Rename from mf.
1985         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
1986         (cmpxchg_acq_<I48MODE>): Likewise.
1987         (sync_lock_test_and_set<I48MODE>): Likewise.
1988
1989         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
1990         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
1991
1992 2004-04-14  Richard Henderson  <rth@redhat.com>
1993
1994         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
1995         (ix86_compare_emitted): New.
1996         (ix86_expand_compare): Use ix86_compare_emitted if set.
1997         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
1998         and ix86_compare_op0 are set.
1999         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
2000         (TARGET_CMPXCHG, TARGET_XADD): New.
2001         (ix86_compare_emitted): Declare.
2002         * config/i386/i386.md: Include sync.md
2003         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
2004         (UNSPECV_XCHG, UNSPECV_LOCK): New.
2005         * config/i386/sync.md: New file.
2006
2007 2004-04-14  Richard Henderson  <rth@redhat.com>
2008
2009         PR middle-end/14311
2010         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
2011         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
2012         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
2013         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
2014         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
2015         BT_FN_I8_VPTR_I8_I8): New.
2016         * builtins.def (DEF_SYNC_BUILTIN): New.
2017         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
2018         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
2019         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
2020         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
2021         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
2022         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
2023         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
2024         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
2025         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
2026         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
2027         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
2028         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
2029         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
2030         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
2031         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
2032         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
2033         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
2034         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
2035         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
2036         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
2037         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
2038         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
2039         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
2040         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
2041         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
2042         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
2043         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
2044         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
2045         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
2046         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
2047         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
2048         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
2049         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
2050         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
2051         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
2052         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
2053         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
2054         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
2055         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
2056         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
2057         BUILT_IN_SYNCHRONIZE: New.
2058         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
2059         as a function.  Accept __sync_ as a prefix as well.
2060         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
2061         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
2062         expand_builtin_lock_release): New.
2063         (expand_builtin): Call them.
2064         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
2065         neither BOTH_P nor FALLBACK_P are defined.
2066         (builtin_type_for_size): New.
2067         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
2068         (resolve_overloaded_builtin): New.
2069         * c-common.h (resolve_overloaded_builtin): Declare.
2070         (builtin_type_for_size): Declare.
2071         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
2072         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
2073         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
2074         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
2075         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
2076         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
2077         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
2078         sync_compare_and_swap_cc, sync_lock_test_and_set,
2079         sync_lock_release): New.
2080         * optabs.h: Declare them.
2081         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
2082         expand_sync_operation, expand_sync_fetch_operation,
2083         expand_sync_lock_test_and_set): Declare.
2084         * genopinit.c (optabs): Add sync optabs.
2085         * optabs.c (init_optabs): Initialize sync optabs.
2086         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
2087         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
2088         expand_sync_operation, expand_sync_fetch_operation,
2089         expand_sync_lock_test_and_set): New.
2090         * doc/extend.texi (Atomic Builtins): New section
2091         * doc/md.texi (Standard Names): Add sync patterns.
2092
2093 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
2094
2095         * tree-eh.c (lower_try_finally_copy): Generate new code in
2096         response to goto_queue entries as if the queue was sorted by
2097         index, not pointers.
2098         (lower_try_finally_switch): Likewise.
2099
2100 2005-04-14  Richard Henderson  <rth@redhat.com>
2101
2102         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
2103         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
2104         register.
2105         (ix86_expand_fp_movcc): Update to match.
2106         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
2107         * config/i386/i386-protos.h: Update.
2108         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
2109         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
2110
2111 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
2112
2113         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
2114         refer to 4.0.
2115
2116 2005-04-14  Julian Brown  <julian@codesourcery.com>
2117
2118         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
2119         link failures on ppc64 Linux.
2120
2121 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2122
2123         * config.gcc: Set cpu_type for s390.
2124
2125 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
2126
2127         Fix PR tree-optimization/20963
2128         * tree-ssa-pre.c (compute_avail): Remove special case for
2129         TREE_INVARIANT.
2130         (create_expression_by_pieces): Add value numbers for forced out
2131         statements.
2132
2133 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
2134
2135         * config/cris/cris.md: Replace references to (reg:SI 16) with
2136         (reg:SI CRIS_SRP_REGNUM).
2137
2138 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
2139
2140         PR tree-optimization/20657
2141         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
2142         create an appropriate range from it.
2143
2144 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
2145
2146         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
2147         <UNSPEC_FIST_CEIL> case.
2148
2149         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
2150         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
2151         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
2152         to implement lfloor and llfloor built-ins as x87 intrinsic function.
2153         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
2154         (lfloor<mode>2): New expanders.
2155         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
2156         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
2157         to implement lceil and llceil built-ins as x87 intrinsic function.
2158         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
2159         (lceil<mode>2): New expanders.
2160
2161 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
2162
2163         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
2164         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
2165
2166 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2167
2168         PR target/20927
2169         * config/s390/s390-modes.def: Define TFmode.
2170
2171 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
2172
2173         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
2174         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2175         * config/mips/mips.c (mips16_insn_length): Remove reference to
2176         JUMP_TABLES_IN_TEXT_SECTION.
2177
2178 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
2179
2180         * simplify-rtx.c (simplify_binary_operation_1): Return
2181         scalar or vector of constant 0, depending on the xor's
2182         mode.
2183
2184 2005-04-13  Dale Johannesen  <dalej@apple.com>
2185
2186         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
2187         (objc-act.o):  Ditto.
2188         * objc/objc-act.c (objc_gimplify_expr):  New.
2189         (objc_get_callee_fndecl):  New.
2190         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
2191         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
2192         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
2193
2194 2005-04-13  Devang Patel  <dpatel@apple.com>
2195
2196         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
2197         temp variables.
2198
2199 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
2200
2201         CRIS prologue as RTL.
2202         * config/cris/cris-protos.h (cris_emit_movem_store)
2203         (cris_expand_prologue): Prototype.
2204         * config/cris/cris.c (struct machine_function): New member
2205         stdarg_regs.
2206         (cfa_label_num, cris_target_asm_function_prologue): Remove.
2207         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
2208         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
2209         (cris_load_multiple_op, cris_return_address_on_stack)
2210         (cris_return_address_on_stack_for_return): ISO-Cify.
2211         (cris_store_multiple_op): New predicate function.
2212         (cris_expand_prologue, cris_emit_movem_store): New functions.
2213         (cris_print_operand) <case 'O'>: Handle modifications other than
2214         post-increment.
2215         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
2216         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
2217         (cris_gen_movem_load): Rearrange slightly to make local variable
2218         src a parameter, removing osrc.
2219         (cris_setup_incoming_varargs): Set machine_function member
2220         stdarg_regs to correspond to the number of registers that need to
2221         be saved.
2222         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
2223         CRIS_UNSPEC_GOT.
2224         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
2225         cris_general_operand_or_gotless_symbol accept UNSPEC.
2226         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
2227         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
2228         ("*cris_store_multiple"): New pattern.  Tweak common comment above
2229         this and "*cris_load_multiple".
2230         ("prologue"): New define_expand.
2231
2232         * config/cris/cris.md ("epilogue"): Conditionalize on
2233         TARGET_PROLOGUE_EPILOGUE.
2234
2235 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
2236
2237         PR target/20924
2238         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
2239         fpsr 0 instead of fpsr 1.
2240         (divsf3_internal_thr): Ditto.
2241         (divdf3_internal_lat): Ditto.
2242         (divdf3_internal_thr): Ditto.
2243         (divxf3_internal_lat): Ditto.
2244         (divxf3_internal_thr): Ditto.
2245
2246 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2247
2248         PR tree-optimization/20913
2249         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
2250
2251         PR tree-optimization/20702
2252         * tree-vrp.c (maybe_add_assert_expr): Recurse into
2253         dominator children that haven't been walked into.
2254
2255 2005-04-13  Julian Brown  <julian@codesourcery.com>
2256
2257         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
2258         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
2259         is true.
2260
2261 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2262
2263         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
2264         config/i386/sse.md: Fix comment typos.
2265
2266         * genattrtab.c (NULL_ATTR): Remove.
2267         * ifcvt.c (NULL_EDGE): Likewise.
2268
2269         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
2270
2271         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
2272         NOTE_PREDICT): Remove.
2273
2274 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2275
2276         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
2277         * configure: Regenerate.
2278         * config.in: Likewise.
2279         * system.h: Declare vsnprintf if not already declared.
2280
2281 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2282
2283         * optc-gen.awk: Handle stand-alone Mask records.
2284         * opth-gen.awk: Likewise.
2285         * doc/options.texi (Option file format): Document them.
2286         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
2287         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
2288         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
2289         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
2290         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
2291         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
2292         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
2293         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
2294         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
2295         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
2296         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
2297         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
2298         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
2299         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
2300         TARGET_LONG_DOUBLE_128): Likewise.
2301         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
2302         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
2303         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
2304         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
2305         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
2306         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
2307         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
2308         * config/sparc/sparc.c (fpu_option_set): New global.
2309         (sparc_handle_option): New function.
2310         (sparc_override_options): Test fpu_option_set.
2311         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
2312         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
2313         * config/sparc/sparc.opt: New file.
2314         * config/sparc/little-endian.opt: Likewise.
2315         * config/sparc/long-double-switch.opt: Likewise.
2316
2317 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2318
2319         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
2320         (bfin_handle_options): Set it if -mshared-library-id= is seen.
2321         * config/bfin/bfin.opt (mshared-library-id=): Lose
2322         Var(bfin_lib_id_given).
2323
2324 2005-04-13  Matt Thomas  <matt@3am-software.com>
2325
2326         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
2327         defining.
2328
2329 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2330
2331         * rtl.h (CLEAR_RTX_FLAGS): Remove.
2332
2333         * cgraphunit.c (INSNS_PER_CALL): Remove.
2334
2335         * tree-ssa-forwprop.c (vars,
2336         record_single_argument_cond_exprs,
2337         substitute_single_use_vars): Remove.
2338         (forward_propagate_into_cond_1, forward_propagate_into_cond):
2339         New.
2340         (tree_ssa_forward_propagate_single_use_vars): Call
2341         forward_propagate_into_cond for each COND_EXPR.
2342
2343         * tree-inline.c (INSNS_PER_STMT): Remove.
2344
2345 2005-04-12  Richard Henderson  <rth@redhat.com>
2346
2347         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
2348         (ix86_expand_sse_fp_minmax): ... from ...
2349         (ix86_expand_fp_movcc): ... here.
2350         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
2351         * config/i386/i386-protos.h: Update.
2352         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
2353         (sse_setccsf, sse_setccdf): Allow before reload.
2354         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
2355         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
2356         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
2357         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
2358         (anddf3, nanddf3, iordf3, xordf3): New.
2359
2360 2005-04-12  Jeff Law  <law@redhat.com>
2361
2362         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
2363         (tree-ssa-uncprop.o): Add dependencies.
2364         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
2365         * tree-flow.h (remove_useless_stmts): Remove prototype.
2366         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
2367         remove_useless_stmts.
2368         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
2369         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
2370         * tree-pass.h (pass_uncprop): Declare.
2371         * tree-ssa-uncprop.c: New file.
2372
2373 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
2374
2375         PR target/20670
2376         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
2377
2378 2005-04-12  Caroline Tice  <ctice@apple.com>
2379
2380         Temporary fix for partitioning problems.
2381         * passes.c (rest_of_handle_final): Remove code that
2382         frees unlikely_text_section_name,
2383         * varasm.c (assemble_start_function): Test for partitioning
2384         flag before writing out section labels.
2385         (assemble_end_function): Test for partitioning flag before
2386         writing out section labels.
2387
2388 2005-04-12  Steven Bosscher  <stevenb@suse.de>
2389             Stuart Hastings <stuart@apple.com>
2390             Jan Hubicka  <jh@suse.cz>
2391
2392         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
2393         references to gt-tree-cfg.h.
2394         * basic-block.h (struct basic_block_def): Don't skip rbi
2395         for garbage collection.
2396         (struct reorder_block_def): Make GTY-able.
2397         (struct control_flow_graph): New structure.
2398         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
2399         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
2400         but instead defines to the control_flow_graph for cfun.
2401         (label_to_block_map): New define, points to the label map of
2402         the control_flow_graph for cfun.
2403         (n_edges_for_function, n_basic_blocks_for_function,
2404         last_basic_block_for_function, basic_block_info_for_function,
2405         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
2406         basic_block_info_for_function, label_to_block_map_for_function):
2407         Counterparts for the above, taking a struct function as an extra
2408         argument.
2409         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
2410         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
2411         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
2412         (alloc_rbi_pool, free_rbi_pool): Remove.
2413         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
2414         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
2415         here...
2416         (cfg_layout_finalize) ... and don't free it here.
2417         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
2418         garbage collected.
2419         * flow.c (free_basic_block_vars): Set label_to_block_map and
2420         n_edges to zero too.
2421         * function.h (struct function): Add cfg field.
2422         * function.c (allocate_struct_function): Allocate the cfg.
2423         * tree-cfg.c (label_to_block_map): Remove.
2424         (build_tree_cfg): Don't allocate the rbi pool here...
2425         (delete_tree_cfg_annotations): ...and don't free it here.
2426         Also don't nullify label_to_block_map for cfun.
2427
2428 2005-04-12  Caroline Tice  <ctice@apple.com>
2429
2430         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2431         Revert my patch from April 9.
2432         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
2433         (reorder_basic_blocks): Revert my patch from April 9.
2434         (insert_section_boundary_note): Revert my patch from April 9.
2435         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
2436         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
2437         (COLD_END_LABEL):  Revert my patch from April 9.
2438         (cold_text_section_label):  Revert my patch from April 9.
2439         (cold_end_label): Revert my patch from April 9.
2440         (dwarf2out_switch_text_section): Revert my patch from April 9.
2441         (output_aranges): Revert my patch from April 9.
2442         (output_ranges):  Revert my patch from April 9.
2443         (output_line_info): Revert my patch from April 9.
2444         (add_location_or_const_value_attribute):  Revert my patch from April 9.
2445         (dwarf2out_var_location): Revert my patch from April 9.
2446         (dwarf2out_init):  Revert my patch from April 9.
2447         (dwarf2out_finish): Revert my patch from April 9.
2448         * function.h (struct function): Revert my patch from April 9.
2449         * opts.c (decode_options): Revert my patch from April 9.
2450         * output.h (unlikely_section_label, hot_section_label,
2451         hot_section_end_label, cold_section_end_label,
2452         unlikely_text_section_name): Revert my patch from April 9.
2453         * passes.c (rest_of_handle_final): Revert my patch from April 9.
2454         * varasm.c (unlikely_section_label, hot_section_label,
2455         hot_section_end_label, cold_section_end_label,
2456         unlikely_text_section_name): Revert my patch from April 9.
2457         (initialize_cold_section_name): Revert my patch from April 9.
2458         (unlikely_text_section): Revert my patch from April 9.
2459         (in_unlikely_text_section): Revert my patch from April 9.
2460         (named_section): Revert my patch from April 9.
2461         (function_section): Revert my patch from April 9.
2462         (current_function_section): Revert my patch from April 9.
2463         (assemble_start_function): Revert my patch from April 9.
2464         (assemble_end_function): Revert my patch from April 9.
2465         (default_section_type_flags_1): Revert my patch from April 9.
2466
2467 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2468
2469         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
2470         * config/sparc/sparc.md (untyped_call): Save the registers manually.
2471
2472         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
2473
2474 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2475
2476         PR middle-end/20917
2477         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
2478         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
2479
2480 2004-04-12  Richard Henderson  <rth@redhat.com>
2481
2482         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
2483         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
2484         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
2485         (UNSPEC_*, UNSPECV_*): Renumber.
2486
2487 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
2488
2489         PR mudflap/19266
2490         From Richard Henderson <rth@redhat.com>:
2491         * tree-mudflap.c (mf_build_check_statement_for): Correct block
2492         splitting logic.
2493
2494 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
2495
2496         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
2497
2498 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2499
2500         * config/bfin/bfin.c (bfin_library_id_string): Remove.
2501         (bfin_library_id): New variable.
2502         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
2503         instead of bfin_library_id_string.
2504         (bfin_handle_option): New function.
2505         (override_options): Remove most code to deal with shared library IDs,
2506         just check they aren't used without -mid-shared-library.
2507         (TARGET_HANDLE_OPTION): Define.
2508         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
2509         * config/bfin/bfin.opt (mshared-library-id=): New.
2510
2511 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
2512
2513         * tree-vect-transform.c: Fix comment typos.
2514
2515 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
2516
2517         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
2518         split critical edges when not possible/profitable.
2519
2520 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2521
2522         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
2523         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
2524         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
2525         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
2526         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
2527         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
2528         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
2529         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
2530         MASK_NO_BITFIELD.
2531         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
2532         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2533         * config/ns32k/ns32k.opt: New file.
2534
2535 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2536
2537         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
2538         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
2539         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
2540         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
2541         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
2542         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
2543         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
2544         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
2545         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
2546         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
2547         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
2548         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
2549         (MASK_COLDFIRE): Formatting fixes.
2550         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
2551         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
2552         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
2553         "_current_shared_library_a5_offset_".
2554         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2555         (MASK_ALL_CPU_BITS): New macro.
2556         (m68k_handle_option): New function.
2557         (override_options): Remove handling of m68k_library_id_string.
2558         * config/m68k/m68k.opt: New file.
2559         * config/m68k/ieee.opt: New file.
2560
2561 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
2562
2563         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2564         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
2565         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2566         (TARGET_CXX): Adjust accordingly.
2567         * target.h (struct gcc_target): Remove epxort_class_data.  Add
2568         determine_class_data_visibility and class_data_always_comdat.
2569         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2570         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
2571         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2572         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
2573         (arm_cxx_determine_class_data_visibility): New.
2574         (arm_cxx_class_data_always_comdat): Likewise.
2575         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2576         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2577         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2578         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
2579         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
2580         Define.
2581
2582 2005-04-11  Devang Patel  <dpatel@apple.com>
2583
2584         * tree-data-ref.c (build_classic_dist_vector,
2585         compute_subscript_distance): Make externally visible.
2586         * tree-data-ref.h (build_classic_dist_vector,
2587         compute_subscript_distance): Same.
2588         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
2589         Check distance vector against vectorization factor.
2590         (vect_analyze_loop): Determine vectorizaion factor before
2591         analyzing data dependences.
2592         * tree-vectorizer.c (loops_num): Make it externally visible and
2593         rename ...
2594         * tree-vectorizer.c (vect_loops_num): ... new name.
2595         * tree-vectorizer.h  (vect_loops_num): New.
2596
2597 2005-04-11  Devang Patel  <dpatel@apple.com>
2598
2599         * tree-vect-analyze.c (vect_analyze_operations): Check
2600         vectorizable codition.
2601         * tree-vect-transform.c (vect_is_simple_cond): New function.
2602         (vectorizable_condition): New function.
2603         (vect_transform_stmt): Handle condition_vec_info_type.
2604         * tree-vectorizer.h (enum stmt_vec_info_type): Add
2605         condition_vec_info_type.
2606         (vectorizable_condition): New.
2607
2608 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
2609
2610         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
2611         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
2612         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
2613
2614         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
2615         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
2616
2617         * dwarf2out.c (output_line_info): Don't try to dereference
2618         a NULL current_function_decl.
2619
2620         * config/t-slibgcc-darwin: Don't put shared libraries in
2621         directories other than $(slibdir).
2622         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
2623         OS uses for it.
2624
2625 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2626
2627         PR tree-optimization/20933
2628         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
2629         logic to reject aliases between read-only and writable
2630         variables ...
2631         (may_alias_p): ... here.
2632         (get_tmt_for): Do not associate read-only tags to pointers
2633         whose pointed-to type is not read-only.
2634         * tree-ssa.c (verify_ssa): Check that memory stores have at
2635         least one V_MAY_DEF or V_MUST_DEF.
2636
2637 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2638
2639         PR/17092
2640         * configure.ac (gcc_UNLOCKED_FUNCS): New.
2641         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
2642         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
2643         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
2644         _unlocked function.
2645         (fwrite_unlocked): Fix prototype.
2646
2647         * configure, config.in: Regenerate.
2648
2649 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
2650
2651         * tree-ssa-loop-im.c: Include real.h.
2652         (determine_invariantness_stmt): If real division divisor is
2653         invariant and flag_unsafe_math_optimizations enabled, generate
2654         invariant reciprocal for hoisting.
2655         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
2656
2657 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2658
2659         Fix PR tree-optimization/20926
2660
2661         * tree-ssa-alias.c (add_type_alias): Handle subvars.
2662
2663 2005-04-11  Devang Patel  <dpatel@apple.com>
2664
2665         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
2666         operand ordering.
2667
2668 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2669
2670         * fold-const.c (fold_binary_op_with_conditional_arg):
2671         use fold_buildN instead of "fold (buildN" in some
2672         non obvious places.
2673         (fold_unary): Likewise.
2674         (fold_binary): Likewise.
2675
2676 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2677
2678         Fix PR tree-optimization/20612
2679         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
2680         handling
2681         (perfect_nestify): preheaderbb is *not* part of loop of the
2682         old destination.
2683
2684 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2685
2686         * tree-ssa-alias.c (may_alias_p): If the variable
2687         is a global variable and the pointer is parameter
2688         and -fargument-noalias-global is used, then
2689         the pointer cannot alias the variable.
2690
2691 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
2692
2693         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
2694         * config/sparc/sparc.h: Likewise.
2695         * config/sparc/sparc.md: Likewise.
2696
2697 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
2698
2699         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
2700
2701         * tree-vrp.c: Fix a comment typo.
2702
2703 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2704
2705         PR tree-optimization/20920
2706         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
2707         SSA_NAME flows through an abnormal edge.
2708         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
2709         through abnormal edges.
2710         (maybe_add_assert_expr): Likewise.
2711
2712 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
2713
2714         * config/s390/s390.h (s390_tune_string, s390_arch_string)
2715         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
2716         (s390_stack_size_string, s390_stack_guard_string, target_flags)
2717         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
2718         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
2719         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
2720         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
2721         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
2722         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
2723         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
2724         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
2725         (TARGET_HANDLE_OPTION): Likewise.
2726         (s390_tune): Initialize to PROCESSOR_max.
2727         (s390_arch_string): Make static.
2728         (s390_tune_string, s390_warn_framesize_string): Delete.
2729         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
2730         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
2731         (s390_handle_arch_option, s390_handle_option): New functions.
2732         (override_options): Remove parsing of option strings.
2733         * config/s390/s390.opt: New file.
2734
2735 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2736
2737         * tree-complex.c (expand_vector_operations): Call
2738         update_stmt_if_modified.
2739
2740 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2741
2742         * tree-vect-analyze (vect_determine_vectorization_factor):
2743         Do not use GET_MODE_NUNITS.
2744         * tree-vect-transform.c (vect_get_vec_def_for_operand,
2745         (vectorizable_load, vect_transform_loop): Likewise.
2746
2747 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
2748
2749         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
2750         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
2751         * optabs.h (enum optab_index): Add new OTI_lceil.
2752         (lceil_optab): Define corresponding macro.
2753         * optabs.c (init_optabs): Initialize lceil_optab.
2754         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
2755         and lceildi2 patterns.
2756         * builtins.c (expand_builtin_int_roundingfn): Handle
2757         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
2758         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
2759         BUILT_IN_LLCEIL{,F,L}.
2760         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
2761         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
2762         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
2763         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
2764         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
2765         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
2766         into lceil built-in function and (long long int)ceil{,f,l} into
2767         llceil built-in function.
2768         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
2769         BUILT_IN_LLCEIL.
2770
2771 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2772
2773         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
2774         zero.
2775
2776 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
2777
2778         * config/arm/arm.c: Fix a comment typo.
2779         * doc/tree-ssa.texi: Fix a typo.
2780
2781 2005-04-10  Steven Bosscher  <stevenb@suse.de>
2782
2783         * cselib.c (clear_table): Rename to cselib_clear_table.
2784         * cselib.h (cselib_clear_table): Add prototype.
2785         * gcse.c (gcse_main): Make 'f' argument unused.
2786         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
2787         of each basic block instead.
2788         (compute_sets, compute_hash_table_work): Likewise.
2789         (constprop_register): Change int 'alter_jumps' argument to bool.
2790         (do_local_cprop): Likewise.
2791         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
2792         the insn chain.  Explicitly clear the cselib tables after finishing
2793         one basic block.  Make sure there are no unterminated libcall blocks.
2794         Update compute_sets call.
2795         (cprop): Walk basic blocks instead of the insn chain.
2796         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
2797         Likewise.
2798         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
2799         one_cprop_pass calls.
2800
2801 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2802
2803         * combine.c (combine_simplify_rtx): Remove a transformation that
2804         relies on an invalid assumption about rtl sign-extension semantics.
2805
2806 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2807
2808         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
2809         to build_int_cst_wide.
2810
2811 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
2812
2813         PR target/20126
2814         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
2815         set the original address pseudo to the correct value before the
2816         original insn, if possible, and leave the insn alone, otherwise
2817         create a new pseudo, set it and replace it in the insn.
2818         * recog.c (validate_change_maybe_volatile): New.
2819         * recog.h (validate_change_maybe_volatile): Declare.
2820
2821 2005-04-09  Caroline Tice  <ctice@apple.com>
2822
2823         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2824         Remove targetm.have_named_sections test.
2825         (fix_edges_for_rarely_executed_code): Likewise.
2826         (insert_section_boundary_note): Likewise.
2827         (reorder_basic_blocks): Check partitioning flag before calling
2828         verify_hot_cold_block_grouping.
2829         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
2830         the function struct rather than global variables.
2831         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
2832         (COLD_END_LABEL): Likewise
2833         (cold_text_section_label): New static global variable.
2834         (cold_end_label): Likewise.
2835         (dwarf2out_switch_text_section): Get hot/cold section labels from
2836         the function struct rather than global variables.
2837         (output_aranges): Use cold_text_section_label and cold_end_label;
2838         check partitioning flag before putting out delta.
2839         (output_ranges): Remove incorrect code attempting to use
2840         hot/cold labels.
2841         (output_line_info): Get cold section label from function struct.
2842         (add_location_or_const_value_attribute): Likewise.
2843         (get_subprogram_die): Get hot/cold section labels from function struct.
2844         (dwarf2out_var_location): Likewise.
2845         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
2846         write out cold_text_section_label if partition flag is set.
2847         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
2848         * function.h (struct function): Add new fields to point to hot/cold
2849         section labels: hot_section_label, cold_section_label,
2850         hot_section_end_label and cold_section_end_label; also add new field
2851         for cold text section name, unlikely_text_section_name.
2852         * opts.c (decode_options): Turn off partitioning flag if
2853         !targetm.have_named_sections.
2854         * output.h (hot_section_label): Remove.
2855         (hot_section_end_label): Remove.
2856         (cold_section_end_label): Remove.
2857         (unlikely_section_label): Remove.
2858         (unlikely_text_section_name): Remove.
2859         * passes.c (rest_of_handle_final):  Remove code that frees
2860         unlikely_text_section_name.
2861         * varasm.c (unlikely_section_label): Remove.
2862         (hot_section_label): Remove.
2863         (hot_section_end_label): Remove.
2864         (cold_section_end_label): Remove.
2865         (unlikely_text_section_name):  Remove.
2866         (initialize_cold_section_name): Modify to call
2867         targetm.strip_name_encoding; to store cold section name in current
2868         function struct, if it exists; and to only use the decl_section_name
2869         if flag_named_sections is true.
2870         (unlikely_text_section): Modify to get section name out of current
2871         function struct, if there is one; otherwise build it from
2872         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
2873         (in_unlikely_text_section): Likewise.
2874         (named_section): Modify to get/put cold section name in current function
2875         struct, if there is one.
2876         (function_section):  Change 'bool unlikely' to 'int reloc'; check
2877         targetm.have_named_sections before calling named_section.
2878         (current_function_section): Likewise.
2879         (assemble_start_function): Modify to get/put unlikely_text_section_name
2880         in current function struct; modify to get hot/cold section labels
2881         from function struct; initialize labels using
2882         ASM_GENERATE_INTERNAL_LABEL;
2883         test partitioning flag before writing out hot section label.
2884         (assemble_end_function): Test partitioning flag before writing out
2885         hot/cold section labels.
2886         (default_section_type_flags_1):  Modify to use array instead of
2887          char* for unlikely_text_section_name; set flags correctly for
2888          cold text section if there is not a current function decl.
2889
2890 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2891
2892         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
2893         and TI_VA_LIST_FPR_COUNTER_FIELD.
2894         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
2895         * tree-pass.h (pass_stdarg): Add.
2896         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
2897         * tree-stdarg.c: New file.
2898         * tree-stdarg.h: New file.
2899         * Makefile.in (OBJS-common): Add tree-stdarg.o.
2900         (tree-stdarg.o): Add dependencies.
2901         * function.h (struct function): Add va_list_gpr_size and
2902         va_list_fpr_size fields.
2903         * function.c (allocate_struct_function): Initialize them.
2904         * target.h (struct gcc_target): Add stdarg_optimize_hook.
2905         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
2906         (TARGET_INITIALIZER): Add it.
2907
2908         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
2909         va_list_{g,f}pr_counter_field.
2910         (ix86_setup_incoming_varargs): Don't do anything if reg_save
2911         area will not be used.  Only save registers that tree-stdarg.c
2912         detected they need saving.
2913         (ix86_va_start): Don't set up fields that won't be used.
2914
2915         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
2916         va_list_{g,f}pr_counter_field.
2917         (setup_incoming_varargs): Don't do anything if reg_save
2918         area will not be used.  Only save registers that tree-stdarg.c
2919         detected they need saving.
2920         (rs6000_va_start): Don't set up fields that won't be used.
2921
2922         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
2923         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
2924         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
2925         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
2926
2927 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2928
2929         PR target/20795
2930         * config/i386/i386.c (construct_container): Pass empty aligned
2931         struct, union or class in memory.
2932
2933 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
2934
2935         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
2936         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
2937         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
2938         config/rs6000/predicates.md: Fix comment typos.
2939
2940         * sched-int.h (haifa_insn_data): Remove blockage and units.
2941         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
2942         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
2943         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
2944
2945 2005-04-09  Jan Hubicka  <jh@suse.cz>
2946             Steven Bosscher  <stevenb@suse.de>
2947
2948         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
2949         * cfgloop.c (get_loop_exit_edges): Likewise.
2950         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
2951         (unloop): Likewise.
2952         * loop-unroll.c (analyze_insns_in_loop): Likewise.
2953         * tree-cfg.c (dump_cfg_status): Likewise.
2954
2955 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
2956
2957         * config/rs6000/predicates.md (altivec_register_operand): Remove
2958         redundant match_code test.
2959         (gpc_reg_operand): Same.
2960         (cc_reg_operand): Same.
2961         (cc_reg_not_cr0_operand): Same.
2962
2963 2005-04-09  Jan Hubicka  <jh@suse.cz>
2964
2965         Forgotten hunk from my last merge patch:
2966         * final.c (output_addr_const): Do not call mark_referenced.
2967
2968 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
2969
2970         * doc/tree-ssa.texi: Add immediate use documentation.
2971
2972 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
2973
2974         * arm.c (FL_WBUF): Define.
2975         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
2976         (arm_is_6_or_7): Delete.
2977         (arm_tune_wbuf): New.
2978         (arm_override_options): Set arm_tune_wbuf.
2979         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
2980         (arm_is_6_or_7): Delete declaration.
2981         (arm_tune_wbuf): New declartion.
2982         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
2983         (model_wbuf): Derive from arm_tune_wbuf.
2984         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
2985         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
2986         (arm740t): Mark CPUs as having a write buffer.
2987
2988 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
2989
2990         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
2991         of 'const_double_operand' in operand 2 constraints.  Update enable
2992         condition.
2993
2994 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
2995
2996         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
2997         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
2998         * optabs.h (enum optab_index): Add new OTI_lfloor.
2999         (lfloor_optab): Define corresponding macro.
3000         * optabs.c (init_optabs): Initialize lfloor_optab.
3001         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
3002         and lfloordi2 patterns.
3003         * builtins.c (expand_builtin_int_roundingfn): New prototype.
3004         (expand_builtin_int_roundingfn): New function.
3005         (fold_builtin_int_roundingfn): New prototype.
3006         (fold_builtin_int_roundingfn): New function, renamed from
3007         fold_builtin_lround.
3008         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
3009         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
3010         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
3011         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
3012         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
3013         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
3014         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
3015         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
3016         into lfloor built-in function and (long long int)floor{,f,l} into
3017         llfloor built-in function.
3018         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
3019         BUILT_IN_LLFLOOR.
3020
3021 2005-04-08  Ian Lance Taylor  <ian@airs.com>
3022
3023         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
3024         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
3025         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
3026         (DO_COND, DO_BODY): Likewise.
3027         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
3028         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
3029         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
3030         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
3031         (build_continue_stmt, build_break_stmt): Don't declare.
3032         (c_do_switch_warnings): Update declaration.
3033         * c-gimplify.c (enum bc_t): Remove.
3034         (struct c_gimplify_ctx, ctxp): Remove.
3035         (push_context, pop_context): Remove static functions.
3036         (c_genericize): Don't call push_context or pop_context.
3037         (begin_bc_block, finish_bc_block): Remove static functions.
3038         (build_bc_goto): Likewise.
3039         (gimplify_c_loop): Likewise.
3040         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
3041         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
3042         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
3043         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
3044         * c-common.c (c_do_switch_warnings): Rename from
3045         c_do_switch_warnings_1.
3046         (c_do_switch_warnings) [old version]: Remove.
3047         (c_do_switch_expr_warnings): Remove.
3048         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
3049         function instead of c_do_switch_expr_warnings.
3050         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
3051         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
3052         * c-pretty-print.c (pp_c_statement): Likewise.
3053         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
3054
3055 2005-04-08  Devang Patel  <dpatel@apple.com>
3056
3057         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
3058         While selecting replacement condition pay attention to loop header.
3059
3060 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
3061
3062         Merge from tree-cleanup-branch: VRP, store CCP, store
3063             copy-prop, incremental SSA updating of FUD chains and
3064             newly exposed symbols.
3065
3066         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
3067         (OBJS-common): Add tree-vrp.o.
3068         (tree-vrp.o): New rule.
3069         * basic-block.h (nearest_common_dominator_for_set): Declare.
3070         * common.opt (ftree-store-ccp): New flag.
3071         (ftree-copy-prop): New flag.
3072         (ftree-vrp): New flag.
3073         (ftree-store-copy-prop): New flag.
3074         * dominance.c (nearest_common_dominator_for_set): New.
3075         * domwalk.c (walk_dominator_tree): Only traverse
3076         statements in blocks marked in walk_data->interesting_blocks.
3077         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
3078         * fold-const.c (fold): Handle ASSERT_EXPR.
3079         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
3080         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
3081         flag_tree_vrp at -O2.
3082         * timevar.def (TV_TREE_VRP): Define.
3083         (TV_TREE_COPY_PROP): Define.
3084         (TV_TREE_STORE_COPY_PROP): Define.
3085         (TV_TREE_SSA_INCREMENTAL): Define.
3086         (TV_TREE_STORE_CCP): Define.
3087         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
3088         to kill_redundant_phi_nodes from comment.
3089         (verify_expr): Handle ASSERT_EXPR.
3090         * tree-dfa.c (mark_new_vars_to_rename): Remove second
3091         argument.  Update all users.
3092         (mark_call_clobbered_vars_to_rename): Remove.  Update all
3093         users.
3094         * tree-flow-inline.h (unmodifiable_var_p): New.
3095         * tree-flow.h (enum value_range_type): Declare.
3096         (struct value_range_def): Declare.
3097         (value_range): Declare.
3098         (remove_all_phi_nodes_for): Remove.  Update all users.
3099         (find_phi_node_for): Declare.
3100         (add_type_alias): Declare.
3101         (count_uses_and_derefs): Declare.
3102         (kill_redundant_phi_nodes): Remove.
3103         (rewrite_into_ssa): Remove.
3104         (rewrite_def_def_chains): Remove.
3105         (update_ssa, register_new_name_mapping, create_new_def_for,
3106         need_ssa_update_p, name_registered_for_update_p,
3107         release_ssa_name_after_update_ssa, dump_repl_tbl,
3108         debug_repl_tbl, dump_names_replaced_by,
3109         debug_names_replaced_by, mark_sym_for_renaming,
3110         mark_set_for_renaming, get_current_def, set_current_def,
3111         get_value_range, dump_value_range, debug_value_range,
3112         dump_all_value_ranges, debug_all_value_ranges,
3113         expr_computes_nonzero, loop_depth_of_name,
3114         unmodifiable_var_p): Declare.
3115         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
3116         ASSERT_EXPR.
3117         * tree-into-ssa.c (block_defs_stack): Update comment.
3118         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
3119         syms_to_rename, names_to_release, repl_tbl,
3120         need_to_initialize_update_ssa_p, need_to_update_vops_p,
3121         need_to_replace_names_p): New locals.
3122         (NAME_SETS_GROWTH_FACTOR): Define.
3123         (struct repl_map_d): Declare.
3124         (struct mark_def_sites_global_data): Add field
3125         interesting_blocks.
3126         (enum rewrite_mode): Declare.
3127         (REGISTER_DEFS_IN_THIS_STMT): Define.
3128         (compute_global_livein): Use last_basic_block instead of
3129         n_basic_blocks.
3130         (set_def_block): Remove last argument.  Update all callers.
3131         (prepare_use_operand_for_rename): Remove.  Update all callers.
3132         (prepare_def_operand_for_rename): Remove.  Update all callers.
3133         (symbol_marked_for_renaming): New.
3134         (is_old_name): New.
3135         (is_new_name): New.
3136         (repl_map_hash): New.
3137         (repl_map_eq): New.
3138         (repl_map_free): New.
3139         (names_replaced_by): New.
3140         (add_to_repl_tbl): New.
3141         (add_new_name_mapping): New.
3142         (mark_def_sites): Assume that all the operands in the
3143         statement are in normal form.
3144         (find_idf): Assert that the block in the stack is valid.
3145         (get_default_def_for): New.
3146         (insert_phi_nodes_for): Add new argument 'update_p'.
3147         Add documentation.
3148         If update_p is true, add a new mapping between the LHS of
3149         each new PHI and the name that it replaces.
3150         (insert_phi_nodes_1): Only call find_idf if needed.
3151         (get_reaching_def): Call get_default_def_for.
3152         (rewrite_operand): Remove.
3153         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
3154         and REWRITE_THIS_STMT are false.
3155         Assume that all the operands in the statement are in
3156         normal form.
3157         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
3158         (rewrite_virtual_phi_arguments): Remove.
3159         (invalidate_name_tags): Remove.
3160         (register_new_update_single, register_new_update_set,
3161         rewrite_update_init_block, replace_use,
3162         rewrite_update_fini_block, rewrite_update_stmt,
3163         rewrite_update_phi_arguments): New.
3164         rewrite_blocks): Remove argument 'fix_virtual_phis'.
3165         Add arguments 'entry', 'what' and 'blocks'.
3166         Initialize the dominator walker according to 'what' and
3167         'blocks'.
3168         Start the dominator walk at 'entry'.
3169         (mark_def_site_blocks): Add argument 'interesting_blocks'.
3170         Use it to configure the dominator walker.
3171         (rewrite_into_ssa): Remove argument 'all'.
3172         Make internal.
3173         (rewrite_all_into_ssa): Remove.
3174         (rewrite_def_def_chains): Remove.
3175         (mark_def_interesting, mark_use_interesting,
3176         prepare_phi_args_for_update, prepare_block_for_update,
3177         prepare_def_site_for, prepare_def_sites,
3178         dump_names_replaced_by, debug_names_replaced_by,
3179         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
3180         delete_update_ssa, create_new_def_for,
3181         register_new_name_mapping, mark_sym_for_renaming,
3182         mark_set_for_renaming, need_ssa_update_p,
3183         name_registered_for_update_p, ssa_names_to_replace,
3184         release_ssa_name_after_update_ssa,
3185         insert_updated_phi_nodes_for, update_ssa): New.
3186         * tree-loop-linear.c (linear_transform_loops): Call
3187         update_ssa instead of rewrite_into_ssa.
3188         * tree-optimize.c (vars_to_rename): Remove.
3189         Update all users.
3190         (init_tree_optimization_passes): Replace
3191         pass_redundant_phi with pass_copy_prop.
3192         Add pass_vrp.
3193         Replace pass_ccp with pass_store_ccp.
3194         Add pass_store_copy_prop after pass_store_ccp.
3195         (execute_todo): If the TODO_ flags don't include updating
3196         the SSA form, assert that it does not need to be updated.
3197         Call update_ssa instead of rewrite_into_ssa and
3198         rewrite_def_def_chains.
3199         If TODO_verify_loops is set, call verify_loop_closed_ssa.
3200         (tree_rest_of_compilation):
3201         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
3202         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
3203         TODO_cleanup_cfg): Renumber.
3204         (TODO_verify_loops, TODO_update_ssa,
3205         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
3206         TODO_update_ssa_only_virtuals): Define.
3207         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
3208         Declare.
3209         * tree-phinodes.c (make_phi_node): Update documentation.
3210         (remove_all_phi_nodes_for): Remove.
3211         (find_phi_node_for): New.
3212         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
3213         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
3214         (interpret_rhs_modify_expr): Likewise.
3215         * tree-sra.c (decide_instantiations): Mark all symbols in
3216         SRA_CANDIDATES for renaming.
3217         (mark_all_v_defs_1): Rename from mark_all_v_defs.
3218         (mark_all_v_defs): New function.  Update all users to call it
3219         with the whole list of scalarized statements, not just the
3220         first one.
3221         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
3222         (compute_flow_insensitive_aliasing): If the tag is
3223         unmodifiable and the variable isn't or vice-versa, don't
3224         make them alias of each other.
3225         (setup_pointers_and_addressables): If the type tag for
3226         VAR is about to change, mark the old one for renaming.
3227         (add_type_alias): New.
3228         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
3229         (ccp_lattice_t): Rename from latticevalue.
3230         (value): Remove.  Update all users.
3231         (const_val): New local variable.
3232         (do_store_ccp): New local variable.
3233         (dump_lattice_value): Handle UNINITIALIZED.
3234         (debug_lattice_value): New.
3235         (get_default_value): Re-write.
3236         (set_lattice_value): Re-write.
3237         (def_to_varying): Remove.  Update all users.
3238         (likely_value): Return VARYING for statements that make
3239         stores when STORE_CCP is false.
3240         Return VARYING for any statement other than MODIFY_EXPR,
3241         COND_EXPR and SWITCH_EXPR.
3242         (ccp_initialize): Re-write.
3243         (replace_uses_in, replace_vuse_in, substitute_and_fold):
3244         Move to tree-ssa-propagate.c.
3245         (ccp_lattice_meet): Handle memory stores when
3246         DO_STORE_CCP is true.
3247         (ccp_visit_phi_node): Likewise.
3248         (ccp_fold): Likewise.
3249         (evaluate_stmt): Likewise.
3250         (visit_assignment): Likewise.
3251         (ccp_visit_stmt): Likewise.
3252         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
3253         into DO_STORE_CCP.
3254         (do_ssa_ccp): New.
3255         (pass_ccp): Use it.
3256         (do_ssa_store_ccp): New.
3257         (gate_store_ccp): New.
3258         (pass_store_ccp): Declare.
3259         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
3260         (may_propagate_copy): Reformat.
3261         Don't abort if ORIG is a virtual and DEST isn't.
3262         If NEW does not have alias information but DEST does,
3263         copy it.
3264         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
3265         copy_prop_kind, which_copy_prop): Declare.
3266         (stmt_may_generate_copy, get_copy_of_val,
3267         get_last_copy_of, set_copy_of_val, dump_copy_of,
3268         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
3269         copy_prop_visit_stmt, copy_prop_visit_phi_node,
3270         init_copy_prop, fini_copy_prop, execute_copy_prop,
3271         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
3272         store_copy_prop): New.
3273         (pass_copy_prop, pass_store_copy_prop): Declare.
3274         * tree-ssa-dom.c (struct opt_stats_d): Add fields
3275         'num_const_prop' and 'num_copy_prop'.
3276         (cprop_operand): Update them.
3277         (dump_dominator_optimization_stats): Dump them.
3278         (tree_ssa_dominator_optimize): Call update_ssa instead of
3279         rewrite_into_ssa.
3280         (loop_depth_of_name): Declare extern.
3281         (simplify_cond_and_lookup_avail_expr): Guard against NULL
3282         values for LOW or HIGH.
3283         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
3284         (record_equivalences_from_stmt): Call expr_computes_nonzero.
3285         (cprop_operand): Only propagate if VAL != OP.
3286         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
3287         statement for renaming.
3288         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
3289         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
3290         add_type_alias if necessary.
3291         Call mark_new_vars_to_rename.
3292         (tree_ssa_iv_optimize): If new symbols need to be renamed,
3293         mark every statement updated, call update_ssa and
3294         rewrite_into_loop_closed_ssa.
3295         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
3296         from LIVEIN if VAR is a virtual.
3297         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
3298         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
3299         (get_call_expr_operands): Reformat statement.
3300         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
3301         symbols.
3302         * tree-ssa-propagate.c (ssa_prop_init): Initialize
3303         SSA_NAME_VALUE for every name.
3304         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3305         get_value_loaded_by): New.
3306         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
3307         substitute_and_fold): Move from tree-ssa-ccp.c.
3308         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
3309         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3310         get_value_loaded_by, replace_uses_in, substitute_and_fold):
3311         Declare.
3312         * tree-ssa.c (verify_use): Fix error message.
3313         (propagate_into_addr, replace_immediate_uses, get_eq_name,
3314         check_phi_redundancy, kill_redundant_phi_nodes,
3315         pass_redundant_phi): Remove.  Update all users.
3316         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
3317         add_type_alias, if necessary.
3318         * tree-vectorizer.h (struct _stmt_vect_info): Update
3319         documentation for field 'memtag'.
3320         * tree-vrp.c: New file.
3321         * tree.def (ASSERT_EXPR): Define.
3322         * tree.h (ASSERT_EXPR_VAR): Define.
3323         (ASSERT_EXPR_COND): Define.
3324         (SSA_NAME_VALUE_RANGE): Define.
3325         (struct tree_ssa_name): Add field 'value_range'.
3326         (PHI_REWRITTEN): Remove.
3327         (struct tree_phi_node): Remove field 'rewritten'.
3328         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
3329         -ftree-store-copy-prop): Document.
3330         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
3331         Document usage of update_ssa.
3332
3333 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
3334
3335         PR target/20814
3336         * config/rs6000/predicates.md (altivec_register_operand): Accept
3337         SUBREG.
3338         (and64_operand): Do not limit CONST_INT to mask64_operand.
3339         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
3340         (and_operand): Do not limit CONST_INT to mask_operand.
3341
3342 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
3343
3344         PR rtl-optimization/20466
3345         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
3346         for overlap of the address of each list member.
3347         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
3348
3349 2005-04-08  Mike Stump  <mrs@apple.com>
3350
3351         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
3352
3353         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
3354         instead of 4.
3355
3356 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3357
3358         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
3359
3360         * function.c (push_function_context_to): Don't set
3361         contains_functions.
3362         * function.h (function): Remove contains_functions.
3363         (current_function_contains_functions): Remove.
3364
3365         * function.h (function): Remove instrument_entry_exit.
3366         (current_function_instrument_entry_exit): Remove.
3367
3368         * function.h (nonlocal_labels): Remove.
3369
3370         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
3371
3372         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
3373         (check_attr_value, write_attr_get, write_expr_attr_cache,
3374         find_attr, make_internal_attr): Don't reference negative_ok or
3375         unsigned_p.
3376         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
3377         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
3378         (ATTR_STATIC): Adjust the value.
3379
3380         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
3381
3382 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
3383
3384         * config/s390/tpf.h (ASM_SPEC): Define.
3385
3386 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3387
3388         * tree-flow.h: Remove the prototype for
3389         redirect_immediate_uses.
3390         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
3391
3392 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
3393
3394         * arm.c (arm_const_double_by_parts): New function.
3395         * arm-protos.h (arm_const_double_by_parts): Add prototype.
3396         * arm.md (define_split for 64-bit constants): Add another one.
3397
3398 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
3399
3400         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
3401
3402 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3403
3404         * system.h: Revert last change.
3405
3406 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
3407
3408         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
3409         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
3410         (TARGET_SWITCHES): Delete.
3411         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
3412         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
3413         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
3414         * config/xtensa/xtensa.opt: New file.
3415
3416 2005-04-08  Ben Elliston  <bje@au.ibm.com>
3417
3418         * config/fp-bit.c: Include L_mul_tf in #endif comment.
3419         * config/fp-bit.h: Tidy comments.
3420
3421 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3422
3423         * system.h: Poison PARAMS.
3424
3425 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
3426
3427         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3428         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
3429         (TARGET_SWITCHES): Delete.
3430         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
3431         * config/vax/vax.opt: New file.
3432
3433 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
3434
3435         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
3436
3437 2005-04-07  Ian Lance Taylor  <ian@airs.com>
3438
3439         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
3440         define.
3441         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
3442         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
3443         Likewise.
3444
3445 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
3446
3447         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
3448         all immediate uses in PHI nodes.
3449
3450 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
3451
3452         * arm.c (arm_const_double_inline_cost): Handle any constant by
3453         using gen_lowpart and gen_highpart_mode.
3454         (note_invalid_constants): All constants in an RTX with a constraint
3455         that permits memory are now pushed to the constant pool.
3456         (output_move_double): Delete code to handle reg to reg and
3457         constant to reg moves.
3458         (const_double_needs_minipool, output_mov_immediate): Delete.
3459         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
3460         CONST_INT and CONST_VECTOR.
3461         * arm.md (ANY64): New mode macro.
3462         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
3463         (movdf_soft_insn): Split reg-reg and const-reg moves.
3464         (split patterns for 64-bit constant and register moves): New.
3465         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
3466         (cirrus_movdf_hard_insn): Likewise.
3467         * fpa.md (movdf_fpa): Likewise.
3468         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
3469         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
3470         constraints.
3471         (movv2si_internal_2): Likewise.
3472         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
3473         (movdf_vfp): Likewise.
3474         * arm-protos.h (output_mov_immediate): Delete prototype.
3475
3476 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
3477
3478         PR target/20093
3479         * simplify-rtx.c (simplify_unary_operation_1): Check
3480         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
3481
3482 2005-04-06  James E Wilson  <wilson@specifixinc.com>
3483
3484         PR target/20717
3485         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
3486         ADDR_EXPR.
3487
3488 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3489
3490         * coverage.h (GCOV_TYPE_NODE): Delete.
3491         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
3492         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
3493         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
3494         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
3495         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
3496
3497 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3498
3499         PR other/20792
3500         * Makefile.in (gcc.pot): Remove options.c dependency.
3501         * optc-gen.awk: Don't quote help strings with N_().
3502
3503 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
3504
3505         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
3506         the function returns a pointer type.
3507
3508 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
3509
3510         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
3511         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
3512         * doc/invoke.texi: Documnet salias-max-implicit-fields.
3513         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
3514         explicit_uses members.
3515         (get_or_create_used_part_for): Initialize new fields.
3516         (fieldoff_compare): New function.
3517         (create_overlap_variables_for): Count number of fields, use
3518         heuristic to determine whether to create subvars for vars with
3519         only implicit uses.
3520         Sort the field list by offset and avoid creating duplicate SFT's.
3521
3522 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3523
3524         * c.opt (-F): Remove trailing whitespace from help string.
3525         (-finput-charset): Use a tab to separate the switch name and help
3526         string.
3527         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
3528         (-ftree-vectorizer-verbose): Likewise.
3529
3530 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3531
3532         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
3533         a PHI argument where a use occurs instead of all PHI arguments.
3534
3535 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
3536
3537         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
3538         scope.
3539
3540 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3541
3542         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
3543         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
3544         config/bfin/bfin.h: Fix comment typos.
3545
3546 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
3547
3548         * doc/install.texi: Update the URL for Jacks.
3549         * doc/sourcebuild.texi: Likewise.
3550
3551 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3552
3553         PR target/17245
3554         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
3555         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
3556
3557 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3558
3559         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
3560
3561 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3562
3563         * config/v850/v850-protos.h (override_options): Delete.
3564         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
3565         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
3566         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
3567         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
3568         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
3569         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
3570         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
3571         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
3572         (OVERRIDE_OPTIONS): Delete.
3573         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
3574         (small_memory_info): Remove the value field.
3575         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
3576         TARGET_NO_APP_REGS.
3577         * config/v850/v850.c (small_memory): Remove the value field.
3578         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3579         (override_options): Delete.
3580         (v850_handle_memory_option, v850_handle_option): New functions.
3581         * config/v850/v850.opt: New file.
3582
3583 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
3584
3585         * config.host: Add a section for generic hosts, and a subsection
3586         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
3587         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
3588         * config/host-darwin.h: New.
3589         * config/x-darwin: New.
3590         * config/i386/host-i386-darwin.c: New.
3591         * config/i386/x-darwin: New.
3592         * config/rs6000/host-darwin.c: Include host-darwin.h.
3593         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
3594         (darwin_rs6000_gt_pch_use_address): Likewise.
3595         * config/rs6000/x-darwin: Change name of .o built, update
3596         dependencies for changes to rs6000/host-darwin.c.
3597
3598 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3599
3600         PR target/17824
3601         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
3602
3603 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
3604
3605         * tree-vect-analyze.c (vect_analyze_loop_form): Call
3606         split_loop_exit_edge instead of loop_split_edge_with.
3607
3608 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
3609
3610         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
3611         UNSPEC_SET_VSCR): New constants, used throughout.
3612         (*andc3_v4sf): New.
3613         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
3614         Replace with...
3615         (altivec_vspltis<VI_char>): ... this pattern, using
3616         a QImode const_int_operand for the immediate.
3617         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
3618         define_expands.
3619
3620 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3621
3622         PR target/17822
3623         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
3624
3625 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3626
3627         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
3628
3629 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3630
3631         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
3632         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
3633         macros as living in "this file" and not gcc.h.
3634
3635 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3636
3637         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
3638         -ftree-live_range_split.  Perhaps renamed at some point?
3639
3640 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3641
3642         PR target/20625
3643         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
3644         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
3645
3646 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3647
3648         * tree-flow.h (number_of_iterations_cond): Declaration removed.
3649         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
3650         (number_of_iterations_special): New function.
3651         (number_of_iterations_exit): Use number_of_iterations_special.
3652         Use simplify_using_outer_evolutions only at -O3.
3653         (number_of_iterations_cond, tree_simplify_using_condition,
3654         simplify_using_initial_conditions, loop_niter_by_eval,
3655         compare_trees, can_count_iv_in_wider_type_bound,
3656         simplify_using_outer_evolutions): Use fold_build.
3657
3658 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
3659
3660         * doc/install.texi (Configuration): Document --with-java-home.
3661
3662 2005-04-05  Richard Henderson  <rth@redhat.com>
3663
3664         PR target/20342
3665         PR target/20447
3666         * config/i386/i386.c (print_operand): Handle vector zeros.
3667         (ix86_split_to_parts): Handle CONST_VECTOR.
3668         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
3669         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
3670         what modes to tie for MMX and SSE registers.
3671         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
3672         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
3673         to vector modes as well.
3674         * config/i386/predicates.md (const0_operand): Handle VOIDmode
3675         properly as an input mode.
3676
3677 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3678
3679         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
3680
3681 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3682
3683         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
3684
3685 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3686
3687         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
3688         and local functions, set sse_nregs to 8 and float_in_sse.
3689         (function_arg_advance, function_arg): If float_in_sse, pass
3690         SFmode and DFmode arguments in SSE registers.
3691         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
3692
3693         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
3694         of -funit-at-a-time.
3695
3696 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3697
3698         * config/i386/i386-protos.h (ix86_function_value): Accept two
3699         arguments, like the target macro.
3700         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
3701         * config/i386/i386.c (ix86_function_value): Accept the second
3702         argument of the target macro.
3703         (ix86_function_ok_for_sibcall): Pass a function pointer to
3704         ix86_function_value.
3705         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
3706         call to ix86_value_regno).
3707         (ix86_value_regno): Add support for returning floating point values
3708         in SSE registers.
3709
3710 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3711
3712         PR tree-optimization/20076
3713         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
3714         that call __builtin_return or __builtin_apply_args.
3715
3716 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3717
3718         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
3719         Use immediate use iterator.
3720         (stmt_is_bumper_for_loop): Use immediate use iterator.
3721         * predict.c (strip_builtin_expect): Use update_stmt.
3722         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
3723         on all elements of a STATEMENT_LIST.
3724         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
3725         (bsi_remove): Remove imm_use links and mark the stmt as modified.
3726         (bsi_replace): Mark stmt as modified and the update it.
3727         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
3728         (expand_complex_libcal): Call update_stmt.
3729         (expand_complex_comparison): Call mark_stmt_modified.
3730         (expand_complex_operations_1): Call update_stmt_if_modified.
3731         (expand_vector_operations_1): Call mark_stmt_modified.
3732         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
3733         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
3734         add_immediate_use, redirect_immediate_use,
3735         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
3736         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
3737         (mark_new_vars_to_rename): Call update_stmt.
3738         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
3739         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
3740         Ignore PHI nodes.
3741         (unmodify_stmt): Delete.
3742         (update_stmt): New.  Force an update of a stmt.
3743         (update_stmt_if_modified): update a stmt if it is out of date.
3744         (get_stmt_operands): Verify stmt is NOT modified.
3745         (stmt_modified_p): Update comment.
3746         (delink_imm_use): Remove a use node from its immuse list.
3747         (link_imm_use_to_list): Link a use node to a specific list.
3748         (link_imm_use): Link a node to the correct list.
3749         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
3750         it in the correct list, if appropriate.
3751         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
3752         (relink_imm_use): Link a use node in place of another node in a list.
3753         (relink_imm_use_stmt): LInk a node in place of another node, and set
3754         the stmt pointer.
3755         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
3756         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
3757         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
3758         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
3759         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
3760         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
3761         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
3762         (has_zero_uses): New.  Return true if there are no uses of a var.
3763         (has_single_use): New.  Return true if there is only a single use of a
3764         variable.
3765         (single_imm_use): New.  Return the simgle immediate use.
3766         (num_imm_uses): New.  Return the number of immediate uses.
3767         (get_v_must_def_ops): Use is now a pointer.
3768         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
3769         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
3770         the use node.
3771         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
3772         (delink_stmt_imm_use): Delink all immuses from a stmt.
3773         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
3774         * tree-flow.h (struct dataflow_d): Delete.
3775         (immediate_use_iterator_d): New.  Immediate use iterator struct.
3776         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
3777         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
3778         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
3779         iteration.
3780         (struct stmt_ann_d): Remove dataflow_t from struct.
3781         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
3782         (if_convertible_phi_p): Use FAST immuse iterator.
3783         (if_convertible_loop_p): Don't call compute_immediate_uses.
3784         (replace_phi_with_cond_modify_expr): Call update_stmt.
3785         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
3786         update_stmt_if_modified.
3787         (rewrite_all_into_ssa): Initialize ssa operands.
3788         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
3789         compute_immediate_uses.
3790         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
3791         ssa_property is available.
3792         (execute_one_pass):  Change parameters passed to execute_todo.
3793         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
3794         (remove_ssa_form): Call fini_ssa_operands.
3795         (insert_backedge_copies): Delete call to modify_stmt.
3796         * tree-phinodes.c (make_phi_node): Initialize use nodes.
3797         (release_phi_node): Delink any use nodes before releasing.
3798         (resize_phi_node): Relink any use nodes.
3799         (remove_phi_arg_num): Delink the use node.
3800         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
3801         (remove_all_phi_nodes_for): Release phi node first.
3802         * tree-pretty-print.c (dump_generic_node): Print stmt address.
3803         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
3804         (scalarize_use, scalarize_copy): Call update_stmt.
3805         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
3806         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
3807         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
3808         (ccp_initialize): Remove call to compute_immediate_uses.
3809         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
3810         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
3811         stmts.
3812         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
3813         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
3814         (eliminate_redundant_computations): Call mark_stmt_modified.
3815         (cprop_operand): Call mark_stmt_modified.
3816         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
3817         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
3818         (dse_optimize_stmt): Use new immuse interface.
3819         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
3820         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
3821         (substitute_single_use_vars): Use new immuse interface.
3822         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
3823         and compute_immediate_uses.
3824         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
3825         interface.
3826         (rewrite_mem_refs): Call update_stmt.
3827         (determine_lsm): Remove call to compute_imm_uses and free_df.
3828         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
3829         (try_unroll_loop_completely): Call update_stmt.
3830         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
3831         (rewrite_use_compare): Call update_stmt.
3832         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
3833         (rewrite_use) : Call update_stmt.
3834         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
3835         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
3836         update_stmt.
3837         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
3838         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
3839         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
3840         use nodes.
3841         (initialize_vuse_operand): New.  Initialize a vuse operand.
3842         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
3843         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
3844         (finalize_ssa_defs): Use stmt parameter.
3845         (correct_use_link): Ensure a use node is in the correct list, and has
3846         the correct stmt pointer.
3847         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
3848         finalize_ssa_v_must_defs): Also initialize use nodes.
3849         (finalize_ssa_stmt_operands): Pass extra stmt operands.
3850         (build_ssa_operands): Seperate parsing from final operand construction.
3851         (parse_ssa_operands): New.  Parse entry point for operand building.
3852         (swap_tree_operands): New.  Swap 2 tree operands.
3853         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
3854         operands.
3855         (get_expr_operands): Call swap_tree_operands when needed.
3856         (copy_virtual_operands): Use initialize routines for virtual use ops.
3857         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
3858         (verify_abort): New.  Issue imm_use error.
3859         (verify_imm_links): New Verify imm_use links for a var.
3860         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
3861         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
3862         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
3863         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
3864         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
3865         (NULL_USE_OPERAND_P) Define.
3866         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
3867         use node.
3868         (struct vuse_operand_type): New struct.
3869         (SET_USE): Call set_ssa_use_from_ptr.
3870         (USE_STMT): Define.
3871         (PHI_ARG_INDEX_FROM_USE): Define.
3872         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
3873         argument via SET_USE, not PHI_ARG_DEF_TREE.
3874         * tree-ssa-pre.c (eliminate): Call update_stmt.
3875         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
3876         call free_df.
3877         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
3878         (nearest_common_dominator_of_uses): Use imm_use iterator.
3879         (statement_sink_location): Use imm_use iterator and interface.
3880         (execute_sink_code): Don't call compute_immediate_uses or free-df.
3881         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
3882         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
3883         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
3884         (verify_ssa): Ensure no stmt is marked modify after optimization pass
3885         if new parameter is true.
3886         (init_tree_ssa): Don't initialize operand cache here.
3887         (delete_tree_ssa): Don't destroy operand cache here.
3888         (propagate_into_addr): Pass in a use pointer, return true if anything
3889         was changed.
3890         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
3891         (check_phi_redundancy): Use imm_use iterator.
3892         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
3893         free_df.
3894         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
3895         (release_ssa_name): Delink node and all elements in its imm_use list.
3896         * tree-tailcall.c (adjust_return_value): Call update_stmt.
3897         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
3898         * tree-vectorizer.c (need_imm_uses_for): Delete.
3899         (vectorize_loops): Dont call compute_immediate_uses or free_df.
3900         * tree.h (struct ssa_imm_use_d): Define.
3901         (SSA_NAME_IMM_USE_NODE): Define.
3902         (struct tree_ssa_name): Add imm_use node.
3903         (PHI_DF): Delete.
3904         (PHI_ARG_IMM_USE_NODE): Define.
3905         (struct phi_arg_d): Add imm_use node.
3906         (struct tree_phi_node): Remove struct dataflow_d element.
3907         (TDF_STMTADDR): Define.
3908
3909 2005-04-05  Dale Johannesen  <dalej@apple.com>
3910
3911         * doc/invoke.texi (Optimization Options):  Remove
3912         duplicate -fcse-follow-jumps.  Add -fweb.
3913         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
3914         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
3915
3916 2005-04-05  Per Bothner  <per@bothner.com>
3917
3918         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
3919         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
3920         (warn_uninit): Get EXPR_LOCUS from context now instead.
3921         This fixes a USE_MAPPED_LOCATION testsuite failure.
3922
3923         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
3924
3925 2005-04-05  Per Bothner  <per@bothner.com>
3926
3927         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
3928         of the artification 'return 0' in main() to BUILTINS_LOCATION.
3929         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
3930         before warning.
3931
3932 2004-04-05  Devang Patel  <dpatel@apple.com>
3933
3934         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
3935         (lhsr<mode>3): ... new name.
3936         (altivec_vsra<VI_char>): Rename to ..
3937         (ashr<mode>3): ... new name.
3938         * config/rs6000/rs6000.c (builtin_description): Rename shift
3939         operations.
3940
3941 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
3942
3943         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
3944         gen_lowpart_for_combine.
3945         * cse.c (gen_lowpart_if_possible): Move...
3946         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
3947         gen_lowpart_SUBREG.
3948         (gen_lowpart_no_emit_general): Use it.
3949
3950 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
3951
3952         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
3953         overriding.
3954
3955 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3956
3957         * system.h: Fix typo.
3958
3959 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3960
3961         * config/bfin/bfin-modes.def: New file.
3962         * config/bfin/bfin-protos.h: New file.
3963         * config/bfin/bfin.c: New file.
3964         * config/bfin/bfin.h: New file.
3965         * config/bfin/bfin.md: New file.
3966         * config/bfin/bfin.opt: New file.
3967         * config/bfin/crti.s: New file.
3968         * config/bfin/crtn.s: New file.
3969         * config/bfin/elf.h: New file.
3970         * config/bfin/lib1funcs.asm: New file.
3971         * config/bfin/predicates.md: New file.
3972         * config/bfin/t-bfin: New file.
3973         * config/bfin/t-bfin-elf: New file.
3974         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
3975         Document new attributes.
3976         (interrupt, interrupt_handler, saveall): Update documentation for
3977         these attributes.
3978         * doc/install.texi (Specific): Add entry for the Blackfin.
3979         * doc/invoke.texi (Blackfin Options): New section.
3980         * doc/md.texi (Blackfin family): New section to document constraints.
3981         * config.gcc: Add bfin*-* and bfin*-elf configurations.
3982
3983 2005-04-05  Olivier Hainque  <hainque@adacore.com>
3984
3985         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
3986         match what the system unwinder expects.
3987         * config/mips/mips.c (mips_frame_set): If we're saving the return
3988         address register and the dwarf return address column number differs
3989         from the hard register number, adjust the note reg to refer to the
3990         former.
3991
3992 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
3993
3994         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
3995         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
3996         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
3997         (processor_type): New enum.
3998         (mn10300_processor): New variable.
3999         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
4000         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
4001         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
4002         (PROCESSOR_DEFAULT): New macro.
4003         * config/mn10300/mn10300.c (mn10300_processor): New variable.
4004         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4005         (mn10300_handle_option, mn10300_override_options): New functions.
4006         * config/mn10300/mn10300.opt: New file.
4007
4008 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
4009             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
4010
4011         PR tree-optimization/19903
4012         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
4013         that don't fit in their type after conversion.
4014
4015 2005-04-05  Uros Bizjak <uros@kss-loka.si>
4016
4017         PR target/20421
4018         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
4019         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
4020         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
4021         flag here. Implement using define_insn_and_split.
4022         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
4023         (frndintxf2_mask_pm_i387): New insn patterns.
4024         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
4025         Do not set ix86_optimize_mode_switching flag.
4026         (ceilsf2, ceildf2, ceilxf2): Same.
4027         (btruncsf2, btruncdf2, btruncxf2): Same.
4028         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
4029
4030 2005-04-05  Ian Lance Taylor  <ian@airs.com>
4031
4032         PR debug/9963
4033         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
4034         i386_pe_record_external_function.
4035         (i386_pe_record_external_function): Update declaration.
4036         * config/i386/winnt.c (struct extern_list): Add decl field.
4037         (i386_pe_record_external_function): Add decl parameter.
4038         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
4039         identifier.
4040         * config/i386/i386-protos.h (i386_pe_record_external_function):
4041         Update declaration.
4042
4043 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
4044
4045         * config/m68k/m68k-protos.h: Add a prototype for
4046         valid_dbcc_comparison_p_2.
4047         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
4048         extend_operator, const_uint32_operand, const_sint32_operand,
4049         general_src_operand, nonimmediate_src_operand,
4050         memory_src_operand, post_inc_operand, pre_dec_operand,
4051         pcrel_address): Move to predicates to predicates.md.
4052         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
4053         * config/m68k/m68k.md: Include predicates.md.
4054         * config/m68k/predicates.md: New.
4055
4056 2005-04-04  Roger Sayle  <roger@eyesopen.com>
4057
4058         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
4059
4060         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
4061
4062 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4063
4064         * c-typeck.c (struct c_switch): Rename switch_stmt field to
4065         switch_expr.
4066         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
4067         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
4068         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
4069         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
4070         * c-common.c (c_do_switch_warnings_1): New static function broken
4071         out of c_do_switch_warnings.
4072         (c_do_switch_warnings): Call c_do_switch_warnings_1.
4073         (c_do_switch_expr_warnings): New function.
4074         * c-common.h (c_do_switch_expr_warnings): Declare.
4075
4076 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
4077             Daniel Jacobowitz  <dan@codesourcery.com>
4078
4079         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
4080         trapping divide.
4081         * rtlanal.c (may_trap_p): Same.
4082
4083 2005-04-04  Dale Johannesen  <dalej@apple.com>
4084
4085         * ChangeLog:  remove reference to ChangeLog.12.
4086
4087 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
4088
4089         CRIS epilogue as RTL.
4090         * config/cris/cris.md: Change all 0 in unspec 0 to
4091         CRIS_UNSPEC_PLT.
4092         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
4093         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
4094         patterns.
4095         ("return"): Change to define_expand.  Call cris_expand_return for
4096         actual expansion.
4097         ("*return_expanded"): New pattern.
4098         ("epilogue"): New define_expand.
4099         * config/cris/cris.h (PREDICATE_CODES): Add
4100         cris_load_multiple_op.
4101         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
4102         type.
4103         (enum cris_retinsn_type): New.
4104         (struct machine_function): New member return_type.
4105         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
4106         (cris_target_asm_function_epilogue): Remove, moving RTLified
4107         contents to...
4108         (cris_expand_epilogue): New function.
4109         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
4110         (cris_gen_movem_load, cris_load_multiple_op)
4111         (cris_return_address_on_stack_for_return, cris_expand_return): New
4112         functions.
4113         (cris_target_asm_function_prologue)
4114         (cris_initial_frame_pointer_offset): Call
4115         cris_reg_saved_in_regsave_area instead of complicated expression.
4116         Call cris_return_address_on_stack instead of an expression.
4117         (cris_print_operand) <case 'o', case 'O'>: New cases.
4118         (cris_return_address_on_stack): Change return-type to bool.
4119         (cris_simple_epilogue): Ditto.  Return false if registers are
4120         saved.
4121         * config/cris/cris-protos.h (cris_simple_epilogue)
4122         (cris_return_address_on_stack): Adjust prototype return type.
4123         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
4124         (cris_return_address_on_stack_for_return): New prototypes.
4125
4126 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4127
4128         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
4129         gpr_or_int12_operand.
4130
4131         * config/frv/frv-protos.h: Add a prototype to
4132         frv_legitimate_memory_operand and frv_const_unspec_p.
4133         (frv_unspec): Move from frv.c.
4134         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
4135         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
4136         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
4137         gpr_or_fpr_operand, gpr_or_int12_operand,
4138         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
4139         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
4140         int6_operand, int5_operand, uint5_operand, uint4_operand,
4141         uint1_operand, int_2word_operand, uint16_operand,
4142         upper_int16_operand, integer_register_operand,
4143         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
4144         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
4145         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
4146         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
4147         move_destination_operand, movcc_fp_destination_operand,
4148         frv_function_symbol_referenced_p, move_source_operand,
4149         condexec_dest_operand, condexec_source_operand,
4150         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
4151         const_unspec_operand, gpr_or_memory_operand,
4152         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
4153         icc_operand, fcc_operand, cc_operand, icr_operand,
4154         fcr_operand, cr_operand, call_operand, sibcall_operand,
4155         symbolic_operand, relational_operator,
4156         integer_relational_operator, float_relational_operator,
4157         ccr_eqne_operator, minmax_operator,
4158         condexec_si_binary_operator, condexec_si_media_operator,
4159         condexec_si_divide_operator, condexec_si_unary_operator,
4160         condexec_sf_conv_operator, condexec_sf_add_operator,
4161         condexec_memory_operand, intop_compare_operator, acc_operand,
4162         even_acc_operand, quad_acc_operand, accg_operand: Move to
4163         predicates.md.
4164         * config/frv/frv.h (PREDICATE_CODES): Remove.
4165         * config/frv/frv.md: Include predicates.md.
4166         * config/frv/predicates.md: New.
4167
4168 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4169
4170         PR target/19537
4171         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
4172         * tree-ssa-loop-ivopts.c: Include langhooks.h.
4173         (add_standard_iv_candidates_for_size): New function, extracting code
4174         from add_standard_iv_candidates and parameterizing it by type size.
4175         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
4176
4177 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4178
4179         * system.h (GCOV_SIZE_TYPE): Unposion.
4180         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
4181         (GCOV_TYPE_SIZE): ...this new macro.
4182         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
4183         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
4184         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
4185         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
4186         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
4187         instead of unsigned_intSI_type_node.
4188         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
4189         (rtl_gen_one_value_profiler_no_edge_manipulation)
4190         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
4191         * value-prof.c: Include coverage.h.
4192
4193 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
4194             Diego Novillo <dnovillo@redhat.com>
4195
4196         Fix PR tree-optimization/20703
4197         Fix PR tree-optimization/20725
4198
4199         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
4200         (create_expression_by_pieces): Ditto.
4201         (valid_in_set): Ditto. Also handle tcc_declaration.
4202         (find_or_generate_expression): Handle comparison class.
4203         (insert_into_preds_of_block): Ditto.
4204         (insert_aux): Ditto.
4205         (create_value_expr_from): Handle comparison class, recursively
4206         handle reference nodes.
4207         (compute_avail): Handle comparison classes, rewrite a little cleaner.
4208         (execute_pre): Fix spacing.
4209         (do_fre): Renamed to execute_fre.
4210
4211 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4212
4213         * doc/invoke.texi (SPARC options): Document that
4214         -mlittle-endian is not supported on Linux either.
4215
4216 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4217
4218         PR target/4198
4219         PR target/12027
4220         * config.gcc (Obsolete configurations): Remove
4221         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
4222         (sparclite-*-coff*): Delete.
4223         (sparclite-*-elf*): Likewise.
4224         (sparc86x-*-elf*): Likewise.
4225         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
4226         * config/sparc/lite.h: Delete.
4227         * config/sparc/litecoff.h: Likewise.
4228         * config/sparc/liteelf.h: Likewise.
4229         * config/sparc/sp86x-elf.h: Likewise.
4230         * config/sparc/t-sparclite: Likewise.
4231         * config/sparc/t-sp86x: Likewise.
4232
4233 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
4234
4235         * config/s390/s390-protos.h: (s390_comparison,
4236         s390_alc_comparison, s390_slb_comparison, const0_operand,
4237         consttable_operand, larl_operand, s_operand,
4238         shift_count_operand, bras_sym_operand, load_multiple_operation,
4239         store_multiple_operation, s390_plus_operand): Remove prototypes.
4240         (s390_legitimate_address_without_index_p): New prototype.
4241         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
4242         to s390.h.
4243         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
4244         const0_operand, consttable_operand, larl_operand, s_operand,
4245         shift_count_operand, bras_sym_operand, load_multiple_operation,
4246         store_multiple_operation, s390_plus_operand): Move to
4247         predicates.md.
4248         (check_mode): Remove.
4249         (s390_branch_condition_mask): Remove 'static'. Move prototype to
4250         s390-protos.h.
4251         (s390_legitimate_address_without_index_p): New.
4252         * config/s390/s390.h (PREDICATE_CODES): Remove.
4253         * config/s390/s390.md: Include predicates.md.
4254         * config/s390/predicates.md: New.
4255
4256 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4257
4258         PR target/20446
4259         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
4260         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
4261         (NEED_INDICATE_EXEC_STACK): Define to 1.
4262         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
4263         (NEED_INDICATE_EXEC_STACK): Define to 1.
4264         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
4265         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
4266         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
4267         (pic_helper_emitted_p): New global.
4268         (emit_pic_helper): New function extracted from...
4269         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
4270         Do not call emit_pic_helper if delay_pic_helper is true.
4271         (sparc_expand_prologue): Pass 'false' to load_pic_register.
4272         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
4273         (sparc_file_end): New function.
4274
4275 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4276
4277         * config/mcore/mcore-protos.h: Remove the prototypes for
4278         mcore_arith_reg_operand, mcore_general_movsrc_operand,
4279         mcore_general_movdst_operand, mcore_reload_operand,
4280         mcore_arith_J_operand, mcore_arith_K_operand,
4281         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
4282         mcore_arith_K_S_operand, mcore_arith_imm_operand,
4283         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4284         mcore_literal_K_operand, mcore_addsub_operand,
4285         mcore_compare_operand, mcore_load_multiple_operation,
4286         mcore_store_multiple_operation, mcore_call_address_operand.
4287         Add a prototype for const_ok_for_mcore.
4288         * config/mcore/mcore.c (mcore_call_address_operand,
4289         mcore_general_movsrc_operand, mcore_general_movdst_operand,
4290         mcore_arith_reg_operand, mcore_reload_operand,
4291         mcore_arith_J_operand, mcore_arith_K_operand,
4292         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
4293         mcore_arith_M_operand, mcore_arith_imm_operand,
4294         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4295         mcore_literal_K_operand, mcore_addsub_operand,
4296         mcore_compare_operand, mcore_load_multiple_operation,
4297         mcore_store_multiple_operation): Move to predicates.md.
4298         (const_ok_for_mcore): Export.
4299         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
4300         * config/mcore/mcore.md: Include predicates.md.
4301         * config/mcore/predicates.md: New.
4302
4303         * config/mcore/predicates.md: Fix a comment typo.
4304
4305 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4306             Adrian Straetling  <straetling@de.ibm.com>
4307
4308         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
4309         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
4310         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
4311         attribute.
4312         ("imul"): Removed from "type" attribute.
4313         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
4314         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
4315         Changed type to imulsi.
4316         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
4317
4318 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4319
4320         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
4321         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
4322         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
4323         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
4324         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
4325         (TARGET_SWITCHES, mcore_stack_increment_string)
4326         (TARGET_OPTIONS): Delete.
4327         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
4328         than *_BIT constants.
4329         (TARGET_8ALIGN): #undef old definition before redefining to 1.
4330         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
4331         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
4332         (mcore_override_options): Delete mcore_stack_increment code.
4333         Change use of M340_BIT to MASK_M340.
4334         * config/mcore/mcore.opt: New file.
4335
4336 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4337
4338         * config/arm/arm.c (replace_symbols_in_block): Remove static
4339         function.
4340
4341 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4342
4343         * config/fr30/fr30-protos.h: Remove the prototypes for
4344         stack_add_operand, add_immediate_operand,
4345         high_register_operand, low_register_operand, call_operand,
4346         di_operand, and nonimmediate_di_operand.
4347         * config/fr30/fr30.c (stack_add_operand,
4348         add_immediate_operand, high_register_operand,
4349         low_register_operand, call_operand, di_operand,
4350         nonimmediate_di_operand): Move to predicates.md.
4351         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
4352         * config/fr30/fr30.md: Include predicates.md.
4353         * config/fr30/predicates.md: New.
4354
4355         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
4356         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
4357         mcore_call_address_operand.
4358
4359         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
4360         general_movsrc_operand.
4361
4362 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
4363
4364         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
4365         after freeing.
4366
4367 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
4368
4369         PR target/14812
4370         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
4371         a negated value.
4372
4373 2005-04-04  Richard Henderson  <rth@redhat.com>
4374             Jakub Jelinek  <jakub@redhat.com>
4375
4376         PR rtl-optimization/16104
4377         * fold-const.c (fold_unary): Fix folding of vector conversions.
4378
4379 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4380
4381         * config.gcc (xstormy16-*-elf): Set extra_options.
4382         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
4383         * config/stormy16/stormy16.opt: New file.
4384
4385 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4386
4387         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
4388         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
4389         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
4390         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
4391         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
4392         (TARGET_UNIX_ASM): Delete.
4393         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
4394         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
4395         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
4396         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4397         * config/pdp11/pdp11.opt: New file.
4398
4399 2005-04-03  Roger Sayle  <roger@eyesopen.com>
4400             Alexandre Oliva  <aoliva@redhat.com>
4401
4402         PR c++/19199
4403         * fold-const.c (non_lvalue): Split tests into...
4404         (maybe_lvalue_p): New function.
4405         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
4406         C++ front-end prior to lowering into gimple form.
4407
4408 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4409
4410         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
4411         BUILT_IN_STRNCASECMP): New.
4412         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
4413         and strndup.
4414
4415 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
4416
4417         PR target/14812
4418         * arm.md (addsi3_compare0_for_combiner): Delete.
4419         (addsi3_compare0_scratch_for_combiner): Delete.
4420         (cmpsi_neg_shiftsi): Delete.
4421         (compare_negsi_si): New pattern.
4422         (cmpsi_negshiftsi_si): New pattern.
4423         (negated_cbranchsi4): Restrict to equality_operator.
4424
4425         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
4426         template.
4427
4428 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4429
4430         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
4431         Fix comment typos.
4432
4433         * doc/install.texi: Fix a typo.
4434
4435 2005-04-03  Steven Bosscher  <stevenb@suse.de>
4436
4437         PR middle-end/20648
4438         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
4439         a computed goto if the edge to the computed goto block has
4440         incoming abnormal edges.  Clarify how the function works.
4441
4442 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
4443
4444         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
4445         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
4446         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
4447         hash_scan_set, reg_set_between_after_reload_p,
4448         reg_used_between_after_reload_p, get_avail_load_store_reg,
4449         eliminate_partially_redundant_load): Likewise.
4450         * postreload.c (reload_cse_simplify_set,
4451         reload_combine_note_use): Likewise.
4452         * predict.c (predict_insn, expected_value_to_br_prob,
4453         propagate_freq, expensive_function_p): Likewise.
4454         * print-rtl.c (print_rtx): Likewise.
4455         * profile.c (instrument_edges, instrument_values,
4456         compute_branch_probabilities, branch_prob, union_groups,
4457         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
4458         * protoize.c (in_system_include_dir, file_could_be_converted,
4459         file_normally_convertible, gen_aux_info_file, seek_to_line,
4460         do_cleaning): Likewise.
4461         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
4462         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
4463         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4464
4465 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4466
4467         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
4468         * modulo-sched.c (undo_replace_buff_elem): New structure.
4469         (kernel_number_of_cycles, ps_unschedule_node,
4470         undo_generate_reg_moves,free_undo_replace_buff,
4471         undo_permute_partial_schedule,  loop_single_full_bb_p,
4472         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
4473         build_loops_structure, get_sched_window): New.
4474         (generate_reg_moves): Return undo_replace_buff_elem and other
4475         fixes.
4476         (generate_prolog_epilog): Remove old loop versioning.
4477         (sms_schedule): Use loop information and loop_version.
4478         (sms_schedule_by_order): Split part of it to get_sched_window.
4479         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
4480         cfg_layout_finalize and free_dominance_info before/after SMS.
4481
4482 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4483
4484         * cfghooks.c (lv_flush_pending_stmts,
4485         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
4486         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
4487         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
4488         lv_add_condition_to_bb,
4489         lv_adjust_loop_header_phi, extract_cond_bb_edges,
4490         flush_pending_stmts): New in cfg_hooks structure.
4491         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
4492         extract_cond_bb_edges, lv_adjust_loop_header_phi,
4493         lv_add_condition_to_bb): New declarations.
4494         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
4495         bool.
4496         (loop_version): Declare.
4497         * cfgloopmanip.c (cfghooks.h): Include.
4498         (duplicate_loop_to_header_edge): Change return type to bool.
4499         (loop_version, lv_adjust_loop_entry_edge): Move here.
4500         * cfgrtl.c (cfgloop.h): Include.
4501         (rtl_verify_flow_info_1): Fix.
4502         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
4503         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
4504         initialization.
4505         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
4506         tree_lv_add_condition_to_bb): New.
4507         (tree_cfg_hooks): Add new hooks to initialization.
4508         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
4509         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
4510
4511 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4512
4513         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
4514         xstormy16_below100_or_register,
4515         xstormy16_splittable_below100_or_register, and
4516         nonimmediate_nonstack_operand.
4517
4518         * config/stormy16/stormy16-protos.h: Remove the prototypes for
4519         xstormy16_ineqsi_operator, equality_operator,
4520         inequality_operator, shift_operator,
4521         xstormy16_below100_operand, xstormy16_below100_or_register,
4522         xstormy16_splittable_below100_or_register,
4523         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
4524         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
4525         equality_operator, inequality_operator,
4526         xstormy16_below100_operand, xstormy16_below100_or_register,
4527         xstormy16_splittable_below100_or_register,
4528         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
4529         nonimmediate_nonstack_operand, shift_operator): Move to
4530         predicates.md.
4531         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
4532         * config/stormy16/stormy16.md: Include predicates.md.
4533         * config/stormy16/predicates.md: New.
4534
4535 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4536
4537         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
4538         small_int, large_int, reg_or_0_operand, simple_memory_operand,
4539         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
4540         move_operand, power_of_2_operand): Move to predicates.md.
4541         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
4542         PREDICATE_CODE): Remove.
4543         * config/iq2000/iq2000.md: Include predicates.md.
4544         * config/iq2000/predicates.md: New.
4545
4546 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
4547
4548         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
4549         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
4550         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
4551         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
4552         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
4553         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
4554         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
4555         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4556         (TARGET_M68HC11): Delete.
4557         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
4558         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
4559         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
4560         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4561         (nb_soft_regs): Delete.
4562         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
4563         (m68hc11_override_options): Remove the code that caters for MASK_M6811
4564         and MASK_M6812 being set simultaneously.  Change the code that sets
4565         the default m68hc11_soft_reg_count to use integers instead of strings.
4566         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
4567         m68hc11_soft_reg_count (which now has an int type) as the number
4568         of soft registers.
4569         * config/m68hc11/m68hc11.opt: New file.
4570
4571 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4572
4573         * config/fr30/fr30.h (PREDICATE_CODES): Remove
4574         fp_displacement_operand, sp_displacement_operand.
4575
4576         * config/m68hc11/m68hc11-protos.h: Add a prototype for
4577         m68hcc_auto_inc_p.
4578         Remove the prototypes for tst_operand, cmp_operand,
4579         stack_register_operand, d_register_operand,
4580         hard_addr_reg_operand, splitable_operand,
4581         m68hc11_logical_operator, m68hc11_arith_operator,
4582         m68hc11_non_shift_operator, m68hc11_shift_operator,
4583         m68hc11_unary_operator, m68hc11_eq_compare_operator,
4584         non_push_operand, hard_reg_operand, and
4585         reg_or_some_mem_operand.
4586         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
4587         extern.
4588         (tst_operand, cmp_operand, non_push_operand,
4589         splitable_operand, reg_or_some_mem_operand,
4590         stack_register_operand, d_register_operand,
4591         hard_addr_reg_operand, hard_reg_operand,
4592         m68hc11_eq_compare_operator, m68hc11_logical_operator,
4593         m68hc11_arith_operator, m68hc11_non_shift_operator,
4594         m68hc11_shift_operator, m68hc11_unary_operator): Move to
4595         predicates.md.
4596         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
4597         * config/m68hc11/m68hc11.md: Include predicates.md.
4598         * config/m68hc11/predicates.md: New.
4599
4600 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4601
4602         PR debug/19345
4603         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
4604         change checked in along with 2005-03-03's patch for debug/20253.
4605         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
4606         (remap_decl): Insert type decl in map earlier.
4607
4608 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4609
4610         PR tree-optimization/20640
4611         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
4612         post-dominator if it has phi nodes.
4613         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
4614         before dead statements.
4615
4616 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4617
4618         PR middle-end/20491
4619         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
4620
4621 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4622
4623         PR rtl-optimization/20290
4624         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
4625         in every iteration if the entry point is the exit test.
4626
4627 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
4628
4629         * config/cris/cris.md (attribute "length"): Define.
4630
4631 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
4632
4633         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
4634         (word_offset_memref_operand): New.
4635         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
4636         (indexed_or_indirect_operand): Delete.
4637         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
4638         (indexed_or_indirect_operand): Delete.
4639
4640         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
4641
4642         PR 20650
4643         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
4644         a register.
4645
4646         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
4647         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
4648
4649 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4650
4651         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
4652
4653 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4654
4655         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
4656         (rus, prus): Remove static variables.
4657         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
4658         (process_command): Permit report_times and use_pipes together.
4659
4660 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4661
4662         * c-decl.c (validate_proto_after_old_defn): Look at
4663         TYPE_MAIN_VARIANT of argument types.
4664
4665 2005-04-01  Paul Brook  <paul@codesourcery.com>
4666
4667         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
4668         (arm_output_function_epilogue): Allow call_via_SP.
4669         (thumb_call_via_reg, arm_file_end): Ditto.
4670         * config/arm/arm.h (struct machine_function): Include space for SP.
4671         (thumb_call_via_label): Update declaration.
4672
4673 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4674
4675         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
4676         doing a peephole optimization, once again put any notes in the
4677         proper position.
4678
4679 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4680
4681         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
4682
4683 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4684
4685         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
4686         (block_alloc, find_free_reg): Likewise.
4687         * loop-doloop.c (doloop_modify): Likewise.
4688         * loop-invariant.c (record_use): Likewise.
4689         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
4690         get_iv_value, canon_condition, eliminate_implied_condition,
4691         eliminate_implied_condition, simplify_using_initial_values,
4692         shorten_into_mode, canonicalize_iv_subregs,
4693         iv_number_of_iterations): Likewise.
4694         * loop-unroll.c (expand_var_during_unrolling): Likewise.
4695         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
4696         unswitch_loop): Likewise.
4697         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
4698         move_movables, replace_call_address, find_and_verify_loops,
4699         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
4700         record_giv, final_giv_value, general_induction_var,
4701         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
4702         loop_giv_dump): Likewise.
4703
4704         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
4705         GCOV_CHECK_WRITING): Remove.
4706         (gcov_position, gcov_rewrite): Use gcc_assert.
4707         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
4708         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
4709         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
4710         gcc_assert.
4711
4712 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4713
4714         * tree-inline.c: Fix a typo.
4715
4716 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4717
4718         * configure.ac (enable-checking): Explicitly set all variables for
4719         collective switch values.  Alphabetize variables. Rename
4720         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
4721         synonym for 'no'.
4722         * doc/install.texi (enable-checking): Update documentation.
4723         * configure: Rebuilt.
4724
4725 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4726
4727         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
4728         possible.
4729
4730 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4731
4732         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
4733         Also reject cases where this pattern will cause load delay stalls
4734         unless optimizing for size and it will produce a shorter sequence.
4735         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
4736         variants to avoid pre-adjusting the base when possible.
4737
4738 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4739
4740         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
4741         the frame and argument pointers.
4742         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
4743         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
4744         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
4745         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
4746         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
4747         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
4748
4749 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
4750
4751         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
4752         with entry for selectany attribute.
4753         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
4754         Declare.
4755         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
4756         (i386_pe_asm_named_section): Handle sections generated by
4757         selectany attribute.
4758         * doc/extend.texi (selectany): Document attribute.
4759
4760 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
4761             Jan Hubicka  <jh@suse.cz>
4762
4763         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
4764         to fix addresses involving EBP and ESP.
4765         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
4766         for SUBREGed registers.
4767         (legitimate_address_p): Accept SUBREGed registers.
4768
4769 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
4770
4771         PR c++/19406
4772         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
4773         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
4774         for FIELD_DECLs.
4775
4776 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4777
4778         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
4779
4780 2005-04-01  James E Wilson  <wilson@specifixinc.com>
4781
4782         PR c++/20505
4783         * dwarf2out.c (rtl_for_decl_init): New function.
4784         (rtl_for_decl_location): Extracted from here.
4785         (tree_add_const_value_attribute): Call rtl_for_decl_init and
4786         add_const_value_attribute.  Delete initializer_constant_valid_p call.
4787
4788 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4789
4790         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
4791         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
4792         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
4793         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
4794         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
4795         config/i386/i386.md, config/rs6000/predicates.md,
4796         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
4797         config/s390/s390.c, config/stormy16/stormy16.c,
4798         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
4799         typos.
4800
4801 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4802
4803         PR c/17855
4804         * gimplify.c (gimplify_expr): Create a temporary for lvalue
4805         COND_EXPR and CALL_EXPR.
4806
4807 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4808
4809         PR target/20632
4810         * genautomata.c (first_cycle_unit_presence): Check all alternative
4811         states for unit presence.
4812
4813         * doc/md.texi: Remove remark about impossibility to query unit
4814         presence in non nondeterministic automaton state.
4815
4816         * config/ia64/ia64.c (get_template): Change order of unit querying.
4817
4818 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4819
4820         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
4821         obsolete comment.
4822
4823 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
4824
4825         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
4826         flag for edges outside any loops.
4827
4828 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
4829
4830         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
4831
4832 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4833
4834         * tree-ssa-alias.c: Follow spelling conventions.
4835         * doc/tree-ssa.texi: Fix a typo.
4836
4837 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
4838
4839         * postreload-gcse.c: Include target.h.
4840         (gcse_after_reload_main): Return early if we cannot modify jumps.
4841         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
4842
4843 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
4844
4845         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
4846         expensive operations.
4847
4848 2005-03-31  Ian Lance Taylor  <ian@airs.com>
4849
4850         * collect2.c (lderrout): New variable.
4851         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
4852         if it is set, to stderr.
4853         (handler): Unlink lderrout if it is set.
4854         (dump_file): Add "to" parameter.  Change all callers.
4855         (main): Initialize lderrout.
4856         (collect_execute): Add errname parameter.  Change all callers.
4857         Rename redir parameter to outname.  Never pass
4858         PEX_STDERR_TO_STDOUT to pex_run.
4859         * collect2.h (collect_execute, dump_file): Update declarations.
4860         * tlink.c (tlink_execute): Add errname parameter.  Change all
4861         callers.
4862         (do_tlink): Check lderrout as well as ldout.
4863
4864 2005-03-31  Caroline Tice  <ctice@apple.com>
4865
4866         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
4867         (bb-reorder.o): Add errors.h to list of requirements.
4868         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
4869         profiledbootstrap flags.
4870         * bb-reorder.c (errors.h): Add new include.
4871         (struct bbro_basic_block_data_def): Add new field, in_trace.
4872         (add_unlikely_executed_notes):  Remove function.
4873         (mark_bb_for_unlikely_executed_section): Remove function.
4874         (insert_section_boundary_note): New function.
4875         (verify_hot_cold_block_grouping): New function.
4876         (push_to_next_round_p): Remove variables and tests that push all
4877         cold blocks to last round.
4878         (find_traces): Remove code that added extra round of trace finding
4879         when doing partitioning.
4880         (find_traces_1_round) :  Remove variable last_round;  add code to
4881         update new struct field, in_trace; correct trace_length where it was
4882         incorrect before (after call to copy_bb); change code that pushed all
4883         cold blocks to last round. Instead verify that all blocks going into
4884         a trace belong in the same partition.
4885         (connect_traces): Modify to connect the traces in two passes, if the
4886         function contains both hot and cold blocks.  The first pass connects
4887         all the traces for blocks in the partition that the first block in
4888         the function belongs to; the second pass connnects all the traces
4889         containing blocks that belong in the other partition.
4890         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
4891         code that automatically put the first block in a function into the
4892         hot partition if the function had any hot blocks.
4893         (fix_crossing_unconditional_branches): Check number of succ edges
4894         before attempting to get one.
4895         (fix_edges_for_rarely_executed_code):  Update comment describing
4896         function.
4897         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
4898         remove call to add_unlikely_executed_notes; add call to
4899         verify_hot_cold_block_grouping.
4900         (duplicate_computed_gotos): Don't change computed goto if it's a
4901         crossing edge.
4902         (partition_hot_cold_basic_blocks):  Update function comment.
4903         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
4904         condition.
4905         (try_forward_edges): Likewise.
4906         (merge_blocks_move_predecessor_nojumps): Likewise.
4907         (merge_blocks_move_successor_nojumps): Likewise.
4908         (merge_blocks_move): Likewise.
4909         (try_crossjump_bb): Likewise.
4910         * cfglayout.c (update_unlikely_executed_notes): Remove function.
4911         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
4912         notes to cold bb's; remove call to update_unlikely_executed_notes.
4913         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4914         NOTE_INSN_SWITCH_TEXT_SECTIONS.
4915         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
4916         function declaration.
4917         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
4918         from consideration.
4919         (rtl_can_merge_blocks): Remove redundancy from condition.
4920         (try_redirect_by_replacing_jump): Likewise.
4921         (force_nonfallthru_and_redirect): Remove code for adding
4922         UNLIKELY_EXECUTED_CODE notes to cold bb's.
4923         (commit_one_edge_insertion): Likewise.
4924         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
4925         * dbxout.c (FORCE_TEXT): Replace function_section with
4926         current_function_section.
4927         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
4928         function, switch_text_section.
4929         (struct xcoff_debug): Likewise.
4930         (dbxout_function_end): Add code to put out label diffs for both
4931         hot and cold sections.
4932         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
4933         for new debug_hooks funciton, switch_text_section..
4934         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
4935         switch_text_section.
4936         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
4937         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
4938         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
4939         dw_fde_switched_sections.
4940         (output_call_frame_info):  Add test to see if function switches text
4941         sections in the middle; if so, use appropriate extra hot and cold
4942         section labels to compute size deltas for the hot and cold sections.
4943         (dwarf2out_begin_prologue): Add code to initialize new fields in
4944         dw_fde_struct.
4945         (dwarf2out_switch_text_section): New function (invoked through
4946         debug_hook); updates new fields in dw_fde_struct appropriately and
4947         increments separate_line_info_table_in_use.
4948         (dwarf2_debug_hooks): Initialize switch_text_section function to be
4949         dwarf2out_switch_text_section.
4950         (struct var_loc_node): Add new field, section_label.
4951         (output_aranges): Add code to check whether in hot or cold section and
4952         use the appropriate label in calculating deltas.
4953         (output_ranges): Likewise.
4954         (output_line_info): Add code to check which section we're in and
4955         use appropriate hot/cold label.
4956         (add_location_or_constant_value_attribute): Likewise.
4957         (gen_subprogam_die): Modify arange attributes to use correct labels.
4958         (dwarf2out_begin_block): Change call to function_section into call to
4959         current_function_section.
4960         (dwarf2out_end_block): Likewise.
4961         (dwarf2out_source_line): Likewise.
4962         (dwarf2out_var_location): Add code to check whether in hot or cold
4963         section and use the appropriate label.
4964         * except.c (output_function_exception_table): Change call to
4965         function_section into call to current_function_section.
4966         * final.c (profile_function): Likewise.
4967         (scan_ahead_for_unlikely_executed_note): Remove function.
4968         (final_scan_insn):  Remove calls to
4969         scan_ahead_for_unlikely_executed_note, and related code for switching
4970         to cold section, except for the single time
4971         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
4972         debug_hooks->switch_text_sections; replace appropriate calls to
4973         function_section with calls to current_function_section.
4974         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
4975         test_bb to condition.
4976         (find_if_case_2): Likewise.
4977         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4978         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
4979         * opts.c (decode_options): Change warning about hot/cold partitioning
4980         with exceptionss to inform (so as not to cause bootstrap failures);
4981         remove warning about partitioning with DWARF debug info.
4982         * output.h (current_function_section): Add new function decl.
4983         (insert_section_boundary_note): Likewise.
4984         (enum in_section): Move this declaration here from varasm.c.
4985         (unlikely_section_label): Likewise.
4986         (unlikely_text_section_name): Likewise.
4987         (last_text_section_name): New global variable.
4988         (last_text_section): Likewise.
4989         (hot_section_label): Likewise.
4990         (hot_section_end_label): Likewise.
4991         (cold_section_end_label): Likewise.
4992         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
4993         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
4994         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
4995         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
4996         insn from consideration.
4997         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
4998         switch_text_section.
4999         * varasm.c (basic-block.h): Add new include.
5000         (unlikely_section_label_printed): Remove global variable.
5001         (unlikely_section_label): Make global variable not be static any more.
5002         (unlikely_text_section_name): Likewise.
5003         (hot_section_end_label): New global variable (not static)
5004         (first_function_block_is_cold): Likewise.
5005         (hot_section_label): Likewise.
5006         (cold_section_end_label): Likewise..
5007         (last_text_section): New global variable, not static.
5008         (last_text_section_name): New global variable, not static.
5009         (initialize_cold_section_name): New function.
5010         (enum in_section): Move declaration to output.h.
5011         (text_section): Update last_text_section.
5012         (unlikely_text_section): Replace code to determine cold section name
5013         with call to initialize_cold_section_name; Add code to update
5014         last_text_section; remove code for printing out label.
5015         (named_section_real): Add code to update last_text_section and
5016         last_text_section_name as appropriate.
5017         (function_section): Change test for 'unlikely' to depend on
5018         first_function_block_is_cold (moved old test to
5019         current_function_section).
5020         (current_function_section): New function.
5021         (assemble_start_function): Move code that frees
5022         unlikely_text_section_name; initialize hot_section_end_label;
5023         print hot and cold section labels at the start of the function;
5024         set first_function_block_is_cold, if appropriate; initialize l
5025         ast_text_section; add call to insert_section_boundary_note.
5026         (assemble_end_function):  Add code to write out hot and cold section
5027         end labels.
5028         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
5029         switch_text_section.
5030         * config/darwin.c (machopic_select_section): Replace incorrect
5031         function in base_funs; update reloc for cold sections if necessary.
5032         * config/darwin.h (SECTION_FUNCTION):  Add code to update
5033         last_text_section if appropriate.
5034         (text_unlikely_section): Remove.
5035         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
5036         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
5037         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
5038         partitioning for this architecture.
5039
5040 2005-03-31  Olivier Hainque  <hainque@adacore.com>
5041
5042         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
5043         defined and non-zero.
5044
5045 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5046
5047         PR c++/18644
5048         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
5049         semantics.
5050
5051 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
5052
5053         PR target/20611
5054         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
5055         label operand.  Remove (use (unspec..)).  Don't emit a label on
5056         the offset word.
5057         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
5058         generate inline label for load_toc_v4_PIC_1b.
5059         (rs6000_emit_load_toc_table): Likewise.
5060
5061 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
5062
5063         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
5064         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
5065
5066 2005-03-29  Devang Patel  <dpatel@apple.com>
5067
5068         * tree-sra.c (decide_block_copy): Disable scalarization of
5069         sub-elements.
5070
5071 2005-03-30  Stuart Hastings  <stuart@apple.com>
5072             Dale Johannesen  <dalej@apple.com>
5073
5074         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
5075         * print-tree.c (print_node):  Add case STATEMENT_LIST.
5076
5077 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
5078
5079         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
5080         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
5081         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
5082         is given with "powerpc64*" or "all", or when --with-cpu chooses
5083         a 64-bit cpu.
5084
5085 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
5086
5087         PR debug/20268
5088         * dwarf2out.c (add_high_low_attributes): New function, extracted from
5089         gen_lexical_block_die.
5090         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
5091
5092 2005-03-31  Jan Hubicka  <jh@suse.cz>
5093
5094         2004-11-02  Jan Hubicka  <jh@suse.cz>
5095
5096         * cgraph.c (cgraph_varpool_node_name): New function.
5097         (dump_cgraph_varpool_node): New function.
5098         (dump_varpool): New function.
5099         * cgraphunit.c (cgraph_optimize): Dump varpool.
5100
5101         2004-10-16  Jan Hubicka  <jh@suse.cz>
5102
5103         * cgraph.c (decide_is_variable_needed): New function.
5104         (cgraph_varpool_finalize_decl): Use it.
5105         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
5106         unit-at-a-time.
5107         * final.c (output_addr_const): Do not call mark_referenced.
5108         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
5109         always go via cgraph.
5110         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
5111         (check_global_declarations): Ifdef out code clearing DECL_RTL.
5112         * tree-optimize.c (execute_inline): Mark functions called.
5113         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
5114
5115         2004-10-11  Jan Hubicka  <jh@suse.cz>
5116
5117         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
5118         (cgraph_varpool_last_needed_node): New static variable.
5119         (enqueue_needed_varpool_node): Break out from ...; add items to the
5120         end of queue; update first pointers.
5121         (cgraph_varpool_mark_needed_node): ... here.
5122         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
5123         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
5124         * cgraph.h (cgraph_varpool_node): Add analyzed field.
5125         (cgraph_varpool_first_unanalyzed_node): Declare.
5126         * cgraphunit.c: Include output.h.
5127         (cgraph_varpool_analyze_pending_decls): New function.
5128         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
5129         for errors, analyze pending decls.
5130         (cgraph_finalize_compilation_unit): Only analyze decls.
5131         (cgraph_optimize): Assemble the decls after expanding.
5132
5133 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
5134
5135         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
5136         subvars get marked properly in tags for grouping.
5137         (add_pointed_to_var): Mark only actual pointed to
5138         variables/subvars in addresses needed.
5139         (create_overlap_variables_for): Clear call clobbered on original
5140         variable.
5141         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
5142         addresable vars with subvars into list.
5143         * tree-ssa.c (verify_ssa_name): Verify original is not used where
5144         subvar should be.
5145
5146 2005-03-30  Richard Henderson  <rth@redhat.com>
5147
5148         * cgraph.h (struct cgraph_node): Add alias.
5149         * varasm.c (assemble_alias): Set it.
5150         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
5151         avoid calling cgraph_expand_function.
5152
5153 2005-03-30  Tom Tromey  <tromey@redhat.com>
5154
5155         * tree.def (FILE_TYPE): Removed.
5156         * typeclass.h (enum type_class): Removed file_type_class.
5157         * dwarf2out.c (is_base_type): Updated.
5158         (gen_type_die): Likewise.
5159         * dbxout.c (dbxout_type): Updated.
5160         * builtins.c (type_to_class): Updated.
5161         * tree.c (type_contains_placeholder_1): Updated.
5162         * config/sparc/sparc.c (sparc_type_code): Updated.
5163         * config/ia64/ia64.c (hfa_element_mode): Updated.
5164         * expr.c (count_type_elements): Updated.
5165         * stor-layout.c (layout_type): Updated.
5166         * tree-inline.c (remap_type): Updated.
5167         * tree-pretty-print.c (dump_generic_node): Updated.
5168
5169 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
5170
5171         * builtins.c (expand_builtin_powi): Fix mode of
5172         2nd argument to match int.
5173         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
5174         2nd argument type to int.
5175         * libgcc2.c: Change prototype of __powi* functions to use
5176         int.
5177
5178 2005-03-30  Dale Johannesen  <dalej@apple.com>
5179
5180         PR middle-end/19225
5181         * calls.c (expand_call):  Flush pending deferrals before
5182         throwing call.
5183
5184 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5185
5186         PR c/772
5187         PR c/17913
5188         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
5189         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
5190         c_label_context, label_context_stack): New.
5191         * c-decl.c (define_label): Check for jumps into statement
5192         expressions.  Add label to list of defined labels.
5193         (start_function): Push context on label_context_stack.
5194         (finish_function): Pop context from label_context_stack.
5195         * c-typeck.c (label_context_stack): New.
5196         (c_finish_goto_label): Check for jumps into statement
5197         expressions.  Add label to list of jumped to labels.
5198         (struct c_switch): Add blocked_stmt_expr.
5199         (c_start_case): Initialize it.
5200         (do_case): Check it.
5201         (c_finish_case): Verify !blocked_stmt_expr.
5202         (c_begin_stmt_expr):  Push context on label_context_stack.
5203         Increment blocked_stmt_expr.  Mark labels jumped to from outside
5204         as undefinable.
5205         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
5206         defined in the statement expression and no longer jumpable to.
5207         Mark labels jumped to from just outside the statement expression
5208         as again definable.  Pop context from label_context_stack.
5209         * doc/extend.texi (Statement Exprs): Update.
5210
5211 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5212
5213         PR c/20368
5214         * c-decl.c (start_function): Check for old_decl being
5215         error_mark_node.
5216
5217 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5218
5219         * final.c (final): Remove prescan parameter.  Change all callers.
5220         (final_scan_insn): Remove prescan parameter.  Change all callers.
5221
5222 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
5223
5224         * tree-vectorizer.c: Fix comment typos.
5225
5226 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
5227
5228         * tree-scalar-evolution.c (instantiate_parameters_1): Return
5229         as soon as a chrec_dont_know is detected.
5230
5231 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
5232
5233         Merge from csl-arm-branch.
5234         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
5235
5236         * tlink.c (recompile_files): Do not assume that "rename" can
5237         overwrite an existing file.
5238
5239 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
5240
5241         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
5242         * gcc/configure: Regenerate.
5243
5244 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5245
5246         * doc/install.texi: Update binutils requirement for powerpc*-linux.
5247
5248         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
5249
5250         * calls.c (struct arg_data): Update "partial" comment.
5251         (load_register_parameters): Update "nregs" comment.
5252
5253 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5254
5255         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
5256         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
5257         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
5258         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
5259         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
5260         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
5261         than target_flags & 0.
5262         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
5263         (iq2000_arch, iq2000_parse_cpu): Delete.
5264         (TARGET_HANDLE_OPTION): Override default.
5265         (iq2000_handle_option): New function.
5266         (override_options): Remove -march= and -mcpu= handling.
5267         * config/iq2000/iq2000.opt: New file.
5268
5269 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5270
5271         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
5272         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
5273         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
5274         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
5275         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
5276         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
5277         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
5278         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
5279         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
5280         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
5281         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
5282         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
5283         (c4x_rpts_cycles_string, c4x_cpu_version_string)
5284         (TARGET_OPTIONS): Delete.
5285         (c4x_rpts_cycles, c4x_cpu_version): Declare.
5286         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
5287         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
5288         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
5289         (c4x_cpu_version_string): Delete.
5290         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5291         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
5292         equivalent -mcpu= option.
5293         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
5294         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
5295         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
5296         or clearing the appropriate MASK_* bit.
5297         (c4x_file_start): Use c4x_cpu_version.
5298         * config/c4x/c4x.opt: New file.
5299
5300 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5301
5302         * doc/options.texi: Document the new MaskExists flag.
5303         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
5304         if the option has the MaskExists flag.
5305
5306 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5307
5308         * opt-functions.awk (flag_set_p, test_flag): New functions.
5309         (switch_flags): Use them.
5310         * opth-gen.awk: Use flag_set_p to check for flags.
5311         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
5312
5313 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5314
5315         * config.host (i[34567]86-*-mingw32*): Don't set
5316         host_can_use_collect2 to no.
5317
5318 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5319
5320         PR target/20203
5321         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
5322         Remove convert_memory_address call duplicating that in memory_address.
5323
5324 2005-03-29  Richard Henderson  <rth@redhat.com>
5325
5326         PR c/20519
5327         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
5328         (build_compound_literal): Likewise.  Propagate decl type into the
5329         initializer.
5330         (finish_decl): Likewise.  Use new return value from complete_array_type
5331         for zero sized arrays.
5332         (complete_array_type): Move ...
5333         * c-common.c (complete_array_type): ... here.  Change first argument
5334         to pointer-to-type-node.  Consistently use sizetype for the index
5335         except for zero sized arrays.  Detect zero sized arrays for pedantic
5336         mode diagnostics.  Create a new type node instead of modifying the
5337         old node in place.
5338         * c-tree.h (complete_array_type): Move decl ...
5339         * c-common.h (complete_array_type): ... here.
5340
5341 2005-03-29  Richard Henderson  <rth@redhat.com>
5342
5343         PR tree-opt/19108
5344         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
5345
5346 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
5347
5348         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
5349         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
5350         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
5351         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
5352
5353 2005-03-29  Eric Christopher  <echristo@redhat.com>
5354
5355         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
5356         truthvalue conversion removal.
5357
5358 2005-03-29  Ian Lance Taylor  <ian@airs.com>
5359
5360         PR bootstrap/14316
5361         * collect2.c: Never include <vfork.h>.
5362         (VFORK_STRING, vfork): Don't define.
5363         (pid): Remove global variable.
5364         (handler): Call raise instead of kill (getpid(), ...).
5365         (collect_wait): Add pex parameter.  Change all callers.  Use
5366         pex_get_status rather than pwait.
5367         (do_wait): Add pex parameter.  Change all callers.
5368         (collect_execute): Return struct pex_obj * rather than void.  Use
5369         pex routines rather than pexecute.
5370         (fork_execute): Get pex_obj from collect_execute, and pass it to
5371         do_wait.
5372         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
5373         Only declare quit_handler if SIGQUIT is defined.
5374         (scan_libraries): Likewise.
5375         * collect2.h (collect_execute): Update declaration.
5376         (collect_wait): Update declaration.
5377         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
5378         pass it to collect_wait.
5379
5380 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
5381
5382         PR c/20672
5383         * c-parser.c (c_parser_compound_statement_nostart): Give error
5384         message for EOF instead of just setting parser->error.
5385
5386 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
5387
5388         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
5389         (slpeel_update_phi_nodes_for_guard1): New function.
5390         (slpeel_update_phi_nodes_for_guard2): New function.
5391         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
5392         of slpeel_update_phi_nodes_for_guard.
5393         (vectorize_loops): Remove call to loop_closed_rewrite.
5394         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
5395         assertion.
5396
5397 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
5398
5399         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
5400         (TARGET_LITTLE_ENDIAN): New macro.
5401         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
5402         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
5403         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
5404         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
5405         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
5406         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
5407         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
5408         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
5409         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
5410         (TARGET_OPTIONS): Delete.
5411         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
5412         (CACHE_FLUSH_TRAP): Turn into an integer.
5413         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
5414         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
5415         -mflush-trap is in use.
5416         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
5417         (m32r_cache_flush_trap_string): Delete.
5418         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
5419         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
5420         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
5421         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5422         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
5423         -mmodel= and -msdata= handling from...
5424         (m32r_init): ...here.
5425         * config/m32r/m32r.opt: New file.
5426
5427 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
5428
5429         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
5430         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
5431         * tree-vect-analyze.c (vect_object_analysis): additional parm
5432         pass back a "struct ptr_info_def *" with the points-to info.
5433         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
5434         statement using info returned from vect_object_analysis.
5435         * tree-vect-transform.c (update_vuses_to_preheader): New function.
5436         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
5437         for virtual uses and defs when creating a replacement vector
5438         reference.  Call duplicate_ssa_name_ptr_info to define points-to
5439         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
5440         (vectorizable_store): copy_virtual_operands and update
5441         definition statements.
5442         (vectorizable_load): copy_virtual_operands.  Remove call to
5443         mark_call_clobbered_vars_to_rename for call to "const" builtin.
5444         * tree-vectorizer.c (vectorize_loops): Remove calls to
5445         rewrite_into_ssa and bitmap_clear (vars_to_rename).
5446         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
5447         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
5448         define macro STMT_VINFO_PTR_INFO for use in accessing.
5449         * tree.h add export of duplicate_ssa_name_ptr_info.
5450         * rs6000.c (altivec_init_builtins): Declare builtin function
5451         __builtin_altivec_mask_for_load to be "const".
5452
5453 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
5454
5455         PR middle-end/20622
5456         * cgraph.h (struct cgraph_varpool_node): Add alias field.
5457         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
5458         assemble_variable on aliases.
5459         * varasm.c (assemble_alias): Set node->alias.
5460         * toplev.c (wrapup_global_declarations): Don't call
5461         rest_of_decl_compilation on aliases again.
5462
5463 2005-03-29  Paul Brook  <paul@codesourcery.com>
5464
5465         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
5466         * config/arm/arm.c (arm_dbx_register_number): New function.
5467         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
5468
5469 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5470
5471         PR middle-end/20263
5472         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
5473         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
5474
5475 2005-03-29  Dale Johannesen <dalej@apple.com>
5476
5477         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
5478         $(TREE_H) and $(COVERAGE_H).
5479         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
5480         * opts.c (common_handle_option): Enable tree-based value transforms.
5481         * toplev.c (process_options): Ditto.
5482         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
5483         refers to references to this type.
5484         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
5485         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
5486         for may_be_more, may_be_less.
5487         (rtl_gen_pow2_profiler): Adjust.
5488         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
5489         (rtl_gen_one_value_profiler): Adjust.
5490         (rtl_gen_const_delta_profiler): Adjust.
5491         * tree-profile.c (tree_gen_interval_profiler): Implement.
5492         (tree_gen_pow2_profiler): Ditto.
5493         (tree_gen_one_value_profiler): Ditto.
5494         (tree_profiling): New.
5495         (pass_tree_profile): Reference it.
5496         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
5497         tree.h, gcov-io.h.
5498         (insn_divmod_values_to_profile): Rename to
5499         rtl_divmod_values_to_profile. Adjust.
5500         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
5501         (insn_prefetch_values_to_profile): Adjust.
5502         (rtl_value_profile_transformations): Adjust.
5503         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
5504         (gen_mod_pow2): Rename to rtl_mod_pow2.
5505         (gen_mod_subtract): Rename to rtl_mod_subtract.
5506         (divmod_fixed_value_transform): Rename to
5507         rtl_divmod_fixed_value_transform.
5508         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
5509         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
5510         (rtl_find_values_to_profile): Adjust.
5511         (tree_value_profile_transformations): Implement.
5512         (tree_divmod_values_to_profile): New.
5513         (tree_values_to_profile): New.
5514         (tree_divmod_fixed_value): New.
5515         (tree_mod_pow2): New.
5516         (tree_mod_subtract): New.
5517         (tree_divmod_fixed_value_transform): New.
5518         (tree_mod_pow2_value_transform): New.
5519         (tree_mod_subtract_transform): New.
5520         (tree_find_values_to_profile): Implement.
5521         * profile.c (instrument_values):  Free histograms.
5522         (compute_value_histograms): Adjust. Implement tree version.
5523
5524 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
5525
5526         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
5527         * config/i386/i386.c (output_fix_trunc): Add new round_mode
5528         variable.  Output "fldcw" depending on round_mode.
5529         * config/i386/i386.md (UNSPEC_FIST): New.
5530         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
5531         New isns patterns to implement lrint and llrint built-ins as x87
5532         intrinsic function.
5533         (fistdi2, fist<mode>2 splitters): New splitters.
5534         (lrint<mode>2): New expanders.
5535
5536 2005-03-28  Ian Lance Taylor  <ian@airs.com>
5537
5538         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
5539         0 when calling final_scan_insn.
5540
5541 2005-03-28  Jan Hubicka  <jh@suse.cz>
5542
5543         PR middle-end/20635
5544         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
5545         as needed.
5546
5547         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
5548         types where possible.
5549
5550 2005-03-26  Per Bothner  <per@bothner.com>
5551
5552         Make -f[no-]show-column also control non-cpp diagnostics.
5553         * c.opt (fshow-column): Move option from here ...
5554         * common.opt (fshow-column): ... to here.
5555         * diagnostic.c (diagnostic_build_prefix): Only print column number
5556         if flag_show_column.
5557
5558 2005-03-27  Steven Bosscher  <stevenb@suse.de>
5559
5560         * vax-protos.h (vax_output_int_move, vax_output_int_add,
5561         vax_output_conditional_branch): New prototypes.
5562         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
5563         extracted from vax.md mov and add patterns.
5564         (vax_output_conditional_branch): New function to output conditional
5565         branch instructions.
5566         * vax.md: Use mode macros for arithmetic and mov patterns.
5567         Use code macros for the jump patterns.
5568
5569 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5570
5571         * Makefile.in (libbackend.o): Depend on version files;
5572         add custom generation command.
5573
5574 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5575
5576         PR target/20636
5577         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
5578         sure that we have a REG before getting its REGNO.
5579
5580 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5581
5582         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
5583         * builtins.def (BUILT_IN_STRNDUP): New.
5584
5585 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
5586
5587         PR tree-optimization/20470
5588         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
5589         ABS(x-y).
5590
5591 2005-03-25  Mike Stump  <mrs@apple.com>
5592
5593         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
5594         sized objects.
5595
5596 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
5597
5598         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
5599         Use our own structure definitions.
5600
5601         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
5602         (fix_truncdfsi2): Allow registers or memory as destination.
5603         When TARGET_PPC_GFXOPT, generate simplified pattern.
5604         (fix_truncdfsi2_internal): Use define_insn_and_split.
5605         (fix_truncdfsi2_internal_gfxopt): New.
5606         (fctiwz): Don't confuse register allocation by giving it no choices.
5607         (stfiwx): New.
5608         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
5609         (EXTRA_MEMORY_CONSTRAINT): Likewise.
5610         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
5611         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
5612
5613 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5614
5615         * dominance.c (free_dominance_info): Speed up by freeing et
5616         data structures without maintaining other nodes.
5617         * et-forest.c (et_free_tree_force): New.
5618         * et-forest.h: Add a prototype for et_free_tree_force.
5619
5620         * tree.c (get_set_constructor_bits,
5621         get_set_constructor_bytes): Remove.
5622         * tree.h: Remove the corresponding prototypes.
5623
5624 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
5625
5626         PR target/15491
5627         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
5628         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
5629         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
5630         PRE_DEC, NEG and NOT.
5631
5632 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5633
5634         * fold-const.c: Convert uses of fold (build (...)) to
5635         fold_buildN.
5636
5637 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
5638
5639         PR rtl-optimization/20249
5640         * cse.c (insert_regs): Do not record equivalence of registers in
5641         different modes.
5642
5643 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
5644
5645         * emit-rtl.c (reverse_comparison): Remove.
5646         * rtl.h: Remove the corresponding prototype.
5647
5648 2005-03-24  James E Wilson  <wilson@specifixinc.com>
5649
5650         * doc/install.texi (--enable-altivec): Delete docs.
5651
5652 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
5653
5654         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
5655         SFmode and DFmode before reload when
5656         flag_unsafe_math_optimizations not enabled.
5657
5658 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
5659
5660         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
5661
5662         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
5663         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
5664
5665 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
5666
5667         * configure.ac (enable-checking): Add 'runtime' option.
5668         * doc/install.texi (enable-checking): Document 'runtime' checking.
5669         * tsystem.h (gcc_assert, gcc_unreachable): Define.
5670         * config.in: Regenerated.
5671         * configure: Regenerated.
5672
5673 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
5674
5675         * optabs.h (enum optab_index): Remove OTI_llrint.
5676         (llrint_optab): Remove macro.
5677         * optabs.c (init_optabs): Remove llrint_optab initialization.
5678         * genopinit.c (optabs): Remove llrint_optab implementation.
5679         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
5680         using lrint_optab.
5681
5682 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
5683
5684         PR rtl-optimization/20532
5685         * simplify-rtx.c (simplify_binary_operation_1): Protect from
5686         overflow when adding coefficients for PLUS or MINUS.
5687         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
5688         two as multiplier.
5689
5690 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5691
5692         * langhooks.h (truthvalue_conversion): Remove.
5693         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5694         LANG_HOOKS_TRUTHVALUE_CONVERSION.
5695         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
5696         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
5697         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5698
5699 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
5700
5701         * params.def: Fix a typo.
5702         * config/mips/mips.c: Follow the spelling convensions.
5703         * doc/invoke.texi: Fix typos.
5704
5705 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
5706
5707         Fix PR tree-optimization/20601
5708
5709         * tree-ssa-pre.c (insert_aux): Add missing condition to
5710         constification.
5711
5712 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5713
5714         * final.c (final_scan_insn): Don't remove no-op instructions.
5715         * reload1.c (reload): Remove simple no-op instructions even when
5716         not optimizing.
5717
5718 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
5719
5720         PR tree-optimization/20501
5721         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
5722         reporting that peeling for alignment is applied moved to...
5723         * (vect_analyze_data_refs_alignment): Here.
5724
5725 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5726
5727         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
5728
5729 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5730
5731         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
5732         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
5733
5734 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
5735
5736         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
5737         imply that this is called once, independent of asms in code.
5738         Adjust to now being pased output and input lists.  Mention helper
5739         function decl_overlaps_hard_reg_set_p.
5740         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
5741         hook_tree_tree_identity and to take three trees, returning third.
5742         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
5743         prototype.
5744         * stmt.c: include hard-reg-set.h before tree.h.
5745         (decl_overlaps_hard_reg_set_p): New function, broken out from...
5746         (decl_conflicts_with_clobbers_p): Call
5747         decl_overlaps_hard_reg_set_p.
5748         (expand_asm_operands): Pass output and input lists in call to
5749         targetm.md_asm_clobbers.
5750         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
5751         hook_tree_tree_tree_tree_3rd_identity.
5752         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
5753         parameters.
5754         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
5755         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
5756         parameters, first two unused.
5757         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
5758         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
5759         in constraint letters and MOF is not mentioned as a asm-declared
5760         register in neither of the input and output lists.
5761
5762 2005-03-23  DJ Delorie  <dj@redhat.com>
5763
5764         * optabs.c (expand_binop): Make sure the first subword's result
5765         gets stored.
5766
5767 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5768
5769         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
5770         Call c_common_truthvalue_conversion rather than
5771         lang_hooks.truthvalue_conversion.
5772         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
5773         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
5774         c-typeck.c.
5775         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
5776         c_common_truthvalue_conversion.
5777         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
5778         c_parser_conditional_expression, c_parser_binary_expression): Call
5779         c_objc_common_truthvalue_conversion.
5780         * c-typeck.c (build_unary_op): Call
5781         c_objc_common_truthvalue_conversion.
5782         (build_conditional_expr): Do not call
5783         lang_hooks.truthvalue_conversion.
5784         (build_binary_op): Call c_common_truthvalue_conversion.
5785         (c_objc_common_truthvalue_conversion): Moved from
5786         c-objc-common.c.  Call default_function_array_conversion instead
5787         of default_conversion.
5788
5789 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5790
5791         * c-common.h (default_conversion): Remove.
5792         (perform_integral_promotions): Add.
5793         * c-tree.h (default_conversion): Add.
5794         * c-typeck.c (perform_integral_promotions): New, split out from
5795         default_conversion.
5796         * c-common.c (check_case_value): Use perform_integral_promotions,
5797         not default_conversion.
5798         (c_add_case_label): Don't continue processing case label after
5799         found to be pointer.
5800
5801 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
5802
5803         * gcc.c (do_spec_1): Do not add a -L path for a directory in
5804         the prefix list if we have already added a multilib directory
5805         based on that path.
5806         (main): Do not add MD_EXEC_PREFIX to the list of directories to
5807         search with -L.
5808
5809 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5810
5811         * reload1.c (indirect_symref_ok, reload_obstack): Make them
5812         static.
5813         * reload.h: Remove the prototype for indirect_symref_ok.
5814
5815         * reload1.c (indirect_symref_ok): Make it global.
5816         * reload.h: Add a prototype for indirect_symref_ok.
5817
5818 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5819
5820         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
5821         ashlhi3 expander.
5822
5823 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
5824
5825         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
5826
5827 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
5828
5829         * c-opts.c (c_common_parse_file): Only start/end main source file
5830         if debug hooks says the writer wants it.
5831         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
5832         member.
5833         (xcoff_debug_hooks): Ditto.
5834         * debug.c (do_nothing_hooks): Ditto.
5835         * debug.h (gcc_debug_hooks): Ditto.
5836         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
5837         * sdbout.c (sdb_debug_hooks): Ditto.
5838         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
5839
5840 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
5841
5842         * doc/extend.texi: Deprecate C++ min/max operators.
5843
5844 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
5845
5846         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
5847         artificial original candidates.
5848
5849 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
5850             Jan Hubicka  <jh@suse.cz>
5851             Steven Bosscher <stevenb@suse.de>
5852
5853         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
5854         call cost based on argument sizes.
5855         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
5856         inlining.
5857         * params.def: (max-inline-inssn-single): Set to 450.
5858         (max-inline-insns-auto): Set to 90.
5859         (max-inline-insns-recursive): Set to 450
5860         (max-inline-insns-recursive-auto): Set to 450.
5861         (large-function-insns): Set to 2700.
5862         (inline-call-cost): New parameter.
5863         * tree-inline.c (estimate_move_cost): New function.
5864         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
5865         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
5866         based on arguments.
5867         * tree-inline.h (estimate_move_cost): Declare.
5868         * invoke.texi: (max-inline-inssn-single): Change default to 450.
5869         (max-inline-insns-auto): Change default to 90.
5870         (max-inline-insns-recursive): Change default to 450
5871         (max-inline-insns-recursive-auto): Change default to 450.
5872         (large-function-insns): Change default to 2700.
5873         (inline-call-cost): Document new parameter.
5874
5875 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5876
5877         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
5878         (TARGET_DEFAULT): Delete.
5879         * config/i860/i860.opt: New file.
5880
5881 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5882
5883         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
5884         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5885         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5886         (frv_sched_lookahead): Delete.
5887         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
5888         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
5889         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
5890         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
5891         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
5892         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
5893         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
5894         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
5895         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
5896         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
5897         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
5898         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
5899         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
5900         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
5901         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
5902         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
5903         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
5904         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
5905         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
5906         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
5907         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
5908         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
5909         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
5910         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5911         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5912         (frv_sched_lookahead): Delete.
5913         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
5914         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5915         (frv_handle_option): New function.  Move -mcpu= handling from...
5916         (frv_override_options): ...here.  Remove handling of other
5917         TARGET_OPTIONS.
5918         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
5919         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
5920         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
5921         and TARGET_NO_MULTI_CE.
5922         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
5923         !TARGET_VLIW_BRANCH.
5924         * config/frv/frv.opt: New file.
5925
5926 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5927
5928         * fold-const.c (fold_ternary): Take decomposed arguments of
5929         CALL_EXPR.
5930         (fold): Update a call to fold_ternary.
5931
5932         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
5933         * tree.h: Add corresponding prototypes.
5934
5935 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
5936
5937         PR target/20561
5938         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
5939         between jump table and its label.
5940         * final.c (shorten_branches): Handle notes in between ADDR_VEC
5941         resp. ADDR_DIFF_VEC and the label preceeding it.
5942         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
5943         is emitted in the right section.
5944
5945 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5946
5947         * fold-const.c (fold_unary, fold_binary): Update comments
5948         about arguments.
5949
5950 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
5951
5952         PR rtl-optimization/20527
5953         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
5954         REG_INC note, test that the register also isn't mentioned in PRED
5955         or SUCC.
5956
5957 2005-03-22  Ben Elliston  <bje@au.ibm.com>
5958
5959         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
5960         and definition.
5961
5962 2005-03-21  Mike Stump  <mrs@apple.com>
5963
5964         * varasm.c (default_assemble_visibility): Remove extra ().
5965
5966 2005-03-21  Roger Sayle  <roger@eyesopen.com>
5967
5968         PR middle-end/20557
5969         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
5970         to determine whether a block can be duplicated, rather than test
5971         whether the block contains noncopyable insns ourselves.
5972
5973 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5974
5975         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
5976         predicates.
5977
5978 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5979
5980         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
5981
5982 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5983
5984         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
5985         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
5986         * config/fr30/fr30.opt: New file.
5987
5988 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
5989
5990         Fix PR tree-optimization/20542
5991
5992         * tree-flow-inline.h (overlap_subvar): Move to here.
5993         * tree-ssa-operands.c: From here.
5994         * tree-flow.h (overlap_subvar): Declare.
5995         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
5996         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
5997         for variables with subvars.
5998
5999 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
6000
6001         PR middle-end/20177
6002         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
6003         * modulo-sched.c (const_iteration_count): Return on NULL
6004         pre-header.
6005         (print_node_sched_params): Return on NULL dump_file.
6006         (generate_reg_moves): Handle reg-anti dependencies and disregard
6007         closing branch when generating register moves.
6008         (sms_schedule): Mark the SMSed block dirty.
6009         * passes.c (rest_of_handle_sms): Call update_life_info for all
6010         basic-blocks.
6011         * testsuite/gcc.dg/20050321-1.c: New test.
6012
6013 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
6014
6015         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
6016         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6017         movqi_internal): Likewise.
6018
6019 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
6020
6021         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
6022         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
6023         xtensa_b4const): Delete prototypes.
6024         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
6025         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
6026         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
6027         xtensa_extra_constraint): New prototypes.
6028         (add_operand, arith_operand, nonimmed_operand, mem_operand,
6029         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
6030         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
6031         move_operand, const_float_1_operand, fpmem_offset_operand,
6032         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
6033         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
6034         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
6035         argument type to HOST_WIDE_INT.
6036         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
6037         xtensa_mask_immediate): Likewise.
6038         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
6039         Likewise.  Also make these functions static.
6040         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
6041         (xtensa_const_ok_for_letter_p): New.
6042         (add_operand, arith_operand, nonimmed_operand, mem_operand,
6043         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
6044         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
6045         move_operand, const_float_1_operand, fpmem_offset_operand,
6046         branch_operator, ubranch_operator, boolean_operator): Move to
6047         predicates.md.
6048         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
6049         (xtensa_mem_offset): Change return type to bool.
6050         (xtensa_extra_constraint): New.
6051         (gen_int_relational): Update type of const_range_p function pointer.
6052         Use xtensa_b4const_or_zero.
6053         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
6054         xtensa_const_ok_for_letter_p.  Update comments.
6055         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
6056         (PREDICATE_CODES): Delete.
6057         * config/xtensa/xtensa.md: Include predicates.md.
6058         * config/xtensa/predicates.md: New file.
6059
6060 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6061
6062         * config/v850/v850-protos.h: Remove the prototypes for
6063         reg_or_int9_operand, reg_or_const_operand,
6064         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
6065         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
6066         movsi_source_operand, power_of_two_operand,
6067         not_power_of_two_operand, special_symbolref_operand,
6068         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
6069         register_is_ok_for_epilogue.
6070         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
6071         reg_or_int9_operand, reg_or_const_operand,
6072         call_address_operand, special_symbolref_operand,
6073         movsi_source_operand, power_of_two_operand,
6074         not_power_of_two_operand, register_is_ok_for_epilogue,
6075         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
6076         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
6077         predicates.md.
6078         * config/v850/v850.h (PREDICATE_CODES): Remove.
6079         * config/v850/v850.md: Include predicates.md.
6080         * config/v850/predicates.md: New.
6081
6082 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
6083
6084         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
6085         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
6086         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
6087         (itoolsdir, itoolsdatadir): Move definition above new first use.
6088         (install-itoolsdirs): New rule.
6089         (install-mkheaders): Depend on install-itoolsdirs, not
6090         install-include-dir.
6091
6092 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6093
6094         * tree-into-ssa.c: Remove obsolete comments.
6095
6096 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
6097
6098         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
6099         unrolling if -fpeel-loops is specified, too.
6100         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6101         Remove superfluous check for flag_unroll_loops.
6102
6103 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
6104
6105         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
6106         (lrint_optab, llrint_optab): Define corresponding macros.
6107         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
6108         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
6109         pattern and llrint_optab using llrintdi2 patterns.
6110         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
6111         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
6112         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
6113         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
6114         flag_unsafe_math_optimizations is set.
6115
6116 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
6117
6118         * combine.c (combine_simplify_rtx, simplify_if_then_else,
6119         simplify_logical, if_then_else_cond, known_cond,
6120         simplify_comparison): Adjust calls to reverse_comparison.
6121         Don't use combine_reversed_comparison_code).
6122         (combine_reversed_comparison_code): Remove.
6123         (reversed_comparison): Using reversed_comparison_code, move it...
6124         * jump.c (reversed_comparison): ... here.
6125         * rtl.h (reversed_comparison): Add prototype.
6126
6127 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6128
6129         * builtins.c (fold_builtin): Take decomposed arguments of
6130         CALL_EXPR.
6131         * fold-const.c (fold_ternary): Update a call to fold_builtin.
6132         * gimplify.c (gimplify_call_expr): Likewise.
6133         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
6134         * tree.h: Update the prototype of fold_builtin.
6135
6136 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
6137
6138         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
6139         * rtlhooks.c (gen_lowpart_no_emit_general): New.
6140         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
6141         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
6142         * simplify-rtx.c (simplify_binary_operation_1): Use it.
6143
6144 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6145
6146         * builtins.c (fold_builtin_1): Take decomposed arguments of
6147         CALL_EXPR.
6148         (fold_builtin): Update a call to fold_builtin_1.
6149
6150 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
6151
6152         PR other/20564
6153         * gcov.c (output_lines): Only output function block summary when
6154         outputting branch information.
6155         * doc/gcov.texi: Document format of preamble and additional block
6156         information lines.
6157
6158 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
6159
6160         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
6161         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
6162         the defaults false if BITS_PER_UNIT != 8.
6163         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
6164         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
6165         than BITS_PER_UNIT != 8.
6166         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
6167         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
6168         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
6169         #undefs.
6170         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
6171         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
6172
6173 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6174
6175         PR middle-end/20539
6176         * fold-const.c (fold_binary): Fix type mismatch between
6177         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
6178         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
6179         for non-truth-valued expressions.
6180
6181         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
6182         and FUNCTION_DECL in the main switch.
6183         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6184         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
6185         we also need to convert their operands to match.
6186         <TRUTH_NOT_EXPR>: Likewise.
6187
6188 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
6189
6190         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
6191         diagnostic without checking whether an lvalue.
6192         * c-common.h (lvalue_p): Remove.
6193         (enum lvalue_use): Update comment.
6194         (lvalue_or_else): Replace by lvalue_error.
6195         * c-typeck.c (lvalue_p): Make static.
6196         (lvalue_or_else): New.  Call lvalue_error.
6197
6198 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
6199
6200         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
6201         (function_arg_advance): Use rs6000_parm_start.
6202         (function_arg, rs6000_arg_partial_bytes): Likewise.
6203
6204 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6205
6206         * c-common.c (check_case_value): Adjust comment about stripping
6207         NOPs.
6208         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
6209         * c-typeck.c (default_conversion, convert_arguments,
6210         build_modify_expr, convert_for_assignment, store_init_value,
6211         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
6212         manually.  Remove inaccurate comments.
6213
6214 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6215             Joseph S. Myers  <joseph@codesourcery.com>
6216
6217         * varasm.c (do_assemble_alias): Restore comment describing function.
6218         Annotate the target parameter as potentially unused.
6219
6220 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6221
6222         PR target/18551
6223         * config/avr/avr.c (avr_output_function_prologue): Do not use
6224         current_function_name() in a label, use a local label instead.
6225
6226 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
6227
6228         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
6229         flag_finite_math_only, not flag_unsafe_math_optimizations.
6230
6231 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6232
6233         * builtins.c (fold_builtin_1): Update a call to
6234         targetm.fold_builtin.
6235         * hooks.c (hook_tree_tree_bool_null): Rename to
6236         hook_tree_tree_tree_bool_null.  Take one more argument of type
6237         tree.
6238         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
6239         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
6240         hook_tree_tree_tree_bool_null.
6241         * target.h (gcc_target): Update the prototype of fold_builtin.
6242         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
6243         arguments of CALL_EXPR.
6244         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
6245         new prototype.
6246
6247 2005-03-20  Jan Hubicka  <jh@suse.cz>
6248
6249         * cgraph.h (cgraph_node): Add prev_clone pointer.
6250         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
6251         (cgraph_clone_node): Produce doubly linked chain.
6252
6253 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6254
6255         * c-common.c (handle_aligned_attribute, check_function_sentinel,
6256         get_nonnull_operand, handle_sentinel_attribute,
6257         check_function_arguments_recurse): Do not strip NOPS from
6258         INTEGER_CSTs.
6259         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
6260         Likewise.
6261         * c-format.c (get_constant): Likewise.
6262         * c-parser.c (c_parser_postfix_expression): Likewise.
6263         * c-typeck.c (set_init_index): Likewise.
6264         (convert_arguments): Don't check for NOP_EXPR containing integer
6265         constant.
6266
6267 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6268
6269         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
6270         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
6271         Take decomposed arguments of CALL_EXPR.
6272         (fold_builtin_1): Update calls to the functions mentioned
6273         above.
6274
6275 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6276
6277         * c-decl.c (check_bitfield_type_and_width): Require bit-field
6278         width to have integer type.
6279         (build_enumerator): Require enumerator value to have integer type.
6280
6281 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6282
6283         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
6284         to __builtin_inff.
6285
6286 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6287
6288         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
6289         std=iso9899:199x): Correct descriptions.
6290
6291 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6292
6293         * config.gcc: Consistently use solaris2.1[0-9]* instead of
6294         solaris2.1[0-9].
6295
6296 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6297
6298         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
6299         of CALL_EXPR.
6300         (expand_builtin_memcpy, fold_builtin_1): Update calls to
6301         fold_builtin_memcpy.
6302
6303         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
6304         arguments of CALL_EXPR.
6305         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
6306         fold_builtin_found, fold_builtin_1): Update calls to
6307         fold_trunc_transparent_mathfn.
6308
6309 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6310
6311         PR middle-end/20493
6312         * fold-const.c (fold_widened_comparison): Don't optimize casts of
6313         function pointers on targets that require function pointer
6314         canonicalization.
6315         (fold_sign_changed_comparison): Likewise.
6316
6317 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
6318
6319         * combine.c (try_combine): When changing the mode of a hard reg, make
6320         sure that doing so is valid.
6321
6322 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
6323
6324         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
6325         (TARGET_HANDLE_OPTION): Override default.
6326         (avr_handle_option): New function.
6327         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
6328         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
6329         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
6330         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
6331         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
6332         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
6333         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
6334         (TARGET_OPTIONS): Delete.
6335         * config/avr/avr.opt: New file.
6336
6337 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6338
6339         * config/m32r/m32r-protos.h: Remove the prototypes for
6340         call_address_operand, symbolic_operand, seth_add3_operand,
6341         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6342         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6343         two_insn_const_operand, move_src_operand,
6344         move_double_src_operand, move_dest_operand,
6345         eqne_comparison_operator, signed_comparison_operator,
6346         large_insn_p, conditional_move_operand, carry_compare_operand,
6347         m32r_block_immediate_operand, extend_operand,
6348         reg_or_eq_int16_operand, int8_operand, and
6349         reg_or_zero_operand.
6350         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6351         seth_add3_operand, int8_operand, cmp_int16_operand,
6352         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6353         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6354         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6355         move_double_src_operand, move_dest_operand,
6356         eqne_comparison_operator, signed_comparison_operator,
6357         extend_operand, small_insn_p, large_insn_p,
6358         conditional_move_operand, carry_compare_operand,
6359         m32r_block_immediate_operand): Move to predicates.md.
6360         (MAX_MOVE_BYTES): Move to m32r.h.
6361         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6362         * config/m32r/m32r.md: Include predicates.md.
6363         * config/m32r/predicates.md: New.
6364
6365 2005-03-18  James E Wilson  <wilson@specifixinc.com>
6366
6367         PR c++/19769
6368         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
6369         origin.
6370
6371 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6372
6373         * config/mn10300/mn10300-protos.h: Remove the prototypes for
6374         call_address_operand, const_8bit_operand.
6375         * config/mn10300/mn10300.c (call_address_operand,
6376         const_8bit_operand, const_1f_operand): Move to predicates.md.
6377         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
6378         * config/mn10300/mn10300.md: Include predicates.md.
6379         * config/mn10300/predicates.md: New.
6380
6381 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
6382
6383         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
6384         declarations in diagnostics and %E for identifiers, not %s.
6385
6386 2005-03-18  Jan Hubicka  <jh@suse.cz>
6387             Dale Johannesen  <dalej@apple.com>
6388
6389         * basic-block.h (scale_bbs_frequencies_int,
6390         scale_bbs_frequencies_gcov_type): Declare.
6391         * cfg.c (RDIV): New macro.
6392         (update_bb_frequency_for_threading): Fix.
6393         * basic-block.h (scale_bbs_frequencies_int,
6394         scale_bbs_frequencies_gcov_type): New.
6395         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
6396         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
6397         scale_bbs_frequencies_int.
6398         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
6399
6400 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6401
6402         * config/m32r/m32r-protos.h: Remove the prototypes for
6403         call_address_operand, symbolic_operand, seth_add3_operand,
6404         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6405         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6406         two_insn_const_operand, move_src_operand,
6407         move_double_src_operand, move_dest_operand,
6408         eqne_comparison_operator, signed_comparison_operator,
6409         large_insn_p, conditional_move_operand, carry_compare_operand,
6410         m32r_block_immediate_operand, extend_operand,
6411         reg_or_eq_int16_operand, int8_operand, and
6412         reg_or_zero_operand.
6413         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6414         seth_add3_operand, int8_operand, cmp_int16_operand,
6415         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6416         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6417         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6418         move_double_src_operand, move_dest_operand,
6419         eqne_comparison_operator, signed_comparison_operator,
6420         extend_operand, small_insn_p, large_insn_p,
6421         conditional_move_operand, carry_compare_operand,
6422         m32r_block_immediate_operand): Move to predicates.md.
6423         (MAX_MOVE_BYTES): Move to m32r.h.
6424         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6425         * config/m32r/m32r.md: Include predicates.md.
6426         * config/m32r/predicates.md: New.
6427
6428         * config/pa/pa-protos.h: Add prototypes for magic_milli and
6429         shadd_constant_p.
6430         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
6431         symbolic_operand, symbolic_memory_operand,
6432         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
6433         indexed_memory_operand, move_dest_operand, move_src_operand,
6434         prefetch_cc_operand, prefetch_nocc_operand,
6435         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
6436         arith_operand, arith11_operand, pre_cint_operand,
6437         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
6438         ireg_operand, int5_operand, uint5_operand, int11_operand,
6439         uint32_operand, arith5_operand, and_operand, ior_operand,
6440         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
6441         pc_or_label_operand, div_operand, plus_xor_ior_operator,
6442         shadd_operand, movb_comparison_operator,
6443         cmpib_comparison_operator): Move to predicates.md.
6444         (magic_milli, shadd_constant_p): Make it extern.
6445         * config/pa/pa.h (PREDICATE_CODES): Remove.
6446         * config/pa/pa.md: Include predicates.md.
6447         * config/pa/predicates.md: New.
6448
6449         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
6450         predicate.
6451
6452 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6453
6454         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
6455         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
6456         config/alpha/freebsd.h, config/alpha/linux.h,
6457         config/alpha/netbsd.h, config/alpha/osf5.h,
6458         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
6459         config/h8300/h8300-protos.h, config/h8300/h8300.c,
6460         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
6461         doc/cppopts.texi: Update copyright.
6462
6463 2005-03-18  Jan Hubicka  <jh@suse.cz>
6464
6465         PR middle-end/20225
6466         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
6467         too late.
6468         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
6469         called too late.
6470
6471 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6472
6473         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
6474         VEC_safe_push.
6475
6476 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
6477
6478         * combine.c (gen_binary): Remove.
6479         (known_cond, simplify_shift_const, find_split_point,
6480         combine_simplify_rtx, simplify_if_then_else, simplify_set,
6481         simplify_logical, expand_field_assignment, extract_left_shift,
6482         force_to_mode, if_then_else_cond, apply_distributive_law,
6483         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
6484         simplify_comparison, reversed_comparison): Replace with
6485         simplify_gen_binary, simplify_gen_relational or
6486         distribute_and_simplify_rtx.
6487         (distribute_and_simplify_rtx): New function.
6488
6489 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
6490             Paolo Bonzini  <gcc.gnu.org>
6491
6492         * calls.c (setjmp_call_p, special_function_p): Update comments
6493         at the head of the functions.
6494
6495 2005-03-18  Jan Hubicka  <jh@suse.cz>
6496
6497         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
6498
6499         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
6500         function body should be released; do not proactively release function
6501         bodies in non-unit-at-a-time mode.
6502
6503 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
6504
6505         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
6506         mno-fp-ret-in-387 multilib variants.
6507
6508 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
6509
6510         * common.opt (m): Remove.
6511         * opts.c (handle_option): Pass 'm' options to set_target_switch if
6512         table lookup fails.
6513         (common_handle_option): Remove OPT_m case.
6514
6515 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6516
6517         * builtins.c (fold_builtin_bitop): Take decomposed arguments
6518         of CALL_EXPR.
6519         (fold_builtin_1): Update a call to fold_builtin_bitop.
6520
6521         * builtins.c (fold_builtin_signbit): Take decomposed arguments
6522         of CALL_EXPR.
6523         (fold_builtin_1): Update a call to fold_builtin_signbit.
6524
6525 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
6526
6527         PR tree-optimization/20474
6528         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
6529         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
6530
6531 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6532
6533         * config/h8300/h8300-protos.h: Remove prototypes for
6534         general_operand_src, general_operand_dst, single_one_operand,
6535         single_zero_operand, call_insn_operand,
6536         two_insn_adds_subs_operand, small_call_insn_operand,
6537         jump_address_operand, bit_operand, bit_memory_operand,
6538         stack_pointer_operand, const_int_gt_2_operand,
6539         const_int_ge_8_operand, const_int_qi_operand,
6540         const_int_hi_operand, incdec_operand, bit_operator,
6541         nshift_operator, eqne_operator, gtle_operator,
6542         gtuleu_operator, iorxor_operator.
6543         Add prototypes for h8sx_shift_type h8sx_classify_shift and
6544         h8300_ldm_stm_parallel.
6545         * config/h8300/h8300.c (h8sx_shift_type,): Move to
6546         h8300-protos.h.
6547         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
6548         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
6549         (h8300_ldm_stm_parallel): Make it extern.
6550         (h8300_ldm_parallel, h8300_stm_parallel,
6551         h8300_return_parallel, general_operand_src,
6552         general_operand_dst, h8300_dst_operand, h8300_src_operand,
6553         nibble_operand, reg_or_nibble_operand, single_one_operand,
6554         single_zero_operand, call_insn_operand,
6555         two_insn_adds_subs_operand, small_call_insn_operand,
6556         jump_address_operand, bit_operand, bit_memory_operand,
6557         stack_pointer_operand, const_int_gt_2_operand,
6558         const_int_ge_8_operand, const_int_qi_operand,
6559         const_int_hi_operand, incdec_operand, eqne_operator,
6560         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
6561         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
6562         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
6563         nshift_operator): Move to predicates.md.
6564         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
6565         * config/h8300/h8300.md: Include predicates.md.
6566         * config/h8300/predicates.md: New.
6567
6568 2005-03-17  Richard Henderson  <rth@redhat.com>
6569
6570         * config.gcc (ia64*-*-hpux*): Add extra_options.
6571         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
6572         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6573         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
6574         (ia64_tls_size_string, ia64_tune_string): Remove.
6575         (ia64_tune): Init to PROCESSOR_ITANIUM2.
6576         (TARGET_DEFAULT_TARGET_FLAGS): New.
6577         (TARGET_HANDLE_OPTION): New.
6578         (ia64_override_options): Move options parsing ...
6579         (ia64_handle_option): ... here.  New.
6580         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
6581         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
6582         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
6583         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
6584         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
6585         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
6586         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
6587         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
6588         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
6589         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
6590         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
6591         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
6592         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
6593         TARGET_EARLY_STOP_BITS): Remove.
6594         (TARGET_ILP32): Default false.
6595         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
6596         (enum ia64_inline_type): New.
6597         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6598         * config/ia64/ia64.md: Update for new definitions of
6599         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
6600         * config/ia64/ia64.opt: New file.
6601         * config/ia64/ilp32.opt: New file.
6602
6603 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6604
6605         PR target/18380
6606         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
6607
6608 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6609
6610         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
6611         instead of MASK_H8300S.
6612         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
6613         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
6614         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
6615         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
6616         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
6617         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
6618         TARGET_SWITCHES): Remove.
6619         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
6620         TARGET_H8300SX.
6621         * config/h8300/h8300.opt: New.
6622
6623         * config/alpha/alpha.opt, config/arc/arc.opt,
6624         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
6625         notices.
6626
6627 2005-03-17  Ian Lance Taylor  <ian@airs.com>
6628
6629         * gmon.c: Remove.
6630
6631 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
6632
6633         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
6634         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
6635         (TARGET_HANDLE_OPTION): Override default.
6636         (arc_handle_option): New function.
6637         (arc_init): Remove code to set arch_cpu_string.
6638         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
6639         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
6640         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
6641         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
6642         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
6643         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
6644         (arc_rodata_string, TARGET_OPTIONS): Delete.
6645         * config/arc/arc.opt: New file.
6646
6647 2005-03-17  Richard Henderson  <rth@redhat.com>
6648
6649         * doc/extend.texi (Weak Pragmas): New section.
6650         (attribute alias): Clarify that target must be in the same
6651         translation unit.
6652
6653 2005-03-17  Richard Henderson  <rth@redhat.com>
6654
6655         * config/alpha/alpha.opt: New file.
6656         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
6657         of alpha_cpu.
6658         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
6659         alpha_fprm_string, alpha_fptm_string): Make static.
6660         (alpha_tls_size_string): Remove.
6661         (alpha_handle_option): New.
6662         (override_options): Update for alpha_cpu/alpha_tune split.
6663         (alpha_file_start): Likewise.
6664         (TARGET_DEFAULT_TARGET_FLAGS): New.
6665         (TARGET_HANDLE_OPTION): New.
6666         * config/alpha/alpha.h (alpha_tune): Declare.
6667         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
6668         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
6669         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
6670         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
6671         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
6672         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
6673         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
6674         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
6675         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
6676         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
6677         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
6678         (TARGET_DEFAULT): Remove MASK_FP.
6679         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
6680         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
6681         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
6682         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
6683         alpha_tls_size_string): Remove.
6684         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
6685         (attribute tune): Rename from attribute cpu.
6686         * config/alpha/ev4.md: Update to match.
6687         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
6688         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
6689         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
6690         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
6691         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
6692         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
6693
6694 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
6695
6696         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
6697         and return without creating new state if before_nops_num is nonzero.
6698         * config/ia64/ia64.md (first_insn): New attribute.
6699         (alloc): Set it to yes.
6700
6701 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6702
6703         * tree-vectorizer.c (new_vec_stmt_info): Initialize
6704         STMT_VINFO_SUBVARS to NULL.
6705         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6706
6707 2005-03-16 Dale Johannesen  <dalej@apple.com>
6708
6709         * rtlanal.c (find_first_parameter_load):  Rewrite to
6710         return actual first param load or the call if none,
6711         instead of first in block, when not all loads exist.
6712
6713 2005-03-16  Roger Sayle  <roger@eyesopen.com>
6714
6715         * optabs.c (expand_copysign_absneg): Make static.
6716         * optabs.h (expand_copysign_absneg): Delete prototype.
6717         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
6718
6719 2005-03-16  Richard Henderson  <rth@redhat.com>
6720
6721         PR middle-end/15700
6722         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
6723         (alias_pairs): Rename from output_defs.
6724         (find_decl_and_mark_needed): Split out from assemble_alias.
6725         (do_assemble_alias): New.
6726         (assemble_output_def): Remove.
6727         (finish_aliases_1, finish_aliases_2): New.
6728         (process_pending_assemble_output_defs): Remove.
6729         (assemble_alias): Defer aliases for which we don't yet have a
6730         non-external decl for the target symbol.
6731         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
6732         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
6733         * toplev.c (compile_file): Use finish_aliases_2 instead of
6734         process_pending_assemble_output_defs.
6735         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
6736         (process_pending_assemble_output_defs): Remove.
6737
6738 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6739
6740         Fix PR tree-optimization/20489
6741
6742         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
6743         for empty structures.
6744
6745 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6746
6747         Fix PR tree-optimization/20490
6748
6749         * tree-ssa-pre.c (create_expression_by_pieces): Use
6750         force_gimple_operand on result of fold.
6751
6752 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
6753
6754         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
6755         of closing parenthesis.
6756
6757 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
6758
6759         * builtins.c (expand_movstr): Update a call to
6760         fold_builtin_strcpy.
6761         (expand_builtin_strncpy): Update a call to
6762         fold_builtin_strncpy.
6763         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
6764         arguments of CALL_EXPR.
6765         (fold_builtin_1): Update calls to fold_builtin_strcpy and
6766         fold_builtin_strncpy.
6767         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
6768         * tree.h: Update the prototypes of fold_builtin_strcpy and
6769         fold_builtin_strncpy.
6770
6771 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6772             Dorit Naishlos  <dorit@il.ibm.com>
6773
6774         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
6775         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
6776         error.
6777
6778 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6779
6780         * tree-inline.c (walk_type_fields, walk_tree,
6781         walk_tree_without_duplicates): Move from here...
6782         * tree.c: ...to here.
6783
6784 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
6785
6786         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
6787         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
6788         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
6789         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
6790         (version): Define using $(BASEVER_c).
6791         (Makefile, config.status, build/gcov-iov.o): No longer depends on
6792         version.c.
6793         (version.o): Depend on version files; add custom generation command.
6794         (prefix.o): Define BASEVER on command line.
6795         (s-iov): Depend on version files; adjust command.
6796         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
6797         Add gcc-vers.texi.
6798         (gcc-vers.texi): New rule.
6799         (doc/%.info, doc/%.dvi): Add -I . to command line.
6800         (doc/gccinstall.dvi): Likewise.
6801         (PACKAGE): Delete.  All uses replaced with "gcc".
6802         * aclocal.m4: Do not include gcc-version.m4.
6803         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
6804         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
6805         Set is_release based on contents of DEV-PHASE.
6806         Set gcc_version based on contents of BASE-VER.
6807         Define WIN32_REGISTRY_KEY only if the user overrode the default.
6808         * config.in, configure: Regenerate.
6809         * gccbug.in: Determine version of GCC in use at runtime.
6810         * gcov-iov.c: Get version number and development phase from
6811         command line, not by including version.c.
6812         * intl.c: Replace all uses of PACKAGE with "gcc".
6813         * libada-mk.in: Delete unused "gcc_version" variable.
6814         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
6815         * version.c: (VERSUFFIX): New hook for redistributors; adjust
6816         commentary to match.
6817         (version_string): Put together from pieces.
6818         * config/alpha/x-vms: Do not use $(gcc_version).
6819         * config/i386/t-nwld: Likewise.
6820         * doc/include/gcc-common.texi: Include gcc-vers.texi for
6821         version-GCC and DEVELOPMENT.
6822
6823 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6824
6825         PR tree-optimization/17454
6826         * tree.c (tree_size): Add case for TREE_BINFO.
6827         * fold-const.c (fold_checksum_tree): Only clear the overloaded
6828         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
6829
6830 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6831
6832         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
6833         op1 whilst expanding the signed widenening multiply variant.
6834
6835 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
6836
6837         * toplev.c (display_target_options): Avoid unused variable warning if
6838         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
6839         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
6840         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
6841         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
6842         (mips_isa_info): New variable.
6843         (mips_parse_cpu): Remove the first argument and leave the caller
6844         to report errors.
6845         (TARGET_HANDLE_OPTION): Override default.
6846         (mips_handle_option): New function.  Move option validation code from...
6847         (override_options): ...here.  Update calls to mips_parse_cpu.
6848         * config/mips/mips.h (mips_arch_string, mips_tune_string)
6849         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
6850         (SUBTARGET_TARGET_OPTIONS): Delete.
6851         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
6852         (mno-flush-func, mtune=): New options.
6853
6854 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6855             Richard Henderson  <rth@redhat.com>
6856
6857         * real.c (c4x_single_format, c4x_extended_format): Provide values
6858         for signbit_ro for c4x's single and extended floating point formats.
6859         * optabs.c (expand_copysign): Use the floating point format's
6860         signbit_ro for expanding via expand_copysign_absneg, and it's
6861         signbit_rw field for expanding via expand_copysign_bit.
6862
6863 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
6864
6865         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
6866         known_alignment_for_access_p.
6867         (known_alignment_for_access_p): New.
6868         (do_peeling_for_alignment): Field made int instead of bool and renamed
6869         to peeling_for_alignment.
6870         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
6871         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
6872         functionality used to be in vect_analyze_operations.
6873         (vect_analyze_operations): Code to determine vectorization factor was
6874         moved to vect_determine_vectorization_factor.
6875         (vect_enhance_data_refs_alignment): Update to correct alignment when it
6876         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
6877         factor.
6878         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
6879         be part of vect_analyze_operations).
6880         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
6881         creating the guard condition, as the number of iterations may be
6882         constant.
6883         (slpeel_tree_peel_loop_to_edge): Use new name of
6884         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
6885         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
6886         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
6887         (vect_do_peeling_for_alignment): Use fold.
6888         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
6889
6890         (vect_update_inits_of_dr): Renamed to
6891         vect_update_init_of_dr.
6892         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
6893         (vectorizable_store): Fix assertion to use == instead of =.
6894
6895 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
6896
6897         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
6898         call_used_regs for wCG registers.
6899
6900 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6901
6902         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
6903         for non-offsettable memory references to cope with outstanding reload
6904         replacements, take 2.
6905
6906 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
6907
6908         PR target/18668
6909         * config/i386/i386.h (x86_fisttp): New.
6910         (TARGET_FISTTP): New macro.
6911         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
6912         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
6913         instruction when fisttp flag is set.
6914         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
6915
6916         * config/i386/i386.md (type attribute): Add fisttp.
6917         (unit attribute): Set to i387 for fisttp type.
6918         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
6919         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
6920         TARGET_FISTTP.
6921         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
6922         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
6923         macros.
6924         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
6925         patterns for TARGET_FISTTP.  Enable patterns for
6926         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
6927         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
6928         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
6929         implement fisttp x87 insn.
6930         (fix_trunc*_i387_fisttp splitters): New patterns.
6931         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
6932         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
6933         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
6934         clobber.
6935         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
6936         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
6937         Implement using mode macros. Disable patterns for TARGET_FISTTP.
6938         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
6939         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
6940         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
6941         Disable patterns for TARGET_FISTTP.
6942         (fix_trunc*_i387 splitters): Implement usign mode macros.
6943         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
6944         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
6945         (fix_trunx*_sse peephole2s): Implement using mode macros.
6946
6947 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
6948
6949         PR rtl-optimization/20291
6950         * combine.c (try_combine): If splitting fails, re-try with
6951         original combined pattern, i.e. before clobber stripping.
6952
6953 2005-03-14  Eric Christopher  <echristo@redhat.com>
6954
6955         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
6956         STACK_GROWS_DOWNWARD.
6957
6958 2005-03-14  Roger Sayle  <roger@eyesopen.com>
6959
6960         * real.h (struct real_format): Split the signbit field into two
6961         two fields, signbit_ro and signbit_rw.
6962         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
6963         mips_double_format, ieee_extended_motorola_format,
6964         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
6965         ieee_extended_intel_128_format, ibm_extended_format,
6966         mips_extended_format, ieee_quad_format, mips_quad_format,
6967         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
6968         i370_double_format, c4x_single_format, c4x_extended_format,
6969         real_internal_format): Update initializers for new field.
6970         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
6971         real_format structure.
6972         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
6973         field of the real_format structure.
6974
6975 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
6976
6977         Fix PR tree-optimization/20458
6978
6979         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
6980         DECL_EXTERNAL on STRUCT_FIELD tags.
6981         (clear_call_clobbered): Ditto.
6982         * tree-ssa-operands.c (note_addressable): Make sure the original
6983         variable doesn't slip into the addressable list if we have
6984         subvars.
6985         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
6986         tags too.
6987
6988 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
6989
6990         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
6991         (-fwide-exec-charset): Likewise.
6992         (-finput-charset): Likewise.
6993         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
6994         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
6995         * c.opt (Wnormalized): New.
6996
6997 2005-03-14  Devang Patel  <dpatel@apple.com>
6998
6999         * doc/invoke.texi: Add reference to Visibility document.
7000
7001 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
7002
7003         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
7004         MASK_SPLIT_ADDRESSES.
7005         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
7006         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
7007         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
7008         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
7009         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
7010         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
7011         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
7012         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
7013         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
7014         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
7015         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
7016         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
7017         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
7018         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
7019         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
7020         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
7021         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
7022         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
7023         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
7024         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
7025         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
7026         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
7027         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
7028         (TARGET_EXPLICIT_RELOCS): Delete.
7029         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
7030         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
7031         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
7032         (override_options): Set MASK_LONG64 if -mint64 is given and no
7033         -mlongXX option is.  Complain about -mint64 -mlong32.
7034         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
7035         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
7036         * config/mips/mips.opt: New file.
7037
7038 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
7039
7040         * config.gcc (extra_options): New variable for listing option files.
7041         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
7042         * configure.ac (extra_opt_files): New AC_SUBST variable.
7043         (tm_file_list, tm_include_list): Include options.h first.
7044         * configure: Regenerate.
7045         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
7046         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
7047         (s-options-h): New rule.
7048         (options.h): Depend on it.
7049         (TEXI_GCCINT_FILES): Add options.texi.
7050         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
7051         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
7052         * target.h (gcc_target): Add default_target_flags and handle_option.
7053         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
7054         (TARGET_HANDLE_OPTION): New macros.
7055         (TARGET_INITIALIZER): Include them.
7056         * opt-functions.awk (opt_args, nth_arg): New functions.
7057         (switch_flags): Handle the "Target" flag.
7058         (var_args): Delete.
7059         (var_name): Use opt_args and nth_arg.
7060         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
7061         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
7062         macros for the "Mask" and "InverseMask" options.
7063         * opts.h (cl_var_cond): New enum.
7064         (cl_option): Replace the "has_set_value" and "set_value" fields with
7065         "var_cond" and "var_value".
7066         (CL_TARGET): New macro.
7067         (option_enabled, print_filtered_help): Declare.
7068         (decode_options): Move definition.
7069         * opts.c (handle_option): Search for the original option before
7070         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
7071         var_cond and var_value fields.  Use targetm.handle_option to handle
7072         target options.
7073         (decode_options): Set target_flags to targetm.default_target_flags.
7074         (print_filtered_help): Make global.  Handle CL_TARGET.
7075         (option_enabled): New function.
7076         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
7077         (display_target_options, set_target_switch, print_switch_values)
7078         (default_pch_valid_p): Guard uses of target_switches with
7079         #ifdef TARGET_SWITCHES.  Also...
7080         (display_target_options): Display the CL_TARGET entries in cl_options.
7081         (set_target_option): Don't complain about the "" option when
7082         TARGET_SWITCHES is undefined.
7083         (print_switch_values): Use option_enabled.
7084         (default_pch_valid_p): Check cl_options[] when looking for something
7085         that has changed the value of target_flags.
7086         * c.opt: Remove documentation from top of file.
7087         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
7088         * doc/sourecebuild.texi: Refer to the new options documentation
7089         instead of c.opt.  Document machine-specific .opt files.
7090         * doc/tm.texi (target_flags): Say that this variable is declared
7091         by options.h.
7092         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
7093         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
7094         an alternative.
7095         * doc/options.texi: New file.
7096
7097 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
7098
7099         PR middle-end/18628
7100         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
7101         register.
7102
7103 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
7104
7105         PR c++/20280
7106         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
7107         temporary variable of pointer type if an lvalues is required.
7108         (gimplify_modify_expr_rhs): Request an rvalue from it.
7109         (gimplify_expr): Pass fallback on.
7110
7111 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7112
7113         * cfgbuild.c: Update comments.
7114
7115 2005-03-14  Roger Sayle  <roger@eyesopen.com>
7116
7117         PR rtl-optimization/17236
7118         * optabs.c (expand_doubleword_mult): New helper function split out
7119         from expand_binop.  Permute the order in which instructions are
7120         emitted to minimize the number of simultaneously live registers.
7121         (expand_binop): Call expand_doubleword_mult to synthesize a double
7122         word multiplication.
7123
7124 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7125
7126         * basic-block.h: Update the prototypes of cached_make_edge and
7127         rtl_make_eh_edge.
7128         * cfg.c (cached_make_edge): Take edge_cache representing one
7129         row of the adjacency matrix of edges.
7130         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
7131         (make_edges): Initialize edge_cache to represent one row of
7132         the adjacency matrix of edges.
7133
7134 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7135
7136         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
7137         New functions.
7138         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
7139         Remove unused removed_phis variable.
7140         (conditional_replacement): Use build1/build2.
7141         (abs_replacement): Use last_and_only_stmt and build1/build2.
7142
7143 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7144
7145         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
7146         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
7147         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
7148         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
7149         * c-common.c (handle_novops_attribute): New function.
7150         (c_common_attribute_table): Add "no vops" entry.
7151         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
7152         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
7153         * tree-ssa-operands.c (get_call_expr_operands): Do not
7154         create virtual operands for calls with ECF_NOVOPS flag.
7155         * tree.h (DECL_IS_NOVOPS): New macro.
7156         (struct tree_decl): Add novops_flag.
7157         (ECF_NOVOPS): New constant.
7158
7159 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
7160
7161         PR target/17688
7162         * config/i386/i386.c (x86_use_himode_fiop): New.
7163         (x86_use_simode_fiop): Rename from x86_use_fiop.
7164         * config/i386/i386.h (x86_use_himode_fiop): Declare.
7165         (TARGET_USE_HIMODE_FIOP): New.
7166         (x86_use_simode_fiop): Rename from x86_use_fiop.
7167         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
7168
7169         * config/i386/i386.md (X87MODEI12): New mode macro define.
7170         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
7171         to implement x87 FP compare with HImode input operands.
7172         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
7173         Use X87MODEI12 mode macro to handle HImode input operands.
7174         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
7175         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
7176         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
7177         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
7178         macro to implement x87 operators with HImode input operands.
7179         (fop splitters): Use X87MODEI12 mode macro to handle HImode
7180         input operands.
7181
7182 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7183
7184         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
7185         integer_zerop.
7186         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
7187         constants invariant.
7188
7189 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7190
7191         * basic-block.h (BB_VISITED): Removed.
7192         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
7193
7194 2005-03-14  Falk Hueffner  <falk@debian.org>
7195
7196         PR bootstrap/20424
7197         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
7198
7199 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7200
7201         * ggc-zone.c: Fix comment typos.
7202
7203         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
7204         stringpool.c, config/mips/mips-protos.h: Update copyright.
7205
7206 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7207
7208         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
7209         throughout with its typedef, "rtx".
7210         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
7211         (rs6000_tls_symbol_ref_1): Remove inline keyword.
7212         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
7213         regs in comment to match code.
7214
7215 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7216
7217         * except.c (check_handled): Make it static.
7218         * except.h: Remove the corresponding prototype.
7219
7220         * function.c (get_func_frame_size): Make it static.
7221         * function.h: Remove the corresponding type.
7222
7223         * regclass.c (reg_class_superclasses, reg_class_subclasses):
7224         Make them static.
7225         * hard-reg-set.h: Remove the corresponding declarations.
7226
7227         * tree-cfg.c (verify_stmts): Check that
7228         bb_for_stmt (stmt) == bb for every PHI node and statement.
7229
7230 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7231
7232         * config.gcc: Remove excess indentation.
7233         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
7234
7235 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7236
7237         PR middle-end/19331
7238         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
7239         * fold-const.c (fold_sign_changed_comparison): Likewise.
7240         (fold_binary): Optimize comparisons against widened operands if
7241         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
7242
7243 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7244
7245         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
7246         (sparc_override_options): Initialize it.
7247         (sparc_struct_value_rtx): Set it on the MEM to be returned.
7248
7249 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
7250
7251         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
7252         (reg_or_none500mem_operand): New predicate.
7253         (zero_reg_mem_operand): New predicate.
7254         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
7255         to reg_or_none500mem_operand.
7256         (extendsfdf2_fpr): Add MEM alternative.
7257         (extenddftf2_internal): Change operand2 predicate to
7258         zero_reg_mem_operand.
7259
7260 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7261
7262         * ggc-zone.c: Rewritten.
7263
7264         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
7265         if there are none.
7266         * configure.ac: Define GGC_ZONE for --with-gc=zone.
7267         * config.in: Regenerated.
7268         * configure: Regenerated.
7269         * gengtype.c (write_types_process_field, write_func_for_structure):
7270         Pass new argument to gt_pch_note_object.
7271         * ggc-common.c (struct ptr_data): Add TYPE.
7272         (gt_pch_note_object): Take TYPE argument and save it.
7273         (call_count): Update call to ggc_pch_count_object.
7274         (call_alloc): Update call to ggc_pch_alloc_object.
7275         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
7276         file.
7277         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
7278         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
7279         (ggc_alloc_zone_stat): Delete.
7280         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
7281         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
7282         (ggc_pch_alloc_object): Update prototypes.
7283         (garbage_zone): Delete.
7284         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
7285         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
7286         pointers.
7287         (tree_id_zone): New variable.
7288         (ggc_alloc_cleared_zone): Remove unused.
7289         (ggc_alloc_zone): Define.
7290         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
7291         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
7292         ggc_alloc_zone_stat.
7293         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
7294         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
7295         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
7296         (make_node_stat): Likewise.  Use tree_id_zone.
7297
7298 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7299             Joseph S. Myers  <joseph@codesourcery.com>
7300
7301         * configure.ac: Check for MIPS TLS.
7302         * configure: Regenerated.
7303         * config/mips/mips-protos.h (enum mips_symbol_type): Add
7304         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
7305         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
7306         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
7307         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7308         (mips_classify_symbol, mips_symbolic_constant_p)
7309         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
7310         (mips_tls_operand_p, mips_call_tls_get_addr)
7311         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
7312         (mips_tls_symbol_ref_1): New functions.
7313         (mips_legitimize_address, mips_legitimize_const_move): Call
7314         mips_legitimize_tls_address.
7315         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
7316         for MIPS16.
7317         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
7318         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
7319         (mips_char_to_class): Document V1_REG.
7320         (HAVE_AS_TLS): Provide default.
7321         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
7322         constants.
7323         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
7324         !TARGET_ABICALLS.
7325         (tls_get_tp_<mode>): New instruction.
7326
7327 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7328
7329         * configure.ac: Update checks for target tools.
7330         * configure: Regenerated.
7331
7332 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7333
7334         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
7335
7336 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7337
7338         * expmed.c (expand_mult): Use synthetic multiplication sequences for
7339         more classes of DImode multiplication by constant.  Allow both
7340         multiplication by small negative constants (by performing a
7341         multiplication by a positive constant and negating the result) and
7342         multiplications by large powers of two, by using a left shift.
7343
7344 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7345
7346         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
7347         of basic blocks into work_stack.
7348
7349         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
7350         config/mips/vr.h: Update copyright.
7351
7352         * c-decl.c (c_init_decl_processing): Remove useless calls to
7353         build_function_type.
7354
7355         * builtins.c (fold_trunc_transparent_mathfn,
7356         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
7357         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
7358         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
7359         fold_builtin_strcpy, fold_builtin_strncpy,
7360         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
7361         TREE_TYPE (exp).
7362
7363         * builtins.c (expand_builtin_mathfn_3): Remove local variable
7364         before_call.
7365
7366         * lambda-code.c (lambda_compute_auxillary_space): Remove local
7367         variable determinant.
7368
7369         * tree-cfg.c (group_case_labels): Remove local variable type.
7370
7371         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
7372         variable ann.
7373
7374         * tree-ssa-phiopt.c (value_replacement): Remove local variable
7375         result.
7376
7377 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
7378
7379         PR target/18251
7380         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
7381         (*movmemqi_insn): Delete.
7382         (*movmemhi): Delete.
7383
7384 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7385
7386         * builtins.c (fold_builtin_classify): Take decomposed
7387         arguments of CALL_EXPR.
7388         (fold_builtin_1): Update a call to fold_builtin_classify.
7389
7390 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
7391
7392         PR c/20402
7393         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
7394         through into call to parser_xref_tag after parse error.
7395         (c_parser_struct_declaration): Consistently return NULL_TREE on
7396         error.
7397
7398 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
7399
7400         * tree-flow-inline.h (ref_contains_array_ref): New function.
7401         (lookup_subvars_for_var): Ditto.
7402         (get_subvars_for_var): Ditto.
7403         (var_can_have_subvars): Ditto.
7404
7405         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
7406         (struct subvar): New type.
7407
7408         * tree-dfa.c (okay_component_ref_for_subvars): New function.
7409
7410         * tree-optimize.c (init_tree_optimization_passes): Call
7411         pass_create_structure_vars.
7412
7413         * tree-ssa-alias.c: Include vec.h.
7414         (init_alias_info): Don't auto-clear call clobbered on struct-field
7415         tags.
7416         (compute_flow_insensitive_aliasing): Handle subvars.
7417         (group_aliases): Handle STRUCT_FIELD aliases.
7418         (setup_pointers_and_addressables): Ditto.
7419         Don't mark variables non-addressable if they still have
7420         addressable subvars.
7421         Also mark subvars addressable when the real variable is marked
7422         addressable.
7423         (add_pointed_to_var): Try to prune the pointed-to set by only
7424         pointing to subvars when possible.
7425         Otherwise, make sure we set addresses_needed and pt_vars to
7426         properly include subvars.
7427         (bitpos_of_field): New function.
7428         (push_fields_onto_fieldstack): Ditto.
7429         (get_or_create_used_part_for): Ditto.
7430         (create_overlap_variables_for): Ditto.
7431         (find_used_portions): Ditto.
7432         (create_structure_vars): Ditto.
7433         (pass_create_structure_vars): New structure.
7434
7435         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
7436         (get_expr_operands): Handle subvars.  Also try to turn
7437         COMPONENT_REF accesses into must-defs now that we can accurately
7438         portray it.
7439         (note_addressable): Try to only mark as addressable those subvars
7440         we know a COMPONENT_REF touches.
7441         (overlap_subvar): New function.
7442
7443         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
7444         Handle subvar storing.
7445         (vect_address_analysis): Update caller of vect_object_analysis.
7446
7447         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
7448
7449         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
7450         (STMT_VINFO_SUBVARS): New macro.
7451
7452         * common.opts: add flag_tree_salias.
7453
7454         * opts.c (decode_options): flag_tree_salias defaults to on.
7455
7456         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
7457
7458         * doc/tree-ssa.texi: Document structural alias analysis.
7459
7460 2005-03-12  Steven Bosscher  <stevenb@suse.de>
7461
7462         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
7463         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
7464         * tree-ssa-operands.c (get_expr_operands): Likewise.
7465         (get_expr_operands): Likewise for ERROR_MARK.
7466
7467 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7468
7469         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
7470         var.
7471
7472         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
7473         removed_phis.
7474
7475         * tree-ssa-pre.c (compute_avail): Remove local variable val.
7476         (mark_operand_necessary): Remove local variable ver.
7477
7478         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
7479         variable prefix_len.
7480
7481         * value-prof.c (mod_subtract_transform): Remove local variable
7482         value.
7483
7484         * builtins.c (fold_builtin_exponent): Take decomposed
7485         arguments of CALL_EXPR.
7486         (fold_builtin_1): Update a call to fold_builtin_exponent.
7487
7488         * builtins.c (fold_builtin_logarithm): Take decomposed
7489         arguments of CALL_EXPR.
7490         (fold_builtin_1): Update a call to fold_builtin_logarithm.
7491
7492         * c-decl.c (c_init_decl_processing): Remove local variables
7493         ptr_ftype_void and ptr_ftype_ptr.
7494
7495         * gimplify.c (gimplify_expr): Remove local variables r0 and
7496         r1.
7497
7498         * reg-stack.c (move_for_stack_reg): Remove local variable
7499         push_insn.
7500         (compare_for_stack_reg): Remove local variable flags_user.
7501         (convert_regs_1): Remove local variable deleted.
7502
7503         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
7504         variable new_cond.
7505         (combine_blocks): Remove local variables exits and new_e.
7506
7507         * tree-inline.c (expand_call_inline): Remove local variable
7508         decl.
7509
7510         * tree-ssa-live.c (create_ssa_var_map,
7511         calculate_live_on_entry): Remove local variable snn.
7512
7513 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
7514
7515         * c-lex.c (c_lex_with_flags): Add parameter to call to
7516         cpp_spell_token.
7517
7518 2005-03-11  Per Bothner  <per@bothner.com>
7519
7520         * c-tree.h (struct c_declarator): New id_loc field.
7521         * c-pragma.h (c_lex_with_flags): Take position reference.
7522         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
7523         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
7524         (c_lex): Pass dummy location to c_lex_with_flags.
7525         * c-parser.c (c_lex_one_token): Set c_token's location using
7526         c_lex_with_flags, instead of input_location, which might be "ahead".
7527         (c_parser_direct_declarator): Set declarator's id_loc from
7528         c_token's id_loc.
7529         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
7530         declarator's id_loc, rather than probably-imprecise input_location.
7531         (build_id_declarator): Initialize c_declarator's id_loc field.
7532
7533 2005-03-11  Roger Sayle  <roger@eyesopen.com>
7534
7535         PR middle-end/20419
7536         * builtins.c (expand_builtin_signbit): Force the signbit's word
7537         into an integer register to avoid SUBREGs of floating point modes.
7538
7539 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7540
7541         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
7542         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
7543         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
7544         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
7545
7546 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
7547
7548         PR rtl-optimization/20306
7549         * expr.c (emit_move_complex): Set try_int false if mode is
7550         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
7551         emit_block_move if try_int is true.
7552
7553 2005-03-11  Richard Henderson  <rth@redhat.com>
7554
7555         PR target/20415
7556         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
7557         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
7558         to match.
7559
7560 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7561
7562         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
7563         (TARGET_FIX_VR4130): New macro.
7564         (TARGET_OPTIONS): Add -mfix-vr4130.
7565         (ISA_HAS_MACCHI): New macro.
7566         (ASM_SPEC): Add -mfix-vr4130.
7567         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
7568         (override_options): Handle mips_fix_vr4130_string.
7569         (mips_avoid_hazards): Clear all_noreorder_p
7570         if we're working around VR4130 errata and the macc alternatives
7571         are not available.
7572         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
7573         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
7574         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
7575         (MULTILIB_DEFAULTS): Remove leading "march=".
7576         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
7577         if no architecture option is given.
7578         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
7579         VR4130 multilibs.
7580         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
7581         * doc/invoke.texi: Document -mfix-vr4130.
7582
7583 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7584
7585         * config/mips/mips.c (override_options): Only warn about -mint64
7586         deprecation if TARGET_INT64.
7587
7588 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7589
7590         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
7591         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
7592         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
7593         are non-specific regarding the nonnull parameter positions.
7594         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
7595         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
7596         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
7597         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
7598
7599         * builtins.def: Use the non-specific "nonnull" attibute lists.
7600
7601 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7602
7603         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7604         single_pred_edge, single_succ, single_pred): Improve comments.
7605
7606 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7607
7608         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7609         single_pred_edge, single_succ, single_pred): New inline functions.
7610         * bb-reorder.c (rotate_loop, find_traces_1_round,
7611         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
7612         duplicate_computed_gotos): Use the single_succ/pred functions.
7613         * cfganal.c (forwarder_block_p): Ditto.
7614         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7615         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7616         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
7617         merge_seq_blocks): Ditto.
7618         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
7619         * cfglayout.c (fixup_reorder_chain): Ditto.
7620         * cfgloop.c (mark_single_exit_loops, update_latch_info,
7621         canonicalize_loop_headers, verify_loop_structure): Ditto.
7622         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
7623         mfb_update_loops, create_preheader, force_single_succ_latches,
7624         create_loop_notes): Ditto.
7625         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
7626         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
7627         commit_one_edge_insertion, purge_dead_edges,
7628         cfg_layout_can_merge_blocks_p): Ditto.
7629         * except.c (sjlj_emit_function_enter): Ditto.
7630         * flow.c (init_propagate_block_info): Ditto.
7631         * function.c (thread_prologue_and_epilogue_insns): Ditto.
7632         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
7633         insert_insn_end_bb): Ditto.
7634         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
7635         find_if_case_2): Ditto.
7636         * lambda-code.c (perfect_nestify): Ditto.
7637         * lcm.c (optimize_mode_switching): Ditto.
7638         * loop-doloop.c (doloop_modify): Ditto.
7639         * loop-init.c (loop_optimizer_init): Ditto.
7640         * loop-iv.c (simplify_using_initial_values): Ditto.
7641         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
7642         * loop-unswitch.c (unswitch_loop): Ditto.
7643         * modulo-sched.c (generate_prolog_epilog): Ditto.
7644         * predict.c (combine_predictions_for_insn, estimate_probability,
7645         tree_estimate_probability, last_basic_block_p,
7646         estimate_bb_frequencies): Ditto.
7647         * profile.c (branch_prob): Ditto.
7648         * regrename.c (copyprop_hardreg_forward): Ditto.
7649         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
7650         * tracer.c (layout_superblocks): Ditto.
7651         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
7652         cfg_remove_useless_stmts_bb, cleanup_control_flow,
7653         cleanup_control_expr_graph, disband_implicit_edges,
7654         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
7655         tree_verify_flow_info, tree_make_forwarder_block,
7656         tree_forwarder_block_p, remove_forwarder_block,
7657         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
7658         * tree-if-conv.c (tree_if_conversion): Ditto.
7659         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7660         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
7661         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
7662         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
7663         copy_loop_headers): Ditto.
7664         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
7665         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
7666         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
7667         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
7668         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
7669         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
7670         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
7671         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
7672         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
7673         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
7674         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
7675         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
7676         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
7677         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
7678         slpeel_add_loop_guard): Ditto.
7679
7680 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
7681
7682         PR tree-optimization/15784
7683         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
7684         and -1 - A to ~A.
7685
7686         * stmt.c (expand_case): Don't change index_type.  Convert minval
7687         to the proper type.
7688
7689         PR tree-optimization/20130
7690         * fold-const.c (fold): Fold x * -1 into -x.
7691
7692 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7693
7694         PR rtl-optimization/20331
7695         * rtlanal.c (modified_between_p): Check its address first for MEM.
7696         (modified_in_p): Likewise.
7697
7698 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
7699
7700         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
7701
7702 2005-03-10  Steven Bosscher  <stevenb@suse.de>
7703
7704         * expr.c (expand_expr_real_1): If possible, use a conditional
7705         move for expanding MIN_EXPR and MAX_EXPR.
7706         Use temp for moving around rtx-en.
7707
7708 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
7709
7710         PR rtl-opt/20412
7711         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
7712         correct mode.
7713
7714 2005-03-10  Roger Sayle  <roger@eyesopen.com>
7715
7716         * builtins.c (expand_builtin_signbit): Extend to handle floating
7717         point modes wider than the largest integer type, using the
7718         operand_subword_force function to obtain the signbit's word.
7719
7720 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7721
7722         PR target/20322
7723         * combine.c (try_combine): If recog_for_combine added CLOBBERs
7724         to NEWI2PAT, fail to combine if they are used by NEWPAT.
7725
7726 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
7727
7728         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
7729
7730 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
7731
7732         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
7733         type void.
7734         (perform_edge_inserts): Unconditionally call
7735         free_dominator_info.
7736
7737         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
7738
7739 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
7740
7741         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
7742
7743 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
7744
7745         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
7746
7747         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
7748         gcc_unreachable.
7749         (rtl_register_value_prof_hooks,
7750         tree_value_profile_transformations,
7751         tree_register_value_prof_hooks): Likewise.
7752         * var-tracking.c (stack_adjust_offset_pre_post,
7753         variable_htab_free, variable_union, dataflow_set_different_2,
7754         count_uses, variable_was_changed, set_frame_base_location,
7755         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
7756         vt_add_function_parameters): Likewise.
7757         * varasm.c (named_section_real, named_section, make_decl_rtl,
7758         asm_emit_uninitialised, assemble_integer, decode_addr_const,
7759         const_hash_1, compare_constant, copy_constant, force_const_mem,
7760         output_constant_pool_2, output_constant_pool_1, output_constant,
7761         output_constructor, make_decl_one_only, decl_tls_model,
7762         default_no_named_section, default_elf_select_section_1,
7763         default_unique_section_1): Likewise.
7764         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
7765         * vmsdbgout.c (addr_const_to_string): Likewise.
7766
7767         PR c++/20375
7768         * function.c (struct assign_parm_data_one): Remove last_named
7769         field.
7770         (assign_parm_find_data_types): Don't determine last_named.
7771         Reorder named_parm determination.
7772         (assign_parms): Only setup varargs on the last non-varadic
7773         parameter.
7774
7775 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
7776
7777         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
7778         sda base address on medium model.
7779
7780 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
7781
7782         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
7783         * cfgloop.c (flow_loop_nodes_find): Export.
7784         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
7785         Declare.
7786         * cfgloopmanip.c (fix_loop_structure): New function.
7787         * predict.c (predict_loops): Clean up the loops information.
7788         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
7789         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
7790         loop structure.
7791         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
7792         (rewrite_into_loop_closed_ssa): Declaration changed.
7793         * tree-loop-linear.c (linear_transform_loops): Add argument to
7794         rewrite_into_loop_closed_ssa call.
7795         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
7796         * tree-ssa-loop-im.c (move_computations): Ditto.
7797         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
7798         * tree-vectorizer.c (vectorize_loops): Ditto.
7799         * tree-optimize.c: Include cfgloop.h.
7800         (execute_todo): Choose whether to call cleanup_tree_cfg or
7801         cleanup_tree_cfg_loop.
7802         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
7803         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
7804         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
7805         cleanup_tree_cfg_loop call.
7806         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
7807         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
7808         work on part of cfg.
7809
7810 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7811
7812         PR inline-asm/20314
7813         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
7814         with multiple alternatives.
7815
7816         * stmt.c (parse_output_constraint): Fix a typo.
7817
7818 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
7819
7820         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
7821         assembly directive instead of deprecated "no-generics".
7822
7823 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
7824
7825         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
7826         for non-offsettable memory references to cope with outstanding reload
7827         replacements.
7828         * config/s390/s390.md ("reload_outti"): Call find_replacement to
7829         avoid losing outstanding address reloads.
7830         ("reload_outdi", "reload_outdf"): Likewise.
7831
7832 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7833
7834         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
7835         code.  Add more cbrt transformations.
7836
7837 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7838
7839         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
7840
7841 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7842
7843         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
7844         NULL_TREE when a given tree is not simplified.
7845         (fold): Return the original tree when any of the functions
7846         mentioned above NULL_TREE.
7847
7848         * fold-const.c (fold_unary, fold_binary): Take decomposed
7849         arguments, code, type, op0, and op1 in case of fold_binary.
7850         (fold): Update calls to fold_unary and fold_binary.
7851
7852 2005-03-09  Roger Sayle  <roger@eyesopen.com>
7853
7854         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
7855         a fndecl and an arglist instead of a CALL_EXPR, exp.
7856
7857 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7858
7859         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
7860
7861         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
7862
7863         * expr.c (expand_assignment): Remove orig_to_rtx.
7864
7865         * fold-const.c (int_const_binop): Remove no_overflow.
7866
7867         * ifcvt.c (noce_emit_move_insn): Remove inmode.
7868
7869         * loop-iv.c (get_biv_step_1): Remove lhs.
7870
7871         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
7872
7873         * real.c (real_nan): Remove neg.
7874
7875         * function.c (thread_prologue_and_epilogue_insns): Remove i
7876         and newinsn.
7877
7878         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
7879         tb.
7880
7881         * tree-eh.c (tree_could_trap_p): Remove idx.
7882
7883         * tree-into-ssa.c (ann): Remove ann.
7884
7885         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
7886
7887         * tree-sra.c (decide_block_copy): Remove inst_count.
7888
7889         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
7890
7891         * tree-ssa-loop-im.c (lhs): Remove.
7892
7893         * cfgbuild.c (state, STATE, SET_STATE,
7894         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
7895         make_edges.
7896         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
7897         (find_basic_blocks): Set the state of each basic block to
7898         BLOCK_NEW.
7899
7900 2005-03-08  Jeff Law  <law@redhat.com>
7901
7902         * tree-cfg.c (cleanup_control_flow): If removal of a computed
7903         goto results in the removal of edges in the CFG, then we need
7904         to recompute dominators.
7905
7906 2005-03-09  Ben Elliston  <bje@au.ibm.com>
7907
7908         * c-common.c (c_do_switch_warnings): Comment fix.
7909
7910 2005-03-08  Julian Brown  <julian@codesourcery.com>
7911
7912         * Patch from 2005-03-08 reverted for causing regressions and
7913         ppc-darwin bootstrap failure.
7914
7915 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
7916
7917         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
7918         Define the real function for ppc-darwin.
7919         * c-typeck.c (convert_arguments): Check for target-specific
7920         invalid argument call to unprototyped function.
7921         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
7922         New Macro.
7923         * target.h (invalid_arg_for_unprototyped_fn): New field
7924         in struct calls.
7925         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
7926         default target hook.
7927         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
7928         Declare.
7929
7930 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7931
7932         * c-typeck.c (constructor_stack, constructor_range_stack,
7933         initializer_stack): Make them static.
7934
7935         * cfg.c (rbi_pool): Make it static.
7936
7937         * gimple-low.c (lower_stmt_body): Make it static.
7938         * tree-flow.h: Remove the corresponding prototype.  Don't
7939         declare lower_data.
7940
7941         * sched-deps.c (cache_size): Make it static.
7942
7943         * stor-layout.c (lang_adjust_rli): Make it static.
7944
7945 2005-03-08  Julian Brown  <julian@codesourcery.com>
7946
7947         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
7948         from being used for symbols with vague linkage when
7949         HAVE_GAS_COMDAT_GROUP is true.
7950
7951 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
7952
7953         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
7954         nlabel == JUMP_LABEL (jump).
7955
7956 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7957
7958         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
7959         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
7960         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
7961         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
7962
7963 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
7964
7965         PR c/14411
7966         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
7967         * c-common.c (handle_returns_twice): New function.
7968         (c_common_attribute_table): Declare eturns_twice' attribute.
7969         * doc/extend.texi: Document eturns_twice' attribute.
7970         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
7971         (struct tree_decl): Add returns_twice_flag.
7972
7973 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7974
7975         * tree-ssa-phiopt.c: Fix a comment typo.
7976
7977         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
7978         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
7979         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
7980         copyright.
7981
7982 2005-03-08  Richard Henderson  <rth@redhat.com>
7983
7984         * config/alpha/alpha.c (code_for_builtin): Replace special-case
7985         builtin codes with ctzdi2, clzdi2, popcountdi2.
7986         (struct alpha_builtin_def): Add is_const.
7987         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
7988         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
7989         (alpha_init_builtins): Init them.  Set nothrow and const attributes
7990         on builtins.
7991         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
7992         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
7993         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
7994         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
7995         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
7996         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
7997         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
7998         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
7999         (TARGET_FOLD_BUILTIN): New.
8000         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
8001         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
8002         (ffsdi2): Use ctz.
8003         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
8004
8005 2005-03-08  Ira Rosen  <irar@il.ibm.com>
8006
8007         PR tree-optimization/20122
8008         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
8009         condition of access function instead of base.
8010
8011 2005-03-07  Jeff Law  <law@redhat.com>
8012             Steven Bosscher  <stevenb@suse.de>
8013
8014         * tree-cfg.c (find_taken_edge_computed_goto): New function.
8015         (find_taken_edge): Call find_taken_edge_computed_goto as
8016         appropriate.  Allow any gimple invariant rather than just
8017         INTEGER_CST for VAL.
8018         (cleanup_control_flow): Cleanup a computed goto which has turned
8019         into a simple goto.
8020         (tree_merge_blocks): If block B has any forced labels, move
8021         them to the start of block A.
8022         * tree-ssa-dom.c (thread_across_edge): Allow threading across
8023         computed gotos as well.
8024         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
8025         removal of unnecessary computed gotos too.
8026         (lookup_redirection_data): Fix type of INSERT argument.  Callers
8027         updated.
8028
8029 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8030
8031         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
8032         Remove trailing spaces.
8033
8034         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
8035         unshare_all_trees): Make them static.
8036         * tree-gimple.h: Remove the corresponding prototypes.
8037
8038         * diagnostic.h: Remove unused prototype
8039         debug_output_buffer.
8040         * modulo-sched.c: Remove unused prototype
8041         set_row_column_for_ps.
8042
8043         * tree-ssa-phiopt.c (tree_ssa_phiopt,
8044         replace_phi_edge_with_variable): Remove unused variable i.
8045
8046 2005-03-07  Per Bothner  <per@bothner.com>
8047
8048         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
8049
8050 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
8051
8052         PR tree-opt/17671
8053         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
8054         bbs on the COND_EXPR instead of the PHI_NODEs.
8055         (candidate_bb_for_phi_optimization): Remove.
8056         (replace_phi_with_stmt): Rename to ...
8057         (replace_phi_edge_with_variable): this and change so that we
8058         replace the phi argument instead of removing the PHI.
8059         (conditional_replacement): Change so we deal with PHI with more
8060         than two arguments.
8061         (value_replacement): Likewise.
8062         (abs_replacement): Likewise.
8063
8064 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
8065
8066         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
8067         output_e500_flip_gt_bit.
8068
8069         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
8070         as bit 31.
8071         (rs6000_generate_compare): Fix logic to look at the correct bits.
8072         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
8073         Look at GT bit.
8074         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
8075         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
8076         gen_move_from_CR_gt_bit.
8077
8078         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
8079         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
8080         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
8081
8082         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
8083         (E500_CR_IOR_COMPARE): New constant.
8084
8085 2005-03-08  Earl Chew <earl_chew@agilent.com>
8086             David Billinghurst <David.Billinghurst@riotinto.com>
8087
8088         * config/i386/host-cygwin.c: New file to support precompiled
8089         headers on cygwin
8090         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
8091         * config.host: Use above files for cygwin host.
8092
8093 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
8094
8095         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
8096         ordering ops from earlier change.
8097
8098 2005-03-07  Per Bothner  <per@bothner.com>
8099
8100         Various fixes to allow us to again build if --enable-mapped-location:
8101         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
8102         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
8103         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
8104         local variable loc. Change logic appropriately.
8105         * tree-vect-transform.c (vect_finish_stmt_generation): Use
8106         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
8107         * c-parser.c (c_parser_for_statement): Initialize loc variable.
8108         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
8109         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
8110
8111 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
8112
8113         PR rtl-optimization/19683
8114         * reload1.c (choose_reload_regs): Pass the number of bits, not the
8115         number of bytes, to smallest_int_for_mode.  Fix arguments to
8116         REG_CANNOT_CHANGE_MODE_P.
8117
8118 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8119
8120         * reorg.c (relax_delay_slots): Check that the jump is
8121         conditional before trying to invert it.
8122
8123 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8124
8125         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
8126         Make them static.
8127
8128         * calls (stack_arg_under_construction): Make it static.
8129
8130         * flow.c (regs_live_at_setjmp): Make it static.
8131         * flow.h: Remove the corresponding prototype.
8132
8133         * reload1.c (reload_startobj, reload_firstobj,
8134         something_needs_operands_changed, reload_inherited,
8135         reload_inheritance_insn, reload_override_in,
8136         reload_spill_index): Make them static.
8137
8138         * recog.c (verify_changes): Make it static.
8139         * recog.h: Remove the corresponding prototype.
8140
8141         * cfgbuild.c (find_sub_basic_blocks): Remove.
8142         * basic-block.h: Remove the corresponding prototype.
8143         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
8144         in comments.
8145         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
8146
8147         * tree-ssa-operands.c (check_build_stmt): Remove.
8148
8149         * stor-layout.c (set_alignment): Remove.
8150         * tree.h: Remove the corresponding prototype.
8151
8152         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
8153
8154         * tree-ssa-dce.c (control_dependence_map,
8155         visited_control_parents): Make them static.
8156
8157         * cfghooks.c (verify_flow_info): Remove local variable
8158         num_bb_notes.
8159
8160         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
8161         last_bb_seen.
8162
8163         * loop-unswitch.c (unswitch_loop): Remove local variable src.
8164
8165 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
8166
8167         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
8168
8169 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
8170
8171         * config/ia64/hpux.h (LINK_SPEC): Add -z.
8172         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
8173         PARALLEL for an empty structure.
8174
8175 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8176
8177         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
8178
8179         * fold-const.c (fold_binary): Unroll the very first "for"
8180         loop.
8181
8182 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
8183
8184         * config/rs6000/predicates.md (branch_comparison_operator): Remove
8185         redundant match_code test.
8186         (scc_comparison_operator): Swap match_operand and match_code
8187         tests.
8188         (branch_positive_comparison_operator): Same.
8189         (trap_comparison_operator): Use comparison_operator and swap with
8190         match_code test.
8191
8192 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8193
8194         PR target/20288
8195         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
8196         (out_movhi_r_mr): Read low byte of volatile MEM first.
8197         (out_movhi_mr_r): Write high byte of volatile MEM first.
8198
8199 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8200
8201         * cselib.c (reg_values, reg_values_size): Make them static.
8202
8203         * cse.c (cse_reg_info_table): Make it static.
8204
8205         * fold-const.c (fold_unary): Use build1 instead of copy_node.
8206
8207 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
8208
8209         * cse.c (find_best_addr): Use canon_for_address.
8210
8211 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8212
8213         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
8214         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
8215         SUBREG and MEM, respectively.
8216
8217         * fold-const.c (fold_binary): Use code instead of t.
8218
8219         * fold-const.c (optimize_minmax_comparison): Take decomposed
8220         arguments code, type, op0, and op1 instead of t.
8221         (fold_binary): Update a call to optimize_minmax_comparison.
8222
8223         * fold-const.c (fold_range_test): Take decomposed arguments
8224         code, type, op0, and op1 instead of t.
8225         (fold_binary): Update a call to fold_range_test.
8226
8227         * fold-const.c (fold_binary_op_with_conditional_arg): Take
8228         decomposed arguments code, type, op0, and op1 instead of t.
8229         (fold_binary): Update a call to fold_range_test.
8230
8231 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8232
8233         * fold-const.c (fold_binary): Avoid directly using the original
8234         expression t as much as possible.
8235
8236 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8237
8238         * c-semantics.c (build_stmt): Use TYPE_P instead of
8239         IS_NON_TYPE_CODE_CLASS.
8240         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
8241         (NON_TYPE_CHECK): Use TYPE_P instead of
8242         IS_NON_TYPE_CODE_CLASS.
8243
8244         * fold-const.c (fold): Remove handling of binary expressions.
8245
8246 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
8247
8248         * doc/c-tree.texi: Wrap comments in @r{}.
8249         * doc/cpp.texi: Likewise.
8250         * doc/cppinternals.texi: Likewise.
8251         * doc/extend.texi: Likewise.
8252         * doc/md.texi: Likewise.
8253         * doc/objc.texi: Likewise.
8254         * doc/sourcebuild.texi: Likewise.
8255         * doc/tm.texi: Likewise.
8256         * doc/tree-ssa.texi
8257
8258 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8259
8260         * predict.c (apply_return_prediction): Standardize PHI chain
8261         walking.
8262         * tree-ssa.c (ssa_redirect_edge): Likewise.
8263
8264         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
8265         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
8266         Update copyright.
8267
8268         * tree-phinodes.c (remove_phi_node): Drop the last argument.
8269         * tree-flow.h: Adjust the prototype for remove_phi_node.
8270         * lambda-code.c (perfect_nestify): Adjust a call to
8271         remove_phi_node.
8272         * tree-cfg.c
8273         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
8274         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
8275         Likewise.
8276         * tree-ssa-dce.c (remove_dead_phis): Likewise.
8277         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
8278         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8279         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
8280
8281         * combine.c (simplify_and_const_int): Use gen_int_mode instead
8282         of GEN_INT (trunc_int_for_mode (...)).
8283         * loop-iv.c (iv_number_of_iterations): Likewise.
8284         * postreload.c (reload_cse_move2add): Likewise.
8285         * simplify-rtx.c (simplify_const_unary_operation,
8286         simplify_const_binary_operation): Likewise.
8287         * stor-layout.c (get_mode_bounds): Likewise.
8288
8289         * fold-const.c (fold_binary): New.
8290         (fold): Call fold_binary on binary expressions.
8291
8292 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
8293
8294         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
8295         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
8296         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
8297         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
8298         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
8299
8300 2005-03-04  Devang Patel  <dpatel@apple.com>
8301
8302         PR tree-optimization/18815
8303         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8304         loops with zero exit edges.
8305
8306 2005-03-04  Devang Patel  <dpatel@apple.com>
8307
8308         * doc/invoke.texi: Remove reference to webpage that does not exist.
8309
8310 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
8311             Joseph S. Myers  <joseph@codesourcery.com>
8312
8313         PR c++/19797
8314         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
8315         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
8316         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
8317         * pa.c (get_plabel): Change argument to symbol_ref.  Call
8318         maybe_get_identifier instead of get_identifier.
8319         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
8320         (struct deferred_plabel): Replace name field with symbol field.
8321         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
8322         ASM_OUTPUT_EXTERNAL_REAL is defined.
8323         (output_global_address): Use output_addr_const for output of all
8324         symbol_refs.
8325         (output_deferred_plabels): Use symbol_ref instead of name for address
8326         output.
8327         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
8328         ASM_OUTPUT_SYMBOL_REF): New macros.
8329         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
8330         comment.
8331         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
8332         label.
8333
8334 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
8335
8336         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
8337         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
8338
8339 2005-03-04  Jeff Law  <law@redhat.com>
8340
8341         * basic-block.h (rediscover_loops_after_threading): Declare.
8342         * tree-ssa-dom.c: Include cfgloop.h.
8343         (tree_ssa_dominator_optimize): Discover loops and some basic
8344         properties.  Remove forwarder blocks recreated by loop header
8345         canonicalization.  Also mark backedges in the CFG.
8346         * tree-ssa-threadupdate.c: Include cfgloop.h
8347         (rediscover_loops_after_threading): Define.
8348         (struct local_info): New field, JUMP_THREADED.
8349         (prune_undesirable_thread_requests): New function.
8350         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
8351         then record that fact for the callers of redirct_edges.
8352         (thread_block): If BB has incoming backedges, then call
8353         prune_undesirable_thraed_requests.    Note when we are
8354         going to have to rediscover loop information.  Return a
8355         boolean indicating if any jumps were threaded.
8356         (thread_through_all_blocks): Bubble up boolean indicating
8357         if any jumps were threaded.
8358         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
8359         (tree-ssa-threadupdate.o): Similarly.
8360
8361 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8362
8363         * fold-const.c (fold_ternary): Unroll the "for" loop to
8364         extract operands.
8365
8366 2005-03-04  Andrew Haley  <aph@redhat.com>
8367
8368         * unwind-dw2-fde-glibc.c (struct
8369         unw_eh_callback_data.check_cache): New field.
8370         (frame_hdr_cache): New.
8371         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
8372         Cache frame header info.
8373
8374 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
8375
8376         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8377         (print_c_condition): Declare.
8378         * read-rtl.c (ptr_loc): New structure.
8379         (ptr_locs, ptr_loc_obstack, joined_conditions)
8380         (joined_conditions_obstack): New variables.
8381         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
8382         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8383         (join_c_conditions, print_c_condition): New functions.
8384         (apply_macro_to_string): Associate the new string with the same
8385         source location as the old one.
8386         (add_condition_to_string): Use join_c_conditions.
8387         (read_string): Use set_rtx_ptr_loc to record a filename and line
8388         number for the string.
8389         (read_rtx): Initialize the new variables above.
8390         * genattrtab.c (write_test_expr, write_attr_value): Use
8391         print_c_condition.
8392         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
8393         comment above the GCC_VERSION check.
8394         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
8395         Inline the definition of MAYBE_EVAL.
8396         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
8397         * genoutput.c (process_template): Likewise.
8398         * genpreds.c (write_predicate_subfunction): Likewise.
8399         (write_predicate_expr): Use print_c_condition.
8400         * genrecog.c (write_cond): Likewise.
8401         * gensupport.c (process_rtx): Use join_c_conditions to join the
8402         conditions of a define_insn_and_split.  Record a source location
8403         for the string after the "&&".
8404         (alter_test_for_insn): Use join_c_conditions.
8405
8406 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
8407
8408         Revert for now:
8409         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8410         PR tree-optimization/15784
8411         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8412         and -1 - A to ~A.
8413
8414 2005-03-04  Ben Elliston  <bje@au.ibm.com>
8415
8416         * gcc.c (option_map): Add --coverage.
8417         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
8418         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
8419         * config/darwin.h: Pass -lgcov for `coverage'.
8420         * doc/invoke.texi (Debugging Options): Document --coverage.
8421
8422 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8423
8424         * gcse.c (bypass_block): Use find_edge wherever possible.
8425
8426 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
8427
8428         Fix PR debug/20253
8429
8430         * c-opts.c (c_common_parse_file): Call start_source_file
8431         and end_source_file at the approriate times.
8432
8433         * dwarf2out.c (dwarf2out_finish): Don't auto-end
8434         the main file, it will be done for us now.
8435
8436 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8437
8438         * fold-const.c (fold_ternary): New.
8439         (fold): Call fold_ternary on ternary expressions.  Remove
8440         handling of ternary expressions.
8441
8442 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8443
8444         PR tree-optimization/15784
8445         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8446         and -1 - A to ~A.
8447
8448 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
8449
8450         * config/rs6000/predicates.md (branch_comparison_operator):
8451         Convert from C block to conditional format.
8452
8453 2005-03-03  Jan Hubicka  <jh@suse.cz>
8454
8455         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
8456         and non-constant public variables.
8457
8458 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8459
8460         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
8461         with LABEL_EXPR.
8462
8463         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
8464         EDGE_I.
8465
8466         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
8467         calls to release_ssa_name and release_phi_node.
8468
8469         * fold-const.c (fold): Remove handling of unary expressions.
8470
8471         * fold-const.c (fold_unary): Avoid directly using the original
8472         expression t as much as possible.
8473
8474 2005-03-03  Roger Sayle  <roger@eyesopen.com>
8475             Andrew Pinski  <pinskia@physics.uc.edu>
8476
8477         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
8478         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
8479
8480 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
8481
8482         Describe special registers SRP and MOF as allocatable registers.
8483         * config/cris/cris.c (cris_md_asm_clobbers): New function.
8484         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
8485         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
8486         TARGET_HAS_MUL_INSNS.
8487         (cris_print_operand) <case 'd'>: New case.
8488         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
8489         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
8490         define.
8491         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
8492         (REG_ALLOC_ORDER): Update for MOF.
8493         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
8494         SPECIAL_REGS.
8495         (GENERAL_REGS): No longer a define of ALL_REGS.
8496         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
8497         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
8498         Adjust accordingly.
8499         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
8500         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
8501         (SECONDARY_RELOAD_CLASS): Define.
8502         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
8503         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
8504         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
8505         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
8506         (REGISTER_MOVE_COST): Define.
8507         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
8508         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
8509         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
8510         (CRIS_MOF_REGNUM): New define_constants.
8511         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
8512         special registers.
8513         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
8514         New patterns.
8515         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
8516         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
8517         Adjust for MOF being properly described as a register.
8518         (indir_to_reg_split): Name this split.  Conditionalize on the
8519         destination register being a general register.
8520         (movei): Conditionalize on on operands 0 and 1 having the same
8521         register class.
8522
8523 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
8524
8525         PR target/20277
8526         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
8527         -mcpu to override any other explicitly given flags.
8528
8529 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
8530
8531         * recog.c (verify_changes, confirm_change_group): New functions,
8532         broken out of apply_change_group.
8533         (apply_change_group): Use them.
8534         * recog.h (verify_change, confirm_change_group): Declare.
8535         * rtl.h (redirect_jump_2): Declare.
8536         * jump.c (redirect_exp, invert_exp): Delete.
8537         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
8538         (redirect_jump_2): New function, broken out of redirect_jump.
8539         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
8540         (invert_jump): Use invert_jump_1 and redirect_jump_2.
8541         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
8542
8543 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
8544
8545         * varasm.c (named_section): Use xstrdup rather than doing it by
8546         hand.
8547
8548         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
8549
8550 2005-03-02  Devang Patel  <dpatel@apple.com>
8551
8552         Undo PR tree-optimization/18815 fix.
8553
8554 2005-03-02  Devang Patel  <dpatel@apple.com>
8555
8556         PR tree-optimization/18815
8557         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8558         loops with zero exit edges.
8559
8560 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8561
8562         * cfg.c (connect_src, connect_dest, disconnect_src,
8563         disconnct_dest): New.
8564         (unchecked_make_edge, remove_edge, redirect_edge_succ,
8565         redirect_edge_pred): Use the new functions.
8566
8567         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
8568         free_dominance_info only when needed.
8569
8570 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
8571
8572         PR target/20276
8573         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
8574         (reg_or_sub_cint64_operand): Same.
8575
8576 2005-03-02  Jeff Law  <law@redhat.com>
8577
8578         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
8579         CFG_ALTERED in the main DOM iteration loop.
8580
8581 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
8582
8583         PR c++/19916
8584         * varasm.c (initializer_constant_valid_p): Allow conversions
8585         between OFFSET_TYPEs.  Tidy.
8586
8587 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
8588
8589         * config/cris/cris.md ("return"): Remove epilogue delay list
8590         sanity check.
8591
8592 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
8593
8594         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
8595         for Thumb.
8596         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
8597
8598 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8599
8600         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
8601         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
8602         config/m68k/m68k.c, config/mips/mips.h,
8603         config/rs6000/rs6000-protos.h, doc/contrib.texi,
8604         doc/include/gcc-common.texi: Update copyright.
8605
8606         PR middle-end/18029 and PR middle-end/18030
8607         * expr.c (optimize_bitfield_assignment_op): Add a special case
8608         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
8609
8610         * fold-const.c (fold_unary): New.
8611         (fold): Call fold_unary on unary expressions.
8612
8613 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
8614
8615         * cgraph.h (struct cgraph_edge): Add prev_caller and
8616         prev_callee fields.
8617         (cgraph_node_remove_callees): Export.
8618         * cgraph.c (cgraph_create_edge): Initialize prev_caller
8619         and prev_callee.
8620         (cgraph_edge_remove_callee): New function.
8621         (cgraph_edge_remove_caller): Likewise.
8622         (cgraph_remove_edge): Use.
8623         (cgraph_redirect_edge_callee): Likewise.
8624         (cgraph_node_remove_callees): New function.
8625         (cgraph_node_remove_callers): Likewise.
8626         (cgraph_remove_node): Use.
8627         * tree-optimize.c (tree_rest_of_compilation): Use
8628         cgraph_node_remove_callees instead of manual loop.
8629         * cgraphunit.c (cgraph_finalize_function): Likewise.
8630         (cgraph_expand_function): Likewise.
8631         (cgraph_remove_unreachable_nodes): Likewise.
8632
8633 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
8634
8635         PR c/8927
8636         * c-tree.h (undeclared_variable, build_external_ref): Add extra
8637         argument.
8638         * c-decl.c (undeclared_variable): Take location as argument.
8639         * c-typeck.c (build_external_ref): Likewise.
8640         * c-parser.c (c_parser_postfix_expression): Pass location of
8641         identifier to build_external_ref.
8642
8643 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8644
8645         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
8646         CCEQ mode for branch_positive_comparison_operator test.
8647         * config/rs6000/predicates (branch_comparison_operator): Revert to
8648         define_predicate.
8649         (scc_comparison_operator): Same.
8650         (branch_positive_comparison_operator): Same.
8651
8652 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
8653
8654         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
8655         (cris_delay_slots_for_epilogue): Remove.
8656         (save_last): Move into cris_target_asm_function_epilogue.
8657         (cris_target_asm_function_epilogue): Remove tests for file being
8658         NULL.
8659         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
8660         (cris_delay_slots_for_epilogue): Remove prototypes.
8661         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
8662         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
8663
8664 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8665
8666         * config/rs6000/predicates.md (branch_comparison_operator): Change
8667         to define_special_predicate.
8668         (scc_comparison_operator): Same.
8669         (branch_positive_comparison_operator): Same.
8670
8671 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
8672
8673         * Makefile.in (tree-ssa-sink.o): New.
8674         (OBJS-common): Add tree-ssa-sink.o.
8675         * common.opt: Add -ftree-sink
8676         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
8677         * timevar.def (TV_TREE_SINK): new timevar.
8678         * tree-flow.h (is_hidden_global_store): Prototype.
8679         * tree-optimize.c (init_tree_optimization_passes): Add
8680         pass_sink_code.
8681         * tree-pass.h (pass_sink_code): New.
8682         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
8683         for non-obvious global store store to is_hidden_global_store, and
8684         call that new function.
8685         * tree-ssa-sink.c: New file.
8686         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
8687         * doc/passes.texi: Document forward store motion.
8688         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
8689         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
8690         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
8691         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
8692
8693 2005-03-01  Per Bothner  <per@bothner.com>
8694
8695         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
8696         and we have a non-zero column-number, add it to the message.
8697         Also factor out the diagnostic_kind_text.
8698
8699 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
8700
8701         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8702         flow_loop_pre_header_scan, flow_loop_pre_header_find,
8703         flow_loop_scan): Removed.
8704         (flow_loop_dump): Do not dump removed fields.
8705         (flow_loop_free): Do not free removed fields.
8706         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
8707         (loop_exit_edge_p): New function.
8708         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
8709         num_pre_header_edges, entry_edges, num_entries, exit_edges,
8710         num_exits, exits_doms.
8711         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
8712         LOOP_EDGES, LOOP_ALL): Removed.
8713         (flow_loop_scan): Declaration removed.
8714         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
8715         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
8716         flow_loops_find.
8717         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
8718         (if_convert): Call flow_loops_find and flow_loops_free
8719         when calling mark_loop_exit_edges.
8720         * cfgloopanal.c (mark_loop_exit_edges): Moved from
8721         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
8722         free_dominance_info calls.
8723         * loop-init.c (flow_loops_find): Ditto.
8724         * passes.c (rest_of_handle_branch_prob): Ditto.
8725         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
8726         * loop-unroll.c (analyze_insns_in_loop): Do not use
8727         EDGE_LOOP_EXIT.
8728         * predict.c (predict_loops): Do not call flow_loop_scan.
8729         Use get_loop_exit_edges.
8730         (tree_estimate_probability): Do not pass flags to flow_loops_find.
8731         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
8732         Do not use EDGE_LOOP_EXIT.
8733         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
8734         to bb_with_exit_edge_p.
8735         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
8736         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
8737         to bb_with_exit_edge_p.
8738         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
8739         EDGE_LOOP_EXIT.
8740         * tree-loop-linear.c (linear_transform_loops): Do not call
8741         flow_loop_scan.  Use loop->single_exit.
8742         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
8743         (vect_analyze_loop_form): Do not call flow_loop_scan.
8744         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
8745         loop->single_exit.
8746         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
8747         loop->single_exit.
8748         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
8749         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
8750         slpeel_tree_duplicate_loop_to_edge_cfg,
8751         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
8752         Use loop_preheader_edge and loop->single_exit.  Do not call
8753         flow_loop_scan.
8754
8755 2005-03-01  Nick Clifton  <nickc@redhat.com>
8756
8757         * config/arm/arm.c (thumb_find_work_register): Check all of the
8758         argument registers to see if they are free, and a couple of
8759         special cases where the last argument register but can be proved
8760         to be available during the function's prologue.
8761         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
8762         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
8763         thumb_unexpanded_epilogue): Use unsigned long as the type for the
8764         register bit-mask.
8765         (thumb_compute_save_reg_mask): Likewise.  Also use
8766         thumb_find_work_register() to ensure that there is agreement about
8767         which work register is going to be used in the prologue.
8768         (thumb_output_function_prologue): Use unsigned long as the type
8769         for the register bit-mask.  Also delay pushing the link register if
8770         other high registers are going to be pushed.
8771         (thumb_compute_save_reg_mask, emit_multi_reg_push,
8772         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
8773         redundant prototypes.
8774
8775 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
8776
8777         PR target/19819
8778         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
8779         and after reload in REG+REG indexed addresses without REG_POINTER
8780         set in the base and not set in the index.
8781
8782 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8783
8784         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
8785         Don't undefine here.
8786         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
8787         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
8788         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
8789         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
8790         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
8791         Delete.
8792         * config.gcc (sh*-*-linux*): Use config/linux.h.
8793
8794 2005-02-28  Dale Johannesen  <dalej@apple.com>
8795             Stan Shebs  <shebs@apple.com>
8796
8797         Rewrite of 64-bit Darwin structure-by-value pass/return.
8798         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
8799         intoffset, use_stack, named.
8800         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
8801         (rs6000_darwin64_record_arg_advance_flush):  New.
8802         (rs6000_darwin64_record_arg_advance_recurse): New.
8803         (rs6000_darwin64_record_arg_flush):  New.
8804         (rs6000_darwin64_record_arg_recurse):  New.
8805         (rs6000_darwin64_record_arg):  New.
8806         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
8807         (function_arg_boundary):  Handle 128-bit aligned structs.
8808         (function_arg_advance):  Rewrite darwin64 struct handling.
8809         (function_arg):  Call rs6000_darwin64_record_arg.
8810         (function_arg_partial_nregs):  Handle darwin64 structs.
8811         (rs6000_darwin64_function_value):  Remove.
8812         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
8813
8814 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8815
8816         PR tree-optimization/20216
8817         * tree-chrec.c (tree_fold_factorial): Delete.
8818         (tree_fold_binomial): Change argument list to take a return type
8819         and change the type of K to unsigned int.  Rewrite to avoid explicit
8820         evaluation of factorials, and (recursively) calling fold to perform
8821         compile-time arithmetic.  Return NULL on (internal) overflow.
8822         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
8823         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
8824         if any intermediate calculation overflows.
8825         (chrec_apply): Update call to chrec_evaluate.
8826
8827 2005-02-28  James E Wilson  <wilson@specifixinc.com>
8828
8829         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
8830
8831 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
8832
8833         PR c/20245
8834         * c-parser.c (c_parser_compound_statement): Return error_mark_node
8835         instead of NULL_TREE on error.
8836
8837 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
8838
8839         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
8840         (EASY_VECTOR_15_ADD_SELF): Remove.
8841         (num_insns_constant_wide): Not static.
8842         (validate_condition_mode): Not static.
8843         (toc_relative_expr_p): Not static.
8844         (legitimate_indirect_address_p): Not static.
8845         (macho_lo_sum_memory_operand): Not static.
8846         (invalid_e500_subreg): Not static.
8847         (easy_vector_same): Not static.
8848         (easy_vector_splat_const): Not static.
8849         (RS6000_SYMBOL_REF_TLS_P): Remove.
8850         (any_operand): Delete.
8851         (any_parallel_operand): Delete.
8852         (count_register_operand): Delete.
8853         (altivec_register_operand): Delete.
8854         (xer_operand): Delete.
8855         (s8bit_cint_operand): Delete.
8856         (short_cint_operand): Delete.
8857         (u_short_cint_operand): Delete.
8858         (non_short_cint_operand): Delete.
8859         (exact_log2_cint_operand): Delete.
8860         (gpc_reg_operand): Delete.
8861         (cc_reg_operand): Delete.
8862         (cc_reg_not_cr0_operand): Delete.
8863         (reg_or_short_operand): Delete.
8864         (reg_or_neg_short_operand): Delete.
8865         (reg_or_aligned_short_operand): Delete.
8866         (reg_or_u_short_operand): Delete.
8867         (reg_or_cint_operand): Delete.
8868         (reg_or_arith_cint_operand): Delete.
8869         (reg_or_add_cint64_operand): Delete.
8870         (reg_or_sub_cint64_operand): Delete.
8871         (reg_or_logical_cint_operand): Delete.
8872         (got_operand): Delete.
8873         (got_no_const_operand): Delete.
8874         (easy_fp_constant): Delete.
8875         (easy_vector_constant): Delete.
8876         (easy_vector_constant_add_self): Delete.
8877         (zero_constant): Delete.
8878         (zero_fp_constant): Delete.
8879         (volatile_mem_operand): Delete.
8880         (offsettable_mem_operand): Delete.
8881         (mem_or_easy_const_operand): Delete.
8882         (add_operand): Delete.
8883         (non_add_cint_operand): Delete.
8884         (logical_operand): Delete.
8885         (non_logical_cint_operand): Delete.
8886         (mask_operand): Delete.
8887         (mask_operand_wrap): Delete.
8888         (mask64_operand): Delete.
8889         (mask64_2_operand): Delete.
8890         (and64_operand): Delete.
8891         (and64_2_operand): Delete.
8892         (and_operand): Delete.
8893         (reg_or_mem_operand): Delete.
8894         (lwa_operand): Delete.
8895         (symbol_ref_operand): Delete.
8896         (call_operand): Delete.
8897         (current_file_function_operand): Delete.
8898         (input_operand): Delete.
8899         (rs6000_nonimmediate_operand): Delete.
8900         (rs6000_tls_symbol_ref): Delete.
8901         (save_world_operation): Delete.
8902         (restore_world_operation): Delete.
8903         (load_multiple_operation): Delete.
8904         (store_multiple_operation): Delete.
8905         (vrsave_operation): Delete.
8906         (mfcr_operation): Delete.
8907         (mtcrf_operation): Delete.
8908         (lmw_operation): Delete.
8909         (stmw_operation): Delete.
8910         (branch_comparison_operator): Delete.
8911         (branch_positive_comparison_operator): Delete.
8912         (scc_comparison_operator): Delete.
8913         (trap_comparison_operator): Delete.
8914         (boolean_operator): Delete.
8915         (boolean_or_operator): Delete.
8916         (min_max_operator): Delete.
8917         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
8918         (EASY_VECTOR_15): Moved to here.
8919         (EASY_VECTOR_15_ADD_SELF): Move to here.
8920         (PREDICATE_CODES): Delete.
8921         * config/rs6000/rs6000-protos.h: Delete predicate functions.
8922         Declare functions no longer static.
8923         * config/rs6000/predicates.md: New.
8924         * config/rs6000/rs6000.md: Include predicates.md
8925
8926 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8927
8928         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
8929         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
8930         REG_ALWAYS_RETURN.
8931         * cfgrtl.c (need_fake_edge_p): Likewise.
8932         * combine.c (distribute_notes): Likewise.
8933         * emit-rtl.c (try_split): Likewise.
8934         * recog.c (peephole2_opimize): Likewise.
8935         * reg-notes.def (ALWAYS_RETURN): Remove.
8936         * rtl.h (LCT_ALWAYS_RETURN): Remove.
8937         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
8938         * tree.h (ECF_ALWAYS_RETURN): Remove.
8939
8940 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8941
8942         PR middle-end/19874
8943         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
8944         between different machine modes is never a "useless" conversion.
8945
8946 2005-02-28  Geert Bosch  <bosch@gnat.com>
8947
8948         PR ada/15977
8949         * doc/contrib.texi: List contributors for Ada front end
8950
8951 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
8952
8953         * simplify-rtx.c (simplify_unary_operation_1,
8954         simplify_const_unary_operation): New, extracted from...
8955         (simplify_unary_operation): ... this one.
8956         (simplify_binary_operation_1,
8957         simplify_const_binary_operation): New, extracted from...
8958         (simplify_binary_operation): ... this one.
8959         * rtl.h (simplify_const_unary_operation,
8960         simplify_const_binary_operation): Add prototypes.
8961
8962 2005-02-28  Julian Brown  <julian@codesourcery.com>
8963
8964         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
8965         building libjava and caused PR regression/20228.
8966
8967 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
8968
8969         PR bootstrap/17383
8970         * Makefile.in (host_subdir): New.
8971         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
8972         * configure: Regenerate.
8973
8974 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
8975
8976         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
8977         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
8978         installation directory first.
8979
8980 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
8981
8982         PR target/19065.
8983         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
8984         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
8985         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
8986         * config/cris/cris.md: Tweak comments referring to Q.
8987         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
8988         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
8989         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
8990         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
8991         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
8992         Insert spaces in constraints to align alternatives vertically for
8993         readability.
8994         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
8995         operand 1: "M".
8996
8997 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8998
8999         PR rtl-optimization/17728
9000         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
9001         operand 0 from general_operand to move_dest_operand.
9002
9003 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9004
9005         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
9006         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
9007         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
9008         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
9009
9010 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
9011
9012         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
9013         * configure: Regenerate.
9014         * libada-mk.in: Remove CC; rename
9015         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
9016
9017 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
9018
9019         PR tree-opt/20188
9020         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
9021         for the lhs, also walk over the tree.  Likewise for rhs.
9022
9023 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
9024
9025         * tree-ssa-dom.c (simple_iv_increment_p): New function.
9026         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
9027         Do not propagate value of iv before increment over the increment.
9028
9029 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
9030
9031         * c-parser.c: New file.
9032         * c-parse.in: Remove.
9033         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
9034         Remove.
9035         (c-parser.o): Add dependencies.
9036         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
9037         maintainer-clean, TAGS): Update.
9038         * c-config-lang.in (gtfiles): Update.
9039         * gengtype-lex.l: Don't handle "@@".
9040         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
9041         objc_build_synchronized, objc_begin_try_stmt,
9042         objc_begin_catch_clause, objc_finish_catch_clause,
9043         objc_build_finally_clause, objc_finish_try_stmt): New.
9044         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
9045         type_seen_p.
9046         (c_parse_init): Update comment.
9047         * c-decl.c (c_init_decl_processing): Update comment.
9048         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
9049         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
9050         new c_declspecs members.
9051
9052 2005-02-25  Julian Brown  <julian@codesourcery.com>
9053
9054         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
9055         from being used for symbols with vague linkage when
9056         HAVE_GAS_COMDAT_GROUP is true.
9057
9058 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
9059
9060         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
9061
9062 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
9063
9064         PR target/19930
9065         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
9066         (LIBGCC2_HAS_DF_MODE): New.
9067         (LIBGCC2_HAS_XF_MODE): New.
9068         (LIBGCC2_HAS_TF_MODE): New.
9069         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
9070         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
9071         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
9072         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
9073         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
9074         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
9075         and add _fixtfdi, _fixunstfdi, _floatditf
9076         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
9077         L_fixunstfdi, L_floatditf.
9078         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
9079         (LIBGCC2_HAS_TF_MODE): Define.
9080
9081 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
9082
9083         PR tree-optimization/20204
9084         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
9085         REWRITE_THIS_STMT markers on PHI nodes.
9086         (rewrite_initialize_block): Likewise.
9087
9088 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
9089
9090         * version.c (version_string): Update to 4.1.
9091
9092 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
9093
9094         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
9095         Clarify that the alternative way doesn't work in GNU C++.
9096
9097 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
9098
9099         PR tree-optimization/19937
9100         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
9101         to the type of the induction variable.
9102
9103 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
9104
9105         PR rtl-optimization/20117
9106         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
9107         the block including noncopyable insn.
9108
9109 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9110
9111         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
9112         calls to find_reg_note.
9113
9114 2005-02-24  Richard Henderson  <rth@redhat.com>
9115
9116         PR tree-opt/20127
9117         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
9118         the type.
9119
9120 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
9121
9122         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
9123         vector types if to use base reg for misaligned non-word ld/std.
9124
9125 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9126
9127         PR target/14619
9128         * config/cris/cris.c (cris_target_asm_function_prologue): Create
9129         dwarf2 label manually and put it after, not before the prologue.
9130
9131 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
9132
9133         PR target/19019
9134         * reload.c (operands_match_p): Only increment register number for
9135         SCALAR_INT_MODE_P modes in multiple hard registers.
9136
9137         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
9138         Fix formatting.
9139
9140 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9141
9142         * ChangeLog.5: Fix log message typo(s).
9143         * ChangeLog.7: Likewise.
9144         * ChangeLog.tree-ssa: Likewise.
9145         * cfgexpand.c: Fix comment typo(s).
9146         * conflict.c: Likewise.
9147         * defaults.h: Likewise.
9148         * dwarf2out.c: Likewise.
9149         * gcse.c: Likewise.
9150         * ggc-page.c: Likewise.
9151         * tree-eh.c: Likewise.
9152         * tree-ssa-dom.c: Likewise.
9153
9154 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
9155
9156         PR target/19019
9157         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
9158         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
9159         if SHARED is defined.
9160
9161         PR target/20196
9162         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
9163         allow splitting only if operands 0 and 3 don't overlap.
9164
9165 2005-02-24  Richard Henderson  <rth@redhat.com>
9166
9167         PR middle-end/19953
9168         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
9169         (fold_builtin_1): Call them.
9170         * fold-const.c (fold_complex_mult_parts): Split out from ...
9171         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
9172         (fold_complex_div_parts, fold_complex_div): New.
9173         (fold): Use them.
9174         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
9175
9176 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9177
9178         * tree-ssa-ccp.c (visit_assignment): Verify that result of
9179         VIEW_CONVERT_EXPR is_gimple_min_invariant.
9180
9181         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
9182         (print_node): Likewise.
9183         Print TYPE_SIZES_GIMPLIFIED.
9184
9185 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9186
9187         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
9188         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
9189         operands as commutative in constraints.
9190
9191 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
9192
9193         * tree-into-ssa.c: Re-organize internal functions.
9194
9195 2005-02-24  Richard Henderson  <rth@redhat.com>
9196
9197         PR middle-end/18902
9198         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
9199         for c99.
9200         * common.opt (fcx-limited-range): New.
9201         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
9202         * toplev.c (flag_complex_method): Initialize to 1.
9203         (process_options): Set flag_complex_method to 0 if
9204         flag_cx_limited_range.
9205         * doc/invoke.texi (-fcx-limited-range): New.
9206
9207 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9208
9209         * cse.c (delete_trivially_dead_insns): Speed up by using
9210         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
9211         prev_real_insn.
9212
9213 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
9214
9215         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
9216         functions when -mid-shared-library is being used.
9217
9218 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9219
9220         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
9221         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
9222         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
9223         * system.h: Poison LINK_LIBGCC_SPECIAL.
9224
9225 2005-02-23  James E Wilson  <wilson@specifixinc.com>
9226
9227         * gengtype.c (note_insn_name): Make 1 element larger.
9228
9229 2005-02-23  Roger Sayle  <roger@eyesopen.com>
9230
9231         PR target/20018
9232         PR rtl-optimization/20097
9233         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
9234         BImode SUBREGs of SImode registers which confuse the ia64 backend.
9235
9236 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
9237
9238         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
9239         * t-aix52 (SHLIB_INSTALL): Same.
9240
9241 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9242
9243         * genpreds.c: Update copyright.
9244
9245 2005-02-23  Michael Beach  <michaelb@ieee.org>
9246
9247         PR target/20159
9248         * config/sparc/t-elf (startup files): Assemble with CPP.
9249
9250 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
9251
9252         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
9253         (write_predicate_expr): Likewise.
9254
9255 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9256
9257         PR tree-optimization/20100
9258         PR tree-optimization/20115
9259         * tree-optimize.c (init_tree_optimization_passes): Remove
9260         pass_maybe_create_global_var.
9261         * tree-pass.h (pass_maybe_create_global_var): Remove.
9262         * tree-ssa-alias.c (aliases_computed_p): Declare.
9263         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
9264         (count_calls_and_maybe_create_global_var): Remove.
9265         (pass_maybe_create_global_var): Remove.
9266         (init_alias_info): Do not declare aliases_computed_p.
9267         (maybe_create_global_var): If the function contains no
9268         call-clobbered variables and a mix of pure/const and regular
9269         function calls, create .GLOBAL_VAR.
9270         Mark all call-clobbered variables for renaming.
9271         (merge_pointed_to_info): Update comment.
9272         (add_pointed_to_var): Likewise.
9273         (is_escape_site): Likewise.
9274         Accept struct alias_info * instead of size_t *.
9275         Update all users.
9276         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
9277         as necessary.
9278         * tree-ssa-operands.c (get_call_expr_operands): If
9279         ALIASES_COMPUTED_P is false, do not add call-clobbering
9280         operands.
9281         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
9282         (delete_tree_ssa): Likewise.
9283
9284 2005-02-22  James E Wilson  <wilson@specifixinc.com>
9285
9286         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
9287         (do_compile): Do call it here.
9288
9289 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9290
9291         PR rtl-optimization/20017.
9292         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
9293         rest_of_handle_cse2, rest_of_handle_gcse): Call
9294         delete_dead_jumptables immediately before calling cleanup_cfg.
9295
9296 2005-02-22  Devang Patel  <dpatel@apple.com>
9297
9298         PR 19952
9299         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
9300         all labels
9301
9302 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
9303
9304         * config/rs6000/aix.h (WINT_TYPE): Define.
9305
9306 2005-02-22  Stan Shebs  <shebs@apple.com>
9307
9308         * config/rs6000/rs6000.c (rs6000_override_options): Default to
9309         natural alignment for 64-bit Darwin.
9310         (rs6000_parse_alignment_option): Warn about uses of -malign-power
9311         on 64-bit Darwin.
9312         * doc/invoke.texi: Document this.
9313
9314 2005-02-22  DJ Delorie  <dj@redhat.com>
9315
9316         * c-common.c (c_common_type_for_mode): Pass the mode's precision
9317         to make_[un]signed_type, not the mode itself.
9318
9319 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9320
9321         * cfg.c (cached_make_edge): Call make_edge if edge cache is
9322         not available.  Use tail calls wherever possible.
9323         (make_edge): Call unchecked_make_edge to create an edge.
9324
9325         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
9326         (coalesce_ssa_name): Don't check for
9327         SSANORM_USE_COALESCE_LIST.
9328         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
9329
9330 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9331
9332         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
9333         (rewrite_into_ssa): ... here.
9334
9335 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
9336
9337         PR tree-optimization/19786
9338         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
9339         tag to another's may-alias bitmap when adding to the other's list.
9340
9341 2005-02-21  DJ Delorie  <dj@redhat.com>
9342
9343         * tree-ssa-loop-ivopts.c (computation_cost): Start register
9344         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
9345         registers in unsupported ways.
9346         * expmed.c (init_expmed): Likewise.
9347
9348 2005-02-21  Stan Cox  <scox@redhat.com>
9349
9350         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
9351
9352 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9353
9354         * tree-cfg.c (fold_cond_expr_cond): New.
9355         (make_edges): Call fold_cond_expr_cond.
9356         (find_taken_edge): Accept nothing but INTEGER_CST.
9357         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
9358         and 1.
9359         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
9360
9361         * flow.c (delete_dead_jumptables): Speed up by scanning insns
9362         that do not belong to any basic block.
9363
9364 2005-02-21  Jeff Law  <law@redhat.com>
9365
9366         * cfganal.c (find_unreachable_blocks): Manually CSE load of
9367         e->dest.
9368
9369 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9370
9371         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
9372         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
9373         Adjust their definitions.
9374         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
9375         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
9376
9377         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
9378         genautomata.c, langhooks.c, langhooks.h, system.h,
9379         config/arm/lib1funcs.asm: Update copyright.
9380
9381 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9382
9383         * dbxout.c (dbxout_function_end): Emit Lscope label always.
9384
9385 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
9386
9387         PR bootstrap/13770
9388         * doc/install.texi: Document --with-gc.
9389
9390 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
9391
9392         * simplify-rtx.c (simplify_unary_operation): Add a missing
9393         "break" statement.
9394
9395 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9396
9397         PR tree-optimization/18663
9398         * tree-ssa-dom.c (extract_range_from_cond): Return 0
9399         if the type has variable bounds.
9400
9401 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9402
9403         * gcse.c: Remove an obsolete comment.
9404
9405         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
9406
9407 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
9408
9409         * doc/extend.texi (Function Attributes) <Attribute const>: The
9410         attribute "pure" is below this text, not above.
9411
9412 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9413
9414         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
9415         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
9416         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
9417
9418 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
9419
9420         PR 18785
9421         * langhooks.h (struct lang_hooks): Add to_target_charset.
9422         * langhooks.c (lhd_to_target_charset): New function.
9423         * langhooks-def.h: Declare lhd_to_target_charset.
9424         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
9425         (LANG_HOOKS_INITIALIZER): Update.
9426         * c-common.c (c_common_to_target_charset): New function.
9427         * c-common.h: Declare it.
9428         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
9429         c_common_to_target_charset.
9430
9431         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
9432         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
9433         Delete definitions.
9434         * system.h: Poison them.
9435         * doc/tm.texi: Don't discuss them.
9436         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
9437         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
9438         (pp_c_char): Do not attempt to generate letter escapes for
9439         newline, tab, etc.
9440         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
9441         * config/mips/mips.c (mips_output_ascii): Likewise.
9442
9443 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
9444
9445         PR tree-optimization/19951
9446         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
9447         is abnormal.
9448
9449 2005-02-19  Steven Bosscher  <stevenb@suse.de>
9450
9451         PR middle-end/19698
9452         * function.h (struct function): New field `max_loop_depth'.
9453         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
9454         (flow_loops_find): Reset the max loop depth count before finding loops.
9455         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
9456         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
9457         (calculate_global_regs_live): Make sure the loop will terminate
9458         when the initial sets are not empty.
9459
9460 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
9461
9462         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
9463         object inside.
9464         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
9465
9466 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
9467
9468         PR other/19525
9469         * doc/invoke.texi: Remove documentation of %M spec.
9470         * gcc.c: Likewise.
9471         (init_spec): Remove %M suffix from -lgcc_s.
9472         (do_spec_1): Remove 'M' case.
9473         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
9474         to put shared libraries in the multilib directory.  Remove the
9475         shlib_so_soname substitution variable.  Don't add a multilib encoding
9476         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
9477         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
9478         SHLIB_INSTALL as well as SHLIB_LINK.
9479         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
9480         (SHLIB_NAME): Delete.
9481         (SHLIB_DIR): New macro.
9482         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
9483         (SHLIB_INSTALL): Adjust accordingly.
9484         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
9485         * config/t-slibgcc-sld: Likewise.
9486         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
9487         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
9488         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
9489         in $(SHLIB_DIR).
9490         (SHLIBUNWIND_INSTALL): Adjust accordingly.
9491         * config/i386/t-nwld (SHLIB_SONAME): Delete.
9492         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
9493         Use @shlib_base_name@ instead of @shlib_so_name@.
9494         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
9495         and @shlib_base_name@.so in @multilib_dir@.
9496         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
9497         to the install path.
9498         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
9499         (SHLIB_LINK): Remove previous workaround.
9500         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
9501         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
9502         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
9503         the install path.
9504         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
9505         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
9506         (SHLIB_INSTALL): Adjust accordingly.
9507         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
9508         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
9509         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
9510         config/t-slibgcc-elf-ver.
9511
9512 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
9513             Jakub Jelinek  <jakub@redhat.com>
9514
9515         PR tree-optimization/19828
9516         * tree-ssa-loop-im.c: Add a TODO comment.
9517         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
9518         without side-effects.
9519
9520 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9521
9522         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
9523         call fold_convert.
9524
9525 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
9526
9527         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
9528         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
9529         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
9530         functions.
9531         (ia64_reorg): Delete fixup_errata call.
9532         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
9533         (TARGET_SWITCHES): Delete -mb-step entry.
9534
9535 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
9536
9537         PR c/20043
9538         * c-typeck.c (composite_type): Handle quals in transparent unions.
9539         (type_lists_compatible_p): Likewise.
9540
9541 2005-02-18  Stan Shebs  <shebs@apple.com>
9542
9543         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
9544         expressions in the .literal8 section.
9545
9546 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
9547
9548         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
9549
9550 2005-02-18  Roger Sayle  <roger@eyesopen.com>
9551
9552         * fold-const.c (constant_boolean_node): Always create values of the
9553         specified type, don't bother calling truthvalue_conversion.
9554
9555 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9556
9557         * except.c (output_function_exception_table): Call
9558         assemble_external_libcall (eh_personality_libfunc).
9559
9560 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9561
9562         PR target/19886
9563         * config/ia64/ia64.h (struct machine_function): Add state_num.
9564         * config/ia64/ia64.c (process_epilogue,
9565         process_for_unwind_directive): Use new unwind state numbers each
9566         time rather than state 1.
9567
9568 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9569
9570         PR target/20054
9571         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
9572         before the "*llgt_didi" pattern.
9573
9574 2005-02-18  Jason Merrill  <jason@redhat.com>
9575
9576         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
9577
9578 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
9579
9580         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
9581         (div0): Use it in place of ARM_FUNC_ALIAS.
9582         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
9583
9584 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
9585
9586         PR middle-end/20030
9587         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
9588         access, the lower bound of the array type if it exists.
9589
9590 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
9591
9592         PR c++/20008
9593         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
9594         cases that are out-of-range for the index type.
9595
9596 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9597
9598         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
9599         (estimate_case_costs): Don't call convert.
9600         * expmed.c (expand_shift): Likewise.
9601         (make_tree): Call fold_convert instead of convert.
9602
9603 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9604
9605         PR c++/19813
9606         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
9607         that ref to be marked MEM_READONLY_P doesn't have base that needs
9608         constructing.
9609
9610 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9611
9612         * genautomata.c (output_get_cpu_unit_code_func,
9613         output_cpu_unit_reservation_p): Don't generate old-style function
9614         definitions.
9615
9616 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9617
9618         PR c++/20023
9619         PR tree-optimization/20009
9620         * convert.c (convert_to_integer): Revert 2005-02-16 change.
9621
9622         PR tree-optimization/18947
9623         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
9624         inline, remove all nodes that are inlined into the extern inline
9625         being redefined.
9626
9627 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9628
9629         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
9630         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
9631         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
9632         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
9633         Update copyright.
9634
9635 2005-02-17  Roger Sayle  <roger@eyesopen.com>
9636
9637         PR tree-optimization/19917
9638         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
9639         to be potentially trapping.
9640
9641 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9642
9643         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
9644
9645 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9646
9647         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
9648         tem becomes a local variable which is set to the value of the
9649         back end defined INITIAL_FRAME_ADDRESS macro.
9650         (expand_builtin_frame_address): Omit the base parameter to
9651         expand_builtin_return_addr.
9652         (expand_builtin_profile_func): Likewise.
9653         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
9654         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
9655         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
9656
9657 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
9658
9659         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
9660         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
9661         * config/frv/frv.c (frv_function_epilogue): Likewise.
9662
9663 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
9664
9665         * lambda-code (perfect_nestify): Remove mark/unmark
9666         for rewriting hack.
9667         * tree-loop-linear.c (linear_transform_loops): Add
9668         rewrite_into_ssa call so that ssa is correct for
9669         rewriting into loop closed.
9670
9671 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9672
9673         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
9674         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
9675         BITMAP_FREE.
9676         * bt-load.c (btr_def_live_range, combine_btr_defs,
9677         migrate_btr_def, migrate_btr_defs): Likewise.
9678         * cfgcleanup.c (thread_jump): Likewise.
9679         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
9680         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
9681         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
9682         df_rd_local_compute, df_reg_info_compute): Likewise.
9683         * dominance.c (init_dom_info, free_dom_info): Likewise.
9684         * flow.c (init_propagate_block_info,
9685         free_propagate_block_info): Likewise.
9686         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
9687         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
9688         modify_reg_pav): Likewise.
9689         * loop-invariant.c (find_defs, find_invariant_insn,
9690         find_invariants, free_inv_motion_data): Likewise.
9691         * predict.c (tree_predict_by_opcode,
9692         estimate_bb_frequencies): Likewise.
9693         * stmt.c (expand_case): Likewise.
9694         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
9695         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
9696         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
9697         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
9698         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
9699         rewrite_ssa_into_ssa): Likewise.
9700         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9701         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
9702         analyze_edges_for_bb, perform_edge_inserts): Likewise.
9703         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
9704         * tree-sra.c (tree_sra): Likewise.
9705         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
9706         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
9707         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
9708         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9709         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
9710         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
9711         Likewise.
9712         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
9713         calculate_live_on_entry, calculate_live_on_exit,
9714         build_tree_conflict_graph): Likewise.
9715         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
9716         record_important_candidates, set_use_iv_cost, find_depends,
9717         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
9718         tree_ssa_iv_optimize_finalize): Likewise.
9719         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
9720         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
9721         tree_duplicate_loop_to_header_edge): Likewise.
9722         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
9723         * tree-ssa.c (verify_flow_insensitive_alias_info,
9724         verify_name_tags, verify_ssa, init_tree_ssa,
9725         delete_tree_ssa): Likewise.
9726         * tree-ssanames.c (marked_ssa_names, init_ssanames,
9727         fini_ssanames): Likewise.
9728         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
9729
9730 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
9731
9732         * config/rs6000/t-rtems: Completely reworked.
9733
9734 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9735
9736         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
9737
9738 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9739
9740         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
9741         POINTER_TYPE_P when checking that type is a pointer.
9742         (vect_get_memtag): Remove.
9743         (vect_address_analysis): Use POINTER_TYPE_P. Call
9744         vect_object_analysis with dummy parameter for memtag.
9745         (vect_object_analysis): Extract memtag (functionality that
9746         used to be in vect_get_memtag and moved here). Fix printings.
9747         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
9748         with correct parameters. Remove call to vect_get_memtag.
9749
9750 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
9751
9752         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
9753         (tree-vectorizer.o): Added missing dependencies.
9754
9755         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
9756         decleration.
9757         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
9758         declaration in tree-vectorizer.c, now has an extern declaration in
9759         tree-vectorizer.h).
9760         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9761         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9762         get_vectype_for_scalar_type, vect_is_simple_use,
9763         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9764         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
9765         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
9766         vectorizable_store, vectorizable_operation, vectorizable_assignment,
9767         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
9768         find_loop_location): Likewise.
9769
9770         * tree-vectorizer.c (langhooks.h): #include removed.
9771         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
9772         moved to tree-vectorized.h.
9773         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9774         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9775         get_vectype_for_scalar_type, vect_is_simple_use,
9776         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9777         vect_supportable_dr_alignment, new_loop_vec_info,
9778         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
9779         vect_set_verbosity_level, find_loop_location): Likewise.
9780
9781         (vect_analyze_loop): Function externalized. Declaration moved to
9782         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
9783         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
9784         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
9785         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
9786         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
9787         vect_enhance_data_refs_alignment, vect_analyze_operations,
9788         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
9789         vect_stmt_relevant_p, vect_get_loop_niters,
9790         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
9791         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
9792         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
9793         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
9794         vect_get_memtag): Likewise.
9795
9796         (vectorizable_load): Function externalized. Declaration moved to
9797         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
9798         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
9799         vect_transform_loop): Likewise.
9800         (vect_transform_stmt): Moved to tree-vect-transform.c.
9801         (vect_align_data_ref, vect_create_destination_var,
9802         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
9803         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
9804         vect_get_vec_def_for_operand, vect_init_vector,
9805         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
9806         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
9807         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
9808         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
9809         vect_do_peeling_for_loop_bound): Likewise.
9810
9811         * tree-vect-analyze.c: New file.
9812         * tree-vect-transform.c: New file.
9813
9814 2005-02-17  Jason Merrill  <jason@redhat.com>
9815
9816         PR mudflap/19319, c++/19317
9817         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
9818         slot explicit.
9819
9820 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
9821
9822         * doc/install.texi (Specific): Update link for Darwin-specific
9823         tool binary site.
9824
9825 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
9826
9827         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
9828         constant_boolean_node.
9829
9830 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
9831
9832         PR target/19019
9833         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
9834         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
9835
9836 2005-02-16  Richard Henderson  <rth@redhat.com>
9837
9838         PR 19920
9839         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
9840         with W_TYPE_SIZE.
9841         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
9842         replace uses with Wtype_MAXp1_F.
9843         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
9844         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
9845         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
9846         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
9847         and HAVE_TFMODE as appropriate.
9848         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
9849         (__floatdisf): Likewise.
9850         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
9851         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
9852         (Wtype_MAXp1_F): New.
9853         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
9854         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
9855
9856 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
9857
9858         * PR target/19162
9859         * arm.c (arm_apply_result_size): New function.
9860         * arm.h (APPLY_RESULT_SIZE): Define.
9861         * arm-protos.h (arm_apply_result_size): Add prototype.
9862         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
9863         (movxf): New expand.
9864         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
9865         (call_value_symbol): Remove predicate for operand 0.
9866         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
9867         (untyped_call): Rework to correclty return values for any type.
9868         (untyped_return): New expand.
9869         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
9870
9871 2005-02-16  Stan Shebs  <shebs@apple.com>
9872
9873         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
9874         * config/rs6000/t-darwin8: New, for 64-bit multilib.
9875
9876 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9877
9878         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
9879         configure settings on Solaris 7 and later.
9880
9881 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
9882
9883         PR tree-optimization/19865
9884         * tree-optimize.c (init_tree_optimization_passes): Run
9885         pass_may_alias after pass_sra.
9886
9887 2005-02-16  Richard Henderson  <rth@redhat.com>
9888             Stuart Hastings  <stuart@apple.com>
9889
9890         PR debug/19521
9891         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
9892         Do nothing if debug info suppressed for this function.
9893         (dbxout_begin_function): Early exit if debug info suppressed for
9894         this function.
9895
9896 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
9897
9898         PR target/20007
9899         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
9900         find_basic_blocks.
9901         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9902
9903         PR tree-optimization/19967
9904         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
9905         expand_builtin_strchr, expand_builtin_strrchr): Take a new
9906         argument TYPE.  Adjust calls to fold_builtin_XXX.
9907         (expand_builtin, fold_builtin_1): Adjust calls to
9908         expand_builtin_XXX.
9909         (fold_builtin_strchr, fold_builtin_strpbrk,
9910         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
9911         result to a requested type TYPE.
9912
9913 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
9914
9915         PR middle-end/19857
9916         * fold-const.c (fold): Don't optimize (T)(x & cst) to
9917         (T)x & (T)cst if (T)cst overflows.
9918         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
9919         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
9920
9921 2005-02-15  Jeff Law  <law@redhat.com>
9922
9923         * gcse.c (blocks_with_calls): New bitmap.
9924         (alloc_gcse_mem): Allocate it.
9925         (free_gcse_mem): Free it.
9926         (clear_modifY_mem_tables): Clear it.
9927         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
9928         when we encounter CALL_INSNs.
9929         (compute_transp, case MEM): Handle blocks with calls separate
9930         from blocks without calls.  Use bitmap iterators rather than
9931         FOR_EACH_BB.
9932
9933 2005-02-15  Peter O'Gorman  <peter@pogma.com>
9934
9935         PR bootstrap/18810
9936         * mklibgcc.in (vis_hide): Use a temporary object file, not
9937         -o /dev/null.
9938
9939 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
9940
9941         PR target/19924
9942         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
9943         access optimization.
9944
9945 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
9946             Alan Modra  <amodra@bigpond.net.au>
9947
9948         PR target/19019
9949         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
9950         (_xlqsub): Rename to __gcc_qsub.
9951         (_xlqmul): Rename to __gcc_qmul.
9952         (_xlqdiv): Rename to __gcc_qdiv.
9953         Provide versioned symbol aliases with old names.
9954         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
9955         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
9956         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
9957         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
9958         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
9959
9960 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
9961
9962         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
9963         Fold ~(A - 1) and ~(A + -1) to -A.
9964
9965 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
9966
9967         PR pch/14940
9968         PR target/19300
9969         * config/host-linux.c (linux_gt_pch_use_address): Copy from
9970         config/pa/pa-host.c:pa_gt_pch_use_address.
9971
9972 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
9973
9974         * tree-vn.c (get_value_handle): Make sure that given an
9975         is_gimple_min_invariant expression, we always return it.
9976
9977 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
9978
9979         * passes.c (rest_of_handle_gcse): Fix a comment.
9980
9981 2005-02-15  Jeff Law  <law@redhat.com>
9982
9983         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
9984         bitmap.
9985         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
9986         (canon_list_insert, record_last_mem_set_info): Similarly.
9987         (clear_modify_mem_tables): Similarly.
9988
9989 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
9990
9991         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
9992         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
9993         config/mips/mips.md, config/rs6000/aix.h,
9994         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
9995
9996 2005-02-15  Richard Henderson  <rth@redhat.com>
9997
9998         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
9999         call to be best_edge.
10000
10001 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10002
10003         * basic-block.h: Adjust the prototype for find_basic_blocks.
10004         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
10005         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
10006         find_basic_blocks.
10007
10008         * flow.c (recompute_reg_usage): Remove all arguments.
10009         * passes.c (rest_of_compilation): Adjust the call to
10010         recompute_reg_usage.
10011         * rtl.h: Adjust the prototype for recompute_reg_usage.
10012
10013 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
10014
10015         * tree-dump.c (dump_files): Update to reflect new member
10016         of dump_file_info.
10017         (dump_register): Add new argument.
10018         Set glob name.
10019         (dump_switch_p_1): Check against glob name if doglob was passed.
10020         (dump_switch_p): Check against regular first, then glob if
10021         we didn't have any hits on the dump name.
10022         * tree-optimize.c (register_one_dump_file):
10023         Pass in glob name as well.
10024         * tree-pass.h (struct dump_file_info): Add glob
10025         member.
10026
10027 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
10028
10029         PR preprocessor/16323
10030         * doc/invoke.texi: Document that -Wendif-labels is on by default.
10031
10032 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
10033
10034         PR target/19019
10035         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
10036         (trunctfdf2_internal1): New.
10037         (trunctfdf2_internal2): Renamed from trunctfdf2.
10038
10039 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
10040
10041         PR tree-optimization/19853
10042         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
10043
10044 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
10045
10046         * passes.c (rest_of_handle_loop_optimize): Remove calls to
10047         delete_dead_jumptables and cleanup_cfg.
10048
10049 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
10050
10051         * reload.c (find_reloads): Swap address_reloaded flags when
10052         swapping commutative operands.
10053
10054 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
10055
10056         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
10057         Use standard_iv_increment_position for computing the bsi position
10058         for create_iv.
10059         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
10060         the bsi position.
10061
10062 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
10063
10064         PR target/17428
10065         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
10066         life range of hard registers.
10067         * value-prof.c (insn_prefetch_values_to_profile): Only
10068         scan normal insns.
10069
10070         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
10071         profile in libcalls.
10072
10073 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
10074
10075         * bitmap.h (bitmap_and_compl_into): Return bool.
10076         * bitmap.c (bitmap_and_compl_into): Return changed flag.
10077
10078 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
10079
10080         PR tree-optimization/19944
10081         * fold-const.c (fold): Re-add ABS_EXPR folding.
10082
10083 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
10084
10085         PR target/19019
10086         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
10087         {TARGET,MASK}_XL_COMPAT.
10088         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
10089         MASK_XL_COMPAT.
10090         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
10091         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
10092         TARGET_XL_COMPAT.
10093         (rs6000_arg_partial_bytes): Same.
10094         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
10095         and XL compatibility enabled.
10096         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
10097         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
10098         test to final condition.
10099         (cmptf_internal2): New.
10100         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
10101         xl-compat.  Add TFmode information to description.
10102
10103 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
10104
10105         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
10106
10107 2005-02-13  Jason Merrill  <jason@redhat.com>
10108
10109         PR c++/16405
10110         * fold-const.c (fold_indirect_ref_1): Split out from...
10111         (build_fold_indirect_ref): Here.
10112         (fold_indirect_ref): New fn.
10113         * tree.h: Declare it.
10114         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
10115         (gimplify_modify_expr_rhs): Likewise.
10116         (gimplify_expr): Likewise.
10117
10118 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
10119
10120         PR tree-optimization/14303
10121         PR tree-optimization/15784
10122         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
10123         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
10124         ABS_EXPR<x> != 0 to x != 0.
10125
10126 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
10127
10128         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
10129         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
10130         spelling conventions.
10131
10132         * passes.c (rest_of_handle_gcse): Don't run cse_main and
10133         delete_trivially_dead_insns too many times.
10134
10135         * passes.c (rest_of_handle_gcse): Remove dead assignments to
10136         tem and tem2.
10137
10138 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10139
10140         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
10141         (vect_is_simple_iv_evolution): Remove redundant parameter
10142         and step check.
10143         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
10144         without last parameter.
10145         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
10146         Return pointer step. Call vect_is_simple_iv_evolution without
10147         last parameter. Check only that the step is multiple of size
10148         type. Remove stmt_vinfo updates.
10149         (vect_get_memtag_and_dr): Remove.
10150         (vect_get_memtag): New function.
10151         (vect_address_analysis): New function.
10152         (vect_object_analysis): New function.
10153         (vect_analyze_data_refs): Call vect_object_analysis and
10154         vect_get_memtag. Update stmt_vinfo fields.
10155
10156 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10157
10158         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
10159         exist and are objects. Remove checks for pointer.
10160         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
10161         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
10162         (vect_create_data_ref_ptr): Likewise.
10163         (vect_base_addr_differ_p): New function.
10164         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
10165         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
10166         Don't set the DR_BASE_NAME field of data-ref.
10167         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
10168
10169 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
10170
10171         * optabs.h (enum optab_index): Add new OTI_ldexp.
10172         (ldexp_optab): Define corresponding macro.
10173         * optabs.c (init_optabs): Initialize ldexp_optab.
10174         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
10175         patterns.
10176         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
10177         using ldexp_optab.
10178         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
10179         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
10180
10181         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
10182         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
10183         intrinsics.
10184
10185 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10186
10187         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
10188         to base_address.
10189         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
10190         stmt_vec_info.
10191         (vect_get_base_and_offset): Always return an address.
10192         (vect_create_addr_base_for_vector_ref): Remove treatment for
10193         different data reference types.
10194         (vect_compute_data_ref_alignment): Rename base to base_address in
10195         stmt_vec_info. Get the object in order to force its alignment.
10196         (vect_get_memtag_and_dr): Rename base to base_address in
10197         stmt_vec_info. Extract the object for memtag analysis.
10198
10199 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
10200
10201         PR regression/19898.
10202         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
10203         changes cc_status, use apply modified_in_p to part of cc_status
10204         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
10205         body.
10206
10207 2005-02-11  Richard Henderson  <rth@redhat.com>
10208
10209         * tree-complex.c (expand_complex_libcall): New.
10210         (expand_complex_multiplication): Use it for c99 compliance.
10211         (expand_complex_division): Likewise.
10212         * fold-const.c (fold_complex_add, fold_complex_mult): New.
10213         (fold): Call them.
10214         * builtins.c (built_in_names): Remove const.
10215         * tree.c (build_common_builtin_nodes): Build complex arithmetic
10216         builtins.
10217         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
10218         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
10219         (built_in_names): Remove const.
10220         * c-common.c (c_common_type_for_mode): Handle complex modes.
10221         * flags.h, toplev.c (flag_complex_method): Rename from
10222         flag_complex_divide_method.
10223         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
10224         __mulsc3, __muldc3, __mulxc3, __multc3): New.
10225         * libgcc2.h: Declare them.
10226         * libgcc-std.ver: Export them.
10227         * mklibgcc.in (lib2funcs): Build them.
10228
10229 2005-02-11  Steven Bosscher  <stevenb@suse.de>
10230
10231         PR tree-optimization/19876
10232         Partially revert my change from 2005-01-14
10233         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
10234         (compute_antic): ...and remove the loop here.
10235
10236 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
10237
10238         PR middle-end/19858
10239         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
10240         is number of inner's bits, avoid creating a BIT_FIELD_REF.
10241
10242         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
10243         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
10244
10245 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
10246
10247         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
10248         offsets for the big-endian 32-bit case.
10249
10250 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
10251
10252         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
10253
10254 2005-02-11  Dale Johannesen  <dalej@apple.com>
10255
10256         * cselib.c (cselib_process_insn):  Clear out regs where
10257         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
10258         * reload.c (find_equiv_reg): Ditto.
10259
10260 2005-02-11  Ian Lance Taylor  <ian@airs.com>
10261
10262         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
10263         with no elements.
10264
10265         * tree.c (build_function_type_list): Work correctly if there are
10266         no arguments.
10267
10268 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
10269
10270         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
10271         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
10272         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
10273         TARGET_ZARCH instead of TARGET_64BIT.
10274
10275 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
10276
10277         * config/rs6000/t-rtems:
10278         (MULTILIB_OPTIONS): Remove mcpu=602.
10279         (MUTLILIB_DIRNAMES): Remove m602.
10280         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
10281         Let mcpu=602 match mcpu=603.
10282         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
10283
10284 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10285
10286         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
10287         signal trampolines.
10288
10289 2005-02-10  David Daney  <ddaney@avtrex.com>
10290
10291         * config/alpha/linux-unwind.h: Add exception clause to copyright.
10292         * config/i386/linux-unwind.h: Likewise.
10293         * config/ia64/linux-unwind.h: Likewise.
10294         * config/mips/linux-unwind.h: Likewise.
10295         * config/pa/linux-unwind.h: Likewise.
10296         * config/rs6000/linux-unwind.h: Likewise.
10297         * config/s390/linux-unwind.h: Likewise.
10298         * config/sh/linux-unwind.h: Likewise.
10299         * config/sparc/linux-unwind.h: Likewise.
10300
10301 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10302
10303         PR tree-optimization/17549
10304         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
10305         TER to replace a DEF with its expression if the DEF and the
10306         rhs of the expression we replace into have the same root
10307         variable.
10308
10309 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
10310
10311         * config/mips/mips.md: Fix the placement of the match_scratch in the
10312         lea64 peephole2.
10313
10314 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10315
10316         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
10317         Fix comment typos.
10318
10319 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
10320
10321         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
10322         (strip_offset): Handle addresses.
10323         (add_address_candidates): Use strip_offset.
10324         (difference_cost): Reflect strip_offset change.
10325         (force_var_cost, difference_cost): Strip nops.
10326
10327 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10328
10329         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
10330
10331         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
10332         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
10333         config/cris/cris-protos.h, config/cris/cris.c: Update
10334         copyright.
10335
10336 2005-02-10  Jeff Law  <law@redhat.com>
10337
10338         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
10339         (lookup_avail_expr): Similarly.
10340
10341 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
10342
10343         * builtins.c (fold_builtin_powi): New function.
10344         (fold_builtin_1): Call it.
10345
10346 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10347
10348         PR documentation/19309
10349         * doc/cpp.texi: The __GNUC__ and related predefined macros
10350         are also defined for the "standalone" cpp.
10351         Some non-GCC compilers may also define __GNUC__.
10352
10353 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
10354
10355         PR c/19342
10356         * c-typeck.c (common_type): New routine.  Old common_type renamed
10357         to...
10358         (c_common_type): ...this.
10359         (build_conditional_expr, build_binary_op): Use c_common_type instead
10360         of common_type.
10361
10362 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10363
10364         * doc/md.texi: Replace @samp{length} with @code{length}.
10365
10366 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
10367
10368         PR tree-optimization/18687
10369         * tree-flow.h (find_loop_niter): Declare.
10370         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
10371         Try using scev even for loops with more than one exit.
10372         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
10373         (struct ivopts_data): Added niters field.
10374         (struct nfe_cache_elt): New.
10375         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
10376         functions.
10377         (tree_ssa_iv_optimize_init): Initialize niters cache.
10378         (determine_number_of_iterations): Removed.
10379         (find_induction_variables): Do not call determine_number_of_iterations.
10380         Access niters for single exit through niter_for_single_dom_exit.
10381         (add_iv_outer_candidates): Access niters for single exit through
10382         niter_for_single_dom_exit.
10383         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
10384         number_of_iterations_cond.
10385         (iv_period): New function.
10386         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
10387         (may_replace_final_value): Take data argument.  Use
10388         niter_for_single_dom_exit.
10389         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
10390         (rewrite_use_compare): Pass data to may_eliminate_iv.
10391         (rewrite_use_outer): Pass data to may_replace_final_value.
10392         (free_loop_data): Clean up the niters cache.
10393         (tree_ssa_iv_optimize_finalize): Free the niters cache.
10394         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
10395         * tree-ssa-loop-niter.c (find_loop_niter): New function.
10396         (find_loop_niter_by_eval): Use tree_int_cst_lt.
10397         (num_ending_zeros): Moved to tree.c.
10398         * tree.h (num_ending_zeros): Declare.
10399         * tree.c (num_ending_zeros): Moved from tree.c.
10400
10401 2005-02-09  Richard Henderson  <rth@redhat.com>
10402
10403         * builtins.c (DEF_BUILTIN): Add COND argument.
10404         * tree.h (DEF_BUILTIN): Likewise.
10405         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
10406         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
10407         match.
10408         (DEF_BUILTIN_STUB): New.
10409         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
10410         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
10411         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
10412         * c-common.c (DEF_BUILTIN): Add COND argument.
10413         * tree.c (local_define_builtin): New.
10414         (build_common_builtin_nodes): New.
10415
10416 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10417
10418         * fold-const.c (fold_strip_sign_ops): New function to simplify a
10419         floating point expression ignoring the sign of the result.
10420         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
10421         (fold) <MULT_EXPR>: Use it to simplify x*x.
10422         * tree.h (fold_strip_sign_ops): Prototype here.
10423         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
10424         argument.  Use fold_strip_sign_ops to simplify the first argument.
10425         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
10426         first argument when the second argument is an even integer
10427         constant, but only with -funsafe_math_optimizations.
10428         (fold_builtin_1): Update call to fold_builtin_copysign.
10429
10430 2005-02-09  Ian Lance Taylor  <ian@airs.com>
10431
10432         PR middle-end/19583
10433         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
10434         just check whether EH_FILTER_FAILURE falls through.
10435
10436 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
10437
10438         * gcc/haifa-sched.c (schedule_block): Make queued sched group
10439         insns return to ready list in the next turn.
10440
10441 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10442
10443         PR middle-end/19402
10444         * builtins.def: New __builtin_powi[lf].
10445         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
10446         (expand_builtin_powi): New function.
10447         (expand_builtin): Dispatch to expand_builtin_powi.
10448         * libgcc2.h: Add prototypes for __builtin_powi[lf].
10449         * libgcc2.c: Add __builtin_powi[lf] implementation.
10450         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
10451         * optabs.h: Add powi_optab.
10452         * optabs.c (init_optabs): Initialize powi_optab.
10453         * doc/extend.texi: Document __builtin_powi[lf].
10454
10455 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
10456
10457         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
10458         exists.
10459
10460 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10461
10462         PR middle-end/19854
10463         * fold-const.c (try_move_mult_to_index): Remove redundant
10464         type argument.  Create ADDR_EXPR with correct type.
10465         (fold): Update callers of try_move_mult_to_index.  Convert
10466         result to the appropriate type.
10467
10468 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10469
10470         PR target/19597
10471         * config/avr/avr.c (default_rtx_costs): Delete.
10472         (avr_operand_rtx_cost): New function.
10473         (avr_rtx_costs): Completely rewrite.
10474
10475 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
10476
10477         PR target/19806
10478         * config/cris/cris.c (in_code): New variable.
10479         (cris_output_addr_const): Now a static function, a wrapper for
10480         output_addr_const.
10481         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
10482         case from old cris_output_addr_const.
10483         (cris_asm_output_label_ref): Similar for LABEL_REF.
10484         (cris_output_addr_const_extra): Similar for UNSPEC.
10485         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
10486         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
10487         * config/cris/cris-protos.h (cris_output_addr_const): Remove
10488         declaration.
10489         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
10490         (cris_asm_output_label_ref): Declare.
10491
10492 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
10493
10494         PR preprocessor/19801
10495         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
10496         filenames that changed when libcpp was moved to the toplevel.
10497
10498 2005-02-07  Roger Sayle  <roger@eyesopen.com>
10499
10500         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
10501         zero extensions of BImode operands.  Call lowpart_subreg instead
10502         of gen_lowpart_common and gen_lowpart_SUBREG.
10503
10504 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
10505
10506         PR ada/19489
10507         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
10508         * configure.ac: Set cc_for_cross_gnattools.
10509         * configure: Regenerate.
10510
10511 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
10512
10513         PR target/19803
10514         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
10515
10516 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10517
10518         PR debug/19327
10519         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
10520         of nested functions.
10521
10522 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
10523
10524         * doc/extend.texi: Document deprecated extensions allowing
10525         static floating-point members to have initializers and allowing
10526         floating-point literals in integral constant expressions.
10527
10528 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10529
10530         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
10531         config/darwin7.h, config/mips/mips.c,
10532         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
10533         Update copyright.
10534
10535         * cse.c: Update comments.
10536
10537 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
10538
10539         PR middle-end/19775
10540         * builtins.c (fold_builtin_sqrt): Transform
10541         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
10542         pow(x,y*0.5).
10543
10544 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
10545             Dorit Naishlos  <dorit@il.ibm.com>
10546
10547         * doc/invoke.texi (ftree-vectorizer-verbose): New.
10548         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
10549         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
10550         was added.
10551         * tree.h (vect_set_verbosity_level): New extern function declaration
10552         added.
10553         * tree-vectorizer.h (verbosity_levels): New enum type.
10554         * tree-vectorizer.c (vect_debug_stats): Function removed.
10555         (vect_debug_details): Likewise.
10556         (vect_verbosity_level): Global variable was defined and initialized.
10557         (vect_dump): Global variable definition.
10558         (vect_print_dump_info): New function.
10559         (vect_set_dump_settings): New function.
10560         (vect_set_verbosity_level): New function.
10561         (vectorize_loops): Add call to vect_set_dump_settings.
10562
10563         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
10564         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10565         (slpeel_tree_peel_loop_to_edge): Likewise.
10566
10567         (vect_analyze_offset_expr): Call to vect_print_dump_info with
10568         appropriate verbosity level instead of call to vect_debug_details
10569         or vect_debug_stats.
10570         (vect_get_base_and_offset):
10571         (vect_create_addr_base_for_vector_ref):
10572         (get_vectype_for_scalar_type):
10573         (vect_create_data_ref_ptr):
10574         (vect_init_vector):
10575         (vect_get_vec_def_for_operand):
10576         (vect_finish_stmt_generation):
10577         (vectorizable_assignment):
10578         (vectorizable_operation):
10579         (vectorizable_store):
10580         (vectorizable_load):
10581         (vect_transform_stmt):
10582         (vect_update_ivs_after_vectorizer):
10583         (vect_do_peeling_for_loop_bound):
10584         (vect_update_inits_of_drs):
10585         (vect_do_peeling_for_alignment):
10586         (vect_transform_loop):
10587         (vect_is_simple_use):
10588         (vect_analyze_operations):
10589         (vect_is_simple_iv_evolution):
10590         (vect_analyze_scalar_cycles):
10591         (vect_analyze_data_ref_dependence):
10592         (vect_analyze_data_ref_dependences):
10593         (vect_compute_data_ref_alignment):
10594         (vect_enhance_data_refs_alignment):
10595         (vect_analyze_data_refs_alignment):
10596         (vect_analyze_data_ref_access):
10597         (vect_analyze_data_ref_accesses):
10598         (vect_analyze_pointer_ref_access):
10599         (vect_get_memtag_and_dr):
10600         (vect_analyze_data_refs):
10601         (vect_mark_relevant):
10602         (vect_stmt_relevant_p):
10603         (vect_mark_stmts_to_be_vectorized):
10604         (vect_can_advance_ivs_p):
10605         (vect_get_loop_niters):
10606         (vect_analyze_loop_form):
10607         (vect_analyze_loop):
10608         (vectorize_loops): Likewise.
10609
10610         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
10611         (vect_update_inits_of_drs):
10612         (vect_do_peeling_for_alignment):
10613         (vect_transform_loop):
10614         (vect_analyze_operations):
10615         (vect_analyze_scalar_cycles):
10616         (vect_analyze_data_ref_dependences):
10617         (vect_analyze_data_refs_alignment):
10618         (vect_analyze_data_ref_accesses):
10619         (vect_analyze_data_refs):
10620         (vect_mark_stmts_to_be_vectorized):
10621         (vect_get_loop_niters):
10622         (vect_analyze_loop_form):
10623         (vect_analyze_loop): Likewise.
10624         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
10625
10626 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
10627
10628         PR bootstrap/19796
10629         Revert:
10630         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
10631         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
10632         either -ffast-math or -funsafe-math-optimizations is in use.
10633
10634         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
10635         * config/mips/irix-csr.c: New file.
10636         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
10637         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
10638         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
10639         executables.
10640
10641 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
10642
10643         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
10644         redundant, incorrect definitions.
10645
10646         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
10647         expand.
10648         ("*tls_indirect_call"): New, reference hard regs directly.
10649         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
10650
10651 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10652
10653         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
10654         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
10655
10656 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10657
10658         PR rtl-optimization/19800
10659         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
10660         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
10661         gen_lowpart.
10662
10663 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10664
10665         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
10666
10667 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
10668
10669         PR other/17135
10670         * doc/invoke.texi: Correct documentation of -freorder-functions.
10671
10672 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10673
10674         PR other/14402
10675         * doc/invoke.texi: Don't mention gccbug.
10676
10677 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10678             Andrew Pinski  <pinskia@physics.uc.edu>
10679             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
10680
10681         * simplify-rtx.c (simplify_relational_operation_1): Simplify
10682         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
10683         into just (zero_extract:SI FOO (const_int 1) BAR).
10684
10685 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10686
10687         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
10688         macro locally.  Don't give last revision date.  Use GCC version
10689         number from gcc-common.texi.
10690         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
10691         revision date.  Use GCC version number from gcc-common.texi.
10692         Describe being a library as current state rather than as 3.x
10693         history.
10694         * doc/gcc.texi: Remove last update date.
10695         * doc/gccint.texi: Likewise.  Update copyright dates.
10696         * doc/install.texi: Update copyright dates.
10697
10698 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10699
10700         PR other/7549
10701         * doc/invoke.texi: Mention for each option included in -Wall that
10702         it is included in -Wall.
10703         * doc/gcc.texi: Update copyright and last modification date.
10704
10705 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10706
10707         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
10708         unnecessary cast to original induction variable increments.
10709
10710 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10711
10712         PR tree-optimization/18219
10713         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
10714         in distributed form.
10715
10716 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
10717
10718         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
10719         Set bitpos and offset later in the function.  Do nothing if the
10720         target is a register and if the bitfield lies completely outside
10721         that register.
10722         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
10723         here.  Return an uninitialised register if the source value is stored
10724         in a register and the bitfield lies completely outside that register.
10725
10726 2005-02-06  Steven Bosscher  <stevenb@suse.de>
10727
10728         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
10729         not SET_DEST.
10730
10731 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
10732
10733         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
10734
10735 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
10736
10737         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
10738         * config/darwin8.h: New.
10739         * config/darwin7.h: Update comment.
10740
10741 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10742             Dorit Naishlos  <dorit@il.ibm.com>
10743
10744         * tree-vectorizer.h (LOC): New type.
10745         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
10746         (loop_line_number): New field in struct _loop_vec_info.
10747         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
10748
10749         * tree-vectorizer.c (input.h): Included.
10750         (find_loop_location): New function.
10751         (vect_debug_stats): Argument changed from loop to LOC. Computation of
10752         loop line number removed.
10753         (vect_debug_details): Likewise.
10754         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
10755
10756         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
10757         call to vect_debug_details/stats changed from loop to loop_loc.
10758         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10759         (slpeel_tree_peel_loop_to_edge): Likewise.
10760
10761         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
10762         changed from NULL to UNKNOWN_LOC.
10763         (vect_get_base_and_offset):
10764         (vect_create_addr_base_for_vector_ref):
10765         (get_vectype_for_scalar_type):
10766         (vect_create_data_ref_ptr):
10767         (vect_init_vector):
10768         (vect_get_vec_def_for_operand):
10769         (vect_finish_stmt_generation):
10770         (vectorizable_assignment):
10771         (vectorizable_operation):
10772         (vectorizable_store):
10773         (vectorizable_load):
10774         (vect_transform_stmt):
10775         (vect_update_ivs_after_vectorizer):
10776         (vect_do_peeling_for_loop_bound):
10777         (vect_do_peeling_for_alignment):
10778         (vect_transform_loop):
10779         (vect_is_simple_use):
10780         (vect_analyze_operations):
10781         (vect_is_simple_iv_evolution):
10782         (vect_analyze_scalar_cycles):
10783         (vect_analyze_data_ref_dependences):
10784         (vect_compute_data_ref_alignment):
10785         (vect_enhance_data_refs_alignment):
10786         (vect_analyze_data_ref_access):
10787         (vect_analyze_data_ref_accesses):
10788         (vect_analyze_pointer_ref_access):
10789         (vect_get_memtag_and_dr):
10790         (vect_analyze_data_refs):
10791         (vect_mark_relevant):
10792         (vect_stmt_relevant_p):
10793         (vect_mark_stmts_to_be_vectorized):
10794         (vect_can_advance_ivs_p):
10795         (vect_get_loop_niters):
10796         (vect_analyze_loop):
10797         (vectorize_loops): Likewise.
10798
10799         (vectorizable_load): Argument in call to vect_debug_details/stats
10800         changed from loop to LOOP_LOC (loop_vinfo).
10801         (vect_transform_loop):
10802         (vect_analyze_operations):
10803         (vect_analyze_scalar_cycles):
10804         (vect_analyze_data_ref_dependence):
10805         (vect_enhance_data_refs_alignment):
10806         (vect_analyze_data_ref_accesses):
10807         (vect_analyze_pointer_ref_access):
10808         (vect_analyze_data_refs):
10809         (vect_analyze_loop): Likewise.
10810
10811         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
10812         changed from loop to loop_loc.
10813
10814         (vect_enhance_data_refs_alignment): Removed unused variable loop.
10815
10816 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10817             Dorit Naishlos  <dorit@il.ibm.com>
10818
10819         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
10820         declaration added.
10821         (vect_analyze_data_ref_dependences): Likewise.
10822
10823         (vect_is_simple_use): Argument changed from loop structure to
10824         loop_vect_info structure.
10825         (vect_can_advance_ivs_p): Likewise.
10826         (vect_create_index_for_vector_ref): Likewise.
10827         (vect_update_ivs_after_vectorizer): Likewise.
10828         (new_stmt_vec_info): Likewise.
10829
10830         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
10831         changed from loop to loop_vinfo.
10832         (vect_create_data_ref_ptr): First argument in call to
10833         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
10834         (vectorizable_assignment): Second argument in call to vect_is_simple_use
10835         was changed from loop to loop_vinfo.
10836         (vectorizable_operation): Likewise.
10837         (vectorizable_store): Likewise.
10838         (vect_mark_stmts_to_be_vectorized): Likewise.
10839         (vect_do_peeling_for_loop_bound): First argument in call to
10840         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
10841         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
10842         was changed from loop to loop_vinfo.
10843         (vect_analyze_data_ref_dependences): Third argument in call to
10844         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
10845
10846         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
10847         (vect_create_data_ref_ptr): Likewise.
10848         (vect_init_vector): Likewise.
10849         (vect_get_vec_def_for_operand): Likewise.
10850         (vectorizable_assignment): Likewise.
10851         (vectorizable_operation): Likewise.
10852         (vectorizable_store): Likewise.
10853         (vectorizable_load): Likewise.
10854         (vect_update_ivs_after_vectorizer): Likewise.
10855         (vect_is_simple_use): Likewise.
10856         (vect_analyze_data_ref_dependence): Likewise.
10857         (vect_analyze_pointer_ref_access): Likewise.
10858         (vect_can_advance_ivs_p): Likewise.
10859
10860         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
10861         before _stmt_vec_info.
10862         (_stmt_vec_info): Loop field replaced by loop_vec_info.
10863         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
10864         (new_stmt_vec_info): Argument changed from loop structure to
10865         loop_vect_info structure
10866
10867         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
10868         (vect_analyze_offset_expr): Avoid 80 columns overflow.
10869         (vect_create_addr_base_for_vector_ref): Likewise.
10870         (vect_analyze_pointer_ref_access): Likewise.
10871
10872 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10873
10874         PR tree-opt/19768
10875         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
10876         phi flag if the phi is abnormal.
10877
10878 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10879
10880         PR tree-opt/19736
10881         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
10882         information for the new statement.
10883
10884 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10885
10886         PR driver/19117
10887         * gcc.c (main): Include the target in -v output.
10888
10889 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
10890
10891         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
10892         Do not drop the extend if we'd have to add a paradoxical subreg
10893         later.  Include optabs.h and insn-codes.h.
10894         * Makefile.in (combine.o): Depend on $(OPTABS_H).
10895
10896 2005-02-02  Roger Sayle  <roger@eyesopen.com>
10897
10898         PR middle-end/19405
10899         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
10900         * fold-const.c (const_binop): Avoid constant folding floating
10901         point operations in modes that use composite representations.
10902         * simplify-rtx.c (simplify_binary_operation): Likewise.
10903
10904 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
10905
10906         * config/rs6000/altivec.md (altivec_dst): Make the first operand
10907         a REG, not a MEM.
10908         (altivec_dstt): Likewise.
10909         (altivec_dstst): Likewise.
10910         (altivec_dststt): Likewise.
10911         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
10912         of first operand.
10913
10914 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10915
10916         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
10917         EXPR_LOCUS from orig_cond to the new cond_stmt.
10918         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
10919         the new vec_stmt.
10920
10921 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10922
10923         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
10924         standard_iv_increment_position. Remove call to bsi_next
10925         (no need to bump the iterator anymore).
10926         (vect_create_index_for_vector_ref): Call
10927         standard_iv_increment_position. Remove second function argument.
10928         (vect_finish_stmt_generation): Remove call to bsi_next
10929         (no need to bump the iterator anymore).
10930         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
10931         to vect_create_index_for_vector_ref.
10932
10933 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10934
10935         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
10936         phis are used out of the loop.
10937
10938 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10939
10940         PR c/17807
10941         * c-decl.c (undef_nested_function): New variable.
10942         (pop_scope): Diagnose undefined nested functions.
10943         (finish_function): Don't attempt cgraph processing or genericizing
10944         if current top-level function contained an undefined nested
10945         function.  Reset undef_nested_function at the end of a top-level
10946         function.
10947
10948 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
10949
10950         * tree.c (build_int_cst_type): Take sign of the value into account
10951         when deciding whether sign extend the value.
10952
10953 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10954
10955         PR c/18502
10956         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
10957         (cpp_options, cc1_options): Change %{std*&ansi} to
10958         %{std*&ansi&trigraphs}.
10959
10960 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
10961
10962         * cse.c: Update comments.
10963
10964 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
10965
10966         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
10967         arguments go on the stack.  Do not put complex doubles in odd/even
10968         pairs.
10969
10970 2005-02-02  Steven Bosscher  <stevenb@suse.de>
10971
10972         * doc/invoke.texi: Update the options enabled at -O1, -O2,
10973         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
10974         -ftree-pre, and -fthread-jumps.
10975
10976 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
10977
10978         PR tree-optimization/19578
10979         * tree-flow.h (modified_noreturn_calls): Declare.
10980         (noreturn_call_p): Declare.
10981         * tree-flow-inline.h (noreturn_call_p): New function.
10982         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
10983         * tree-cfg.c (modified_noreturn_calls): New variable.
10984         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
10985         that contain a mid-block noreturn call.
10986         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
10987
10988 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
10989
10990         * df.c (df_def_record_1, df_uses_record): Don't use
10991         DF_FOR_REGALLOC.
10992         * df.h (DF_FOR_REGALLOC): Remove.
10993
10994 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10995
10996         PR c/19435
10997         * c-typeck.c (really_start_incremental_init): Reset
10998         constructor_max_index for arrays of incomplete type.
10999
11000 2005-02-02  Jeff Law  <law@redhat.com>
11001
11002         * gcse.c (struct reg_set): Store the block index where the register
11003         was set rather than the setting insn.
11004         (record_one_set, compute_transp): Corresponding changes.
11005         (pre_insert_copy_insn): Do not call replace_one_set.
11006         (replace_one_set): Remove.
11007
11008 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
11009
11010         PR other/15514
11011         * doc/gcov.texi: Fix typo.
11012
11013 2005-02-01  Richard Henderson  <rth@redhat.com
11014
11015         PR target/19680
11016         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
11017         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
11018         type to bool.
11019         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
11020         * config/i386/i386-protos.h: Update.
11021
11022 2005-02-01  Steven Bosscher  <stevenb@suse.de>
11023
11024         PR tree-optimization/19217
11025         * tree-cfg.c (verify_expr): Use the data field to see if TP was
11026         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
11027         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
11028         that it is walking a PHI node.
11029
11030 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
11031
11032         * doc/extend.texi (Nested Functions): Update.
11033
11034 2005-02-01  Richard Henderson  <rth@redhat.com>
11035
11036         PR 19696
11037         * optabs.c (expand_copysign_absneg): Export.
11038         * optabs.h (expand_copysign_absneg): Declare.
11039         * config/rs6000/rs6000.md (copysigntf3): New.
11040
11041 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
11042
11043         PR tree-optimization/19633
11044         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
11045         * tree-ssa-alias.c (init_alias_info): Initialize.
11046         (merge_pointed_to_info): Set.
11047         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
11048         (dump_points_to_info_for): Show value of pt_null.
11049         (struct count_ptr_d): Declare.
11050         (find_ptr_dereference): Remove.
11051         (ptr_is_dereferenced_by): Remove.
11052         (count_ptr_derefs): New local function.
11053         (count_uses_and_derefs): New local function.
11054         (compute_points_to_and_addr_escape): Call it.  If the number
11055         of dereferences is greater than zero, mark the pointer as
11056         dereferenced.  If there are fewer dereferences than uses of
11057         the pointer, the pointer's value escapes.
11058
11059 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
11060
11061         PR tree-optimization/19670
11062         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
11063         here...
11064         (verify_use): ... set it here, instead.
11065
11066 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
11067
11068         * doc/sourcebuild.texi (Test directives): Fix formatting.
11069
11070         * doc/sourcebuild.texi (Test directives): Describe selector
11071         expressions.
11072
11073 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
11074
11075         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
11076         specific 64-bit CPUs.
11077
11078 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
11079
11080         PR target/16201
11081         * arm.c (arm_eliminable_register): New function.
11082         (adjacent_mem_locations): Don't allow eliminable registers.  Use
11083         HOST_WIDE_INT for address offsets.
11084         * arm-protos.h (arm_eliminable_register): Add prototype.
11085
11086 2005-02-01  Steven Bosscher  <stevenb@suse.de>
11087
11088         PR optimization/15242
11089         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
11090         * basic-block.h (duplicate_computed_gotos): Add prototype.
11091         * bb-reorder.c (duplicate_computed_gotos): New function to
11092         duplicate sufficiently small blocks ending in a computed jump.
11093         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
11094         if not optimizing for size.
11095         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
11096         never do tail merging for blocks ending in a computed jump.
11097         * doc/invoke.texi: Document the max-goto-duplication-insns param.
11098
11099 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
11100
11101         Patch from Richard Sandiford <rsandifo@redhat.com>
11102         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
11103         from inheriting a subreg equivalence with a non-spill register.
11104
11105         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
11106
11107 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
11108
11109         * config/frv/frv.c (movcc_fp_destination_operand): New.
11110         (gpr_or_memory_operand): Fix typo in comment.
11111         (gpr_or_memory_operand_with_scratch): New.
11112         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
11113         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
11114         movcc_fp_destination_operand.
11115         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
11116         Legitimize memory addresses using a scratch register.
11117
11118 2005-01-31  Jeff Law  <law@redhat.com>
11119
11120         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
11121         bitmap a sparse bitmap instead of a simple bitmap.
11122         (mark_def_sites_initialize_block):  Corresponding changes.
11123         (ssa_mark_def_sites_initialize_block): Likewise.
11124         (ssa_mark_phi_uses): Likewise.
11125         (mark_def_site, ssa_mark_def_sites): Likewise.
11126         (mark_def_site_blocks): Likewise.
11127         (rewrite_ssa_into_ssa): Likewise.
11128
11129         * tree-ssa-dom.c (record_cond): Pass correct variable type
11130         for last argument to htab_find_slot_with_hash.
11131
11132         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
11133         effects when optimizing 0 % X.  Do not try to optimize X % 0.
11134
11135 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
11136
11137         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
11138         1_mmalua.
11139
11140 2005-02-01  Eric Christopher  <echristo@redhat.com>
11141
11142         * config/mips/mips.c (override_options): Warn if -mint64
11143         is used.
11144         * doc/invoke.texi (MIPS Options): Document that -mint64 is
11145         deprecated.
11146
11147 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
11148
11149         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
11150         timestamp.
11151         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
11152         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
11153         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
11154         (cached_regno): Initialize to INVALID_REGNUM.
11155         (cse_reg_info_table_size,
11156         cse_reg_info_table_first_uninitialized,
11157         cse_reg_info_timestamp): New.
11158         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
11159         get_cse_reg_info.
11160         (init_cse_reg_info, get_cse_reg_info_1): New.
11161         (get_cse_reg_info): Cache the last look-up.
11162         (new_basic_block): Update the code to clear mappings from
11163         registers to cse_reg_info entries.
11164         (cse_main): Call init_cse_reg_info.
11165
11166         * cse.c (get_cse_reg_info): Update a comment.
11167
11168 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11169
11170         PR c/19333
11171         * c-decl.c (start_decl): Do not warn about arrays of elements with
11172         an incomplete type here.
11173         (grokdeclarator): Do it here by making a pedwarn an error.
11174         * c-typeck.c (push_init_level): If there were previous errors with
11175         the constructor type, do not warn about braces for initializers.
11176         (process_init_element): Likewise for excess initializer elements.
11177
11178 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
11179
11180         * cse.c (delete_trivially_dead_insn): Don't iterate.
11181
11182 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11183
11184         * config/rs6000/rs6000.md (copysignsf3): New expand.
11185         (copysigndf3): Likewise.
11186
11187 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11188
11189         * recog.c (constrain_operands): Only look for earlyclobber operand
11190         conflicts if an '&' constraint was seen.
11191
11192 2005-01-31  Marc Espie <espie@openbsd.org>
11193
11194         * config.gcc: Don't include embedded systems fragment, switches default
11195         debugging format to ELF.
11196         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
11197         longer pick it up there.
11198
11199 2005-01-31  Dale Johannesen  <dalej@apple.com>
11200
11201         * doc/extend.texi (nested functions): Fix linkage description.
11202         Clarify that static is not allowed.
11203
11204 2005-01-31  Dale Johannesen  <dalej@apple.com>
11205
11206         * config/rs6000/darwin.md (movsf_low_di):  Make work.
11207         (movdf_low_di):  Make work.
11208
11209 2005-01-31  Dale Johannesen  <dalej@apple.com>
11210
11211         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
11212         Make work for 64 bit.
11213
11214 2005-01-31  Roger Sayle  <roger@eyesopen.com>
11215             Dale Johannesen  <dalej@apple.com>
11216
11217         PR middle-end/19650
11218         * fold-const.c (fold_binary_op_with_conditional_arg):
11219         Make types match original operands, before STRIP_NOPS.
11220
11221 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
11222
11223         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
11224         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
11225         (struct gcc_sigcontext): Delete.  Merge contents to..
11226         (struct gcc_ucontext): ..here.
11227         (get_sigcontext): Delete.
11228         (get_regs): New function, like get_sigcontext but return regs ptr.
11229         64-bit version finds regs from r1 to support vdso.
11230         (ppc_linux_aux_vector): New function.
11231         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
11232         and vector regs.
11233
11234 2005-01-31  Ira Rosen  <irar@il.ibm.com>
11235
11236         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
11237         sizetype.
11238         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
11239         redundant fold. Fix misalignment for MINUS_EXPR.
11240         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
11241         (vect_analyze_pointer_ref_access): Likewise.
11242         (vect_get_memtag_and_dr): Likewise.
11243
11244 2005-01-31  Richard Henderson  <rth@redhat.com>
11245
11246         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
11247         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
11248         absnegdf2_i387, absnegxf2_i387): Likewise.
11249
11250 2005-01-31  Richard Henderson  <rth@redhat.com>
11251
11252         PR 19696
11253         * optabs.c (expand_copysign_absneg): New.
11254         (expand_copysign_bit): Split out from ...
11255         (expand_copysign): ... here.  Use expand_copysign_absneg.
11256
11257 2005-01-30  Roger Sayle  <roger@eyesopen.com>
11258
11259         PR middle-end/19697
11260         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
11261         constant as the second operand and a register as the third.
11262
11263 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
11264
11265         PR target/19704
11266         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
11267         that dllimport'd functions do not use all call-clobbered registers
11268         to pass parameters.
11269
11270 2005-01-30  Richard Henderson  <rth@redhat.com>
11271
11272         PR 19696
11273         * optabs.c (expand_absneg_bit): Split out from expand_unop and
11274         expand_abs_nojump and generalize.  Use operand_subword and
11275         emit_no_conflict_block.  Support large modes.
11276         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
11277         back to maximum.
11278         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
11279         negation to subtraction.
11280         (expand_copysign): Check that the format has signed zeros.
11281         Use operand_subword and emit_no_conflict_block.  Support large modes.
11282
11283 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
11284
11285         Fix PR tree-optimization/19624
11286
11287         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
11288         * tree-ssa-pre.c: Add cfgloop.h.
11289         Update comment.
11290         (pre_stats): New member, constified.
11291         (inserted_exprs): New static variable.
11292         (NECESSARY): New macro.
11293         (create_expression_by_pieces): Fold the expression, and
11294         mark it as defaulting to not necessary. Also put in
11295         inserted_exprs.
11296         (fully_constant_expression): New function.
11297         (insert_into_preds_of_block): Modify to not insert phis when we
11298         are playing with induction variables.
11299         Push phis onto the inserted_exprs vector, and mark them as not
11300         necessary by default.
11301         (insert_aux): Call fully_constant_expression on eprime.
11302         If all edges produce the same value, mark it constant.
11303         (mark_operand_necessary): New function.
11304         (remove_dead_inserted_code): New function.
11305         (init_pre): Init loop optimizer to get loop info.
11306         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
11307         (execute_pre): Commit edge inserts, then remove dead code.
11308
11309 2005-01-30  Richard Henderson  <rth@redhat.com>
11310
11311         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
11312         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
11313
11314 2005-01-30  Richard Henderson  <rth@redhat.com>
11315
11316         PR target/19700
11317         * config/i386/i386.c (ix86_expand_copysign): New.
11318         (ix86_split_copysign_const): New.
11319         (ix86_split_copysign_var): Rename from ix86_split_copysign,
11320         rearrange op1/nmask operands.
11321         * config/i386/i386-protos.h: Update.
11322         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
11323         (copysigndf3): Likewise.
11324         (copysignsf3_const, copysigndf3_const): New.
11325         (copysignsf3_var): Rename from copysignsf3, split out splitter
11326         and fix split predicate for X constraint.
11327         (copysigndf3_var): Similarly.
11328
11329 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11330
11331         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
11332         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
11333         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
11334
11335 2005-01-29  Richard Henderson  <rth@redhat.com>
11336
11337         PR target/19690
11338         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
11339         of # and * in constraints.
11340
11341 2005-01-29  Richard Henderson  <rth@redhat.com>
11342
11343         PR middle-end/19689
11344         * expr.c (store_field): Don't strip sub-mode cast when the input
11345         data is even smaller.
11346
11347 2005-01-29  Richard Henderson  <rth@redhat.com>
11348
11349         PR middle-end/19687
11350         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
11351         union being empty.
11352
11353 2005-01-29  Richard Henderson  <rth@redhat.com>
11354
11355         * combine.c (make_field_assignment): Fix argument order
11356         to gen_int_mode.
11357
11358 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
11359
11360         PR tree-optimization/15791
11361         * fold-const.c (extract_array_ref): New function.
11362         (fold): Fold comparisons between &a[i] and &a[j] or
11363         semantically equivalent trees.
11364
11365 2005-01-29  Jeff Law  <law@redhat.com>
11366
11367         * gcse.c (insert_expr_in_table): Revamp handling of available
11368         and anticipatable occurrence lists to avoid unnecessary list
11369         walking.
11370         (insert_set_in_table): Similarly.
11371
11372 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
11373
11374         * c-common.c (fix_string_type): Just use c_build_qualified_type to
11375         build string type.
11376         (c_build_qualified_type): Build qualified array types with
11377         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
11378         * c-decl.c (c_make_fname_decl): Build unqualified array type
11379         before qualified type.
11380         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
11381         type is qualified, not just if type itself is.  Don't apply
11382         qualifiers to array type when declarator is processed.  Apply
11383         qualifiers to field type whether or not it is an array type.
11384         Don't handle array types specially for applying qualifiers to
11385         variables.
11386         * c-typeck.c (composite_type): Build unqualified element type and
11387         array type when forming composite of array types.
11388         (common_pointer_type, comptypes, comp_target_types,
11389         type_lists_compatible_p, build_indirect_ref, build_array_ref,
11390         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
11391         types.
11392         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
11393         (args2) in variables a1 and a2.
11394
11395 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
11396
11397         * cse.c (n_elements_made, max_elements_made): Remove.
11398         (insert): Don't touch n_elements_made.
11399         (cse_main): Don't touch n_elements_made or max_elements_made.
11400
11401 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
11402
11403         PR target/15384
11404         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
11405         configuration part of dp-bit.c to be lost.
11406
11407 2005-01-28  Roger Sayle  <roger@eyesopen.com>
11408
11409         * expmed.c (expand_mult_highpart_optab): When attempting to use
11410         a non-widening multiplication in a wider mode, the operands need
11411         to be converted (zero or sign extended) to that mode.
11412
11413 2005-01-28  Ian Lance Taylor  <ian@airs.com>
11414
11415         PR middle-end/16558
11416         PR middle-end/19583
11417         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
11418         through if both operands fall through.
11419
11420 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11421
11422         * cse.c (fold_rtx) <PC>: Don't optimize.
11423
11424 2005-01-28  Jeff Law  <law@redhat.com>
11425
11426         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
11427         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
11428
11429 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11430
11431         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
11432         cse_reg_info_used_list_end): Remove.
11433         (cse_reg_info_list, cse_reg_info_list_free): New.
11434         (get_cse_reg_info): When allocating an instance of
11435         cse_reg_info, add it to the beginning of the cse_reg_info_list
11436         list.  Remove code to maintain cse_reg_info_used_list.
11437         (new_basic_block): Reset the free list to the beginning of
11438         cse_reg_info_list.
11439
11440 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
11441
11442         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
11443         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
11444         (frv_expand_mdpackh_builtin): New function.
11445         (frv_expand_builtin): Use it to expand __MDPACKH.
11446         * doc/extend.texi (__MDPACKH): Update documentation.
11447
11448 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
11449
11450         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
11451         SSE_FLOAT_MODE_P for use_sse computation.
11452
11453 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
11454
11455         PR target/19663
11456         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
11457
11458 2005-01-27  Richard Henderson  <rth@redhat.com>
11459
11460         * builtins.c (expand_builtin_copysign): New.
11461         (expand_builtin): Call it.
11462         * genopinit.c (optabs): Add copysign_optab.
11463         * optabs.c (init_optabs): Initialize it.
11464         (expand_copysign): New.
11465         * optabs.h (OTI_copysign, copysign_optab): New.
11466         (expand_copysign): Declare.
11467
11468         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
11469         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
11470
11471         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
11472         (ix86_expand_fp_absneg_operator): ... here.
11473         (ix86_split_copysign): New.
11474         * config/i386/i386-protos.h: Update.
11475         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
11476         (copysignsf3, copysigndf3): New.
11477
11478         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
11479         (copysignsf3, ncopysignsf3): New.
11480         (copysigndf3, ncopysigndf3): New.
11481         (copysignxf3, ncopysignxf3): New.
11482         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
11483
11484 2005-01-27  Arend Bayer  <arend.bayer@web.de>
11485             Kazu Hirata  <kazu@cs.umass.edu>
11486
11487         * cse.c: (find_best_addr): Don't call copy_rtx before calling
11488         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
11489         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
11490         NULL_RTX.
11491
11492 2005-01-27  Jeff Law  <law@redhat.com>
11493
11494         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
11495         definitions of SSA_NAMEs which are not being rewritten.
11496         (rewrite_ssa_into_ssa): Only initialize the current definition
11497         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
11498         If checking is enabled, assert that SSA_NAME_AUX is clear for all
11499         SSA_NAMEs before returning.
11500
11501 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
11502
11503         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
11504         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
11505         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
11506         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
11507         config/mips/iris6.h, config/sh/sh.c: Update copyright.
11508
11509 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11510
11511         PR middle-end/17278
11512         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
11513         higher to -O2 and higher.  Likewise for tree PRE.
11514         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
11515         and better.
11516
11517 2005-01-27  Ian Lance Taylor  <ian@airs.com>
11518
11519         PR middle-end/19583
11520         * gimple-low.c (try_catch_may_fallthru): New static function.
11521         (block_may_fallthru): Handle TRY_CATCH_EXPR.
11522         * tree-inline.c (expand_call_inline): Don't warn about reaching
11523         the end of a non-void function being inlined if the function uses
11524         a return slot.
11525
11526 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
11527
11528         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
11529
11530         PR c/18946
11531         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
11532         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
11533         (implicitly_declare): Handle error_mark_node.
11534
11535 2005-01-27  Richard Henderson  <rth@redhat.com>
11536
11537         PR tree-opt/14329
11538         * tree.h (struct tree_decl): Add debug_expr_is_from.
11539         (DECL_DEBUG_EXPR_IS_FROM): New.
11540         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
11541         * dwarf2out.c (dwarf2out_var_location): Update to match.
11542         * tree-outof-ssa.c (create_temp): Likewise.
11543         * var-tracking.c (track_expr_p): Likewise.
11544         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
11545         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
11546         * toplev.c (default_tree_printer): Likewise.
11547
11548 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
11549
11550         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
11551         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
11552
11553 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11554
11555         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
11556         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
11557         ASM_CLOBBERS): Add tree checks.
11558
11559         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
11560         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
11561         * c-common.def (SWITCH_STMT): Update to match.
11562         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
11563         macros instead of SWITCH_EXPR ones.
11564         * c-dump.c (c_dump_tree): Likewise.
11565         * c-gimplify.c (gimplify_switch_stmt): Likewise.
11566         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
11567
11568         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
11569
11570 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
11571
11572         * unwind-dw2.c (execute_stack_op): Add missing cases for
11573         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
11574
11575 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
11576
11577         * config.gcc (Obsolete configurations): Remove 'dummy', add
11578         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
11579         sparc-*-openbsd*.
11580
11581 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
11582
11583         PR tree-optimization/19633
11584         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
11585         CALL_EXPRs.
11586         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
11587         are no call-clobbered variables.
11588         * tree-outof-ssa.c (check_replaceable): Return false for calls
11589         with side-effects.
11590
11591 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
11592
11593         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
11594         even for variables with NULL DECL_INITIAL.
11595
11596 2005-01-26  Stuart Hastings  <stuart@apple.com>
11597
11598         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
11599
11600 2005-01-26  Richard Henderson  <rth@redhat.com>
11601
11602         PR middle-end/18008
11603         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11604         field's type.
11605         * expr.c (store_field): Strip conversions to odd-bit-sized types
11606         if the destination field width matches.
11607
11608 2005-01-26  Richard Henderson  <rth@redhat.com>
11609
11610         * c-decl.c, expmed.c, expr.c: Revert last change.
11611
11612 2005-01-26  Richard Henderson  <rth@redhat.com>
11613
11614         PR middle-end/18008
11615         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11616         field's type.
11617         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
11618         if we don't need the bits above those present in the current mode.
11619         * expr.c (store_field): Strip conversions to odd-bit-sized types
11620         if the destination field width matches.
11621
11622 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
11623
11624         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
11625         either -ffast-math or -funsafe-math-optimizations is in use.
11626
11627 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11628
11629         PR target/19293
11630         PR target/19329
11631         * config/avr/avr.c (notice_update_cc): Only set condition code for
11632         ashrqi3 if shift count > 0.
11633         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
11634         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
11635         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
11636         count <= 0 as a no-op, and shift count >= width by copying zero
11637         or sign bit to all bits of the result.
11638         * config/avr/avr.md (all shifts): Add alternatives for zero shift
11639         count, with attribute "length" set to 0 and "cc" set to "none".
11640
11641 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11642
11643         * doc/invoke.texi: Document -mTLS.
11644
11645         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
11646         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
11647         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
11648         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
11649         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
11650         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
11651         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
11652         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
11653
11654         * configure.ac: Check for a TLS capable gas.
11655
11656         * configure: Regenerate.
11657
11658 2005-01-26  Richard Henderson  <rth@redhat.com>
11659
11660         PR middle-end/18008
11661         * combine.c (make_field_assignment): Simplify store to zero_extract
11662         from a source with an overlapping mask.
11663
11664 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11665
11666         2004-11-11  Eric Christopher  <echristo@redhat.com>
11667
11668         * config/frv/frv.md: Add fr400_integer automaton. Don't
11669         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
11670         to TYPE_MACC.
11671
11672 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11673
11674         PR middle-end/16585
11675         * cfgbuild.c (make_edges): Do not clear or set
11676         current_function_has_computed_jump.
11677         * function.h (struct function): Remove the has_computed_jump field.
11678         (current_function_has_computed_jump): Do not define.
11679         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
11680         in a computed jump.  Ignore current_function_has_computed_jump.
11681
11682 2005-01-26  Richard Henderson  <rth@redhat.com>
11683
11684         PR middle-end/19515
11685         * expr.c (categorize_ctor_elements): New argument p_must_clear.
11686         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
11687         fully initialized.
11688         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
11689         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
11690         objects into static storage if they have more than one non-zero value.
11691         * tree.h (categorize_ctor_elements): Update decl.
11692
11693 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11694
11695         PR middle-end/19616
11696         * tree.h (CALL_EXPR_TAILCALL): Add comment.
11697         * calls.c (check_sibcall_argument_overlap_1): Revert the change
11698         to this function from 2004-07-10.
11699         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
11700         the current function for tail call optimizations if the address
11701         of one of it its arguments is taken.
11702
11703 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
11704
11705         * cse.c (fold_rtx): Call equiv_constant only when necessary.
11706
11707 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
11708
11709         * function.c (expand_function_end): If current_function_calls_alloca,
11710         emit stack restore in a place that is reached when the function falls
11711         through at the end.
11712
11713 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
11714
11715         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
11716         rule to avoid matching inappropriate suffix rule.
11717
11718 2005-01-26  Jan Hubicka  <jh@suse.cz>
11719
11720         PR tree-optimization/19241
11721         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
11722
11723 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11724
11725         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
11726         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
11727         of doubling.
11728         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
11729         <sim*>: Always use crt1.o, regardless of N in simN.
11730         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11731         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
11732         (CRT_CALL_STATIC_FUNCTION): Remove.
11733         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
11734         use crt1.o, regardless of N in simN.
11735         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11736         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
11737         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
11738         case isystem setting.
11739         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
11740
11741 2005-01-25  Ian Lance Taylor  <ian@airs.com>
11742
11743         * gimple-low.c (block_may_fallthru): Correct handling of
11744         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
11745
11746 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11747
11748         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
11749         handlers to match indentation; nested under the mtune=* handler.
11750         Similar for mcpu= and march=.
11751
11752 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
11753
11754         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
11755         * config/mips/linux64.h (LIB_SPEC): Likewise.
11756         * config/mn10300/linux.h (LIB_SPEC): Likewise.
11757         * config/sh/linux.h (LIB_SPEC): Likewise.
11758
11759 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
11760
11761         * config/frv/frv.c (frv_legitimize_tls_address): New.
11762         (TARGET_HAVE_TLS): Define.
11763         (FRV_SYMBOL_REF_TLS_P): Define.
11764         (frv_override_options): Handle new register classes.
11765         (frv_legitimate_address_p): Reject tls addresses.
11766         (frv_legitimize_address): Handle TLS addresses.
11767         (gen_inlined_tls_plt): New.
11768         (gen_tlsmoff): New.
11769         (frv_legitimize_tls_address): New.
11770         (unspec_got_name): Add TLS entries.
11771         (got12_operand): Add R_FRV_TLSMOFF12 case.
11772         (frv_emit_move): Fixup TLS addresses.
11773         (frv_emit_movsi): Legitimize TLS addresses.
11774
11775         * config/frv/frv.h (MASK_BIG_TLS): New.
11776         (TARGET_BIG_TLS): New.
11777         (HAVE_AS_TLS): Define.
11778         (TARGET_SWITCHES): Add -mTLS and -mtls options.
11779         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
11780         (REG_CLASS_NAMES): Same.
11781         (REG_CLASS_CONTENTS): Same.
11782         (CONSTRAINT_LEN): New.
11783         (REG_CLASS_FROM_CONSTRAINT): New.
11784         (PREDICATE_CODES): Add symbolic_operand.
11785
11786         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
11787         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
11788         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
11789         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
11790         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
11791         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
11792         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
11793         GR9_REG, GR14_REG, LRREG.
11794         (type): Add load_or_call attribute.
11795         ("load_or_call"): New reservation.
11796         ("call_gettlsoff"): New.
11797         ("tls_indirect_call"): New.
11798         ("tls_load_gottlsoff12"): New.
11799         ("tlsoff_hilo"): New.
11800         ("tls_tlsdesc_ldd"): New.
11801         ("tls_tlsoff_ld"): New.
11802         ("tls_lddi"): New.
11803
11804         * config/frv/frv-protos.h (symbolic_operand): Protoize.
11805
11806         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
11807
11808         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
11809         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
11810         * config/frv/frv.c (TLS_BIAS): Define.
11811         (frv_output_dwarf_dtprel): New.
11812
11813 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
11814
11815         PR rtl-optimization/19579
11816         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
11817         both A and B, see if they don't clobber registers the other expr uses.
11818
11819 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
11820
11821         * real.c (do_add): Initialize signalling and canonical members.
11822
11823         * real.c (real_from_integer): Zero out destination.
11824
11825 2005-01-18  Jan Hubicka  <jh@suse.cz>
11826
11827         PR tree-optimize/19337
11828         * tree-inline.c (initialize_inlined_parameters): Copy
11829         saved_static_chain_decl only.
11830
11831 2005-01-25  Richard Henderson  <rth@redhat.com>
11832
11833         PR target/19556
11834         PR target/19584
11835         * config/i386/i386.c (x86_inter_unit_moves): Zero.
11836         (ix86_preferred_reload_class): Rewrite fp-constant section, with
11837         80387 enabled, to return a proper subclass.  Return the subset that
11838         overlaps with GENERAL_REGS for PLUS.
11839         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
11840
11841 2005-01-25  Richard Henderson  <rth@redhat.com>
11842
11843         PR middle-end/19609
11844         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
11845
11846 2005-01-25  Roger Sayle  <roger@eyesopen.com>
11847
11848         * expmed.c (choose_multiplier): Change interface to return the
11849         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
11850         (expand_divmod): Update calls to choose_multiplier.
11851
11852 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11853
11854         PR middle-end/19330
11855         * expmed.c (extract_bit_field): Use adjust_address instead of
11856         gen_lowpart when op0 is a MEM.
11857
11858 2005-01-24  Steven Bosscher  <stevenb@suse.de>
11859
11860         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
11861
11862 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
11863
11864         * config/mips/irix-csr.c: New file.
11865         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
11866         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
11867         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
11868         executables.
11869
11870 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
11871
11872         PR bootstrap/19364
11873         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
11874         sparc/elf.h, add sparc/sp-elf.h.
11875         (sparc-*-rtems*): Likewise.
11876         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
11877         tm-dwarf2.h, add sparc/sp-elf.h.
11878         (sparc86x-*-elf): Likewise.
11879         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
11880         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
11881         TARGET_OS_CPP_BUILTINS.
11882         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11883         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11884         Undefine it.
11885         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
11886         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
11887         (SWITCH_TAKES_ARG): Likewise.
11888         (LOCAL_LABEL_PREFIX): Likewise.
11889         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11890         (TARGET_N_FORMAT_TYPES): Delete.
11891         (TARGET_FORMAT_TYPES): Likewise.
11892         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11893         * config/sparc/elf.h: Delete.
11894         * config/sparc/sp-elf.h: New file.
11895
11896 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11897
11898         * tree-flow-inline.h (phi_arg_from_edge): Remove.
11899         * tree-flow.h: Remove the corresponding prototype.
11900         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
11901         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
11902
11903 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11904
11905         PR target/17751
11906         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
11907         for AIX ABI or ELF -fPIC.
11908         (rs6000_emit_load_toc_table): Don't create toc_section here.
11909         (rs6000_xcoff_file_start): Nor here.
11910
11911 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
11912
11913         * sh.c (ra.h): Don't #include.
11914         (hard_regs_intersect_p): New function, resurrected from ra.c.
11915
11916         * sh.c: Fix 1996 Copyright.
11917
11918 2005-01-24  Richard Henderson  <rth@redhat.com>
11919             Aldy Hernandez  <aldyh@redhat.com>
11920
11921         * regrename.c (note_sets): Handle subregs.
11922
11923 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
11924
11925         PR bootstrap/18058
11926         * genconditions.c (write_header, write_conditions): Elide file if
11927         not GCC >= 3.0.1.
11928
11929 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11930
11931         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
11932         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
11933         Update copyright.
11934
11935 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11936
11937         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
11938         expand_builtin_printf, expand_builtin_fprintf,
11939         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
11940         checking against POINTER_TYPE.
11941         (validate_arglist): Handle POINTER_TYPE code by checking
11942         POINTER_TYPE_P.
11943
11944 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
11945
11946         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
11947         init_rtlanal): New.
11948         (for_each_rtx): Call for_each_rtx_1.
11949         * rtl.h (init_rtlanal): Declare.
11950         * toplev.c (backend_init): Call init_rtlanal.
11951
11952 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11953
11954         * flow.c (propagate_one_insn): Formatting.
11955
11956         PR middle-end/19551
11957         * flow.c (libcall_dead_p): Be more conservative if unsure.
11958         If there are any instructions between insn and call, see if they are
11959         all dead before saying the libcall is dead.
11960
11961 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
11962
11963         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
11964         operand constraint for operand 0.
11965
11966 2005-01-23  Richard Henderson  <rth@redhat.com>
11967
11968         PR 19486
11969         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
11970         edges leading to join block.
11971
11972 2005-01-23  Roger Sayle  <roger@eyesopen.com>
11973
11974         * expmed.c (expand_mult_highpart): Make static.  Change type of
11975         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
11976         (expand_divmod): Updates calls to expand_mult_highpart by using
11977         gen_int_mode to pass a CONST_INT rtx.
11978         * rtl.h (expand_mult_highpart): Remove prototype.
11979
11980 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11981
11982         * flow.c (regset_bytes, regset_size): Remove.
11983
11984         * cfganal.c: Fix a reference to Harvey's paper.
11985
11986 2005-01-23  Steven Bosscher  <stevenb@suse.de>
11987
11988         PR rtl-optimization/19464
11989         * tree-optimize.c (init_tree_optimization_passes): Add one more
11990         copyrename pass just before out-of-ssa.
11991
11992 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
11993
11994         PR bootstrap/18058
11995         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
11996         * ggc-none.c (ggc_free): Define.
11997
11998 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11999
12000         * cse.c (max_reg, max_insn_uid): Remove.
12001         (cse_main): Don't access max_reg or max_insn_uid.
12002
12003         * c-common.c (explicit_flag_signed_bitfields,
12004         lang_statement_code_p, lang_expand_function_end): Remove.
12005         * c-common.h: Remove the corresponding declarations.
12006         * c-opts.c (c_common_handle_option): Remove all write access
12007         to explicit_flag_signed_bitfields.
12008
12009         * cgraph.c (cgraph_varpool_n_nodes): Remove.
12010         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
12011         * cgraph.h: Remove the corresponding declaration.
12012
12013         * gcse.c (null_pointer_info): Remove.
12014
12015 2005-01-23  Roger Sayle  <roger@eyesopen.com>
12016             Eric Botcazou  <ebotcazou@libertysurf.fr>
12017
12018         * combine.c (simplify_logical): Only simplify logical expressions
12019         of the form ior(and(x,y),z) by the inverse distributive law if the
12020         result is cheaper than the original.
12021
12022 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
12023
12024         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
12025         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
12026         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
12027         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
12028         config/freebsd-spec.h, config/arm/arm.h,
12029         config/h8300/h8300.md, config/i386/i386.md,
12030         config/i386/predicates.md, config/i386/sse.md,
12031         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
12032         config/vax/vax.md: Fix comment typos.  Follow spelling
12033         conventions.
12034
12035 2005-01-23  Steven Bosscher  <stevenb@suse.de>
12036
12037         * gengtype.c (walk_type): Produce `not equal to' compares for loop
12038         tests, instead of `less than'.
12039
12040 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
12041
12042         * function.c (assign_parm_setup_block): When creating a new stack slot
12043         for a parameter, get its alignment from the parameter's DECL_ALIGN
12044         rather than the type's TYPE_ALIGN.  Make sure that the parameter
12045         is at least word aligned.
12046
12047 2005-01-22  Roger Sayle  <roger@eyesopen.com>
12048
12049         PR middle-end/19378
12050         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
12051
12052 2005-01-22  Richard Henderson  <rth@redhat.com>
12053
12054         PR target/19506
12055         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
12056         in both compare operands.
12057         (movdfcc_1_sse_max): Likewise.
12058         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
12059         (movdfcc_1_sse): Likewise.
12060         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
12061         scratch register as needed.
12062
12063 2005-01-22  Richard Henderson  <rth@redhat.com>
12064
12065         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
12066
12067         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
12068
12069 2005-01-22  Richard Henderson  <rth@redhat.com>
12070
12071         * genopinit.c (optabs): Use smin/smax for floating point too.
12072         * doc/md.texi: Update to match.  Clarify that floating point
12073         results are undefined for +0/-0 and NaN.
12074         * doc/rtl.texi: Likewise.
12075         * rtl.def (SMIN, SMAX): Likewise
12076         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
12077
12078         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
12079         leading 's' to the name.
12080         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
12081         smaxxf3, sminxf3): Likewise.
12082         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
12083         Likewise.
12084
12085 2005-01-22  Paul Brook  <paul@codesourcery.com>
12086
12087         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
12088
12089 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
12090
12091         * config/s390/s390.c (struct processor_costs): New fields
12092         dlgr, dlr, dr, dsgfr, dsgr.
12093         (z900_cost, z990_cost): Values for new fields.
12094         (s390_rtx_costs): New cases MEM und COMPARE in switch
12095         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
12096         DIV, MOD, UDIV, UMOD.
12097
12098 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
12099
12100         * config/s390/s390.md ("doloop_si64"): Reload input value directly
12101         into the register being decremented.
12102         ("doloop_si31", "doloop_di"): Likewise.
12103         ("*doloop_si_long"): Adapt pattern.
12104
12105 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
12106
12107         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
12108         access registers.
12109         (CLASS_MAX_NREGS): Likewise.
12110
12111 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
12112
12113         * doc/tree-ssa.texi (Statement Operands): Add example for new
12114         must-def macro. Note deprecation of old operands interface.
12115
12116 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
12117
12118         PR tree-optimization/19484
12119         * tree-cfg.c (remove_fallthru_edge): New function.
12120         (cleanup_control_flow): Remove fallthru edges from calls that are
12121         now known not to return.
12122
12123 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12124
12125         Fix PR tree-optimization/19038
12126         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
12127         copies with loop variant ones.
12128
12129 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
12130
12131         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
12132         config/alpha/alpha-protos.h, config/alpha/alpha.h,
12133         config/alpha/alpha.md, config/alpha/predicates.md,
12134         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
12135         config/sparc/sol2.h: Update copyright.
12136
12137         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
12138         first label to see if it is a nonlocal label.
12139
12140 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
12141             Andrew Pinski  <pinskia@physics.uc.edu>
12142
12143         PR target/19491
12144         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
12145         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
12146
12147 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
12148
12149         * config/rs6000/rtems.h: Update copyright.
12150
12151 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
12152
12153         PR target/19548
12154         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
12155         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
12156         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
12157
12158 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12159
12160         PR c/18809
12161         * c-typeck.c (convert_arguments): Check for error_mark_node.
12162
12163 2005-01-21  Ian Lance Taylor  <ian@airs.com>
12164
12165         PR tree-optimization/13000
12166         * tree-inline.c: Include "tree-flow.h".
12167         (expand_call_inline): If warn_return_type, warn if non-void inline
12168         function falls through.
12169         * tree-cfg.c (execute_warn_function_return): Don't warn about
12170         control reaching end if TREE_NO_WARNING is set.  Set
12171         TREE_NO_WARNING.
12172         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
12173         has been lowered.
12174         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
12175         branch if we don't need one.
12176         * c-typeck.c: Include "tree-flow.h"
12177         (c_finish_bc_stmt): Don't add a goto if the current statement
12178         list doesn't fall through to the current point.
12179
12180 2005-01-21  Roger Sayle  <roger@eyesopen.com>
12181
12182         PR rtl-optimization/576
12183         * real.c (real_arithmetic): Change return type from void to bool
12184         to return an indication that the result may be inexact.
12185         * real.h (real_arithmeric): Update prototype.
12186         * fold-const.c (const_binop):  Don't constant fold floating
12187         point expressions when the user specifies -frounding-math and
12188         the result may depend upon the run-time rounding mode.
12189         (fold_convert_const_real_from_real): Clean-up.
12190         (fold_initializer): Ignore flag_rounding_math for initializers.
12191         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
12192         constant fold FP operations with flag_rounding_math if the
12193         result may depend upon the run-time rounding mode.
12194
12195 2005-01-21  Tom Tromey  <tromey@redhat.com>
12196
12197         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
12198
12199 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
12200
12201         * tree-cfg.c: Fix comment typos.
12202
12203 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
12204
12205         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
12206         around the call to rest_of_handle_branch_target_load_optimize.
12207
12208 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
12209
12210         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
12211         (sparc64-*-openbsd*): Likewise.
12212         (sparclite-*-elf*): Include tm-dwarf2.h.
12213         (sparc86x-*-elf*): Likewise.
12214         (sparc64-*-elf*): Likewise.
12215         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
12216         (DBX_DEBUGGING_INFO): Likewise.
12217         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
12218         (PREFERRED_DEBUGGING_TYPE): Likewise.
12219         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12220         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
12221         (PREFERRED_DEBUGGING_TYPE): Likewise.
12222         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
12223         (PREFERRED_DEBUGGING_TYPE): Likewise.
12224         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
12225
12226 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12227
12228         PR target/18701
12229         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
12230
12231 2005-01-20  Paul Brook  <paul@codesourcery.com>
12232
12233         * doc/rtl.texi: Document value extension requirements for CONST_INT.
12234
12235 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12236
12237         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
12238         label is first in a sequence of labels.
12239
12240         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
12241
12242 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
12243             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12244
12245         * doc/sourcebuild.texi (Test Directives): New.
12246
12247 2005-01-20  Roger Sayle  <roger@eyesopen.com>
12248
12249         * real.c (real_floor): Don't leave the result uninitialized when
12250         mode is VOIDMode, but return the unrounded intermediate value.
12251         (real_ceil): Likewise.
12252
12253 2005-01-20  Paul Brook  <paul@codesourcery.com>
12254
12255         * config/arm/arm.md (insv): Use gen_int_mode.
12256
12257 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
12258
12259         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
12260         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12261         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12262         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12263         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12264
12265 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12266
12267         Fix PR debug/19124
12268         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
12269         fbreg, so we have to assume we can't.
12270         (loc_descriptor_from_tree_1): Ditto.
12271         (containing_function_has_frame_base): New function.
12272         (add_location_or_const_value_attribute): Use it.
12273         Also try to generate a frame_base from a single element location
12274         list.
12275
12276 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12277
12278         PR tree-optimization/15349
12279         * timevar.def (TV_TREE_MERGE_PHI): New.
12280         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
12281         PHI_WANTED.
12282         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
12283         calls to tree_forwarder_block_p.
12284         (remove_forwarder_block_with_phi, merge_phi_nodes,
12285         gate_merge_phi, pass_merge_phi): New.
12286         * tree-optimize.c (init_tree_optimization_passes): Add
12287         pass_merge_phi.
12288         * tree-pass.h: Add an extern for pass_merge_phi;
12289
12290 2005-01-20  Richard Henderson  <rth@redhat.com>
12291
12292         PR target/19418
12293         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
12294         (_mm_castps_pd, _mm_castps_si128): New.
12295         (_mm_castsi128_ps, _mm_castsi128_pd): New.
12296
12297 2005-01-20  Richard Henderson  <rth@redhat.com>
12298
12299         PR target/19530
12300         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
12301         __builtin_ia32_vec_init_v2si.
12302         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
12303         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
12304         (ix86_init_mmx_sse_builtins): Create it.
12305         (ix86_expand_builtin): Expand it.
12306         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
12307         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
12308         (vec_extractv2si_0, vec_extractv2si_1): New.
12309
12310 2005-01-20  Richard Henderson  <rth@redhat.com>
12311
12312         PR target/16533
12313         * config/i386/i386.c (ix86_expand_push): New.
12314         * config/i386/mmx.md (push<MMXMODE>1): New.
12315         * config/i386/sse.md (push<SSEMODE>1): New.
12316         * config/i386/i386-protos.h: Update.
12317
12318 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12319
12320         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
12321         copyright.
12322
12323 2005-01-20  Richard Henderson  <rth@redhat.com>
12324
12325         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
12326         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
12327
12328 2005-01-19  Richard Henderson  <rth@redhat.com>
12329
12330         PR target/19350
12331         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
12332         to V4SFmode in SSE1 fallback load path.
12333
12334 2005-01-19  Richard Henderson  <rth@redhat.com>
12335
12336         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
12337         in QImode expansion to ix86_expand_vector_set.
12338         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
12339
12340 2005-01-19  Richard Henderson  <rth@redhat.com>
12341
12342         PR target/19511
12343         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
12344         subclass of the input class.
12345         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
12346         Always true for cross-SSE1 classes.  Rationalize conditionals.
12347         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
12348         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
12349         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
12350         (movdi_2): Add MMX/SSE zeros.
12351         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
12352         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
12353         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
12354         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
12355         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
12356         (zero_extendsidi2_rex64_1): Remove.
12357         (MOV0 peephole): Check GENERAL_REG_P.
12358
12359 2005-01-19  Richard Henderson  <rth@redhat.com>
12360
12361         PR target/19427
12362         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
12363         shufps elements.
12364         (ix86_expand_vector_extract): Likewise.
12365
12366 2005-01-19  Richard Henderson  <rth@redhat.com>
12367
12368         PR middle-end/19304
12369         * expr.c (emit_move_change_mode): New argument force; use
12370         simplify_gen_subreg if true.
12371         (emit_move_via_alt_mode): Merge into ...
12372         (emit_move_via_integer): ... here.
12373         (emit_move_ccmode): Use emit_move_change_mode directly.
12374
12375 2005-01-19  Richard Henderson  <rth@redhat.com>
12376
12377         PR target/19518
12378         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
12379         (alpha_preferred_reload_class): Handle CONST_VECTOR.
12380         (alpha_emit_set_const_1): Add no_output parameter; don't emit
12381         rtl if true.
12382         (alpha_emit_set_const): Likewise.  Make static.
12383         (alpha_emit_set_long_const): Make static.
12384         (alpha_extract_integer): Split out from alpha_expand_mov.
12385         (alpha_split_const_mov): Likewise.
12386         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
12387         (alpha_legitimate_constant_p): New.
12388         * config/alpha/alpha-protos.h: Update.
12389         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
12390         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
12391         * config/alpha/alpha.md (movsi): Add n alternative.
12392         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
12393         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
12394         (splitters for all of the above): Use alpha_split_const_mov.
12395         * config/alpha/predicates.md (non_add_const_operand): New.
12396         (non_zero_const_operand): New.
12397         (input_operand): Use alpha_legitimate_constant_p after reload.
12398
12399 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12400
12401         PR tree-optimization/19038
12402         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
12403         (add_candidate): Add ivs with increment in latch only if
12404         allow_ip_end_pos_p is true.
12405         (determine_iv_cost): Use empty_block_p.
12406
12407 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
12408
12409         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
12410         (compute_dominance_frontiers): Ditto.
12411
12412 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
12413
12414         PR target/19529
12415         * config/sh/t-rtems: New.
12416         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
12417
12418 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12419
12420         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
12421         the offset of the selected field.
12422
12423 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
12424
12425         * tree-cfg.c (remove_forwarder_block): Fix the check to
12426         prevent a nonlocal label from appearing in the middle of a
12427         basic block.
12428
12429 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
12430
12431         PR rtl-optimization/19462
12432         * reorg.c (find_end_label): Create return insn only if
12433         current_function_epilogue_delay_list is empty.
12434
12435 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
12436
12437         * doc/passes.texi: Remove paragraph mentioning new-ra.
12438
12439 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
12440
12441         PR rtl-optimization/15139
12442         * combine.c: Include params.h.
12443         (count_rtxs): New function.
12444         (record_value_for_reg): If replace_rtx would replace at least
12445         2 occurrences of REG in VALUE and TEM is really large, replace REG with
12446         (clobber (const_int 0)) instead of TEM.
12447         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
12448         * params.h (MAX_LAST_VALUE_RTL): New.
12449         * Makefile.in (combine.o): Depend on $(PARAMS_H).
12450         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
12451
12452         PR c/17297
12453         * c-typeck.c (digest_init): Only call build_vector if all constructor
12454         elements are *_CST nodes.
12455         * gimplify.c (gimplify_init_constructor): Likewise.
12456
12457         PR middle-end/19164
12458         * c-typeck.c (digest_init): Only call build_vector if inside_init
12459         is a CONSTRUCTOR.
12460
12461 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
12462
12463         * toplev.c (init_asm_output): Remove dead #ifdef.
12464
12465 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12466
12467         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
12468
12469 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12470
12471         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
12472         accessing DECL_FUNCTION_CODE.
12473         * dojump.c (do_jump): Likewise.
12474         * gimplify.c (gimplify_call_expr): Likewise.
12475         * predict.c (expr_expected_value): Likewise.
12476         (strip_builtin_expect): Likewise.
12477         * tree-inline.c (estimate_num_insns_1): Likewise.
12478         * tree-ssa-loop-im.c (stmt_cost): Likewise
12479         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
12480         (tree_expr_nonnegative_p): Likewise.
12481
12482 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12483
12484         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
12485         variant of the load_pcrel_sym pattern.
12486         * config/sparc/sparc.md (P macro): Move to the top.
12487         (load_pcrel_sym): Macroize using P.
12488         (save_register_window): Likewise.
12489
12490 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
12491
12492         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
12493         ("sordered"): Same.
12494
12495 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
12496
12497         PR C/19472
12498         * c-typeck.c (build_asm_expr): Strip nops off
12499         input memory operands.
12500
12501 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
12502
12503         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
12504         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
12505         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
12506         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
12507
12508 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
12509
12510         PR target/19379
12511         * config/i386/i386.c (override_options): If the 80387 is disabled,
12512         then do not return FP values using FP registers.
12513
12514 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
12515
12516         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
12517         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
12518         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
12519         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
12520         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
12521         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
12522         output.h, postreload-gcse.c, postreload.c, recog.c,
12523         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
12524         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
12525         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
12526         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
12527         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
12528         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
12529         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
12530         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
12531
12532         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
12533         config/alpha/alpha.c, config/arm/vfp.md,
12534         config/i386/emmintrin.h, config/i386/i386-modes.def,
12535         config/i386/i386-protos.h, config/i386/i386.h,
12536         config/i386/pmmintrin.h, config/i386/ppro.md,
12537         config/i386/predicates.md, config/i386/xmmintrin.h,
12538         config/i860/i860.c, config/ia64/ia64-modes.def,
12539         config/ia64/ia64-protos.h, config/ia64/ia64.h,
12540         config/ia64/ia64.md, config/ia64/itanium1.md,
12541         config/ia64/itanium2.md, config/ia64/predicates.md,
12542         config/iq2000/iq2000.h, config/mips/linux64.h,
12543         config/rs6000/aix41.h, config/rs6000/aix43.h,
12544         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
12545         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
12546         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
12547         config/sparc/linux64.h, config/sparc/litecoff.h,
12548         config/sparc/sp64-elf.h, config/sparc/sparc.c,
12549         config/sparc/sparc.h, config/sparc/sparc.md,
12550         config/sparc/sysv4-only.h: Update copyright.
12551
12552 2005-01-18  Richard Henderson  <rth@redhat.com>
12553
12554         PR target/19496
12555         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
12556
12557 2005-01-18  Marc Espie  <espie@openbsd.org>
12558         * config/i386/openbsdelf.h: Typo.
12559
12560 2005-01-18  Richard Henderson  <rth@redhat.com>
12561
12562         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
12563         special case for sse.
12564         * config/i386/predicates.md (sse_comparison_operator): Likewise.
12565
12566 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
12567
12568         * tree-inline.c (estimate_num_insns_1): Added cases for
12569         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
12570
12571 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12572
12573         PR rtl-optimization/19296
12574         * combine.c (simplify_comparison): Rewrite the condition under
12575         which a non-paradoxical SUBREG of a PLUS can be lifted when
12576         compared against a constant.
12577
12578 2005-01-18  Andi Kleen <ak@muc.de>
12579
12580         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
12581         * c.opt (-Wpointer-sign): Add.
12582         * doc/invoke.texi: (-Wpointer-sign): Add.
12583
12584 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12585
12586         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
12587         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
12588         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
12589         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
12590         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
12591         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
12592         for TARGET_MIX_SSE_I387.
12593         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
12594         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
12595         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
12596         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
12597         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
12598         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
12599         TARGET_MIX_SSE_I387.
12600         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
12601         from expander.
12602
12603 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12604
12605         PR target/19424
12606         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
12607         Add movaps alternative for xmm reg->reg move.
12608
12609 2005-01-17  Jeff Law  <law@redhat.com>
12610
12611         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
12612         at the end of the main DOM loop rather than just before DOM exits.
12613
12614 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
12615
12616         PR tree-optimization/19121
12617         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
12618         adding aliases to a name tag, also add them to the pointer's
12619         type tag.
12620         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
12621         sensitive alias info at all.  Only check that the two pointers
12622         have compatible pointed-to sets.
12623         * tree-ssa.c (verify_name_tags): Verify that the alias set of
12624         a pointer's type tag is a superset of the alias set of the
12625         pointer's name tag.
12626
12627 2005-01-17  James E Wilson  <wilson@specifixinc.com>
12628
12629         PR target/19357
12630         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
12631         comment to document why.
12632
12633 2005-01-17  Richard Henderson  <rth@redhat.com>
12634
12635         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
12636         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
12637         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
12638         sse2_vmsminv2df3_finite): New.
12639         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
12640         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
12641         Force op1 into register.
12642
12643 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
12644
12645         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
12646         bubblestrap from always rebuilding build directory.
12647
12648 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
12649
12650         * config/s390/s390.md ("*clc"): Remove incorrect '='.
12651         ("*cmpmem_short"): Likewise.
12652
12653 2005-01-17  Steven Bosscher  <stevenb@suse.de>
12654
12655         * basic-block.h: Document BB_* flags.
12656         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
12657         use an sbitmap instead.
12658         * sched-rgn.c (compute_trg_info): Likewise.
12659
12660 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
12661
12662         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
12663         redundant target_cpu_default and extra_parts lines.  Use the default
12664         "from-abi" ISA.
12665         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
12666         (SUBTARGET_EXTRA_SPECS): Delete.
12667         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
12668         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
12669         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
12670         and "n32" for -mabi=n32.
12671
12672 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12673
12674         PR c/5675
12675         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
12676         fold constant variables into initial values.
12677
12678 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12679
12680         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
12681
12682         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
12683         through the statements backward.
12684
12685 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12686
12687         PR middle-end/13127:
12688         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
12689         a variable set to the return value of the inlined function.
12690
12691 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
12692
12693         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
12694         when modes are tieable.
12695
12696 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
12697
12698         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
12699         of pthread_create to find out if threads are enabled.
12700         * gthr-posix95.h (__gthread_active_p): Likewise.
12701
12702 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
12703
12704         * common.opt (-fnew-ra): Remove.
12705         * ra*.*: Remove.
12706         * toplev.h (flag_new_regalloc): Remove.
12707         * Makefile.in (ra*.*): Don't mention.
12708         * passes.c (rest_of_handle_new_regalloc): Remove.
12709         (rest_of_handle_combine, rest_of_compilation): Always consider
12710         flag_new_regalloc as false.
12711         * doc/invoke.texi: Don't document -fnew-ra.
12712
12713 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
12714
12715         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
12716         last parameter to reg_scan.
12717         * loop.c (loop_optimize): Likewise.
12718         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
12719         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
12720         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12721         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12722         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
12723         * regclass.c (reg_scan): Likewise, for the declaration.
12724         * rtl.h (reg_scan): Likewise, for the prototype.
12725
12726 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12727
12728         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
12729         mark_dfs_back_edges.
12730
12731 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
12732
12733         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
12734         (compute_avail): Uses don't go in tmp_gen.
12735
12736 2005-01-16  Steven Bosscher  <stevenb@suse.de>
12737
12738         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
12739         loop to look for a free slot in a page entry.
12740
12741 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12742
12743         PR target/16304
12744         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
12745         * toplev.c (compile_file): Call process_pending_assemble_output_defs
12746         just before targetm.asm_out.file_end.
12747         * tree.h (process_pending_assemble_output_defs): Declare.
12748         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
12749         New functions.
12750         (assemble_alias): Defer generation of assembly code for defines when
12751         TARGET_DEFERRED_OUTPUT_DEFS is true.
12752         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12753         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12754         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
12755
12756 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12757
12758         PR target/19336
12759         * pa.c (pa_scalar_mode_supported_p): New function.
12760         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12761         * pa.h (MIN_UNITS_PER_WORD): Add comment.
12762
12763         * pa-protos.h (prefetch_operand): Delete.
12764         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
12765         * pa.c (prefetch_operand): Delete.
12766         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
12767         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
12768         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
12769         and prefetch_nocc_operand.
12770         * pa.md (prefetch): Rework to avoid reload problems handling short
12771         displacements when a cache control completer needs to be provided.
12772         (prefetch_32, prefetch_64): Delete.
12773         (prefetch_cc, prefetch_nocc): New patterns.
12774
12775 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
12776
12777         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
12778
12779 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12780
12781         PR ada/19388
12782         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
12783         exceeds maximum alignment for global common data.
12784         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
12785         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
12786
12787 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12788
12789         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
12790
12791 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12792
12793         * harg-reg-set.h (reg_class_names): Prototype global array.
12794         * regclass.c (reg_class_names): Declare here and initialize to
12795         REG_CLASS_NAMES.
12796         (dump_regclass): Remove local declaration of reg_class_names.
12797         (regclass): Likewise.
12798         * cfg.c (dump_flow_info): Likewise.
12799         * ra-debug.c (reg_class_names): Likewise.
12800         * regrename.c (reg_class_names): Likewise.
12801         * reload.c (reg_class_names): Likewise.
12802         * reload1.c (spill_failure): Likewise.
12803         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
12804
12805 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
12806
12807         * config/s390/s390.md ("reload_outti"): Remove predicate for
12808         output operand.  Abort if operand is not a MEM.
12809         ("reload_outdi", "reload_outdf"): Likewise.
12810
12811 2005-01-15  Marc Espie  <espie@openbsd.org>
12812
12813         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
12814         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
12815         * config/openbsd.h:  Fix C++ includes for native configurations.
12816         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
12817         Add trampoline support.
12818         * config/i386/openbsdelf.h: New.
12819
12820 2005-01-15  Marc Espie  <espie@openbsd.org>
12821
12822         * collect2.c (main): Explicitly parse -dynamic-linker option.
12823
12824 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
12825
12826         PR tree-optimization/19060
12827         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
12828         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
12829         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
12830         and handle extract_range_from_cond returning false.
12831         * fold-const.c (fold): Optimize comparisons with min/max even for
12832         width > HOST_BITS_PER_WIDE_INT.
12833
12834 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
12835
12836         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
12837         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
12838         Remove little endian multilib variants.
12839         Add mips32 multilib variant.
12840
12841 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
12842
12843         * explow.c (copy_all_reg, stabilize): Remove.
12844         * expr.h: Remove the corresponding prototypes.
12845
12846         * rtlanal.c (regs_set_between_p): Remove.
12847         * rtl.h: Remove the corresponding prototype.
12848
12849 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
12850
12851         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
12852         to rs6000_nonimmediate_operand.
12853         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
12854         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
12855         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
12856         rs6000_nonimmediate_operand.
12857         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
12858         rs6000_nonimmediate_operand.
12859
12860 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
12861
12862         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
12863
12864 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12865
12866         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
12867         on e500v2.
12868         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
12869         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
12870
12871         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
12872         (rs6k_nonimmediate_operand): New.
12873         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
12874         correctly.
12875         (legitimate_lo_sum_address_p): Same.
12876         (rs6000_legitimize_address): Same.
12877         (rs6000_legitimize_reload_address): Same.
12878         (rs6000_legitimate_address): Same.
12879         (spe_build_register_parallel): Pass DF and DC modes in a DI
12880         register.
12881
12882         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
12883         to rs6k_nonimmediate_operand.
12884
12885         * config/rs6000/spe.md ("*frob_df_di"): New.
12886         ("*frob_di_df"): New.
12887         ("*frob_di_df_2"): New.
12888         ("*mov_sidf_e500_subreg0"): New.
12889         ("*mov_sidf_e500_subreg4"): New.
12890         ("*movdf_e500_double"): Change predicate to
12891         rs6k_nonimmediate_operand.
12892
12893 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12894
12895         * postreload.c (move2add_note_store): Only call
12896         trunc_int_for_mode on scalar integers.
12897
12898 2005-01-14  Steven Bosscher  <stevenb@suse.de>
12899
12900         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
12901         replace BB_VISITED uses.
12902         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
12903         (propagate_necessity): Check the bitmap instead of BB_VISITED.
12904         (tree_dce_done): Free visited_control_parents.
12905         (perform_tree_ssa_dce): Allocate and clear it.
12906         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
12907         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
12908         instead of BB_VISITED.
12909
12910 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
12911
12912         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
12913         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
12914         Remove unused prototypes.
12915
12916 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12917
12918         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
12919         64-bit register usage.
12920         (spe_func_has_64bit_regs_p): Add FIXME note.
12921
12922 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12923
12924         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
12925         flag_finite_math_only with flag_unsafe_math_optimizations.
12926
12927 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
12928
12929         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
12930         end-of-stack check.
12931         (__tpf_eh_return): Copy TPF private stack area from the module
12932         boundary stack frame.  Add check for when module addresses are
12933         equal, but no stub address is found.
12934
12935 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
12936
12937         PR target/7525
12938         * arm.h (struct machine_function): Add call_via field.
12939         (thumb_call_via_label): Declare.
12940         * arm.c (thumb_call_via_label): New variable.
12941         (thumb_call_reg_needed): New variable.
12942         (arm_output_function_epilogue): For Thumb code, output any per-function
12943         call-indirect trampolines.
12944         (thumb_call_via_reg): New function.
12945         (arm_file_end): New function.
12946         (TARGET_ASM_FILE_END): Call arm_file_end.
12947         (aof_file_end): Likewise.
12948         * arm-protos.h (thumb_call_via_reg): Declare.
12949         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
12950         thumb_call_via_reg in normal case.
12951
12952 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
12953
12954         PR middle-end/19084
12955         PR rtl-optimization/19348
12956         * recog.c (peephole2_optimize): Do global life update if some peephole
12957         decides it doesn't need at least one of its inputs and that change
12958         influences liveness at the start of the basic block.
12959
12960         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
12961         arguments instead of 1.
12962
12963 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
12964
12965         PR middle-end/18820
12966         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
12967         zero for nested functions needing a static chain or functions
12968         with a non-constant address.
12969
12970 2005-01-13  Roger Sayle  <roger@eyesopen.com>
12971
12972         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
12973         (and (sign_extend X) C) into (zero_extend (and X C)).
12974
12975 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
12976
12977         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
12978
12979 2005-01-13  Richard Henderson  <rth@redhat.com>
12980
12981         PR target/19009
12982         PR target/19250
12983         PR target/19252
12984         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
12985         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
12986         not just TARGET_SSE.
12987         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
12988         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
12989         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
12990         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
12991         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
12992         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
12993         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
12994         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
12995         (movdicc_c_rex64): Rename with '*'.
12996         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
12997         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
12998         (movsfcc_1_387): Rename from movsfcc_1.
12999         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
13000         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
13001         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
13002         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
13003         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
13004         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
13005         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
13006         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
13007         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
13008         sse_movdfcc_const0_4): Remove.
13009         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
13010         recognize min/max early.  Update for changed sse cmove patterns.
13011         (ix86_split_sse_movcc): New.
13012         * config/i386/i386-protos.h: Update.
13013
13014 2005-01-13  Steven Bosscher  <stevenb@suse.de>
13015
13016         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
13017         (fix_stmt_v_may_defs): Likewise.
13018
13019 2005-01-13  Richard Henderson  <rth@redhat.com>
13020
13021         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
13022         for converting the mask.
13023
13024 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
13025
13026         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
13027         definition to 600.
13028
13029 2005-01-13  Richard Henderson  <rth@redhat.com>
13030
13031         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
13032         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
13033         IX86_BUILTIN_MOVDQ2Q): Remove.
13034         (IX86_BUILTIN_VEC_EXT_V4SI): New.
13035         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
13036         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
13037         shuffling.
13038         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
13039         (sse2_pextrw): Fix immediate constraint.
13040         (sse2_loadq, sse2_loadq_rex64): Remove.
13041         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
13042         Use __builtin_ia32_vec_ext_<size>.
13043         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
13044
13045 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
13046
13047         * function.c (assign_parm_setup_block): Look inside original
13048         entry_parm when inspecting PARALLEL.
13049
13050 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
13051             Joel Sherrill  <joel@oarcorp.com>
13052
13053         PR target/19399
13054         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
13055         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
13056         rtems_gxx_recursive_mutex_init.
13057         (__gthread_recursive_mutex_lock): New function.
13058         (__gthread_recursive_mutex_trylock): Likewise.
13059         (__gthread_recursive_mutex_unlock): Likewise.
13060
13061 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
13062
13063         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
13064
13065 2005-01-13  Jan Beulich  <jbeulich@novell.com>
13066
13067         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
13068         (ashrti3_internal): Indicate output is early clobber. Generate result
13069         into output rather than first input. Use move for low word of output
13070         if shift count is exactly 64.
13071         (lshrti3_internal): Likewise.
13072
13073 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
13074
13075         PR target/18329
13076         PR target/18330
13077         * reload1.c (delete_output_reload): Don't delete an output reload
13078         if the pseudo lives longer than a single basic block.  Adjust and
13079         improve wording of comment.
13080
13081 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
13082
13083         PR target/19334
13084         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
13085         of TYPE_SIZE where we mean the number of bytes.
13086
13087 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
13088
13089         * function.c (assign_parm_setup_block): Relax condition on
13090         multi-register optimization.
13091
13092 2005-01-12  Nick Clifton  <nickc@redhat.com>
13093
13094         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
13095         an "in_delay_slot" attribute of "no" to prevent them being used in
13096         delay slots.  This is forbidden because they might generate
13097         exceptions.
13098
13099 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
13100
13101         PR target/19389
13102         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
13103         with r->Y and Y->r.
13104
13105 2005-01-12  Nick Clifton  <nickc@redhat.com>
13106
13107         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
13108         passed on to GAS) but do not define, as GAS no longer supports or
13109         needs the -m2000 option.
13110
13111 2005-01-11  Roger Sayle  <roger@eyesopen.com>
13112
13113         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
13114         type as args of unprototyped builtins aren't automatically promoted.
13115         (fold_builtin_abs): Likewise.
13116
13117 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13118
13119         * Makefile.in: Set a `build-warn' variable.
13120
13121 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
13122
13123         PR tree-optimization/17949
13124         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
13125         (find_interesting_uses_address): Use it.
13126
13127 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
13128
13129         * regrename.c (kill_value): Handle subreg's that won't simplify.
13130
13131 2005-01-11  Richard Henderson  <rth@redhat.com>
13132
13133         PR target/13366
13134         * config/i386/i386.h (enum ix86_builtins): Move ...
13135         * config/i386/i386.c: ... here.
13136         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
13137         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
13138         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
13139         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
13140         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
13141         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
13142         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
13143         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
13144         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
13145         IX86_BUILTIN_LOADDDUP): Remove.
13146         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
13147         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
13148         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
13149         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
13150         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
13151         (ix86_init_builtins): Make static.
13152         (ix86_init_mmx_sse_builtins): Update for changed builtins.
13153         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
13154         if all the modes match.  Otherwise, fake it.
13155         (get_element_number, ix86_expand_vec_init_builtin,
13156         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
13157         (ix86_expand_builtin): Make static.  Update for changed builtins.
13158         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
13159         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
13160         (ix86_expand_vector_init_duplicate): New.
13161         (ix86_expand_vector_init_low_nonzero): New.
13162         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
13163         Split out from ix86_expand_vector_init; handle integer modes.
13164         (ix86_expand_vector_init): Use them.
13165         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
13166         * config/i386/i386-protos.h: Update.
13167         * config/i386/predicates.md (reg_or_0_operand): New.
13168         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
13169         (movv2sf_internal): Likewise.  And a splitter to match them all.
13170         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
13171         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
13172         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
13173         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
13174         (mmx_pinsrw): Fix operand ordering.
13175         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
13176         rather than sse_loadss expander.
13177         (movv2df splitter): Similarly.
13178         (sse_loadss, sse_loadlss): Remove.
13179         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
13180         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
13181         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
13182         (sse3_movddup): Rename with '*'.
13183         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
13184         (sse2_loadsd): Remove.
13185         (vec_dupv2df_sse3): Rename from sse3_loadddup.
13186         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
13187         (sse2_pinsrw): Fix argument ordering.
13188         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
13189         (sse2_stored): Remove 'r' destination.
13190         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
13191         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
13192         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
13193         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
13194         vec_extractv16qi, vec_initv16qi): New.
13195
13196         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
13197         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
13198         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
13199         constructor form.
13200         (_mm_load_pd, _mm_store_pd): Use plain dereference.
13201         (_mm_load_si128, _mm_store_si128): Likewise.
13202         (_mm_load1_pd): Use _mm_set1_pd.
13203         (_mm_load_sd): Use _mm_set_sd.
13204         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
13205         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
13206         (_mm_set_epi64): Use _mm_set_epi64x.
13207         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
13208         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
13209         _mm_setr_epi8): Use _mm_set_foo form.
13210         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
13211         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
13212         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
13213         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
13214         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
13215         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
13216         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
13217         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
13218         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
13219         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
13220         (_mm_movedup_pd): Use _mm_shuffle_pd.
13221         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
13222         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
13223         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
13224         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
13225         Use _mm_setzero_ps.
13226         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
13227         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
13228         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
13229         (_mm_store_ps): Use raw dereference.
13230         (_mm_store1_ps): Use _mm_storeu_ps.
13231         (_mm_storer_ps): Use _mm_store_ps.
13232         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
13233         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
13234
13235 2005-01-11  Stan Shebs  <shebs@apple.com>
13236
13237         * config/rs6000/rs6000.c (machopic_output_stub): Issue
13238         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
13239
13240 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
13241
13242         PR target/18761
13243         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
13244         Skip all DECLs except for FIELD_DECLs.
13245
13246 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13247
13248         * config/s390/s390.c (override_options): Return error if
13249         -mbackchain, -mpacked-stack and -mhard-float are used together.
13250         (s390_va_start): Remove the backchain && packed-stack special case.
13251         (s390_gimplify_va_arg): Likewise.
13252         * doc/invoke.texi: Remove the ABI incompatibility note.
13253
13254 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13255
13256         * config/s390/s390.c (struct s390_frame_layout): Remove
13257         save_backchain_p.
13258         (s390_frame_info, s390_emit_prologue): Replace occurrences of
13259         save_backchain_p with TARGET_BACKCHAIN.
13260
13261 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13262
13263         PR target/18916
13264         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
13265         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
13266         * function.c (locate_and_pad_parm): Set new field.
13267         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
13268         Tweak where_pad test to include "none".  Always set mem align for
13269         stack_parm.
13270         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
13271         not sufficient for type.
13272         (assign_parm_setup_block): If stack_parm is zero on entry, always
13273         make a new stack local.  Block move old stack parm if necessary
13274         to new aligned stack local.
13275         (assign_parm_setup_stack): Use a block move to handle
13276         potentially misaligned entry_parm.
13277         (assign_parms_unsplit_complex): Specify required alignment when
13278         creating stack local.
13279         * calls.c (compute_argument_addresses): Override alignment of stack
13280         arg calculated from its type with the alignment given by
13281         FUNCTION_ARG_BOUNDARY.
13282         (store_one_arg): Likewise.
13283
13284 2005-01-11  Jan Beulich  <jbeulich@novell.com>
13285
13286         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
13287         Change respective itanium_class attribute to ialu.
13288         (shladdp4_internal): New.
13289         * config/ia64/predicates.md (shladd_log2_operand): New.
13290
13291 2005-01-11  Richard Henderson  <rth@redhat.com>
13292
13293         * expr.c (store_constructor): Use rtvec_alloc instead of
13294         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
13295
13296 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
13297
13298         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
13299
13300 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13301
13302         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
13303         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
13304         (TARGET_RWRELOC): Define.
13305         (ia64_rwreloc_section_type_flags): Delete.
13306         (ia64_section_type_flags): New function.
13307         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
13308         (TARGET_RWRELOC): Define.
13309
13310 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
13311
13312         PR target/18987
13313         * config/ia64/ia64.c (process_set): For alloc insn, only call
13314         process_epilogue is !frame_pointer_needed.
13315
13316 2005-01-10  Roger Sayle  <roger@eyesopen.com>
13317
13318         PR c++/19355
13319         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
13320         unary operator and can't be treated as a binary/comparison operator.
13321
13322 2005-01-10  Richard Henderson  <rth@redhat.com>
13323
13324         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
13325         (ix86_return_in_memory): Likewise.
13326         (function_arg_advance):  Likewise.  Mirror structure in function_arg
13327         for choosing register to advance.
13328
13329 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
13330
13331         * tree-vectorizer.c, tree.def: Fix comment typos.
13332
13333 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
13334
13335         * config/s390/s390.c (struct processor_costs): 4 new fields:
13336         ddbr, ddr, debr, der.
13337         (s390_rtx_costs): More precise handling of divide instructions.
13338
13339 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
13340
13341         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
13342
13343 2005-01-10  Jan Beulich  <jbeulich@novell.com>
13344
13345         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
13346         names resulting from -ffunction-sections/-fdata-sections and linkonce
13347         ones.
13348         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
13349         based on the section name. Rearrange the section name comparison logic
13350         slightly so that each section name is compared against at most once.
13351
13352 2005-01-10  Ben Elliston  <bje@au.ibm.com>
13353
13354         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
13355         targets for which -fPIC reduces limitations on the GOT size.
13356
13357 2005-01-09  Falk Hueffner  <falk@debian.org>
13358
13359         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
13360         X/C1 cmpop C2.
13361
13362 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
13363
13364         PR target/18720
13365         * collect2.c (main): Set aixrtl_flag for -brtl option.
13366         (resolve_lib_name): Search for .so file extension before .a
13367         if aixrtl_flag set.
13368
13369 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
13370
13371         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
13372         (vect_analyze_data_refs_alignment): Add dump prints.
13373
13374 2005-01-09  Ira Rosen  <irar@il.ibm.com>
13375
13376         * tree-vectorizer.c (vect_analyze_offset_expr): Use
13377         expr_invariant_in_loop_p.
13378         Initialize outputs first thing in the function.
13379         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
13380         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
13381         (vect_analyze_pointer_ref_access): Check that the initial condition of
13382         the access function is loop invariant.
13383
13384 2005-01-09  Richard Henderson  <rth@redhat.com>
13385
13386         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
13387         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
13388         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
13389         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
13390         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
13391         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
13392         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
13393         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
13394         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
13395         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
13396         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
13397         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
13398         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
13399         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
13400         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
13401         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
13402         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
13403         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
13404         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
13405         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
13406         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
13407         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
13408         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
13409         mmx_ prefix.
13410         (mmx_clrdi, pavgusb): Remove.
13411         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
13412         with leading sse_ prefix.
13413         * config/i386/sse.md: Receive them.
13414         * config/i386/mmx.md: New file.
13415         (MMXMODE12, MMXMODE24, mmxvecsize): New.
13416         (subrv2sf3): Turn into expander for normal subtraction.
13417         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
13418         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
13419         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
13420         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
13421         commutative; use ix86_binary_operator_ok.
13422         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
13423         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
13424         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
13425         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
13426         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
13427         Macroize from existing patterns; use ix86_binary_operator_ok.
13428         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
13429         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
13430         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
13431         with vec_select+vec_concat.
13432         (mmx_pshufw, mmx_pshufw_1): Likewise.
13433         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
13434         (mmx_uavgv4hi3): Model correctly.
13435         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
13436         _mm_xor_si64): Remove casts.
13437
13438 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
13439
13440         PR tree-optimization/19224
13441         * tree-scalar-evolution.c (get_instantiated_value,
13442         set_instantiated_value): New functions.
13443         (instantiate_parameters_1): Cache the results.
13444         (instantiate_parameters, resolve_mixers): Initialize and free
13445         the cache.
13446
13447 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
13448
13449         * config/i386/i386.md (addhi_4): Correct reference in comment.
13450         (addqi_4): Same.
13451
13452 2005-01-08  Richard Henderson  <rth@redhat.com>
13453
13454         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
13455         (_mm_cvtsi128_si64x): Likewise.
13456         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
13457         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
13458         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
13459         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
13460         * config/i386/i386-protos.h: Update.
13461         * config/i386/i386.c (print_operand): Add 'H'.
13462         (ix86_fixup_binary_operands): Split out from ...
13463         (ix86_expand_binary_operator): ... here.
13464         (ix86_fixup_binary_operands_no_copy): New.
13465         (ix86_expand_fp_absneg_operator): Handle vector mode results.
13466         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
13467         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
13468         (safe_vector_operand): Use CONST0_RTX.
13469         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
13470         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
13471         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
13472         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
13473         special cases.
13474         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
13475         (IX86_BUILTIN_CMPNGESS): New.
13476         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
13477         (attr type): Add sselog1.
13478         (attr unit, attr memory): Handle it.
13479         (movti, movti_internal, movti_rex64): Move near other integer moves.
13480         (movtf, movtf_internal): Move near other fp moves.
13481         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
13482         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
13483         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
13484         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
13485         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
13486         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
13487         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
13488         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
13489         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
13490         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
13491         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
13492         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
13493         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
13494         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
13495         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
13496         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
13497         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
13498         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
13499         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
13500         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
13501         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
13502         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
13503         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
13504         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
13505         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
13506         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
13507         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
13508         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
13509         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
13510         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
13511         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
13512         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
13513         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
13514         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
13515         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
13516         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
13517         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
13518         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
13519         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
13520         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
13521         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
13522         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
13523         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
13524         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
13525         same time.
13526         (SSEPUSH, push<SSEPUSH>): Remove.
13527         (MMXPUSH, push<MMXPUSH>): Remove.
13528         (sse_movaps, sse_movaps_1, sse_movups): Remove.
13529         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
13530         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
13531         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
13532         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
13533         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
13534         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
13535         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
13536         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
13537         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
13538         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
13539         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
13540         (ppro_sse_log_V4SF): Handle sselog1.
13541         * config/i386/predicates.md (const_0_to_1_operand): New.
13542         (const_0_to_255_mul_8_operand): New.
13543         (const_1_to_31_operand): Rename from const_int_1_31_operand.
13544         (const_2_to_3_operand, const_4_to_7_operand): New.
13545         * config/i386/sse.md: New file.
13546         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
13547         (sse_movups): Rename from sse_movups_1.
13548         (sse_loadlss): Rename from sse_loadss_1.
13549         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
13550         from the name.
13551         (negv4sf2): Use ix86_expand_fp_absneg_operator.
13552         (absv4sf2, negv2df, absv2df): New.
13553         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
13554         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
13555         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
13556         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
13557         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
13558         (sse3_addsubv4sf3): Model correctly.
13559         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
13560         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
13561         (sse_movhlps): Model with vec_select+vec_concat.
13562         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
13563         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
13564         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
13565         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
13566         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
13567         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
13568         sse2_pshufhw_1): Likewise.
13569         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
13570         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
13571         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
13572         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
13573         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
13574         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
13575         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
13576         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
13577         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
13578         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
13579         sminv8hi3): Mark commutative
13580         operands.  Use ix86_binary_operator_ok.
13581         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
13582         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
13583         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
13584         sse2_punpcklqdq): Allow operand2 in memory.
13585         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
13586         sse2_movsd): Add memory alternatives.
13587         (sse_storelps): Turn expander into an insn; split after reload.
13588         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
13589         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
13590
13591 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13592
13593         * configure.ac (DWARF-2 debug_line): Use objdump.
13594         * configure: Regenerate.
13595
13596 2005-01-08  Jeff Law  <law@redhat.com>
13597             Diego Novillo  <dnovillo@redhat.com>
13598
13599         PR tree-optimization/18241
13600         * tree-nrv.c (tree_nrv): Ignore volatile return values.
13601         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
13602         statements with volatile operands.
13603         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
13604         operands after marking a statement with has_volatile_ops.
13605
13606 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13607
13608         * tree.c (int_fits_type_p): Always honor integer constant
13609         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
13610
13611 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13612
13613         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
13614         the latent bug in rtl_delete_block has been resolved.
13615
13616 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13617
13618         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
13619         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
13620
13621 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13622
13623         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
13624         library as @multilib_dir@/$(SHLIB_SONAME).
13625
13626 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13627
13628         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
13629         * configure: Regenerate.
13630
13631 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13632
13633         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
13634         TYPE_MODE.
13635
13636 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
13637
13638         PR target/13674
13639         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
13640         Convert non-word aligned offset address using ld/std into
13641         indirect address.
13642
13643 2005-01-07  Richard Henderson  <rth@redhat.com>
13644
13645         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
13646
13647 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
13648
13649         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
13650
13651 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13652
13653         PR tree-optimization/19283
13654         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
13655         is not shorter than the original type.
13656
13657         PR rtl-optimization/19012
13658         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
13659
13660         PR rtl-optimization/18861
13661         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
13662         (FULL_STATE): Define.
13663         (mark_tablejump_edge): New function.
13664         (purge_dead_tablejump_edges): New function.
13665         (find_bb_boundaries): Use it.
13666
13667         PR tree-optimization/18828
13668         * builtins.c (expand_builtin_next_arg): Remove argument and all
13669         the argument checking.
13670         (expand_builtin): Adjust caller.
13671         (expand_builtin_va_start): Likewise.  Remove error for too many
13672         arguments.
13673         (fold_builtin_next_arg): Issue error for too many arguments.
13674         After checking arguments, replace them with magic arguments that
13675         prevent further checking of the args.
13676
13677 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13678
13679         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
13680
13681 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13682
13683         PR target/6077
13684         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
13685         and %{.S:...} (and their negative variants) to test whether the
13686         input file is assembler or pre-processed-assembler independent of
13687         the actual filename extension.
13688
13689 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13690
13691         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
13692         of sign or zero extended values.
13693
13694 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
13695
13696         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
13697         for IBM long double format correctly.
13698
13699 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
13700
13701         Fix PR tree-optimization/18792
13702
13703         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
13704         to first_loop_depth, and use loop depth instead of loop number.
13705         (build_classic_dir_vector): Ditto.
13706         (compute_data_dependences_for_loop): Use depth, not loop number.
13707         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
13708         number. Pass in loops, instead of loop numbers.
13709         (gather_interchange_stats): Ditto.
13710         (linear_transform_loops): Ditto.
13711
13712 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
13713
13714         PR rtl-opt/13299
13715         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
13716         biv_fits_mode_p, extension_within_bounds_p): New functions.
13717         (check_ext_dependent_givs): Use them.
13718
13719 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13720
13721         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
13722         more than one barrier, in which case we should delete them all.
13723
13724 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
13725
13726         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
13727
13728 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
13729
13730         Fix PR middle-end/19286
13731         Fix PR debug/19267
13732         * dwarf2out.c (gen_subprogram_die): If we've already tried to
13733         output this subprogram, simply ignore this attempt to do it again.
13734         (add_abstract_origin_attribute): Don't abort trying to add the abstract
13735         origin attribute if it's not possible.
13736         (gen_block_die): Don't ignore subblocks of "unused" blocks.
13737         (decls_for_scope): Ditto.
13738         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
13739         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
13740
13741 2005-01-05  Richard Henderson  <rth@redhat.com>
13742
13743         PR target/11327
13744         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
13745         (bdesc_2arg): Use it.
13746         (ix86_expand_binop_builtin): Force operands into registers
13747         when optimizing.
13748         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
13749         ix86_expand_sse_compare, ix86_expand_sse_comi,
13750         ix86_expand_builtin): Likewise.
13751
13752 2005-01-05  Richard Henderson  <rth@redhat.com>
13753
13754         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
13755         and VEC_SELECT.
13756         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
13757         (mulv4hi3): Set itanium_class mmmul.
13758         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
13759         (fpack): Rename from fpack_sfsf.
13760
13761 2005-01-05  Richard Henderson  <rth@redhat.com>
13762
13763         PR rtl-opt/10692
13764         * reload1.c (do_input_reload): Restrict the optimization deleteing
13765         a previous output reload to RELOAD_FOR_INPUT.
13766
13767 2005-01-05  Steven Bosscher  <stevenb@suse.de>
13768
13769         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
13770         comment that we fall through after case.
13771         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
13772         (distribute_links): Likewise.
13773         * cse.c (cse_insn): Likewise.
13774         * cselib.c (cselib_invalidate_mem): Likewise.
13775         * df.c: Update comments at the top of the file.
13776         (read_modify_subreg_p): Update comments here too.
13777         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
13778         * flow.c (mark_set_1): Likewise.
13779         (mark_used_regs): Likewise.
13780         * gcse.c (mems_conflict_for_gcse_p): Likewise.
13781         (canon_list_insert): Likewise.
13782         (mark_set): Likewise.
13783         (try_replace_reg): Likewise.
13784         (store_killed_in_insn): Likewise.
13785         * loop.c (count_one_set): Likewise.
13786         (basic_induction_var): Likewise.
13787         * postreload-gcse.c (find_mem_conflicts): Likewise.
13788         * postreload.c (reload_combine_note_store): Likewise.
13789         (move2add_note_store): Likewise.
13790         * reload.c (find_equiv_reg): Likewise.
13791         (mark_referenced_resources): Likewise.
13792         * rtlanal.c (set_noop_p): Likewise.
13793         (note_stores): Likewise.
13794         (note_uses): Likewise.
13795         * sched-deps.c (sched_analyze_1): Likewise.
13796         * sched-rgn.c (check_live_1): Likewise.
13797         (update_live_1): Likewise.
13798         * config/i860/i860.c: Likewise.
13799
13800         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
13801         an lvalue.
13802         (ZERO_EXTRACT): Mention that this one can be an lvalue.
13803
13804         * doc/rtl.texi: Update documentation for bit-fields and SET.
13805
13806 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13807
13808         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
13809
13810 2005-01-05  Jan Hubicka  <jh@suse.cz>
13811             Richard Henderson  <rth@redhat.com>
13812
13813         PR target/18910
13814         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
13815         with an offset.
13816
13817 2005-01-05  Richard Henderson  <rth@redhat.com>
13818
13819         PR target/12902
13820         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
13821         (sse_shufps): Change operand 3 to const_int_operand.
13822         (sse2_storelps): Fix typo in template.
13823         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
13824         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
13825         (ix86_expand_builtin): Likewise.
13826
13827 2005-01-05  Julian Brown  <julian@codesourcery.com>
13828
13829         * config/arm/arm.c (arm_return_in_memory): Treat complex types
13830         as aggregates for AAPCS ABIs.
13831
13832 2005-01-05  Stan Shebs  <shebs@apple.com>
13833
13834         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
13835         Mach-O getters if ppc64.
13836         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
13837         size argument.
13838         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13839         signed four-byte field for global code case.
13840         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
13841
13842 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13843
13844         PR middle-end/19100
13845         * c-common.c: Include real.h.
13846         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
13847         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
13848         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
13849         * Makefile.in (c-common.o): Update dependencies.
13850
13851 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13852
13853         * c-parse.in (asm_string): Add trailing semicolon.
13854
13855 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13856
13857         * c-parse.in (asm_string): New.  Don't allow wide strings in
13858         'asm'.
13859         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
13860         asm_string instead of STRING.
13861
13862 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13863
13864         * c-typeck.c (constructor_no_implicit): Remove.
13865         (set_designator, process_init_element): Don't check
13866         constructor_no_implicit.
13867
13868 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
13869             Kaz Kojima  <kkojima@gcc.gnu.org>
13870
13871         PR target/16482
13872         * lcm.c (create_pre_exit): New.
13873         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
13874         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
13875
13876 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13877
13878         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
13879         -msoft-float in target_float_switch.
13880         * arm.c (arm_override_options): Fix processing of target_float_switch.
13881
13882 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13883
13884         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
13885         preferencing.
13886
13887 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
13888
13889         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
13890         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
13891
13892 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13893
13894         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
13895         if deleting the then-block allows the test-block to fallthru to the
13896         else-block.
13897
13898 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
13899
13900         PR c/19152
13901         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
13902         after the full declaration if the are in two different TUs.
13903
13904 2005-01-04  Richard Henderson  <rth@redhat.com>
13905
13906         PR tree-opt/19158
13907         * tree-sra.c (generate_one_element_init): Just
13908         call gimplify_and_add.
13909         (generate_element_init): Record the
13910         new referenced variables and mark them for renaming
13911         and split out to ...
13912         (generate_element_init_1): This.
13913         (scalarize_init): Don't call push_gimplify_context/
13914         pop_gimplify_context.
13915
13916 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
13917
13918         * toplev.c (get_src_pwd): Handle failure of getpwd().
13919
13920 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13921
13922         * fold-const.c (fold_single_bit_test): Delete unreachable handling
13923         of TRUTH_NOT_EXPR.
13924         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
13925         all the cases handled by it are inverted by invert_truthvalue.
13926
13927 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13928
13929         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
13930         (save_register_windowsi): Likewise.
13931
13932 2005-01-04  Richard Henderson  <rth@redhat.com>
13933
13934         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
13935
13936 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
13937
13938         PR middle-end/17767
13939         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
13940         any simplifications of vector mode comparison operators.
13941         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
13942
13943 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
13944             Devang Patel  <dpatel@apple.com>
13945
13946         PR tree-optimization/18308
13947         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
13948         the operands before creating a new expression.
13949         * dojump.c (do_jump): Make drop_through_label available
13950         for all cases.  Add expansion of COND_EXPR.
13951
13952 2005-01-04  Ira Rosen  <irar@il.ibm.com>
13953
13954         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
13955         INTEGER_CST instead of TREE_CONSTANT.
13956         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
13957         instead of TREE_CONSTANT.
13958         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
13959         instead of TREE_CONSTANT.
13960
13961 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13962
13963         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
13964
13965 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
13966
13967         PR target/19240
13968         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
13969         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
13970
13971 2005-01-03  Richard Henderson  <rth@redhat.com>
13972
13973         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
13974         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
13975         fold_convert_const_real_from_real): Split out from ...
13976         (fold_convert_const): ... here.
13977
13978 2005-01-03  Richard Henderson  <rth@redhat.com>
13979
13980         PR target/19235
13981         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
13982         (mov<MMXMODEI>_internal): Likewise.
13983         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
13984         Add V2SF case; use it for SSE1; don't use TI.
13985         (movdf_integer): Likewise.
13986         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
13987
13988 2005-01-03  Ira Rosen  <irar@il.ibm.com>
13989
13990         * tree-vectorizer.c (vect_strip_conversions): New function.
13991         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
13992         check for binary class.
13993
13994 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
13995
13996         Fix PR debug/17924
13997         Fix PR debug/19191
13998         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
13999         is a decl.
14000         * gimple-low.c (mark_blocks_with_used_vars): New function.
14001         (mark_blocks_with_used_subblocks): Ditto.
14002         (mark_used_blocks): Ditto.
14003         (pass_mark_used_blocks): New pass.
14004         * tree-inline.c: Include debug.h.
14005         (expand_call_inline): Call outlining_inline_function here.
14006         * tree-optimize.c (init_tree_optimization_passes): Add
14007         pass_mark_used_blocks.
14008         * tree-pass.h (pass_mark_used_blocks): New.
14009         * Makefile.in (tree-inline.o): Add debug.h dependency.
14010
14011 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
14012
14013         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
14014         VAR_DECLs to have weak_import attribute.
14015
14016         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
14017         'struct ucontext'.
14018
14019 2004-01-03  Steven Bosscher  <stevenb@suse.de>
14020
14021         * passes.c (rest_of_compilation): Don't run regmove if only
14022         flag_expensive_optimizations, require flag_regmove instead.
14023
14024 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14025
14026         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
14027         register "sparc".
14028         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
14029         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
14030         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
14031         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
14032
14033 2005-01-03  Richard Henderson  <rth@redhat.com>
14034
14035         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
14036         (ia64_const_ok_for_letter_p): New.
14037         (ia64_const_double_ok_for_letter_p): New.
14038         (ia64_extra_constraint): New.
14039         (ia64_expand_vecint_compare): New.
14040         (ia64_expand_vcondu_v2si): New.
14041         (ia64_expand_vecint_cmov): New.
14042         (ia64_expand_vecint_minmax): New.
14043         (ia64_print_operand): Add 'v'.
14044         (ia64_preferred_reload_class): New.
14045         (ia64_vector_mode_supported_p): New.
14046         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
14047         (PREFERRED_RELOAD_CLASS): Move to function.
14048         (CONST_OK_FOR_LETTER_P): Move to function.
14049         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
14050         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
14051         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
14052         (EXTRA_CONSTRAINT): Move to function.
14053         * config/ia64/ia64.md: Include vect.md.
14054         (itanium_class): Add mmalua.
14055         (type): Handle it.
14056         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
14057         (1b_mmalua): New.
14058         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
14059         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
14060         CONST0_RTX.
14061         (const_int_2bit_operand): New.
14062         (fr_reg_or_0_operand): New.
14063         * config/ia64/ia64-modes.def: Add vector modes.
14064         * config/ia64/ia64-protos.h: Update.
14065         * config/ia64/vect.md: New file.
14066
14067 2005-01-03  Richard Henderson  <rth@redhat.com>
14068
14069         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
14070
14071 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
14072
14073         PR target/19236
14074         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
14075         to SFmode.
14076         (log1pdf2): Change mode of operands[0,1] to DFmode.
14077
14078 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14079
14080         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
14081         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
14082         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
14083         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
14084         SPARC_RELAXED_ORDERING.
14085
14086 2005-01-03  Richard Henderson  <rth@redhat.com>
14087             Uros Bizjak  <uros@kss-loka.si>
14088
14089         PR target/14631
14090         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
14091         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
14092         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
14093         handling.
14094         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
14095         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
14096         const_pow2_1_to_128_operand): New predicates.
14097
14098 2005-01-02  Greg McGary  <greg@mcgary.org>
14099
14100         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
14101         anonymous decls.
14102         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
14103         object.  [ptr_type]: Remove unused variable.
14104         Remember nearest addressable array-element or record-component
14105         when checking bitfield components.  Tolerate empty BIND_EXPR.
14106
14107 2005-01-01  Richard Henderson  <rth@redhat.com>
14108
14109         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
14110         that don't narrow the value.  Fail for other conversions.
14111
14112 2005-01-01  Richard Henderson  <rth@redhat.com>
14113
14114         PR c/19031
14115         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
14116         * c-lang.c (finish_file): Don't do it here.
14117         * objc/objc-act.c (objc_finish_file): Likewise.
14118
14119         * cgraph.c (decl_assembler_name_equal): New.
14120         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
14121         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
14122         * cgraph.h (struct cgraph_varpool_node): Add next.
14123         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
14124         * varasm.c (assemble_alias): Mark the target as needed.
14125
14126 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
14127
14128         PR middle-end/19221
14129         * function.c (get_arg_pointer_save_area): Use entry_of_function
14130         instead of get_insns.
14131
14132 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14133             Andrew Pinski  <pinskia@physics.uc.edu>
14134             James E. Wilson  <wilson@specifixinc.com>
14135
14136         PR rtl-optimization/12092
14137         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
14138         is zero.
14139
14140 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14141             Olivier Hainque  <hainque@act-europe.fr>
14142
14143         * tree.c (int_fits_type_p): A narrower type always fits in a
14144         wider one, except for negative values into unsigned types.
14145
14146 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14147
14148         * tree.c (int_fits_type_p): Compare the result of force_fit_type
14149         with the original constant rather than require TREE_OVERFLOW.
14150
14151 2005-01-01  Steven Bosscher  <stevenb@suse.de>
14152
14153         PR middle-end/17544
14154         * c-decl.c (finish_function): If compiling C99, annotate the
14155         compiler generated return with the current file name and line 0.
14156         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
14157         the source line is greater than 0.
14158         (remove_bb): Likewise.