* target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
[official-gcc.git] / gcc / ChangeLog
blobfea482b414c3cfbb455cefedbe538842a294f113
1 2005-04-05  Paul Brook  <julian@codesourcery.com>
3         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
4         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
5         * config/arm/arm.c (arm_cxx_atexit_name): New function.
6         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
7         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
8         (register_dtor_fn): Likewise.
9         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
11 2005-04-25  Ian Lance Taylor  <ian@airs.com>
13         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
14         * c-common.h (EXPR_STMT_EXPR): Don't define.
15         (c_common_stmt_codes): Don't define.
16         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
17         * c-gimplify.c (gimplify_expr_stmt): Remove.
18         (c_gimplify_expr): Remove EXPR_STMT case.
19         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
20         to INIT_STATEMENT_CODES.
21         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
23 2005-04-25  Jan Hubicka  <jh@suse.cz>
25         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
27         * except.c: Include diagnostic.h
28         (dump_eh_tree, verify_eh_tree): New functions.
29         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
30         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
31         (dump_function_to_file): dump eh tree.
32         * tree-eh.c (mark_eh_edge): New function.
33         (mark_eh_edge_found_error): New static variable.
34         (verify_eh_edges): New function.
36 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
38         * tree-ssa-alias.c (fieldoff_t): Remove.
39         (fieldoff_s): typedef the structure itself.  Create a vector of
40         objects.
41         (push_fields_onto_fieldstack): Return count of fields pushed.
42         Remove peeling of first field.  Adjust.
43         (fieldoff_compare): Adjust.
44         (create_overlap_variables_for): Adjust.
46 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
48         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
50 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
52         PR bootstrap/21215
53         * doc/install.texi: Document correct assembler and linker to use
54         on i?86-*-solaris2.10.
56 2005-04-25  Steven Bosscher  <stevenb@suse.de>
58         Fix PR tree-optimization/21173
60         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
61         Unshare expression we pass to force_gimple_operand.
63 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
64             Stephen Clarke <stevec@superh.com>
65             Roger Sayle <roger@eyesopen.com>
67         PR rtl-optimization/20413
68         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
69         VOIDmode for LABEL_REF.
70         * final.c (shorten_branches): Likewise.
71         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
72         * loop.c (reg_dead_after_loop): Likewise.
73         * varasm.c (decode_addr_const): Likewise.
74         * doc/rtl.texi: Document mode requirement for LABEL_REF.
76 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
78         * config.gcc (avr-*-*): Remove redundant "case".
80 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
82         * tree-vect-analyze.c (vect_mark_relevant): Take
83         VEC(tree,heap) instead of varray_type as an argument.
84         (vect_mark_stmts_to_be_vectorized): Change the type of
85         worklist to VEC(tree,heap).  Adjust uses of worklist.
87 2005-04-24  Devang Patel  <dpatel@apple.com>
89         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
90         
91 2005-04-24  Ian Lance Taylor  <ian@airs.com>
93         * c-semantics.c (build_stmt): Remove test of specific tree codes
94         for TREE_SIDE_EFFECTS handling.
96 2005-04-24  Per Bothner  <per@bothner.com>
98         * c-opts.c (finish_options):  Make the line-number of the <built-in>
99         location 0, as assumed elsewhere, rather than 1.
101 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
103         * tree-ssa-uncprop.c (equiv_stack): Change the type o
104         VEC(tree,heap).
105         (tree_ssa_uncprop, uncprop_finalize_block,
106         uncprop_initialize_block): Update uses of equiv_stack.
108 2005-04-24  Richard Henderson  <rth@redhat.com>
110         PR rtl-opt/21163
111         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
112         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
113         constm1_rtx.
114         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
115         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
116         <DIV, MOD>: Likewise.
118 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
120         * collect2.c (main): Unlock the stdio streams.
121         * gcc.c (main): Likewise.
122         * gcov-dump.c (main): Likewise.
123         * gcov.c (main): Likewise.
124         * gen-protos.c (main): Likewise.
125         * gensupport.c (init_md_reader_args_cb): Likewise.
126         * protoize.c (main): Likewise.
127         * toplev.c (general_init): Likewise.
129 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
131         PR middle-end/20991
132         * cgraph.h (cgraph_local_info): Add vtable_method field.
133         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
134         and node is vtable_method, finalized and not reachable, don't do
135         anything.
137 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
139         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
140         COMPARISON_CLASS_P.
141         * tree-ssa-pre.c (create_value_expr_from): Use
142         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
143         * tree-ssa-propagate.c (stmt_makes_single_load,
144         stmt_makes_single_store): Use REFERENCE_CLASS_P.
145         * tree-vect-transform.c (vect_is_simple_cond): Use
146         COMPARISON_CLASS_P.
147         * tree-vrp.c (extract_range_from_assert,
148         build_assert_expr_for, fp_predicate, has_assert_expr): Use
149         COMPARISON_CLASS_P.
151         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
152         of tpa_to_clear to VEC(int,heap).  Update uses of
153         tpa_to_clear.  Free tpa_to_clear at the end.
155 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
157         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
158         function decl.
160 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
162         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
163         and gcc_unreachable as appropriate.
164         (num_insns_constant, output_vec_const_move,
165         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
166         rs6000_emit_set_const, rs6000_emit_move,
167         spe_build_register_parallel, function_arg,
168         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
169         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
170         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
171         rs6000_common_init_builtins, expand_block_clear,
172         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
173         extract_ME, rs6000_get_some_local_dynamic_name,
174         rs6000_output_function_entry, print_operand,
175         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
176         output_cbranch, output_e500_flip_gt_bit,
177         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
178         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
179         compute_save_world_info, rs6000_stack_info,
180         rs6000_emit_load_toc_table, rs6000_frame_related,
181         spe_synthesize_frame_save, rs6000_emit_epilogue,
182         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
183         output_function_profiler, rs6000_trampoline_size,
184         rs6000_initialize_trampoline, find_addr_reg,
185         rs6000_machopic_legitimize_pic_address,
186         rs6000_initial_elimination_offset,
187         rs6000_dbx_register_number): Likewise.
188         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
189         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
190         *movti_power, *movti_string, call, call_value, sibcall,
191         sibcall_value): Likewise.
192         * config/rs6000/spe.md (*movdf_e500_double,
193         *movv2si_internal): Likewise.
194         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
195         from comment.
197 2005-04-24  Richard Henderson  <rth@redhat.com>
199         PR target/21101
200         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
201         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
202         Deny modes smaller than 4 bytes.
203         * config/i386/i386-protos.h: Update.
205 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
207         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
208         Switch h8300-*-rtems* to ELF.
210 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
212         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
214 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
216         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
218 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
220         PR middle-end/21082
221         * fold-const.c: Fold &a[i]-&a[j] to i-j.
223 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
225         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
226         definitions of ssa names in condition.  Split recusive part to ...
227         (tree_simplify_using_condition_1): New function.
228         (expand_simple_operations): New function.
230 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
232         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
233         (find_interesting_uses_cond): Do not use integer_zerop and
234         integer_nonzerop to check for integer constants.
235         (set_use_iv_cost): Record the value field.
236         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
237         determine_use_iv_cost_outer): Set the value field of the cost pair.
238         (may_eliminate_iv): Do not return the comparison code.
239         (iv_elimination_compare): New function.
240         (determine_use_iv_cost_condition): Set the value field.  Record
241         noneliminable invariants correctly.
242         (rewrite_use_compare, rewrite_use_outer): Use the value field.
244 2005-04-23  DJ Delorie  <dj@redhat.com>
246         * diagnostic.c (warning): Accept parameter to classify warning option.
247         (warning0): New, for when a pointer to an error() like function is needed.
248         * errors.c (warning): Likewise.
249         * errors.h (warning, warning0): Adjust prototypes.
250         * toplev.h (warning, warning0): Likewise.
252         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
253         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
254         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
255         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
256         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
257         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
258         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
259         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
261         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
262         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
263         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
264         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
265         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
266         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
267         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
268         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
269         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
270         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
271         config/rs6000/aix52.h, config/rs6000/darwin.h,
272         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
273         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
274         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
275         config/stormy16/stormy16.c, config/v850/v850-c.c,
276         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
277         callers.
278         
279 2005-04-23  Richard Henderson  <rth@redhat.com>
281         PR rtl-opt/21102
282         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
283         performing some integral scalar simplifications.
285 2005-04-23  Richard Henderson  <rth@redhat.com>
287         PR target/21099
288         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
289         simplifying CONST_VECTOR.
291 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
293         * tree-ssa-live.c (live_worklist): Take a stack allocated on
294         heap as an argument.  Update uses of stack.
295         (calculate_live_on_entry): Allocate stack on heap.
297         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
298         partition_link and tpa_nodes on heap.
300         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
301         (mark_stmt_necessary, propagate_necessity,
302         mark_really_necessary_kill_operand_phis): Update uses of
303         worklist.
304         (tree_dce_init): Allocate worklist using VEC_alloc.
305         (tree_dce_done): Free worklist using VEC_free.
307 2005-04-23  Mike Stump  <mrs@apple.com>
309         * config/darwin.c (machopic_indirection_name): Don't use
310         quotes needlessly.
311         (darwin_emit_unwind_label): Use user_label_prefix instead of
312         "_".
314 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
316         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
318 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
320         * config.gcc <cris-*>: Specify .opt files.
321         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
322         config/cris/linux.opt: New files.
323         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
324         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
325         (TARGET_ELF): Override to 0.
326         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
327         -melinux-stacksize=N.
328         * config/cris/cris.c: (cris_handle_option): New function.
329         (TARGET_DEFAULT_TARGET_FLAGS): Override.
330         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
331         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
332         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
333         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
334         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
335         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
336         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
337         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
338         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
339         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
340         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
341         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
342         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
343         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
344         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
345         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
346         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
347         (TARGET_LINUX): Define 0.
348         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
349         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
350         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
351         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
352         (TARGET_LINUX): Override to 1.
353         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
355 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
357         * haifa-sched.c (schedule_block): Fix thinko in previous
358         assertification patch.
360 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
362         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
363         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
364         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
365         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
366         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
367         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
368         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
369         for hpux11.[1-9]*.
370         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
371         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
372         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
373         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
374         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
375         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
376         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
377         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
378         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
379         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
380         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
381         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
382         (SUBTARGET_OPTIONS): Delete.
383         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
384         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
385         instead of a string.
386         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
387         (pa_cpu_string, pa_unix_string): Delete.
388         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
389         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
390         TARGET_HPUX_10_10.
391         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
392         (pa_handle_option): New function.
393         (override_options): Remove handling of -march=, -mfixed-range=,
394         -mschedule= and -munix=.
395         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
396         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
397         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
398         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
399         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
400         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
401         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
402         redefining.
403         * config/pa/pa.opt: New file.
404         * config/pa/pa-hpux.opt: New file.
405         * config/pa/pa-hpux1010.opt: New file.
406         * config/pa/pa-hpux1111.opt: New file.
407         * config/pa/pa64-hpux.opt: New file.
409 2005-04-22  David S. Miller  <davem@davemloft.net>
411         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
412         integer when it's mode is VOIDmode not DImode.
414 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
416         * config/rs6000/rs6000.md (sync_add<mode>_internal,
417         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
418         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
419         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
420         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
421         "bne- $-xxx" rather than local labels.
422         (sync_lock_release<mode>): Add second operand.
423         (lwsync): Use .long rather than a more meaningful opcode.
424         * doc/md.texi (Standard Names): Add description of second
425         parameter to sync_lock_test_and_set.
427 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
429         PR tree-optimization/21088
430         * fold-const.c (fold_unary, fold_binary, fold_ternary):
431         Export.
432         * tree-vrp.c (compare_values): Use fold_binary to compare
433         pointers.  Use boolean_type_node as the type of a comparison
434         expression being folded.
435         * tree.h: Add prototypes for fold_unary, fold_binary,
436         fold_ternary.
438         * tree-ssa-dom.c: Fix formatting.
440 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
442         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
443         * lambda-code.c (perfect_nestify): Mark virtual operands in
444         the moved statement for renaming.
445         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
446         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
447         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
448         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
449         * tree-flow.h (struct var_ann_d): Update comments.
450         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
451         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
452         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
453         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
454         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
455         debug_names_replaced_by): Remove declarations.
456         (delete_update_ssa, get_current_def, set_current_def): Declare.
457         (rewrite_into_loop_closed_ssa): Add new argument.  Update
458         all callers.
459         * tree-into-ssa.c: Include params.h.
460         (old_virtual_ssa_names): Remove.  Update all users.
461         (need_to_replace_names_p): Remove.  Update all users.
462         (struct update_ssa_stats_d): Declare.
463         (update_ssa_stats): New local.
464         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
465         dump_tree_ssa_stats, debug_tree_ssa_stats,
466         dump_update_ssa, debug_update_ssa,
467         dump_names_replaced_by, debug_names_replaced_by): Declare.
468         (get_current_def, set current_def): Make extern.
469         (is_old_name, is_new_name): Protect against references
470         past the end of the sets.
471         (add_new_name_mapping): Assert that OLD and NEW are
472         different SSA names for the same symbol.
473         When adding a virtual mapping, update stats for virtual
474         mapping heuristic.
475         (insert_phi_nodes_for): If UPDATE_P is true, create the
476         LHS of the new PHI by duplicating SSA name VAR.
477         (insert_phi_nodes_1): Remove.  Update all users.
478         (insert_phi_nodes): Remove second argument.  Update all
479         users.
480         (maybe_replace_use, maybe_replace_def): New.
481         (rewrite_update_stmt): Call them.
482         (mark_def_interesting): Remove calls to is_gimple_reg.
483         (prepare_phi_args_for_update): Remove.  Update all users.
484         (prepare_block_for_update): Only process virtual operands
485         and GIMPLE registers in normal form.
486         (prepare_use_sites_for): New.
487         (prepare_names_to_update): Rename from prepare_def_sites.
488         Call prepare_use_sites_for.
489         (dump_update_ssa): Rename from dump_repl_tbl.
490         Update all users.
491         Show statistics for virtual mapping heuristic.
492         (debug_update_ssa): Rename from debug_debug_repl_tbl.
493         (init_update_ssa): Initialize UPDATE_SSA_STATS.
494         (delete_update_ssa): Make extern.
495         (mark_set_for_renaming): If the set is empty, do nothing.
496         (release_ssa_name_after_update_ssa): Update comment.
497         (insert_updated_phi_nodes_for): Do not remove existing
498         PHI nodes for symbols.
499         (switch_virtuals_to_full_rewrite_p): New.
500         (switch_virtuals_to_full_rewrite): New.
501         (update_ssa): Call them.
502         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
503         for every statement before updating.
504         If all the names in NEW_SSA_NAMES have been marked for
505         removal, do nothing.
506         Only start at the top of the CFG if there are symbols in
507         SYMS_TO_RENAME.
508         (ssa_rewrite_finalize_block): Remove.
509         (ssa_register_new_def): Remove.
510         (ssa_rewrite_stmt): Remove.
511         (ssa_rewrite_phi_arguments): Remove.
512         (ssa_rewrite_initialize_block): Remove.
513         (ssa_mark_def_sites): Remove.
514         (ssa_mark_def_sites_initialize_block): Remove.
515         (ssa_mark_phi_uses): Remove.
516         (rewrite_ssa_into_ssa): Remove.
517         * tree-phinodes.c (find_phi_node_for): Remove.
518         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
519         Call update_ssa.
520         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
521         Remove calls to verify_dominators and
522         verify_loop_structure.
523         (tree_unswitch_single_loop): Call update_ssa.
524         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
525         returns false.
526         Call verify_stmts.
527         (delete_tree_ssa): Assert that need_ssa_update_p returns
528         false.
529         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
530         * tree-vectorizer.c (allocate_new_names, rename_def_op,
531         free_new_names): Remove.  Update all users.
532         (rename_use_op): Call get_current_def.
533         (rename_variables_in_bb): Do not handle any real or
534         virtual definition.
535         (slpeel_update_phis_for_duplicate_loop): Call
536         get_current_def and set_current_def instead of using
537         SSA_NAME_AUX.
538         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
539         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
540         ssa_names_to_replace and delete_update_ssa.
541         * doc/invoke.texi: Document --param min-virtual-mappings
542         and --param virtual-mappings-ratio.
544 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
546         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
547         for newly created PHI nodes.
548         Call create_new_def_for for every new V_MAY_DEF and
549         V_MUST_DEF on the copied statement.
550         (struct ssa_name_map_entry): Remove.
551         (ssa_name_map_entry_hash): Remove.
552         (ssa_name_map_entry_eq): Remove.
553         (allocate_ssa_names): Remove.
554         (rewrite_to_new_ssa_names_def): Remove.
555         (rewrite_to_new_ssa_names_use): Remove.
556         (rewrite_to_new_ssa_names_bb): Remove.
557         (rewrite_to_new_ssa_names): Remove.
558         (tree_duplicate_sese_region): Remove variables ver,
559         definitions, phi, ssa_name_map and bi.
560         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
561         Call update_ssa.
562         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
563         update_ssa instead of rewrite_ssa_into_ssa.
564         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
565         create_new_def_for.
566         (find_uses_to_rename_use): Add argument 'need_phis'.
567         (find_uses_to_rename_stmt): Do not scan virtual operands.
568         (find_uses_to_rename): Only scan PHI nodes for
569         non-virtual names.
570         (rewrite_into_loop_closed_ssa): Call update_ssa.
571         (check_loop_closed_ssa_use): Ignore virtual operands.
572         (check_loop_closed_ssa_stmt): Likewise.
573         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
574         NULL.
575         (rename_variables, set_phi_def_stmts): Remove.
576         (tree_duplicate_loop_to_header_edge): Reformat comment.
577         Remove variables BB, I and DEFINITIONS.
578         Call need_ssa_update_p.
579         Call update_ssa.
580         (lv_adjust_loop_header_phi): Reformat comment.
581         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
582         (marked_for_rewrite_p, any_marked_for_rewrite_p,
583         mark_for_rewrite, unmark_all_for_rewrite,
584         marked_ssa_names): Remove.  Update all users.
585         (release_ssa_name): If VAR has been registered for SSA
586         updating, do nothing.
587         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
588         (build_assert_expr_for): Call register_new_name_mapping.
589         (insert_range_assertions): Update call to update_ssa.
590         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
591         marked_for_rewrite_p, any_marked_for_rewrite_p,
592         marked_ssa_names): Remove.
594 2005-04-22  Jeff Law  <law@redhat.com>
596         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
597         (restore_currdefs_to_original_value): Likewise.
598         (register_definitions_for_stmt): Likewise.
599         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
600         for each variable.  Do not allocate/free block_defs_stack either.
601         Do not iterate if we just thread jumps.  Only iterate if the
602         tree_cleanup_cfg does useful work (temporary).
603         (dom_opt_initialize_block): No longer push a marker on
604         BLOCK_DEFS_STACK.
605         (dom_opt_finalize_block): Removal call to restore currdefs.
606         Relax restrictions for recording edge equivalences.
607         (record_equivalences_from_phis): No longer need to track
608         CURRENT_DEF.
609         (optimize_stmt): Similarly.
610         (thread_across_edge): Simplify by removing the requirement that
611         statements in the block we are threading through must be nops.
612         (initialize_hash_element): Handle GOTO_EXPR.
614 2005-04-22  David S. Miller  <davem@davemloft.net>
616         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
617         CONST_DOUBLE_HIGH.
618         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
619         fix check on CONST_DOUBLE mode.  It should be VOIDmode
620         when it is representing an integer.
622 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
624         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
625         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
626         * c-format.c (get_constant, decode_format_attr, get_flag_spec, 
627         find_char_info_specifier_index,
628         find_length_info_modifier_index): Likewise.
629         * c-typeck.c (composite_type, pop_init_level): Likewise.
630         * combine.c (cant_combine_insn_p, try_combine): Likewise.
631         * cse.c (cse_insn): Likewise
632         * dominance.c (calc_dfs_tree): Likewise
633         dwarf2out.c (loc_descriptor_from_tree_1,
634         add_abstract_origin_attribute, force_decl_die,
635         force_type_die): Likewise
636         emit-rtl.c (operand_subword_force): Likewise
637         explow.c (hard_function_value): Likewise
638         expmed.c (store_bit_field, expand_divmod,
639         emit_store_flag_force): Likewise
640         expr.c (emit_move_multi_word, store_expr,
641         expand_expr_real_1): Likewise
642         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
643         output_operand): Likewise
644         flow.c (recompute_reg_usage): Likewise
645         * function.c (assign_stack_temp_for_type, assign_temp, 
646         handle_epilogue_set): Likewise
647         * genextract.c (main): Likewise
648         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
649         gimplify_modify_expr_rhs, gimplify_expr): Likewise
650         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
651         ready_remove, rm_line_notes, rm_other_notes,
652         schedule_block): Likewise
653         mips-tfile.c (copy_object, out_of_bounds): Likewise
655 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
657         PR target/20813
658         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
659         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
660         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
661         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
662         TARGET_XL_COMPAT.
663         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
665 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
667         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
668         (gcc_tree_to_linear_expression): Convert to heap allocated
669         vectors.
670         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
671         lbv_to_gcc_expression, lle_to_gcc_expression,
672         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, 
673         perfect_nestify): Likewise.
674         lambda.h (gcc_loopnest_to_lambda_loopnest,
675         lambda_loopnest_to_gcc_loopnest): Likewise.
676         tree-loop-linear.c (linear_transform_loops): Likewise.
678 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
680         * config/sparc/predicates.md (arith_double_operand): Use
681         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
682         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
683         (DImode, DFmode constant splitters): Likewise.  Remove code for
684         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
685         (logical constant splitters): Use const_int_operand predicate.
686         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
687         HOST_BITS_PER_WIDE_INT < 64.
689 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
691         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
692         gcc_unreachable as appropriate.
693         (force_mode, emit_move_sequence, singlemove_string,
694         output_move_double, output_fp_move_double, find_addr_reg,
695         output_block_move, output_block_clear, output_and,
696         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
697         pa_adjust_cost, pa_issue_rate, print_operand,
698         output_global_address, output_arg_descriptor, output_cbranch,
699         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
700         output_call): Likewise.
701         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
702         prefetch, prefetch_cc, prefetch_nocc): Likewise.
704 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
706         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
707         _gcov_pow2_profiler and _gcov_one_value_profiler.
708         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
709         (GTFILES): Add $(srcdir)/tree-profile.c.
710         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
711         __gcov_one_value_profiler): Declare.
712         * gimplify.c (force_gimple_operand): Check whether the statements
713         should be produced in ssa form.
714         (force_gimple_operand_bsi): New function.
715         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
716         __gcov_one_value_profiler): New functions.
717         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
718         the profiled value is a power of two or not.
719         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
720         * tree-flow.h (in_ssa_p): Declare.
721         (force_gimple_operand_bsi): Declare.
722         * tree-into-ssa.c (in_ssa_p): New variable.
723         (rewrite_into_ssa): Set in_ssa_p.
724         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
725         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
726         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
727         tree_one_value_profiler_fn): New variables.
728         (tree_init_edge_profiler): Initialize the profiler function decls.
729         (tree_gen_edge_profiler): Use global gcov_type_node.
730         (prepare_instrumented_value): New function.
731         (tree_gen_interval_profiler, tree_gen_interval_profiler,
732         tree_gen_one_value_profiler): Call the library functions instead of
733         creating instrumentation code.
734         * tree.c (build_fn_decl): New function.
735         * tree.h (build_fn_decl): Declare.
736         * value-prof.c (rtl_divmod_values_to_profile,
737         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
738         tree_mod_pow2_value_transform, tree_find_values_to_profile):
739         Do not handle may_be_other and precise values of exponents at pow2
740         profiler.
741         (tree_mod_subtract_transform): Reflect that value field of
742         histogram has changed meaning.
743         (tree_divmod_values_to_profile): Record the values correctly.
744         (tree_values_to_profile): Update comment.
745         * value-prof.h (struct histogram_value_t): Remove pow2 data.
747 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
749         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
750         (decl).
752 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
754         * config/i386/i386.md (length_immediate): Use gcc_assert or
755         gcc_unreachable, as appropriate.
756         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
757         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
758         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
759         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
760         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
761         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
762         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
763         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
764         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
765         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
766         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
767         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
768         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
769         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
770         *prefetch_sse_rex): Likewise.
771         * config/i386/predicates.md (x86_64_immediate_operand,
772         x86_64_zext_immediate_operand, symbolic_operand,
773         no_seg_address_operand, aligned_operand,
774         memory_displacement_operand): Likewise.
775         * config/i386/sse.md (*mov<mode>_internal,
776         *movv2df_internal): Likewise.
778 2005-04-22  Jan Hubicka  <jh@suse.cz>
780         * Makefile.in (ipa.o, ipa-inline.o): New files.
781         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
782         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
783         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
784         * cgraphunit.c (cgraph_default_inline_p,
785         cgraph_decide_inlining_incrementally,  ncalls_inlined,
786         nfunctions_inlined, initial_insns, overall_insns, 
787         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
788         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
789         cgraph_mark_inline, cgraph_check_inline_limits,
790         cgraph_default_inline_p, cgraph_recursive_inlining_p,
791         update_callee_keys, lookup_recursive_calls,
792         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
793         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
794         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
795         pass_ipa_inline): Move to ipa-inline.c
796         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
797         * ipa.c: New file.
798         * ipa-inline.c: New file.
800 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
802         * doc/invoke.texi (SPARC options): Document that -mapp-regs
803         is turned off by default on Solaris.
805 2005-04-21  Roger Sayle  <roger@eyesopen.com>
807         * c-common.h (objc_build_method_signature): Update prototype.
808         * stub-objc.c (objc_build_method_signature): Update the stub
809         implementation to accept and ignore additional parameter.
810         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
811         the value of ellipsis to objc_build_method_signature instead
812         of setting TREE_OVERFLOW on the parms TREE_LIST node.
814 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
816         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
817         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
818         gen_rtx_* not gen_rtx_fmt_*.
819         (rs6000_emit_vector_select): Likewise.
820         (rs6000_emit_sync): New.
821         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
822         (larx, stcx, cmp): New mode substitutions.
823         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
824         UNSPEC_ISYNC): New constants.
825         (rlwinm): Give name.
826         (memory_barrier, isync, lwsync): New insns.
827         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
828         (sync_lock_release<mode>): New expander.
829         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
830         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
831         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
832         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
833         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
834         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
835         (sync_add<mode>_internal, sync_addshort_internal,
836         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
837         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
838         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
840         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
841         is the memory before, not after, the operation.  Clarify
842         barrier requirements.
844 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
846         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
847         * lambda.h (lambda_vector_min_nz): Likewise.
848         * langhooks.h (struct lang_hooks_for_types,
849         struct lang_hooks): Likewise.
850         * output.h (assemble_integer, this_is_asm_operands): Likewise.
851         * tree.h: Likewise.
852         * vec.h: Likewise.
853         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
854         
855         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
856         comments to avoid 'abort'.  Use gcc_assert as necessary.
857         * opts.c (common_handle_option): Likewise.
858         * pretty-print.c (pp_base_format_text): Likewise.
859         * print-rtl.c (print_rtx): Likewise.
860         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
861         * regmove.c (try_auto_increment): Likewise.
862         * reload.c (find_valid_class, find_reloads_toplev,
863         find_equiv_reg): Likewise.
864         * reload1.c (reload, forget_old_reloads_1, function_invariant_p, 
865         merge_assigned_reloads): Likewise.
866         * tree-inline.c (inline_forbidden_p_1,
867         estimate_num_insns_1): Likewise.
868         * tree-optimize.c (execute_todo): Likewise.
869         * tree-outof-ssa.c (eliminate_phi): Likewise.
870         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
871         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
872         * tree-ssa-operands.c (parse_ssa_operands,
873         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
874         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
875         * tree-ssanames.c (release_ssa_name): Likewise.
876         * tree.c (int_bit_position, int_byte_position, tree_low_cst, 
877         walk_tree): Likewise.
879         * tree-ssa-operands.c (verify_abort): Fold into ..
880         (verify_imm_links): ... here.
882 2005-04-21  Richard Henderson  <rth@redhat.com>
884         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
885         on non-memory operand for previous inversion.
887 2005-04-21  Devang Patel  <dpatel@apple.com>
889         PR optimization/20994
890         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
891         x = !(a == b) : p , q;.
892         (pass_if_conversion): Verify stmts and flow.
893         
894 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
896         * optabs.c (gen_conditional_trap): Restore #define.
898         * alias.c (true_dependence): Remove 'abort' from comments. Use
899         gcc_assert and gcc_unreachable as appropriate.
900         (canon_true_dependence): Likewise.
901         * bb-reorder.c (connect_traces): Likewise.
902         * c-common.c (c_add_case_label): Likewise.
903         * c-decl.c (finish_function): Likewise.
904         * caller-save.c (insert_restore, insert_save): Likewise.
905         * cfg.c (update_bb_profile_for_threading): Likewise.
906         * cfganal.c (flow_active_insn_p): Likewise.
907         * cfgexpand.c (add_reg_br_prob_note): Likewise.
908         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
909         cfg_layout_merge_blocks): Likewise.
910         * ifcvt.c (cond_exec_process_insns, merge_if_block,
911         find_if_block): Likewise.
912         * integrate.c (allocate_initial_values): Likewise.
913         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
914         swap_condition, unsigned_condition, signed_condition,
915         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
916         reg_or_subregno): Likewise.
917         * lambda-code.c (lambda_compute_auxillary_space,
918         lambda_transform_legal_p): Likewise.
919         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
920         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
921         lhd_incomplete_type_error, lhd_expand_expr,
922         lhd_types_compatible_p, lhd_tree_size): Likewise.
923         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
924         * local-alloc.c (update_equiv_regs): Likewise.
925         * loop-unroll.c (peel_loop_completely
926         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
927         peel_loop_simple, unroll_loop_stupid,
928         analyze_iv_to_split_insn): Likewise.
929         * loop.c (gen_prefetch, find_and_verify_loops,
930         basic_induction_var): Likewise.
931         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
932         * value-prof.c (tree_find_values_to_profile): Likewise.
933         * varasm.c (named_section, default_assemble_integer,
934         decode_addr_const): Likewise.
936 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
937            Fariborz Jahanian <fjahanian@apple.com>
939         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
940         portion of argument passed in fpr.
941         * expr.c (emit_push_insn): Fix computation of 'offset' used to
942         decide on partial argument save on stack.
944 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
946         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
947         comment typos.
949 2005-04-21  Jan Hubicka  <jh@suse.cz>
951         * cgraphunit.c: Include tree-pass.h
952         (cgraph_decide_recursive_inlining,
953         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
954         cgraph_decide_inlining): Dump goes to dump_file.
955         (cgraph_optimize): Call ipa passes instead of inliner.
956         (cgraph_gate_inlining, pass_ipa_inline): New.
957         * tree-optimize.c (all_ipa_passes): New static variable.
958         (register_one_dump_file): Dead with IPA passes.
959         (register_dump_files): Likewise.
960         (init_tree_optimization_passes): Initialize IPA passes.
961         (execute_todo): Do cgraph dump when asked to, do not dump function body
962         for IPA pass.
963         * tree-pass.h (TODO_dump_cgraph): New macro.
964         (ipa_passes): Declare.
965         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
967 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
969         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
970         gcc_assert instead of abort.
971         (classify_argument, examine_argument, construct_container,
972         contains_128bit_aligned_vector_p, ix86_check_movabs,
973         standard_80387_constant_opcode, standard_80387_constant_rtx,
974         ix86_initial_elimination_offset, ix86_compute_frame_layout,
975         pro_epilogue_adjust_stack, ix86_expand_epilogue,
976         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
977         legitimize_tls_address, output_pic_addr_const,
978         i386_output_dwarf_dtprel, put_condition_code, print_reg,
979         get_some_local_dynamic_name, print_operand, print_operand_address,
980         output_387_binary_op, emit_i387_cw_initialization,
981         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
982         ix86_expand_clear, ix86_expand_binary_operator,
983         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
984         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
985         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
986         ix86_expand_branch, ix86_expand_setcc,
987         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
988         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
989         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
990         memory_address_length, ix86_attr_length_immediate_default,
991         ix86_attr_length_address_default, ix86_agi_dependant,
992         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
993         ix86_expand_binop_builtin, ix86_force_to_memory,
994         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
995         x86_emit_floatuns): Likewise.
996         * config/i386/netware.c (gen_regparm_prefix,
997         i386_nlm_strip_name_encoding): Likewise.
998         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
1000 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1002         * optabs.c (gen_condiational_trap): Remove #define.
1003         (add_equal_note): Assertify. Remove explicit indirection from
1004         call via function pointer.
1005         (expand_ternary_op, expand_simple_binop, expand_binop,
1006         expand_twoval_unop, expand_twoval_binop,
1007         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
1008         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
1009         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
1010         prepare_float_lib_cmp, emit_conditional_move,
1011         emit_conditional_add, gen_add2_insn, gen_add3_insn,
1012         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
1013         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
1014         vector_compare_rtx, expand_vec_cond_expr): Likewise.
1016 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1018         * vec.h: Update API to separate allocation mechanism from type.
1019         (VEC_safe_grow): New.
1020         * vec.c (calculate_allocation): New.
1021         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
1022         (vec_gc_free, vec_heap_free): Remove.
1023         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
1024         (VEC): Likewise.
1025         (mangle_macro_name): New.
1026         (struct macro_def): New.
1027         (struct macro): Add multiple argument values.
1028         (macro_expans_end): New.
1029         (push_macro_expansion):  Chain on new macro. Process multiple
1030         args, create follow on expansion. Return follow on argument.
1031         (macro_input): Deal with multiple arguments.
1032         
1033         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
1034         (struct tree_binfo): Adjust.
1035         * basic-block.h: Define VEC(edge,gc).
1036         (struct edge_def): Adjust.
1037         (struct basic_block_def, struct edge_iterator): Likewise.
1038         (ei_container, ei_start_1, ei_last_1): Likewise.
1039         * cfg.c (connect_src, connect_dest): Likewise.
1040         * cfgrtl.c (force_nonfallthru_and_redirect)
1041         * dbxout.c (dbxout_type)
1042         * dwarf2out.c (gen_member_die)
1043         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
1044         (gcc_tree_to_linear_expression): Adjust.
1045         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
1046         lbv_to_gcc_expression, lle_to_gcc_expression,
1047         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
1048         perfect_nestify): Likewise.
1049         * lambda.h (gcc_loopnest_to_lambda_loopnest,
1050         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
1051         * profile.c (instrument_values): Adjust.
1052         * tree-cfg.c (modified_noreturn_calls): Adjust.
1053         (remove_fallthru_edge): Likewise.
1054         * tree-dump.c (dequeue_and_dump): Adjust.
1055         * tree-flow-inline.h (mark_stmt_modified): Adjust.
1056         * tree-flow.h (modified_noreturn_calls): Adjust.
1057         (tree_on_heap): Remove. (yay!)
1058         (register_new_def): Adjust.
1059         * tree-into-ssa.c: Define VEC(int,heap).
1060         (block_defs_stack): Adjust.
1061         (find_idf, insert_phi_nodes, register_new_def,
1062         rewrite_initialize_block, rewrite_finalize_block,
1063         register_new_update_single, rewrite_update_init_block,
1064         rewrite_update_fini_block, rewrite_blocks,
1065         ssa_rewrite_finalize_block, ssa_register_new_def,
1066         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
1067         * tree-loop-linear.c (linear_transform_loops): Adjust.
1068         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
1069         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
1070         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
1071         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
1072         vrp_variables_stack): Adjust declarations.
1073         (tree_ssa_dominator_optimize): Adjust.
1074         (dom_opt_initialize_block, remove_local_expressions_from_table,
1075         restore_nonzero_vars_to_original_value,
1076         restore_vars_to_original_value,
1077         restore_currdefs_to_original_value, dom_opt_finalize_block,
1078         record_var_is_nonzero, record_cond, record_const_or_copy_1,
1079         optimize_stmt, update_rhs_and_lookup_avail_expr,
1080         lookup_avail_expr, record_range): Likewise.
1081         * tree-ssa-pre.c: Define VEC(basic_block,heap).
1082         (compute_antic_aux): Adjust.
1083         (inserted_exprs, create_expression_by_pieces, 
1084         insert_into_preds_of_block, eliminate, mark_operand_necessary, 
1085         remove_dead_inserted_code, fini_pre): Likewise.
1086         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
1087         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist. 
1088         ssa_prop_init): Likewise.
1089         * tree-ssa.c: Define VEC(bitmap,heap).
1090         (verify_name_tags): Adjust.
1091         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
1092         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
1093         tree_divmod_values_to_profile, tree_find_values_to_profile,
1094         value_profile_transformations): Likewise.
1095         * value-prof.h: Define VEC(histogram_value,heap).
1096         * varasm.c: Remove alias_pair pointer typedef, define
1097         VEC(alias_pair,gc).
1098         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
1099         
1100         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
1101         not a pointer to it.  Create an object vector.
1102         (extern_symbols): Turn into an object vector.
1103         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
1105 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
1107         PR/20742
1108         * Makefile.in (tree-chrec.o): Depend on params.h.
1109         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
1110         default value 20.
1111         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
1112         and fold build with fold_buildN.
1113         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
1114         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1115         (tree_contains_chrecs): Compute an estimation of the size of the
1116         given expression.
1117         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
1118         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
1119         * tree-scalar-evolution.c (simple_iv): Ditto.
1120         * doc/invoke.texi (scev-max-expr-size): Documented.
1122 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
1124         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
1125         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
1126         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
1127         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
1128         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1129         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
1130         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
1131         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
1132         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
1133         (darwin_fix_and_continue_switch): Delete.
1134         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
1135         (SUBTARGET_SWITCHES): Delete.
1136         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
1137         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
1138         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
1139         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
1140         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
1141         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
1142         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
1143         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
1144         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
1145         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
1146         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
1147         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
1148         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
1149         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
1150         (TARGET_64BIT): Undef before redefining.
1151         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
1152         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
1153         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
1154         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
1155         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
1156         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
1157         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
1158         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1159         (ix86_debug_arg_string, ix86_debug_addr_string)
1160         (ix86_align_loops_string, ix86_align_jumps_string)
1161         (ix86_align_funcs_string): Delete.
1162         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
1163         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
1164         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
1165         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
1166         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
1167         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
1168         (SUBTARGET_SWITCHES): Delete.
1169         * config/i386/i386.c (ix86_debug_arg_string): Delete.
1170         (ix86_debug_addr_string): Delete.
1171         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
1172         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
1173         (ix86_align_loops_string, ix86_align_jumps_string)
1174         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1175         (ix86_align_funcs_string): Make static.
1176         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1177         (ix86_handle_option): New function.
1178         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
1179         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
1180         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
1181         of darwin_fix_and_continue_switch.
1182         (darwin_one_byte_bool): Delete.
1183         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
1184         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
1185         to darwin_one_byte_bool.
1186         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
1187         * config/i386/djgpp.opt, config/i386/i386.opt,
1188         * config/i386/sco5.opt: New files.
1190 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1192         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
1193         fp_zero_operand, fp_register_operand, intreg_operand,
1194         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
1195         call_operand, call_operand_address, tgd_symbolic_operand,
1196         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
1197         symbolic_operand, symbolic_memory_operand, label_ref_operand,
1198         sp64_medium_pic_operand, data_segment_operand,
1199         text_segment_operand, splittable_symbolic_memory_operand,
1200         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
1201         eq_or_neq, normal_comp_operator, noov_compare_op,
1202         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
1203         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
1204         const64_operand, const64_high_operand, arith11_operand,
1205         arith10_operand, arith_double_operand, arith_double_4096_operand,
1206         arith_double_add_operand, arith11_double_operand,
1207         arith10_double_operand, small_int, small_int_or_double,
1208         uns_small_int, uns_arith_operand, clobbered_register,
1209         input_operand, compare_operand): Delete.
1210         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
1211         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
1212         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
1213         (GEN_HIGHINT64, GEN_INT64): Delete.
1214         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
1215         gen_safe_XOR64): Adjust for above deletion.
1216         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
1217         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
1218         (legitimate_constant_p): Use const_zero_operand instead.
1219         (sparc_extra_constraint_check): Likewise.
1220         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
1221         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
1222         (PREDICATE_CODES): Delete.
1223         * config/sparc/sparc.md: Include predicates.md.
1224         (All patterns): Adjust for new predicate names.
1225         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
1226         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
1227         (movdi): Use general_operand predicate.
1228         (movdi_sp64_dbl): Delete.
1229         (movdi_const64_special): Add 'N' constraint.
1230         (movdicc): Use arith10_operand predicate.
1231         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
1232         (movdi_cc_reg_sp64): Use arith10_operand predicate.
1233         (movdi_cc_reg_sp64_trunc): Delete.
1234         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
1235         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
1236         (subdi3_sp32): Delete.
1237         (subdi3_insn_sp32): Change to define_insn_and_split.
1238         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
1239         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
1240         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
1241         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
1242         small_int_operand predicate.
1243         (divdi3, udivdi3): Use arith_operand predicate.
1244         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
1245         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
1246         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
1247         (xordi3_sp64_dbl): Delete.
1248         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
1249         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
1250         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
1251         cmp_ccx_set_not): Use arith_operand predicate.
1252         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
1253         * config/sparc/predicates.md: New file.
1255 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
1257         PR tree-optimization/14846
1258         * fold-const.c (fold_single_bit_test_into_sign_test): New,
1259         split out from ...
1260         (fold_single_bit_test): ... here.
1261         (fold_binary): Call fold_single_bit_test_into_sign_test
1262         instead of fold_single_bit_test.
1264 2005-04-20  James E Wilson  <wilson@specifixinc.com>
1266         PR c++/20805
1267         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
1268         is another declaration.
1270 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
1272         * config/cris/predicates.md: New file.
1273         * config/cris/cris-protos.h (cris_store_multiple_op_p)
1274         (cris_movem_load_rest_p): Declare.
1275         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
1276         (cris_movem_load_rest_p): Ditto.  Globalize.
1277         (cris_bdap_operand, cris_bdap_biap_operand,
1278         cris_orthogonal_operator, cris_commutative_orth_op,
1279         cris_operand_extend_operator,
1280         cris_additive_operand_extend_operator, cris_extend_operator,
1281         cris_plus_or_bound_operator, cris_mem_op,
1282         cris_general_operand_or_symbol,
1283         cris_general_operand_or_gotless_symbol,
1284         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
1285         cris_load_multiple_op): Remove predicate functions.
1286         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
1287         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
1288         * config/cris/cris.h (PREDICATE_CODES): Don't define.
1289         * config/cris/cris.md: Include predicates.md.
1290         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
1292 2005-04-20  Ian Lance Taylor  <ian@airs.com>
1294         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
1295         * c-common.h (STMT_EXPR_STMT): Don't define.
1296         (STMT_EXPR_NO_SCOPE): Don't define.
1297         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
1298         * c-pretty-print.c (pp_c_primary_expression): Likewise.
1299         (pp_c_expression): Likewise.
1301 2005-04-20  Richard Henderson  <rth@redhat.com>
1303         PR target/21100
1304         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
1306 2005-04-20  Jeff Law  <law@redhat.com>
1308         * reload1.c (reload): Ignore equivalences between pseudos and
1309         read only memory.
1311 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
1313         PR c/12913
1314         * c-tree.h (struct c_label_list): Update comment.
1315         (struct c_label_context): Rename to struct c_label_context_se.
1316         (label_context_stack): Rename to label_context_stack_se.
1317         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
1318         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
1319         c_end_vm_scope): New.
1320         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
1321         * c-decl.c (pop_scope): Call c_end_vm_scope.
1322         (pushdecl): Call c_begin_vm_scope for variably modified
1323         declarations.
1324         (define_label): Check for jumping into scope of identifier with
1325         variably modified type.  Push label on stack for those defined at
1326         current context of identifiers with variably modified type.
1327         (start_function): Create stack level for context of identifiers
1328         with variably modified type.
1329         (finish_function): Pop stack level for context of identifiers with
1330         variably modified type.
1331         * c-typeck.c (label_context_stack): Rename to
1332         label_context_stack_se.
1333         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
1334         (c_finish_goto_label): Check for jumping into scope of identifier
1335         with variably modified type.  Push label on stack for those jumped
1336         to from current context of identifiers with variably modified
1337         type.
1338         (struct c_switch): Add blocked_vm.
1339         (c_start_case): Initialize blocked_vm.
1340         (do_case): Check blocked_vm.
1341         (c_finish_case): Add comment.
1342         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
1343         variable label_context_stack.
1345 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1347         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
1348         conditional_replacement, value_replacement, abs_replacement,
1349         minmax_replacement.
1350         (replace_phi_edge_with_variable): Remove argument BB.
1351         (conditional_replacement, value_replacement,
1352         minmax_replacement, abs_replacement): Remove argument PHI_BB.
1353         Update a call to replace_phi_edge_with_variable.
1355         * tree-ssa-phiopt.c: Fix comments.
1357 2005-04-20  Michael Matz  <matz@suse.de>
1359         PR20973
1360         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
1361         pseudos.
1363 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1365         * tree-ssa-phiopt.c: Fix comment typos.
1367         PR tree-optimization/21116
1368         * tree-ssa-phiopt.c: Fix a typo.
1370 2005-04-19  Richard Henderson  <rth@redhat.com>
1372         * builtins.c (expand_builtin_sync_operation): Revert last change.
1373         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
1374         not vs new value.
1375         (expand_compare_and_swap_loop): Likewise.
1376         (expand_sync_operation): Remove fallback from NAND to AND; invert
1377         memory operand when expanding from cmpxchg.
1378         (expand_sync_fetch_operation): Likewise.
1379         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
1380         compare-and-swap.
1382         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
1383         when implementing NAND.  Fix double-add for AFTER.
1384         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
1385         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
1386         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
1387         memory value.
1388         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
1389         memory barrier.
1391         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
1392         to return old memory value.
1393         (sync_compare_and_swap_cc<IMODE>): Likewise.
1395         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
1396         return pre-reload.  Don't consider output or anti dependencies.
1397         * config/ia64/sync.md (IMODE): New.
1398         (modesuffix): Add QI and HI.
1399         (memory_barrier): Simplify expansion.
1400         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
1401         (cmpxchg_acq_<IMODE>): Likewise.
1402         (sync_lock_test_and_set<IMODE>): Likewise.
1403         (sync_lock_release<IMODE>): Likewise.
1405 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1407         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
1408         ~X or ~Y simplify.
1410 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1412         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
1414 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
1415             Joseph S. Myers  <joseph@codesourcery.com>
1417         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
1418         * c-typeck.c (build_c_cast): Check these options.
1419         * doc/invoke.texi: Document these options.
1421 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1423         * tree-ssa-phiopt.c: Update a comment about the pass.
1425 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1427         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
1428         config/mcore/mcore.c: Fix comment typos.
1430 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
1432         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
1433         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
1435 2005-04-19  Paul Brook  <paul@codesourcery.com>
1437         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. 
1439 2005-04-19  Andrew Haley  <aph@redhat.com>
1441         PR java/21022
1442         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
1443         looking at a field's bitpos.
1445 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1447         * system.h (fopen, fdopen, freopen): Define these to the unlocked
1448         libiberty functions.
1450 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1452         PR tree-optimization/21096
1453         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
1455 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
1457         PR target/21098
1458         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
1459         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
1461 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
1463         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
1464         refers to the function being dumped.
1466 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
1468         * varasm.c (assemble_start_function): Remove reset of in_section.
1470 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1472         PR tree-optimization/21085
1473         * fold-const (fold_binary): Don't change X % -C to X % C if C has
1474         overflowed.
1476 2005-04-19  Ben Elliston  <bje@au.ibm.com>
1478         * doc/invoke.texi (Optimize Options): Refer to the correct
1479         optimisation flag -ftree-dominator-opts, not -ftree-dom.
1481 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
1483         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
1484         alloca argument to be big enough.
1486 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
1488         PR middle-end/21049
1489         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
1490         cfun->cfg are NULL.
1492 2005-04-18  Tom Tromey  <tromey@redhat.com>
1494         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
1495         typo.
1497 2005-04-18  Richard Henderson  <rth@redhat.com>
1499         * config/alpha/alpha.c (alpha_split_atomic_op): New.
1500         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
1501         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
1502         * config/alpha/alpha-protos.h: Update.
1503         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
1504         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
1505         (attr type): Add ld_l, st_c, mb.
1506         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
1507         iornotsi3, xorsi_internal, xornotsi3): New.
1508         * config/alpha/ev4.md (ev4_ld): Add ld_l.
1509         (ev4_ist_c, ev4_mb): New.
1510         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
1511         (ev5_ld_l): New.
1512         * config/alpha/ev6.md (ev6_ild): Add ld_l.
1513         (ev6_ist): Add st_c.
1514         (ev6_mb): New.
1515         * config/alpha/sync.md: New file.
1517 2005-04-18  Richard Henderson  <rth@redhat.com>
1519         * builtins.c (expand_builtin_sync_operation): Fold nand to and
1520         for constants.
1522         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
1524 2005-04-18  Devang Patel  <dpatel@apple.com>
1526         * config/rs6000/atlivec.md (mulv4si3): New pattern.
1527         
1528 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1530         PR tree-optimization/20922
1531         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
1532         Fold X + c >= X and fold X - c <= X to true.
1534 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1536         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
1537         unsigned int.
1538         (emergency_labeled_state_free): Likewise.
1540 2005-04-18  Nick Clifton  <nickc@redhat.com>
1542         * config/h8300/h8300.md (jump): Remove prescan parameter from
1543         calls to final_scan_insn.
1545         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
1546         parameter from calls to final_scan_insn.
1548         * config.gcc (m68hc12): Use the m68hc11.opt file for target
1549         specific options.
1550         (v850e, v850e1): Use the v850.opt file for target specific
1551         options.
1553 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
1555         PR tree-optimization/21001
1556         * tree-optimize.c (init_tree_optimization_passes): Move the
1557         first pass_forwprop immediately before pass_vrp.
1559 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1561         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
1562         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
1563         from enum tree_code op to bool is_sizeof.
1564         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
1565         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1566         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
1567         case.
1568         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
1569         cases.
1570         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
1571         ALIGNOF_EXPR cases.
1573 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1575         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
1577 2005-04-17  Richard Henderson  <rth@redhat.com>
1579         * config/alpha/alpha.c (va_list_skip_additions): Only define if
1580         TARGET_ABI_OSF.
1581         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
1582         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
1583         of indirection through ssa names while looking for the gpr counter
1584         field.
1585         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
1586         saved va_list_gpr_size and va_list_fpr_size.
1588 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1590         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
1591         both pointers or both integers.
1593         * tree-vrp.c (maybe_add_assert_expr): Don't assert
1594         ASSERT_EXPRs for single-use variable.
1596         * tree-into-ssa.c: Fix a comment typo.
1598 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
1600         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
1601         -mipsN before forcing a default of -mips2.
1603 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1605         * predict.h (IS_TAKEN): Remove.
1606         * rtl.h (NOTE_PREDICTION): Likewise.
1608         * modulo-sched.c (CFG_HOOKS): Remove.
1610         * c-parser.c (N_C_TTYPES): Remove.
1612         * tree-flow-inline.h (get_stmt_operands): Remove.
1613         * lambda-code.c, tree-ssa-loop-unswitch.c,
1614         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
1615         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
1616         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
1617         calls to get_stmt_operands.
1618         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
1620 2005-04-17  Richard Henderson  <rth@redhat.com>
1622         PR target/20375
1623         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
1624         of CUMULATIVE_ARGS past the last named argument.
1625         (alpha_va_start): Expect pretend_args_size only if strictly less than
1626         6 named arguments.
1628 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1630         PR middle-end/21024
1631         * builtins.c (expand_builtin_strcat): Convert the result of
1632         strlen to the right type.
1633         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
1634         avoid creating type mismatches.
1635         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
1636         type mismatches.
1638         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
1640 2005-04-16  Richard Henderson  <rth@redhat.com>
1642         PR target/21051
1643         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
1644         Use the mode of boolean_type_node when the user doesn't provide one.
1645         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
1647 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
1649         PR target/20126
1650         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
1651         (const)).
1653         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
1654         comment.
1656 2005-04-16  Roger Sayle  <roger@eyesopen.com>
1657             Steven Bosscher  <stevenb@suse.de>
1659         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
1660         (fold_unary_to_constant): Likewise.
1662 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
1664         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
1665         PROP_ASM_SCAN.
1667 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
1669         * doc/install.texi (Specific): Avoid using asterisks in @anchor
1670         names related to target triplets.
1671         Remove i?86-*-esix from platform directory.
1672         Remove powerpc-*-eabiaix from platform directory.
1674 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
1676         PR middle-end/20491
1677         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
1678         falling through from SUBREG case to REG.
1680 2005-04-15  Roger Sayle  <roger@eyesopen.com>
1682         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
1683         (fold_binary): Update comment mentioning fold_relational_hi_lo.
1684         (fold_binary_to_constant): Simplify using fold_binary.
1685         (fold_unary_to_constant): Likewise, simplify using fold_unary.
1687 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1689         * gthr-posix.c (pthread_cancel): Define.
1690         (pthread_mutexattr_init): Likewise.
1691         (pthread_mutexattr_settype): Likewise.
1692         (pthread_mutexattr_destroy): Likewise.
1694 2005-04-15  David S. Miller  <davem@davemloft.net>
1696         PR target/20673
1697         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
1699 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1701         PR tree-optimization/21031
1702         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
1703         (forward_propagate_into_cond_1): Call it.  Forward propagate
1704         integer-integer casts into COND_EXPRs.
1706 2005-04-15  Dave Korn  <dave.korn@artimi.com>
1708         * gcc.c (default_compilers): Clarify obscure error message when
1709         reading from standard input.
1711 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1713         * basic-block.h (PROP_EQUAL_NOTES): Remove.
1714         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
1716         * tree-ssa-alias.c (init_alias_info): Remove a call to
1717         get_stmt_operands.
1719 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
1721         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
1722         of non-virtual PHI nodes like we use to.
1724 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
1726         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
1727         (attr_copy_rtx): Do not use it.
1729 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
1731         * doc/tree-ssa.texi: Grammer/abbreviation updates.
1733 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
1735         * tree-vect-transform.c (vectorizable_store): Mark necessary
1736         objects in the vectorized store needing renaming.  Update the
1737         SSA graph for V_MAY_DEF operands in the original store.
1739 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
1741         * tree-ssa-pre.c (compute_avail): It's okay to have
1742         TREE_INVARIANT's here, and value number the resulting expressions.
1743         (create_expression_by_pieces): Make sure operands that were
1744         min_invariant when we started, stay that way.
1746 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
1748         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
1750 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1752         PR tree-optimization/20936.
1753         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
1755 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1757         * doc/invoke.texi: Fix typos.
1758         * doc/md.texi: Likewise.
1759         * doc/rtl.texi: Likewise.
1760         * doc/sourcebuild.texi: Likewise.
1761         * doc/tm.texi: Likewise.
1763 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
1765         PR tree-optimization/21004
1766         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
1767         and floorl in c99 mode only.
1768         * builtins.c (expand_builtin_int_roundingfn): Assert that
1769         fallback_fndecl is not NULL_TREE.
1771 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1773         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
1774         * basic-block.h: Update the prototype for
1775         purge_all_dead_edges.
1776         * cfgexpand.c (tree_expand_cfg): Update a call to
1777         purge_all_dead_edges.
1778         * combine.c (combine_instructions): Likewise.
1779         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
1780         rest_of_handle_cse2, rest_of_handle_gcse,
1781         rest_of_handle_postreload): likewise.
1783 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
1785         PR middle-end/20739
1786         * gimplify.c (gimplify_addr_expr): Compensate for removal of
1787         e.g. cv-qualification conversions.
1789 2005-04-14  Mike Stump  <mrs@apple.com>
1791         * config/darwin-c.c (framework_construct_pathname): We must
1792         find all headers of a framework in the first instance of it
1793         found in the seach path.
1795 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
1797         PR tree-optimization/21021
1798         * tree-vrp.c (compare_values): Work around a bug in the front
1799         end that produces a comparison of mismatched types.
1801 2004-04-14  Richard Henderson  <rth@redhat.com>
1803         * config/ia64/ia64.h (enum fetchop_code): Remove.
1804         (enum ia64_builtins): Move ...
1805         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
1806         members except BSP and FLUSHRS.
1807         (ia64_init_builtins): Remove __sync builtins.
1808         (ia64_expand_builtin): Likewise.
1809         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
1810         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
1811         (ia64_expand_lock_release): Remove.
1812         * config/ia64/ia64.md (mf): Move to sync.md.
1813         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
1814         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
1815         * config/ia64/sync.md: New file.
1816         (memory_barrier): Rename from mf.
1817         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
1818         (cmpxchg_acq_<I48MODE>): Likewise.
1819         (sync_lock_test_and_set<I48MODE>): Likewise.
1821         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
1822         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
1824 2004-04-14  Richard Henderson  <rth@redhat.com>
1826         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
1827         (ix86_compare_emitted): New.
1828         (ix86_expand_compare): Use ix86_compare_emitted if set.
1829         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
1830         and ix86_compare_op0 are set.
1831         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
1832         (TARGET_CMPXCHG, TARGET_XADD): New.
1833         (ix86_compare_emitted): Declare.
1834         * config/i386/i386.md: Include sync.md
1835         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
1836         (UNSPECV_XCHG, UNSPECV_LOCK): New.
1837         * config/i386/sync.md: New file.
1839 2004-04-14  Richard Henderson  <rth@redhat.com>
1841         PR middle-end/14311
1842         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
1843         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
1844         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
1845         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
1846         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
1847         BT_FN_I8_VPTR_I8_I8): New.
1848         * builtins.def (DEF_SYNC_BUILTIN): New.
1849         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
1850         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
1851         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
1852         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
1853         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
1854         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
1855         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
1856         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
1857         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
1858         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
1859         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
1860         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
1861         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
1862         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
1863         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
1864         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
1865         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
1866         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
1867         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
1868         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
1869         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
1870         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
1871         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
1872         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
1873         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
1874         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
1875         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
1876         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
1877         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
1878         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
1879         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
1880         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
1881         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
1882         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
1883         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
1884         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
1885         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
1886         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
1887         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
1888         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
1889         BUILT_IN_SYNCHRONIZE: New.
1890         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
1891         as a function.  Accept __sync_ as a prefix as well.
1892         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
1893         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
1894         expand_builtin_lock_release): New.
1895         (expand_builtin): Call them.
1896         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
1897         neither BOTH_P nor FALLBACK_P are defined.
1898         (builtin_type_for_size): New.
1899         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
1900         (resolve_overloaded_builtin): New.
1901         * c-common.h (resolve_overloaded_builtin): Declare.
1902         (builtin_type_for_size): Declare.
1903         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
1904         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
1905         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
1906         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
1907         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
1908         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
1909         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
1910         sync_compare_and_swap_cc, sync_lock_test_and_set,
1911         sync_lock_release): New.
1912         * optabs.h: Declare them.
1913         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
1914         expand_sync_operation, expand_sync_fetch_operation,
1915         expand_sync_lock_test_and_set): Declare.
1916         * genopinit.c (optabs): Add sync optabs.
1917         * optabs.c (init_optabs): Initialize sync optabs.
1918         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
1919         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
1920         expand_sync_operation, expand_sync_fetch_operation,
1921         expand_sync_lock_test_and_set): New.
1922         * doc/extend.texi (Atomic Builtins): New section
1923         * doc/md.texi (Standard Names): Add sync patterns.
1925 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
1927         * tree-eh.c (lower_try_finally_copy): Generate new code in
1928         response to goto_queue entries as if the queue was sorted by
1929         index, not pointers.
1930         (lower_try_finally_switch): Likewise.
1932 2005-04-14  Richard Henderson  <rth@redhat.com>
1934         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
1935         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
1936         register.
1937         (ix86_expand_fp_movcc): Update to match.
1938         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
1939         * config/i386/i386-protos.h: Update.
1940         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
1941         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
1943 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
1945         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
1946         refer to 4.0.
1948 2005-04-14  Julian Brown  <julian@codesourcery.com>
1950         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
1951         link failures on ppc64 Linux.
1953 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1955         * config.gcc: Set cpu_type for s390.
1957 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
1959         Fix PR tree-optimization/20963
1960         * tree-ssa-pre.c (compute_avail): Remove special case for
1961         TREE_INVARIANT.
1962         (create_expression_by_pieces): Add value numbers for forced out
1963         statements.
1965 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
1967         * config/cris/cris.md: Replace references to (reg:SI 16) with
1968         (reg:SI CRIS_SRP_REGNUM).
1970 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
1972         PR tree-optimization/20657
1973         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
1974         create an appropriate range from it.
1976 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
1978         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
1979         <UNSPEC_FIST_CEIL> case.
1981         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
1982         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
1983         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
1984         to implement lfloor and llfloor built-ins as x87 intrinsic function.
1985         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
1986         (lfloor<mode>2): New expanders.
1987         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
1988         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
1989         to implement lceil and llceil built-ins as x87 intrinsic function.
1990         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
1991         (lceil<mode>2): New expanders.
1993 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
1995         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
1996         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
1998 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2000         PR target/20927
2001         * config/s390/s390-modes.def: Define TFmode.
2003 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
2005         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
2006         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2007         * config/mips/mips.c (mips16_insn_length): Remove reference to
2008         JUMP_TABLES_IN_TEXT_SECTION.
2010 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
2012         * simplify-rtx.c (simplify_binary_operation_1): Return
2013         scalar or vector of constant 0, depending on the xor's
2014         mode.
2016 2005-04-13  Dale Johannesen  <dalej@apple.com>
2018         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
2019         (objc-act.o):  Ditto.
2020         * objc/objc-act.c (objc_gimplify_expr):  New.
2021         (objc_get_callee_fndecl):  New.
2022         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
2023         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
2024         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
2026 2005-04-13  Devang Patel  <dpatel@apple.com>
2028         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
2029         temp variables.
2031 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
2033         CRIS prologue as RTL.
2034         * config/cris/cris-protos.h (cris_emit_movem_store)
2035         (cris_expand_prologue): Prototype.
2036         * config/cris/cris.c (struct machine_function): New member
2037         stdarg_regs.
2038         (cfa_label_num, cris_target_asm_function_prologue): Remove.
2039         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
2040         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
2041         (cris_load_multiple_op, cris_return_address_on_stack)
2042         (cris_return_address_on_stack_for_return): ISO-Cify.
2043         (cris_store_multiple_op): New predicate function.
2044         (cris_expand_prologue, cris_emit_movem_store): New functions.
2045         (cris_print_operand) <case 'O'>: Handle modifications other than
2046         post-increment.
2047         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
2048         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
2049         (cris_gen_movem_load): Rearrange slightly to make local variable
2050         src a parameter, removing osrc.
2051         (cris_setup_incoming_varargs): Set machine_function member
2052         stdarg_regs to correspond to the number of registers that need to
2053         be saved.
2054         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
2055         CRIS_UNSPEC_GOT.
2056         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
2057         cris_general_operand_or_gotless_symbol accept UNSPEC.
2058         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
2059         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
2060         ("*cris_store_multiple"): New pattern.  Tweak common comment above
2061         this and "*cris_load_multiple".
2062         ("prologue"): New define_expand.
2064         * config/cris/cris.md ("epilogue"): Conditionalize on
2065         TARGET_PROLOGUE_EPILOGUE.
2067 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
2069         PR target/20924
2070         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
2071         fpsr 0 instead of fpsr 1.
2072         (divsf3_internal_thr): Ditto.
2073         (divdf3_internal_lat): Ditto.
2074         (divdf3_internal_thr): Ditto.
2075         (divxf3_internal_lat): Ditto.
2076         (divxf3_internal_thr): Ditto.
2078 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2080         PR tree-optimization/20913
2081         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
2083         PR tree-optimization/20702
2084         * tree-vrp.c (maybe_add_assert_expr): Recurse into
2085         dominator children that haven't been walked into.
2087 2005-04-13  Julian Brown  <julian@codesourcery.com>
2089         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
2090         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
2091         is true.
2093 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2095         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
2096         config/i386/sse.md: Fix comment typos.
2098         * genattrtab.c (NULL_ATTR): Remove.
2099         * ifcvt.c (NULL_EDGE): Likewise.
2101         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
2103         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
2104         NOTE_PREDICT): Remove.
2106 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2108         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
2109         * configure: Regenerate.
2110         * config.in: Likewise.
2111         * system.h: Declare vsnprintf if not already declared.
2113 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2115         * optc-gen.awk: Handle stand-alone Mask records.
2116         * opth-gen.awk: Likewise.
2117         * doc/options.texi (Option file format): Document them.
2118         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
2119         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
2120         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
2121         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
2122         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
2123         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
2124         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
2125         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
2126         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
2127         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
2128         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
2129         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
2130         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
2131         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
2132         TARGET_LONG_DOUBLE_128): Likewise.
2133         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
2134         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
2135         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
2136         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
2137         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
2138         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
2139         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
2140         * config/sparc/sparc.c (fpu_option_set): New global.
2141         (sparc_handle_option): New function.
2142         (sparc_override_options): Test fpu_option_set.
2143         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
2144         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
2145         * config/sparc/sparc.opt: New file.
2146         * config/sparc/little-endian.opt: Likewise.
2147         * config/sparc/long-double-switch.opt: Likewise.
2149 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2151         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
2152         (bfin_handle_options): Set it if -mshared-library-id= is seen.
2153         * config/bfin/bfin.opt (mshared-library-id=): Lose
2154         Var(bfin_lib_id_given).
2156 2005-04-13  Matt Thomas  <matt@3am-software.com>
2158         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
2159         defining.
2161 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2163         * rtl.h (CLEAR_RTX_FLAGS): Remove.
2165         * cgraphunit.c (INSNS_PER_CALL): Remove.
2167         * tree-ssa-forwprop.c (vars,
2168         record_single_argument_cond_exprs,
2169         substitute_single_use_vars): Remove.
2170         (forward_propagate_into_cond_1, forward_propagate_into_cond):
2171         New.
2172         (tree_ssa_forward_propagate_single_use_vars): Call
2173         forward_propagate_into_cond for each COND_EXPR.
2175         * tree-inline.c (INSNS_PER_STMT): Remove.
2177 2005-04-12  Richard Henderson  <rth@redhat.com>
2179         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
2180         (ix86_expand_sse_fp_minmax): ... from ...
2181         (ix86_expand_fp_movcc): ... here.
2182         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
2183         * config/i386/i386-protos.h: Update.
2184         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
2185         (sse_setccsf, sse_setccdf): Allow before reload.
2186         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
2187         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
2188         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
2189         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
2190         (anddf3, nanddf3, iordf3, xordf3): New.
2192 2005-04-12  Jeff Law  <law@redhat.com>
2194         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
2195         (tree-ssa-uncprop.o): Add dependencies.
2196         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
2197         * tree-flow.h (remove_useless_stmts): Remove prototype.
2198         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
2199         remove_useless_stmts.
2200         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
2201         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
2202         * tree-pass.h (pass_uncprop): Declare.
2203         * tree-ssa-uncprop.c: New file.
2205 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
2207         PR target/20670
2208         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
2210 2005-04-12  Caroline Tice  <ctice@apple.com>
2212         Temporary fix for partitioning problems.
2213         * passes.c (rest_of_handle_final): Remove code that
2214         frees unlikely_text_section_name,
2215         * varasm.c (assemble_start_function): Test for partitioning
2216         flag before writing out section labels.
2217         (assemble_end_function): Test for partitioning flag before
2218         writing out section labels.
2220 2005-04-12  Steven Bosscher  <stevenb@suse.de>
2221             Stuart Hastings <stuart@apple.com>
2222             Jan Hubicka  <jh@suse.cz>
2224         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
2225         references to gt-tree-cfg.h.
2226         * basic-block.h (struct basic_block_def): Don't skip rbi
2227         for garbage collection.
2228         (struct reorder_block_def): Make GTY-able.
2229         (struct control_flow_graph): New structure.
2230         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
2231         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
2232         but instead defines to the control_flow_graph for cfun.
2233         (label_to_block_map): New define, points to the label map of
2234         the control_flow_graph for cfun.
2235         (n_edges_for_function, n_basic_blocks_for_function,
2236         last_basic_block_for_function, basic_block_info_for_function,
2237         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
2238         basic_block_info_for_function, label_to_block_map_for_function):
2239         Counterparts for the above, taking a struct function as an extra
2240         argument.
2241         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
2242         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
2243         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
2244         (alloc_rbi_pool, free_rbi_pool): Remove.
2245         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
2246         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
2247         here...
2248         (cfg_layout_finalize) ... and don't free it here.
2249         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
2250         garbage collected.
2251         * flow.c (free_basic_block_vars): Set label_to_block_map and
2252         n_edges to zero too.
2253         * function.h (struct function): Add cfg field.
2254         * function.c (allocate_struct_function): Allocate the cfg.
2255         * tree-cfg.c (label_to_block_map): Remove.
2256         (build_tree_cfg): Don't allocate the rbi pool here...
2257         (delete_tree_cfg_annotations): ...and don't free it here.
2258         Also don't nullify label_to_block_map for cfun.
2260 2005-04-12  Caroline Tice  <ctice@apple.com>
2262         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2263         Revert my patch from April 9.
2264         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
2265         (reorder_basic_blocks): Revert my patch from April 9.
2266         (insert_section_boundary_note): Revert my patch from April 9.
2267         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
2268         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
2269         (COLD_END_LABEL):  Revert my patch from April 9.
2270         (cold_text_section_label):  Revert my patch from April 9.
2271         (cold_end_label): Revert my patch from April 9.
2272         (dwarf2out_switch_text_section): Revert my patch from April 9.
2273         (output_aranges): Revert my patch from April 9.
2274         (output_ranges):  Revert my patch from April 9.
2275         (output_line_info): Revert my patch from April 9.
2276         (add_location_or_const_value_attribute):  Revert my patch from April 9.
2277         (dwarf2out_var_location): Revert my patch from April 9.
2278         (dwarf2out_init):  Revert my patch from April 9.
2279         (dwarf2out_finish): Revert my patch from April 9.
2280         * function.h (struct function): Revert my patch from April 9.
2281         * opts.c (decode_options): Revert my patch from April 9.
2282         * output.h (unlikely_section_label, hot_section_label,
2283         hot_section_end_label, cold_section_end_label,
2284         unlikely_text_section_name): Revert my patch from April 9.
2285         * passes.c (rest_of_handle_final): Revert my patch from April 9.
2286         * varasm.c (unlikely_section_label, hot_section_label,
2287         hot_section_end_label, cold_section_end_label,
2288         unlikely_text_section_name): Revert my patch from April 9.
2289         (initialize_cold_section_name): Revert my patch from April 9.
2290         (unlikely_text_section): Revert my patch from April 9.
2291         (in_unlikely_text_section): Revert my patch from April 9.
2292         (named_section): Revert my patch from April 9.
2293         (function_section): Revert my patch from April 9.
2294         (current_function_section): Revert my patch from April 9.
2295         (assemble_start_function): Revert my patch from April 9.
2296         (assemble_end_function): Revert my patch from April 9.
2297         (default_section_type_flags_1): Revert my patch from April 9.
2299 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2301         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
2302         * config/sparc/sparc.md (untyped_call): Save the registers manually.
2304         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
2306 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2308         PR middle-end/20917
2309         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
2310         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
2312 2004-04-12  Richard Henderson  <rth@redhat.com>
2314         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
2315         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
2316         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
2317         (UNSPEC_*, UNSPECV_*): Renumber.
2319 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
2321         PR mudflap/19266
2322         From Richard Henderson <rth@redhat.com>:
2323         * tree-mudflap.c (mf_build_check_statement_for): Correct block
2324         splitting logic.
2326 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
2328         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
2330 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2332         * config/bfin/bfin.c (bfin_library_id_string): Remove.
2333         (bfin_library_id): New variable.
2334         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
2335         instead of bfin_library_id_string.
2336         (bfin_handle_option): New function.
2337         (override_options): Remove most code to deal with shared library IDs,
2338         just check they aren't used without -mid-shared-library.
2339         (TARGET_HANDLE_OPTION): Define.
2340         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
2341         * config/bfin/bfin.opt (mshared-library-id=): New.
2343 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
2345         * tree-vect-transform.c: Fix comment typos.
2347 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
2349         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
2350         split critical edges when not possible/profitable.
2352 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2354         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
2355         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
2356         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
2357         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
2358         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
2359         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
2360         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
2361         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
2362         MASK_NO_BITFIELD.
2363         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
2364         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2365         * config/ns32k/ns32k.opt: New file.
2367 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2369         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
2370         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
2371         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
2372         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
2373         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
2374         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
2375         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
2376         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
2377         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
2378         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
2379         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
2380         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
2381         (MASK_COLDFIRE): Formatting fixes.
2382         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
2383         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
2384         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
2385         "_current_shared_library_a5_offset_".
2386         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2387         (MASK_ALL_CPU_BITS): New macro.
2388         (m68k_handle_option): New function.
2389         (override_options): Remove handling of m68k_library_id_string.
2390         * config/m68k/m68k.opt: New file.
2391         * config/m68k/ieee.opt: New file.
2393 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
2395         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2396         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
2397         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2398         (TARGET_CXX): Adjust accordingly.
2399         * target.h (struct gcc_target): Remove epxort_class_data.  Add
2400         determine_class_data_visibility and class_data_always_comdat.
2401         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2402         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
2403         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2404         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
2405         (arm_cxx_determine_class_data_visibility): New.
2406         (arm_cxx_class_data_always_comdat): Likewise.
2407         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2408         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2409         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2410         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
2411         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
2412         Define.
2414 2005-04-11  Devang Patel  <dpatel@apple.com>
2416         * tree-data-ref.c (build_classic_dist_vector,
2417         compute_subscript_distance): Make externally visible.
2418         * tree-data-ref.h (build_classic_dist_vector,
2419         compute_subscript_distance): Same.
2420         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
2421         Check distance vector against vectorization factor.
2422         (vect_analyze_loop): Determine vectorizaion factor before
2423         analyzing data dependences.
2424         * tree-vectorizer.c (loops_num): Make it externally visible and
2425         rename ...
2426         * tree-vectorizer.c (vect_loops_num): ... new name.
2427         * tree-vectorizer.h  (vect_loops_num): New.
2429 2005-04-11  Devang Patel  <dpatel@apple.com>
2431         * tree-vect-analyze.c (vect_analyze_operations): Check
2432         vectorizable codition.
2433         * tree-vect-transform.c (vect_is_simple_cond): New function.
2434         (vectorizable_condition): New function.
2435         (vect_transform_stmt): Handle condition_vec_info_type.
2436         * tree-vectorizer.h (enum stmt_vec_info_type): Add
2437         condition_vec_info_type.
2438         (vectorizable_condition): New.
2440 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
2442         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
2443         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
2444         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
2446         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
2447         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
2449         * dwarf2out.c (output_line_info): Don't try to dereference
2450         a NULL current_function_decl.
2452         * config/t-slibgcc-darwin: Don't put shared libraries in
2453         directories other than $(slibdir).
2454         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
2455         OS uses for it.
2457 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2459         PR tree-optimization/20933
2460         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
2461         logic to reject aliases between read-only and writable
2462         variables ...
2463         (may_alias_p): ... here.
2464         (get_tmt_for): Do not associate read-only tags to pointers
2465         whose pointed-to type is not read-only.
2466         * tree-ssa.c (verify_ssa): Check that memory stores have at
2467         least one V_MAY_DEF or V_MUST_DEF.
2469 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2471         PR/17092
2472         * configure.ac (gcc_UNLOCKED_FUNCS): New.
2473         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
2474         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
2475         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
2476         _unlocked function.
2477         (fwrite_unlocked): Fix prototype.
2479         * configure, config.in: Regenerate.
2481 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
2483         * tree-ssa-loop-im.c: Include real.h.
2484         (determine_invariantness_stmt): If real division divisor is
2485         invariant and flag_unsafe_math_optimizations enabled, generate
2486         invariant reciprocal for hoisting.
2487         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
2489 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2491         Fix PR tree-optimization/20926
2493         * tree-ssa-alias.c (add_type_alias): Handle subvars.
2495 2005-04-11  Devang Patel  <dpatel@apple.com>
2497         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
2498         operand ordering.
2500 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2502         * fold-const.c (fold_binary_op_with_conditional_arg):
2503         use fold_buildN instead of "fold (buildN" in some
2504         non obvious places.
2505         (fold_unary): Likewise.
2506         (fold_binary): Likewise.
2508 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2510         Fix PR tree-optimization/20612
2511         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
2512         handling
2513         (perfect_nestify): preheaderbb is *not* part of loop of the
2514         old destination.
2516 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2518         * tree-ssa-alias.c (may_alias_p): If the variable
2519         is a global variable and the pointer is parameter
2520         and -fargument-noalias-global is used, then
2521         the pointer cannot alias the variable.
2523 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
2525         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
2526         * config/sparc/sparc.h: Likewise.
2527         * config/sparc/sparc.md: Likewise.
2529 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
2531         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
2533         * tree-vrp.c: Fix a comment typo.
2535 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2537         PR tree-optimization/20920
2538         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
2539         SSA_NAME flows through an abnormal edge.
2540         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
2541         through abnormal edges.
2542         (maybe_add_assert_expr): Likewise.
2544 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
2546         * config/s390/s390.h (s390_tune_string, s390_arch_string)
2547         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
2548         (s390_stack_size_string, s390_stack_guard_string, target_flags)
2549         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
2550         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
2551         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
2552         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
2553         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
2554         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
2555         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
2556         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
2557         (TARGET_HANDLE_OPTION): Likewise.
2558         (s390_tune): Initialize to PROCESSOR_max.
2559         (s390_arch_string): Make static.
2560         (s390_tune_string, s390_warn_framesize_string): Delete.
2561         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
2562         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
2563         (s390_handle_arch_option, s390_handle_option): New functions.
2564         (override_options): Remove parsing of option strings.
2565         * config/s390/s390.opt: New file.
2567 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2569         * tree-complex.c (expand_vector_operations): Call
2570         update_stmt_if_modified.
2572 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2574         * tree-vect-analyze (vect_determine_vectorization_factor):
2575         Do not use GET_MODE_NUNITS.
2576         * tree-vect-transform.c (vect_get_vec_def_for_operand,
2577         (vectorizable_load, vect_transform_loop): Likewise.
2579 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
2581         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
2582         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
2583         * optabs.h (enum optab_index): Add new OTI_lceil.
2584         (lceil_optab): Define corresponding macro.
2585         * optabs.c (init_optabs): Initialize lceil_optab.
2586         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
2587         and lceildi2 patterns.
2588         * builtins.c (expand_builtin_int_roundingfn): Handle
2589         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
2590         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
2591         BUILT_IN_LLCEIL{,F,L}.
2592         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
2593         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
2594         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
2595         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
2596         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
2597         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
2598         into lceil built-in function and (long long int)ceil{,f,l} into
2599         llceil built-in function.
2600         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
2601         BUILT_IN_LLCEIL.
2603 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2605         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
2606         zero.
2608 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
2610         * config/arm/arm.c: Fix a comment typo.
2611         * doc/tree-ssa.texi: Fix a typo.
2613 2005-04-10  Steven Bosscher  <stevenb@suse.de>
2615         * cselib.c (clear_table): Rename to cselib_clear_table.
2616         * cselib.h (cselib_clear_table): Add prototype.
2617         * gcse.c (gcse_main): Make 'f' argument unused.
2618         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
2619         of each basic block instead.
2620         (compute_sets, compute_hash_table_work): Likewise.
2621         (constprop_register): Change int 'alter_jumps' argument to bool.
2622         (do_local_cprop): Likewise.
2623         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
2624         the insn chain.  Explicitly clear the cselib tables after finishing
2625         one basic block.  Make sure there are no unterminated libcall blocks.
2626         Update compute_sets call.
2627         (cprop): Walk basic blocks instead of the insn chain.
2628         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
2629         Likewise.
2630         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
2631         one_cprop_pass calls.
2633 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2635         * combine.c (combine_simplify_rtx): Remove a transformation that
2636         relies on an invalid assumption about rtl sign-extension semantics.
2638 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2640         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
2641         to build_int_cst_wide.
2643 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
2645         PR target/20126
2646         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
2647         set the original address pseudo to the correct value before the
2648         original insn, if possible, and leave the insn alone, otherwise
2649         create a new pseudo, set it and replace it in the insn.
2650         * recog.c (validate_change_maybe_volatile): New.
2651         * recog.h (validate_change_maybe_volatile): Declare.
2653 2005-04-09  Caroline Tice  <ctice@apple.com>
2655         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2656         Remove targetm.have_named_sections test.
2657         (fix_edges_for_rarely_executed_code): Likewise.
2658         (insert_section_boundary_note): Likewise.
2659         (reorder_basic_blocks): Check partitioning flag before calling
2660         verify_hot_cold_block_grouping.
2661         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
2662         the function struct rather than global variables.
2663         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
2664         (COLD_END_LABEL): Likewise
2665         (cold_text_section_label): New static global variable.
2666         (cold_end_label): Likewise.
2667         (dwarf2out_switch_text_section): Get hot/cold section labels from
2668         the function struct rather than global variables.
2669         (output_aranges): Use cold_text_section_label and cold_end_label;
2670         check partitioning flag before putting out delta.
2671         (output_ranges): Remove incorrect code attempting to use
2672         hot/cold labels.
2673         (output_line_info): Get cold section label from function struct.
2674         (add_location_or_const_value_attribute): Likewise.
2675         (get_subprogram_die): Get hot/cold section labels from function struct.
2676         (dwarf2out_var_location): Likewise.
2677         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
2678         write out cold_text_section_label if partition flag is set.
2679         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
2680         * function.h (struct function): Add new fields to point to hot/cold
2681         section labels: hot_section_label, cold_section_label,
2682         hot_section_end_label and cold_section_end_label; also add new field
2683         for cold text section name, unlikely_text_section_name.
2684         * opts.c (decode_options): Turn off partitioning flag if
2685         !targetm.have_named_sections.
2686         * output.h (hot_section_label): Remove.
2687         (hot_section_end_label): Remove.
2688         (cold_section_end_label): Remove.
2689         (unlikely_section_label): Remove.
2690         (unlikely_text_section_name): Remove.
2691         * passes.c (rest_of_handle_final):  Remove code that frees
2692         unlikely_text_section_name.
2693         * varasm.c (unlikely_section_label): Remove.
2694         (hot_section_label): Remove.
2695         (hot_section_end_label): Remove.
2696         (cold_section_end_label): Remove.
2697         (unlikely_text_section_name):  Remove.
2698         (initialize_cold_section_name): Modify to call
2699         targetm.strip_name_encoding; to store cold section name in current
2700         function struct, if it exists; and to only use the decl_section_name
2701         if flag_named_sections is true.
2702         (unlikely_text_section): Modify to get section name out of current
2703         function struct, if there is one; otherwise build it from
2704         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
2705         (in_unlikely_text_section): Likewise.
2706         (named_section): Modify to get/put cold section name in current function
2707         struct, if there is one.
2708         (function_section):  Change 'bool unlikely' to 'int reloc'; check
2709         targetm.have_named_sections before calling named_section.
2710         (current_function_section): Likewise.
2711         (assemble_start_function): Modify to get/put unlikely_text_section_name
2712         in current function struct; modify to get hot/cold section labels
2713         from function struct; initialize labels using
2714         ASM_GENERATE_INTERNAL_LABEL;
2715         test partitioning flag before writing out hot section label.
2716         (assemble_end_function): Test partitioning flag before writing out
2717         hot/cold section labels.
2718         (default_section_type_flags_1):  Modify to use array instead of
2719          char* for unlikely_text_section_name; set flags correctly for
2720          cold text section if there is not a current function decl.
2722 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2724         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
2725         and TI_VA_LIST_FPR_COUNTER_FIELD.
2726         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
2727         * tree-pass.h (pass_stdarg): Add.
2728         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
2729         * tree-stdarg.c: New file.
2730         * tree-stdarg.h: New file.
2731         * Makefile.in (OBJS-common): Add tree-stdarg.o.
2732         (tree-stdarg.o): Add dependencies.
2733         * function.h (struct function): Add va_list_gpr_size and
2734         va_list_fpr_size fields.
2735         * function.c (allocate_struct_function): Initialize them.
2736         * target.h (struct gcc_target): Add stdarg_optimize_hook.
2737         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
2738         (TARGET_INITIALIZER): Add it.
2740         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
2741         va_list_{g,f}pr_counter_field.
2742         (ix86_setup_incoming_varargs): Don't do anything if reg_save
2743         area will not be used.  Only save registers that tree-stdarg.c
2744         detected they need saving.
2745         (ix86_va_start): Don't set up fields that won't be used.
2747         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
2748         va_list_{g,f}pr_counter_field.
2749         (setup_incoming_varargs): Don't do anything if reg_save
2750         area will not be used.  Only save registers that tree-stdarg.c
2751         detected they need saving.
2752         (rs6000_va_start): Don't set up fields that won't be used.
2754         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
2755         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
2756         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
2757         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
2759 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2761         PR target/20795
2762         * config/i386/i386.c (construct_container): Pass empty aligned
2763         struct, union or class in memory.
2765 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
2767         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
2768         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
2769         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
2770         config/rs6000/predicates.md: Fix comment typos.
2772         * sched-int.h (haifa_insn_data): Remove blockage and units.
2773         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
2774         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
2775         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
2777 2005-04-09  Jan Hubicka  <jh@suse.cz>
2778             Steven Bosscher  <stevenb@suse.de>
2780         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
2781         * cfgloop.c (get_loop_exit_edges): Likewise.
2782         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
2783         (unloop): Likewise.
2784         * loop-unroll.c (analyze_insns_in_loop): Likewise.
2785         * tree-cfg.c (dump_cfg_status): Likewise.
2787 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
2789         * config/rs6000/predicates.md (altivec_register_operand): Remove
2790         redundant match_code test.
2791         (gpc_reg_operand): Same.
2792         (cc_reg_operand): Same.
2793         (cc_reg_not_cr0_operand): Same.
2795 2005-04-09  Jan Hubicka  <jh@suse.cz>
2797         Forgotten hunk from my last merge patch:
2798         * final.c (output_addr_const): Do not call mark_referenced.
2800 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
2802         * doc/tree-ssa.texi: Add immediate use documentation.
2804 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
2806         * arm.c (FL_WBUF): Define.
2807         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
2808         (arm_is_6_or_7): Delete.
2809         (arm_tune_wbuf): New.
2810         (arm_override_options): Set arm_tune_wbuf.
2811         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
2812         (arm_is_6_or_7): Delete declaration.
2813         (arm_tune_wbuf): New declartion.
2814         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
2815         (model_wbuf): Derive from arm_tune_wbuf.
2816         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
2817         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
2818         (arm740t): Mark CPUs as having a write buffer.
2820 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
2822         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
2823         of 'const_double_operand' in operand 2 constraints.  Update enable
2824         condition.
2826 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
2828         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
2829         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
2830         * optabs.h (enum optab_index): Add new OTI_lfloor.
2831         (lfloor_optab): Define corresponding macro.
2832         * optabs.c (init_optabs): Initialize lfloor_optab.
2833         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
2834         and lfloordi2 patterns.
2835         * builtins.c (expand_builtin_int_roundingfn): New prototype.
2836         (expand_builtin_int_roundingfn): New function.
2837         (fold_builtin_int_roundingfn): New prototype.
2838         (fold_builtin_int_roundingfn): New function, renamed from
2839         fold_builtin_lround.
2840         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
2841         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
2842         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
2843         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
2844         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
2845         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
2846         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
2847         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
2848         into lfloor built-in function and (long long int)floor{,f,l} into
2849         llfloor built-in function.
2850         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
2851         BUILT_IN_LLFLOOR.
2853 2005-04-08  Ian Lance Taylor  <ian@airs.com>
2855         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
2856         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
2857         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
2858         (DO_COND, DO_BODY): Likewise.
2859         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
2860         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
2861         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
2862         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
2863         (build_continue_stmt, build_break_stmt): Don't declare.
2864         (c_do_switch_warnings): Update declaration.
2865         * c-gimplify.c (enum bc_t): Remove.
2866         (struct c_gimplify_ctx, ctxp): Remove.
2867         (push_context, pop_context): Remove static functions.
2868         (c_genericize): Don't call push_context or pop_context.
2869         (begin_bc_block, finish_bc_block): Remove static functions.
2870         (build_bc_goto): Likewise.
2871         (gimplify_c_loop): Likewise.
2872         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
2873         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
2874         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
2875         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
2876         * c-common.c (c_do_switch_warnings): Rename from
2877         c_do_switch_warnings_1.
2878         (c_do_switch_warnings) [old version]: Remove.
2879         (c_do_switch_expr_warnings): Remove.
2880         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
2881         function instead of c_do_switch_expr_warnings.
2882         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
2883         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
2884         * c-pretty-print.c (pp_c_statement): Likewise.
2885         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
2887 2005-04-08  Devang Patel  <dpatel@apple.com>
2889         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
2890         While selecting replacement condition pay attention to loop header.
2892 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
2894         Merge from tree-cleanup-branch: VRP, store CCP, store
2895             copy-prop, incremental SSA updating of FUD chains and
2896             newly exposed symbols.
2898         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
2899         (OBJS-common): Add tree-vrp.o.
2900         (tree-vrp.o): New rule.
2901         * basic-block.h (nearest_common_dominator_for_set): Declare.
2902         * common.opt (ftree-store-ccp): New flag.
2903         (ftree-copy-prop): New flag.
2904         (ftree-vrp): New flag.
2905         (ftree-store-copy-prop): New flag.
2906         * dominance.c (nearest_common_dominator_for_set): New.
2907         * domwalk.c (walk_dominator_tree): Only traverse
2908         statements in blocks marked in walk_data->interesting_blocks.
2909         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
2910         * fold-const.c (fold): Handle ASSERT_EXPR.
2911         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
2912         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
2913         flag_tree_vrp at -O2.
2914         * timevar.def (TV_TREE_VRP): Define.
2915         (TV_TREE_COPY_PROP): Define.
2916         (TV_TREE_STORE_COPY_PROP): Define.
2917         (TV_TREE_SSA_INCREMENTAL): Define.
2918         (TV_TREE_STORE_CCP): Define.
2919         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
2920         to kill_redundant_phi_nodes from comment.
2921         (verify_expr): Handle ASSERT_EXPR.
2922         * tree-dfa.c (mark_new_vars_to_rename): Remove second
2923         argument.  Update all users.
2924         (mark_call_clobbered_vars_to_rename): Remove.  Update all
2925         users.
2926         * tree-flow-inline.h (unmodifiable_var_p): New.
2927         * tree-flow.h (enum value_range_type): Declare.
2928         (struct value_range_def): Declare.
2929         (value_range): Declare.
2930         (remove_all_phi_nodes_for): Remove.  Update all users.
2931         (find_phi_node_for): Declare.
2932         (add_type_alias): Declare.
2933         (count_uses_and_derefs): Declare.
2934         (kill_redundant_phi_nodes): Remove.
2935         (rewrite_into_ssa): Remove.
2936         (rewrite_def_def_chains): Remove.
2937         (update_ssa, register_new_name_mapping, create_new_def_for,
2938         need_ssa_update_p, name_registered_for_update_p,
2939         release_ssa_name_after_update_ssa, dump_repl_tbl,
2940         debug_repl_tbl, dump_names_replaced_by,
2941         debug_names_replaced_by, mark_sym_for_renaming,
2942         mark_set_for_renaming, get_current_def, set_current_def,
2943         get_value_range, dump_value_range, debug_value_range,
2944         dump_all_value_ranges, debug_all_value_ranges,
2945         expr_computes_nonzero, loop_depth_of_name,
2946         unmodifiable_var_p): Declare.
2947         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
2948         ASSERT_EXPR.
2949         * tree-into-ssa.c (block_defs_stack): Update comment.
2950         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
2951         syms_to_rename, names_to_release, repl_tbl,
2952         need_to_initialize_update_ssa_p, need_to_update_vops_p,
2953         need_to_replace_names_p): New locals.
2954         (NAME_SETS_GROWTH_FACTOR): Define.
2955         (struct repl_map_d): Declare.
2956         (struct mark_def_sites_global_data): Add field
2957         interesting_blocks.
2958         (enum rewrite_mode): Declare.
2959         (REGISTER_DEFS_IN_THIS_STMT): Define.
2960         (compute_global_livein): Use last_basic_block instead of
2961         n_basic_blocks.
2962         (set_def_block): Remove last argument.  Update all callers.
2963         (prepare_use_operand_for_rename): Remove.  Update all callers.
2964         (prepare_def_operand_for_rename): Remove.  Update all callers.
2965         (symbol_marked_for_renaming): New.
2966         (is_old_name): New.
2967         (is_new_name): New.
2968         (repl_map_hash): New.
2969         (repl_map_eq): New.
2970         (repl_map_free): New.
2971         (names_replaced_by): New.
2972         (add_to_repl_tbl): New.
2973         (add_new_name_mapping): New.
2974         (mark_def_sites): Assume that all the operands in the
2975         statement are in normal form.
2976         (find_idf): Assert that the block in the stack is valid.
2977         (get_default_def_for): New.
2978         (insert_phi_nodes_for): Add new argument 'update_p'.
2979         Add documentation.
2980         If update_p is true, add a new mapping between the LHS of
2981         each new PHI and the name that it replaces.
2982         (insert_phi_nodes_1): Only call find_idf if needed.
2983         (get_reaching_def): Call get_default_def_for.
2984         (rewrite_operand): Remove.
2985         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
2986         and REWRITE_THIS_STMT are false.
2987         Assume that all the operands in the statement are in
2988         normal form.
2989         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
2990         (rewrite_virtual_phi_arguments): Remove.
2991         (invalidate_name_tags): Remove.
2992         (register_new_update_single, register_new_update_set,
2993         rewrite_update_init_block, replace_use,
2994         rewrite_update_fini_block, rewrite_update_stmt,
2995         rewrite_update_phi_arguments): New.
2996         rewrite_blocks): Remove argument 'fix_virtual_phis'.
2997         Add arguments 'entry', 'what' and 'blocks'.
2998         Initialize the dominator walker according to 'what' and
2999         'blocks'.
3000         Start the dominator walk at 'entry'.
3001         (mark_def_site_blocks): Add argument 'interesting_blocks'.
3002         Use it to configure the dominator walker.
3003         (rewrite_into_ssa): Remove argument 'all'.
3004         Make internal.
3005         (rewrite_all_into_ssa): Remove.
3006         (rewrite_def_def_chains): Remove.
3007         (mark_def_interesting, mark_use_interesting,
3008         prepare_phi_args_for_update, prepare_block_for_update,
3009         prepare_def_site_for, prepare_def_sites,
3010         dump_names_replaced_by, debug_names_replaced_by,
3011         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
3012         delete_update_ssa, create_new_def_for,
3013         register_new_name_mapping, mark_sym_for_renaming,
3014         mark_set_for_renaming, need_ssa_update_p,
3015         name_registered_for_update_p, ssa_names_to_replace,
3016         release_ssa_name_after_update_ssa,
3017         insert_updated_phi_nodes_for, update_ssa): New.
3018         * tree-loop-linear.c (linear_transform_loops): Call
3019         update_ssa instead of rewrite_into_ssa.
3020         * tree-optimize.c (vars_to_rename): Remove.
3021         Update all users.
3022         (init_tree_optimization_passes): Replace
3023         pass_redundant_phi with pass_copy_prop.
3024         Add pass_vrp.
3025         Replace pass_ccp with pass_store_ccp.
3026         Add pass_store_copy_prop after pass_store_ccp.
3027         (execute_todo): If the TODO_ flags don't include updating
3028         the SSA form, assert that it does not need to be updated.
3029         Call update_ssa instead of rewrite_into_ssa and
3030         rewrite_def_def_chains.
3031         If TODO_verify_loops is set, call verify_loop_closed_ssa.
3032         (tree_rest_of_compilation):
3033         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
3034         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
3035         TODO_cleanup_cfg): Renumber.
3036         (TODO_verify_loops, TODO_update_ssa,
3037         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
3038         TODO_update_ssa_only_virtuals): Define.
3039         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
3040         Declare.
3041         * tree-phinodes.c (make_phi_node): Update documentation.
3042         (remove_all_phi_nodes_for): Remove.
3043         (find_phi_node_for): New.
3044         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
3045         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
3046         (interpret_rhs_modify_expr): Likewise.
3047         * tree-sra.c (decide_instantiations): Mark all symbols in
3048         SRA_CANDIDATES for renaming.
3049         (mark_all_v_defs_1): Rename from mark_all_v_defs.
3050         (mark_all_v_defs): New function.  Update all users to call it
3051         with the whole list of scalarized statements, not just the
3052         first one.
3053         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
3054         (compute_flow_insensitive_aliasing): If the tag is
3055         unmodifiable and the variable isn't or vice-versa, don't
3056         make them alias of each other.
3057         (setup_pointers_and_addressables): If the type tag for
3058         VAR is about to change, mark the old one for renaming.
3059         (add_type_alias): New.
3060         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
3061         (ccp_lattice_t): Rename from latticevalue.
3062         (value): Remove.  Update all users.
3063         (const_val): New local variable.
3064         (do_store_ccp): New local variable.
3065         (dump_lattice_value): Handle UNINITIALIZED.
3066         (debug_lattice_value): New.
3067         (get_default_value): Re-write.
3068         (set_lattice_value): Re-write.
3069         (def_to_varying): Remove.  Update all users.
3070         (likely_value): Return VARYING for statements that make
3071         stores when STORE_CCP is false.
3072         Return VARYING for any statement other than MODIFY_EXPR,
3073         COND_EXPR and SWITCH_EXPR.
3074         (ccp_initialize): Re-write.
3075         (replace_uses_in, replace_vuse_in, substitute_and_fold):
3076         Move to tree-ssa-propagate.c.
3077         (ccp_lattice_meet): Handle memory stores when
3078         DO_STORE_CCP is true.
3079         (ccp_visit_phi_node): Likewise.
3080         (ccp_fold): Likewise.
3081         (evaluate_stmt): Likewise.
3082         (visit_assignment): Likewise.
3083         (ccp_visit_stmt): Likewise.
3084         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
3085         into DO_STORE_CCP.
3086         (do_ssa_ccp): New.
3087         (pass_ccp): Use it.
3088         (do_ssa_store_ccp): New.
3089         (gate_store_ccp): New.
3090         (pass_store_ccp): Declare.
3091         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
3092         (may_propagate_copy): Reformat.
3093         Don't abort if ORIG is a virtual and DEST isn't.
3094         If NEW does not have alias information but DEST does,
3095         copy it.
3096         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
3097         copy_prop_kind, which_copy_prop): Declare.
3098         (stmt_may_generate_copy, get_copy_of_val,
3099         get_last_copy_of, set_copy_of_val, dump_copy_of,
3100         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
3101         copy_prop_visit_stmt, copy_prop_visit_phi_node,
3102         init_copy_prop, fini_copy_prop, execute_copy_prop,
3103         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
3104         store_copy_prop): New.
3105         (pass_copy_prop, pass_store_copy_prop): Declare.
3106         * tree-ssa-dom.c (struct opt_stats_d): Add fields
3107         'num_const_prop' and 'num_copy_prop'.
3108         (cprop_operand): Update them.
3109         (dump_dominator_optimization_stats): Dump them.
3110         (tree_ssa_dominator_optimize): Call update_ssa instead of
3111         rewrite_into_ssa.
3112         (loop_depth_of_name): Declare extern.
3113         (simplify_cond_and_lookup_avail_expr): Guard against NULL
3114         values for LOW or HIGH.
3115         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
3116         (record_equivalences_from_stmt): Call expr_computes_nonzero.
3117         (cprop_operand): Only propagate if VAL != OP.
3118         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
3119         statement for renaming.
3120         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
3121         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
3122         add_type_alias if necessary.
3123         Call mark_new_vars_to_rename.
3124         (tree_ssa_iv_optimize): If new symbols need to be renamed,
3125         mark every statement updated, call update_ssa and
3126         rewrite_into_loop_closed_ssa.
3127         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
3128         from LIVEIN if VAR is a virtual.
3129         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
3130         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
3131         (get_call_expr_operands): Reformat statement.
3132         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
3133         symbols.
3134         * tree-ssa-propagate.c (ssa_prop_init): Initialize
3135         SSA_NAME_VALUE for every name.
3136         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3137         get_value_loaded_by): New.
3138         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
3139         substitute_and_fold): Move from tree-ssa-ccp.c.
3140         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
3141         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3142         get_value_loaded_by, replace_uses_in, substitute_and_fold):
3143         Declare.
3144         * tree-ssa.c (verify_use): Fix error message.
3145         (propagate_into_addr, replace_immediate_uses, get_eq_name,
3146         check_phi_redundancy, kill_redundant_phi_nodes,
3147         pass_redundant_phi): Remove.  Update all users.
3148         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
3149         add_type_alias, if necessary.
3150         * tree-vectorizer.h (struct _stmt_vect_info): Update
3151         documentation for field 'memtag'.
3152         * tree-vrp.c: New file.
3153         * tree.def (ASSERT_EXPR): Define.
3154         * tree.h (ASSERT_EXPR_VAR): Define.
3155         (ASSERT_EXPR_COND): Define.
3156         (SSA_NAME_VALUE_RANGE): Define.
3157         (struct tree_ssa_name): Add field 'value_range'.
3158         (PHI_REWRITTEN): Remove.
3159         (struct tree_phi_node): Remove field 'rewritten'.
3160         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
3161         -ftree-store-copy-prop): Document.
3162         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
3163         Document usage of update_ssa.
3165 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
3167         PR target/20814
3168         * config/rs6000/predicates.md (altivec_register_operand): Accept
3169         SUBREG.
3170         (and64_operand): Do not limit CONST_INT to mask64_operand.
3171         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
3172         (and_operand): Do not limit CONST_INT to mask_operand.
3174 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
3176         PR rtl-optimization/20466
3177         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
3178         for overlap of the address of each list member.
3179         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
3181 2005-04-08  Mike Stump  <mrs@apple.com>
3183         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
3185         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
3186         instead of 4.
3188 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3190         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
3192         * function.c (push_function_context_to): Don't set
3193         contains_functions.
3194         * function.h (function): Remove contains_functions.
3195         (current_function_contains_functions): Remove.
3197         * function.h (function): Remove instrument_entry_exit.
3198         (current_function_instrument_entry_exit): Remove.
3200         * function.h (nonlocal_labels): Remove.
3202         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
3204         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
3205         (check_attr_value, write_attr_get, write_expr_attr_cache,
3206         find_attr, make_internal_attr): Don't reference negative_ok or
3207         unsigned_p.
3208         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
3209         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
3210         (ATTR_STATIC): Adjust the value.
3212         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
3214 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
3216         * config/s390/tpf.h (ASM_SPEC): Define.
3218 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3220         * tree-flow.h: Remove the prototype for
3221         redirect_immediate_uses.
3222         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
3224 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
3226         * arm.c (arm_const_double_by_parts): New function.
3227         * arm-protos.h (arm_const_double_by_parts): Add prototype.
3228         * arm.md (define_split for 64-bit constants): Add another one.
3230 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
3232         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
3234 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3236         * system.h: Revert last change.
3238 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
3240         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
3241         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
3242         (TARGET_SWITCHES): Delete.
3243         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
3244         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
3245         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
3246         * config/xtensa/xtensa.opt: New file.
3248 2005-04-08  Ben Elliston  <bje@au.ibm.com>
3250         * config/fp-bit.c: Include L_mul_tf in #endif comment.
3251         * config/fp-bit.h: Tidy comments.
3253 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3255         * system.h: Poison PARAMS.
3257 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
3259         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3260         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
3261         (TARGET_SWITCHES): Delete.
3262         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
3263         * config/vax/vax.opt: New file.
3265 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
3267         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
3269 2005-04-07  Ian Lance Taylor  <ian@airs.com>
3271         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
3272         define.
3273         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
3274         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
3275         Likewise.
3277 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
3279         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
3280         all immediate uses in PHI nodes.
3282 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
3284         * arm.c (arm_const_double_inline_cost): Handle any constant by
3285         using gen_lowpart and gen_highpart_mode.
3286         (note_invalid_constants): All constants in an RTX with a constraint
3287         that permits memory are now pushed to the constant pool.
3288         (output_move_double): Delete code to handle reg to reg and
3289         constant to reg moves.
3290         (const_double_needs_minipool, output_mov_immediate): Delete.
3291         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
3292         CONST_INT and CONST_VECTOR.
3293         * arm.md (ANY64): New mode macro.
3294         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
3295         (movdf_soft_insn): Split reg-reg and const-reg moves.
3296         (split patterns for 64-bit constant and register moves): New.
3297         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
3298         (cirrus_movdf_hard_insn): Likewise.
3299         * fpa.md (movdf_fpa): Likewise.
3300         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
3301         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
3302         constraints.
3303         (movv2si_internal_2): Likewise.
3304         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
3305         (movdf_vfp): Likewise.
3306         * arm-protos.h (output_mov_immediate): Delete prototype.
3308 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
3310         PR target/20093
3311         * simplify-rtx.c (simplify_unary_operation_1): Check
3312         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
3314 2005-04-06  James E Wilson  <wilson@specifixinc.com>
3316         PR target/20717
3317         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
3318         ADDR_EXPR.
3320 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3322         * coverage.h (GCOV_TYPE_NODE): Delete.
3323         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
3324         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
3325         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
3326         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
3327         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
3329 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3331         PR other/20792
3332         * Makefile.in (gcc.pot): Remove options.c dependency.
3333         * optc-gen.awk: Don't quote help strings with N_().
3335 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
3337         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
3338         the function returns a pointer type.
3340 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
3342         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
3343         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
3344         * doc/invoke.texi: Documnet salias-max-implicit-fields.
3345         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
3346         explicit_uses members.
3347         (get_or_create_used_part_for): Initialize new fields.
3348         (fieldoff_compare): New function.
3349         (create_overlap_variables_for): Count number of fields, use
3350         heuristic to determine whether to create subvars for vars with
3351         only implicit uses.
3352         Sort the field list by offset and avoid creating duplicate SFT's.
3354 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3356         * c.opt (-F): Remove trailing whitespace from help string.
3357         (-finput-charset): Use a tab to separate the switch name and help
3358         string.
3359         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
3360         (-ftree-vectorizer-verbose): Likewise.
3362 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3364         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
3365         a PHI argument where a use occurs instead of all PHI arguments.
3367 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
3369         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
3370         scope.
3372 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3374         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
3375         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
3376         config/bfin/bfin.h: Fix comment typos.
3378 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
3380         * doc/install.texi: Update the URL for Jacks.
3381         * doc/sourcebuild.texi: Likewise.
3383 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3385         PR target/17245
3386         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
3387         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
3389 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3391         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
3393 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3395         * config/v850/v850-protos.h (override_options): Delete.
3396         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
3397         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
3398         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
3399         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
3400         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
3401         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
3402         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
3403         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
3404         (OVERRIDE_OPTIONS): Delete.
3405         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
3406         (small_memory_info): Remove the value field.
3407         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
3408         TARGET_NO_APP_REGS.
3409         * config/v850/v850.c (small_memory): Remove the value field.
3410         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3411         (override_options): Delete.
3412         (v850_handle_memory_option, v850_handle_option): New functions.
3413         * config/v850/v850.opt: New file.
3415 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
3417         * config.host: Add a section for generic hosts, and a subsection
3418         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
3419         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
3420         * config/host-darwin.h: New.
3421         * config/x-darwin: New.
3422         * config/i386/host-i386-darwin.c: New.
3423         * config/i386/x-darwin: New.
3424         * config/rs6000/host-darwin.c: Include host-darwin.h.
3425         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
3426         (darwin_rs6000_gt_pch_use_address): Likewise.
3427         * config/rs6000/x-darwin: Change name of .o built, update
3428         dependencies for changes to rs6000/host-darwin.c.
3430 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3432         PR target/17824
3433         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
3435 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
3437         * tree-vect-analyze.c (vect_analyze_loop_form): Call
3438         split_loop_exit_edge instead of loop_split_edge_with.
3440 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
3442         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
3443         UNSPEC_SET_VSCR): New constants, used throughout.
3444         (*andc3_v4sf): New.
3445         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
3446         Replace with...
3447         (altivec_vspltis<VI_char>): ... this pattern, using
3448         a QImode const_int_operand for the immediate.
3449         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
3450         define_expands.
3452 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3454         PR target/17822
3455         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
3457 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3459         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
3461 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3463         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
3464         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
3465         macros as living in "this file" and not gcc.h.
3467 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3469         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
3470         -ftree-live_range_split.  Perhaps renamed at some point?
3472 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3474         PR target/20625
3475         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
3476         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
3478 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3480         * tree-flow.h (number_of_iterations_cond): Declaration removed.
3481         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
3482         (number_of_iterations_special): New function.
3483         (number_of_iterations_exit): Use number_of_iterations_special.
3484         Use simplify_using_outer_evolutions only at -O3.
3485         (number_of_iterations_cond, tree_simplify_using_condition,
3486         simplify_using_initial_conditions, loop_niter_by_eval,
3487         compare_trees, can_count_iv_in_wider_type_bound,
3488         simplify_using_outer_evolutions): Use fold_build.
3490 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
3492         * doc/install.texi (Configuration): Document --with-java-home.
3494 2005-04-05  Richard Henderson  <rth@redhat.com>
3496         PR target/20342
3497         PR target/20447
3498         * config/i386/i386.c (print_operand): Handle vector zeros.
3499         (ix86_split_to_parts): Handle CONST_VECTOR.
3500         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
3501         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
3502         what modes to tie for MMX and SSE registers.
3503         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
3504         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
3505         to vector modes as well.
3506         * config/i386/predicates.md (const0_operand): Handle VOIDmode
3507         properly as an input mode.
3509 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3511         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
3513 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3515         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
3517 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3519         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
3520         and local functions, set sse_nregs to 8 and float_in_sse.
3521         (function_arg_advance, function_arg): If float_in_sse, pass
3522         SFmode and DFmode arguments in SSE registers.
3523         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
3525         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
3526         of -funit-at-a-time.
3528 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3530         * config/i386/i386-protos.h (ix86_function_value): Accept two
3531         arguments, like the target macro.
3532         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
3533         * config/i386/i386.c (ix86_function_value): Accept the second
3534         argument of the target macro.
3535         (ix86_function_ok_for_sibcall): Pass a function pointer to
3536         ix86_function_value.
3537         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
3538         call to ix86_value_regno).
3539         (ix86_value_regno): Add support for returning floating point values
3540         in SSE registers.
3542 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3544         PR tree-optimization/20076
3545         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
3546         that call __builtin_return or __builtin_apply_args.
3548 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3550         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
3551         Use immediate use iterator.
3552         (stmt_is_bumper_for_loop): Use immediate use iterator.
3553         * predict.c (strip_builtin_expect): Use update_stmt.
3554         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
3555         on all elements of a STATEMENT_LIST.
3556         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
3557         (bsi_remove): Remove imm_use links and mark the stmt as modified.
3558         (bsi_replace): Mark stmt as modified and the update it.
3559         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
3560         (expand_complex_libcal): Call update_stmt.
3561         (expand_complex_comparison): Call mark_stmt_modified.
3562         (expand_complex_operations_1): Call update_stmt_if_modified.
3563         (expand_vector_operations_1): Call mark_stmt_modified.
3564         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
3565         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
3566         add_immediate_use, redirect_immediate_use,
3567         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
3568         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
3569         (mark_new_vars_to_rename): Call update_stmt.
3570         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
3571         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
3572         Ignore PHI nodes.
3573         (unmodify_stmt): Delete.
3574         (update_stmt): New.  Force an update of a stmt.
3575         (update_stmt_if_modified): update a stmt if it is out of date.
3576         (get_stmt_operands): Verify stmt is NOT modified.
3577         (stmt_modified_p): Update comment.
3578         (delink_imm_use): Remove a use node from its immuse list.
3579         (link_imm_use_to_list): Link a use node to a specific list.
3580         (link_imm_use): Link a node to the correct list.
3581         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
3582         it in the correct list, if appropriate.
3583         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
3584         (relink_imm_use): Link a use node in place of another node in a list.
3585         (relink_imm_use_stmt): LInk a node in place of another node, and set
3586         the stmt pointer.
3587         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
3588         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
3589         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
3590         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
3591         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
3592         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
3593         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
3594         (has_zero_uses): New.  Return true if there are no uses of a var.
3595         (has_single_use): New.  Return true if there is only a single use of a
3596         variable.
3597         (single_imm_use): New.  Return the simgle immediate use.
3598         (num_imm_uses): New.  Return the number of immediate uses.
3599         (get_v_must_def_ops): Use is now a pointer.
3600         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
3601         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
3602         the use node.
3603         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
3604         (delink_stmt_imm_use): Delink all immuses from a stmt.
3605         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
3606         * tree-flow.h (struct dataflow_d): Delete.
3607         (immediate_use_iterator_d): New.  Immediate use iterator struct.
3608         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
3609         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
3610         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
3611         iteration.
3612         (struct stmt_ann_d): Remove dataflow_t from struct.
3613         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
3614         (if_convertible_phi_p): Use FAST immuse iterator.
3615         (if_convertible_loop_p): Don't call compute_immediate_uses.
3616         (replace_phi_with_cond_modify_expr): Call update_stmt.
3617         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
3618         update_stmt_if_modified.
3619         (rewrite_all_into_ssa): Initialize ssa operands.
3620         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
3621         compute_immediate_uses.
3622         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
3623         ssa_property is available.
3624         (execute_one_pass):  Change parameters passed to execute_todo.
3625         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
3626         (remove_ssa_form): Call fini_ssa_operands.
3627         (insert_backedge_copies): Delete call to modify_stmt.
3628         * tree-phinodes.c (make_phi_node): Initialize use nodes.
3629         (release_phi_node): Delink any use nodes before releasing.
3630         (resize_phi_node): Relink any use nodes.
3631         (remove_phi_arg_num): Delink the use node.
3632         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
3633         (remove_all_phi_nodes_for): Release phi node first.
3634         * tree-pretty-print.c (dump_generic_node): Print stmt address.
3635         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
3636         (scalarize_use, scalarize_copy): Call update_stmt.
3637         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
3638         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
3639         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
3640         (ccp_initialize): Remove call to compute_immediate_uses.
3641         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
3642         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
3643         stmts.
3644         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
3645         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
3646         (eliminate_redundant_computations): Call mark_stmt_modified.
3647         (cprop_operand): Call mark_stmt_modified.
3648         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
3649         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
3650         (dse_optimize_stmt): Use new immuse interface.
3651         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
3652         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
3653         (substitute_single_use_vars): Use new immuse interface.
3654         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
3655         and compute_immediate_uses.
3656         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
3657         interface.
3658         (rewrite_mem_refs): Call update_stmt.
3659         (determine_lsm): Remove call to compute_imm_uses and free_df.
3660         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
3661         (try_unroll_loop_completely): Call update_stmt.
3662         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
3663         (rewrite_use_compare): Call update_stmt.
3664         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
3665         (rewrite_use) : Call update_stmt.
3666         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
3667         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
3668         update_stmt.
3669         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
3670         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
3671         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
3672         use nodes.
3673         (initialize_vuse_operand): New.  Initialize a vuse operand.
3674         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
3675         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
3676         (finalize_ssa_defs): Use stmt parameter.
3677         (correct_use_link): Ensure a use node is in the correct list, and has
3678         the correct stmt pointer.
3679         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
3680         finalize_ssa_v_must_defs): Also initialize use nodes.
3681         (finalize_ssa_stmt_operands): Pass extra stmt operands.
3682         (build_ssa_operands): Seperate parsing from final operand construction.
3683         (parse_ssa_operands): New.  Parse entry point for operand building.
3684         (swap_tree_operands): New.  Swap 2 tree operands.
3685         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
3686         operands.
3687         (get_expr_operands): Call swap_tree_operands when needed.
3688         (copy_virtual_operands): Use initialize routines for virtual use ops.
3689         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
3690         (verify_abort): New.  Issue imm_use error.
3691         (verify_imm_links): New Verify imm_use links for a var.
3692         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
3693         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
3694         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
3695         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
3696         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
3697         (NULL_USE_OPERAND_P) Define.
3698         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
3699         use node.
3700         (struct vuse_operand_type): New struct.
3701         (SET_USE): Call set_ssa_use_from_ptr.
3702         (USE_STMT): Define.
3703         (PHI_ARG_INDEX_FROM_USE): Define.
3704         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
3705         argument via SET_USE, not PHI_ARG_DEF_TREE.
3706         * tree-ssa-pre.c (eliminate): Call update_stmt.
3707         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
3708         call free_df.
3709         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
3710         (nearest_common_dominator_of_uses): Use imm_use iterator.
3711         (statement_sink_location): Use imm_use iterator and interface.
3712         (execute_sink_code): Don't call compute_immediate_uses or free-df.
3713         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
3714         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
3715         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
3716         (verify_ssa): Ensure no stmt is marked modify after optimization pass
3717         if new parameter is true.
3718         (init_tree_ssa): Don't initialize operand cache here.
3719         (delete_tree_ssa): Don't destroy operand cache here.
3720         (propagate_into_addr): Pass in a use pointer, return true if anything
3721         was changed.
3722         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
3723         (check_phi_redundancy): Use imm_use iterator.
3724         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
3725         free_df.
3726         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
3727         (release_ssa_name): Delink node and all elements in its imm_use list.
3728         * tree-tailcall.c (adjust_return_value): Call update_stmt.
3729         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
3730         * tree-vectorizer.c (need_imm_uses_for): Delete.
3731         (vectorize_loops): Dont call compute_immediate_uses or free_df.
3732         * tree.h (struct ssa_imm_use_d): Define.
3733         (SSA_NAME_IMM_USE_NODE): Define.
3734         (struct tree_ssa_name): Add imm_use node.
3735         (PHI_DF): Delete.
3736         (PHI_ARG_IMM_USE_NODE): Define.
3737         (struct phi_arg_d): Add imm_use node.
3738         (struct tree_phi_node): Remove struct dataflow_d element.
3739         (TDF_STMTADDR): Define.
3741 2005-04-05  Dale Johannesen  <dalej@apple.com>
3743         * doc/invoke.texi (Optimization Options):  Remove
3744         duplicate -fcse-follow-jumps.  Add -fweb.
3745         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
3746         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
3748 2005-04-05  Per Bothner  <per@bothner.com>
3750         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
3751         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
3752         (warn_uninit): Get EXPR_LOCUS from context now instead.
3753         This fixes a USE_MAPPED_LOCATION testsuite failure.
3755         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
3757 2005-04-05  Per Bothner  <per@bothner.com>
3759         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
3760         of the artification 'return 0' in main() to BUILTINS_LOCATION.
3761         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
3762         before warning.
3764 2004-04-05  Devang Patel  <dpatel@apple.com>
3766         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
3767         (lhsr<mode>3): ... new name.
3768         (altivec_vsra<VI_char>): Rename to ..
3769         (ashr<mode>3): ... new name.
3770         * config/rs6000/rs6000.c (builtin_description): Rename shift
3771         operations.
3773 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
3775         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
3776         gen_lowpart_for_combine.
3777         * cse.c (gen_lowpart_if_possible): Move...
3778         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
3779         gen_lowpart_SUBREG.
3780         (gen_lowpart_no_emit_general): Use it.
3782 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
3784         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
3785         overriding.
3787 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3789         * system.h: Fix typo.
3791 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3793         * config/bfin/bfin-modes.def: New file.
3794         * config/bfin/bfin-protos.h: New file.
3795         * config/bfin/bfin.c: New file.
3796         * config/bfin/bfin.h: New file.
3797         * config/bfin/bfin.md: New file.
3798         * config/bfin/bfin.opt: New file.
3799         * config/bfin/crti.s: New file.
3800         * config/bfin/crtn.s: New file.
3801         * config/bfin/elf.h: New file.
3802         * config/bfin/lib1funcs.asm: New file.
3803         * config/bfin/predicates.md: New file.
3804         * config/bfin/t-bfin: New file.
3805         * config/bfin/t-bfin-elf: New file.
3806         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
3807         Document new attributes.
3808         (interrupt, interrupt_handler, saveall): Update documentation for
3809         these attributes.
3810         * doc/install.texi (Specific): Add entry for the Blackfin.
3811         * doc/invoke.texi (Blackfin Options): New section.
3812         * doc/md.texi (Blackfin family): New section to document constraints.
3813         * config.gcc: Add bfin*-* and bfin*-elf configurations.
3815 2005-04-05  Olivier Hainque  <hainque@adacore.com>
3817         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
3818         match what the system unwinder expects.
3819         * config/mips/mips.c (mips_frame_set): If we're saving the return
3820         address register and the dwarf return address column number differs
3821         from the hard register number, adjust the note reg to refer to the
3822         former.
3824 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
3826         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
3827         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
3828         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
3829         (processor_type): New enum.
3830         (mn10300_processor): New variable.
3831         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
3832         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
3833         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
3834         (PROCESSOR_DEFAULT): New macro.
3835         * config/mn10300/mn10300.c (mn10300_processor): New variable.
3836         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3837         (mn10300_handle_option, mn10300_override_options): New functions.
3838         * config/mn10300/mn10300.opt: New file.
3840 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
3841             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
3843         PR tree-optimization/19903
3844         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
3845         that don't fit in their type after conversion.
3847 2005-04-05  Uros Bizjak <uros@kss-loka.si>
3849         PR target/20421
3850         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
3851         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
3852         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
3853         flag here. Implement using define_insn_and_split.
3854         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
3855         (frndintxf2_mask_pm_i387): New insn patterns.
3856         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
3857         Do not set ix86_optimize_mode_switching flag.
3858         (ceilsf2, ceildf2, ceilxf2): Same.
3859         (btruncsf2, btruncdf2, btruncxf2): Same.
3860         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
3862 2005-04-05  Ian Lance Taylor  <ian@airs.com>
3864         PR debug/9963
3865         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
3866         i386_pe_record_external_function.
3867         (i386_pe_record_external_function): Update declaration.
3868         * config/i386/winnt.c (struct extern_list): Add decl field.
3869         (i386_pe_record_external_function): Add decl parameter.
3870         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
3871         identifier.
3872         * config/i386/i386-protos.h (i386_pe_record_external_function):
3873         Update declaration.
3875 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
3877         * config/m68k/m68k-protos.h: Add a prototype for
3878         valid_dbcc_comparison_p_2.
3879         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
3880         extend_operator, const_uint32_operand, const_sint32_operand,
3881         general_src_operand, nonimmediate_src_operand,
3882         memory_src_operand, post_inc_operand, pre_dec_operand,
3883         pcrel_address): Move to predicates to predicates.md.
3884         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
3885         * config/m68k/m68k.md: Include predicates.md.
3886         * config/m68k/predicates.md: New.
3888 2005-04-04  Roger Sayle  <roger@eyesopen.com>
3890         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
3892         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
3894 2005-04-04  Ian Lance Taylor  <ian@airs.com>
3896         * c-typeck.c (struct c_switch): Rename switch_stmt field to
3897         switch_expr.
3898         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
3899         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
3900         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
3901         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
3902         * c-common.c (c_do_switch_warnings_1): New static function broken
3903         out of c_do_switch_warnings.
3904         (c_do_switch_warnings): Call c_do_switch_warnings_1.
3905         (c_do_switch_expr_warnings): New function.
3906         * c-common.h (c_do_switch_expr_warnings): Declare.
3908 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
3909             Daniel Jacobowitz  <dan@codesourcery.com>
3911         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
3912         trapping divide.
3913         * rtlanal.c (may_trap_p): Same.
3915 2005-04-04  Dale Johannesen  <dalej@apple.com>
3917         * ChangeLog:  remove reference to ChangeLog.12.
3919 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
3921         CRIS epilogue as RTL.
3922         * config/cris/cris.md: Change all 0 in unspec 0 to
3923         CRIS_UNSPEC_PLT.
3924         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
3925         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
3926         patterns.
3927         ("return"): Change to define_expand.  Call cris_expand_return for
3928         actual expansion.
3929         ("*return_expanded"): New pattern.
3930         ("epilogue"): New define_expand.
3931         * config/cris/cris.h (PREDICATE_CODES): Add
3932         cris_load_multiple_op.
3933         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
3934         type.
3935         (enum cris_retinsn_type): New.
3936         (struct machine_function): New member return_type.
3937         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
3938         (cris_target_asm_function_epilogue): Remove, moving RTLified
3939         contents to...
3940         (cris_expand_epilogue): New function.
3941         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
3942         (cris_gen_movem_load, cris_load_multiple_op)
3943         (cris_return_address_on_stack_for_return, cris_expand_return): New
3944         functions.
3945         (cris_target_asm_function_prologue)
3946         (cris_initial_frame_pointer_offset): Call
3947         cris_reg_saved_in_regsave_area instead of complicated expression.
3948         Call cris_return_address_on_stack instead of an expression.
3949         (cris_print_operand) <case 'o', case 'O'>: New cases.
3950         (cris_return_address_on_stack): Change return-type to bool.
3951         (cris_simple_epilogue): Ditto.  Return false if registers are
3952         saved.
3953         * config/cris/cris-protos.h (cris_simple_epilogue)
3954         (cris_return_address_on_stack): Adjust prototype return type.
3955         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
3956         (cris_return_address_on_stack_for_return): New prototypes.
3958 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
3960         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
3961         gpr_or_int12_operand.
3963         * config/frv/frv-protos.h: Add a prototype to
3964         frv_legitimate_memory_operand and frv_const_unspec_p.
3965         (frv_unspec): Move from frv.c.
3966         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
3967         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
3968         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
3969         gpr_or_fpr_operand, gpr_or_int12_operand,
3970         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
3971         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
3972         int6_operand, int5_operand, uint5_operand, uint4_operand,
3973         uint1_operand, int_2word_operand, uint16_operand,
3974         upper_int16_operand, integer_register_operand,
3975         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
3976         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
3977         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
3978         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
3979         move_destination_operand, movcc_fp_destination_operand,
3980         frv_function_symbol_referenced_p, move_source_operand,
3981         condexec_dest_operand, condexec_source_operand,
3982         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
3983         const_unspec_operand, gpr_or_memory_operand,
3984         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
3985         icc_operand, fcc_operand, cc_operand, icr_operand,
3986         fcr_operand, cr_operand, call_operand, sibcall_operand,
3987         symbolic_operand, relational_operator,
3988         integer_relational_operator, float_relational_operator,
3989         ccr_eqne_operator, minmax_operator,
3990         condexec_si_binary_operator, condexec_si_media_operator,
3991         condexec_si_divide_operator, condexec_si_unary_operator,
3992         condexec_sf_conv_operator, condexec_sf_add_operator,
3993         condexec_memory_operand, intop_compare_operator, acc_operand,
3994         even_acc_operand, quad_acc_operand, accg_operand: Move to
3995         predicates.md.
3996         * config/frv/frv.h (PREDICATE_CODES): Remove.
3997         * config/frv/frv.md: Include predicates.md.
3998         * config/frv/predicates.md: New.
4000 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4002         PR target/19537
4003         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
4004         * tree-ssa-loop-ivopts.c: Include langhooks.h.
4005         (add_standard_iv_candidates_for_size): New function, extracting code
4006         from add_standard_iv_candidates and parameterizing it by type size.
4007         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
4009 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4011         * system.h (GCOV_SIZE_TYPE): Unposion.
4012         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
4013         (GCOV_TYPE_SIZE): ...this new macro.
4014         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
4015         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
4016         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
4017         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
4018         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
4019         instead of unsigned_intSI_type_node.
4020         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
4021         (rtl_gen_one_value_profiler_no_edge_manipulation)
4022         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
4023         * value-prof.c: Include coverage.h.
4025 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
4026             Diego Novillo <dnovillo@redhat.com>
4028         Fix PR tree-optimization/20703
4029         Fix PR tree-optimization/20725
4031         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
4032         (create_expression_by_pieces): Ditto.
4033         (valid_in_set): Ditto. Also handle tcc_declaration.
4034         (find_or_generate_expression): Handle comparison class.
4035         (insert_into_preds_of_block): Ditto.
4036         (insert_aux): Ditto.
4037         (create_value_expr_from): Handle comparison class, recursively
4038         handle reference nodes.
4039         (compute_avail): Handle comparison classes, rewrite a little cleaner.
4040         (execute_pre): Fix spacing.
4041         (do_fre): Renamed to execute_fre.
4043 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4045         * doc/invoke.texi (SPARC options): Document that
4046         -mlittle-endian is not supported on Linux either.
4048 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4050         PR target/4198
4051         PR target/12027
4052         * config.gcc (Obsolete configurations): Remove
4053         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
4054         (sparclite-*-coff*): Delete.
4055         (sparclite-*-elf*): Likewise.
4056         (sparc86x-*-elf*): Likewise.
4057         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
4058         * config/sparc/lite.h: Delete.
4059         * config/sparc/litecoff.h: Likewise.
4060         * config/sparc/liteelf.h: Likewise.
4061         * config/sparc/sp86x-elf.h: Likewise.
4062         * config/sparc/t-sparclite: Likewise.
4063         * config/sparc/t-sp86x: Likewise.
4065 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
4067         * config/s390/s390-protos.h: (s390_comparison,
4068         s390_alc_comparison, s390_slb_comparison, const0_operand,
4069         consttable_operand, larl_operand, s_operand,
4070         shift_count_operand, bras_sym_operand, load_multiple_operation,
4071         store_multiple_operation, s390_plus_operand): Remove prototypes.
4072         (s390_legitimate_address_without_index_p): New prototype.
4073         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
4074         to s390.h.
4075         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
4076         const0_operand, consttable_operand, larl_operand, s_operand,
4077         shift_count_operand, bras_sym_operand, load_multiple_operation,
4078         store_multiple_operation, s390_plus_operand): Move to
4079         predicates.md.
4080         (check_mode): Remove.
4081         (s390_branch_condition_mask): Remove 'static'. Move prototype to
4082         s390-protos.h.
4083         (s390_legitimate_address_without_index_p): New.
4084         * config/s390/s390.h (PREDICATE_CODES): Remove.
4085         * config/s390/s390.md: Include predicates.md.
4086         * config/s390/predicates.md: New.
4088 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4090         PR target/20446
4091         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
4092         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
4093         (NEED_INDICATE_EXEC_STACK): Define to 1.
4094         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
4095         (NEED_INDICATE_EXEC_STACK): Define to 1.
4096         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
4097         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
4098         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
4099         (pic_helper_emitted_p): New global.
4100         (emit_pic_helper): New function extracted from...
4101         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
4102         Do not call emit_pic_helper if delay_pic_helper is true.
4103         (sparc_expand_prologue): Pass 'false' to load_pic_register.
4104         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
4105         (sparc_file_end): New function.
4107 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4109         * config/mcore/mcore-protos.h: Remove the prototypes for
4110         mcore_arith_reg_operand, mcore_general_movsrc_operand,
4111         mcore_general_movdst_operand, mcore_reload_operand,
4112         mcore_arith_J_operand, mcore_arith_K_operand,
4113         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
4114         mcore_arith_K_S_operand, mcore_arith_imm_operand,
4115         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4116         mcore_literal_K_operand, mcore_addsub_operand,
4117         mcore_compare_operand, mcore_load_multiple_operation,
4118         mcore_store_multiple_operation, mcore_call_address_operand.
4119         Add a prototype for const_ok_for_mcore.
4120         * config/mcore/mcore.c (mcore_call_address_operand,
4121         mcore_general_movsrc_operand, mcore_general_movdst_operand,
4122         mcore_arith_reg_operand, mcore_reload_operand,
4123         mcore_arith_J_operand, mcore_arith_K_operand,
4124         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
4125         mcore_arith_M_operand, mcore_arith_imm_operand,
4126         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4127         mcore_literal_K_operand, mcore_addsub_operand,
4128         mcore_compare_operand, mcore_load_multiple_operation,
4129         mcore_store_multiple_operation): Move to predicates.md.
4130         (const_ok_for_mcore): Export.
4131         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
4132         * config/mcore/mcore.md: Include predicates.md.
4133         * config/mcore/predicates.md: New.
4135         * config/mcore/predicates.md: Fix a comment typo.
4137 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4138             Adrian Straetling  <straetling@de.ibm.com>
4140         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
4141         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
4142         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
4143         attribute.
4144         ("imul"): Removed from "type" attribute.
4145         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
4146         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
4147         Changed type to imulsi.
4148         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
4150 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4152         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
4153         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
4154         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
4155         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
4156         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
4157         (TARGET_SWITCHES, mcore_stack_increment_string)
4158         (TARGET_OPTIONS): Delete.
4159         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
4160         than *_BIT constants.
4161         (TARGET_8ALIGN): #undef old definition before redefining to 1.
4162         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
4163         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
4164         (mcore_override_options): Delete mcore_stack_increment code.
4165         Change use of M340_BIT to MASK_M340.
4166         * config/mcore/mcore.opt: New file.
4168 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4170         * config/arm/arm.c (replace_symbols_in_block): Remove static
4171         function.
4173 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4175         * config/fr30/fr30-protos.h: Remove the prototypes for
4176         stack_add_operand, add_immediate_operand,
4177         high_register_operand, low_register_operand, call_operand,
4178         di_operand, and nonimmediate_di_operand.
4179         * config/fr30/fr30.c (stack_add_operand,
4180         add_immediate_operand, high_register_operand,
4181         low_register_operand, call_operand, di_operand,
4182         nonimmediate_di_operand): Move to predicates.md.
4183         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
4184         * config/fr30/fr30.md: Include predicates.md.
4185         * config/fr30/predicates.md: New.
4187         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
4188         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
4189         mcore_call_address_operand.
4191         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
4192         general_movsrc_operand.
4194 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
4196         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
4197         after freeing.
4199 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
4201         PR target/14812
4202         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
4203         a negated value.
4205 2005-04-04  Richard Henderson  <rth@redhat.com>
4206             Jakub Jelinek  <jakub@redhat.com>
4208         PR rtl-optimization/16104
4209         * fold-const.c (fold_unary): Fix folding of vector conversions.
4211 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4213         * config.gcc (xstormy16-*-elf): Set extra_options.
4214         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
4215         * config/stormy16/stormy16.opt: New file.
4217 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4219         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
4220         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
4221         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
4222         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
4223         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
4224         (TARGET_UNIX_ASM): Delete.
4225         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
4226         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
4227         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
4228         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4229         * config/pdp11/pdp11.opt: New file.
4231 2005-04-03  Roger Sayle  <roger@eyesopen.com>
4232             Alexandre Oliva  <aoliva@redhat.com>
4234         PR c++/19199
4235         * fold-const.c (non_lvalue): Split tests into...
4236         (maybe_lvalue_p): New function.
4237         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
4238         C++ front-end prior to lowering into gimple form.
4240 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4242         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
4243         BUILT_IN_STRNCASECMP): New.
4244         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
4245         and strndup.
4247 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
4249         PR target/14812
4250         * arm.md (addsi3_compare0_for_combiner): Delete.
4251         (addsi3_compare0_scratch_for_combiner): Delete.
4252         (cmpsi_neg_shiftsi): Delete.
4253         (compare_negsi_si): New pattern.
4254         (cmpsi_negshiftsi_si): New pattern.
4255         (negated_cbranchsi4): Restrict to equality_operator.
4257         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
4258         template.
4260 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4262         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
4263         Fix comment typos.
4265         * doc/install.texi: Fix a typo.
4267 2005-04-03  Steven Bosscher  <stevenb@suse.de>
4269         PR middle-end/20648
4270         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
4271         a computed goto if the edge to the computed goto block has
4272         incoming abnormal edges.  Clarify how the function works.
4274 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
4276         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
4277         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
4278         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
4279         hash_scan_set, reg_set_between_after_reload_p,
4280         reg_used_between_after_reload_p, get_avail_load_store_reg,
4281         eliminate_partially_redundant_load): Likewise.
4282         * postreload.c (reload_cse_simplify_set,
4283         reload_combine_note_use): Likewise.
4284         * predict.c (predict_insn, expected_value_to_br_prob,
4285         propagate_freq, expensive_function_p): Likewise.
4286         * print-rtl.c (print_rtx): Likewise.
4287         * profile.c (instrument_edges, instrument_values,
4288         compute_branch_probabilities, branch_prob, union_groups,
4289         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
4290         * protoize.c (in_system_include_dir, file_could_be_converted,
4291         file_normally_convertible, gen_aux_info_file, seek_to_line,
4292         do_cleaning): Likewise.
4293         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
4294         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
4295         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4297 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4299         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
4300         * modulo-sched.c (undo_replace_buff_elem): New structure.
4301         (kernel_number_of_cycles, ps_unschedule_node,
4302         undo_generate_reg_moves,free_undo_replace_buff,
4303         undo_permute_partial_schedule,  loop_single_full_bb_p,
4304         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
4305         build_loops_structure, get_sched_window): New.
4306         (generate_reg_moves): Return undo_replace_buff_elem and other
4307         fixes.
4308         (generate_prolog_epilog): Remove old loop versioning.
4309         (sms_schedule): Use loop information and loop_version.
4310         (sms_schedule_by_order): Split part of it to get_sched_window.
4311         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
4312         cfg_layout_finalize and free_dominance_info before/after SMS.
4314 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4316         * cfghooks.c (lv_flush_pending_stmts,
4317         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
4318         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
4319         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
4320         lv_add_condition_to_bb,
4321         lv_adjust_loop_header_phi, extract_cond_bb_edges,
4322         flush_pending_stmts): New in cfg_hooks structure.
4323         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
4324         extract_cond_bb_edges, lv_adjust_loop_header_phi,
4325         lv_add_condition_to_bb): New declarations.
4326         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
4327         bool.
4328         (loop_version): Declare.
4329         * cfgloopmanip.c (cfghooks.h): Include.
4330         (duplicate_loop_to_header_edge): Change return type to bool.
4331         (loop_version, lv_adjust_loop_entry_edge): Move here.
4332         * cfgrtl.c (cfgloop.h): Include.
4333         (rtl_verify_flow_info_1): Fix.
4334         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
4335         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
4336         initialization.
4337         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
4338         tree_lv_add_condition_to_bb): New.
4339         (tree_cfg_hooks): Add new hooks to initialization.
4340         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
4341         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
4343 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4345         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
4346         xstormy16_below100_or_register,
4347         xstormy16_splittable_below100_or_register, and
4348         nonimmediate_nonstack_operand.
4350         * config/stormy16/stormy16-protos.h: Remove the prototypes for
4351         xstormy16_ineqsi_operator, equality_operator,
4352         inequality_operator, shift_operator,
4353         xstormy16_below100_operand, xstormy16_below100_or_register,
4354         xstormy16_splittable_below100_or_register,
4355         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
4356         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
4357         equality_operator, inequality_operator,
4358         xstormy16_below100_operand, xstormy16_below100_or_register,
4359         xstormy16_splittable_below100_or_register,
4360         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
4361         nonimmediate_nonstack_operand, shift_operator): Move to
4362         predicates.md.
4363         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
4364         * config/stormy16/stormy16.md: Include predicates.md.
4365         * config/stormy16/predicates.md: New.
4367 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4369         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
4370         small_int, large_int, reg_or_0_operand, simple_memory_operand,
4371         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
4372         move_operand, power_of_2_operand): Move to predicates.md.
4373         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
4374         PREDICATE_CODE): Remove.
4375         * config/iq2000/iq2000.md: Include predicates.md.
4376         * config/iq2000/predicates.md: New.
4378 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
4380         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
4381         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
4382         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
4383         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
4384         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
4385         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
4386         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
4387         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4388         (TARGET_M68HC11): Delete.
4389         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
4390         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
4391         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
4392         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4393         (nb_soft_regs): Delete.
4394         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
4395         (m68hc11_override_options): Remove the code that caters for MASK_M6811
4396         and MASK_M6812 being set simultaneously.  Change the code that sets
4397         the default m68hc11_soft_reg_count to use integers instead of strings.
4398         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
4399         m68hc11_soft_reg_count (which now has an int type) as the number
4400         of soft registers.
4401         * config/m68hc11/m68hc11.opt: New file.
4403 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4405         * config/fr30/fr30.h (PREDICATE_CODES): Remove
4406         fp_displacement_operand, sp_displacement_operand.
4408         * config/m68hc11/m68hc11-protos.h: Add a prototype for
4409         m68hcc_auto_inc_p.
4410         Remove the prototypes for tst_operand, cmp_operand,
4411         stack_register_operand, d_register_operand,
4412         hard_addr_reg_operand, splitable_operand,
4413         m68hc11_logical_operator, m68hc11_arith_operator,
4414         m68hc11_non_shift_operator, m68hc11_shift_operator,
4415         m68hc11_unary_operator, m68hc11_eq_compare_operator,
4416         non_push_operand, hard_reg_operand, and
4417         reg_or_some_mem_operand.
4418         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
4419         extern.
4420         (tst_operand, cmp_operand, non_push_operand,
4421         splitable_operand, reg_or_some_mem_operand,
4422         stack_register_operand, d_register_operand,
4423         hard_addr_reg_operand, hard_reg_operand,
4424         m68hc11_eq_compare_operator, m68hc11_logical_operator,
4425         m68hc11_arith_operator, m68hc11_non_shift_operator,
4426         m68hc11_shift_operator, m68hc11_unary_operator): Move to
4427         predicates.md.
4428         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
4429         * config/m68hc11/m68hc11.md: Include predicates.md.
4430         * config/m68hc11/predicates.md: New.
4432 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4434         PR debug/19345
4435         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
4436         change checked in along with 2005-03-03's patch for debug/20253.
4437         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
4438         (remap_decl): Insert type decl in map earlier.
4440 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4442         PR tree-optimization/20640
4443         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
4444         post-dominator if it has phi nodes.
4445         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
4446         before dead statements.
4448 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4450         PR middle-end/20491
4451         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
4453 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4455         PR rtl-optimization/20290
4456         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
4457         in every iteration if the entry point is the exit test.
4459 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
4461         * config/cris/cris.md (attribute "length"): Define.
4463 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
4465         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
4466         (word_offset_memref_operand): New.
4467         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
4468         (indexed_or_indirect_operand): Delete.
4469         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
4470         (indexed_or_indirect_operand): Delete.
4472         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
4474         PR 20650
4475         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
4476         a register.
4478         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
4479         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
4481 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4483         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
4485 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4487         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
4488         (rus, prus): Remove static variables.
4489         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
4490         (process_command): Permit report_times and use_pipes together.
4492 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4494         * c-decl.c (validate_proto_after_old_defn): Look at
4495         TYPE_MAIN_VARIANT of argument types.
4497 2005-04-01  Paul Brook  <paul@codesourcery.com>
4499         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
4500         (arm_output_function_epilogue): Allow call_via_SP.
4501         (thumb_call_via_reg, arm_file_end): Ditto.
4502         * config/arm/arm.h (struct machine_function): Include space for SP.
4503         (thumb_call_via_label): Update declaration.
4505 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4507         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
4508         doing a peephole optimization, once again put any notes in the
4509         proper position.
4511 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4513         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
4515 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4517         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
4518         (block_alloc, find_free_reg): Likewise.
4519         * loop-doloop.c (doloop_modify): Likewise.
4520         * loop-invariant.c (record_use): Likewise.
4521         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
4522         get_iv_value, canon_condition, eliminate_implied_condition,
4523         eliminate_implied_condition, simplify_using_initial_values,
4524         shorten_into_mode, canonicalize_iv_subregs,
4525         iv_number_of_iterations): Likewise.
4526         * loop-unroll.c (expand_var_during_unrolling): Likewise.
4527         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
4528         unswitch_loop): Likewise.
4529         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
4530         move_movables, replace_call_address, find_and_verify_loops,
4531         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
4532         record_giv, final_giv_value, general_induction_var,
4533         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
4534         loop_giv_dump): Likewise.
4536         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
4537         GCOV_CHECK_WRITING): Remove.
4538         (gcov_position, gcov_rewrite): Use gcc_assert.
4539         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
4540         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
4541         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
4542         gcc_assert.
4544 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4546         * tree-inline.c: Fix a typo.
4548 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4550         * configure.ac (enable-checking): Explicitly set all variables for
4551         collective switch values.  Alphabetize variables. Rename
4552         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
4553         synonym for 'no'.
4554         * doc/install.texi (enable-checking): Update documentation.
4555         * configure: Rebuilt.
4557 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4559         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
4560         possible.
4562 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4564         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
4565         Also reject cases where this pattern will cause load delay stalls
4566         unless optimizing for size and it will produce a shorter sequence.
4567         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
4568         variants to avoid pre-adjusting the base when possible.
4570 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4572         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
4573         the frame and argument pointers.
4574         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
4575         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
4576         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
4577         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
4578         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
4579         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
4581 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
4583         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
4584         with entry for selectany attribute.
4585         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
4586         Declare.
4587         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
4588         (i386_pe_asm_named_section): Handle sections generated by
4589         selectany attribute.
4590         * doc/extend.texi (selectany): Document attribute.
4592 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
4593             Jan Hubicka  <jh@suse.cz>
4595         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
4596         to fix addresses involving EBP and ESP.
4597         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
4598         for SUBREGed registers.
4599         (legitimate_address_p): Accept SUBREGed registers.
4601 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
4603         PR c++/19406
4604         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
4605         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
4606         for FIELD_DECLs.
4608 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4610         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
4612 2005-04-01  James E Wilson  <wilson@specifixinc.com>
4614         PR c++/20505
4615         * dwarf2out.c (rtl_for_decl_init): New function.
4616         (rtl_for_decl_location): Extracted from here.
4617         (tree_add_const_value_attribute): Call rtl_for_decl_init and
4618         add_const_value_attribute.  Delete initializer_constant_valid_p call.
4620 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4622         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
4623         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
4624         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
4625         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
4626         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
4627         config/i386/i386.md, config/rs6000/predicates.md,
4628         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
4629         config/s390/s390.c, config/stormy16/stormy16.c,
4630         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
4631         typos.
4633 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4635         PR c/17855
4636         * gimplify.c (gimplify_expr): Create a temporary for lvalue
4637         COND_EXPR and CALL_EXPR.
4639 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4641         PR target/20632
4642         * genautomata.c (first_cycle_unit_presence): Check all alternative
4643         states for unit presence.
4645         * doc/md.texi: Remove remark about impossibility to query unit
4646         presence in non nondeterministic automaton state.
4648         * config/ia64/ia64.c (get_template): Change order of unit querying.
4650 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4652         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
4653         obsolete comment.
4655 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
4657         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
4658         flag for edges outside any loops.
4660 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
4662         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
4664 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4666         * tree-ssa-alias.c: Follow spelling conventions.
4667         * doc/tree-ssa.texi: Fix a typo.
4669 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
4671         * postreload-gcse.c: Include target.h.
4672         (gcse_after_reload_main): Return early if we cannot modify jumps.
4673         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
4675 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
4677         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
4678         expensive operations.
4680 2005-03-31  Ian Lance Taylor  <ian@airs.com>
4682         * collect2.c (lderrout): New variable.
4683         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
4684         if it is set, to stderr.
4685         (handler): Unlink lderrout if it is set.
4686         (dump_file): Add "to" parameter.  Change all callers.
4687         (main): Initialize lderrout.
4688         (collect_execute): Add errname parameter.  Change all callers.
4689         Rename redir parameter to outname.  Never pass
4690         PEX_STDERR_TO_STDOUT to pex_run.
4691         * collect2.h (collect_execute, dump_file): Update declarations.
4692         * tlink.c (tlink_execute): Add errname parameter.  Change all
4693         callers.
4694         (do_tlink): Check lderrout as well as ldout.
4696 2005-03-31  Caroline Tice  <ctice@apple.com>
4698         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
4699         (bb-reorder.o): Add errors.h to list of requirements.
4700         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
4701         profiledbootstrap flags.
4702         * bb-reorder.c (errors.h): Add new include.
4703         (struct bbro_basic_block_data_def): Add new field, in_trace.
4704         (add_unlikely_executed_notes):  Remove function.
4705         (mark_bb_for_unlikely_executed_section): Remove function.
4706         (insert_section_boundary_note): New function.
4707         (verify_hot_cold_block_grouping): New function.
4708         (push_to_next_round_p): Remove variables and tests that push all
4709         cold blocks to last round.
4710         (find_traces): Remove code that added extra round of trace finding
4711         when doing partitioning.
4712         (find_traces_1_round) :  Remove variable last_round;  add code to
4713         update new struct field, in_trace; correct trace_length where it was
4714         incorrect before (after call to copy_bb); change code that pushed all
4715         cold blocks to last round. Instead verify that all blocks going into
4716         a trace belong in the same partition.
4717         (connect_traces): Modify to connect the traces in two passes, if the
4718         function contains both hot and cold blocks.  The first pass connects
4719         all the traces for blocks in the partition that the first block in
4720         the function belongs to; the second pass connnects all the traces
4721         containing blocks that belong in the other partition.
4722         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
4723         code that automatically put the first block in a function into the
4724         hot partition if the function had any hot blocks.
4725         (fix_crossing_unconditional_branches): Check number of succ edges
4726         before attempting to get one.
4727         (fix_edges_for_rarely_executed_code):  Update comment describing
4728         function.
4729         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
4730         remove call to add_unlikely_executed_notes; add call to
4731         verify_hot_cold_block_grouping.
4732         (duplicate_computed_gotos): Don't change computed goto if it's a
4733         crossing edge.
4734         (partition_hot_cold_basic_blocks):  Update function comment.
4735         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
4736         condition.
4737         (try_forward_edges): Likewise.
4738         (merge_blocks_move_predecessor_nojumps): Likewise.
4739         (merge_blocks_move_successor_nojumps): Likewise.
4740         (merge_blocks_move): Likewise.
4741         (try_crossjump_bb): Likewise.
4742         * cfglayout.c (update_unlikely_executed_notes): Remove function.
4743         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
4744         notes to cold bb's; remove call to update_unlikely_executed_notes.
4745         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4746         NOTE_INSN_SWITCH_TEXT_SECTIONS.
4747         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
4748         function declaration.
4749         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
4750         from consideration.
4751         (rtl_can_merge_blocks): Remove redundancy from condition.
4752         (try_redirect_by_replacing_jump): Likewise.
4753         (force_nonfallthru_and_redirect): Remove code for adding
4754         UNLIKELY_EXECUTED_CODE notes to cold bb's.
4755         (commit_one_edge_insertion): Likewise.
4756         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
4757         * dbxout.c (FORCE_TEXT): Replace function_section with
4758         current_function_section.
4759         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
4760         function, switch_text_section.
4761         (struct xcoff_debug): Likewise.
4762         (dbxout_function_end): Add code to put out label diffs for both
4763         hot and cold sections.
4764         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
4765         for new debug_hooks funciton, switch_text_section..
4766         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
4767         switch_text_section.
4768         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
4769         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
4770         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
4771         dw_fde_switched_sections.
4772         (output_call_frame_info):  Add test to see if function switches text
4773         sections in the middle; if so, use appropriate extra hot and cold
4774         section labels to compute size deltas for the hot and cold sections.
4775         (dwarf2out_begin_prologue): Add code to initialize new fields in
4776         dw_fde_struct.
4777         (dwarf2out_switch_text_section): New function (invoked through
4778         debug_hook); updates new fields in dw_fde_struct appropriately and
4779         increments separate_line_info_table_in_use.
4780         (dwarf2_debug_hooks): Initialize switch_text_section function to be
4781         dwarf2out_switch_text_section.
4782         (struct var_loc_node): Add new field, section_label.
4783         (output_aranges): Add code to check whether in hot or cold section and
4784         use the appropriate label in calculating deltas.
4785         (output_ranges): Likewise.
4786         (output_line_info): Add code to check which section we're in and
4787         use appropriate hot/cold label.
4788         (add_location_or_constant_value_attribute): Likewise.
4789         (gen_subprogam_die): Modify arange attributes to use correct labels.
4790         (dwarf2out_begin_block): Change call to function_section into call to
4791         current_function_section.
4792         (dwarf2out_end_block): Likewise.
4793         (dwarf2out_source_line): Likewise.
4794         (dwarf2out_var_location): Add code to check whether in hot or cold
4795         section and use the appropriate label.
4796         * except.c (output_function_exception_table): Change call to
4797         function_section into call to current_function_section.
4798         * final.c (profile_function): Likewise.
4799         (scan_ahead_for_unlikely_executed_note): Remove function.
4800         (final_scan_insn):  Remove calls to
4801         scan_ahead_for_unlikely_executed_note, and related code for switching
4802         to cold section, except for the single time
4803         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
4804         debug_hooks->switch_text_sections; replace appropriate calls to
4805         function_section with calls to current_function_section.
4806         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
4807         test_bb to condition.
4808         (find_if_case_2): Likewise.
4809         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4810         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
4811         * opts.c (decode_options): Change warning about hot/cold partitioning
4812         with exceptionss to inform (so as not to cause bootstrap failures);
4813         remove warning about partitioning with DWARF debug info.
4814         * output.h (current_function_section): Add new function decl.
4815         (insert_section_boundary_note): Likewise.
4816         (enum in_section): Move this declaration here from varasm.c.
4817         (unlikely_section_label): Likewise.
4818         (unlikely_text_section_name): Likewise.
4819         (last_text_section_name): New global variable.
4820         (last_text_section): Likewise.
4821         (hot_section_label): Likewise.
4822         (hot_section_end_label): Likewise.
4823         (cold_section_end_label): Likewise.
4824         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
4825         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
4826         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
4827         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
4828         insn from consideration.
4829         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
4830         switch_text_section.
4831         * varasm.c (basic-block.h): Add new include.
4832         (unlikely_section_label_printed): Remove global variable.
4833         (unlikely_section_label): Make global variable not be static any more.
4834         (unlikely_text_section_name): Likewise.
4835         (hot_section_end_label): New global variable (not static)
4836         (first_function_block_is_cold): Likewise.
4837         (hot_section_label): Likewise.
4838         (cold_section_end_label): Likewise..
4839         (last_text_section): New global variable, not static.
4840         (last_text_section_name): New global variable, not static.
4841         (initialize_cold_section_name): New function.
4842         (enum in_section): Move declaration to output.h.
4843         (text_section): Update last_text_section.
4844         (unlikely_text_section): Replace code to determine cold section name
4845         with call to initialize_cold_section_name; Add code to update
4846         last_text_section; remove code for printing out label.
4847         (named_section_real): Add code to update last_text_section and
4848         last_text_section_name as appropriate.
4849         (function_section): Change test for 'unlikely' to depend on
4850         first_function_block_is_cold (moved old test to
4851         current_function_section).
4852         (current_function_section): New function.
4853         (assemble_start_function): Move code that frees
4854         unlikely_text_section_name; initialize hot_section_end_label;
4855         print hot and cold section labels at the start of the function;
4856         set first_function_block_is_cold, if appropriate; initialize l
4857         ast_text_section; add call to insert_section_boundary_note.
4858         (assemble_end_function):  Add code to write out hot and cold section
4859         end labels.
4860         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
4861         switch_text_section.
4862         * config/darwin.c (machopic_select_section): Replace incorrect
4863         function in base_funs; update reloc for cold sections if necessary.
4864         * config/darwin.h (SECTION_FUNCTION):  Add code to update
4865         last_text_section if appropriate.
4866         (text_unlikely_section): Remove.
4867         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
4868         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
4869         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
4870         partitioning for this architecture.
4872 2005-03-31  Olivier Hainque  <hainque@adacore.com>
4874         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
4875         defined and non-zero.
4877 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4879         PR c++/18644
4880         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
4881         semantics.
4883 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
4885         PR target/20611
4886         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
4887         label operand.  Remove (use (unspec..)).  Don't emit a label on
4888         the offset word.
4889         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
4890         generate inline label for load_toc_v4_PIC_1b.
4891         (rs6000_emit_load_toc_table): Likewise.
4893 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4895         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
4896         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
4898 2005-03-29  Devang Patel  <dpatel@apple.com>
4900         * tree-sra.c (decide_block_copy): Disable scalarization of
4901         sub-elements.
4903 2005-03-30  Stuart Hastings  <stuart@apple.com>
4904             Dale Johannesen  <dalej@apple.com>
4906         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
4907         * print-tree.c (print_node):  Add case STATEMENT_LIST.
4909 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
4911         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
4912         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
4913         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
4914         is given with "powerpc64*" or "all", or when --with-cpu chooses
4915         a 64-bit cpu.
4917 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
4919         PR debug/20268
4920         * dwarf2out.c (add_high_low_attributes): New function, extracted from
4921         gen_lexical_block_die.
4922         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
4924 2005-03-31  Jan Hubicka  <jh@suse.cz>
4926         2004-11-02  Jan Hubicka  <jh@suse.cz>
4928         * cgraph.c (cgraph_varpool_node_name): New function.
4929         (dump_cgraph_varpool_node): New function.
4930         (dump_varpool): New function.
4931         * cgraphunit.c (cgraph_optimize): Dump varpool.
4933         2004-10-16  Jan Hubicka  <jh@suse.cz>
4935         * cgraph.c (decide_is_variable_needed): New function.
4936         (cgraph_varpool_finalize_decl): Use it.
4937         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
4938         unit-at-a-time.
4939         * final.c (output_addr_const): Do not call mark_referenced.
4940         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
4941         always go via cgraph.
4942         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
4943         (check_global_declarations): Ifdef out code clearing DECL_RTL.
4944         * tree-optimize.c (execute_inline): Mark functions called.
4945         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
4947         2004-10-11  Jan Hubicka  <jh@suse.cz>
4949         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
4950         (cgraph_varpool_last_needed_node): New static variable.
4951         (enqueue_needed_varpool_node): Break out from ...; add items to the
4952         end of queue; update first pointers.
4953         (cgraph_varpool_mark_needed_node): ... here.
4954         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
4955         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
4956         * cgraph.h (cgraph_varpool_node): Add analyzed field.
4957         (cgraph_varpool_first_unanalyzed_node): Declare.
4958         * cgraphunit.c: Include output.h.
4959         (cgraph_varpool_analyze_pending_decls): New function.
4960         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
4961         for errors, analyze pending decls.
4962         (cgraph_finalize_compilation_unit): Only analyze decls.
4963         (cgraph_optimize): Assemble the decls after expanding.
4965 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
4967         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
4968         subvars get marked properly in tags for grouping.
4969         (add_pointed_to_var): Mark only actual pointed to
4970         variables/subvars in addresses needed.
4971         (create_overlap_variables_for): Clear call clobbered on original
4972         variable.
4973         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
4974         addresable vars with subvars into list.
4975         * tree-ssa.c (verify_ssa_name): Verify original is not used where
4976         subvar should be.
4978 2005-03-30  Richard Henderson  <rth@redhat.com>
4980         * cgraph.h (struct cgraph_node): Add alias.
4981         * varasm.c (assemble_alias): Set it.
4982         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
4983         avoid calling cgraph_expand_function.
4985 2005-03-30  Tom Tromey  <tromey@redhat.com>
4987         * tree.def (FILE_TYPE): Removed.
4988         * typeclass.h (enum type_class): Removed file_type_class.
4989         * dwarf2out.c (is_base_type): Updated.
4990         (gen_type_die): Likewise.
4991         * dbxout.c (dbxout_type): Updated.
4992         * builtins.c (type_to_class): Updated.
4993         * tree.c (type_contains_placeholder_1): Updated.
4994         * config/sparc/sparc.c (sparc_type_code): Updated.
4995         * config/ia64/ia64.c (hfa_element_mode): Updated.
4996         * expr.c (count_type_elements): Updated.
4997         * stor-layout.c (layout_type): Updated.
4998         * tree-inline.c (remap_type): Updated.
4999         * tree-pretty-print.c (dump_generic_node): Updated.
5001 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
5003         * builtins.c (expand_builtin_powi): Fix mode of
5004         2nd argument to match int.
5005         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
5006         2nd argument type to int.
5007         * libgcc2.c: Change prototype of __powi* functions to use
5008         int.
5010 2005-03-30  Dale Johannesen  <dalej@apple.com>
5012         PR middle-end/19225
5013         * calls.c (expand_call):  Flush pending deferrals before
5014         throwing call.
5016 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5018         PR c/772
5019         PR c/17913
5020         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
5021         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
5022         c_label_context, label_context_stack): New.
5023         * c-decl.c (define_label): Check for jumps into statement
5024         expressions.  Add label to list of defined labels.
5025         (start_function): Push context on label_context_stack.
5026         (finish_function): Pop context from label_context_stack.
5027         * c-typeck.c (label_context_stack): New.
5028         (c_finish_goto_label): Check for jumps into statement
5029         expressions.  Add label to list of jumped to labels.
5030         (struct c_switch): Add blocked_stmt_expr.
5031         (c_start_case): Initialize it.
5032         (do_case): Check it.
5033         (c_finish_case): Verify !blocked_stmt_expr.
5034         (c_begin_stmt_expr):  Push context on label_context_stack.
5035         Increment blocked_stmt_expr.  Mark labels jumped to from outside
5036         as undefinable.
5037         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
5038         defined in the statement expression and no longer jumpable to.
5039         Mark labels jumped to from just outside the statement expression
5040         as again definable.  Pop context from label_context_stack.
5041         * doc/extend.texi (Statement Exprs): Update.
5043 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5045         PR c/20368
5046         * c-decl.c (start_function): Check for old_decl being
5047         error_mark_node.
5049 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5051         * final.c (final): Remove prescan parameter.  Change all callers.
5052         (final_scan_insn): Remove prescan parameter.  Change all callers.
5054 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
5056         * tree-vectorizer.c: Fix comment typos.
5058 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
5060         * tree-scalar-evolution.c (instantiate_parameters_1): Return
5061         as soon as a chrec_dont_know is detected.
5063 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
5065         Merge from csl-arm-branch.
5066         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
5068         * tlink.c (recompile_files): Do not assume that "rename" can
5069         overwrite an existing file.
5071 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
5073         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
5074         * gcc/configure: Regenerate.
5076 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5078         * doc/install.texi: Update binutils requirement for powerpc*-linux.
5080         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
5082         * calls.c (struct arg_data): Update "partial" comment.
5083         (load_register_parameters): Update "nregs" comment.
5085 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5087         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
5088         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
5089         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
5090         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
5091         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
5092         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
5093         than target_flags & 0.
5094         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
5095         (iq2000_arch, iq2000_parse_cpu): Delete.
5096         (TARGET_HANDLE_OPTION): Override default.
5097         (iq2000_handle_option): New function.
5098         (override_options): Remove -march= and -mcpu= handling.
5099         * config/iq2000/iq2000.opt: New file.
5101 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5103         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
5104         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
5105         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
5106         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
5107         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
5108         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
5109         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
5110         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
5111         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
5112         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
5113         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
5114         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
5115         (c4x_rpts_cycles_string, c4x_cpu_version_string)
5116         (TARGET_OPTIONS): Delete.
5117         (c4x_rpts_cycles, c4x_cpu_version): Declare.
5118         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
5119         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
5120         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
5121         (c4x_cpu_version_string): Delete.
5122         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5123         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
5124         equivalent -mcpu= option.
5125         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
5126         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
5127         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
5128         or clearing the appropriate MASK_* bit.
5129         (c4x_file_start): Use c4x_cpu_version.
5130         * config/c4x/c4x.opt: New file.
5132 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5134         * doc/options.texi: Document the new MaskExists flag.
5135         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
5136         if the option has the MaskExists flag.
5138 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5140         * opt-functions.awk (flag_set_p, test_flag): New functions.
5141         (switch_flags): Use them.
5142         * opth-gen.awk: Use flag_set_p to check for flags.
5143         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
5145 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5147         * config.host (i[34567]86-*-mingw32*): Don't set
5148         host_can_use_collect2 to no.
5150 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5152         PR target/20203
5153         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
5154         Remove convert_memory_address call duplicating that in memory_address.
5156 2005-03-29  Richard Henderson  <rth@redhat.com>
5158         PR c/20519
5159         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
5160         (build_compound_literal): Likewise.  Propagate decl type into the
5161         initializer.
5162         (finish_decl): Likewise.  Use new return value from complete_array_type
5163         for zero sized arrays.
5164         (complete_array_type): Move ...
5165         * c-common.c (complete_array_type): ... here.  Change first argument
5166         to pointer-to-type-node.  Consistently use sizetype for the index
5167         except for zero sized arrays.  Detect zero sized arrays for pedantic
5168         mode diagnostics.  Create a new type node instead of modifying the
5169         old node in place.
5170         * c-tree.h (complete_array_type): Move decl ...
5171         * c-common.h (complete_array_type): ... here.
5173 2005-03-29  Richard Henderson  <rth@redhat.com>
5175         PR tree-opt/19108
5176         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
5178 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
5180         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
5181         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
5182         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
5183         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
5185 2005-03-29  Eric Christopher  <echristo@redhat.com>
5187         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
5188         truthvalue conversion removal.
5190 2005-03-29  Ian Lance Taylor  <ian@airs.com>
5192         PR bootstrap/14316
5193         * collect2.c: Never include <vfork.h>.
5194         (VFORK_STRING, vfork): Don't define.
5195         (pid): Remove global variable.
5196         (handler): Call raise instead of kill (getpid(), ...).
5197         (collect_wait): Add pex parameter.  Change all callers.  Use
5198         pex_get_status rather than pwait.
5199         (do_wait): Add pex parameter.  Change all callers.
5200         (collect_execute): Return struct pex_obj * rather than void.  Use
5201         pex routines rather than pexecute.
5202         (fork_execute): Get pex_obj from collect_execute, and pass it to
5203         do_wait.
5204         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
5205         Only declare quit_handler if SIGQUIT is defined.
5206         (scan_libraries): Likewise.
5207         * collect2.h (collect_execute): Update declaration.
5208         (collect_wait): Update declaration.
5209         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
5210         pass it to collect_wait.
5212 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
5214         PR c/20672
5215         * c-parser.c (c_parser_compound_statement_nostart): Give error
5216         message for EOF instead of just setting parser->error.
5218 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
5220         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
5221         (slpeel_update_phi_nodes_for_guard1): New function.
5222         (slpeel_update_phi_nodes_for_guard2): New function.
5223         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
5224         of slpeel_update_phi_nodes_for_guard.
5225         (vectorize_loops): Remove call to loop_closed_rewrite.
5226         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
5227         assertion.
5229 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
5231         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
5232         (TARGET_LITTLE_ENDIAN): New macro.
5233         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
5234         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
5235         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
5236         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
5237         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
5238         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
5239         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
5240         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
5241         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
5242         (TARGET_OPTIONS): Delete.
5243         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
5244         (CACHE_FLUSH_TRAP): Turn into an integer.
5245         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
5246         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
5247         -mflush-trap is in use.
5248         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
5249         (m32r_cache_flush_trap_string): Delete.
5250         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
5251         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
5252         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
5253         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5254         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
5255         -mmodel= and -msdata= handling from...
5256         (m32r_init): ...here.
5257         * config/m32r/m32r.opt: New file.
5259 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
5261         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
5262         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
5263         * tree-vect-analyze.c (vect_object_analysis): additional parm
5264         pass back a "struct ptr_info_def *" with the points-to info.
5265         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
5266         statement using info returned from vect_object_analysis.
5267         * tree-vect-transform.c (update_vuses_to_preheader): New function.
5268         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
5269         for virtual uses and defs when creating a replacement vector
5270         reference.  Call duplicate_ssa_name_ptr_info to define points-to
5271         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
5272         (vectorizable_store): copy_virtual_operands and update
5273         definition statements.
5274         (vectorizable_load): copy_virtual_operands.  Remove call to
5275         mark_call_clobbered_vars_to_rename for call to "const" builtin.
5276         * tree-vectorizer.c (vectorize_loops): Remove calls to
5277         rewrite_into_ssa and bitmap_clear (vars_to_rename).
5278         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
5279         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
5280         define macro STMT_VINFO_PTR_INFO for use in accessing.
5281         * tree.h add export of duplicate_ssa_name_ptr_info.
5282         * rs6000.c (altivec_init_builtins): Declare builtin function
5283         __builtin_altivec_mask_for_load to be "const".
5285 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
5287         PR middle-end/20622
5288         * cgraph.h (struct cgraph_varpool_node): Add alias field.
5289         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
5290         assemble_variable on aliases.
5291         * varasm.c (assemble_alias): Set node->alias.
5292         * toplev.c (wrapup_global_declarations): Don't call
5293         rest_of_decl_compilation on aliases again.
5295 2005-03-29  Paul Brook  <paul@codesourcery.com>
5297         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
5298         * config/arm/arm.c (arm_dbx_register_number): New function.
5299         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
5301 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5303         PR middle-end/20263
5304         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
5305         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
5307 2005-03-29  Dale Johannesen <dalej@apple.com>
5309         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
5310         $(TREE_H) and $(COVERAGE_H).
5311         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
5312         * opts.c (common_handle_option): Enable tree-based value transforms.
5313         * toplev.c (process_options): Ditto.
5314         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
5315         refers to references to this type.
5316         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
5317         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
5318         for may_be_more, may_be_less.
5319         (rtl_gen_pow2_profiler): Adjust.
5320         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
5321         (rtl_gen_one_value_profiler): Adjust.
5322         (rtl_gen_const_delta_profiler): Adjust.
5323         * tree-profile.c (tree_gen_interval_profiler): Implement.
5324         (tree_gen_pow2_profiler): Ditto.
5325         (tree_gen_one_value_profiler): Ditto.
5326         (tree_profiling): New.
5327         (pass_tree_profile): Reference it.
5328         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
5329         tree.h, gcov-io.h.
5330         (insn_divmod_values_to_profile): Rename to
5331         rtl_divmod_values_to_profile. Adjust.
5332         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
5333         (insn_prefetch_values_to_profile): Adjust.
5334         (rtl_value_profile_transformations): Adjust.
5335         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
5336         (gen_mod_pow2): Rename to rtl_mod_pow2.
5337         (gen_mod_subtract): Rename to rtl_mod_subtract.
5338         (divmod_fixed_value_transform): Rename to
5339         rtl_divmod_fixed_value_transform.
5340         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
5341         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
5342         (rtl_find_values_to_profile): Adjust.
5343         (tree_value_profile_transformations): Implement.
5344         (tree_divmod_values_to_profile): New.
5345         (tree_values_to_profile): New.
5346         (tree_divmod_fixed_value): New.
5347         (tree_mod_pow2): New.
5348         (tree_mod_subtract): New.
5349         (tree_divmod_fixed_value_transform): New.
5350         (tree_mod_pow2_value_transform): New.
5351         (tree_mod_subtract_transform): New.
5352         (tree_find_values_to_profile): Implement.
5353         * profile.c (instrument_values):  Free histograms.
5354         (compute_value_histograms): Adjust. Implement tree version.
5356 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
5358         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
5359         * config/i386/i386.c (output_fix_trunc): Add new round_mode
5360         variable.  Output "fldcw" depending on round_mode.
5361         * config/i386/i386.md (UNSPEC_FIST): New.
5362         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
5363         New isns patterns to implement lrint and llrint built-ins as x87
5364         intrinsic function.
5365         (fistdi2, fist<mode>2 splitters): New splitters.
5366         (lrint<mode>2): New expanders.
5368 2005-03-28  Ian Lance Taylor  <ian@airs.com>
5370         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
5371         0 when calling final_scan_insn.
5373 2005-03-28  Jan Hubicka  <jh@suse.cz>
5375         PR middle-end/20635
5376         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
5377         as needed.
5379         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
5380         types where possible.
5382 2005-03-26  Per Bothner  <per@bothner.com>
5384         Make -f[no-]show-column also control non-cpp diagnostics.
5385         * c.opt (fshow-column): Move option from here ...
5386         * common.opt (fshow-column): ... to here.
5387         * diagnostic.c (diagnostic_build_prefix): Only print column number
5388         if flag_show_column.
5390 2005-03-27  Steven Bosscher  <stevenb@suse.de>
5392         * vax-protos.h (vax_output_int_move, vax_output_int_add,
5393         vax_output_conditional_branch): New prototypes.
5394         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
5395         extracted from vax.md mov and add patterns.
5396         (vax_output_conditional_branch): New function to output conditional
5397         branch instructions.
5398         * vax.md: Use mode macros for arithmetic and mov patterns.
5399         Use code macros for the jump patterns.
5401 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5403         * Makefile.in (libbackend.o): Depend on version files;
5404         add custom generation command.
5406 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5408         PR target/20636
5409         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
5410         sure that we have a REG before getting its REGNO.
5412 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5414         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
5415         * builtins.def (BUILT_IN_STRNDUP): New.
5417 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
5419         PR tree-optimization/20470
5420         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
5421         ABS(x-y).
5423 2005-03-25  Mike Stump  <mrs@apple.com>
5425         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
5426         sized objects.
5428 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
5430         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
5431         Use our own structure definitions.
5433         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
5434         (fix_truncdfsi2): Allow registers or memory as destination.
5435         When TARGET_PPC_GFXOPT, generate simplified pattern.
5436         (fix_truncdfsi2_internal): Use define_insn_and_split.
5437         (fix_truncdfsi2_internal_gfxopt): New.
5438         (fctiwz): Don't confuse register allocation by giving it no choices.
5439         (stfiwx): New.
5440         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
5441         (EXTRA_MEMORY_CONSTRAINT): Likewise.
5442         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
5443         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
5445 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5447         * dominance.c (free_dominance_info): Speed up by freeing et
5448         data structures without maintaining other nodes.
5449         * et-forest.c (et_free_tree_force): New.
5450         * et-forest.h: Add a prototype for et_free_tree_force.
5452         * tree.c (get_set_constructor_bits,
5453         get_set_constructor_bytes): Remove.
5454         * tree.h: Remove the corresponding prototypes.
5456 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
5458         PR target/15491
5459         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
5460         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
5461         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
5462         PRE_DEC, NEG and NOT.
5464 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5466         * fold-const.c: Convert uses of fold (build (...)) to
5467         fold_buildN.
5469 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
5471         PR rtl-optimization/20249
5472         * cse.c (insert_regs): Do not record equivalence of registers in
5473         different modes.
5475 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
5477         * emit-rtl.c (reverse_comparison): Remove.
5478         * rtl.h: Remove the corresponding prototype.
5480 2005-03-24  James E Wilson  <wilson@specifixinc.com>
5482         * doc/install.texi (--enable-altivec): Delete docs.
5484 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
5486         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
5487         SFmode and DFmode before reload when
5488         flag_unsafe_math_optimizations not enabled.
5490 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
5492         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
5494         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
5495         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
5497 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
5499         * configure.ac (enable-checking): Add 'runtime' option.
5500         * doc/install.texi (enable-checking): Document 'runtime' checking.
5501         * tsystem.h (gcc_assert, gcc_unreachable): Define.
5502         * config.in: Regenerated.
5503         * configure: Regenerated.
5505 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
5507         * optabs.h (enum optab_index): Remove OTI_llrint.
5508         (llrint_optab): Remove macro.
5509         * optabs.c (init_optabs): Remove llrint_optab initialization.
5510         * genopinit.c (optabs): Remove llrint_optab implementation.
5511         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
5512         using lrint_optab.
5514 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
5516         PR rtl-optimization/20532
5517         * simplify-rtx.c (simplify_binary_operation_1): Protect from
5518         overflow when adding coefficients for PLUS or MINUS.
5519         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
5520         two as multiplier.
5522 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5524         * langhooks.h (truthvalue_conversion): Remove.
5525         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5526         LANG_HOOKS_TRUTHVALUE_CONVERSION.
5527         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
5528         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
5529         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5531 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
5533         * params.def: Fix a typo.
5534         * config/mips/mips.c: Follow the spelling convensions.
5535         * doc/invoke.texi: Fix typos.
5537 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
5539         Fix PR tree-optimization/20601
5541         * tree-ssa-pre.c (insert_aux): Add missing condition to
5542         constification.
5544 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5546         * final.c (final_scan_insn): Don't remove no-op instructions.
5547         * reload1.c (reload): Remove simple no-op instructions even when
5548         not optimizing.
5550 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
5552         PR tree-optimization/20501
5553         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
5554         reporting that peeling for alignment is applied moved to...
5555         * (vect_analyze_data_refs_alignment): Here.
5557 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5559         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
5561 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5563         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
5564         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
5566 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
5568         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
5569         imply that this is called once, independent of asms in code.
5570         Adjust to now being pased output and input lists.  Mention helper
5571         function decl_overlaps_hard_reg_set_p.
5572         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
5573         hook_tree_tree_identity and to take three trees, returning third.
5574         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
5575         prototype.
5576         * stmt.c: include hard-reg-set.h before tree.h.
5577         (decl_overlaps_hard_reg_set_p): New function, broken out from...
5578         (decl_conflicts_with_clobbers_p): Call
5579         decl_overlaps_hard_reg_set_p.
5580         (expand_asm_operands): Pass output and input lists in call to
5581         targetm.md_asm_clobbers.
5582         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
5583         hook_tree_tree_tree_tree_3rd_identity.
5584         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
5585         parameters.
5586         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
5587         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
5588         parameters, first two unused.
5589         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
5590         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
5591         in constraint letters and MOF is not mentioned as a asm-declared
5592         register in neither of the input and output lists.
5594 2005-03-23  DJ Delorie  <dj@redhat.com>
5596         * optabs.c (expand_binop): Make sure the first subword's result
5597         gets stored.
5599 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5601         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
5602         Call c_common_truthvalue_conversion rather than
5603         lang_hooks.truthvalue_conversion.
5604         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
5605         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
5606         c-typeck.c.
5607         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
5608         c_common_truthvalue_conversion.
5609         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
5610         c_parser_conditional_expression, c_parser_binary_expression): Call
5611         c_objc_common_truthvalue_conversion.
5612         * c-typeck.c (build_unary_op): Call
5613         c_objc_common_truthvalue_conversion.
5614         (build_conditional_expr): Do not call
5615         lang_hooks.truthvalue_conversion.
5616         (build_binary_op): Call c_common_truthvalue_conversion.
5617         (c_objc_common_truthvalue_conversion): Moved from
5618         c-objc-common.c.  Call default_function_array_conversion instead
5619         of default_conversion.
5621 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5623         * c-common.h (default_conversion): Remove.
5624         (perform_integral_promotions): Add.
5625         * c-tree.h (default_conversion): Add.
5626         * c-typeck.c (perform_integral_promotions): New, split out from
5627         default_conversion.
5628         * c-common.c (check_case_value): Use perform_integral_promotions,
5629         not default_conversion.
5630         (c_add_case_label): Don't continue processing case label after
5631         found to be pointer.
5633 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
5635         * gcc.c (do_spec_1): Do not add a -L path for a directory in
5636         the prefix list if we have already added a multilib directory
5637         based on that path.
5638         (main): Do not add MD_EXEC_PREFIX to the list of directories to
5639         search with -L.
5641 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5643         * reload1.c (indirect_symref_ok, reload_obstack): Make them
5644         static.
5645         * reload.h: Remove the prototype for indirect_symref_ok.
5647         * reload1.c (indirect_symref_ok): Make it global.
5648         * reload.h: Add a prototype for indirect_symref_ok.
5650 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5652         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
5653         ashlhi3 expander.
5655 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
5657         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
5659 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
5661         * c-opts.c (c_common_parse_file): Only start/end main source file
5662         if debug hooks says the writer wants it.
5663         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
5664         member.
5665         (xcoff_debug_hooks): Ditto.
5666         * debug.c (do_nothing_hooks): Ditto.
5667         * debug.h (gcc_debug_hooks): Ditto.
5668         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
5669         * sdbout.c (sdb_debug_hooks): Ditto.
5670         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
5672 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
5674         * doc/extend.texi: Deprecate C++ min/max operators.
5676 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
5678         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
5679         artificial original candidates.
5681 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
5682             Jan Hubicka  <jh@suse.cz>
5683             Steven Bosscher <stevenb@suse.de>
5685         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
5686         call cost based on argument sizes.
5687         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
5688         inlining.
5689         * params.def: (max-inline-inssn-single): Set to 450.
5690         (max-inline-insns-auto): Set to 90.
5691         (max-inline-insns-recursive): Set to 450
5692         (max-inline-insns-recursive-auto): Set to 450.
5693         (large-function-insns): Set to 2700.
5694         (inline-call-cost): New parameter.
5695         * tree-inline.c (estimate_move_cost): New function.
5696         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
5697         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
5698         based on arguments.
5699         * tree-inline.h (estimate_move_cost): Declare.
5700         * invoke.texi: (max-inline-inssn-single): Change default to 450.
5701         (max-inline-insns-auto): Change default to 90.
5702         (max-inline-insns-recursive): Change default to 450
5703         (max-inline-insns-recursive-auto): Change default to 450.
5704         (large-function-insns): Change default to 2700.
5705         (inline-call-cost): Document new parameter.
5707 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5709         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
5710         (TARGET_DEFAULT): Delete.
5711         * config/i860/i860.opt: New file.
5713 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5715         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
5716         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5717         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5718         (frv_sched_lookahead): Delete.
5719         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
5720         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
5721         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
5722         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
5723         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
5724         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
5725         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
5726         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
5727         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
5728         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
5729         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
5730         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
5731         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
5732         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
5733         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
5734         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
5735         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
5736         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
5737         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
5738         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
5739         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
5740         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
5741         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
5742         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5743         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5744         (frv_sched_lookahead): Delete.
5745         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
5746         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5747         (frv_handle_option): New function.  Move -mcpu= handling from...
5748         (frv_override_options): ...here.  Remove handling of other
5749         TARGET_OPTIONS.
5750         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
5751         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
5752         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
5753         and TARGET_NO_MULTI_CE.
5754         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
5755         !TARGET_VLIW_BRANCH.
5756         * config/frv/frv.opt: New file.
5758 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5760         * fold-const.c (fold_ternary): Take decomposed arguments of
5761         CALL_EXPR.
5762         (fold): Update a call to fold_ternary.
5764         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
5765         * tree.h: Add corresponding prototypes.
5767 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
5769         PR target/20561
5770         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
5771         between jump table and its label.
5772         * final.c (shorten_branches): Handle notes in between ADDR_VEC
5773         resp. ADDR_DIFF_VEC and the label preceeding it.
5774         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
5775         is emitted in the right section.
5777 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5779         * fold-const.c (fold_unary, fold_binary): Update comments
5780         about arguments.
5782 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
5784         PR rtl-optimization/20527
5785         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
5786         REG_INC note, test that the register also isn't mentioned in PRED
5787         or SUCC.
5789 2005-03-22  Ben Elliston  <bje@au.ibm.com>
5791         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
5792         and definition.
5794 2005-03-21  Mike Stump  <mrs@apple.com>
5796         * varasm.c (default_assemble_visibility): Remove extra ().
5798 2005-03-21  Roger Sayle  <roger@eyesopen.com>
5800         PR middle-end/20557
5801         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
5802         to determine whether a block can be duplicated, rather than test
5803         whether the block contains noncopyable insns ourselves.
5805 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5807         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
5808         predicates.
5810 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5812         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
5814 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5816         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
5817         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
5818         * config/fr30/fr30.opt: New file.
5820 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
5822         Fix PR tree-optimization/20542
5824         * tree-flow-inline.h (overlap_subvar): Move to here.
5825         * tree-ssa-operands.c: From here.
5826         * tree-flow.h (overlap_subvar): Declare.
5827         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
5828         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
5829         for variables with subvars.
5831 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
5833         PR middle-end/20177
5834         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
5835         * modulo-sched.c (const_iteration_count): Return on NULL
5836         pre-header.
5837         (print_node_sched_params): Return on NULL dump_file.
5838         (generate_reg_moves): Handle reg-anti dependencies and disregard
5839         closing branch when generating register moves.
5840         (sms_schedule): Mark the SMSed block dirty.
5841         * passes.c (rest_of_handle_sms): Call update_life_info for all
5842         basic-blocks.
5843         * testsuite/gcc.dg/20050321-1.c: New test.
5845 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
5847         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
5848         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5849         movqi_internal): Likewise.
5851 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
5853         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
5854         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
5855         xtensa_b4const): Delete prototypes.
5856         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
5857         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
5858         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
5859         xtensa_extra_constraint): New prototypes.
5860         (add_operand, arith_operand, nonimmed_operand, mem_operand,
5861         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
5862         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
5863         move_operand, const_float_1_operand, fpmem_offset_operand,
5864         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
5865         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
5866         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
5867         argument type to HOST_WIDE_INT.
5868         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
5869         xtensa_mask_immediate): Likewise.
5870         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
5871         Likewise.  Also make these functions static.
5872         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
5873         (xtensa_const_ok_for_letter_p): New.
5874         (add_operand, arith_operand, nonimmed_operand, mem_operand,
5875         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
5876         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
5877         move_operand, const_float_1_operand, fpmem_offset_operand,
5878         branch_operator, ubranch_operator, boolean_operator): Move to
5879         predicates.md.
5880         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
5881         (xtensa_mem_offset): Change return type to bool.
5882         (xtensa_extra_constraint): New.
5883         (gen_int_relational): Update type of const_range_p function pointer.
5884         Use xtensa_b4const_or_zero.
5885         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
5886         xtensa_const_ok_for_letter_p.  Update comments.
5887         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
5888         (PREDICATE_CODES): Delete.
5889         * config/xtensa/xtensa.md: Include predicates.md.
5890         * config/xtensa/predicates.md: New file.
5892 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5894         * config/v850/v850-protos.h: Remove the prototypes for
5895         reg_or_int9_operand, reg_or_const_operand,
5896         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
5897         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
5898         movsi_source_operand, power_of_two_operand,
5899         not_power_of_two_operand, special_symbolref_operand,
5900         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
5901         register_is_ok_for_epilogue.
5902         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
5903         reg_or_int9_operand, reg_or_const_operand,
5904         call_address_operand, special_symbolref_operand,
5905         movsi_source_operand, power_of_two_operand,
5906         not_power_of_two_operand, register_is_ok_for_epilogue,
5907         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
5908         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
5909         predicates.md.
5910         * config/v850/v850.h (PREDICATE_CODES): Remove.
5911         * config/v850/v850.md: Include predicates.md.
5912         * config/v850/predicates.md: New.
5914 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
5916         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
5917         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
5918         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
5919         (itoolsdir, itoolsdatadir): Move definition above new first use.
5920         (install-itoolsdirs): New rule.
5921         (install-mkheaders): Depend on install-itoolsdirs, not
5922         install-include-dir.
5924 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5926         * tree-into-ssa.c: Remove obsolete comments.
5928 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
5930         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
5931         unrolling if -fpeel-loops is specified, too.
5932         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5933         Remove superfluous check for flag_unroll_loops.
5935 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
5937         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
5938         (lrint_optab, llrint_optab): Define corresponding macros.
5939         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
5940         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
5941         pattern and llrint_optab using llrintdi2 patterns.
5942         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
5943         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
5944         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
5945         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
5946         flag_unsafe_math_optimizations is set.
5948 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
5950         * combine.c (combine_simplify_rtx, simplify_if_then_else,
5951         simplify_logical, if_then_else_cond, known_cond,
5952         simplify_comparison): Adjust calls to reverse_comparison.
5953         Don't use combine_reversed_comparison_code).
5954         (combine_reversed_comparison_code): Remove.
5955         (reversed_comparison): Using reversed_comparison_code, move it...
5956         * jump.c (reversed_comparison): ... here.
5957         * rtl.h (reversed_comparison): Add prototype.
5959 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5961         * builtins.c (fold_builtin): Take decomposed arguments of
5962         CALL_EXPR.
5963         * fold-const.c (fold_ternary): Update a call to fold_builtin.
5964         * gimplify.c (gimplify_call_expr): Likewise.
5965         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
5966         * tree.h: Update the prototype of fold_builtin.
5968 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
5970         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
5971         * rtlhooks.c (gen_lowpart_no_emit_general): New.
5972         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
5973         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
5974         * simplify-rtx.c (simplify_binary_operation_1): Use it.
5976 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5978         * builtins.c (fold_builtin_1): Take decomposed arguments of
5979         CALL_EXPR.
5980         (fold_builtin): Update a call to fold_builtin_1.
5982 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
5984         PR other/20564
5985         * gcov.c (output_lines): Only output function block summary when
5986         outputting branch information.
5987         * doc/gcov.texi: Document format of preamble and additional block
5988         information lines.
5990 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5992         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
5993         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
5994         the defaults false if BITS_PER_UNIT != 8.
5995         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
5996         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
5997         than BITS_PER_UNIT != 8.
5998         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
5999         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
6000         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
6001         #undefs.
6002         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
6003         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
6005 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6007         PR middle-end/20539
6008         * fold-const.c (fold_binary): Fix type mismatch between
6009         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
6010         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
6011         for non-truth-valued expressions.
6013         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
6014         and FUNCTION_DECL in the main switch.
6015         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6016         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
6017         we also need to convert their operands to match.
6018         <TRUTH_NOT_EXPR>: Likewise.
6020 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
6022         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
6023         diagnostic without checking whether an lvalue.
6024         * c-common.h (lvalue_p): Remove.
6025         (enum lvalue_use): Update comment.
6026         (lvalue_or_else): Replace by lvalue_error.
6027         * c-typeck.c (lvalue_p): Make static.
6028         (lvalue_or_else): New.  Call lvalue_error.
6030 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
6032         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
6033         (function_arg_advance): Use rs6000_parm_start.
6034         (function_arg, rs6000_arg_partial_bytes): Likewise.
6036 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6038         * c-common.c (check_case_value): Adjust comment about stripping
6039         NOPs.
6040         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
6041         * c-typeck.c (default_conversion, convert_arguments,
6042         build_modify_expr, convert_for_assignment, store_init_value,
6043         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
6044         manually.  Remove inaccurate comments.
6046 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6047             Joseph S. Myers  <joseph@codesourcery.com>
6049         * varasm.c (do_assemble_alias): Restore comment describing function.
6050         Annotate the target parameter as potentially unused.
6052 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6054         PR target/18551
6055         * config/avr/avr.c (avr_output_function_prologue): Do not use
6056         current_function_name() in a label, use a local label instead.
6058 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
6060         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
6061         flag_finite_math_only, not flag_unsafe_math_optimizations.
6063 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6065         * builtins.c (fold_builtin_1): Update a call to
6066         targetm.fold_builtin.
6067         * hooks.c (hook_tree_tree_bool_null): Rename to
6068         hook_tree_tree_tree_bool_null.  Take one more argument of type
6069         tree.
6070         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
6071         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
6072         hook_tree_tree_tree_bool_null.
6073         * target.h (gcc_target): Update the prototype of fold_builtin.
6074         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
6075         arguments of CALL_EXPR.
6076         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
6077         new prototype.
6079 2005-03-20  Jan Hubicka  <jh@suse.cz>
6081         * cgraph.h (cgraph_node): Add prev_clone pointer.
6082         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
6083         (cgraph_clone_node): Produce doubly linked chain.
6085 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6087         * c-common.c (handle_aligned_attribute, check_function_sentinel,
6088         get_nonnull_operand, handle_sentinel_attribute,
6089         check_function_arguments_recurse): Do not strip NOPS from
6090         INTEGER_CSTs.
6091         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
6092         Likewise.
6093         * c-format.c (get_constant): Likewise.
6094         * c-parser.c (c_parser_postfix_expression): Likewise.
6095         * c-typeck.c (set_init_index): Likewise.
6096         (convert_arguments): Don't check for NOP_EXPR containing integer
6097         constant.
6099 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6101         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
6102         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
6103         Take decomposed arguments of CALL_EXPR.
6104         (fold_builtin_1): Update calls to the functions mentioned
6105         above.
6107 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6109         * c-decl.c (check_bitfield_type_and_width): Require bit-field
6110         width to have integer type.
6111         (build_enumerator): Require enumerator value to have integer type.
6113 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6115         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
6116         to __builtin_inff.
6118 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6120         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
6121         std=iso9899:199x): Correct descriptions.
6123 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6125         * config.gcc: Consistently use solaris2.1[0-9]* instead of
6126         solaris2.1[0-9].
6128 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6130         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
6131         of CALL_EXPR.
6132         (expand_builtin_memcpy, fold_builtin_1): Update calls to
6133         fold_builtin_memcpy.
6135         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
6136         arguments of CALL_EXPR.
6137         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
6138         fold_builtin_found, fold_builtin_1): Update calls to
6139         fold_trunc_transparent_mathfn.
6141 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6143         PR middle-end/20493
6144         * fold-const.c (fold_widened_comparison): Don't optimize casts of
6145         function pointers on targets that require function pointer
6146         canonicalization.
6147         (fold_sign_changed_comparison): Likewise.
6149 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
6151         * combine.c (try_combine): When changing the mode of a hard reg, make
6152         sure that doing so is valid.
6154 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
6156         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
6157         (TARGET_HANDLE_OPTION): Override default.
6158         (avr_handle_option): New function.
6159         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
6160         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
6161         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
6162         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
6163         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
6164         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
6165         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
6166         (TARGET_OPTIONS): Delete.
6167         * config/avr/avr.opt: New file.
6169 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6171         * config/m32r/m32r-protos.h: Remove the prototypes for
6172         call_address_operand, symbolic_operand, seth_add3_operand,
6173         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6174         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6175         two_insn_const_operand, move_src_operand,
6176         move_double_src_operand, move_dest_operand,
6177         eqne_comparison_operator, signed_comparison_operator,
6178         large_insn_p, conditional_move_operand, carry_compare_operand,
6179         m32r_block_immediate_operand, extend_operand,
6180         reg_or_eq_int16_operand, int8_operand, and
6181         reg_or_zero_operand.
6182         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6183         seth_add3_operand, int8_operand, cmp_int16_operand,
6184         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6185         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6186         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6187         move_double_src_operand, move_dest_operand,
6188         eqne_comparison_operator, signed_comparison_operator,
6189         extend_operand, small_insn_p, large_insn_p,
6190         conditional_move_operand, carry_compare_operand,
6191         m32r_block_immediate_operand): Move to predicates.md.
6192         (MAX_MOVE_BYTES): Move to m32r.h.
6193         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6194         * config/m32r/m32r.md: Include predicates.md.
6195         * config/m32r/predicates.md: New.
6197 2005-03-18  James E Wilson  <wilson@specifixinc.com>
6199         PR c++/19769
6200         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
6201         origin.
6203 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6205         * config/mn10300/mn10300-protos.h: Remove the prototypes for
6206         call_address_operand, const_8bit_operand.
6207         * config/mn10300/mn10300.c (call_address_operand,
6208         const_8bit_operand, const_1f_operand): Move to predicates.md.
6209         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
6210         * config/mn10300/mn10300.md: Include predicates.md.
6211         * config/mn10300/predicates.md: New.
6213 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
6215         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
6216         declarations in diagnostics and %E for identifiers, not %s.
6218 2005-03-18  Jan Hubicka  <jh@suse.cz>
6219             Dale Johannesen  <dalej@apple.com>
6221         * basic-block.h (scale_bbs_frequencies_int,
6222         scale_bbs_frequencies_gcov_type): Declare.
6223         * cfg.c (RDIV): New macro.
6224         (update_bb_frequency_for_threading): Fix.
6225         * basic-block.h (scale_bbs_frequencies_int,
6226         scale_bbs_frequencies_gcov_type): New.
6227         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
6228         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
6229         scale_bbs_frequencies_int.
6230         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
6232 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6234         * config/m32r/m32r-protos.h: Remove the prototypes for
6235         call_address_operand, symbolic_operand, seth_add3_operand,
6236         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6237         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6238         two_insn_const_operand, move_src_operand,
6239         move_double_src_operand, move_dest_operand,
6240         eqne_comparison_operator, signed_comparison_operator,
6241         large_insn_p, conditional_move_operand, carry_compare_operand,
6242         m32r_block_immediate_operand, extend_operand,
6243         reg_or_eq_int16_operand, int8_operand, and
6244         reg_or_zero_operand.
6245         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6246         seth_add3_operand, int8_operand, cmp_int16_operand,
6247         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6248         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6249         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6250         move_double_src_operand, move_dest_operand,
6251         eqne_comparison_operator, signed_comparison_operator,
6252         extend_operand, small_insn_p, large_insn_p,
6253         conditional_move_operand, carry_compare_operand,
6254         m32r_block_immediate_operand): Move to predicates.md.
6255         (MAX_MOVE_BYTES): Move to m32r.h.
6256         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6257         * config/m32r/m32r.md: Include predicates.md.
6258         * config/m32r/predicates.md: New.
6260         * config/pa/pa-protos.h: Add prototypes for magic_milli and
6261         shadd_constant_p.
6262         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
6263         symbolic_operand, symbolic_memory_operand,
6264         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
6265         indexed_memory_operand, move_dest_operand, move_src_operand,
6266         prefetch_cc_operand, prefetch_nocc_operand,
6267         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
6268         arith_operand, arith11_operand, pre_cint_operand,
6269         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
6270         ireg_operand, int5_operand, uint5_operand, int11_operand,
6271         uint32_operand, arith5_operand, and_operand, ior_operand,
6272         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
6273         pc_or_label_operand, div_operand, plus_xor_ior_operator,
6274         shadd_operand, movb_comparison_operator,
6275         cmpib_comparison_operator): Move to predicates.md.
6276         (magic_milli, shadd_constant_p): Make it extern.
6277         * config/pa/pa.h (PREDICATE_CODES): Remove.
6278         * config/pa/pa.md: Include predicates.md.
6279         * config/pa/predicates.md: New.
6281         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
6282         predicate.
6284 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6286         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
6287         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
6288         config/alpha/freebsd.h, config/alpha/linux.h,
6289         config/alpha/netbsd.h, config/alpha/osf5.h,
6290         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
6291         config/h8300/h8300-protos.h, config/h8300/h8300.c,
6292         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
6293         doc/cppopts.texi: Update copyright.
6295 2005-03-18  Jan Hubicka  <jh@suse.cz>
6297         PR middle-end/20225
6298         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
6299         too late.
6300         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
6301         called too late.
6303 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6305         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
6306         VEC_safe_push.
6308 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
6310         * combine.c (gen_binary): Remove.
6311         (known_cond, simplify_shift_const, find_split_point,
6312         combine_simplify_rtx, simplify_if_then_else, simplify_set,
6313         simplify_logical, expand_field_assignment, extract_left_shift,
6314         force_to_mode, if_then_else_cond, apply_distributive_law,
6315         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
6316         simplify_comparison, reversed_comparison): Replace with
6317         simplify_gen_binary, simplify_gen_relational or
6318         distribute_and_simplify_rtx.
6319         (distribute_and_simplify_rtx): New function.
6321 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
6322             Paolo Bonzini  <gcc.gnu.org>
6324         * calls.c (setjmp_call_p, special_function_p): Update comments
6325         at the head of the functions.
6327 2005-03-18  Jan Hubicka  <jh@suse.cz>
6329         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
6331         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
6332         function body should be released; do not proactively release function
6333         bodies in non-unit-at-a-time mode.
6335 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
6337         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
6338         mno-fp-ret-in-387 multilib variants.
6340 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
6342         * common.opt (m): Remove.
6343         * opts.c (handle_option): Pass 'm' options to set_target_switch if
6344         table lookup fails.
6345         (common_handle_option): Remove OPT_m case.
6347 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6349         * builtins.c (fold_builtin_bitop): Take decomposed arguments
6350         of CALL_EXPR.
6351         (fold_builtin_1): Update a call to fold_builtin_bitop.
6353         * builtins.c (fold_builtin_signbit): Take decomposed arguments
6354         of CALL_EXPR.
6355         (fold_builtin_1): Update a call to fold_builtin_signbit.
6357 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
6359         PR tree-optimization/20474
6360         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
6361         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
6363 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6365         * config/h8300/h8300-protos.h: Remove prototypes for
6366         general_operand_src, general_operand_dst, single_one_operand,
6367         single_zero_operand, call_insn_operand,
6368         two_insn_adds_subs_operand, small_call_insn_operand,
6369         jump_address_operand, bit_operand, bit_memory_operand,
6370         stack_pointer_operand, const_int_gt_2_operand,
6371         const_int_ge_8_operand, const_int_qi_operand,
6372         const_int_hi_operand, incdec_operand, bit_operator,
6373         nshift_operator, eqne_operator, gtle_operator,
6374         gtuleu_operator, iorxor_operator.
6375         Add prototypes for h8sx_shift_type h8sx_classify_shift and
6376         h8300_ldm_stm_parallel.
6377         * config/h8300/h8300.c (h8sx_shift_type,): Move to
6378         h8300-protos.h.
6379         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
6380         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
6381         (h8300_ldm_stm_parallel): Make it extern.
6382         (h8300_ldm_parallel, h8300_stm_parallel,
6383         h8300_return_parallel, general_operand_src,
6384         general_operand_dst, h8300_dst_operand, h8300_src_operand,
6385         nibble_operand, reg_or_nibble_operand, single_one_operand,
6386         single_zero_operand, call_insn_operand,
6387         two_insn_adds_subs_operand, small_call_insn_operand,
6388         jump_address_operand, bit_operand, bit_memory_operand,
6389         stack_pointer_operand, const_int_gt_2_operand,
6390         const_int_ge_8_operand, const_int_qi_operand,
6391         const_int_hi_operand, incdec_operand, eqne_operator,
6392         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
6393         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
6394         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
6395         nshift_operator): Move to predicates.md.
6396         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
6397         * config/h8300/h8300.md: Include predicates.md.
6398         * config/h8300/predicates.md: New.
6400 2005-03-17  Richard Henderson  <rth@redhat.com>
6402         * config.gcc (ia64*-*-hpux*): Add extra_options.
6403         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
6404         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6405         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
6406         (ia64_tls_size_string, ia64_tune_string): Remove.
6407         (ia64_tune): Init to PROCESSOR_ITANIUM2.
6408         (TARGET_DEFAULT_TARGET_FLAGS): New.
6409         (TARGET_HANDLE_OPTION): New.
6410         (ia64_override_options): Move options parsing ...
6411         (ia64_handle_option): ... here.  New.
6412         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
6413         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
6414         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
6415         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
6416         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
6417         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
6418         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
6419         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
6420         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
6421         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
6422         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
6423         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
6424         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
6425         TARGET_EARLY_STOP_BITS): Remove.
6426         (TARGET_ILP32): Default false.
6427         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
6428         (enum ia64_inline_type): New.
6429         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6430         * config/ia64/ia64.md: Update for new definitions of
6431         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
6432         * config/ia64/ia64.opt: New file.
6433         * config/ia64/ilp32.opt: New file.
6435 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6437         PR target/18380
6438         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
6440 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6442         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
6443         instead of MASK_H8300S.
6444         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
6445         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
6446         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
6447         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
6448         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
6449         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
6450         TARGET_SWITCHES): Remove.
6451         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
6452         TARGET_H8300SX.
6453         * config/h8300/h8300.opt: New.
6455         * config/alpha/alpha.opt, config/arc/arc.opt,
6456         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
6457         notices.
6459 2005-03-17  Ian Lance Taylor  <ian@airs.com>
6461         * gmon.c: Remove.
6463 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
6465         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
6466         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
6467         (TARGET_HANDLE_OPTION): Override default.
6468         (arc_handle_option): New function.
6469         (arc_init): Remove code to set arch_cpu_string.
6470         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
6471         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
6472         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
6473         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
6474         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
6475         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
6476         (arc_rodata_string, TARGET_OPTIONS): Delete.
6477         * config/arc/arc.opt: New file.
6479 2005-03-17  Richard Henderson  <rth@redhat.com>
6481         * doc/extend.texi (Weak Pragmas): New section.
6482         (attribute alias): Clarify that target must be in the same
6483         translation unit.
6485 2005-03-17  Richard Henderson  <rth@redhat.com>
6487         * config/alpha/alpha.opt: New file.
6488         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
6489         of alpha_cpu.
6490         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
6491         alpha_fprm_string, alpha_fptm_string): Make static.
6492         (alpha_tls_size_string): Remove.
6493         (alpha_handle_option): New.
6494         (override_options): Update for alpha_cpu/alpha_tune split.
6495         (alpha_file_start): Likewise.
6496         (TARGET_DEFAULT_TARGET_FLAGS): New.
6497         (TARGET_HANDLE_OPTION): New.
6498         * config/alpha/alpha.h (alpha_tune): Declare.
6499         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
6500         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
6501         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
6502         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
6503         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
6504         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
6505         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
6506         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
6507         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
6508         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
6509         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
6510         (TARGET_DEFAULT): Remove MASK_FP.
6511         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
6512         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
6513         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
6514         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
6515         alpha_tls_size_string): Remove.
6516         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
6517         (attribute tune): Rename from attribute cpu.
6518         * config/alpha/ev4.md: Update to match.
6519         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
6520         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
6521         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
6522         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
6523         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
6524         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
6526 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
6528         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
6529         and return without creating new state if before_nops_num is nonzero.
6530         * config/ia64/ia64.md (first_insn): New attribute.
6531         (alloc): Set it to yes.
6533 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6535         * tree-vectorizer.c (new_vec_stmt_info): Initialize
6536         STMT_VINFO_SUBVARS to NULL.
6537         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6539 2005-03-16 Dale Johannesen  <dalej@apple.com>
6541         * rtlanal.c (find_first_parameter_load):  Rewrite to
6542         return actual first param load or the call if none,
6543         instead of first in block, when not all loads exist.
6545 2005-03-16  Roger Sayle  <roger@eyesopen.com>
6547         * optabs.c (expand_copysign_absneg): Make static.
6548         * optabs.h (expand_copysign_absneg): Delete prototype.
6549         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
6551 2005-03-16  Richard Henderson  <rth@redhat.com>
6553         PR middle-end/15700
6554         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
6555         (alias_pairs): Rename from output_defs.
6556         (find_decl_and_mark_needed): Split out from assemble_alias.
6557         (do_assemble_alias): New.
6558         (assemble_output_def): Remove.
6559         (finish_aliases_1, finish_aliases_2): New.
6560         (process_pending_assemble_output_defs): Remove.
6561         (assemble_alias): Defer aliases for which we don't yet have a
6562         non-external decl for the target symbol.
6563         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
6564         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
6565         * toplev.c (compile_file): Use finish_aliases_2 instead of
6566         process_pending_assemble_output_defs.
6567         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
6568         (process_pending_assemble_output_defs): Remove.
6570 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6572         Fix PR tree-optimization/20489
6574         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
6575         for empty structures.
6577 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6579         Fix PR tree-optimization/20490
6581         * tree-ssa-pre.c (create_expression_by_pieces): Use
6582         force_gimple_operand on result of fold.
6584 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
6586         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
6587         of closing parenthesis.
6589 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
6591         * builtins.c (expand_movstr): Update a call to
6592         fold_builtin_strcpy.
6593         (expand_builtin_strncpy): Update a call to
6594         fold_builtin_strncpy.
6595         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
6596         arguments of CALL_EXPR.
6597         (fold_builtin_1): Update calls to fold_builtin_strcpy and
6598         fold_builtin_strncpy.
6599         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
6600         * tree.h: Update the prototypes of fold_builtin_strcpy and
6601         fold_builtin_strncpy.
6603 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6604             Dorit Naishlos  <dorit@il.ibm.com>
6606         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
6607         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
6608         error.
6610 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6612         * tree-inline.c (walk_type_fields, walk_tree,
6613         walk_tree_without_duplicates): Move from here...
6614         * tree.c: ...to here.
6616 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
6618         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
6619         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
6620         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
6621         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
6622         (version): Define using $(BASEVER_c).
6623         (Makefile, config.status, build/gcov-iov.o): No longer depends on
6624         version.c.
6625         (version.o): Depend on version files; add custom generation command.
6626         (prefix.o): Define BASEVER on command line.
6627         (s-iov): Depend on version files; adjust command.
6628         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
6629         Add gcc-vers.texi.
6630         (gcc-vers.texi): New rule.
6631         (doc/%.info, doc/%.dvi): Add -I . to command line.
6632         (doc/gccinstall.dvi): Likewise.
6633         (PACKAGE): Delete.  All uses replaced with "gcc".
6634         * aclocal.m4: Do not include gcc-version.m4.
6635         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
6636         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
6637         Set is_release based on contents of DEV-PHASE.
6638         Set gcc_version based on contents of BASE-VER.
6639         Define WIN32_REGISTRY_KEY only if the user overrode the default.
6640         * config.in, configure: Regenerate.
6641         * gccbug.in: Determine version of GCC in use at runtime.
6642         * gcov-iov.c: Get version number and development phase from
6643         command line, not by including version.c.
6644         * intl.c: Replace all uses of PACKAGE with "gcc".
6645         * libada-mk.in: Delete unused "gcc_version" variable.
6646         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
6647         * version.c: (VERSUFFIX): New hook for redistributors; adjust
6648         commentary to match.
6649         (version_string): Put together from pieces.
6650         * config/alpha/x-vms: Do not use $(gcc_version).
6651         * config/i386/t-nwld: Likewise.
6652         * doc/include/gcc-common.texi: Include gcc-vers.texi for
6653         version-GCC and DEVELOPMENT.
6655 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6657         PR tree-optimization/17454
6658         * tree.c (tree_size): Add case for TREE_BINFO.
6659         * fold-const.c (fold_checksum_tree): Only clear the overloaded
6660         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
6662 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6664         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
6665         op1 whilst expanding the signed widenening multiply variant.
6667 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
6669         * toplev.c (display_target_options): Avoid unused variable warning if
6670         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
6671         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
6672         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
6673         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
6674         (mips_isa_info): New variable.
6675         (mips_parse_cpu): Remove the first argument and leave the caller
6676         to report errors.
6677         (TARGET_HANDLE_OPTION): Override default.
6678         (mips_handle_option): New function.  Move option validation code from...
6679         (override_options): ...here.  Update calls to mips_parse_cpu.
6680         * config/mips/mips.h (mips_arch_string, mips_tune_string)
6681         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
6682         (SUBTARGET_TARGET_OPTIONS): Delete.
6683         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
6684         (mno-flush-func, mtune=): New options.
6686 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6687             Richard Henderson  <rth@redhat.com>
6689         * real.c (c4x_single_format, c4x_extended_format): Provide values
6690         for signbit_ro for c4x's single and extended floating point formats.
6691         * optabs.c (expand_copysign): Use the floating point format's
6692         signbit_ro for expanding via expand_copysign_absneg, and it's
6693         signbit_rw field for expanding via expand_copysign_bit.
6695 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
6697         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
6698         known_alignment_for_access_p.
6699         (known_alignment_for_access_p): New.
6700         (do_peeling_for_alignment): Field made int instead of bool and renamed
6701         to peeling_for_alignment.
6702         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
6703         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
6704         functionality used to be in vect_analyze_operations.
6705         (vect_analyze_operations): Code to determine vectorization factor was
6706         moved to vect_determine_vectorization_factor.
6707         (vect_enhance_data_refs_alignment): Update to correct alignment when it
6708         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
6709         factor.
6710         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
6711         be part of vect_analyze_operations).
6712         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
6713         creating the guard condition, as the number of iterations may be
6714         constant.
6715         (slpeel_tree_peel_loop_to_edge): Use new name of
6716         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
6717         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
6718         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
6719         (vect_do_peeling_for_alignment): Use fold.
6720         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
6722         (vect_update_inits_of_dr): Renamed to
6723         vect_update_init_of_dr.
6724         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
6725         (vectorizable_store): Fix assertion to use == instead of =.
6727 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
6729         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
6730         call_used_regs for wCG registers.
6732 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6734         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
6735         for non-offsettable memory references to cope with outstanding reload
6736         replacements, take 2.
6738 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
6740         PR target/18668
6741         * config/i386/i386.h (x86_fisttp): New.
6742         (TARGET_FISTTP): New macro.
6743         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
6744         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
6745         instruction when fisttp flag is set.
6746         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
6748         * config/i386/i386.md (type attribute): Add fisttp.
6749         (unit attribute): Set to i387 for fisttp type.
6750         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
6751         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
6752         TARGET_FISTTP.
6753         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
6754         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
6755         macros.
6756         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
6757         patterns for TARGET_FISTTP.  Enable patterns for
6758         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
6759         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
6760         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
6761         implement fisttp x87 insn.
6762         (fix_trunc*_i387_fisttp splitters): New patterns.
6763         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
6764         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
6765         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
6766         clobber.
6767         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
6768         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
6769         Implement using mode macros. Disable patterns for TARGET_FISTTP.
6770         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
6771         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
6772         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
6773         Disable patterns for TARGET_FISTTP.
6774         (fix_trunc*_i387 splitters): Implement usign mode macros.
6775         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
6776         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
6777         (fix_trunx*_sse peephole2s): Implement using mode macros.
6779 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
6781         PR rtl-optimization/20291
6782         * combine.c (try_combine): If splitting fails, re-try with
6783         original combined pattern, i.e. before clobber stripping.
6785 2005-03-14  Eric Christopher  <echristo@redhat.com>
6787         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
6788         STACK_GROWS_DOWNWARD.
6790 2005-03-14  Roger Sayle  <roger@eyesopen.com>
6792         * real.h (struct real_format): Split the signbit field into two
6793         two fields, signbit_ro and signbit_rw.
6794         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
6795         mips_double_format, ieee_extended_motorola_format,
6796         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
6797         ieee_extended_intel_128_format, ibm_extended_format,
6798         mips_extended_format, ieee_quad_format, mips_quad_format,
6799         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
6800         i370_double_format, c4x_single_format, c4x_extended_format,
6801         real_internal_format): Update initializers for new field.
6802         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
6803         real_format structure.
6804         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
6805         field of the real_format structure.
6807 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
6809         Fix PR tree-optimization/20458
6811         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
6812         DECL_EXTERNAL on STRUCT_FIELD tags.
6813         (clear_call_clobbered): Ditto.
6814         * tree-ssa-operands.c (note_addressable): Make sure the original
6815         variable doesn't slip into the addressable list if we have
6816         subvars.
6817         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
6818         tags too.
6820 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
6822         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
6823         (-fwide-exec-charset): Likewise.
6824         (-finput-charset): Likewise.
6825         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
6826         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
6827         * c.opt (Wnormalized): New.
6829 2005-03-14  Devang Patel  <dpatel@apple.com>
6831         * doc/invoke.texi: Add reference to Visibility document.
6833 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
6835         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
6836         MASK_SPLIT_ADDRESSES.
6837         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
6838         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
6839         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
6840         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
6841         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
6842         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
6843         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
6844         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
6845         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
6846         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
6847         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
6848         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
6849         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
6850         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
6851         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
6852         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
6853         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
6854         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
6855         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
6856         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
6857         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
6858         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
6859         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
6860         (TARGET_EXPLICIT_RELOCS): Delete.
6861         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
6862         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
6863         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
6864         (override_options): Set MASK_LONG64 if -mint64 is given and no
6865         -mlongXX option is.  Complain about -mint64 -mlong32.
6866         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
6867         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
6868         * config/mips/mips.opt: New file.
6870 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
6872         * config.gcc (extra_options): New variable for listing option files.
6873         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
6874         * configure.ac (extra_opt_files): New AC_SUBST variable.
6875         (tm_file_list, tm_include_list): Include options.h first.
6876         * configure: Regenerate.
6877         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
6878         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
6879         (s-options-h): New rule.
6880         (options.h): Depend on it.
6881         (TEXI_GCCINT_FILES): Add options.texi.
6882         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
6883         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
6884         * target.h (gcc_target): Add default_target_flags and handle_option.
6885         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
6886         (TARGET_HANDLE_OPTION): New macros.
6887         (TARGET_INITIALIZER): Include them.
6888         * opt-functions.awk (opt_args, nth_arg): New functions.
6889         (switch_flags): Handle the "Target" flag.
6890         (var_args): Delete.
6891         (var_name): Use opt_args and nth_arg.
6892         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
6893         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
6894         macros for the "Mask" and "InverseMask" options.
6895         * opts.h (cl_var_cond): New enum.
6896         (cl_option): Replace the "has_set_value" and "set_value" fields with
6897         "var_cond" and "var_value".
6898         (CL_TARGET): New macro.
6899         (option_enabled, print_filtered_help): Declare.
6900         (decode_options): Move definition.
6901         * opts.c (handle_option): Search for the original option before
6902         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
6903         var_cond and var_value fields.  Use targetm.handle_option to handle
6904         target options.
6905         (decode_options): Set target_flags to targetm.default_target_flags.
6906         (print_filtered_help): Make global.  Handle CL_TARGET.
6907         (option_enabled): New function.
6908         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
6909         (display_target_options, set_target_switch, print_switch_values)
6910         (default_pch_valid_p): Guard uses of target_switches with
6911         #ifdef TARGET_SWITCHES.  Also...
6912         (display_target_options): Display the CL_TARGET entries in cl_options.
6913         (set_target_option): Don't complain about the "" option when
6914         TARGET_SWITCHES is undefined.
6915         (print_switch_values): Use option_enabled.
6916         (default_pch_valid_p): Check cl_options[] when looking for something
6917         that has changed the value of target_flags.
6918         * c.opt: Remove documentation from top of file.
6919         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
6920         * doc/sourecebuild.texi: Refer to the new options documentation
6921         instead of c.opt.  Document machine-specific .opt files.
6922         * doc/tm.texi (target_flags): Say that this variable is declared
6923         by options.h.
6924         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
6925         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
6926         an alternative.
6927         * doc/options.texi: New file.
6929 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
6931         PR middle-end/18628
6932         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
6933         register.
6935 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
6937         PR c++/20280
6938         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
6939         temporary variable of pointer type if an lvalues is required.
6940         (gimplify_modify_expr_rhs): Request an rvalue from it.
6941         (gimplify_expr): Pass fallback on.
6943 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
6945         * cfgbuild.c: Update comments.
6947 2005-03-14  Roger Sayle  <roger@eyesopen.com>
6949         PR rtl-optimization/17236
6950         * optabs.c (expand_doubleword_mult): New helper function split out
6951         from expand_binop.  Permute the order in which instructions are
6952         emitted to minimize the number of simultaneously live registers.
6953         (expand_binop): Call expand_doubleword_mult to synthesize a double
6954         word multiplication.
6956 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
6958         * basic-block.h: Update the prototypes of cached_make_edge and
6959         rtl_make_eh_edge.
6960         * cfg.c (cached_make_edge): Take edge_cache representing one
6961         row of the adjacency matrix of edges.
6962         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
6963         (make_edges): Initialize edge_cache to represent one row of
6964         the adjacency matrix of edges.
6966 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
6968         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
6969         New functions.
6970         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
6971         Remove unused removed_phis variable.
6972         (conditional_replacement): Use build1/build2.
6973         (abs_replacement): Use last_and_only_stmt and build1/build2.
6975 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
6977         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
6978         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
6979         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
6980         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
6981         * c-common.c (handle_novops_attribute): New function.
6982         (c_common_attribute_table): Add "no vops" entry.
6983         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
6984         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
6985         * tree-ssa-operands.c (get_call_expr_operands): Do not
6986         create virtual operands for calls with ECF_NOVOPS flag.
6987         * tree.h (DECL_IS_NOVOPS): New macro.
6988         (struct tree_decl): Add novops_flag.
6989         (ECF_NOVOPS): New constant.
6991 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
6993         PR target/17688
6994         * config/i386/i386.c (x86_use_himode_fiop): New.
6995         (x86_use_simode_fiop): Rename from x86_use_fiop.
6996         * config/i386/i386.h (x86_use_himode_fiop): Declare.
6997         (TARGET_USE_HIMODE_FIOP): New.
6998         (x86_use_simode_fiop): Rename from x86_use_fiop.
6999         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
7001         * config/i386/i386.md (X87MODEI12): New mode macro define.
7002         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
7003         to implement x87 FP compare with HImode input operands.
7004         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
7005         Use X87MODEI12 mode macro to handle HImode input operands.
7006         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
7007         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
7008         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
7009         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
7010         macro to implement x87 operators with HImode input operands.
7011         (fop splitters): Use X87MODEI12 mode macro to handle HImode
7012         input operands.
7014 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7016         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
7017         integer_zerop.
7018         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
7019         constants invariant.
7021 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7023         * basic-block.h (BB_VISITED): Removed.
7024         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
7026 2005-03-14  Falk Hueffner  <falk@debian.org>
7028         PR bootstrap/20424
7029         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
7031 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7033         * ggc-zone.c: Fix comment typos.
7035         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
7036         stringpool.c, config/mips/mips-protos.h: Update copyright.
7038 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7040         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
7041         throughout with its typedef, "rtx".
7042         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
7043         (rs6000_tls_symbol_ref_1): Remove inline keyword.
7044         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
7045         regs in comment to match code.
7047 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7049         * except.c (check_handled): Make it static.
7050         * except.h: Remove the corresponding prototype.
7052         * function.c (get_func_frame_size): Make it static.
7053         * function.h: Remove the corresponding type.
7055         * regclass.c (reg_class_superclasses, reg_class_subclasses):
7056         Make them static.
7057         * hard-reg-set.h: Remove the corresponding declarations.
7059         * tree-cfg.c (verify_stmts): Check that
7060         bb_for_stmt (stmt) == bb for every PHI node and statement.
7062 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7064         * config.gcc: Remove excess indentation.
7065         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
7067 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7069         PR middle-end/19331
7070         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
7071         * fold-const.c (fold_sign_changed_comparison): Likewise.
7072         (fold_binary): Optimize comparisons against widened operands if
7073         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
7075 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7077         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
7078         (sparc_override_options): Initialize it.
7079         (sparc_struct_value_rtx): Set it on the MEM to be returned.
7081 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
7083         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
7084         (reg_or_none500mem_operand): New predicate.
7085         (zero_reg_mem_operand): New predicate.
7086         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
7087         to reg_or_none500mem_operand.
7088         (extendsfdf2_fpr): Add MEM alternative.
7089         (extenddftf2_internal): Change operand2 predicate to
7090         zero_reg_mem_operand.
7092 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7094         * ggc-zone.c: Rewritten.
7096         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
7097         if there are none.
7098         * configure.ac: Define GGC_ZONE for --with-gc=zone.
7099         * config.in: Regenerated.
7100         * configure: Regenerated.
7101         * gengtype.c (write_types_process_field, write_func_for_structure):
7102         Pass new argument to gt_pch_note_object.
7103         * ggc-common.c (struct ptr_data): Add TYPE.
7104         (gt_pch_note_object): Take TYPE argument and save it.
7105         (call_count): Update call to ggc_pch_count_object.
7106         (call_alloc): Update call to ggc_pch_alloc_object.
7107         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
7108         file.
7109         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
7110         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
7111         (ggc_alloc_zone_stat): Delete.
7112         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
7113         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
7114         (ggc_pch_alloc_object): Update prototypes.
7115         (garbage_zone): Delete.
7116         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
7117         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
7118         pointers.
7119         (tree_id_zone): New variable.
7120         (ggc_alloc_cleared_zone): Remove unused.
7121         (ggc_alloc_zone): Define.
7122         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
7123         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
7124         ggc_alloc_zone_stat.
7125         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
7126         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
7127         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
7128         (make_node_stat): Likewise.  Use tree_id_zone.
7130 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7131             Joseph S. Myers  <joseph@codesourcery.com>
7133         * configure.ac: Check for MIPS TLS.
7134         * configure: Regenerated.
7135         * config/mips/mips-protos.h (enum mips_symbol_type): Add
7136         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
7137         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
7138         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
7139         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7140         (mips_classify_symbol, mips_symbolic_constant_p)
7141         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
7142         (mips_tls_operand_p, mips_call_tls_get_addr)
7143         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
7144         (mips_tls_symbol_ref_1): New functions.
7145         (mips_legitimize_address, mips_legitimize_const_move): Call
7146         mips_legitimize_tls_address.
7147         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
7148         for MIPS16.
7149         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
7150         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
7151         (mips_char_to_class): Document V1_REG.
7152         (HAVE_AS_TLS): Provide default.
7153         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
7154         constants.
7155         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
7156         !TARGET_ABICALLS.
7157         (tls_get_tp_<mode>): New instruction.
7159 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7161         * configure.ac: Update checks for target tools.
7162         * configure: Regenerated.
7164 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7166         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
7168 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7170         * expmed.c (expand_mult): Use synthetic multiplication sequences for
7171         more classes of DImode multiplication by constant.  Allow both
7172         multiplication by small negative constants (by performing a
7173         multiplication by a positive constant and negating the result) and
7174         multiplications by large powers of two, by using a left shift.
7176 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7178         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
7179         of basic blocks into work_stack.
7181         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
7182         config/mips/vr.h: Update copyright.
7184         * c-decl.c (c_init_decl_processing): Remove useless calls to
7185         build_function_type.
7187         * builtins.c (fold_trunc_transparent_mathfn,
7188         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
7189         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
7190         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
7191         fold_builtin_strcpy, fold_builtin_strncpy,
7192         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
7193         TREE_TYPE (exp).
7195         * builtins.c (expand_builtin_mathfn_3): Remove local variable
7196         before_call.
7198         * lambda-code.c (lambda_compute_auxillary_space): Remove local
7199         variable determinant.
7201         * tree-cfg.c (group_case_labels): Remove local variable type.
7203         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
7204         variable ann.
7206         * tree-ssa-phiopt.c (value_replacement): Remove local variable
7207         result.
7209 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
7211         PR target/18251
7212         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
7213         (*movmemqi_insn): Delete.
7214         (*movmemhi): Delete.
7216 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7218         * builtins.c (fold_builtin_classify): Take decomposed
7219         arguments of CALL_EXPR.
7220         (fold_builtin_1): Update a call to fold_builtin_classify.
7222 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
7224         PR c/20402
7225         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
7226         through into call to parser_xref_tag after parse error.
7227         (c_parser_struct_declaration): Consistently return NULL_TREE on
7228         error.
7230 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
7232         * tree-flow-inline.h (ref_contains_array_ref): New function.
7233         (lookup_subvars_for_var): Ditto.
7234         (get_subvars_for_var): Ditto.
7235         (var_can_have_subvars): Ditto.
7237         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
7238         (struct subvar): New type.
7240         * tree-dfa.c (okay_component_ref_for_subvars): New function.
7242         * tree-optimize.c (init_tree_optimization_passes): Call
7243         pass_create_structure_vars.
7245         * tree-ssa-alias.c: Include vec.h.
7246         (init_alias_info): Don't auto-clear call clobbered on struct-field
7247         tags.
7248         (compute_flow_insensitive_aliasing): Handle subvars.
7249         (group_aliases): Handle STRUCT_FIELD aliases.
7250         (setup_pointers_and_addressables): Ditto.
7251         Don't mark variables non-addressable if they still have
7252         addressable subvars.
7253         Also mark subvars addressable when the real variable is marked
7254         addressable.
7255         (add_pointed_to_var): Try to prune the pointed-to set by only
7256         pointing to subvars when possible.
7257         Otherwise, make sure we set addresses_needed and pt_vars to
7258         properly include subvars.
7259         (bitpos_of_field): New function.
7260         (push_fields_onto_fieldstack): Ditto.
7261         (get_or_create_used_part_for): Ditto.
7262         (create_overlap_variables_for): Ditto.
7263         (find_used_portions): Ditto.
7264         (create_structure_vars): Ditto.
7265         (pass_create_structure_vars): New structure.
7267         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
7268         (get_expr_operands): Handle subvars.  Also try to turn
7269         COMPONENT_REF accesses into must-defs now that we can accurately
7270         portray it.
7271         (note_addressable): Try to only mark as addressable those subvars
7272         we know a COMPONENT_REF touches.
7273         (overlap_subvar): New function.
7275         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
7276         Handle subvar storing.
7277         (vect_address_analysis): Update caller of vect_object_analysis.
7279         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
7281         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
7282         (STMT_VINFO_SUBVARS): New macro.
7284         * common.opts: add flag_tree_salias.
7286         * opts.c (decode_options): flag_tree_salias defaults to on.
7288         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
7290         * doc/tree-ssa.texi: Document structural alias analysis.
7292 2005-03-12  Steven Bosscher  <stevenb@suse.de>
7294         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
7295         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
7296         * tree-ssa-operands.c (get_expr_operands): Likewise.
7297         (get_expr_operands): Likewise for ERROR_MARK.
7299 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7301         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
7302         var.
7304         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
7305         removed_phis.
7307         * tree-ssa-pre.c (compute_avail): Remove local variable val.
7308         (mark_operand_necessary): Remove local variable ver.
7310         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
7311         variable prefix_len.
7313         * value-prof.c (mod_subtract_transform): Remove local variable
7314         value.
7316         * builtins.c (fold_builtin_exponent): Take decomposed
7317         arguments of CALL_EXPR.
7318         (fold_builtin_1): Update a call to fold_builtin_exponent.
7320         * builtins.c (fold_builtin_logarithm): Take decomposed
7321         arguments of CALL_EXPR.
7322         (fold_builtin_1): Update a call to fold_builtin_logarithm.
7324         * c-decl.c (c_init_decl_processing): Remove local variables
7325         ptr_ftype_void and ptr_ftype_ptr.
7327         * gimplify.c (gimplify_expr): Remove local variables r0 and
7328         r1.
7330         * reg-stack.c (move_for_stack_reg): Remove local variable
7331         push_insn.
7332         (compare_for_stack_reg): Remove local variable flags_user.
7333         (convert_regs_1): Remove local variable deleted.
7335         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
7336         variable new_cond.
7337         (combine_blocks): Remove local variables exits and new_e.
7339         * tree-inline.c (expand_call_inline): Remove local variable
7340         decl.
7342         * tree-ssa-live.c (create_ssa_var_map,
7343         calculate_live_on_entry): Remove local variable snn.
7345 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
7347         * c-lex.c (c_lex_with_flags): Add parameter to call to
7348         cpp_spell_token.
7350 2005-03-11  Per Bothner  <per@bothner.com>
7352         * c-tree.h (struct c_declarator): New id_loc field.
7353         * c-pragma.h (c_lex_with_flags): Take position reference.
7354         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
7355         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
7356         (c_lex): Pass dummy location to c_lex_with_flags.
7357         * c-parser.c (c_lex_one_token): Set c_token's location using
7358         c_lex_with_flags, instead of input_location, which might be "ahead".
7359         (c_parser_direct_declarator): Set declarator's id_loc from
7360         c_token's id_loc.
7361         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
7362         declarator's id_loc, rather than probably-imprecise input_location.
7363         (build_id_declarator): Initialize c_declarator's id_loc field.
7365 2005-03-11  Roger Sayle  <roger@eyesopen.com>
7367         PR middle-end/20419
7368         * builtins.c (expand_builtin_signbit): Force the signbit's word
7369         into an integer register to avoid SUBREGs of floating point modes.
7371 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7373         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
7374         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
7375         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
7376         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
7378 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
7380         PR rtl-optimization/20306
7381         * expr.c (emit_move_complex): Set try_int false if mode is
7382         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
7383         emit_block_move if try_int is true.
7385 2005-03-11  Richard Henderson  <rth@redhat.com>
7387         PR target/20415
7388         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
7389         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
7390         to match.
7392 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7394         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
7395         (TARGET_FIX_VR4130): New macro.
7396         (TARGET_OPTIONS): Add -mfix-vr4130.
7397         (ISA_HAS_MACCHI): New macro.
7398         (ASM_SPEC): Add -mfix-vr4130.
7399         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
7400         (override_options): Handle mips_fix_vr4130_string.
7401         (mips_avoid_hazards): Clear all_noreorder_p
7402         if we're working around VR4130 errata and the macc alternatives
7403         are not available.
7404         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
7405         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
7406         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
7407         (MULTILIB_DEFAULTS): Remove leading "march=".
7408         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
7409         if no architecture option is given.
7410         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
7411         VR4130 multilibs.
7412         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
7413         * doc/invoke.texi: Document -mfix-vr4130.
7415 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7417         * config/mips/mips.c (override_options): Only warn about -mint64
7418         deprecation if TARGET_INT64.
7420 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7422         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
7423         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
7424         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
7425         are non-specific regarding the nonnull parameter positions.
7426         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
7427         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
7428         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
7429         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
7431         * builtins.def: Use the non-specific "nonnull" attibute lists.
7433 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7435         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7436         single_pred_edge, single_succ, single_pred): Improve comments.
7438 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7440         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7441         single_pred_edge, single_succ, single_pred): New inline functions.
7442         * bb-reorder.c (rotate_loop, find_traces_1_round,
7443         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
7444         duplicate_computed_gotos): Use the single_succ/pred functions.
7445         * cfganal.c (forwarder_block_p): Ditto.
7446         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7447         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7448         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
7449         merge_seq_blocks): Ditto.
7450         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
7451         * cfglayout.c (fixup_reorder_chain): Ditto.
7452         * cfgloop.c (mark_single_exit_loops, update_latch_info,
7453         canonicalize_loop_headers, verify_loop_structure): Ditto.
7454         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
7455         mfb_update_loops, create_preheader, force_single_succ_latches,
7456         create_loop_notes): Ditto.
7457         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
7458         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
7459         commit_one_edge_insertion, purge_dead_edges,
7460         cfg_layout_can_merge_blocks_p): Ditto.
7461         * except.c (sjlj_emit_function_enter): Ditto.
7462         * flow.c (init_propagate_block_info): Ditto.
7463         * function.c (thread_prologue_and_epilogue_insns): Ditto.
7464         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
7465         insert_insn_end_bb): Ditto.
7466         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
7467         find_if_case_2): Ditto.
7468         * lambda-code.c (perfect_nestify): Ditto.
7469         * lcm.c (optimize_mode_switching): Ditto.
7470         * loop-doloop.c (doloop_modify): Ditto.
7471         * loop-init.c (loop_optimizer_init): Ditto.
7472         * loop-iv.c (simplify_using_initial_values): Ditto.
7473         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
7474         * loop-unswitch.c (unswitch_loop): Ditto.
7475         * modulo-sched.c (generate_prolog_epilog): Ditto.
7476         * predict.c (combine_predictions_for_insn, estimate_probability,
7477         tree_estimate_probability, last_basic_block_p,
7478         estimate_bb_frequencies): Ditto.
7479         * profile.c (branch_prob): Ditto.
7480         * regrename.c (copyprop_hardreg_forward): Ditto.
7481         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
7482         * tracer.c (layout_superblocks): Ditto.
7483         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
7484         cfg_remove_useless_stmts_bb, cleanup_control_flow,
7485         cleanup_control_expr_graph, disband_implicit_edges,
7486         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
7487         tree_verify_flow_info, tree_make_forwarder_block,
7488         tree_forwarder_block_p, remove_forwarder_block,
7489         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
7490         * tree-if-conv.c (tree_if_conversion): Ditto.
7491         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7492         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
7493         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
7494         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
7495         copy_loop_headers): Ditto.
7496         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
7497         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
7498         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
7499         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
7500         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
7501         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
7502         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
7503         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
7504         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
7505         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
7506         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
7507         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
7508         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
7509         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
7510         slpeel_add_loop_guard): Ditto.
7512 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
7514         PR tree-optimization/15784
7515         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
7516         and -1 - A to ~A.
7518         * stmt.c (expand_case): Don't change index_type.  Convert minval
7519         to the proper type.
7521         PR tree-optimization/20130
7522         * fold-const.c (fold): Fold x * -1 into -x.
7524 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7526         PR rtl-optimization/20331
7527         * rtlanal.c (modified_between_p): Check its address first for MEM.
7528         (modified_in_p): Likewise.
7530 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
7532         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
7534 2005-03-10  Steven Bosscher  <stevenb@suse.de>
7536         * expr.c (expand_expr_real_1): If possible, use a conditional
7537         move for expanding MIN_EXPR and MAX_EXPR.
7538         Use temp for moving around rtx-en.
7540 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
7542         PR rtl-opt/20412
7543         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
7544         correct mode.
7546 2005-03-10  Roger Sayle  <roger@eyesopen.com>
7548         * builtins.c (expand_builtin_signbit): Extend to handle floating
7549         point modes wider than the largest integer type, using the
7550         operand_subword_force function to obtain the signbit's word.
7552 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7554         PR target/20322
7555         * combine.c (try_combine): If recog_for_combine added CLOBBERs
7556         to NEWI2PAT, fail to combine if they are used by NEWPAT.
7558 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
7560         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
7562 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
7564         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
7565         type void.
7566         (perform_edge_inserts): Unconditionally call
7567         free_dominator_info.
7569         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
7571 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
7573         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
7575 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
7577         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
7579         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
7580         gcc_unreachable.
7581         (rtl_register_value_prof_hooks,
7582         tree_value_profile_transformations,
7583         tree_register_value_prof_hooks): Likewise.
7584         * var-tracking.c (stack_adjust_offset_pre_post,
7585         variable_htab_free, variable_union, dataflow_set_different_2,
7586         count_uses, variable_was_changed, set_frame_base_location,
7587         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
7588         vt_add_function_parameters): Likewise.
7589         * varasm.c (named_section_real, named_section, make_decl_rtl,
7590         asm_emit_uninitialised, assemble_integer, decode_addr_const,
7591         const_hash_1, compare_constant, copy_constant, force_const_mem,
7592         output_constant_pool_2, output_constant_pool_1, output_constant,
7593         output_constructor, make_decl_one_only, decl_tls_model,
7594         default_no_named_section, default_elf_select_section_1,
7595         default_unique_section_1): Likewise.
7596         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
7597         * vmsdbgout.c (addr_const_to_string): Likewise.
7599         PR c++/20375
7600         * function.c (struct assign_parm_data_one): Remove last_named
7601         field.
7602         (assign_parm_find_data_types): Don't determine last_named.
7603         Reorder named_parm determination.
7604         (assign_parms): Only setup varargs on the last non-varadic
7605         parameter.
7607 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
7609         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
7610         sda base address on medium model.
7612 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
7614         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
7615         * cfgloop.c (flow_loop_nodes_find): Export.
7616         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
7617         Declare.
7618         * cfgloopmanip.c (fix_loop_structure): New function.
7619         * predict.c (predict_loops): Clean up the loops information.
7620         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
7621         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
7622         loop structure.
7623         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
7624         (rewrite_into_loop_closed_ssa): Declaration changed.
7625         * tree-loop-linear.c (linear_transform_loops): Add argument to
7626         rewrite_into_loop_closed_ssa call.
7627         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
7628         * tree-ssa-loop-im.c (move_computations): Ditto.
7629         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
7630         * tree-vectorizer.c (vectorize_loops): Ditto.
7631         * tree-optimize.c: Include cfgloop.h.
7632         (execute_todo): Choose whether to call cleanup_tree_cfg or
7633         cleanup_tree_cfg_loop.
7634         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
7635         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
7636         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
7637         cleanup_tree_cfg_loop call.
7638         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
7639         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
7640         work on part of cfg.
7642 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7644         PR inline-asm/20314
7645         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
7646         with multiple alternatives.
7648         * stmt.c (parse_output_constraint): Fix a typo.
7650 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
7652         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
7653         assembly directive instead of deprecated "no-generics".
7655 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
7657         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
7658         for non-offsettable memory references to cope with outstanding reload
7659         replacements.
7660         * config/s390/s390.md ("reload_outti"): Call find_replacement to
7661         avoid losing outstanding address reloads.
7662         ("reload_outdi", "reload_outdf"): Likewise.
7664 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7666         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
7667         code.  Add more cbrt transformations.
7669 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7671         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
7673 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7675         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
7676         NULL_TREE when a given tree is not simplified.
7677         (fold): Return the original tree when any of the functions
7678         mentioned above NULL_TREE.
7680         * fold-const.c (fold_unary, fold_binary): Take decomposed
7681         arguments, code, type, op0, and op1 in case of fold_binary.
7682         (fold): Update calls to fold_unary and fold_binary.
7684 2005-03-09  Roger Sayle  <roger@eyesopen.com>
7686         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
7687         a fndecl and an arglist instead of a CALL_EXPR, exp.
7689 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7691         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
7693         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
7695         * expr.c (expand_assignment): Remove orig_to_rtx.
7697         * fold-const.c (int_const_binop): Remove no_overflow.
7699         * ifcvt.c (noce_emit_move_insn): Remove inmode.
7701         * loop-iv.c (get_biv_step_1): Remove lhs.
7703         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
7705         * real.c (real_nan): Remove neg.
7707         * function.c (thread_prologue_and_epilogue_insns): Remove i
7708         and newinsn.
7710         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
7711         tb.
7713         * tree-eh.c (tree_could_trap_p): Remove idx.
7715         * tree-into-ssa.c (ann): Remove ann.
7717         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
7719         * tree-sra.c (decide_block_copy): Remove inst_count.
7721         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
7723         * tree-ssa-loop-im.c (lhs): Remove.
7725         * cfgbuild.c (state, STATE, SET_STATE,
7726         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
7727         make_edges.
7728         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
7729         (find_basic_blocks): Set the state of each basic block to
7730         BLOCK_NEW.
7732 2005-03-08  Jeff Law  <law@redhat.com>
7734         * tree-cfg.c (cleanup_control_flow): If removal of a computed
7735         goto results in the removal of edges in the CFG, then we need
7736         to recompute dominators.
7738 2005-03-09  Ben Elliston  <bje@au.ibm.com>
7740         * c-common.c (c_do_switch_warnings): Comment fix.
7742 2005-03-08  Julian Brown  <julian@codesourcery.com>
7744         * Patch from 2005-03-08 reverted for causing regressions and
7745         ppc-darwin bootstrap failure.
7747 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
7749         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
7750         Define the real function for ppc-darwin.
7751         * c-typeck.c (convert_arguments): Check for target-specific
7752         invalid argument call to unprototyped function.
7753         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
7754         New Macro.
7755         * target.h (invalid_arg_for_unprototyped_fn): New field
7756         in struct calls.
7757         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
7758         default target hook.
7759         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
7760         Declare.
7762 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7764         * c-typeck.c (constructor_stack, constructor_range_stack,
7765         initializer_stack): Make them static.
7767         * cfg.c (rbi_pool): Make it static.
7769         * gimple-low.c (lower_stmt_body): Make it static.
7770         * tree-flow.h: Remove the corresponding prototype.  Don't
7771         declare lower_data.
7773         * sched-deps.c (cache_size): Make it static.
7775         * stor-layout.c (lang_adjust_rli): Make it static.
7777 2005-03-08  Julian Brown  <julian@codesourcery.com>
7779         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
7780         from being used for symbols with vague linkage when
7781         HAVE_GAS_COMDAT_GROUP is true.
7783 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
7785         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
7786         nlabel == JUMP_LABEL (jump).
7788 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7790         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
7791         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
7792         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
7793         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
7795 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
7797         PR c/14411
7798         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
7799         * c-common.c (handle_returns_twice): New function.
7800         (c_common_attribute_table): Declare eturns_twice' attribute.
7801         * doc/extend.texi: Document eturns_twice' attribute.
7802         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
7803         (struct tree_decl): Add returns_twice_flag.
7805 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7807         * tree-ssa-phiopt.c: Fix a comment typo.
7809         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
7810         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
7811         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
7812         copyright.
7814 2005-03-08  Richard Henderson  <rth@redhat.com>
7816         * config/alpha/alpha.c (code_for_builtin): Replace special-case
7817         builtin codes with ctzdi2, clzdi2, popcountdi2.
7818         (struct alpha_builtin_def): Add is_const.
7819         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
7820         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
7821         (alpha_init_builtins): Init them.  Set nothrow and const attributes
7822         on builtins.
7823         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
7824         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
7825         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
7826         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
7827         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
7828         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
7829         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
7830         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
7831         (TARGET_FOLD_BUILTIN): New.
7832         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
7833         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
7834         (ffsdi2): Use ctz.
7835         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
7837 2005-03-08  Ira Rosen  <irar@il.ibm.com>
7839         PR tree-optimization/20122
7840         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
7841         condition of access function instead of base.
7843 2005-03-07  Jeff Law  <law@redhat.com>
7844             Steven Bosscher  <stevenb@suse.de>
7846         * tree-cfg.c (find_taken_edge_computed_goto): New function.
7847         (find_taken_edge): Call find_taken_edge_computed_goto as
7848         appropriate.  Allow any gimple invariant rather than just
7849         INTEGER_CST for VAL.
7850         (cleanup_control_flow): Cleanup a computed goto which has turned
7851         into a simple goto.
7852         (tree_merge_blocks): If block B has any forced labels, move
7853         them to the start of block A.
7854         * tree-ssa-dom.c (thread_across_edge): Allow threading across
7855         computed gotos as well.
7856         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
7857         removal of unnecessary computed gotos too.
7858         (lookup_redirection_data): Fix type of INSERT argument.  Callers
7859         updated.
7861 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7863         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
7864         Remove trailing spaces.
7866         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
7867         unshare_all_trees): Make them static.
7868         * tree-gimple.h: Remove the corresponding prototypes.
7870         * diagnostic.h: Remove unused prototype
7871         debug_output_buffer.
7872         * modulo-sched.c: Remove unused prototype
7873         set_row_column_for_ps.
7875         * tree-ssa-phiopt.c (tree_ssa_phiopt,
7876         replace_phi_edge_with_variable): Remove unused variable i.
7878 2005-03-07  Per Bothner  <per@bothner.com>
7880         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
7882 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
7884         PR tree-opt/17671
7885         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
7886         bbs on the COND_EXPR instead of the PHI_NODEs.
7887         (candidate_bb_for_phi_optimization): Remove.
7888         (replace_phi_with_stmt): Rename to ...
7889         (replace_phi_edge_with_variable): this and change so that we
7890         replace the phi argument instead of removing the PHI.
7891         (conditional_replacement): Change so we deal with PHI with more
7892         than two arguments.
7893         (value_replacement): Likewise.
7894         (abs_replacement): Likewise.
7896 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
7898         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
7899         output_e500_flip_gt_bit.
7901         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
7902         as bit 31.
7903         (rs6000_generate_compare): Fix logic to look at the correct bits.
7904         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
7905         Look at GT bit.
7906         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
7907         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
7908         gen_move_from_CR_gt_bit.
7910         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
7911         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
7912         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
7914         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
7915         (E500_CR_IOR_COMPARE): New constant.
7917 2005-03-08  Earl Chew <earl_chew@agilent.com>
7918             David Billinghurst <David.Billinghurst@riotinto.com>
7920         * config/i386/host-cygwin.c: New file to support precompiled
7921         headers on cygwin
7922         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
7923         * config.host: Use above files for cygwin host.
7925 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
7927         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
7928         ordering ops from earlier change.
7930 2005-03-07  Per Bothner  <per@bothner.com>
7932         Various fixes to allow us to again build if --enable-mapped-location:
7933         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
7934         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
7935         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
7936         local variable loc. Change logic appropriately.
7937         * tree-vect-transform.c (vect_finish_stmt_generation): Use
7938         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
7939         * c-parser.c (c_parser_for_statement): Initialize loc variable.
7940         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
7941         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
7943 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
7945         PR rtl-optimization/19683
7946         * reload1.c (choose_reload_regs): Pass the number of bits, not the
7947         number of bytes, to smallest_int_for_mode.  Fix arguments to
7948         REG_CANNOT_CHANGE_MODE_P.
7950 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7952         * reorg.c (relax_delay_slots): Check that the jump is
7953         conditional before trying to invert it.
7955 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
7957         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
7958         Make them static.
7960         * calls (stack_arg_under_construction): Make it static.
7962         * flow.c (regs_live_at_setjmp): Make it static.
7963         * flow.h: Remove the corresponding prototype.
7965         * reload1.c (reload_startobj, reload_firstobj,
7966         something_needs_operands_changed, reload_inherited,
7967         reload_inheritance_insn, reload_override_in,
7968         reload_spill_index): Make them static.
7970         * recog.c (verify_changes): Make it static.
7971         * recog.h: Remove the corresponding prototype.
7973         * cfgbuild.c (find_sub_basic_blocks): Remove.
7974         * basic-block.h: Remove the corresponding prototype.
7975         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
7976         in comments.
7977         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
7979         * tree-ssa-operands.c (check_build_stmt): Remove.
7981         * stor-layout.c (set_alignment): Remove.
7982         * tree.h: Remove the corresponding prototype.
7984         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
7986         * tree-ssa-dce.c (control_dependence_map,
7987         visited_control_parents): Make them static.
7989         * cfghooks.c (verify_flow_info): Remove local variable
7990         num_bb_notes.
7992         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
7993         last_bb_seen.
7995         * loop-unswitch.c (unswitch_loop): Remove local variable src.
7997 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
7999         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
8001 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
8003         * config/ia64/hpux.h (LINK_SPEC): Add -z.
8004         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
8005         PARALLEL for an empty structure.
8007 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8009         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
8011         * fold-const.c (fold_binary): Unroll the very first "for"
8012         loop.
8014 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
8016         * config/rs6000/predicates.md (branch_comparison_operator): Remove
8017         redundant match_code test.
8018         (scc_comparison_operator): Swap match_operand and match_code
8019         tests.
8020         (branch_positive_comparison_operator): Same.
8021         (trap_comparison_operator): Use comparison_operator and swap with
8022         match_code test.
8024 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8026         PR target/20288
8027         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
8028         (out_movhi_r_mr): Read low byte of volatile MEM first.
8029         (out_movhi_mr_r): Write high byte of volatile MEM first.
8031 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8033         * cselib.c (reg_values, reg_values_size): Make them static.
8035         * cse.c (cse_reg_info_table): Make it static.
8037         * fold-const.c (fold_unary): Use build1 instead of copy_node.
8039 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
8041         * cse.c (find_best_addr): Use canon_for_address.
8043 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8045         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
8046         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
8047         SUBREG and MEM, respectively.
8049         * fold-const.c (fold_binary): Use code instead of t.
8051         * fold-const.c (optimize_minmax_comparison): Take decomposed
8052         arguments code, type, op0, and op1 instead of t.
8053         (fold_binary): Update a call to optimize_minmax_comparison.
8055         * fold-const.c (fold_range_test): Take decomposed arguments
8056         code, type, op0, and op1 instead of t.
8057         (fold_binary): Update a call to fold_range_test.
8059         * fold-const.c (fold_binary_op_with_conditional_arg): Take
8060         decomposed arguments code, type, op0, and op1 instead of t.
8061         (fold_binary): Update a call to fold_range_test.
8063 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8065         * fold-const.c (fold_binary): Avoid directly using the original
8066         expression t as much as possible.
8068 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8070         * c-semantics.c (build_stmt): Use TYPE_P instead of
8071         IS_NON_TYPE_CODE_CLASS.
8072         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
8073         (NON_TYPE_CHECK): Use TYPE_P instead of
8074         IS_NON_TYPE_CODE_CLASS.
8076         * fold-const.c (fold): Remove handling of binary expressions.
8078 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
8080         * doc/c-tree.texi: Wrap comments in @r{}.
8081         * doc/cpp.texi: Likewise.
8082         * doc/cppinternals.texi: Likewise.
8083         * doc/extend.texi: Likewise.
8084         * doc/md.texi: Likewise.
8085         * doc/objc.texi: Likewise.
8086         * doc/sourcebuild.texi: Likewise.
8087         * doc/tm.texi: Likewise.
8088         * doc/tree-ssa.texi
8090 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8092         * predict.c (apply_return_prediction): Standardize PHI chain
8093         walking.
8094         * tree-ssa.c (ssa_redirect_edge): Likewise.
8096         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
8097         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
8098         Update copyright.
8100         * tree-phinodes.c (remove_phi_node): Drop the last argument.
8101         * tree-flow.h: Adjust the prototype for remove_phi_node.
8102         * lambda-code.c (perfect_nestify): Adjust a call to
8103         remove_phi_node.
8104         * tree-cfg.c
8105         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
8106         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
8107         Likewise.
8108         * tree-ssa-dce.c (remove_dead_phis): Likewise.
8109         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
8110         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8111         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
8113         * combine.c (simplify_and_const_int): Use gen_int_mode instead
8114         of GEN_INT (trunc_int_for_mode (...)).
8115         * loop-iv.c (iv_number_of_iterations): Likewise.
8116         * postreload.c (reload_cse_move2add): Likewise.
8117         * simplify-rtx.c (simplify_const_unary_operation,
8118         simplify_const_binary_operation): Likewise.
8119         * stor-layout.c (get_mode_bounds): Likewise.
8121         * fold-const.c (fold_binary): New.
8122         (fold): Call fold_binary on binary expressions.
8124 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
8126         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
8127         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
8128         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
8129         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
8130         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
8132 2005-03-04  Devang Patel  <dpatel@apple.com>
8134         PR tree-optimization/18815
8135         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8136         loops with zero exit edges.
8138 2005-03-04  Devang Patel  <dpatel@apple.com>
8140         * doc/invoke.texi: Remove reference to webpage that does not exist.
8142 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
8143             Joseph S. Myers  <joseph@codesourcery.com>
8145         PR c++/19797
8146         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
8147         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
8148         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
8149         * pa.c (get_plabel): Change argument to symbol_ref.  Call
8150         maybe_get_identifier instead of get_identifier.
8151         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
8152         (struct deferred_plabel): Replace name field with symbol field.
8153         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
8154         ASM_OUTPUT_EXTERNAL_REAL is defined.
8155         (output_global_address): Use output_addr_const for output of all
8156         symbol_refs.
8157         (output_deferred_plabels): Use symbol_ref instead of name for address
8158         output.
8159         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
8160         ASM_OUTPUT_SYMBOL_REF): New macros.
8161         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
8162         comment.
8163         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
8164         label.
8166 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
8168         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
8169         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
8171 2005-03-04  Jeff Law  <law@redhat.com>
8173         * basic-block.h (rediscover_loops_after_threading): Declare.
8174         * tree-ssa-dom.c: Include cfgloop.h.
8175         (tree_ssa_dominator_optimize): Discover loops and some basic
8176         properties.  Remove forwarder blocks recreated by loop header
8177         canonicalization.  Also mark backedges in the CFG.
8178         * tree-ssa-threadupdate.c: Include cfgloop.h
8179         (rediscover_loops_after_threading): Define.
8180         (struct local_info): New field, JUMP_THREADED.
8181         (prune_undesirable_thread_requests): New function.
8182         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
8183         then record that fact for the callers of redirct_edges.
8184         (thread_block): If BB has incoming backedges, then call
8185         prune_undesirable_thraed_requests.    Note when we are
8186         going to have to rediscover loop information.  Return a
8187         boolean indicating if any jumps were threaded.
8188         (thread_through_all_blocks): Bubble up boolean indicating
8189         if any jumps were threaded.
8190         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
8191         (tree-ssa-threadupdate.o): Similarly.
8193 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8195         * fold-const.c (fold_ternary): Unroll the "for" loop to
8196         extract operands.
8198 2005-03-04  Andrew Haley  <aph@redhat.com>
8200         * unwind-dw2-fde-glibc.c (struct
8201         unw_eh_callback_data.check_cache): New field.
8202         (frame_hdr_cache): New.
8203         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
8204         Cache frame header info.
8206 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
8208         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8209         (print_c_condition): Declare.
8210         * read-rtl.c (ptr_loc): New structure.
8211         (ptr_locs, ptr_loc_obstack, joined_conditions)
8212         (joined_conditions_obstack): New variables.
8213         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
8214         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8215         (join_c_conditions, print_c_condition): New functions.
8216         (apply_macro_to_string): Associate the new string with the same
8217         source location as the old one.
8218         (add_condition_to_string): Use join_c_conditions.
8219         (read_string): Use set_rtx_ptr_loc to record a filename and line
8220         number for the string.
8221         (read_rtx): Initialize the new variables above.
8222         * genattrtab.c (write_test_expr, write_attr_value): Use
8223         print_c_condition.
8224         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
8225         comment above the GCC_VERSION check.
8226         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
8227         Inline the definition of MAYBE_EVAL.
8228         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
8229         * genoutput.c (process_template): Likewise.
8230         * genpreds.c (write_predicate_subfunction): Likewise.
8231         (write_predicate_expr): Use print_c_condition.
8232         * genrecog.c (write_cond): Likewise.
8233         * gensupport.c (process_rtx): Use join_c_conditions to join the
8234         conditions of a define_insn_and_split.  Record a source location
8235         for the string after the "&&".
8236         (alter_test_for_insn): Use join_c_conditions.
8238 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
8240         Revert for now:
8241         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8242         PR tree-optimization/15784
8243         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8244         and -1 - A to ~A.
8246 2005-03-04  Ben Elliston  <bje@au.ibm.com>
8248         * gcc.c (option_map): Add --coverage.
8249         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
8250         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
8251         * config/darwin.h: Pass -lgcov for `coverage'.
8252         * doc/invoke.texi (Debugging Options): Document --coverage.
8254 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8256         * gcse.c (bypass_block): Use find_edge wherever possible.
8258 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
8260         Fix PR debug/20253
8262         * c-opts.c (c_common_parse_file): Call start_source_file
8263         and end_source_file at the approriate times.
8265         * dwarf2out.c (dwarf2out_finish): Don't auto-end
8266         the main file, it will be done for us now.
8268 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8270         * fold-const.c (fold_ternary): New.
8271         (fold): Call fold_ternary on ternary expressions.  Remove
8272         handling of ternary expressions.
8274 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8276         PR tree-optimization/15784
8277         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8278         and -1 - A to ~A.
8280 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
8282         * config/rs6000/predicates.md (branch_comparison_operator):
8283         Convert from C block to conditional format.
8285 2005-03-03  Jan Hubicka  <jh@suse.cz>
8287         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
8288         and non-constant public variables.
8290 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8292         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
8293         with LABEL_EXPR.
8295         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
8296         EDGE_I.
8298         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
8299         calls to release_ssa_name and release_phi_node.
8301         * fold-const.c (fold): Remove handling of unary expressions.
8303         * fold-const.c (fold_unary): Avoid directly using the original
8304         expression t as much as possible.
8306 2005-03-03  Roger Sayle  <roger@eyesopen.com>
8307             Andrew Pinski  <pinskia@physics.uc.edu>
8309         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
8310         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
8312 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
8314         Describe special registers SRP and MOF as allocatable registers.
8315         * config/cris/cris.c (cris_md_asm_clobbers): New function.
8316         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
8317         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
8318         TARGET_HAS_MUL_INSNS.
8319         (cris_print_operand) <case 'd'>: New case.
8320         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
8321         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
8322         define.
8323         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
8324         (REG_ALLOC_ORDER): Update for MOF.
8325         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
8326         SPECIAL_REGS.
8327         (GENERAL_REGS): No longer a define of ALL_REGS.
8328         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
8329         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
8330         Adjust accordingly.
8331         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
8332         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
8333         (SECONDARY_RELOAD_CLASS): Define.
8334         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
8335         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
8336         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
8337         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
8338         (REGISTER_MOVE_COST): Define.
8339         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
8340         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
8341         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
8342         (CRIS_MOF_REGNUM): New define_constants.
8343         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
8344         special registers.
8345         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
8346         New patterns.
8347         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
8348         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
8349         Adjust for MOF being properly described as a register.
8350         (indir_to_reg_split): Name this split.  Conditionalize on the
8351         destination register being a general register.
8352         (movei): Conditionalize on on operands 0 and 1 having the same
8353         register class.
8355 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
8357         PR target/20277
8358         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
8359         -mcpu to override any other explicitly given flags.
8361 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
8363         * recog.c (verify_changes, confirm_change_group): New functions,
8364         broken out of apply_change_group.
8365         (apply_change_group): Use them.
8366         * recog.h (verify_change, confirm_change_group): Declare.
8367         * rtl.h (redirect_jump_2): Declare.
8368         * jump.c (redirect_exp, invert_exp): Delete.
8369         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
8370         (redirect_jump_2): New function, broken out of redirect_jump.
8371         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
8372         (invert_jump): Use invert_jump_1 and redirect_jump_2.
8373         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
8375 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
8377         * varasm.c (named_section): Use xstrdup rather than doing it by
8378         hand.
8380         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
8382 2005-03-02  Devang Patel  <dpatel@apple.com>
8384         Undo PR tree-optimization/18815 fix.
8386 2005-03-02  Devang Patel  <dpatel@apple.com>
8388         PR tree-optimization/18815
8389         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8390         loops with zero exit edges.
8392 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8394         * cfg.c (connect_src, connect_dest, disconnect_src,
8395         disconnct_dest): New.
8396         (unchecked_make_edge, remove_edge, redirect_edge_succ,
8397         redirect_edge_pred): Use the new functions.
8399         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
8400         free_dominance_info only when needed.
8402 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
8404         PR target/20276
8405         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
8406         (reg_or_sub_cint64_operand): Same.
8408 2005-03-02  Jeff Law  <law@redhat.com>
8410         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
8411         CFG_ALTERED in the main DOM iteration loop.
8413 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
8415         PR c++/19916
8416         * varasm.c (initializer_constant_valid_p): Allow conversions
8417         between OFFSET_TYPEs.  Tidy.
8419 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
8421         * config/cris/cris.md ("return"): Remove epilogue delay list
8422         sanity check.
8424 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
8426         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
8427         for Thumb.
8428         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
8430 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8432         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
8433         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
8434         config/m68k/m68k.c, config/mips/mips.h,
8435         config/rs6000/rs6000-protos.h, doc/contrib.texi,
8436         doc/include/gcc-common.texi: Update copyright.
8438         PR middle-end/18029 and PR middle-end/18030
8439         * expr.c (optimize_bitfield_assignment_op): Add a special case
8440         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
8442         * fold-const.c (fold_unary): New.
8443         (fold): Call fold_unary on unary expressions.
8445 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
8447         * cgraph.h (struct cgraph_edge): Add prev_caller and
8448         prev_callee fields.
8449         (cgraph_node_remove_callees): Export.
8450         * cgraph.c (cgraph_create_edge): Initialize prev_caller
8451         and prev_callee.
8452         (cgraph_edge_remove_callee): New function.
8453         (cgraph_edge_remove_caller): Likewise.
8454         (cgraph_remove_edge): Use.
8455         (cgraph_redirect_edge_callee): Likewise.
8456         (cgraph_node_remove_callees): New function.
8457         (cgraph_node_remove_callers): Likewise.
8458         (cgraph_remove_node): Use.
8459         * tree-optimize.c (tree_rest_of_compilation): Use
8460         cgraph_node_remove_callees instead of manual loop.
8461         * cgraphunit.c (cgraph_finalize_function): Likewise.
8462         (cgraph_expand_function): Likewise.
8463         (cgraph_remove_unreachable_nodes): Likewise.
8465 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
8467         PR c/8927
8468         * c-tree.h (undeclared_variable, build_external_ref): Add extra
8469         argument.
8470         * c-decl.c (undeclared_variable): Take location as argument.
8471         * c-typeck.c (build_external_ref): Likewise.
8472         * c-parser.c (c_parser_postfix_expression): Pass location of
8473         identifier to build_external_ref.
8475 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8477         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
8478         CCEQ mode for branch_positive_comparison_operator test.
8479         * config/rs6000/predicates (branch_comparison_operator): Revert to
8480         define_predicate.
8481         (scc_comparison_operator): Same.
8482         (branch_positive_comparison_operator): Same.
8484 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
8486         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
8487         (cris_delay_slots_for_epilogue): Remove.
8488         (save_last): Move into cris_target_asm_function_epilogue.
8489         (cris_target_asm_function_epilogue): Remove tests for file being
8490         NULL.
8491         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
8492         (cris_delay_slots_for_epilogue): Remove prototypes.
8493         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
8494         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
8496 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8498         * config/rs6000/predicates.md (branch_comparison_operator): Change
8499         to define_special_predicate.
8500         (scc_comparison_operator): Same.
8501         (branch_positive_comparison_operator): Same.
8503 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
8505         * Makefile.in (tree-ssa-sink.o): New.
8506         (OBJS-common): Add tree-ssa-sink.o.
8507         * common.opt: Add -ftree-sink
8508         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
8509         * timevar.def (TV_TREE_SINK): new timevar.
8510         * tree-flow.h (is_hidden_global_store): Prototype.
8511         * tree-optimize.c (init_tree_optimization_passes): Add
8512         pass_sink_code.
8513         * tree-pass.h (pass_sink_code): New.
8514         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
8515         for non-obvious global store store to is_hidden_global_store, and
8516         call that new function.
8517         * tree-ssa-sink.c: New file.
8518         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
8519         * doc/passes.texi: Document forward store motion.
8520         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
8521         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
8522         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
8523         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
8525 2005-03-01  Per Bothner  <per@bothner.com>
8527         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
8528         and we have a non-zero column-number, add it to the message.
8529         Also factor out the diagnostic_kind_text.
8531 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
8533         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8534         flow_loop_pre_header_scan, flow_loop_pre_header_find,
8535         flow_loop_scan): Removed.
8536         (flow_loop_dump): Do not dump removed fields.
8537         (flow_loop_free): Do not free removed fields.
8538         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
8539         (loop_exit_edge_p): New function.
8540         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
8541         num_pre_header_edges, entry_edges, num_entries, exit_edges,
8542         num_exits, exits_doms.
8543         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
8544         LOOP_EDGES, LOOP_ALL): Removed.
8545         (flow_loop_scan): Declaration removed.
8546         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
8547         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
8548         flow_loops_find.
8549         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
8550         (if_convert): Call flow_loops_find and flow_loops_free
8551         when calling mark_loop_exit_edges.
8552         * cfgloopanal.c (mark_loop_exit_edges): Moved from
8553         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
8554         free_dominance_info calls.
8555         * loop-init.c (flow_loops_find): Ditto.
8556         * passes.c (rest_of_handle_branch_prob): Ditto.
8557         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
8558         * loop-unroll.c (analyze_insns_in_loop): Do not use
8559         EDGE_LOOP_EXIT.
8560         * predict.c (predict_loops): Do not call flow_loop_scan.
8561         Use get_loop_exit_edges.
8562         (tree_estimate_probability): Do not pass flags to flow_loops_find.
8563         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
8564         Do not use EDGE_LOOP_EXIT.
8565         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
8566         to bb_with_exit_edge_p.
8567         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
8568         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
8569         to bb_with_exit_edge_p.
8570         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
8571         EDGE_LOOP_EXIT.
8572         * tree-loop-linear.c (linear_transform_loops): Do not call
8573         flow_loop_scan.  Use loop->single_exit.
8574         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
8575         (vect_analyze_loop_form): Do not call flow_loop_scan.
8576         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
8577         loop->single_exit.
8578         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
8579         loop->single_exit.
8580         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
8581         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
8582         slpeel_tree_duplicate_loop_to_edge_cfg,
8583         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
8584         Use loop_preheader_edge and loop->single_exit.  Do not call
8585         flow_loop_scan.
8587 2005-03-01  Nick Clifton  <nickc@redhat.com>
8589         * config/arm/arm.c (thumb_find_work_register): Check all of the
8590         argument registers to see if they are free, and a couple of
8591         special cases where the last argument register but can be proved
8592         to be available during the function's prologue.
8593         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
8594         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
8595         thumb_unexpanded_epilogue): Use unsigned long as the type for the
8596         register bit-mask.
8597         (thumb_compute_save_reg_mask): Likewise.  Also use
8598         thumb_find_work_register() to ensure that there is agreement about
8599         which work register is going to be used in the prologue.
8600         (thumb_output_function_prologue): Use unsigned long as the type
8601         for the register bit-mask.  Also delay pushing the link register if
8602         other high registers are going to be pushed.
8603         (thumb_compute_save_reg_mask, emit_multi_reg_push,
8604         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
8605         redundant prototypes.
8607 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
8609         PR target/19819
8610         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
8611         and after reload in REG+REG indexed addresses without REG_POINTER
8612         set in the base and not set in the index.
8614 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8616         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
8617         Don't undefine here.
8618         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
8619         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
8620         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
8621         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
8622         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
8623         Delete.
8624         * config.gcc (sh*-*-linux*): Use config/linux.h.
8626 2005-02-28  Dale Johannesen  <dalej@apple.com>
8627             Stan Shebs  <shebs@apple.com>
8629         Rewrite of 64-bit Darwin structure-by-value pass/return.
8630         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
8631         intoffset, use_stack, named.
8632         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
8633         (rs6000_darwin64_record_arg_advance_flush):  New.
8634         (rs6000_darwin64_record_arg_advance_recurse): New.
8635         (rs6000_darwin64_record_arg_flush):  New.
8636         (rs6000_darwin64_record_arg_recurse):  New.
8637         (rs6000_darwin64_record_arg):  New.
8638         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
8639         (function_arg_boundary):  Handle 128-bit aligned structs.
8640         (function_arg_advance):  Rewrite darwin64 struct handling.
8641         (function_arg):  Call rs6000_darwin64_record_arg.
8642         (function_arg_partial_nregs):  Handle darwin64 structs.
8643         (rs6000_darwin64_function_value):  Remove.
8644         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
8646 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8648         PR tree-optimization/20216
8649         * tree-chrec.c (tree_fold_factorial): Delete.
8650         (tree_fold_binomial): Change argument list to take a return type
8651         and change the type of K to unsigned int.  Rewrite to avoid explicit
8652         evaluation of factorials, and (recursively) calling fold to perform
8653         compile-time arithmetic.  Return NULL on (internal) overflow.
8654         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
8655         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
8656         if any intermediate calculation overflows.
8657         (chrec_apply): Update call to chrec_evaluate.
8659 2005-02-28  James E Wilson  <wilson@specifixinc.com>
8661         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
8663 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
8665         PR c/20245
8666         * c-parser.c (c_parser_compound_statement): Return error_mark_node
8667         instead of NULL_TREE on error.
8669 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
8671         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
8672         (EASY_VECTOR_15_ADD_SELF): Remove.
8673         (num_insns_constant_wide): Not static.
8674         (validate_condition_mode): Not static.
8675         (toc_relative_expr_p): Not static.
8676         (legitimate_indirect_address_p): Not static.
8677         (macho_lo_sum_memory_operand): Not static.
8678         (invalid_e500_subreg): Not static.
8679         (easy_vector_same): Not static.
8680         (easy_vector_splat_const): Not static.
8681         (RS6000_SYMBOL_REF_TLS_P): Remove.
8682         (any_operand): Delete.
8683         (any_parallel_operand): Delete.
8684         (count_register_operand): Delete.
8685         (altivec_register_operand): Delete.
8686         (xer_operand): Delete.
8687         (s8bit_cint_operand): Delete.
8688         (short_cint_operand): Delete.
8689         (u_short_cint_operand): Delete.
8690         (non_short_cint_operand): Delete.
8691         (exact_log2_cint_operand): Delete.
8692         (gpc_reg_operand): Delete.
8693         (cc_reg_operand): Delete.
8694         (cc_reg_not_cr0_operand): Delete.
8695         (reg_or_short_operand): Delete.
8696         (reg_or_neg_short_operand): Delete.
8697         (reg_or_aligned_short_operand): Delete.
8698         (reg_or_u_short_operand): Delete.
8699         (reg_or_cint_operand): Delete.
8700         (reg_or_arith_cint_operand): Delete.
8701         (reg_or_add_cint64_operand): Delete.
8702         (reg_or_sub_cint64_operand): Delete.
8703         (reg_or_logical_cint_operand): Delete.
8704         (got_operand): Delete.
8705         (got_no_const_operand): Delete.
8706         (easy_fp_constant): Delete.
8707         (easy_vector_constant): Delete.
8708         (easy_vector_constant_add_self): Delete.
8709         (zero_constant): Delete.
8710         (zero_fp_constant): Delete.
8711         (volatile_mem_operand): Delete.
8712         (offsettable_mem_operand): Delete.
8713         (mem_or_easy_const_operand): Delete.
8714         (add_operand): Delete.
8715         (non_add_cint_operand): Delete.
8716         (logical_operand): Delete.
8717         (non_logical_cint_operand): Delete.
8718         (mask_operand): Delete.
8719         (mask_operand_wrap): Delete.
8720         (mask64_operand): Delete.
8721         (mask64_2_operand): Delete.
8722         (and64_operand): Delete.
8723         (and64_2_operand): Delete.
8724         (and_operand): Delete.
8725         (reg_or_mem_operand): Delete.
8726         (lwa_operand): Delete.
8727         (symbol_ref_operand): Delete.
8728         (call_operand): Delete.
8729         (current_file_function_operand): Delete.
8730         (input_operand): Delete.
8731         (rs6000_nonimmediate_operand): Delete.
8732         (rs6000_tls_symbol_ref): Delete.
8733         (save_world_operation): Delete.
8734         (restore_world_operation): Delete.
8735         (load_multiple_operation): Delete.
8736         (store_multiple_operation): Delete.
8737         (vrsave_operation): Delete.
8738         (mfcr_operation): Delete.
8739         (mtcrf_operation): Delete.
8740         (lmw_operation): Delete.
8741         (stmw_operation): Delete.
8742         (branch_comparison_operator): Delete.
8743         (branch_positive_comparison_operator): Delete.
8744         (scc_comparison_operator): Delete.
8745         (trap_comparison_operator): Delete.
8746         (boolean_operator): Delete.
8747         (boolean_or_operator): Delete.
8748         (min_max_operator): Delete.
8749         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
8750         (EASY_VECTOR_15): Moved to here.
8751         (EASY_VECTOR_15_ADD_SELF): Move to here.
8752         (PREDICATE_CODES): Delete.
8753         * config/rs6000/rs6000-protos.h: Delete predicate functions.
8754         Declare functions no longer static.
8755         * config/rs6000/predicates.md: New.
8756         * config/rs6000/rs6000.md: Include predicates.md
8758 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8760         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
8761         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
8762         REG_ALWAYS_RETURN.
8763         * cfgrtl.c (need_fake_edge_p): Likewise.
8764         * combine.c (distribute_notes): Likewise.
8765         * emit-rtl.c (try_split): Likewise.
8766         * recog.c (peephole2_opimize): Likewise.
8767         * reg-notes.def (ALWAYS_RETURN): Remove.
8768         * rtl.h (LCT_ALWAYS_RETURN): Remove.
8769         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
8770         * tree.h (ECF_ALWAYS_RETURN): Remove.
8772 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8774         PR middle-end/19874
8775         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
8776         between different machine modes is never a "useless" conversion.
8778 2005-02-28  Geert Bosch  <bosch@gnat.com>
8780         PR ada/15977
8781         * doc/contrib.texi: List contributors for Ada front end
8783 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
8785         * simplify-rtx.c (simplify_unary_operation_1,
8786         simplify_const_unary_operation): New, extracted from...
8787         (simplify_unary_operation): ... this one.
8788         (simplify_binary_operation_1,
8789         simplify_const_binary_operation): New, extracted from...
8790         (simplify_binary_operation): ... this one.
8791         * rtl.h (simplify_const_unary_operation,
8792         simplify_const_binary_operation): Add prototypes.
8794 2005-02-28  Julian Brown  <julian@codesourcery.com>
8796         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
8797         building libjava and caused PR regression/20228.
8799 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
8801         PR bootstrap/17383
8802         * Makefile.in (host_subdir): New.
8803         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
8804         * configure: Regenerate.
8806 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
8808         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
8809         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
8810         installation directory first.
8812 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
8814         PR target/19065.
8815         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
8816         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
8817         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
8818         * config/cris/cris.md: Tweak comments referring to Q.
8819         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
8820         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
8821         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
8822         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
8823         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
8824         Insert spaces in constraints to align alternatives vertically for
8825         readability.
8826         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
8827         operand 1: "M".
8829 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8831         PR rtl-optimization/17728
8832         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
8833         operand 0 from general_operand to move_dest_operand.
8835 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8837         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
8838         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
8839         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
8840         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
8842 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8844         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
8845         * configure: Regenerate.
8846         * libada-mk.in: Remove CC; rename
8847         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
8849 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
8851         PR tree-opt/20188
8852         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
8853         for the lhs, also walk over the tree.  Likewise for rhs.
8855 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
8857         * tree-ssa-dom.c (simple_iv_increment_p): New function.
8858         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
8859         Do not propagate value of iv before increment over the increment.
8861 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
8863         * c-parser.c: New file.
8864         * c-parse.in: Remove.
8865         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
8866         Remove.
8867         (c-parser.o): Add dependencies.
8868         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
8869         maintainer-clean, TAGS): Update.
8870         * c-config-lang.in (gtfiles): Update.
8871         * gengtype-lex.l: Don't handle "@@".
8872         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
8873         objc_build_synchronized, objc_begin_try_stmt,
8874         objc_begin_catch_clause, objc_finish_catch_clause,
8875         objc_build_finally_clause, objc_finish_try_stmt): New.
8876         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
8877         type_seen_p.
8878         (c_parse_init): Update comment.
8879         * c-decl.c (c_init_decl_processing): Update comment.
8880         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
8881         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
8882         new c_declspecs members.
8884 2005-02-25  Julian Brown  <julian@codesourcery.com>
8886         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
8887         from being used for symbols with vague linkage when
8888         HAVE_GAS_COMDAT_GROUP is true.
8890 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
8892         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
8894 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
8896         PR target/19930
8897         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
8898         (LIBGCC2_HAS_DF_MODE): New.
8899         (LIBGCC2_HAS_XF_MODE): New.
8900         (LIBGCC2_HAS_TF_MODE): New.
8901         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
8902         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
8903         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
8904         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
8905         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
8906         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
8907         and add _fixtfdi, _fixunstfdi, _floatditf
8908         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
8909         L_fixunstfdi, L_floatditf.
8910         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
8911         (LIBGCC2_HAS_TF_MODE): Define.
8913 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
8915         PR tree-optimization/20204
8916         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
8917         REWRITE_THIS_STMT markers on PHI nodes.
8918         (rewrite_initialize_block): Likewise.
8920 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
8922         * version.c (version_string): Update to 4.1.
8924 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
8926         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
8927         Clarify that the alternative way doesn't work in GNU C++.
8929 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
8931         PR tree-optimization/19937
8932         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
8933         to the type of the induction variable.
8935 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8937         PR rtl-optimization/20117
8938         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
8939         the block including noncopyable insn.
8941 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
8943         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
8944         calls to find_reg_note.
8946 2005-02-24  Richard Henderson  <rth@redhat.com>
8948         PR tree-opt/20127
8949         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
8950         the type.
8952 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
8954         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
8955         vector types if to use base reg for misaligned non-word ld/std.
8957 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
8959         PR target/14619
8960         * config/cris/cris.c (cris_target_asm_function_prologue): Create
8961         dwarf2 label manually and put it after, not before the prologue.
8963 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
8965         PR target/19019
8966         * reload.c (operands_match_p): Only increment register number for
8967         SCALAR_INT_MODE_P modes in multiple hard registers.
8969         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
8970         Fix formatting.
8972 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8974         * ChangeLog.5: Fix log message typo(s).
8975         * ChangeLog.7: Likewise.
8976         * ChangeLog.tree-ssa: Likewise.
8977         * cfgexpand.c: Fix comment typo(s).
8978         * conflict.c: Likewise.
8979         * defaults.h: Likewise.
8980         * dwarf2out.c: Likewise.
8981         * gcse.c: Likewise.
8982         * ggc-page.c: Likewise.
8983         * tree-eh.c: Likewise.
8984         * tree-ssa-dom.c: Likewise.
8986 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
8988         PR target/19019
8989         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
8990         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
8991         if SHARED is defined.
8993         PR target/20196
8994         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
8995         allow splitting only if operands 0 and 3 don't overlap.
8997 2005-02-24  Richard Henderson  <rth@redhat.com>
8999         PR middle-end/19953
9000         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
9001         (fold_builtin_1): Call them.
9002         * fold-const.c (fold_complex_mult_parts): Split out from ...
9003         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
9004         (fold_complex_div_parts, fold_complex_div): New.
9005         (fold): Use them.
9006         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
9008 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9010         * tree-ssa-ccp.c (visit_assignment): Verify that result of
9011         VIEW_CONVERT_EXPR is_gimple_min_invariant.
9013         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
9014         (print_node): Likewise.
9015         Print TYPE_SIZES_GIMPLIFIED.
9017 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9019         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
9020         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
9021         operands as commutative in constraints.
9023 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
9025         * tree-into-ssa.c: Re-organize internal functions.
9027 2005-02-24  Richard Henderson  <rth@redhat.com>
9029         PR middle-end/18902
9030         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
9031         for c99.
9032         * common.opt (fcx-limited-range): New.
9033         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
9034         * toplev.c (flag_complex_method): Initialize to 1.
9035         (process_options): Set flag_complex_method to 0 if
9036         flag_cx_limited_range.
9037         * doc/invoke.texi (-fcx-limited-range): New.
9039 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9041         * cse.c (delete_trivially_dead_insns): Speed up by using
9042         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
9043         prev_real_insn.
9045 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
9047         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
9048         functions when -mid-shared-library is being used.
9050 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9052         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
9053         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
9054         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
9055         * system.h: Poison LINK_LIBGCC_SPECIAL.
9057 2005-02-23  James E Wilson  <wilson@specifixinc.com>
9059         * gengtype.c (note_insn_name): Make 1 element larger.
9061 2005-02-23  Roger Sayle  <roger@eyesopen.com>
9063         PR target/20018
9064         PR rtl-optimization/20097
9065         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
9066         BImode SUBREGs of SImode registers which confuse the ia64 backend.
9068 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
9070         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
9071         * t-aix52 (SHLIB_INSTALL): Same.
9073 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9075         * genpreds.c: Update copyright.
9077 2005-02-23  Michael Beach  <michaelb@ieee.org>
9079         PR target/20159
9080         * config/sparc/t-elf (startup files): Assemble with CPP.
9082 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
9084         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
9085         (write_predicate_expr): Likewise.
9087 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9089         PR tree-optimization/20100
9090         PR tree-optimization/20115
9091         * tree-optimize.c (init_tree_optimization_passes): Remove
9092         pass_maybe_create_global_var.
9093         * tree-pass.h (pass_maybe_create_global_var): Remove.
9094         * tree-ssa-alias.c (aliases_computed_p): Declare.
9095         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
9096         (count_calls_and_maybe_create_global_var): Remove.
9097         (pass_maybe_create_global_var): Remove.
9098         (init_alias_info): Do not declare aliases_computed_p.
9099         (maybe_create_global_var): If the function contains no
9100         call-clobbered variables and a mix of pure/const and regular
9101         function calls, create .GLOBAL_VAR.
9102         Mark all call-clobbered variables for renaming.
9103         (merge_pointed_to_info): Update comment.
9104         (add_pointed_to_var): Likewise.
9105         (is_escape_site): Likewise.
9106         Accept struct alias_info * instead of size_t *.
9107         Update all users.
9108         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
9109         as necessary.
9110         * tree-ssa-operands.c (get_call_expr_operands): If
9111         ALIASES_COMPUTED_P is false, do not add call-clobbering
9112         operands.
9113         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
9114         (delete_tree_ssa): Likewise.
9116 2005-02-22  James E Wilson  <wilson@specifixinc.com>
9118         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
9119         (do_compile): Do call it here.
9121 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9123         PR rtl-optimization/20017.
9124         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
9125         rest_of_handle_cse2, rest_of_handle_gcse): Call
9126         delete_dead_jumptables immediately before calling cleanup_cfg.
9128 2005-02-22  Devang Patel  <dpatel@apple.com>
9130         PR 19952
9131         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
9132         all labels
9134 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
9136         * config/rs6000/aix.h (WINT_TYPE): Define.
9138 2005-02-22  Stan Shebs  <shebs@apple.com>
9140         * config/rs6000/rs6000.c (rs6000_override_options): Default to
9141         natural alignment for 64-bit Darwin.
9142         (rs6000_parse_alignment_option): Warn about uses of -malign-power
9143         on 64-bit Darwin.
9144         * doc/invoke.texi: Document this.
9146 2005-02-22  DJ Delorie  <dj@redhat.com>
9148         * c-common.c (c_common_type_for_mode): Pass the mode's precision
9149         to make_[un]signed_type, not the mode itself.
9151 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9153         * cfg.c (cached_make_edge): Call make_edge if edge cache is
9154         not available.  Use tail calls wherever possible.
9155         (make_edge): Call unchecked_make_edge to create an edge.
9157         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
9158         (coalesce_ssa_name): Don't check for
9159         SSANORM_USE_COALESCE_LIST.
9160         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
9162 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9164         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
9165         (rewrite_into_ssa): ... here.
9167 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
9169         PR tree-optimization/19786
9170         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
9171         tag to another's may-alias bitmap when adding to the other's list.
9173 2005-02-21  DJ Delorie  <dj@redhat.com>
9175         * tree-ssa-loop-ivopts.c (computation_cost): Start register
9176         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
9177         registers in unsupported ways.
9178         * expmed.c (init_expmed): Likewise.
9180 2005-02-21  Stan Cox  <scox@redhat.com>
9182         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
9184 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9186         * tree-cfg.c (fold_cond_expr_cond): New.
9187         (make_edges): Call fold_cond_expr_cond.
9188         (find_taken_edge): Accept nothing but INTEGER_CST.
9189         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
9190         and 1.
9191         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
9193         * flow.c (delete_dead_jumptables): Speed up by scanning insns
9194         that do not belong to any basic block.
9196 2005-02-21  Jeff Law  <law@redhat.com>
9198         * cfganal.c (find_unreachable_blocks): Manually CSE load of
9199         e->dest.
9201 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9203         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
9204         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
9205         Adjust their definitions.
9206         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
9207         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
9209         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
9210         genautomata.c, langhooks.c, langhooks.h, system.h,
9211         config/arm/lib1funcs.asm: Update copyright.
9213 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9215         * dbxout.c (dbxout_function_end): Emit Lscope label always.
9217 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
9219         PR bootstrap/13770
9220         * doc/install.texi: Document --with-gc.
9222 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
9224         * simplify-rtx.c (simplify_unary_operation): Add a missing
9225         "break" statement.
9227 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9229         PR tree-optimization/18663
9230         * tree-ssa-dom.c (extract_range_from_cond): Return 0
9231         if the type has variable bounds.
9233 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9235         * gcse.c: Remove an obsolete comment.
9237         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
9239 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
9241         * doc/extend.texi (Function Attributes) <Attribute const>: The
9242         attribute "pure" is below this text, not above.
9244 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9246         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
9247         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
9248         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
9250 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
9252         PR 18785
9253         * langhooks.h (struct lang_hooks): Add to_target_charset.
9254         * langhooks.c (lhd_to_target_charset): New function.
9255         * langhooks-def.h: Declare lhd_to_target_charset.
9256         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
9257         (LANG_HOOKS_INITIALIZER): Update.
9258         * c-common.c (c_common_to_target_charset): New function.
9259         * c-common.h: Declare it.
9260         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
9261         c_common_to_target_charset.
9263         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
9264         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
9265         Delete definitions.
9266         * system.h: Poison them.
9267         * doc/tm.texi: Don't discuss them.
9268         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
9269         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
9270         (pp_c_char): Do not attempt to generate letter escapes for
9271         newline, tab, etc.
9272         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
9273         * config/mips/mips.c (mips_output_ascii): Likewise.
9275 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
9277         PR tree-optimization/19951
9278         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
9279         is abnormal.
9281 2005-02-19  Steven Bosscher  <stevenb@suse.de>
9283         PR middle-end/19698
9284         * function.h (struct function): New field `max_loop_depth'.
9285         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
9286         (flow_loops_find): Reset the max loop depth count before finding loops.
9287         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
9288         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
9289         (calculate_global_regs_live): Make sure the loop will terminate
9290         when the initial sets are not empty.
9292 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
9294         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
9295         object inside.
9296         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
9298 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
9300         PR other/19525
9301         * doc/invoke.texi: Remove documentation of %M spec.
9302         * gcc.c: Likewise.
9303         (init_spec): Remove %M suffix from -lgcc_s.
9304         (do_spec_1): Remove 'M' case.
9305         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
9306         to put shared libraries in the multilib directory.  Remove the
9307         shlib_so_soname substitution variable.  Don't add a multilib encoding
9308         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
9309         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
9310         SHLIB_INSTALL as well as SHLIB_LINK.
9311         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
9312         (SHLIB_NAME): Delete.
9313         (SHLIB_DIR): New macro.
9314         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
9315         (SHLIB_INSTALL): Adjust accordingly.
9316         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
9317         * config/t-slibgcc-sld: Likewise.
9318         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
9319         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
9320         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
9321         in $(SHLIB_DIR).
9322         (SHLIBUNWIND_INSTALL): Adjust accordingly.
9323         * config/i386/t-nwld (SHLIB_SONAME): Delete.
9324         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
9325         Use @shlib_base_name@ instead of @shlib_so_name@.
9326         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
9327         and @shlib_base_name@.so in @multilib_dir@.
9328         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
9329         to the install path.
9330         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
9331         (SHLIB_LINK): Remove previous workaround.
9332         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
9333         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
9334         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
9335         the install path.
9336         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
9337         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
9338         (SHLIB_INSTALL): Adjust accordingly.
9339         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
9340         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
9341         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
9342         config/t-slibgcc-elf-ver.
9344 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
9345             Jakub Jelinek  <jakub@redhat.com>
9347         PR tree-optimization/19828
9348         * tree-ssa-loop-im.c: Add a TODO comment.
9349         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
9350         without side-effects.
9352 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9354         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
9355         call fold_convert.
9357 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
9359         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
9360         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
9361         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
9362         functions.
9363         (ia64_reorg): Delete fixup_errata call.
9364         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
9365         (TARGET_SWITCHES): Delete -mb-step entry.
9367 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
9369         PR c/20043
9370         * c-typeck.c (composite_type): Handle quals in transparent unions.
9371         (type_lists_compatible_p): Likewise.
9373 2005-02-18  Stan Shebs  <shebs@apple.com>
9375         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
9376         expressions in the .literal8 section.
9378 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
9380         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
9382 2005-02-18  Roger Sayle  <roger@eyesopen.com>
9384         * fold-const.c (constant_boolean_node): Always create values of the
9385         specified type, don't bother calling truthvalue_conversion.
9387 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9389         * except.c (output_function_exception_table): Call
9390         assemble_external_libcall (eh_personality_libfunc).
9392 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9394         PR target/19886
9395         * config/ia64/ia64.h (struct machine_function): Add state_num.
9396         * config/ia64/ia64.c (process_epilogue,
9397         process_for_unwind_directive): Use new unwind state numbers each
9398         time rather than state 1.
9400 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9402         PR target/20054
9403         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
9404         before the "*llgt_didi" pattern.
9406 2005-02-18  Jason Merrill  <jason@redhat.com>
9408         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
9410 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
9412         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
9413         (div0): Use it in place of ARM_FUNC_ALIAS.
9414         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
9416 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
9418         PR middle-end/20030
9419         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
9420         access, the lower bound of the array type if it exists.
9422 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
9424         PR c++/20008
9425         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
9426         cases that are out-of-range for the index type.
9428 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9430         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
9431         (estimate_case_costs): Don't call convert.
9432         * expmed.c (expand_shift): Likewise.
9433         (make_tree): Call fold_convert instead of convert.
9435 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9437         PR c++/19813
9438         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
9439         that ref to be marked MEM_READONLY_P doesn't have base that needs
9440         constructing.
9442 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9444         * genautomata.c (output_get_cpu_unit_code_func,
9445         output_cpu_unit_reservation_p): Don't generate old-style function
9446         definitions.
9448 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9450         PR c++/20023
9451         PR tree-optimization/20009
9452         * convert.c (convert_to_integer): Revert 2005-02-16 change.
9454         PR tree-optimization/18947
9455         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
9456         inline, remove all nodes that are inlined into the extern inline
9457         being redefined.
9459 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9461         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
9462         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
9463         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
9464         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
9465         Update copyright.
9467 2005-02-17  Roger Sayle  <roger@eyesopen.com>
9469         PR tree-optimization/19917
9470         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
9471         to be potentially trapping.
9473 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9475         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
9477 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9479         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
9480         tem becomes a local variable which is set to the value of the
9481         back end defined INITIAL_FRAME_ADDRESS macro.
9482         (expand_builtin_frame_address): Omit the base parameter to
9483         expand_builtin_return_addr.
9484         (expand_builtin_profile_func): Likewise.
9485         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
9486         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
9487         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
9489 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
9491         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
9492         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
9493         * config/frv/frv.c (frv_function_epilogue): Likewise.
9495 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
9497         * lambda-code (perfect_nestify): Remove mark/unmark
9498         for rewriting hack.
9499         * tree-loop-linear.c (linear_transform_loops): Add
9500         rewrite_into_ssa call so that ssa is correct for
9501         rewriting into loop closed.
9503 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9505         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
9506         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
9507         BITMAP_FREE.
9508         * bt-load.c (btr_def_live_range, combine_btr_defs,
9509         migrate_btr_def, migrate_btr_defs): Likewise.
9510         * cfgcleanup.c (thread_jump): Likewise.
9511         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
9512         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
9513         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
9514         df_rd_local_compute, df_reg_info_compute): Likewise.
9515         * dominance.c (init_dom_info, free_dom_info): Likewise.
9516         * flow.c (init_propagate_block_info,
9517         free_propagate_block_info): Likewise.
9518         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
9519         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
9520         modify_reg_pav): Likewise.
9521         * loop-invariant.c (find_defs, find_invariant_insn,
9522         find_invariants, free_inv_motion_data): Likewise.
9523         * predict.c (tree_predict_by_opcode,
9524         estimate_bb_frequencies): Likewise.
9525         * stmt.c (expand_case): Likewise.
9526         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
9527         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
9528         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
9529         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
9530         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
9531         rewrite_ssa_into_ssa): Likewise.
9532         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9533         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
9534         analyze_edges_for_bb, perform_edge_inserts): Likewise.
9535         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
9536         * tree-sra.c (tree_sra): Likewise.
9537         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
9538         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
9539         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
9540         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9541         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
9542         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
9543         Likewise.
9544         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
9545         calculate_live_on_entry, calculate_live_on_exit,
9546         build_tree_conflict_graph): Likewise.
9547         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
9548         record_important_candidates, set_use_iv_cost, find_depends,
9549         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
9550         tree_ssa_iv_optimize_finalize): Likewise.
9551         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
9552         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
9553         tree_duplicate_loop_to_header_edge): Likewise.
9554         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
9555         * tree-ssa.c (verify_flow_insensitive_alias_info,
9556         verify_name_tags, verify_ssa, init_tree_ssa,
9557         delete_tree_ssa): Likewise.
9558         * tree-ssanames.c (marked_ssa_names, init_ssanames,
9559         fini_ssanames): Likewise.
9560         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
9562 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
9564         * config/rs6000/t-rtems: Completely reworked.
9566 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9568         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
9570 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9572         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
9573         POINTER_TYPE_P when checking that type is a pointer.
9574         (vect_get_memtag): Remove.
9575         (vect_address_analysis): Use POINTER_TYPE_P. Call
9576         vect_object_analysis with dummy parameter for memtag.
9577         (vect_object_analysis): Extract memtag (functionality that
9578         used to be in vect_get_memtag and moved here). Fix printings.
9579         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
9580         with correct parameters. Remove call to vect_get_memtag.
9582 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
9584         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
9585         (tree-vectorizer.o): Added missing dependencies.
9587         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
9588         decleration.
9589         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
9590         declaration in tree-vectorizer.c, now has an extern declaration in
9591         tree-vectorizer.h).
9592         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9593         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9594         get_vectype_for_scalar_type, vect_is_simple_use,
9595         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9596         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
9597         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
9598         vectorizable_store, vectorizable_operation, vectorizable_assignment,
9599         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
9600         find_loop_location): Likewise.
9602         * tree-vectorizer.c (langhooks.h): #include removed.
9603         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
9604         moved to tree-vectorized.h.
9605         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9606         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9607         get_vectype_for_scalar_type, vect_is_simple_use,
9608         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9609         vect_supportable_dr_alignment, new_loop_vec_info,
9610         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
9611         vect_set_verbosity_level, find_loop_location): Likewise.
9613         (vect_analyze_loop): Function externalized. Declaration moved to
9614         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
9615         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
9616         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
9617         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
9618         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
9619         vect_enhance_data_refs_alignment, vect_analyze_operations,
9620         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
9621         vect_stmt_relevant_p, vect_get_loop_niters,
9622         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
9623         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
9624         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
9625         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
9626         vect_get_memtag): Likewise.
9628         (vectorizable_load): Function externalized. Declaration moved to
9629         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
9630         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
9631         vect_transform_loop): Likewise.
9632         (vect_transform_stmt): Moved to tree-vect-transform.c.
9633         (vect_align_data_ref, vect_create_destination_var,
9634         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
9635         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
9636         vect_get_vec_def_for_operand, vect_init_vector,
9637         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
9638         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
9639         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
9640         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
9641         vect_do_peeling_for_loop_bound): Likewise.
9643         * tree-vect-analyze.c: New file.
9644         * tree-vect-transform.c: New file.
9646 2005-02-17  Jason Merrill  <jason@redhat.com>
9648         PR mudflap/19319, c++/19317
9649         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
9650         slot explicit.
9652 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
9654         * doc/install.texi (Specific): Update link for Darwin-specific
9655         tool binary site.
9657 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
9659         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
9660         constant_boolean_node.
9662 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
9664         PR target/19019
9665         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
9666         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
9668 2005-02-16  Richard Henderson  <rth@redhat.com>
9670         PR 19920
9671         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
9672         with W_TYPE_SIZE.
9673         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
9674         replace uses with Wtype_MAXp1_F.
9675         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
9676         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
9677         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
9678         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
9679         and HAVE_TFMODE as appropriate.
9680         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
9681         (__floatdisf): Likewise.
9682         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
9683         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
9684         (Wtype_MAXp1_F): New.
9685         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
9686         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
9688 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
9690         * PR target/19162
9691         * arm.c (arm_apply_result_size): New function.
9692         * arm.h (APPLY_RESULT_SIZE): Define.
9693         * arm-protos.h (arm_apply_result_size): Add prototype.
9694         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
9695         (movxf): New expand.
9696         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
9697         (call_value_symbol): Remove predicate for operand 0.
9698         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
9699         (untyped_call): Rework to correclty return values for any type.
9700         (untyped_return): New expand.
9701         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
9703 2005-02-16  Stan Shebs  <shebs@apple.com>
9705         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
9706         * config/rs6000/t-darwin8: New, for 64-bit multilib.
9708 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9710         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
9711         configure settings on Solaris 7 and later.
9713 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
9715         PR tree-optimization/19865
9716         * tree-optimize.c (init_tree_optimization_passes): Run
9717         pass_may_alias after pass_sra.
9719 2005-02-16  Richard Henderson  <rth@redhat.com>
9720             Stuart Hastings  <stuart@apple.com>
9722         PR debug/19521
9723         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
9724         Do nothing if debug info suppressed for this function.
9725         (dbxout_begin_function): Early exit if debug info suppressed for
9726         this function.
9728 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
9730         PR target/20007
9731         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
9732         find_basic_blocks.
9733         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9735         PR tree-optimization/19967
9736         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
9737         expand_builtin_strchr, expand_builtin_strrchr): Take a new
9738         argument TYPE.  Adjust calls to fold_builtin_XXX.
9739         (expand_builtin, fold_builtin_1): Adjust calls to
9740         expand_builtin_XXX.
9741         (fold_builtin_strchr, fold_builtin_strpbrk,
9742         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
9743         result to a requested type TYPE.
9745 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
9747         PR middle-end/19857
9748         * fold-const.c (fold): Don't optimize (T)(x & cst) to
9749         (T)x & (T)cst if (T)cst overflows.
9750         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
9751         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
9753 2005-02-15  Jeff Law  <law@redhat.com>
9755         * gcse.c (blocks_with_calls): New bitmap.
9756         (alloc_gcse_mem): Allocate it.
9757         (free_gcse_mem): Free it.
9758         (clear_modifY_mem_tables): Clear it.
9759         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
9760         when we encounter CALL_INSNs.
9761         (compute_transp, case MEM): Handle blocks with calls separate
9762         from blocks without calls.  Use bitmap iterators rather than
9763         FOR_EACH_BB.
9765 2005-02-15  Peter O'Gorman  <peter@pogma.com>
9767         PR bootstrap/18810
9768         * mklibgcc.in (vis_hide): Use a temporary object file, not
9769         -o /dev/null.
9771 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
9773         PR target/19924
9774         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
9775         access optimization.
9777 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
9778             Alan Modra  <amodra@bigpond.net.au>
9780         PR target/19019
9781         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
9782         (_xlqsub): Rename to __gcc_qsub.
9783         (_xlqmul): Rename to __gcc_qmul.
9784         (_xlqdiv): Rename to __gcc_qdiv.
9785         Provide versioned symbol aliases with old names.
9786         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
9787         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
9788         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
9789         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
9790         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
9792 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
9794         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
9795         Fold ~(A - 1) and ~(A + -1) to -A.
9797 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
9799         PR pch/14940
9800         PR target/19300
9801         * config/host-linux.c (linux_gt_pch_use_address): Copy from
9802         config/pa/pa-host.c:pa_gt_pch_use_address.
9804 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
9806         * tree-vn.c (get_value_handle): Make sure that given an
9807         is_gimple_min_invariant expression, we always return it.
9809 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
9811         * passes.c (rest_of_handle_gcse): Fix a comment.
9813 2005-02-15  Jeff Law  <law@redhat.com>
9815         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
9816         bitmap.
9817         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
9818         (canon_list_insert, record_last_mem_set_info): Similarly.
9819         (clear_modify_mem_tables): Similarly.
9821 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
9823         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
9824         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
9825         config/mips/mips.md, config/rs6000/aix.h,
9826         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
9828 2005-02-15  Richard Henderson  <rth@redhat.com>
9830         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
9831         call to be best_edge.
9833 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
9835         * basic-block.h: Adjust the prototype for find_basic_blocks.
9836         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
9837         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
9838         find_basic_blocks.
9840         * flow.c (recompute_reg_usage): Remove all arguments.
9841         * passes.c (rest_of_compilation): Adjust the call to
9842         recompute_reg_usage.
9843         * rtl.h: Adjust the prototype for recompute_reg_usage.
9845 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
9847         * tree-dump.c (dump_files): Update to reflect new member
9848         of dump_file_info.
9849         (dump_register): Add new argument.
9850         Set glob name.
9851         (dump_switch_p_1): Check against glob name if doglob was passed.
9852         (dump_switch_p): Check against regular first, then glob if
9853         we didn't have any hits on the dump name.
9854         * tree-optimize.c (register_one_dump_file):
9855         Pass in glob name as well.
9856         * tree-pass.h (struct dump_file_info): Add glob
9857         member.
9859 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
9861         PR preprocessor/16323
9862         * doc/invoke.texi: Document that -Wendif-labels is on by default.
9864 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
9866         PR target/19019
9867         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
9868         (trunctfdf2_internal1): New.
9869         (trunctfdf2_internal2): Renamed from trunctfdf2.
9871 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
9873         PR tree-optimization/19853
9874         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
9876 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
9878         * passes.c (rest_of_handle_loop_optimize): Remove calls to
9879         delete_dead_jumptables and cleanup_cfg.
9881 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
9883         * reload.c (find_reloads): Swap address_reloaded flags when
9884         swapping commutative operands.
9886 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
9888         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
9889         Use standard_iv_increment_position for computing the bsi position
9890         for create_iv.
9891         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
9892         the bsi position.
9894 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
9896         PR target/17428
9897         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
9898         life range of hard registers.
9899         * value-prof.c (insn_prefetch_values_to_profile): Only
9900         scan normal insns.
9902         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
9903         profile in libcalls.
9905 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
9907         * bitmap.h (bitmap_and_compl_into): Return bool.
9908         * bitmap.c (bitmap_and_compl_into): Return changed flag.
9910 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
9912         PR tree-optimization/19944
9913         * fold-const.c (fold): Re-add ABS_EXPR folding.
9915 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
9917         PR target/19019
9918         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
9919         {TARGET,MASK}_XL_COMPAT.
9920         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
9921         MASK_XL_COMPAT.
9922         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
9923         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
9924         TARGET_XL_COMPAT.
9925         (rs6000_arg_partial_bytes): Same.
9926         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
9927         and XL compatibility enabled.
9928         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
9929         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
9930         test to final condition.
9931         (cmptf_internal2): New.
9932         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
9933         xl-compat.  Add TFmode information to description.
9935 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
9937         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
9939 2005-02-13  Jason Merrill  <jason@redhat.com>
9941         PR c++/16405
9942         * fold-const.c (fold_indirect_ref_1): Split out from...
9943         (build_fold_indirect_ref): Here.
9944         (fold_indirect_ref): New fn.
9945         * tree.h: Declare it.
9946         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
9947         (gimplify_modify_expr_rhs): Likewise.
9948         (gimplify_expr): Likewise.
9950 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
9952         PR tree-optimization/14303
9953         PR tree-optimization/15784
9954         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
9955         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
9956         ABS_EXPR<x> != 0 to x != 0.
9958 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
9960         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
9961         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
9962         spelling conventions.
9964         * passes.c (rest_of_handle_gcse): Don't run cse_main and
9965         delete_trivially_dead_insns too many times.
9967         * passes.c (rest_of_handle_gcse): Remove dead assignments to
9968         tem and tem2.
9970 2005-02-12  Ira Rosen  <irar@il.ibm.com>
9972         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
9973         (vect_is_simple_iv_evolution): Remove redundant parameter
9974         and step check.
9975         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
9976         without last parameter.
9977         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
9978         Return pointer step. Call vect_is_simple_iv_evolution without
9979         last parameter. Check only that the step is multiple of size
9980         type. Remove stmt_vinfo updates.
9981         (vect_get_memtag_and_dr): Remove.
9982         (vect_get_memtag): New function.
9983         (vect_address_analysis): New function.
9984         (vect_object_analysis): New function.
9985         (vect_analyze_data_refs): Call vect_object_analysis and
9986         vect_get_memtag. Update stmt_vinfo fields.
9988 2005-02-12  Ira Rosen  <irar@il.ibm.com>
9990         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
9991         exist and are objects. Remove checks for pointer.
9992         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
9993         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
9994         (vect_create_data_ref_ptr): Likewise.
9995         (vect_base_addr_differ_p): New function.
9996         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
9997         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
9998         Don't set the DR_BASE_NAME field of data-ref.
9999         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
10001 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
10003         * optabs.h (enum optab_index): Add new OTI_ldexp.
10004         (ldexp_optab): Define corresponding macro.
10005         * optabs.c (init_optabs): Initialize ldexp_optab.
10006         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
10007         patterns.
10008         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
10009         using ldexp_optab.
10010         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
10011         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
10013         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
10014         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
10015         intrinsics.
10017 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10019         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
10020         to base_address.
10021         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
10022         stmt_vec_info.
10023         (vect_get_base_and_offset): Always return an address.
10024         (vect_create_addr_base_for_vector_ref): Remove treatment for
10025         different data reference types.
10026         (vect_compute_data_ref_alignment): Rename base to base_address in
10027         stmt_vec_info. Get the object in order to force its alignment.
10028         (vect_get_memtag_and_dr): Rename base to base_address in
10029         stmt_vec_info. Extract the object for memtag analysis.
10031 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
10033         PR regression/19898.
10034         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
10035         changes cc_status, use apply modified_in_p to part of cc_status
10036         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
10037         body.
10039 2005-02-11  Richard Henderson  <rth@redhat.com>
10041         * tree-complex.c (expand_complex_libcall): New.
10042         (expand_complex_multiplication): Use it for c99 compliance.
10043         (expand_complex_division): Likewise.
10044         * fold-const.c (fold_complex_add, fold_complex_mult): New.
10045         (fold): Call them.
10046         * builtins.c (built_in_names): Remove const.
10047         * tree.c (build_common_builtin_nodes): Build complex arithmetic
10048         builtins.
10049         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
10050         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
10051         (built_in_names): Remove const.
10052         * c-common.c (c_common_type_for_mode): Handle complex modes.
10053         * flags.h, toplev.c (flag_complex_method): Rename from
10054         flag_complex_divide_method.
10055         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
10056         __mulsc3, __muldc3, __mulxc3, __multc3): New.
10057         * libgcc2.h: Declare them.
10058         * libgcc-std.ver: Export them.
10059         * mklibgcc.in (lib2funcs): Build them.
10061 2005-02-11  Steven Bosscher  <stevenb@suse.de>
10063         PR tree-optimization/19876
10064         Partially revert my change from 2005-01-14
10065         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
10066         (compute_antic): ...and remove the loop here.
10068 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
10070         PR middle-end/19858
10071         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
10072         is number of inner's bits, avoid creating a BIT_FIELD_REF.
10074         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
10075         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
10077 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
10079         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
10080         offsets for the big-endian 32-bit case.
10082 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
10084         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
10086 2005-02-11  Dale Johannesen  <dalej@apple.com>
10088         * cselib.c (cselib_process_insn):  Clear out regs where
10089         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
10090         * reload.c (find_equiv_reg): Ditto.
10092 2005-02-11  Ian Lance Taylor  <ian@airs.com>
10094         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
10095         with no elements.
10097         * tree.c (build_function_type_list): Work correctly if there are
10098         no arguments.
10100 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
10102         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
10103         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
10104         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
10105         TARGET_ZARCH instead of TARGET_64BIT.
10107 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
10109         * config/rs6000/t-rtems:
10110         (MULTILIB_OPTIONS): Remove mcpu=602.
10111         (MUTLILIB_DIRNAMES): Remove m602.
10112         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
10113         Let mcpu=602 match mcpu=603.
10114         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
10116 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10118         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
10119         signal trampolines.
10121 2005-02-10  David Daney  <ddaney@avtrex.com>
10123         * config/alpha/linux-unwind.h: Add exception clause to copyright.
10124         * config/i386/linux-unwind.h: Likewise.
10125         * config/ia64/linux-unwind.h: Likewise.
10126         * config/mips/linux-unwind.h: Likewise.
10127         * config/pa/linux-unwind.h: Likewise.
10128         * config/rs6000/linux-unwind.h: Likewise.
10129         * config/s390/linux-unwind.h: Likewise.
10130         * config/sh/linux-unwind.h: Likewise.
10131         * config/sparc/linux-unwind.h: Likewise.
10133 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10135         PR tree-optimization/17549
10136         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
10137         TER to replace a DEF with its expression if the DEF and the
10138         rhs of the expression we replace into have the same root
10139         variable.
10141 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
10143         * config/mips/mips.md: Fix the placement of the match_scratch in the
10144         lea64 peephole2.
10146 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10148         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
10149         Fix comment typos.
10151 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
10153         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
10154         (strip_offset): Handle addresses.
10155         (add_address_candidates): Use strip_offset.
10156         (difference_cost): Reflect strip_offset change.
10157         (force_var_cost, difference_cost): Strip nops.
10159 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10161         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
10163         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
10164         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
10165         config/cris/cris-protos.h, config/cris/cris.c: Update
10166         copyright.
10168 2005-02-10  Jeff Law  <law@redhat.com>
10170         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
10171         (lookup_avail_expr): Similarly.
10173 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
10175         * builtins.c (fold_builtin_powi): New function.
10176         (fold_builtin_1): Call it.
10178 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10180         PR documentation/19309
10181         * doc/cpp.texi: The __GNUC__ and related predefined macros
10182         are also defined for the "standalone" cpp.
10183         Some non-GCC compilers may also define __GNUC__.
10185 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
10187         PR c/19342
10188         * c-typeck.c (common_type): New routine.  Old common_type renamed
10189         to...
10190         (c_common_type): ...this.
10191         (build_conditional_expr, build_binary_op): Use c_common_type instead
10192         of common_type.
10194 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10196         * doc/md.texi: Replace @samp{length} with @code{length}.
10198 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
10200         PR tree-optimization/18687
10201         * tree-flow.h (find_loop_niter): Declare.
10202         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
10203         Try using scev even for loops with more than one exit.
10204         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
10205         (struct ivopts_data): Added niters field.
10206         (struct nfe_cache_elt): New.
10207         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
10208         functions.
10209         (tree_ssa_iv_optimize_init): Initialize niters cache.
10210         (determine_number_of_iterations): Removed.
10211         (find_induction_variables): Do not call determine_number_of_iterations.
10212         Access niters for single exit through niter_for_single_dom_exit.
10213         (add_iv_outer_candidates): Access niters for single exit through
10214         niter_for_single_dom_exit.
10215         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
10216         number_of_iterations_cond.
10217         (iv_period): New function.
10218         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
10219         (may_replace_final_value): Take data argument.  Use
10220         niter_for_single_dom_exit.
10221         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
10222         (rewrite_use_compare): Pass data to may_eliminate_iv.
10223         (rewrite_use_outer): Pass data to may_replace_final_value.
10224         (free_loop_data): Clean up the niters cache.
10225         (tree_ssa_iv_optimize_finalize): Free the niters cache.
10226         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
10227         * tree-ssa-loop-niter.c (find_loop_niter): New function.
10228         (find_loop_niter_by_eval): Use tree_int_cst_lt.
10229         (num_ending_zeros): Moved to tree.c.
10230         * tree.h (num_ending_zeros): Declare.
10231         * tree.c (num_ending_zeros): Moved from tree.c.
10233 2005-02-09  Richard Henderson  <rth@redhat.com>
10235         * builtins.c (DEF_BUILTIN): Add COND argument.
10236         * tree.h (DEF_BUILTIN): Likewise.
10237         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
10238         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
10239         match.
10240         (DEF_BUILTIN_STUB): New.
10241         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
10242         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
10243         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
10244         * c-common.c (DEF_BUILTIN): Add COND argument.
10245         * tree.c (local_define_builtin): New.
10246         (build_common_builtin_nodes): New.
10248 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10250         * fold-const.c (fold_strip_sign_ops): New function to simplify a
10251         floating point expression ignoring the sign of the result.
10252         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
10253         (fold) <MULT_EXPR>: Use it to simplify x*x.
10254         * tree.h (fold_strip_sign_ops): Prototype here.
10255         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
10256         argument.  Use fold_strip_sign_ops to simplify the first argument.
10257         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
10258         first argument when the second argument is an even integer
10259         constant, but only with -funsafe_math_optimizations.
10260         (fold_builtin_1): Update call to fold_builtin_copysign.
10262 2005-02-09  Ian Lance Taylor  <ian@airs.com>
10264         PR middle-end/19583
10265         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
10266         just check whether EH_FILTER_FAILURE falls through.
10268 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
10270         * gcc/haifa-sched.c (schedule_block): Make queued sched group
10271         insns return to ready list in the next turn.
10273 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10275         PR middle-end/19402
10276         * builtins.def: New __builtin_powi[lf].
10277         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
10278         (expand_builtin_powi): New function.
10279         (expand_builtin): Dispatch to expand_builtin_powi.
10280         * libgcc2.h: Add prototypes for __builtin_powi[lf].
10281         * libgcc2.c: Add __builtin_powi[lf] implementation.
10282         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
10283         * optabs.h: Add powi_optab.
10284         * optabs.c (init_optabs): Initialize powi_optab.
10285         * doc/extend.texi: Document __builtin_powi[lf].
10287 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
10289         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
10290         exists.
10292 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10294         PR middle-end/19854
10295         * fold-const.c (try_move_mult_to_index): Remove redundant
10296         type argument.  Create ADDR_EXPR with correct type.
10297         (fold): Update callers of try_move_mult_to_index.  Convert
10298         result to the appropriate type.
10300 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10302         PR target/19597
10303         * config/avr/avr.c (default_rtx_costs): Delete.
10304         (avr_operand_rtx_cost): New function.
10305         (avr_rtx_costs): Completely rewrite.
10307 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
10309         PR target/19806
10310         * config/cris/cris.c (in_code): New variable.
10311         (cris_output_addr_const): Now a static function, a wrapper for
10312         output_addr_const.
10313         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
10314         case from old cris_output_addr_const.
10315         (cris_asm_output_label_ref): Similar for LABEL_REF.
10316         (cris_output_addr_const_extra): Similar for UNSPEC.
10317         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
10318         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
10319         * config/cris/cris-protos.h (cris_output_addr_const): Remove
10320         declaration.
10321         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
10322         (cris_asm_output_label_ref): Declare.
10324 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
10326         PR preprocessor/19801
10327         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
10328         filenames that changed when libcpp was moved to the toplevel.
10330 2005-02-07  Roger Sayle  <roger@eyesopen.com>
10332         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
10333         zero extensions of BImode operands.  Call lowpart_subreg instead
10334         of gen_lowpart_common and gen_lowpart_SUBREG.
10336 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
10338         PR ada/19489
10339         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
10340         * configure.ac: Set cc_for_cross_gnattools.
10341         * configure: Regenerate.
10343 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
10345         PR target/19803
10346         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
10348 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10350         PR debug/19327
10351         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
10352         of nested functions.
10354 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
10356         * doc/extend.texi: Document deprecated extensions allowing
10357         static floating-point members to have initializers and allowing
10358         floating-point literals in integral constant expressions.
10360 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10362         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
10363         config/darwin7.h, config/mips/mips.c,
10364         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
10365         Update copyright.
10367         * cse.c: Update comments.
10369 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
10371         PR middle-end/19775
10372         * builtins.c (fold_builtin_sqrt): Transform
10373         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
10374         pow(x,y*0.5).
10376 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
10377             Dorit Naishlos  <dorit@il.ibm.com>
10379         * doc/invoke.texi (ftree-vectorizer-verbose): New.
10380         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
10381         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
10382         was added.
10383         * tree.h (vect_set_verbosity_level): New extern function declaration
10384         added.
10385         * tree-vectorizer.h (verbosity_levels): New enum type.
10386         * tree-vectorizer.c (vect_debug_stats): Function removed.
10387         (vect_debug_details): Likewise.
10388         (vect_verbosity_level): Global variable was defined and initialized.
10389         (vect_dump): Global variable definition.
10390         (vect_print_dump_info): New function.
10391         (vect_set_dump_settings): New function.
10392         (vect_set_verbosity_level): New function.
10393         (vectorize_loops): Add call to vect_set_dump_settings.
10395         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
10396         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10397         (slpeel_tree_peel_loop_to_edge): Likewise.
10399         (vect_analyze_offset_expr): Call to vect_print_dump_info with
10400         appropriate verbosity level instead of call to vect_debug_details
10401         or vect_debug_stats.
10402         (vect_get_base_and_offset):
10403         (vect_create_addr_base_for_vector_ref):
10404         (get_vectype_for_scalar_type):
10405         (vect_create_data_ref_ptr):
10406         (vect_init_vector):
10407         (vect_get_vec_def_for_operand):
10408         (vect_finish_stmt_generation):
10409         (vectorizable_assignment):
10410         (vectorizable_operation):
10411         (vectorizable_store):
10412         (vectorizable_load):
10413         (vect_transform_stmt):
10414         (vect_update_ivs_after_vectorizer):
10415         (vect_do_peeling_for_loop_bound):
10416         (vect_update_inits_of_drs):
10417         (vect_do_peeling_for_alignment):
10418         (vect_transform_loop):
10419         (vect_is_simple_use):
10420         (vect_analyze_operations):
10421         (vect_is_simple_iv_evolution):
10422         (vect_analyze_scalar_cycles):
10423         (vect_analyze_data_ref_dependence):
10424         (vect_analyze_data_ref_dependences):
10425         (vect_compute_data_ref_alignment):
10426         (vect_enhance_data_refs_alignment):
10427         (vect_analyze_data_refs_alignment):
10428         (vect_analyze_data_ref_access):
10429         (vect_analyze_data_ref_accesses):
10430         (vect_analyze_pointer_ref_access):
10431         (vect_get_memtag_and_dr):
10432         (vect_analyze_data_refs):
10433         (vect_mark_relevant):
10434         (vect_stmt_relevant_p):
10435         (vect_mark_stmts_to_be_vectorized):
10436         (vect_can_advance_ivs_p):
10437         (vect_get_loop_niters):
10438         (vect_analyze_loop_form):
10439         (vect_analyze_loop):
10440         (vectorize_loops): Likewise.
10442         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
10443         (vect_update_inits_of_drs):
10444         (vect_do_peeling_for_alignment):
10445         (vect_transform_loop):
10446         (vect_analyze_operations):
10447         (vect_analyze_scalar_cycles):
10448         (vect_analyze_data_ref_dependences):
10449         (vect_analyze_data_refs_alignment):
10450         (vect_analyze_data_ref_accesses):
10451         (vect_analyze_data_refs):
10452         (vect_mark_stmts_to_be_vectorized):
10453         (vect_get_loop_niters):
10454         (vect_analyze_loop_form):
10455         (vect_analyze_loop): Likewise.
10456         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
10458 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
10460         PR bootstrap/19796
10461         Revert:
10462         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
10463         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
10464         either -ffast-math or -funsafe-math-optimizations is in use.
10466         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
10467         * config/mips/irix-csr.c: New file.
10468         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
10469         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
10470         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
10471         executables.
10473 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
10475         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
10476         redundant, incorrect definitions.
10478         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
10479         expand.
10480         ("*tls_indirect_call"): New, reference hard regs directly.
10481         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
10483 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10485         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
10486         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
10488 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10490         PR rtl-optimization/19800
10491         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
10492         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
10493         gen_lowpart.
10495 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10497         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
10499 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
10501         PR other/17135
10502         * doc/invoke.texi: Correct documentation of -freorder-functions.
10504 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10506         PR other/14402
10507         * doc/invoke.texi: Don't mention gccbug.
10509 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10510             Andrew Pinski  <pinskia@physics.uc.edu>
10511             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
10513         * simplify-rtx.c (simplify_relational_operation_1): Simplify
10514         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
10515         into just (zero_extract:SI FOO (const_int 1) BAR).
10517 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10519         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
10520         macro locally.  Don't give last revision date.  Use GCC version
10521         number from gcc-common.texi.
10522         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
10523         revision date.  Use GCC version number from gcc-common.texi.
10524         Describe being a library as current state rather than as 3.x
10525         history.
10526         * doc/gcc.texi: Remove last update date.
10527         * doc/gccint.texi: Likewise.  Update copyright dates.
10528         * doc/install.texi: Update copyright dates.
10530 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10532         PR other/7549
10533         * doc/invoke.texi: Mention for each option included in -Wall that
10534         it is included in -Wall.
10535         * doc/gcc.texi: Update copyright and last modification date.
10537 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10539         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
10540         unnecessary cast to original induction variable increments.
10542 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10544         PR tree-optimization/18219
10545         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
10546         in distributed form.
10548 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
10550         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
10551         Set bitpos and offset later in the function.  Do nothing if the
10552         target is a register and if the bitfield lies completely outside
10553         that register.
10554         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
10555         here.  Return an uninitialised register if the source value is stored
10556         in a register and the bitfield lies completely outside that register.
10558 2005-02-06  Steven Bosscher  <stevenb@suse.de>
10560         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
10561         not SET_DEST.
10563 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
10565         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
10567 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
10569         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
10570         * config/darwin8.h: New.
10571         * config/darwin7.h: Update comment.
10573 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10574             Dorit Naishlos  <dorit@il.ibm.com>
10576         * tree-vectorizer.h (LOC): New type.
10577         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
10578         (loop_line_number): New field in struct _loop_vec_info.
10579         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
10581         * tree-vectorizer.c (input.h): Included.
10582         (find_loop_location): New function.
10583         (vect_debug_stats): Argument changed from loop to LOC. Computation of
10584         loop line number removed.
10585         (vect_debug_details): Likewise.
10586         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
10588         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
10589         call to vect_debug_details/stats changed from loop to loop_loc.
10590         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10591         (slpeel_tree_peel_loop_to_edge): Likewise.
10593         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
10594         changed from NULL to UNKNOWN_LOC.
10595         (vect_get_base_and_offset):
10596         (vect_create_addr_base_for_vector_ref):
10597         (get_vectype_for_scalar_type):
10598         (vect_create_data_ref_ptr):
10599         (vect_init_vector):
10600         (vect_get_vec_def_for_operand):
10601         (vect_finish_stmt_generation):
10602         (vectorizable_assignment):
10603         (vectorizable_operation):
10604         (vectorizable_store):
10605         (vectorizable_load):
10606         (vect_transform_stmt):
10607         (vect_update_ivs_after_vectorizer):
10608         (vect_do_peeling_for_loop_bound):
10609         (vect_do_peeling_for_alignment):
10610         (vect_transform_loop):
10611         (vect_is_simple_use):
10612         (vect_analyze_operations):
10613         (vect_is_simple_iv_evolution):
10614         (vect_analyze_scalar_cycles):
10615         (vect_analyze_data_ref_dependences):
10616         (vect_compute_data_ref_alignment):
10617         (vect_enhance_data_refs_alignment):
10618         (vect_analyze_data_ref_access):
10619         (vect_analyze_data_ref_accesses):
10620         (vect_analyze_pointer_ref_access):
10621         (vect_get_memtag_and_dr):
10622         (vect_analyze_data_refs):
10623         (vect_mark_relevant):
10624         (vect_stmt_relevant_p):
10625         (vect_mark_stmts_to_be_vectorized):
10626         (vect_can_advance_ivs_p):
10627         (vect_get_loop_niters):
10628         (vect_analyze_loop):
10629         (vectorize_loops): Likewise.
10631         (vectorizable_load): Argument in call to vect_debug_details/stats
10632         changed from loop to LOOP_LOC (loop_vinfo).
10633         (vect_transform_loop):
10634         (vect_analyze_operations):
10635         (vect_analyze_scalar_cycles):
10636         (vect_analyze_data_ref_dependence):
10637         (vect_enhance_data_refs_alignment):
10638         (vect_analyze_data_ref_accesses):
10639         (vect_analyze_pointer_ref_access):
10640         (vect_analyze_data_refs):
10641         (vect_analyze_loop): Likewise.
10643         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
10644         changed from loop to loop_loc.
10646         (vect_enhance_data_refs_alignment): Removed unused variable loop.
10648 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10649             Dorit Naishlos  <dorit@il.ibm.com>
10651         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
10652         declaration added.
10653         (vect_analyze_data_ref_dependences): Likewise.
10655         (vect_is_simple_use): Argument changed from loop structure to
10656         loop_vect_info structure.
10657         (vect_can_advance_ivs_p): Likewise.
10658         (vect_create_index_for_vector_ref): Likewise.
10659         (vect_update_ivs_after_vectorizer): Likewise.
10660         (new_stmt_vec_info): Likewise.
10662         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
10663         changed from loop to loop_vinfo.
10664         (vect_create_data_ref_ptr): First argument in call to
10665         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
10666         (vectorizable_assignment): Second argument in call to vect_is_simple_use
10667         was changed from loop to loop_vinfo.
10668         (vectorizable_operation): Likewise.
10669         (vectorizable_store): Likewise.
10670         (vect_mark_stmts_to_be_vectorized): Likewise.
10671         (vect_do_peeling_for_loop_bound): First argument in call to
10672         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
10673         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
10674         was changed from loop to loop_vinfo.
10675         (vect_analyze_data_ref_dependences): Third argument in call to
10676         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
10678         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
10679         (vect_create_data_ref_ptr): Likewise.
10680         (vect_init_vector): Likewise.
10681         (vect_get_vec_def_for_operand): Likewise.
10682         (vectorizable_assignment): Likewise.
10683         (vectorizable_operation): Likewise.
10684         (vectorizable_store): Likewise.
10685         (vectorizable_load): Likewise.
10686         (vect_update_ivs_after_vectorizer): Likewise.
10687         (vect_is_simple_use): Likewise.
10688         (vect_analyze_data_ref_dependence): Likewise.
10689         (vect_analyze_pointer_ref_access): Likewise.
10690         (vect_can_advance_ivs_p): Likewise.
10692         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
10693         before _stmt_vec_info.
10694         (_stmt_vec_info): Loop field replaced by loop_vec_info.
10695         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
10696         (new_stmt_vec_info): Argument changed from loop structure to
10697         loop_vect_info structure
10699         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
10700         (vect_analyze_offset_expr): Avoid 80 columns overflow.
10701         (vect_create_addr_base_for_vector_ref): Likewise.
10702         (vect_analyze_pointer_ref_access): Likewise.
10704 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10706         PR tree-opt/19768
10707         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
10708         phi flag if the phi is abnormal.
10710 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10712         PR tree-opt/19736
10713         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
10714         information for the new statement.
10716 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10718         PR driver/19117
10719         * gcc.c (main): Include the target in -v output.
10721 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
10723         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
10724         Do not drop the extend if we'd have to add a paradoxical subreg
10725         later.  Include optabs.h and insn-codes.h.
10726         * Makefile.in (combine.o): Depend on $(OPTABS_H).
10728 2005-02-02  Roger Sayle  <roger@eyesopen.com>
10730         PR middle-end/19405
10731         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
10732         * fold-const.c (const_binop): Avoid constant folding floating
10733         point operations in modes that use composite representations.
10734         * simplify-rtx.c (simplify_binary_operation): Likewise.
10736 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
10738         * config/rs6000/altivec.md (altivec_dst): Make the first operand
10739         a REG, not a MEM.
10740         (altivec_dstt): Likewise.
10741         (altivec_dstst): Likewise.
10742         (altivec_dststt): Likewise.
10743         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
10744         of first operand.
10746 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10748         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
10749         EXPR_LOCUS from orig_cond to the new cond_stmt.
10750         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
10751         the new vec_stmt.
10753 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10755         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
10756         standard_iv_increment_position. Remove call to bsi_next
10757         (no need to bump the iterator anymore).
10758         (vect_create_index_for_vector_ref): Call
10759         standard_iv_increment_position. Remove second function argument.
10760         (vect_finish_stmt_generation): Remove call to bsi_next
10761         (no need to bump the iterator anymore).
10762         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
10763         to vect_create_index_for_vector_ref.
10765 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10767         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
10768         phis are used out of the loop.
10770 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10772         PR c/17807
10773         * c-decl.c (undef_nested_function): New variable.
10774         (pop_scope): Diagnose undefined nested functions.
10775         (finish_function): Don't attempt cgraph processing or genericizing
10776         if current top-level function contained an undefined nested
10777         function.  Reset undef_nested_function at the end of a top-level
10778         function.
10780 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
10782         * tree.c (build_int_cst_type): Take sign of the value into account
10783         when deciding whether sign extend the value.
10785 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10787         PR c/18502
10788         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
10789         (cpp_options, cc1_options): Change %{std*&ansi} to
10790         %{std*&ansi&trigraphs}.
10792 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
10794         * cse.c: Update comments.
10796 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
10798         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
10799         arguments go on the stack.  Do not put complex doubles in odd/even
10800         pairs.
10802 2005-02-02  Steven Bosscher  <stevenb@suse.de>
10804         * doc/invoke.texi: Update the options enabled at -O1, -O2,
10805         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
10806         -ftree-pre, and -fthread-jumps.
10808 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
10810         PR tree-optimization/19578
10811         * tree-flow.h (modified_noreturn_calls): Declare.
10812         (noreturn_call_p): Declare.
10813         * tree-flow-inline.h (noreturn_call_p): New function.
10814         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
10815         * tree-cfg.c (modified_noreturn_calls): New variable.
10816         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
10817         that contain a mid-block noreturn call.
10818         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
10820 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
10822         * df.c (df_def_record_1, df_uses_record): Don't use
10823         DF_FOR_REGALLOC.
10824         * df.h (DF_FOR_REGALLOC): Remove.
10826 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10828         PR c/19435
10829         * c-typeck.c (really_start_incremental_init): Reset
10830         constructor_max_index for arrays of incomplete type.
10832 2005-02-02  Jeff Law  <law@redhat.com>
10834         * gcse.c (struct reg_set): Store the block index where the register
10835         was set rather than the setting insn.
10836         (record_one_set, compute_transp): Corresponding changes.
10837         (pre_insert_copy_insn): Do not call replace_one_set.
10838         (replace_one_set): Remove.
10840 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10842         PR other/15514
10843         * doc/gcov.texi: Fix typo.
10845 2005-02-01  Richard Henderson  <rth@redhat.com
10847         PR target/19680
10848         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
10849         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
10850         type to bool.
10851         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
10852         * config/i386/i386-protos.h: Update.
10854 2005-02-01  Steven Bosscher  <stevenb@suse.de>
10856         PR tree-optimization/19217
10857         * tree-cfg.c (verify_expr): Use the data field to see if TP was
10858         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
10859         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
10860         that it is walking a PHI node.
10862 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
10864         * doc/extend.texi (Nested Functions): Update.
10866 2005-02-01  Richard Henderson  <rth@redhat.com>
10868         PR 19696
10869         * optabs.c (expand_copysign_absneg): Export.
10870         * optabs.h (expand_copysign_absneg): Declare.
10871         * config/rs6000/rs6000.md (copysigntf3): New.
10873 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
10875         PR tree-optimization/19633
10876         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
10877         * tree-ssa-alias.c (init_alias_info): Initialize.
10878         (merge_pointed_to_info): Set.
10879         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
10880         (dump_points_to_info_for): Show value of pt_null.
10881         (struct count_ptr_d): Declare.
10882         (find_ptr_dereference): Remove.
10883         (ptr_is_dereferenced_by): Remove.
10884         (count_ptr_derefs): New local function.
10885         (count_uses_and_derefs): New local function.
10886         (compute_points_to_and_addr_escape): Call it.  If the number
10887         of dereferences is greater than zero, mark the pointer as
10888         dereferenced.  If there are fewer dereferences than uses of
10889         the pointer, the pointer's value escapes.
10891 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
10893         PR tree-optimization/19670
10894         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
10895         here...
10896         (verify_use): ... set it here, instead.
10898 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
10900         * doc/sourcebuild.texi (Test directives): Fix formatting.
10902         * doc/sourcebuild.texi (Test directives): Describe selector
10903         expressions.
10905 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
10907         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
10908         specific 64-bit CPUs.
10910 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
10912         PR target/16201
10913         * arm.c (arm_eliminable_register): New function.
10914         (adjacent_mem_locations): Don't allow eliminable registers.  Use
10915         HOST_WIDE_INT for address offsets.
10916         * arm-protos.h (arm_eliminable_register): Add prototype.
10918 2005-02-01  Steven Bosscher  <stevenb@suse.de>
10920         PR optimization/15242
10921         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
10922         * basic-block.h (duplicate_computed_gotos): Add prototype.
10923         * bb-reorder.c (duplicate_computed_gotos): New function to
10924         duplicate sufficiently small blocks ending in a computed jump.
10925         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
10926         if not optimizing for size.
10927         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
10928         never do tail merging for blocks ending in a computed jump.
10929         * doc/invoke.texi: Document the max-goto-duplication-insns param.
10931 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
10933         Patch from Richard Sandiford <rsandifo@redhat.com>
10934         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
10935         from inheriting a subreg equivalence with a non-spill register.
10937         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
10939 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
10941         * config/frv/frv.c (movcc_fp_destination_operand): New.
10942         (gpr_or_memory_operand): Fix typo in comment.
10943         (gpr_or_memory_operand_with_scratch): New.
10944         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
10945         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
10946         movcc_fp_destination_operand.
10947         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
10948         Legitimize memory addresses using a scratch register.
10950 2005-01-31  Jeff Law  <law@redhat.com>
10952         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
10953         bitmap a sparse bitmap instead of a simple bitmap.
10954         (mark_def_sites_initialize_block):  Corresponding changes.
10955         (ssa_mark_def_sites_initialize_block): Likewise.
10956         (ssa_mark_phi_uses): Likewise.
10957         (mark_def_site, ssa_mark_def_sites): Likewise.
10958         (mark_def_site_blocks): Likewise.
10959         (rewrite_ssa_into_ssa): Likewise.
10961         * tree-ssa-dom.c (record_cond): Pass correct variable type
10962         for last argument to htab_find_slot_with_hash.
10964         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
10965         effects when optimizing 0 % X.  Do not try to optimize X % 0.
10967 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
10969         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
10970         1_mmalua.
10972 2005-02-01  Eric Christopher  <echristo@redhat.com>
10974         * config/mips/mips.c (override_options): Warn if -mint64
10975         is used.
10976         * doc/invoke.texi (MIPS Options): Document that -mint64 is
10977         deprecated.
10979 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
10981         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
10982         timestamp.
10983         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
10984         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
10985         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
10986         (cached_regno): Initialize to INVALID_REGNUM.
10987         (cse_reg_info_table_size,
10988         cse_reg_info_table_first_uninitialized,
10989         cse_reg_info_timestamp): New.
10990         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
10991         get_cse_reg_info.
10992         (init_cse_reg_info, get_cse_reg_info_1): New.
10993         (get_cse_reg_info): Cache the last look-up.
10994         (new_basic_block): Update the code to clear mappings from
10995         registers to cse_reg_info entries.
10996         (cse_main): Call init_cse_reg_info.
10998         * cse.c (get_cse_reg_info): Update a comment.
11000 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11002         PR c/19333
11003         * c-decl.c (start_decl): Do not warn about arrays of elements with
11004         an incomplete type here.
11005         (grokdeclarator): Do it here by making a pedwarn an error.
11006         * c-typeck.c (push_init_level): If there were previous errors with
11007         the constructor type, do not warn about braces for initializers.
11008         (process_init_element): Likewise for excess initializer elements.
11010 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
11012         * cse.c (delete_trivially_dead_insn): Don't iterate.
11014 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11016         * config/rs6000/rs6000.md (copysignsf3): New expand.
11017         (copysigndf3): Likewise.
11019 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11021         * recog.c (constrain_operands): Only look for earlyclobber operand
11022         conflicts if an '&' constraint was seen.
11024 2005-01-31  Marc Espie <espie@openbsd.org>
11026         * config.gcc: Don't include embedded systems fragment, switches default
11027         debugging format to ELF.
11028         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
11029         longer pick it up there.
11031 2005-01-31  Dale Johannesen  <dalej@apple.com>
11033         * doc/extend.texi (nested functions): Fix linkage description.
11034         Clarify that static is not allowed.
11036 2005-01-31  Dale Johannesen  <dalej@apple.com>
11038         * config/rs6000/darwin.md (movsf_low_di):  Make work.
11039         (movdf_low_di):  Make work.
11041 2005-01-31  Dale Johannesen  <dalej@apple.com>
11043         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
11044         Make work for 64 bit.
11046 2005-01-31  Roger Sayle  <roger@eyesopen.com>
11047             Dale Johannesen  <dalej@apple.com>
11049         PR middle-end/19650
11050         * fold-const.c (fold_binary_op_with_conditional_arg):
11051         Make types match original operands, before STRIP_NOPS.
11053 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
11055         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
11056         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
11057         (struct gcc_sigcontext): Delete.  Merge contents to..
11058         (struct gcc_ucontext): ..here.
11059         (get_sigcontext): Delete.
11060         (get_regs): New function, like get_sigcontext but return regs ptr.
11061         64-bit version finds regs from r1 to support vdso.
11062         (ppc_linux_aux_vector): New function.
11063         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
11064         and vector regs.
11066 2005-01-31  Ira Rosen  <irar@il.ibm.com>
11068         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
11069         sizetype.
11070         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
11071         redundant fold. Fix misalignment for MINUS_EXPR.
11072         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
11073         (vect_analyze_pointer_ref_access): Likewise.
11074         (vect_get_memtag_and_dr): Likewise.
11076 2005-01-31  Richard Henderson  <rth@redhat.com>
11078         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
11079         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
11080         absnegdf2_i387, absnegxf2_i387): Likewise.
11082 2005-01-31  Richard Henderson  <rth@redhat.com>
11084         PR 19696
11085         * optabs.c (expand_copysign_absneg): New.
11086         (expand_copysign_bit): Split out from ...
11087         (expand_copysign): ... here.  Use expand_copysign_absneg.
11089 2005-01-30  Roger Sayle  <roger@eyesopen.com>
11091         PR middle-end/19697
11092         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
11093         constant as the second operand and a register as the third.
11095 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
11097         PR target/19704
11098         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
11099         that dllimport'd functions do not use all call-clobbered registers
11100         to pass parameters.
11102 2005-01-30  Richard Henderson  <rth@redhat.com>
11104         PR 19696
11105         * optabs.c (expand_absneg_bit): Split out from expand_unop and
11106         expand_abs_nojump and generalize.  Use operand_subword and
11107         emit_no_conflict_block.  Support large modes.
11108         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
11109         back to maximum.
11110         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
11111         negation to subtraction.
11112         (expand_copysign): Check that the format has signed zeros.
11113         Use operand_subword and emit_no_conflict_block.  Support large modes.
11115 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
11117         Fix PR tree-optimization/19624
11119         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
11120         * tree-ssa-pre.c: Add cfgloop.h.
11121         Update comment.
11122         (pre_stats): New member, constified.
11123         (inserted_exprs): New static variable.
11124         (NECESSARY): New macro.
11125         (create_expression_by_pieces): Fold the expression, and
11126         mark it as defaulting to not necessary. Also put in
11127         inserted_exprs.
11128         (fully_constant_expression): New function.
11129         (insert_into_preds_of_block): Modify to not insert phis when we
11130         are playing with induction variables.
11131         Push phis onto the inserted_exprs vector, and mark them as not
11132         necessary by default.
11133         (insert_aux): Call fully_constant_expression on eprime.
11134         If all edges produce the same value, mark it constant.
11135         (mark_operand_necessary): New function.
11136         (remove_dead_inserted_code): New function.
11137         (init_pre): Init loop optimizer to get loop info.
11138         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
11139         (execute_pre): Commit edge inserts, then remove dead code.
11141 2005-01-30  Richard Henderson  <rth@redhat.com>
11143         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
11144         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
11146 2005-01-30  Richard Henderson  <rth@redhat.com>
11148         PR target/19700
11149         * config/i386/i386.c (ix86_expand_copysign): New.
11150         (ix86_split_copysign_const): New.
11151         (ix86_split_copysign_var): Rename from ix86_split_copysign,
11152         rearrange op1/nmask operands.
11153         * config/i386/i386-protos.h: Update.
11154         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
11155         (copysigndf3): Likewise.
11156         (copysignsf3_const, copysigndf3_const): New.
11157         (copysignsf3_var): Rename from copysignsf3, split out splitter
11158         and fix split predicate for X constraint.
11159         (copysigndf3_var): Similarly.
11161 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11163         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
11164         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
11165         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
11167 2005-01-29  Richard Henderson  <rth@redhat.com>
11169         PR target/19690
11170         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
11171         of # and * in constraints.
11173 2005-01-29  Richard Henderson  <rth@redhat.com>
11175         PR middle-end/19689
11176         * expr.c (store_field): Don't strip sub-mode cast when the input
11177         data is even smaller.
11179 2005-01-29  Richard Henderson  <rth@redhat.com>
11181         PR middle-end/19687
11182         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
11183         union being empty.
11185 2005-01-29  Richard Henderson  <rth@redhat.com>
11187         * combine.c (make_field_assignment): Fix argument order
11188         to gen_int_mode.
11190 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
11192         PR tree-optimization/15791
11193         * fold-const.c (extract_array_ref): New function.
11194         (fold): Fold comparisons between &a[i] and &a[j] or
11195         semantically equivalent trees.
11197 2005-01-29  Jeff Law  <law@redhat.com>
11199         * gcse.c (insert_expr_in_table): Revamp handling of available
11200         and anticipatable occurrence lists to avoid unnecessary list
11201         walking.
11202         (insert_set_in_table): Similarly.
11204 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
11206         * c-common.c (fix_string_type): Just use c_build_qualified_type to
11207         build string type.
11208         (c_build_qualified_type): Build qualified array types with
11209         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
11210         * c-decl.c (c_make_fname_decl): Build unqualified array type
11211         before qualified type.
11212         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
11213         type is qualified, not just if type itself is.  Don't apply
11214         qualifiers to array type when declarator is processed.  Apply
11215         qualifiers to field type whether or not it is an array type.
11216         Don't handle array types specially for applying qualifiers to
11217         variables.
11218         * c-typeck.c (composite_type): Build unqualified element type and
11219         array type when forming composite of array types.
11220         (common_pointer_type, comptypes, comp_target_types,
11221         type_lists_compatible_p, build_indirect_ref, build_array_ref,
11222         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
11223         types.
11224         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
11225         (args2) in variables a1 and a2.
11227 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
11229         * cse.c (n_elements_made, max_elements_made): Remove.
11230         (insert): Don't touch n_elements_made.
11231         (cse_main): Don't touch n_elements_made or max_elements_made.
11233 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
11235         PR target/15384
11236         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
11237         configuration part of dp-bit.c to be lost.
11239 2005-01-28  Roger Sayle  <roger@eyesopen.com>
11241         * expmed.c (expand_mult_highpart_optab): When attempting to use
11242         a non-widening multiplication in a wider mode, the operands need
11243         to be converted (zero or sign extended) to that mode.
11245 2005-01-28  Ian Lance Taylor  <ian@airs.com>
11247         PR middle-end/16558
11248         PR middle-end/19583
11249         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
11250         through if both operands fall through.
11252 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11254         * cse.c (fold_rtx) <PC>: Don't optimize.
11256 2005-01-28  Jeff Law  <law@redhat.com>
11258         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
11259         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
11261 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11263         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
11264         cse_reg_info_used_list_end): Remove.
11265         (cse_reg_info_list, cse_reg_info_list_free): New.
11266         (get_cse_reg_info): When allocating an instance of
11267         cse_reg_info, add it to the beginning of the cse_reg_info_list
11268         list.  Remove code to maintain cse_reg_info_used_list.
11269         (new_basic_block): Reset the free list to the beginning of
11270         cse_reg_info_list.
11272 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
11274         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
11275         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
11276         (frv_expand_mdpackh_builtin): New function.
11277         (frv_expand_builtin): Use it to expand __MDPACKH.
11278         * doc/extend.texi (__MDPACKH): Update documentation.
11280 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
11282         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
11283         SSE_FLOAT_MODE_P for use_sse computation.
11285 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
11287         PR target/19663
11288         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
11290 2005-01-27  Richard Henderson  <rth@redhat.com>
11292         * builtins.c (expand_builtin_copysign): New.
11293         (expand_builtin): Call it.
11294         * genopinit.c (optabs): Add copysign_optab.
11295         * optabs.c (init_optabs): Initialize it.
11296         (expand_copysign): New.
11297         * optabs.h (OTI_copysign, copysign_optab): New.
11298         (expand_copysign): Declare.
11300         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
11301         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
11303         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
11304         (ix86_expand_fp_absneg_operator): ... here.
11305         (ix86_split_copysign): New.
11306         * config/i386/i386-protos.h: Update.
11307         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
11308         (copysignsf3, copysigndf3): New.
11310         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
11311         (copysignsf3, ncopysignsf3): New.
11312         (copysigndf3, ncopysigndf3): New.
11313         (copysignxf3, ncopysignxf3): New.
11314         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
11316 2005-01-27  Arend Bayer  <arend.bayer@web.de>
11317             Kazu Hirata  <kazu@cs.umass.edu>
11319         * cse.c: (find_best_addr): Don't call copy_rtx before calling
11320         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
11321         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
11322         NULL_RTX.
11324 2005-01-27  Jeff Law  <law@redhat.com>
11326         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
11327         definitions of SSA_NAMEs which are not being rewritten.
11328         (rewrite_ssa_into_ssa): Only initialize the current definition
11329         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
11330         If checking is enabled, assert that SSA_NAME_AUX is clear for all
11331         SSA_NAMEs before returning.
11333 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
11335         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
11336         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
11337         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
11338         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
11339         config/mips/iris6.h, config/sh/sh.c: Update copyright.
11341 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11343         PR middle-end/17278
11344         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
11345         higher to -O2 and higher.  Likewise for tree PRE.
11346         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
11347         and better.
11349 2005-01-27  Ian Lance Taylor  <ian@airs.com>
11351         PR middle-end/19583
11352         * gimple-low.c (try_catch_may_fallthru): New static function.
11353         (block_may_fallthru): Handle TRY_CATCH_EXPR.
11354         * tree-inline.c (expand_call_inline): Don't warn about reaching
11355         the end of a non-void function being inlined if the function uses
11356         a return slot.
11358 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
11360         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
11362         PR c/18946
11363         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
11364         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
11365         (implicitly_declare): Handle error_mark_node.
11367 2005-01-27  Richard Henderson  <rth@redhat.com>
11369         PR tree-opt/14329
11370         * tree.h (struct tree_decl): Add debug_expr_is_from.
11371         (DECL_DEBUG_EXPR_IS_FROM): New.
11372         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
11373         * dwarf2out.c (dwarf2out_var_location): Update to match.
11374         * tree-outof-ssa.c (create_temp): Likewise.
11375         * var-tracking.c (track_expr_p): Likewise.
11376         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
11377         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
11378         * toplev.c (default_tree_printer): Likewise.
11380 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
11382         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
11383         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
11385 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11387         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
11388         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
11389         ASM_CLOBBERS): Add tree checks.
11391         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
11392         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
11393         * c-common.def (SWITCH_STMT): Update to match.
11394         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
11395         macros instead of SWITCH_EXPR ones.
11396         * c-dump.c (c_dump_tree): Likewise.
11397         * c-gimplify.c (gimplify_switch_stmt): Likewise.
11398         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
11400         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
11402 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
11404         * unwind-dw2.c (execute_stack_op): Add missing cases for
11405         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
11407 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
11409         * config.gcc (Obsolete configurations): Remove 'dummy', add
11410         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
11411         sparc-*-openbsd*.
11413 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
11415         PR tree-optimization/19633
11416         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
11417         CALL_EXPRs.
11418         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
11419         are no call-clobbered variables.
11420         * tree-outof-ssa.c (check_replaceable): Return false for calls
11421         with side-effects.
11423 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
11425         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
11426         even for variables with NULL DECL_INITIAL.
11428 2005-01-26  Stuart Hastings  <stuart@apple.com>
11430         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
11432 2005-01-26  Richard Henderson  <rth@redhat.com>
11434         PR middle-end/18008
11435         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11436         field's type.
11437         * expr.c (store_field): Strip conversions to odd-bit-sized types
11438         if the destination field width matches.
11440 2005-01-26  Richard Henderson  <rth@redhat.com>
11442         * c-decl.c, expmed.c, expr.c: Revert last change.
11444 2005-01-26  Richard Henderson  <rth@redhat.com>
11446         PR middle-end/18008
11447         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11448         field's type.
11449         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
11450         if we don't need the bits above those present in the current mode.
11451         * expr.c (store_field): Strip conversions to odd-bit-sized types
11452         if the destination field width matches.
11454 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
11456         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
11457         either -ffast-math or -funsafe-math-optimizations is in use.
11459 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11461         PR target/19293
11462         PR target/19329
11463         * config/avr/avr.c (notice_update_cc): Only set condition code for
11464         ashrqi3 if shift count > 0.
11465         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
11466         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
11467         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
11468         count <= 0 as a no-op, and shift count >= width by copying zero
11469         or sign bit to all bits of the result.
11470         * config/avr/avr.md (all shifts): Add alternatives for zero shift
11471         count, with attribute "length" set to 0 and "cc" set to "none".
11473 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11475         * doc/invoke.texi: Document -mTLS.
11477         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
11478         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
11479         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
11480         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
11481         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
11482         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
11483         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
11484         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
11486         * configure.ac: Check for a TLS capable gas.
11488         * configure: Regenerate.
11490 2005-01-26  Richard Henderson  <rth@redhat.com>
11492         PR middle-end/18008
11493         * combine.c (make_field_assignment): Simplify store to zero_extract
11494         from a source with an overlapping mask.
11496 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11498         2004-11-11  Eric Christopher  <echristo@redhat.com>
11500         * config/frv/frv.md: Add fr400_integer automaton. Don't
11501         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
11502         to TYPE_MACC.
11504 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11506         PR middle-end/16585
11507         * cfgbuild.c (make_edges): Do not clear or set
11508         current_function_has_computed_jump.
11509         * function.h (struct function): Remove the has_computed_jump field.
11510         (current_function_has_computed_jump): Do not define.
11511         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
11512         in a computed jump.  Ignore current_function_has_computed_jump.
11514 2005-01-26  Richard Henderson  <rth@redhat.com>
11516         PR middle-end/19515
11517         * expr.c (categorize_ctor_elements): New argument p_must_clear.
11518         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
11519         fully initialized.
11520         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
11521         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
11522         objects into static storage if they have more than one non-zero value.
11523         * tree.h (categorize_ctor_elements): Update decl.
11525 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11527         PR middle-end/19616
11528         * tree.h (CALL_EXPR_TAILCALL): Add comment.
11529         * calls.c (check_sibcall_argument_overlap_1): Revert the change
11530         to this function from 2004-07-10.
11531         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
11532         the current function for tail call optimizations if the address
11533         of one of it its arguments is taken.
11535 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
11537         * cse.c (fold_rtx): Call equiv_constant only when necessary.
11539 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
11541         * function.c (expand_function_end): If current_function_calls_alloca,
11542         emit stack restore in a place that is reached when the function falls
11543         through at the end.
11545 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
11547         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
11548         rule to avoid matching inappropriate suffix rule.
11550 2005-01-26  Jan Hubicka  <jh@suse.cz>
11552         PR tree-optimization/19241
11553         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
11555 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11557         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
11558         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
11559         of doubling.
11560         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
11561         <sim*>: Always use crt1.o, regardless of N in simN.
11562         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11563         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
11564         (CRT_CALL_STATIC_FUNCTION): Remove.
11565         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
11566         use crt1.o, regardless of N in simN.
11567         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11568         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
11569         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
11570         case isystem setting.
11571         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
11573 2005-01-25  Ian Lance Taylor  <ian@airs.com>
11575         * gimple-low.c (block_may_fallthru): Correct handling of
11576         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
11578 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11580         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
11581         handlers to match indentation; nested under the mtune=* handler.
11582         Similar for mcpu= and march=.
11584 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
11586         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
11587         * config/mips/linux64.h (LIB_SPEC): Likewise.
11588         * config/mn10300/linux.h (LIB_SPEC): Likewise.
11589         * config/sh/linux.h (LIB_SPEC): Likewise.
11591 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
11593         * config/frv/frv.c (frv_legitimize_tls_address): New.
11594         (TARGET_HAVE_TLS): Define.
11595         (FRV_SYMBOL_REF_TLS_P): Define.
11596         (frv_override_options): Handle new register classes.
11597         (frv_legitimate_address_p): Reject tls addresses.
11598         (frv_legitimize_address): Handle TLS addresses.
11599         (gen_inlined_tls_plt): New.
11600         (gen_tlsmoff): New.
11601         (frv_legitimize_tls_address): New.
11602         (unspec_got_name): Add TLS entries.
11603         (got12_operand): Add R_FRV_TLSMOFF12 case.
11604         (frv_emit_move): Fixup TLS addresses.
11605         (frv_emit_movsi): Legitimize TLS addresses.
11607         * config/frv/frv.h (MASK_BIG_TLS): New.
11608         (TARGET_BIG_TLS): New.
11609         (HAVE_AS_TLS): Define.
11610         (TARGET_SWITCHES): Add -mTLS and -mtls options.
11611         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
11612         (REG_CLASS_NAMES): Same.
11613         (REG_CLASS_CONTENTS): Same.
11614         (CONSTRAINT_LEN): New.
11615         (REG_CLASS_FROM_CONSTRAINT): New.
11616         (PREDICATE_CODES): Add symbolic_operand.
11618         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
11619         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
11620         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
11621         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
11622         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
11623         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
11624         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
11625         GR9_REG, GR14_REG, LRREG.
11626         (type): Add load_or_call attribute.
11627         ("load_or_call"): New reservation.
11628         ("call_gettlsoff"): New.
11629         ("tls_indirect_call"): New.
11630         ("tls_load_gottlsoff12"): New.
11631         ("tlsoff_hilo"): New.
11632         ("tls_tlsdesc_ldd"): New.
11633         ("tls_tlsoff_ld"): New.
11634         ("tls_lddi"): New.
11636         * config/frv/frv-protos.h (symbolic_operand): Protoize.
11638         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
11640         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
11641         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
11642         * config/frv/frv.c (TLS_BIAS): Define.
11643         (frv_output_dwarf_dtprel): New.
11645 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
11647         PR rtl-optimization/19579
11648         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
11649         both A and B, see if they don't clobber registers the other expr uses.
11651 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
11653         * real.c (do_add): Initialize signalling and canonical members.
11655         * real.c (real_from_integer): Zero out destination.
11657 2005-01-18  Jan Hubicka  <jh@suse.cz>
11659         PR tree-optimize/19337
11660         * tree-inline.c (initialize_inlined_parameters): Copy
11661         saved_static_chain_decl only.
11663 2005-01-25  Richard Henderson  <rth@redhat.com>
11665         PR target/19556
11666         PR target/19584
11667         * config/i386/i386.c (x86_inter_unit_moves): Zero.
11668         (ix86_preferred_reload_class): Rewrite fp-constant section, with
11669         80387 enabled, to return a proper subclass.  Return the subset that
11670         overlaps with GENERAL_REGS for PLUS.
11671         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
11673 2005-01-25  Richard Henderson  <rth@redhat.com>
11675         PR middle-end/19609
11676         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
11678 2005-01-25  Roger Sayle  <roger@eyesopen.com>
11680         * expmed.c (choose_multiplier): Change interface to return the
11681         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
11682         (expand_divmod): Update calls to choose_multiplier.
11684 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11686         PR middle-end/19330
11687         * expmed.c (extract_bit_field): Use adjust_address instead of
11688         gen_lowpart when op0 is a MEM.
11690 2005-01-24  Steven Bosscher  <stevenb@suse.de>
11692         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
11694 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
11696         * config/mips/irix-csr.c: New file.
11697         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
11698         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
11699         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
11700         executables.
11702 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
11704         PR bootstrap/19364
11705         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
11706         sparc/elf.h, add sparc/sp-elf.h.
11707         (sparc-*-rtems*): Likewise.
11708         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
11709         tm-dwarf2.h, add sparc/sp-elf.h.
11710         (sparc86x-*-elf): Likewise.
11711         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
11712         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
11713         TARGET_OS_CPP_BUILTINS.
11714         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11715         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11716         Undefine it.
11717         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
11718         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
11719         (SWITCH_TAKES_ARG): Likewise.
11720         (LOCAL_LABEL_PREFIX): Likewise.
11721         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11722         (TARGET_N_FORMAT_TYPES): Delete.
11723         (TARGET_FORMAT_TYPES): Likewise.
11724         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11725         * config/sparc/elf.h: Delete.
11726         * config/sparc/sp-elf.h: New file.
11728 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11730         * tree-flow-inline.h (phi_arg_from_edge): Remove.
11731         * tree-flow.h: Remove the corresponding prototype.
11732         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
11733         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
11735 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11737         PR target/17751
11738         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
11739         for AIX ABI or ELF -fPIC.
11740         (rs6000_emit_load_toc_table): Don't create toc_section here.
11741         (rs6000_xcoff_file_start): Nor here.
11743 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
11745         * sh.c (ra.h): Don't #include.
11746         (hard_regs_intersect_p): New function, resurrected from ra.c.
11748         * sh.c: Fix 1996 Copyright.
11750 2005-01-24  Richard Henderson  <rth@redhat.com>
11751             Aldy Hernandez  <aldyh@redhat.com>
11753         * regrename.c (note_sets): Handle subregs.
11755 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
11757         PR bootstrap/18058
11758         * genconditions.c (write_header, write_conditions): Elide file if
11759         not GCC >= 3.0.1.
11761 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11763         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
11764         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
11765         Update copyright.
11767 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11769         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
11770         expand_builtin_printf, expand_builtin_fprintf,
11771         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
11772         checking against POINTER_TYPE.
11773         (validate_arglist): Handle POINTER_TYPE code by checking
11774         POINTER_TYPE_P.
11776 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
11778         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
11779         init_rtlanal): New.
11780         (for_each_rtx): Call for_each_rtx_1.
11781         * rtl.h (init_rtlanal): Declare.
11782         * toplev.c (backend_init): Call init_rtlanal.
11784 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11786         * flow.c (propagate_one_insn): Formatting.
11788         PR middle-end/19551
11789         * flow.c (libcall_dead_p): Be more conservative if unsure.
11790         If there are any instructions between insn and call, see if they are
11791         all dead before saying the libcall is dead.
11793 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
11795         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
11796         operand constraint for operand 0.
11798 2005-01-23  Richard Henderson  <rth@redhat.com>
11800         PR 19486
11801         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
11802         edges leading to join block.
11804 2005-01-23  Roger Sayle  <roger@eyesopen.com>
11806         * expmed.c (expand_mult_highpart): Make static.  Change type of
11807         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
11808         (expand_divmod): Updates calls to expand_mult_highpart by using
11809         gen_int_mode to pass a CONST_INT rtx.
11810         * rtl.h (expand_mult_highpart): Remove prototype.
11812 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11814         * flow.c (regset_bytes, regset_size): Remove.
11816         * cfganal.c: Fix a reference to Harvey's paper.
11818 2005-01-23  Steven Bosscher  <stevenb@suse.de>
11820         PR rtl-optimization/19464
11821         * tree-optimize.c (init_tree_optimization_passes): Add one more
11822         copyrename pass just before out-of-ssa.
11824 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
11826         PR bootstrap/18058
11827         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
11828         * ggc-none.c (ggc_free): Define.
11830 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11832         * cse.c (max_reg, max_insn_uid): Remove.
11833         (cse_main): Don't access max_reg or max_insn_uid.
11835         * c-common.c (explicit_flag_signed_bitfields,
11836         lang_statement_code_p, lang_expand_function_end): Remove.
11837         * c-common.h: Remove the corresponding declarations.
11838         * c-opts.c (c_common_handle_option): Remove all write access
11839         to explicit_flag_signed_bitfields.
11841         * cgraph.c (cgraph_varpool_n_nodes): Remove.
11842         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
11843         * cgraph.h: Remove the corresponding declaration.
11845         * gcse.c (null_pointer_info): Remove.
11847 2005-01-23  Roger Sayle  <roger@eyesopen.com>
11848             Eric Botcazou  <ebotcazou@libertysurf.fr>
11850         * combine.c (simplify_logical): Only simplify logical expressions
11851         of the form ior(and(x,y),z) by the inverse distributive law if the
11852         result is cheaper than the original.
11854 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11856         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
11857         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
11858         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
11859         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
11860         config/freebsd-spec.h, config/arm/arm.h,
11861         config/h8300/h8300.md, config/i386/i386.md,
11862         config/i386/predicates.md, config/i386/sse.md,
11863         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
11864         config/vax/vax.md: Fix comment typos.  Follow spelling
11865         conventions.
11867 2005-01-23  Steven Bosscher  <stevenb@suse.de>
11869         * gengtype.c (walk_type): Produce `not equal to' compares for loop
11870         tests, instead of `less than'.
11872 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
11874         * function.c (assign_parm_setup_block): When creating a new stack slot
11875         for a parameter, get its alignment from the parameter's DECL_ALIGN
11876         rather than the type's TYPE_ALIGN.  Make sure that the parameter
11877         is at least word aligned.
11879 2005-01-22  Roger Sayle  <roger@eyesopen.com>
11881         PR middle-end/19378
11882         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11884 2005-01-22  Richard Henderson  <rth@redhat.com>
11886         PR target/19506
11887         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
11888         in both compare operands.
11889         (movdfcc_1_sse_max): Likewise.
11890         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
11891         (movdfcc_1_sse): Likewise.
11892         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
11893         scratch register as needed.
11895 2005-01-22  Richard Henderson  <rth@redhat.com>
11897         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
11899         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
11901 2005-01-22  Richard Henderson  <rth@redhat.com>
11903         * genopinit.c (optabs): Use smin/smax for floating point too.
11904         * doc/md.texi: Update to match.  Clarify that floating point
11905         results are undefined for +0/-0 and NaN.
11906         * doc/rtl.texi: Likewise.
11907         * rtl.def (SMIN, SMAX): Likewise
11908         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
11910         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
11911         leading 's' to the name.
11912         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
11913         smaxxf3, sminxf3): Likewise.
11914         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
11915         Likewise.
11917 2005-01-22  Paul Brook  <paul@codesourcery.com>
11919         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
11921 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
11923         * config/s390/s390.c (struct processor_costs): New fields
11924         dlgr, dlr, dr, dsgfr, dsgr.
11925         (z900_cost, z990_cost): Values for new fields.
11926         (s390_rtx_costs): New cases MEM und COMPARE in switch
11927         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
11928         DIV, MOD, UDIV, UMOD.
11930 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
11932         * config/s390/s390.md ("doloop_si64"): Reload input value directly
11933         into the register being decremented.
11934         ("doloop_si31", "doloop_di"): Likewise.
11935         ("*doloop_si_long"): Adapt pattern.
11937 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
11939         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
11940         access registers.
11941         (CLASS_MAX_NREGS): Likewise.
11943 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
11945         * doc/tree-ssa.texi (Statement Operands): Add example for new
11946         must-def macro. Note deprecation of old operands interface.
11948 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
11950         PR tree-optimization/19484
11951         * tree-cfg.c (remove_fallthru_edge): New function.
11952         (cleanup_control_flow): Remove fallthru edges from calls that are
11953         now known not to return.
11955 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
11957         Fix PR tree-optimization/19038
11958         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
11959         copies with loop variant ones.
11961 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
11963         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
11964         config/alpha/alpha-protos.h, config/alpha/alpha.h,
11965         config/alpha/alpha.md, config/alpha/predicates.md,
11966         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
11967         config/sparc/sol2.h: Update copyright.
11969         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
11970         first label to see if it is a nonlocal label.
11972 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
11973             Andrew Pinski  <pinskia@physics.uc.edu>
11975         PR target/19491
11976         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
11977         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
11979 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
11981         * config/rs6000/rtems.h: Update copyright.
11983 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
11985         PR target/19548
11986         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
11987         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
11988         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
11990 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
11992         PR c/18809
11993         * c-typeck.c (convert_arguments): Check for error_mark_node.
11995 2005-01-21  Ian Lance Taylor  <ian@airs.com>
11997         PR tree-optimization/13000
11998         * tree-inline.c: Include "tree-flow.h".
11999         (expand_call_inline): If warn_return_type, warn if non-void inline
12000         function falls through.
12001         * tree-cfg.c (execute_warn_function_return): Don't warn about
12002         control reaching end if TREE_NO_WARNING is set.  Set
12003         TREE_NO_WARNING.
12004         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
12005         has been lowered.
12006         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
12007         branch if we don't need one.
12008         * c-typeck.c: Include "tree-flow.h"
12009         (c_finish_bc_stmt): Don't add a goto if the current statement
12010         list doesn't fall through to the current point.
12012 2005-01-21  Roger Sayle  <roger@eyesopen.com>
12014         PR rtl-optimization/576
12015         * real.c (real_arithmetic): Change return type from void to bool
12016         to return an indication that the result may be inexact.
12017         * real.h (real_arithmeric): Update prototype.
12018         * fold-const.c (const_binop):  Don't constant fold floating
12019         point expressions when the user specifies -frounding-math and
12020         the result may depend upon the run-time rounding mode.
12021         (fold_convert_const_real_from_real): Clean-up.
12022         (fold_initializer): Ignore flag_rounding_math for initializers.
12023         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
12024         constant fold FP operations with flag_rounding_math if the
12025         result may depend upon the run-time rounding mode.
12027 2005-01-21  Tom Tromey  <tromey@redhat.com>
12029         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
12031 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
12033         * tree-cfg.c: Fix comment typos.
12035 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
12037         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
12038         around the call to rest_of_handle_branch_target_load_optimize.
12040 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
12042         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
12043         (sparc64-*-openbsd*): Likewise.
12044         (sparclite-*-elf*): Include tm-dwarf2.h.
12045         (sparc86x-*-elf*): Likewise.
12046         (sparc64-*-elf*): Likewise.
12047         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
12048         (DBX_DEBUGGING_INFO): Likewise.
12049         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
12050         (PREFERRED_DEBUGGING_TYPE): Likewise.
12051         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12052         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
12053         (PREFERRED_DEBUGGING_TYPE): Likewise.
12054         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
12055         (PREFERRED_DEBUGGING_TYPE): Likewise.
12056         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
12058 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12060         PR target/18701
12061         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
12063 2005-01-20  Paul Brook  <paul@codesourcery.com>
12065         * doc/rtl.texi: Document value extension requirements for CONST_INT.
12067 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12069         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
12070         label is first in a sequence of labels.
12072         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
12074 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
12075             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12077         * doc/sourcebuild.texi (Test Directives): New.
12079 2005-01-20  Roger Sayle  <roger@eyesopen.com>
12081         * real.c (real_floor): Don't leave the result uninitialized when
12082         mode is VOIDMode, but return the unrounded intermediate value.
12083         (real_ceil): Likewise.
12085 2005-01-20  Paul Brook  <paul@codesourcery.com>
12087         * config/arm/arm.md (insv): Use gen_int_mode.
12089 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
12091         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
12092         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12093         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12094         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12095         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12097 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12099         Fix PR debug/19124
12100         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
12101         fbreg, so we have to assume we can't.
12102         (loc_descriptor_from_tree_1): Ditto.
12103         (containing_function_has_frame_base): New function.
12104         (add_location_or_const_value_attribute): Use it.
12105         Also try to generate a frame_base from a single element location
12106         list.
12108 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12110         PR tree-optimization/15349
12111         * timevar.def (TV_TREE_MERGE_PHI): New.
12112         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
12113         PHI_WANTED.
12114         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
12115         calls to tree_forwarder_block_p.
12116         (remove_forwarder_block_with_phi, merge_phi_nodes,
12117         gate_merge_phi, pass_merge_phi): New.
12118         * tree-optimize.c (init_tree_optimization_passes): Add
12119         pass_merge_phi.
12120         * tree-pass.h: Add an extern for pass_merge_phi;
12122 2005-01-20  Richard Henderson  <rth@redhat.com>
12124         PR target/19418
12125         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
12126         (_mm_castps_pd, _mm_castps_si128): New.
12127         (_mm_castsi128_ps, _mm_castsi128_pd): New.
12129 2005-01-20  Richard Henderson  <rth@redhat.com>
12131         PR target/19530
12132         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
12133         __builtin_ia32_vec_init_v2si.
12134         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
12135         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
12136         (ix86_init_mmx_sse_builtins): Create it.
12137         (ix86_expand_builtin): Expand it.
12138         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
12139         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
12140         (vec_extractv2si_0, vec_extractv2si_1): New.
12142 2005-01-20  Richard Henderson  <rth@redhat.com>
12144         PR target/16533
12145         * config/i386/i386.c (ix86_expand_push): New.
12146         * config/i386/mmx.md (push<MMXMODE>1): New.
12147         * config/i386/sse.md (push<SSEMODE>1): New.
12148         * config/i386/i386-protos.h: Update.
12150 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12152         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
12153         copyright.
12155 2005-01-20  Richard Henderson  <rth@redhat.com>
12157         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
12158         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
12160 2005-01-19  Richard Henderson  <rth@redhat.com>
12162         PR target/19350
12163         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
12164         to V4SFmode in SSE1 fallback load path.
12166 2005-01-19  Richard Henderson  <rth@redhat.com>
12168         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
12169         in QImode expansion to ix86_expand_vector_set.
12170         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
12172 2005-01-19  Richard Henderson  <rth@redhat.com>
12174         PR target/19511
12175         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
12176         subclass of the input class.
12177         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
12178         Always true for cross-SSE1 classes.  Rationalize conditionals.
12179         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
12180         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
12181         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
12182         (movdi_2): Add MMX/SSE zeros.
12183         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
12184         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
12185         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
12186         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
12187         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
12188         (zero_extendsidi2_rex64_1): Remove.
12189         (MOV0 peephole): Check GENERAL_REG_P.
12191 2005-01-19  Richard Henderson  <rth@redhat.com>
12193         PR target/19427
12194         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
12195         shufps elements.
12196         (ix86_expand_vector_extract): Likewise.
12198 2005-01-19  Richard Henderson  <rth@redhat.com>
12200         PR middle-end/19304
12201         * expr.c (emit_move_change_mode): New argument force; use
12202         simplify_gen_subreg if true.
12203         (emit_move_via_alt_mode): Merge into ...
12204         (emit_move_via_integer): ... here.
12205         (emit_move_ccmode): Use emit_move_change_mode directly.
12207 2005-01-19  Richard Henderson  <rth@redhat.com>
12209         PR target/19518
12210         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
12211         (alpha_preferred_reload_class): Handle CONST_VECTOR.
12212         (alpha_emit_set_const_1): Add no_output parameter; don't emit
12213         rtl if true.
12214         (alpha_emit_set_const): Likewise.  Make static.
12215         (alpha_emit_set_long_const): Make static.
12216         (alpha_extract_integer): Split out from alpha_expand_mov.
12217         (alpha_split_const_mov): Likewise.
12218         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
12219         (alpha_legitimate_constant_p): New.
12220         * config/alpha/alpha-protos.h: Update.
12221         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
12222         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
12223         * config/alpha/alpha.md (movsi): Add n alternative.
12224         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
12225         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
12226         (splitters for all of the above): Use alpha_split_const_mov.
12227         * config/alpha/predicates.md (non_add_const_operand): New.
12228         (non_zero_const_operand): New.
12229         (input_operand): Use alpha_legitimate_constant_p after reload.
12231 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12233         PR tree-optimization/19038
12234         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
12235         (add_candidate): Add ivs with increment in latch only if
12236         allow_ip_end_pos_p is true.
12237         (determine_iv_cost): Use empty_block_p.
12239 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
12241         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
12242         (compute_dominance_frontiers): Ditto.
12244 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
12246         PR target/19529
12247         * config/sh/t-rtems: New.
12248         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
12250 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12252         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
12253         the offset of the selected field.
12255 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
12257         * tree-cfg.c (remove_forwarder_block): Fix the check to
12258         prevent a nonlocal label from appearing in the middle of a
12259         basic block.
12261 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
12263         PR rtl-optimization/19462
12264         * reorg.c (find_end_label): Create return insn only if
12265         current_function_epilogue_delay_list is empty.
12267 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
12269         * doc/passes.texi: Remove paragraph mentioning new-ra.
12271 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
12273         PR rtl-optimization/15139
12274         * combine.c: Include params.h.
12275         (count_rtxs): New function.
12276         (record_value_for_reg): If replace_rtx would replace at least
12277         2 occurrences of REG in VALUE and TEM is really large, replace REG with
12278         (clobber (const_int 0)) instead of TEM.
12279         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
12280         * params.h (MAX_LAST_VALUE_RTL): New.
12281         * Makefile.in (combine.o): Depend on $(PARAMS_H).
12282         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
12284         PR c/17297
12285         * c-typeck.c (digest_init): Only call build_vector if all constructor
12286         elements are *_CST nodes.
12287         * gimplify.c (gimplify_init_constructor): Likewise.
12289         PR middle-end/19164
12290         * c-typeck.c (digest_init): Only call build_vector if inside_init
12291         is a CONSTRUCTOR.
12293 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
12295         * toplev.c (init_asm_output): Remove dead #ifdef.
12297 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12299         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
12301 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12303         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
12304         accessing DECL_FUNCTION_CODE.
12305         * dojump.c (do_jump): Likewise.
12306         * gimplify.c (gimplify_call_expr): Likewise.
12307         * predict.c (expr_expected_value): Likewise.
12308         (strip_builtin_expect): Likewise.
12309         * tree-inline.c (estimate_num_insns_1): Likewise.
12310         * tree-ssa-loop-im.c (stmt_cost): Likewise
12311         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
12312         (tree_expr_nonnegative_p): Likewise.
12314 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12316         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
12317         variant of the load_pcrel_sym pattern.
12318         * config/sparc/sparc.md (P macro): Move to the top.
12319         (load_pcrel_sym): Macroize using P.
12320         (save_register_window): Likewise.
12322 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
12324         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
12325         ("sordered"): Same.
12327 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
12329         PR C/19472
12330         * c-typeck.c (build_asm_expr): Strip nops off
12331         input memory operands.
12333 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
12335         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
12336         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
12337         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
12338         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
12340 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
12342         PR target/19379
12343         * config/i386/i386.c (override_options): If the 80387 is disabled,
12344         then do not return FP values using FP registers.
12346 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
12348         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
12349         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
12350         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
12351         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
12352         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
12353         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
12354         output.h, postreload-gcse.c, postreload.c, recog.c,
12355         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
12356         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
12357         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
12358         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
12359         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
12360         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
12361         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
12362         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
12364         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
12365         config/alpha/alpha.c, config/arm/vfp.md,
12366         config/i386/emmintrin.h, config/i386/i386-modes.def,
12367         config/i386/i386-protos.h, config/i386/i386.h,
12368         config/i386/pmmintrin.h, config/i386/ppro.md,
12369         config/i386/predicates.md, config/i386/xmmintrin.h,
12370         config/i860/i860.c, config/ia64/ia64-modes.def,
12371         config/ia64/ia64-protos.h, config/ia64/ia64.h,
12372         config/ia64/ia64.md, config/ia64/itanium1.md,
12373         config/ia64/itanium2.md, config/ia64/predicates.md,
12374         config/iq2000/iq2000.h, config/mips/linux64.h,
12375         config/rs6000/aix41.h, config/rs6000/aix43.h,
12376         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
12377         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
12378         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
12379         config/sparc/linux64.h, config/sparc/litecoff.h,
12380         config/sparc/sp64-elf.h, config/sparc/sparc.c,
12381         config/sparc/sparc.h, config/sparc/sparc.md,
12382         config/sparc/sysv4-only.h: Update copyright.
12384 2005-01-18  Richard Henderson  <rth@redhat.com>
12386         PR target/19496
12387         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
12389 2005-01-18  Marc Espie  <espie@openbsd.org>
12390         * config/i386/openbsdelf.h: Typo.
12392 2005-01-18  Richard Henderson  <rth@redhat.com>
12394         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
12395         special case for sse.
12396         * config/i386/predicates.md (sse_comparison_operator): Likewise.
12398 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
12400         * tree-inline.c (estimate_num_insns_1): Added cases for
12401         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
12403 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12405         PR rtl-optimization/19296
12406         * combine.c (simplify_comparison): Rewrite the condition under
12407         which a non-paradoxical SUBREG of a PLUS can be lifted when
12408         compared against a constant.
12410 2005-01-18  Andi Kleen <ak@muc.de>
12412         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
12413         * c.opt (-Wpointer-sign): Add.
12414         * doc/invoke.texi: (-Wpointer-sign): Add.
12416 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12418         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
12419         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
12420         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
12421         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
12422         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
12423         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
12424         for TARGET_MIX_SSE_I387.
12425         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
12426         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
12427         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
12428         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
12429         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
12430         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
12431         TARGET_MIX_SSE_I387.
12432         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
12433         from expander.
12435 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12437         PR target/19424
12438         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
12439         Add movaps alternative for xmm reg->reg move.
12441 2005-01-17  Jeff Law  <law@redhat.com>
12443         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
12444         at the end of the main DOM loop rather than just before DOM exits.
12446 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
12448         PR tree-optimization/19121
12449         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
12450         adding aliases to a name tag, also add them to the pointer's
12451         type tag.
12452         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
12453         sensitive alias info at all.  Only check that the two pointers
12454         have compatible pointed-to sets.
12455         * tree-ssa.c (verify_name_tags): Verify that the alias set of
12456         a pointer's type tag is a superset of the alias set of the
12457         pointer's name tag.
12459 2005-01-17  James E Wilson  <wilson@specifixinc.com>
12461         PR target/19357
12462         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
12463         comment to document why.
12465 2005-01-17  Richard Henderson  <rth@redhat.com>
12467         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
12468         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
12469         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
12470         sse2_vmsminv2df3_finite): New.
12471         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
12472         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
12473         Force op1 into register.
12475 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
12477         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
12478         bubblestrap from always rebuilding build directory.
12480 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
12482         * config/s390/s390.md ("*clc"): Remove incorrect '='.
12483         ("*cmpmem_short"): Likewise.
12485 2005-01-17  Steven Bosscher  <stevenb@suse.de>
12487         * basic-block.h: Document BB_* flags.
12488         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
12489         use an sbitmap instead.
12490         * sched-rgn.c (compute_trg_info): Likewise.
12492 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
12494         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
12495         redundant target_cpu_default and extra_parts lines.  Use the default
12496         "from-abi" ISA.
12497         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
12498         (SUBTARGET_EXTRA_SPECS): Delete.
12499         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
12500         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
12501         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
12502         and "n32" for -mabi=n32.
12504 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12506         PR c/5675
12507         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
12508         fold constant variables into initial values.
12510 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12512         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
12514         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
12515         through the statements backward.
12517 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12519         PR middle-end/13127:
12520         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
12521         a variable set to the return value of the inlined function.
12523 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
12525         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
12526         when modes are tieable.
12528 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
12530         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
12531         of pthread_create to find out if threads are enabled.
12532         * gthr-posix95.h (__gthread_active_p): Likewise.
12534 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
12536         * common.opt (-fnew-ra): Remove.
12537         * ra*.*: Remove.
12538         * toplev.h (flag_new_regalloc): Remove.
12539         * Makefile.in (ra*.*): Don't mention.
12540         * passes.c (rest_of_handle_new_regalloc): Remove.
12541         (rest_of_handle_combine, rest_of_compilation): Always consider
12542         flag_new_regalloc as false.
12543         * doc/invoke.texi: Don't document -fnew-ra.
12545 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
12547         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
12548         last parameter to reg_scan.
12549         * loop.c (loop_optimize): Likewise.
12550         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
12551         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
12552         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12553         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12554         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
12555         * regclass.c (reg_scan): Likewise, for the declaration.
12556         * rtl.h (reg_scan): Likewise, for the prototype.
12558 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12560         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
12561         mark_dfs_back_edges.
12563 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
12565         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
12566         (compute_avail): Uses don't go in tmp_gen.
12568 2005-01-16  Steven Bosscher  <stevenb@suse.de>
12570         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
12571         loop to look for a free slot in a page entry.
12573 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12575         PR target/16304
12576         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
12577         * toplev.c (compile_file): Call process_pending_assemble_output_defs
12578         just before targetm.asm_out.file_end.
12579         * tree.h (process_pending_assemble_output_defs): Declare.
12580         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
12581         New functions.
12582         (assemble_alias): Defer generation of assembly code for defines when
12583         TARGET_DEFERRED_OUTPUT_DEFS is true.
12584         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12585         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12586         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
12588 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12590         PR target/19336
12591         * pa.c (pa_scalar_mode_supported_p): New function.
12592         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12593         * pa.h (MIN_UNITS_PER_WORD): Add comment.
12595         * pa-protos.h (prefetch_operand): Delete.
12596         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
12597         * pa.c (prefetch_operand): Delete.
12598         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
12599         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
12600         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
12601         and prefetch_nocc_operand.
12602         * pa.md (prefetch): Rework to avoid reload problems handling short
12603         displacements when a cache control completer needs to be provided.
12604         (prefetch_32, prefetch_64): Delete.
12605         (prefetch_cc, prefetch_nocc): New patterns.
12607 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
12609         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
12611 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12613         PR ada/19388
12614         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
12615         exceeds maximum alignment for global common data.
12616         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
12617         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
12619 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12621         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
12623 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12625         * harg-reg-set.h (reg_class_names): Prototype global array.
12626         * regclass.c (reg_class_names): Declare here and initialize to
12627         REG_CLASS_NAMES.
12628         (dump_regclass): Remove local declaration of reg_class_names.
12629         (regclass): Likewise.
12630         * cfg.c (dump_flow_info): Likewise.
12631         * ra-debug.c (reg_class_names): Likewise.
12632         * regrename.c (reg_class_names): Likewise.
12633         * reload.c (reg_class_names): Likewise.
12634         * reload1.c (spill_failure): Likewise.
12635         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
12637 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
12639         * config/s390/s390.md ("reload_outti"): Remove predicate for
12640         output operand.  Abort if operand is not a MEM.
12641         ("reload_outdi", "reload_outdf"): Likewise.
12643 2005-01-15  Marc Espie  <espie@openbsd.org>
12645         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
12646         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
12647         * config/openbsd.h:  Fix C++ includes for native configurations.
12648         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
12649         Add trampoline support.
12650         * config/i386/openbsdelf.h: New.
12652 2005-01-15  Marc Espie  <espie@openbsd.org>
12654         * collect2.c (main): Explicitly parse -dynamic-linker option.
12656 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
12658         PR tree-optimization/19060
12659         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
12660         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
12661         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
12662         and handle extract_range_from_cond returning false.
12663         * fold-const.c (fold): Optimize comparisons with min/max even for
12664         width > HOST_BITS_PER_WIDE_INT.
12666 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
12668         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
12669         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
12670         Remove little endian multilib variants.
12671         Add mips32 multilib variant.
12673 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
12675         * explow.c (copy_all_reg, stabilize): Remove.
12676         * expr.h: Remove the corresponding prototypes.
12678         * rtlanal.c (regs_set_between_p): Remove.
12679         * rtl.h: Remove the corresponding prototype.
12681 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
12683         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
12684         to rs6000_nonimmediate_operand.
12685         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
12686         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
12687         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
12688         rs6000_nonimmediate_operand.
12689         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
12690         rs6000_nonimmediate_operand.
12692 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
12694         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
12696 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12698         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
12699         on e500v2.
12700         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
12701         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
12703         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
12704         (rs6k_nonimmediate_operand): New.
12705         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
12706         correctly.
12707         (legitimate_lo_sum_address_p): Same.
12708         (rs6000_legitimize_address): Same.
12709         (rs6000_legitimize_reload_address): Same.
12710         (rs6000_legitimate_address): Same.
12711         (spe_build_register_parallel): Pass DF and DC modes in a DI
12712         register.
12714         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
12715         to rs6k_nonimmediate_operand.
12717         * config/rs6000/spe.md ("*frob_df_di"): New.
12718         ("*frob_di_df"): New.
12719         ("*frob_di_df_2"): New.
12720         ("*mov_sidf_e500_subreg0"): New.
12721         ("*mov_sidf_e500_subreg4"): New.
12722         ("*movdf_e500_double"): Change predicate to
12723         rs6k_nonimmediate_operand.
12725 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12727         * postreload.c (move2add_note_store): Only call
12728         trunc_int_for_mode on scalar integers.
12730 2005-01-14  Steven Bosscher  <stevenb@suse.de>
12732         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
12733         replace BB_VISITED uses.
12734         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
12735         (propagate_necessity): Check the bitmap instead of BB_VISITED.
12736         (tree_dce_done): Free visited_control_parents.
12737         (perform_tree_ssa_dce): Allocate and clear it.
12738         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
12739         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
12740         instead of BB_VISITED.
12742 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
12744         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
12745         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
12746         Remove unused prototypes.
12748 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12750         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
12751         64-bit register usage.
12752         (spe_func_has_64bit_regs_p): Add FIXME note.
12754 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12756         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
12757         flag_finite_math_only with flag_unsafe_math_optimizations.
12759 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
12761         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
12762         end-of-stack check.
12763         (__tpf_eh_return): Copy TPF private stack area from the module
12764         boundary stack frame.  Add check for when module addresses are
12765         equal, but no stub address is found.
12767 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
12769         PR target/7525
12770         * arm.h (struct machine_function): Add call_via field.
12771         (thumb_call_via_label): Declare.
12772         * arm.c (thumb_call_via_label): New variable.
12773         (thumb_call_reg_needed): New variable.
12774         (arm_output_function_epilogue): For Thumb code, output any per-function
12775         call-indirect trampolines.
12776         (thumb_call_via_reg): New function.
12777         (arm_file_end): New function.
12778         (TARGET_ASM_FILE_END): Call arm_file_end.
12779         (aof_file_end): Likewise.
12780         * arm-protos.h (thumb_call_via_reg): Declare.
12781         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
12782         thumb_call_via_reg in normal case.
12784 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
12786         PR middle-end/19084
12787         PR rtl-optimization/19348
12788         * recog.c (peephole2_optimize): Do global life update if some peephole
12789         decides it doesn't need at least one of its inputs and that change
12790         influences liveness at the start of the basic block.
12792         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
12793         arguments instead of 1.
12795 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
12797         PR middle-end/18820
12798         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
12799         zero for nested functions needing a static chain or functions
12800         with a non-constant address.
12802 2005-01-13  Roger Sayle  <roger@eyesopen.com>
12804         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
12805         (and (sign_extend X) C) into (zero_extend (and X C)).
12807 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
12809         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
12811 2005-01-13  Richard Henderson  <rth@redhat.com>
12813         PR target/19009
12814         PR target/19250
12815         PR target/19252
12816         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
12817         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
12818         not just TARGET_SSE.
12819         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
12820         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
12821         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
12822         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
12823         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
12824         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
12825         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
12826         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
12827         (movdicc_c_rex64): Rename with '*'.
12828         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
12829         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
12830         (movsfcc_1_387): Rename from movsfcc_1.
12831         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
12832         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
12833         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
12834         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
12835         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
12836         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
12837         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
12838         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
12839         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
12840         sse_movdfcc_const0_4): Remove.
12841         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
12842         recognize min/max early.  Update for changed sse cmove patterns.
12843         (ix86_split_sse_movcc): New.
12844         * config/i386/i386-protos.h: Update.
12846 2005-01-13  Steven Bosscher  <stevenb@suse.de>
12848         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
12849         (fix_stmt_v_may_defs): Likewise.
12851 2005-01-13  Richard Henderson  <rth@redhat.com>
12853         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
12854         for converting the mask.
12856 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
12858         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
12859         definition to 600.
12861 2005-01-13  Richard Henderson  <rth@redhat.com>
12863         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
12864         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
12865         IX86_BUILTIN_MOVDQ2Q): Remove.
12866         (IX86_BUILTIN_VEC_EXT_V4SI): New.
12867         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
12868         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
12869         shuffling.
12870         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
12871         (sse2_pextrw): Fix immediate constraint.
12872         (sse2_loadq, sse2_loadq_rex64): Remove.
12873         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
12874         Use __builtin_ia32_vec_ext_<size>.
12875         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
12877 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
12879         * function.c (assign_parm_setup_block): Look inside original
12880         entry_parm when inspecting PARALLEL.
12882 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
12883             Joel Sherrill  <joel@oarcorp.com>
12885         PR target/19399
12886         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
12887         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
12888         rtems_gxx_recursive_mutex_init.
12889         (__gthread_recursive_mutex_lock): New function.
12890         (__gthread_recursive_mutex_trylock): Likewise.
12891         (__gthread_recursive_mutex_unlock): Likewise.
12893 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
12895         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
12897 2005-01-13  Jan Beulich  <jbeulich@novell.com>
12899         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
12900         (ashrti3_internal): Indicate output is early clobber. Generate result
12901         into output rather than first input. Use move for low word of output
12902         if shift count is exactly 64.
12903         (lshrti3_internal): Likewise.
12905 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
12907         PR target/18329
12908         PR target/18330
12909         * reload1.c (delete_output_reload): Don't delete an output reload
12910         if the pseudo lives longer than a single basic block.  Adjust and
12911         improve wording of comment.
12913 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
12915         PR target/19334
12916         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
12917         of TYPE_SIZE where we mean the number of bytes.
12919 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
12921         * function.c (assign_parm_setup_block): Relax condition on
12922         multi-register optimization.
12924 2005-01-12  Nick Clifton  <nickc@redhat.com>
12926         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
12927         an "in_delay_slot" attribute of "no" to prevent them being used in
12928         delay slots.  This is forbidden because they might generate
12929         exceptions.
12931 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
12933         PR target/19389
12934         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
12935         with r->Y and Y->r.
12937 2005-01-12  Nick Clifton  <nickc@redhat.com>
12939         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
12940         passed on to GAS) but do not define, as GAS no longer supports or
12941         needs the -m2000 option.
12943 2005-01-11  Roger Sayle  <roger@eyesopen.com>
12945         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
12946         type as args of unprototyped builtins aren't automatically promoted.
12947         (fold_builtin_abs): Likewise.
12949 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12951         * Makefile.in: Set a `build-warn' variable.
12953 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
12955         PR tree-optimization/17949
12956         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
12957         (find_interesting_uses_address): Use it.
12959 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
12961         * regrename.c (kill_value): Handle subreg's that won't simplify.
12963 2005-01-11  Richard Henderson  <rth@redhat.com>
12965         PR target/13366
12966         * config/i386/i386.h (enum ix86_builtins): Move ...
12967         * config/i386/i386.c: ... here.
12968         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
12969         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
12970         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
12971         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
12972         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
12973         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
12974         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
12975         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
12976         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
12977         IX86_BUILTIN_LOADDDUP): Remove.
12978         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
12979         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
12980         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
12981         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
12982         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
12983         (ix86_init_builtins): Make static.
12984         (ix86_init_mmx_sse_builtins): Update for changed builtins.
12985         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
12986         if all the modes match.  Otherwise, fake it.
12987         (get_element_number, ix86_expand_vec_init_builtin,
12988         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
12989         (ix86_expand_builtin): Make static.  Update for changed builtins.
12990         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
12991         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
12992         (ix86_expand_vector_init_duplicate): New.
12993         (ix86_expand_vector_init_low_nonzero): New.
12994         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
12995         Split out from ix86_expand_vector_init; handle integer modes.
12996         (ix86_expand_vector_init): Use them.
12997         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
12998         * config/i386/i386-protos.h: Update.
12999         * config/i386/predicates.md (reg_or_0_operand): New.
13000         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
13001         (movv2sf_internal): Likewise.  And a splitter to match them all.
13002         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
13003         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
13004         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
13005         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
13006         (mmx_pinsrw): Fix operand ordering.
13007         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
13008         rather than sse_loadss expander.
13009         (movv2df splitter): Similarly.
13010         (sse_loadss, sse_loadlss): Remove.
13011         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
13012         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
13013         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
13014         (sse3_movddup): Rename with '*'.
13015         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
13016         (sse2_loadsd): Remove.
13017         (vec_dupv2df_sse3): Rename from sse3_loadddup.
13018         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
13019         (sse2_pinsrw): Fix argument ordering.
13020         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
13021         (sse2_stored): Remove 'r' destination.
13022         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
13023         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
13024         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
13025         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
13026         vec_extractv16qi, vec_initv16qi): New.
13028         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
13029         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
13030         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
13031         constructor form.
13032         (_mm_load_pd, _mm_store_pd): Use plain dereference.
13033         (_mm_load_si128, _mm_store_si128): Likewise.
13034         (_mm_load1_pd): Use _mm_set1_pd.
13035         (_mm_load_sd): Use _mm_set_sd.
13036         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
13037         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
13038         (_mm_set_epi64): Use _mm_set_epi64x.
13039         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
13040         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
13041         _mm_setr_epi8): Use _mm_set_foo form.
13042         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
13043         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
13044         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
13045         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
13046         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
13047         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
13048         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
13049         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
13050         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
13051         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
13052         (_mm_movedup_pd): Use _mm_shuffle_pd.
13053         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
13054         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
13055         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
13056         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
13057         Use _mm_setzero_ps.
13058         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
13059         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
13060         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
13061         (_mm_store_ps): Use raw dereference.
13062         (_mm_store1_ps): Use _mm_storeu_ps.
13063         (_mm_storer_ps): Use _mm_store_ps.
13064         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
13065         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
13067 2005-01-11  Stan Shebs  <shebs@apple.com>
13069         * config/rs6000/rs6000.c (machopic_output_stub): Issue
13070         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
13072 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
13074         PR target/18761
13075         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
13076         Skip all DECLs except for FIELD_DECLs.
13078 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13080         * config/s390/s390.c (override_options): Return error if
13081         -mbackchain, -mpacked-stack and -mhard-float are used together.
13082         (s390_va_start): Remove the backchain && packed-stack special case.
13083         (s390_gimplify_va_arg): Likewise.
13084         * doc/invoke.texi: Remove the ABI incompatibility note.
13086 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13088         * config/s390/s390.c (struct s390_frame_layout): Remove
13089         save_backchain_p.
13090         (s390_frame_info, s390_emit_prologue): Replace occurrences of
13091         save_backchain_p with TARGET_BACKCHAIN.
13093 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13095         PR target/18916
13096         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
13097         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
13098         * function.c (locate_and_pad_parm): Set new field.
13099         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
13100         Tweak where_pad test to include "none".  Always set mem align for
13101         stack_parm.
13102         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
13103         not sufficient for type.
13104         (assign_parm_setup_block): If stack_parm is zero on entry, always
13105         make a new stack local.  Block move old stack parm if necessary
13106         to new aligned stack local.
13107         (assign_parm_setup_stack): Use a block move to handle
13108         potentially misaligned entry_parm.
13109         (assign_parms_unsplit_complex): Specify required alignment when
13110         creating stack local.
13111         * calls.c (compute_argument_addresses): Override alignment of stack
13112         arg calculated from its type with the alignment given by
13113         FUNCTION_ARG_BOUNDARY.
13114         (store_one_arg): Likewise.
13116 2005-01-11  Jan Beulich  <jbeulich@novell.com>
13118         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
13119         Change respective itanium_class attribute to ialu.
13120         (shladdp4_internal): New.
13121         * config/ia64/predicates.md (shladd_log2_operand): New.
13123 2005-01-11  Richard Henderson  <rth@redhat.com>
13125         * expr.c (store_constructor): Use rtvec_alloc instead of
13126         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
13128 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
13130         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
13132 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13134         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
13135         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
13136         (TARGET_RWRELOC): Define.
13137         (ia64_rwreloc_section_type_flags): Delete.
13138         (ia64_section_type_flags): New function.
13139         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
13140         (TARGET_RWRELOC): Define.
13142 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
13144         PR target/18987
13145         * config/ia64/ia64.c (process_set): For alloc insn, only call
13146         process_epilogue is !frame_pointer_needed.
13148 2005-01-10  Roger Sayle  <roger@eyesopen.com>
13150         PR c++/19355
13151         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
13152         unary operator and can't be treated as a binary/comparison operator.
13154 2005-01-10  Richard Henderson  <rth@redhat.com>
13156         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
13157         (ix86_return_in_memory): Likewise.
13158         (function_arg_advance):  Likewise.  Mirror structure in function_arg
13159         for choosing register to advance.
13161 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
13163         * tree-vectorizer.c, tree.def: Fix comment typos.
13165 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
13167         * config/s390/s390.c (struct processor_costs): 4 new fields:
13168         ddbr, ddr, debr, der.
13169         (s390_rtx_costs): More precise handling of divide instructions.
13171 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
13173         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
13175 2005-01-10  Jan Beulich  <jbeulich@novell.com>
13177         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
13178         names resulting from -ffunction-sections/-fdata-sections and linkonce
13179         ones.
13180         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
13181         based on the section name. Rearrange the section name comparison logic
13182         slightly so that each section name is compared against at most once.
13184 2005-01-10  Ben Elliston  <bje@au.ibm.com>
13186         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
13187         targets for which -fPIC reduces limitations on the GOT size.
13189 2005-01-09  Falk Hueffner  <falk@debian.org>
13191         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
13192         X/C1 cmpop C2.
13194 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
13196         PR target/18720
13197         * collect2.c (main): Set aixrtl_flag for -brtl option.
13198         (resolve_lib_name): Search for .so file extension before .a
13199         if aixrtl_flag set.
13201 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
13203         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
13204         (vect_analyze_data_refs_alignment): Add dump prints.
13206 2005-01-09  Ira Rosen  <irar@il.ibm.com>
13208         * tree-vectorizer.c (vect_analyze_offset_expr): Use
13209         expr_invariant_in_loop_p.
13210         Initialize outputs first thing in the function.
13211         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
13212         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
13213         (vect_analyze_pointer_ref_access): Check that the initial condition of
13214         the access function is loop invariant.
13216 2005-01-09  Richard Henderson  <rth@redhat.com>
13218         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
13219         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
13220         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
13221         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
13222         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
13223         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
13224         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
13225         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
13226         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
13227         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
13228         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
13229         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
13230         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
13231         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
13232         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
13233         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
13234         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
13235         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
13236         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
13237         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
13238         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
13239         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
13240         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
13241         mmx_ prefix.
13242         (mmx_clrdi, pavgusb): Remove.
13243         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
13244         with leading sse_ prefix.
13245         * config/i386/sse.md: Receive them.
13246         * config/i386/mmx.md: New file.
13247         (MMXMODE12, MMXMODE24, mmxvecsize): New.
13248         (subrv2sf3): Turn into expander for normal subtraction.
13249         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
13250         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
13251         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
13252         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
13253         commutative; use ix86_binary_operator_ok.
13254         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
13255         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
13256         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
13257         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
13258         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
13259         Macroize from existing patterns; use ix86_binary_operator_ok.
13260         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
13261         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
13262         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
13263         with vec_select+vec_concat.
13264         (mmx_pshufw, mmx_pshufw_1): Likewise.
13265         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
13266         (mmx_uavgv4hi3): Model correctly.
13267         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
13268         _mm_xor_si64): Remove casts.
13270 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
13272         PR tree-optimization/19224
13273         * tree-scalar-evolution.c (get_instantiated_value,
13274         set_instantiated_value): New functions.
13275         (instantiate_parameters_1): Cache the results.
13276         (instantiate_parameters, resolve_mixers): Initialize and free
13277         the cache.
13279 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
13281         * config/i386/i386.md (addhi_4): Correct reference in comment.
13282         (addqi_4): Same.
13284 2005-01-08  Richard Henderson  <rth@redhat.com>
13286         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
13287         (_mm_cvtsi128_si64x): Likewise.
13288         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
13289         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
13290         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
13291         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
13292         * config/i386/i386-protos.h: Update.
13293         * config/i386/i386.c (print_operand): Add 'H'.
13294         (ix86_fixup_binary_operands): Split out from ...
13295         (ix86_expand_binary_operator): ... here.
13296         (ix86_fixup_binary_operands_no_copy): New.
13297         (ix86_expand_fp_absneg_operator): Handle vector mode results.
13298         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
13299         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
13300         (safe_vector_operand): Use CONST0_RTX.
13301         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
13302         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
13303         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
13304         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
13305         special cases.
13306         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
13307         (IX86_BUILTIN_CMPNGESS): New.
13308         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
13309         (attr type): Add sselog1.
13310         (attr unit, attr memory): Handle it.
13311         (movti, movti_internal, movti_rex64): Move near other integer moves.
13312         (movtf, movtf_internal): Move near other fp moves.
13313         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
13314         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
13315         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
13316         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
13317         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
13318         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
13319         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
13320         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
13321         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
13322         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
13323         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
13324         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
13325         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
13326         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
13327         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
13328         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
13329         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
13330         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
13331         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
13332         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
13333         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
13334         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
13335         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
13336         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
13337         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
13338         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
13339         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
13340         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
13341         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
13342         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
13343         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
13344         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
13345         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
13346         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
13347         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
13348         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
13349         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
13350         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
13351         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
13352         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
13353         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
13354         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
13355         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
13356         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
13357         same time.
13358         (SSEPUSH, push<SSEPUSH>): Remove.
13359         (MMXPUSH, push<MMXPUSH>): Remove.
13360         (sse_movaps, sse_movaps_1, sse_movups): Remove.
13361         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
13362         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
13363         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
13364         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
13365         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
13366         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
13367         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
13368         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
13369         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
13370         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
13371         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
13372         (ppro_sse_log_V4SF): Handle sselog1.
13373         * config/i386/predicates.md (const_0_to_1_operand): New.
13374         (const_0_to_255_mul_8_operand): New.
13375         (const_1_to_31_operand): Rename from const_int_1_31_operand.
13376         (const_2_to_3_operand, const_4_to_7_operand): New.
13377         * config/i386/sse.md: New file.
13378         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
13379         (sse_movups): Rename from sse_movups_1.
13380         (sse_loadlss): Rename from sse_loadss_1.
13381         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
13382         from the name.
13383         (negv4sf2): Use ix86_expand_fp_absneg_operator.
13384         (absv4sf2, negv2df, absv2df): New.
13385         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
13386         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
13387         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
13388         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
13389         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
13390         (sse3_addsubv4sf3): Model correctly.
13391         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
13392         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
13393         (sse_movhlps): Model with vec_select+vec_concat.
13394         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
13395         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
13396         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
13397         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
13398         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
13399         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
13400         sse2_pshufhw_1): Likewise.
13401         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
13402         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
13403         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
13404         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
13405         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
13406         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
13407         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
13408         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
13409         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
13410         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
13411         sminv8hi3): Mark commutative
13412         operands.  Use ix86_binary_operator_ok.
13413         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
13414         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
13415         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
13416         sse2_punpcklqdq): Allow operand2 in memory.
13417         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
13418         sse2_movsd): Add memory alternatives.
13419         (sse_storelps): Turn expander into an insn; split after reload.
13420         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
13421         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
13423 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13425         * configure.ac (DWARF-2 debug_line): Use objdump.
13426         * configure: Regenerate.
13428 2005-01-08  Jeff Law  <law@redhat.com>
13429             Diego Novillo  <dnovillo@redhat.com>
13431         PR tree-optimization/18241
13432         * tree-nrv.c (tree_nrv): Ignore volatile return values.
13433         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
13434         statements with volatile operands.
13435         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
13436         operands after marking a statement with has_volatile_ops.
13438 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13440         * tree.c (int_fits_type_p): Always honor integer constant
13441         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
13443 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13445         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
13446         the latent bug in rtl_delete_block has been resolved.
13448 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13450         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
13451         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
13453 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13455         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
13456         library as @multilib_dir@/$(SHLIB_SONAME).
13458 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13460         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
13461         * configure: Regenerate.
13463 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13465         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
13466         TYPE_MODE.
13468 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
13470         PR target/13674
13471         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
13472         Convert non-word aligned offset address using ld/std into
13473         indirect address.
13475 2005-01-07  Richard Henderson  <rth@redhat.com>
13477         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
13479 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
13481         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
13483 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13485         PR tree-optimization/19283
13486         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
13487         is not shorter than the original type.
13489         PR rtl-optimization/19012
13490         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
13492         PR rtl-optimization/18861
13493         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
13494         (FULL_STATE): Define.
13495         (mark_tablejump_edge): New function.
13496         (purge_dead_tablejump_edges): New function.
13497         (find_bb_boundaries): Use it.
13499         PR tree-optimization/18828
13500         * builtins.c (expand_builtin_next_arg): Remove argument and all
13501         the argument checking.
13502         (expand_builtin): Adjust caller.
13503         (expand_builtin_va_start): Likewise.  Remove error for too many
13504         arguments.
13505         (fold_builtin_next_arg): Issue error for too many arguments.
13506         After checking arguments, replace them with magic arguments that
13507         prevent further checking of the args.
13509 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13511         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
13513 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13515         PR target/6077
13516         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
13517         and %{.S:...} (and their negative variants) to test whether the
13518         input file is assembler or pre-processed-assembler independent of
13519         the actual filename extension.
13521 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13523         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
13524         of sign or zero extended values.
13526 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
13528         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
13529         for IBM long double format correctly.
13531 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
13533         Fix PR tree-optimization/18792
13535         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
13536         to first_loop_depth, and use loop depth instead of loop number.
13537         (build_classic_dir_vector): Ditto.
13538         (compute_data_dependences_for_loop): Use depth, not loop number.
13539         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
13540         number. Pass in loops, instead of loop numbers.
13541         (gather_interchange_stats): Ditto.
13542         (linear_transform_loops): Ditto.
13544 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
13546         PR rtl-opt/13299
13547         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
13548         biv_fits_mode_p, extension_within_bounds_p): New functions.
13549         (check_ext_dependent_givs): Use them.
13551 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13553         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
13554         more than one barrier, in which case we should delete them all.
13556 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
13558         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
13560 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
13562         Fix PR middle-end/19286
13563         Fix PR debug/19267
13564         * dwarf2out.c (gen_subprogram_die): If we've already tried to
13565         output this subprogram, simply ignore this attempt to do it again.
13566         (add_abstract_origin_attribute): Don't abort trying to add the abstract
13567         origin attribute if it's not possible.
13568         (gen_block_die): Don't ignore subblocks of "unused" blocks.
13569         (decls_for_scope): Ditto.
13570         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
13571         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
13573 2005-01-05  Richard Henderson  <rth@redhat.com>
13575         PR target/11327
13576         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
13577         (bdesc_2arg): Use it.
13578         (ix86_expand_binop_builtin): Force operands into registers
13579         when optimizing.
13580         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
13581         ix86_expand_sse_compare, ix86_expand_sse_comi,
13582         ix86_expand_builtin): Likewise.
13584 2005-01-05  Richard Henderson  <rth@redhat.com>
13586         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
13587         and VEC_SELECT.
13588         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
13589         (mulv4hi3): Set itanium_class mmmul.
13590         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
13591         (fpack): Rename from fpack_sfsf.
13593 2005-01-05  Richard Henderson  <rth@redhat.com>
13595         PR rtl-opt/10692
13596         * reload1.c (do_input_reload): Restrict the optimization deleteing
13597         a previous output reload to RELOAD_FOR_INPUT.
13599 2005-01-05  Steven Bosscher  <stevenb@suse.de>
13601         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
13602         comment that we fall through after case.
13603         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
13604         (distribute_links): Likewise.
13605         * cse.c (cse_insn): Likewise.
13606         * cselib.c (cselib_invalidate_mem): Likewise.
13607         * df.c: Update comments at the top of the file.
13608         (read_modify_subreg_p): Update comments here too.
13609         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
13610         * flow.c (mark_set_1): Likewise.
13611         (mark_used_regs): Likewise.
13612         * gcse.c (mems_conflict_for_gcse_p): Likewise.
13613         (canon_list_insert): Likewise.
13614         (mark_set): Likewise.
13615         (try_replace_reg): Likewise.
13616         (store_killed_in_insn): Likewise.
13617         * loop.c (count_one_set): Likewise.
13618         (basic_induction_var): Likewise.
13619         * postreload-gcse.c (find_mem_conflicts): Likewise.
13620         * postreload.c (reload_combine_note_store): Likewise.
13621         (move2add_note_store): Likewise.
13622         * reload.c (find_equiv_reg): Likewise.
13623         (mark_referenced_resources): Likewise.
13624         * rtlanal.c (set_noop_p): Likewise.
13625         (note_stores): Likewise.
13626         (note_uses): Likewise.
13627         * sched-deps.c (sched_analyze_1): Likewise.
13628         * sched-rgn.c (check_live_1): Likewise.
13629         (update_live_1): Likewise.
13630         * config/i860/i860.c: Likewise.
13632         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
13633         an lvalue.
13634         (ZERO_EXTRACT): Mention that this one can be an lvalue.
13636         * doc/rtl.texi: Update documentation for bit-fields and SET.
13638 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13640         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
13642 2005-01-05  Jan Hubicka  <jh@suse.cz>
13643             Richard Henderson  <rth@redhat.com>
13645         PR target/18910
13646         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
13647         with an offset.
13649 2005-01-05  Richard Henderson  <rth@redhat.com>
13651         PR target/12902
13652         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
13653         (sse_shufps): Change operand 3 to const_int_operand.
13654         (sse2_storelps): Fix typo in template.
13655         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
13656         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
13657         (ix86_expand_builtin): Likewise.
13659 2005-01-05  Julian Brown  <julian@codesourcery.com>
13661         * config/arm/arm.c (arm_return_in_memory): Treat complex types
13662         as aggregates for AAPCS ABIs.
13664 2005-01-05  Stan Shebs  <shebs@apple.com>
13666         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
13667         Mach-O getters if ppc64.
13668         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
13669         size argument.
13670         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13671         signed four-byte field for global code case.
13672         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
13674 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13676         PR middle-end/19100
13677         * c-common.c: Include real.h.
13678         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
13679         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
13680         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
13681         * Makefile.in (c-common.o): Update dependencies.
13683 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13685         * c-parse.in (asm_string): Add trailing semicolon.
13687 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13689         * c-parse.in (asm_string): New.  Don't allow wide strings in
13690         'asm'.
13691         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
13692         asm_string instead of STRING.
13694 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13696         * c-typeck.c (constructor_no_implicit): Remove.
13697         (set_designator, process_init_element): Don't check
13698         constructor_no_implicit.
13700 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
13701             Kaz Kojima  <kkojima@gcc.gnu.org>
13703         PR target/16482
13704         * lcm.c (create_pre_exit): New.
13705         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
13706         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
13708 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13710         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
13711         -msoft-float in target_float_switch.
13712         * arm.c (arm_override_options): Fix processing of target_float_switch.
13714 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13716         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
13717         preferencing.
13719 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
13721         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
13722         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
13724 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13726         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
13727         if deleting the then-block allows the test-block to fallthru to the
13728         else-block.
13730 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
13732         PR c/19152
13733         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
13734         after the full declaration if the are in two different TUs.
13736 2005-01-04  Richard Henderson  <rth@redhat.com>
13738         PR tree-opt/19158
13739         * tree-sra.c (generate_one_element_init): Just
13740         call gimplify_and_add.
13741         (generate_element_init): Record the
13742         new referenced variables and mark them for renaming
13743         and split out to ...
13744         (generate_element_init_1): This.
13745         (scalarize_init): Don't call push_gimplify_context/
13746         pop_gimplify_context.
13748 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
13750         * toplev.c (get_src_pwd): Handle failure of getpwd().
13752 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13754         * fold-const.c (fold_single_bit_test): Delete unreachable handling
13755         of TRUTH_NOT_EXPR.
13756         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
13757         all the cases handled by it are inverted by invert_truthvalue.
13759 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13761         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
13762         (save_register_windowsi): Likewise.
13764 2005-01-04  Richard Henderson  <rth@redhat.com>
13766         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
13768 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
13770         PR middle-end/17767
13771         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
13772         any simplifications of vector mode comparison operators.
13773         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
13775 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
13776             Devang Patel  <dpatel@apple.com>
13778         PR tree-optimization/18308
13779         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
13780         the operands before creating a new expression.
13781         * dojump.c (do_jump): Make drop_through_label available
13782         for all cases.  Add expansion of COND_EXPR.
13784 2005-01-04  Ira Rosen  <irar@il.ibm.com>
13786         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
13787         INTEGER_CST instead of TREE_CONSTANT.
13788         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
13789         instead of TREE_CONSTANT.
13790         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
13791         instead of TREE_CONSTANT.
13793 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13795         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
13797 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
13799         PR target/19240
13800         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
13801         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
13803 2005-01-03  Richard Henderson  <rth@redhat.com>
13805         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
13806         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
13807         fold_convert_const_real_from_real): Split out from ...
13808         (fold_convert_const): ... here.
13810 2005-01-03  Richard Henderson  <rth@redhat.com>
13812         PR target/19235
13813         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
13814         (mov<MMXMODEI>_internal): Likewise.
13815         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
13816         Add V2SF case; use it for SSE1; don't use TI.
13817         (movdf_integer): Likewise.
13818         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
13820 2005-01-03  Ira Rosen  <irar@il.ibm.com>
13822         * tree-vectorizer.c (vect_strip_conversions): New function.
13823         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
13824         check for binary class.
13826 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
13828         Fix PR debug/17924
13829         Fix PR debug/19191
13830         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
13831         is a decl.
13832         * gimple-low.c (mark_blocks_with_used_vars): New function.
13833         (mark_blocks_with_used_subblocks): Ditto.
13834         (mark_used_blocks): Ditto.
13835         (pass_mark_used_blocks): New pass.
13836         * tree-inline.c: Include debug.h.
13837         (expand_call_inline): Call outlining_inline_function here.
13838         * tree-optimize.c (init_tree_optimization_passes): Add
13839         pass_mark_used_blocks.
13840         * tree-pass.h (pass_mark_used_blocks): New.
13841         * Makefile.in (tree-inline.o): Add debug.h dependency.
13843 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
13845         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
13846         VAR_DECLs to have weak_import attribute.
13848         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
13849         'struct ucontext'.
13851 2004-01-03  Steven Bosscher  <stevenb@suse.de>
13853         * passes.c (rest_of_compilation): Don't run regmove if only
13854         flag_expensive_optimizations, require flag_regmove instead.
13856 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13858         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
13859         register "sparc".
13860         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
13861         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
13862         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
13863         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
13865 2005-01-03  Richard Henderson  <rth@redhat.com>
13867         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
13868         (ia64_const_ok_for_letter_p): New.
13869         (ia64_const_double_ok_for_letter_p): New.
13870         (ia64_extra_constraint): New.
13871         (ia64_expand_vecint_compare): New.
13872         (ia64_expand_vcondu_v2si): New.
13873         (ia64_expand_vecint_cmov): New.
13874         (ia64_expand_vecint_minmax): New.
13875         (ia64_print_operand): Add 'v'.
13876         (ia64_preferred_reload_class): New.
13877         (ia64_vector_mode_supported_p): New.
13878         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
13879         (PREFERRED_RELOAD_CLASS): Move to function.
13880         (CONST_OK_FOR_LETTER_P): Move to function.
13881         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
13882         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
13883         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
13884         (EXTRA_CONSTRAINT): Move to function.
13885         * config/ia64/ia64.md: Include vect.md.
13886         (itanium_class): Add mmalua.
13887         (type): Handle it.
13888         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
13889         (1b_mmalua): New.
13890         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
13891         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
13892         CONST0_RTX.
13893         (const_int_2bit_operand): New.
13894         (fr_reg_or_0_operand): New.
13895         * config/ia64/ia64-modes.def: Add vector modes.
13896         * config/ia64/ia64-protos.h: Update.
13897         * config/ia64/vect.md: New file.
13899 2005-01-03  Richard Henderson  <rth@redhat.com>
13901         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
13903 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
13905         PR target/19236
13906         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
13907         to SFmode.
13908         (log1pdf2): Change mode of operands[0,1] to DFmode.
13910 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13912         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
13913         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
13914         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13915         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
13916         SPARC_RELAXED_ORDERING.
13918 2005-01-03  Richard Henderson  <rth@redhat.com>
13919             Uros Bizjak  <uros@kss-loka.si>
13921         PR target/14631
13922         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
13923         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
13924         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
13925         handling.
13926         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
13927         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
13928         const_pow2_1_to_128_operand): New predicates.
13930 2005-01-02  Greg McGary  <greg@mcgary.org>
13932         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
13933         anonymous decls.
13934         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
13935         object.  [ptr_type]: Remove unused variable.
13936         Remember nearest addressable array-element or record-component
13937         when checking bitfield components.  Tolerate empty BIND_EXPR.
13939 2005-01-01  Richard Henderson  <rth@redhat.com>
13941         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
13942         that don't narrow the value.  Fail for other conversions.
13944 2005-01-01  Richard Henderson  <rth@redhat.com>
13946         PR c/19031
13947         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
13948         * c-lang.c (finish_file): Don't do it here.
13949         * objc/objc-act.c (objc_finish_file): Likewise.
13951         * cgraph.c (decl_assembler_name_equal): New.
13952         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
13953         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
13954         * cgraph.h (struct cgraph_varpool_node): Add next.
13955         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
13956         * varasm.c (assemble_alias): Mark the target as needed.
13958 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
13960         PR middle-end/19221
13961         * function.c (get_arg_pointer_save_area): Use entry_of_function
13962         instead of get_insns.
13964 2005-01-01  Roger Sayle  <roger@eyesopen.com>
13965             Andrew Pinski  <pinskia@physics.uc.edu>
13966             James E. Wilson  <wilson@specifixinc.com>
13968         PR rtl-optimization/12092
13969         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
13970         is zero.
13972 2005-01-01  Roger Sayle  <roger@eyesopen.com>
13973             Olivier Hainque  <hainque@act-europe.fr>
13975         * tree.c (int_fits_type_p): A narrower type always fits in a
13976         wider one, except for negative values into unsigned types.
13978 2005-01-01  Roger Sayle  <roger@eyesopen.com>
13980         * tree.c (int_fits_type_p): Compare the result of force_fit_type
13981         with the original constant rather than require TREE_OVERFLOW.
13983 2005-01-01  Steven Bosscher  <stevenb@suse.de>
13985         PR middle-end/17544
13986         * c-decl.c (finish_function): If compiling C99, annotate the
13987         compiler generated return with the current file name and line 0.
13988         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
13989         the source line is greater than 0.
13990         (remove_bb): Likewise.