* config/arm/arm.c (arm_return_in_msb): New function.
[official-gcc.git] / gcc / ChangeLog
blob07c96a5372fc0bfdf3b4865600891131a69ac157
1 2005-04-26  Julian Brown  <julian@codesourcery.com>
3         * config/arm/arm.c (arm_return_in_msb): New function.
4         (arm_must_pass_in_stack): New function.
5         (TARGET_RETURN_IN_MSB): Define target hook.
6         (TARGET_MUST_PASS_IN_STACK): Define target hook.
7         (arm_function_value): Pad small aggregate return.
8         (arm_pad_arg_upward): New function.
9         (arm_pad_reg_upward): New function.
10         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
11         (FUNCTION_ARG_PADDING): Define macro.
12         (BLOCK_REG_PADDING): Define macro.
13         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
14         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
15         (arm_pad_reg_upward): Declare function.
17 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
19         * basic-block.h (ei_cond): New.
20         (FOR_EACH_EDGE): Call ei_cond.
22         PR tree-optimization/21047
23         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
24         (fold): Don't handle ASSERT_EXPR.
26 2005-04-25  Roger Sayle  <roger@eyesopen.com>
28         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
29         all writes to any stack register as a read/write dependency on
30         FIRST_STACK_REG.
31         (sched_analyze_2): Likewise, for reads from any stack register.
33 2005-04-25  Richard Henderson  <rth@redhat.com>
35         * final.c (output_addr_const): Revert 2005-04-09 change.
37 2005-04-25  Mike Stump  <mrs@apple.com>
39         * config/darwin.c (darwin_encode_section_info): Always set
40         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
42 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
45         gensupport.c, protoize.c, toplev.c: Replace calls to
46         `unlock_stream' with `unlock_std_streams'.
48 2005-04-25  Devang Patel <dpatel@apple.com>
50         * dbxout.c (dbxout_type): Emit attribute vector.
51         
52 2005-04-05  Paul Brook  <julian@codesourcery.com>
54         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
55         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
56         * config/arm/arm.c (arm_cxx_atexit_name): New function.
57         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
58         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
59         (register_dtor_fn): Likewise.
60         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
62 2005-04-25  Ian Lance Taylor  <ian@airs.com>
64         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
65         * c-common.h (EXPR_STMT_EXPR): Don't define.
66         (c_common_stmt_codes): Don't define.
67         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
68         * c-gimplify.c (gimplify_expr_stmt): Remove.
69         (c_gimplify_expr): Remove EXPR_STMT case.
70         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
71         to INIT_STATEMENT_CODES.
72         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
74 2005-04-25  Jan Hubicka  <jh@suse.cz>
76         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
78         * except.c: Include diagnostic.h
79         (dump_eh_tree, verify_eh_tree): New functions.
80         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
81         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
82         (dump_function_to_file): dump eh tree.
83         * tree-eh.c (mark_eh_edge): New function.
84         (mark_eh_edge_found_error): New static variable.
85         (verify_eh_edges): New function.
87 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
89         * tree-ssa-alias.c (fieldoff_t): Remove.
90         (fieldoff_s): typedef the structure itself.  Create a vector of
91         objects.
92         (push_fields_onto_fieldstack): Return count of fields pushed.
93         Remove peeling of first field.  Adjust.
94         (fieldoff_compare): Adjust.
95         (create_overlap_variables_for): Adjust.
97 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
99         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
101 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
103         PR bootstrap/21215
104         * doc/install.texi: Document correct assembler and linker to use
105         on i?86-*-solaris2.10.
107 2005-04-25  Steven Bosscher  <stevenb@suse.de>
109         Fix PR tree-optimization/21173
111         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
112         Unshare expression we pass to force_gimple_operand.
114 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
115             Stephen Clarke <stevec@superh.com>
116             Roger Sayle <roger@eyesopen.com>
118         PR rtl-optimization/20413
119         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
120         VOIDmode for LABEL_REF.
121         * final.c (shorten_branches): Likewise.
122         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
123         * loop.c (reg_dead_after_loop): Likewise.
124         * varasm.c (decode_addr_const): Likewise.
125         * doc/rtl.texi: Document mode requirement for LABEL_REF.
127 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
129         * config.gcc (avr-*-*): Remove redundant "case".
131 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
133         * tree-vect-analyze.c (vect_mark_relevant): Take
134         VEC(tree,heap) instead of varray_type as an argument.
135         (vect_mark_stmts_to_be_vectorized): Change the type of
136         worklist to VEC(tree,heap).  Adjust uses of worklist.
138 2005-04-24  Devang Patel  <dpatel@apple.com>
140         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
141         
142 2005-04-24  Ian Lance Taylor  <ian@airs.com>
144         * c-semantics.c (build_stmt): Remove test of specific tree codes
145         for TREE_SIDE_EFFECTS handling.
147 2005-04-24  Per Bothner  <per@bothner.com>
149         * c-opts.c (finish_options):  Make the line-number of the <built-in>
150         location 0, as assumed elsewhere, rather than 1.
152 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
154         * tree-ssa-uncprop.c (equiv_stack): Change the type o
155         VEC(tree,heap).
156         (tree_ssa_uncprop, uncprop_finalize_block,
157         uncprop_initialize_block): Update uses of equiv_stack.
159 2005-04-24  Richard Henderson  <rth@redhat.com>
161         PR rtl-opt/21163
162         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
163         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
164         constm1_rtx.
165         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
166         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
167         <DIV, MOD>: Likewise.
169 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
171         * collect2.c (main): Unlock the stdio streams.
172         * gcc.c (main): Likewise.
173         * gcov-dump.c (main): Likewise.
174         * gcov.c (main): Likewise.
175         * gen-protos.c (main): Likewise.
176         * gensupport.c (init_md_reader_args_cb): Likewise.
177         * protoize.c (main): Likewise.
178         * toplev.c (general_init): Likewise.
180 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
182         PR middle-end/20991
183         * cgraph.h (cgraph_local_info): Add vtable_method field.
184         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
185         and node is vtable_method, finalized and not reachable, don't do
186         anything.
188 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
190         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
191         COMPARISON_CLASS_P.
192         * tree-ssa-pre.c (create_value_expr_from): Use
193         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
194         * tree-ssa-propagate.c (stmt_makes_single_load,
195         stmt_makes_single_store): Use REFERENCE_CLASS_P.
196         * tree-vect-transform.c (vect_is_simple_cond): Use
197         COMPARISON_CLASS_P.
198         * tree-vrp.c (extract_range_from_assert,
199         build_assert_expr_for, fp_predicate, has_assert_expr): Use
200         COMPARISON_CLASS_P.
202         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
203         of tpa_to_clear to VEC(int,heap).  Update uses of
204         tpa_to_clear.  Free tpa_to_clear at the end.
206 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
208         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
209         function decl.
211 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
213         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
214         and gcc_unreachable as appropriate.
215         (num_insns_constant, output_vec_const_move,
216         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
217         rs6000_emit_set_const, rs6000_emit_move,
218         spe_build_register_parallel, function_arg,
219         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
220         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
221         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
222         rs6000_common_init_builtins, expand_block_clear,
223         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
224         extract_ME, rs6000_get_some_local_dynamic_name,
225         rs6000_output_function_entry, print_operand,
226         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
227         output_cbranch, output_e500_flip_gt_bit,
228         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
229         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
230         compute_save_world_info, rs6000_stack_info,
231         rs6000_emit_load_toc_table, rs6000_frame_related,
232         spe_synthesize_frame_save, rs6000_emit_epilogue,
233         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
234         output_function_profiler, rs6000_trampoline_size,
235         rs6000_initialize_trampoline, find_addr_reg,
236         rs6000_machopic_legitimize_pic_address,
237         rs6000_initial_elimination_offset,
238         rs6000_dbx_register_number): Likewise.
239         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
240         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
241         *movti_power, *movti_string, call, call_value, sibcall,
242         sibcall_value): Likewise.
243         * config/rs6000/spe.md (*movdf_e500_double,
244         *movv2si_internal): Likewise.
245         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
246         from comment.
248 2005-04-24  Richard Henderson  <rth@redhat.com>
250         PR target/21101
251         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
252         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
253         Deny modes smaller than 4 bytes.
254         * config/i386/i386-protos.h: Update.
256 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
258         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
259         Switch h8300-*-rtems* to ELF.
261 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
263         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
265 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
267         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
269 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
271         PR middle-end/21082
272         * fold-const.c: Fold &a[i]-&a[j] to i-j.
274 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
276         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
277         definitions of ssa names in condition.  Split recusive part to ...
278         (tree_simplify_using_condition_1): New function.
279         (expand_simple_operations): New function.
281 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
283         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
284         (find_interesting_uses_cond): Do not use integer_zerop and
285         integer_nonzerop to check for integer constants.
286         (set_use_iv_cost): Record the value field.
287         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
288         determine_use_iv_cost_outer): Set the value field of the cost pair.
289         (may_eliminate_iv): Do not return the comparison code.
290         (iv_elimination_compare): New function.
291         (determine_use_iv_cost_condition): Set the value field.  Record
292         noneliminable invariants correctly.
293         (rewrite_use_compare, rewrite_use_outer): Use the value field.
295 2005-04-23  DJ Delorie  <dj@redhat.com>
297         * diagnostic.c (warning): Accept parameter to classify warning option.
298         (warning0): New, for when a pointer to an error() like function is needed.
299         * errors.c (warning): Likewise.
300         * errors.h (warning, warning0): Adjust prototypes.
301         * toplev.h (warning, warning0): Likewise.
303         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
304         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
305         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
306         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
307         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
308         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
309         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
310         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
312         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
313         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
314         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
315         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
316         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
317         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
318         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
319         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
320         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
321         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
322         config/rs6000/aix52.h, config/rs6000/darwin.h,
323         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
324         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
325         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
326         config/stormy16/stormy16.c, config/v850/v850-c.c,
327         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
328         callers.
329         
330 2005-04-23  Richard Henderson  <rth@redhat.com>
332         PR rtl-opt/21102
333         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
334         performing some integral scalar simplifications.
336 2005-04-23  Richard Henderson  <rth@redhat.com>
338         PR target/21099
339         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
340         simplifying CONST_VECTOR.
342 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
344         * tree-ssa-live.c (live_worklist): Take a stack allocated on
345         heap as an argument.  Update uses of stack.
346         (calculate_live_on_entry): Allocate stack on heap.
348         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
349         partition_link and tpa_nodes on heap.
351         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
352         (mark_stmt_necessary, propagate_necessity,
353         mark_really_necessary_kill_operand_phis): Update uses of
354         worklist.
355         (tree_dce_init): Allocate worklist using VEC_alloc.
356         (tree_dce_done): Free worklist using VEC_free.
358 2005-04-23  Mike Stump  <mrs@apple.com>
360         * config/darwin.c (machopic_indirection_name): Don't use
361         quotes needlessly.
362         (darwin_emit_unwind_label): Use user_label_prefix instead of
363         "_".
365 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
367         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
369 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
371         * config.gcc <cris-*>: Specify .opt files.
372         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
373         config/cris/linux.opt: New files.
374         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
375         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
376         (TARGET_ELF): Override to 0.
377         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
378         -melinux-stacksize=N.
379         * config/cris/cris.c: (cris_handle_option): New function.
380         (TARGET_DEFAULT_TARGET_FLAGS): Override.
381         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
382         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
383         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
384         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
385         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
386         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
387         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
388         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
389         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
390         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
391         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
392         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
393         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
394         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
395         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
396         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
397         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
398         (TARGET_LINUX): Define 0.
399         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
400         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
401         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
402         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
403         (TARGET_LINUX): Override to 1.
404         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
406 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
408         * haifa-sched.c (schedule_block): Fix thinko in previous
409         assertification patch.
411 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
413         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
414         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
415         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
416         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
417         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
418         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
419         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
420         for hpux11.[1-9]*.
421         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
422         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
423         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
424         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
425         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
426         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
427         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
428         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
429         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
430         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
431         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
432         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
433         (SUBTARGET_OPTIONS): Delete.
434         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
435         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
436         instead of a string.
437         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
438         (pa_cpu_string, pa_unix_string): Delete.
439         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
440         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
441         TARGET_HPUX_10_10.
442         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
443         (pa_handle_option): New function.
444         (override_options): Remove handling of -march=, -mfixed-range=,
445         -mschedule= and -munix=.
446         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
447         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
448         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
449         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
450         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
451         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
452         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
453         redefining.
454         * config/pa/pa.opt: New file.
455         * config/pa/pa-hpux.opt: New file.
456         * config/pa/pa-hpux1010.opt: New file.
457         * config/pa/pa-hpux1111.opt: New file.
458         * config/pa/pa64-hpux.opt: New file.
460 2005-04-22  David S. Miller  <davem@davemloft.net>
462         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
463         integer when it's mode is VOIDmode not DImode.
465 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
467         * config/rs6000/rs6000.md (sync_add<mode>_internal,
468         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
469         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
470         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
471         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
472         "bne- $-xxx" rather than local labels.
473         (sync_lock_release<mode>): Add second operand.
474         (lwsync): Use .long rather than a more meaningful opcode.
475         * doc/md.texi (Standard Names): Add description of second
476         parameter to sync_lock_test_and_set.
478 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
480         PR tree-optimization/21088
481         * fold-const.c (fold_unary, fold_binary, fold_ternary):
482         Export.
483         * tree-vrp.c (compare_values): Use fold_binary to compare
484         pointers.  Use boolean_type_node as the type of a comparison
485         expression being folded.
486         * tree.h: Add prototypes for fold_unary, fold_binary,
487         fold_ternary.
489         * tree-ssa-dom.c: Fix formatting.
491 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
493         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
494         * lambda-code.c (perfect_nestify): Mark virtual operands in
495         the moved statement for renaming.
496         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
497         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
498         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
499         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
500         * tree-flow.h (struct var_ann_d): Update comments.
501         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
502         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
503         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
504         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
505         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
506         debug_names_replaced_by): Remove declarations.
507         (delete_update_ssa, get_current_def, set_current_def): Declare.
508         (rewrite_into_loop_closed_ssa): Add new argument.  Update
509         all callers.
510         * tree-into-ssa.c: Include params.h.
511         (old_virtual_ssa_names): Remove.  Update all users.
512         (need_to_replace_names_p): Remove.  Update all users.
513         (struct update_ssa_stats_d): Declare.
514         (update_ssa_stats): New local.
515         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
516         dump_tree_ssa_stats, debug_tree_ssa_stats,
517         dump_update_ssa, debug_update_ssa,
518         dump_names_replaced_by, debug_names_replaced_by): Declare.
519         (get_current_def, set current_def): Make extern.
520         (is_old_name, is_new_name): Protect against references
521         past the end of the sets.
522         (add_new_name_mapping): Assert that OLD and NEW are
523         different SSA names for the same symbol.
524         When adding a virtual mapping, update stats for virtual
525         mapping heuristic.
526         (insert_phi_nodes_for): If UPDATE_P is true, create the
527         LHS of the new PHI by duplicating SSA name VAR.
528         (insert_phi_nodes_1): Remove.  Update all users.
529         (insert_phi_nodes): Remove second argument.  Update all
530         users.
531         (maybe_replace_use, maybe_replace_def): New.
532         (rewrite_update_stmt): Call them.
533         (mark_def_interesting): Remove calls to is_gimple_reg.
534         (prepare_phi_args_for_update): Remove.  Update all users.
535         (prepare_block_for_update): Only process virtual operands
536         and GIMPLE registers in normal form.
537         (prepare_use_sites_for): New.
538         (prepare_names_to_update): Rename from prepare_def_sites.
539         Call prepare_use_sites_for.
540         (dump_update_ssa): Rename from dump_repl_tbl.
541         Update all users.
542         Show statistics for virtual mapping heuristic.
543         (debug_update_ssa): Rename from debug_debug_repl_tbl.
544         (init_update_ssa): Initialize UPDATE_SSA_STATS.
545         (delete_update_ssa): Make extern.
546         (mark_set_for_renaming): If the set is empty, do nothing.
547         (release_ssa_name_after_update_ssa): Update comment.
548         (insert_updated_phi_nodes_for): Do not remove existing
549         PHI nodes for symbols.
550         (switch_virtuals_to_full_rewrite_p): New.
551         (switch_virtuals_to_full_rewrite): New.
552         (update_ssa): Call them.
553         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
554         for every statement before updating.
555         If all the names in NEW_SSA_NAMES have been marked for
556         removal, do nothing.
557         Only start at the top of the CFG if there are symbols in
558         SYMS_TO_RENAME.
559         (ssa_rewrite_finalize_block): Remove.
560         (ssa_register_new_def): Remove.
561         (ssa_rewrite_stmt): Remove.
562         (ssa_rewrite_phi_arguments): Remove.
563         (ssa_rewrite_initialize_block): Remove.
564         (ssa_mark_def_sites): Remove.
565         (ssa_mark_def_sites_initialize_block): Remove.
566         (ssa_mark_phi_uses): Remove.
567         (rewrite_ssa_into_ssa): Remove.
568         * tree-phinodes.c (find_phi_node_for): Remove.
569         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
570         Call update_ssa.
571         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
572         Remove calls to verify_dominators and
573         verify_loop_structure.
574         (tree_unswitch_single_loop): Call update_ssa.
575         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
576         returns false.
577         Call verify_stmts.
578         (delete_tree_ssa): Assert that need_ssa_update_p returns
579         false.
580         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
581         * tree-vectorizer.c (allocate_new_names, rename_def_op,
582         free_new_names): Remove.  Update all users.
583         (rename_use_op): Call get_current_def.
584         (rename_variables_in_bb): Do not handle any real or
585         virtual definition.
586         (slpeel_update_phis_for_duplicate_loop): Call
587         get_current_def and set_current_def instead of using
588         SSA_NAME_AUX.
589         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
590         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
591         ssa_names_to_replace and delete_update_ssa.
592         * doc/invoke.texi: Document --param min-virtual-mappings
593         and --param virtual-mappings-ratio.
595 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
597         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
598         for newly created PHI nodes.
599         Call create_new_def_for for every new V_MAY_DEF and
600         V_MUST_DEF on the copied statement.
601         (struct ssa_name_map_entry): Remove.
602         (ssa_name_map_entry_hash): Remove.
603         (ssa_name_map_entry_eq): Remove.
604         (allocate_ssa_names): Remove.
605         (rewrite_to_new_ssa_names_def): Remove.
606         (rewrite_to_new_ssa_names_use): Remove.
607         (rewrite_to_new_ssa_names_bb): Remove.
608         (rewrite_to_new_ssa_names): Remove.
609         (tree_duplicate_sese_region): Remove variables ver,
610         definitions, phi, ssa_name_map and bi.
611         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
612         Call update_ssa.
613         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
614         update_ssa instead of rewrite_ssa_into_ssa.
615         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
616         create_new_def_for.
617         (find_uses_to_rename_use): Add argument 'need_phis'.
618         (find_uses_to_rename_stmt): Do not scan virtual operands.
619         (find_uses_to_rename): Only scan PHI nodes for
620         non-virtual names.
621         (rewrite_into_loop_closed_ssa): Call update_ssa.
622         (check_loop_closed_ssa_use): Ignore virtual operands.
623         (check_loop_closed_ssa_stmt): Likewise.
624         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
625         NULL.
626         (rename_variables, set_phi_def_stmts): Remove.
627         (tree_duplicate_loop_to_header_edge): Reformat comment.
628         Remove variables BB, I and DEFINITIONS.
629         Call need_ssa_update_p.
630         Call update_ssa.
631         (lv_adjust_loop_header_phi): Reformat comment.
632         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
633         (marked_for_rewrite_p, any_marked_for_rewrite_p,
634         mark_for_rewrite, unmark_all_for_rewrite,
635         marked_ssa_names): Remove.  Update all users.
636         (release_ssa_name): If VAR has been registered for SSA
637         updating, do nothing.
638         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
639         (build_assert_expr_for): Call register_new_name_mapping.
640         (insert_range_assertions): Update call to update_ssa.
641         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
642         marked_for_rewrite_p, any_marked_for_rewrite_p,
643         marked_ssa_names): Remove.
645 2005-04-22  Jeff Law  <law@redhat.com>
647         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
648         (restore_currdefs_to_original_value): Likewise.
649         (register_definitions_for_stmt): Likewise.
650         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
651         for each variable.  Do not allocate/free block_defs_stack either.
652         Do not iterate if we just thread jumps.  Only iterate if the
653         tree_cleanup_cfg does useful work (temporary).
654         (dom_opt_initialize_block): No longer push a marker on
655         BLOCK_DEFS_STACK.
656         (dom_opt_finalize_block): Removal call to restore currdefs.
657         Relax restrictions for recording edge equivalences.
658         (record_equivalences_from_phis): No longer need to track
659         CURRENT_DEF.
660         (optimize_stmt): Similarly.
661         (thread_across_edge): Simplify by removing the requirement that
662         statements in the block we are threading through must be nops.
663         (initialize_hash_element): Handle GOTO_EXPR.
665 2005-04-22  David S. Miller  <davem@davemloft.net>
667         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
668         CONST_DOUBLE_HIGH.
669         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
670         fix check on CONST_DOUBLE mode.  It should be VOIDmode
671         when it is representing an integer.
673 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
675         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
676         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
677         * c-format.c (get_constant, decode_format_attr, get_flag_spec, 
678         find_char_info_specifier_index,
679         find_length_info_modifier_index): Likewise.
680         * c-typeck.c (composite_type, pop_init_level): Likewise.
681         * combine.c (cant_combine_insn_p, try_combine): Likewise.
682         * cse.c (cse_insn): Likewise
683         * dominance.c (calc_dfs_tree): Likewise
684         dwarf2out.c (loc_descriptor_from_tree_1,
685         add_abstract_origin_attribute, force_decl_die,
686         force_type_die): Likewise
687         emit-rtl.c (operand_subword_force): Likewise
688         explow.c (hard_function_value): Likewise
689         expmed.c (store_bit_field, expand_divmod,
690         emit_store_flag_force): Likewise
691         expr.c (emit_move_multi_word, store_expr,
692         expand_expr_real_1): Likewise
693         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
694         output_operand): Likewise
695         flow.c (recompute_reg_usage): Likewise
696         * function.c (assign_stack_temp_for_type, assign_temp, 
697         handle_epilogue_set): Likewise
698         * genextract.c (main): Likewise
699         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
700         gimplify_modify_expr_rhs, gimplify_expr): Likewise
701         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
702         ready_remove, rm_line_notes, rm_other_notes,
703         schedule_block): Likewise
704         mips-tfile.c (copy_object, out_of_bounds): Likewise
706 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
708         PR target/20813
709         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
710         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
711         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
712         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
713         TARGET_XL_COMPAT.
714         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
716 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
718         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
719         (gcc_tree_to_linear_expression): Convert to heap allocated
720         vectors.
721         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
722         lbv_to_gcc_expression, lle_to_gcc_expression,
723         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, 
724         perfect_nestify): Likewise.
725         lambda.h (gcc_loopnest_to_lambda_loopnest,
726         lambda_loopnest_to_gcc_loopnest): Likewise.
727         tree-loop-linear.c (linear_transform_loops): Likewise.
729 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
731         * config/sparc/predicates.md (arith_double_operand): Use
732         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
733         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
734         (DImode, DFmode constant splitters): Likewise.  Remove code for
735         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
736         (logical constant splitters): Use const_int_operand predicate.
737         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
738         HOST_BITS_PER_WIDE_INT < 64.
740 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
742         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
743         gcc_unreachable as appropriate.
744         (force_mode, emit_move_sequence, singlemove_string,
745         output_move_double, output_fp_move_double, find_addr_reg,
746         output_block_move, output_block_clear, output_and,
747         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
748         pa_adjust_cost, pa_issue_rate, print_operand,
749         output_global_address, output_arg_descriptor, output_cbranch,
750         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
751         output_call): Likewise.
752         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
753         prefetch, prefetch_cc, prefetch_nocc): Likewise.
755 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
757         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
758         _gcov_pow2_profiler and _gcov_one_value_profiler.
759         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
760         (GTFILES): Add $(srcdir)/tree-profile.c.
761         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
762         __gcov_one_value_profiler): Declare.
763         * gimplify.c (force_gimple_operand): Check whether the statements
764         should be produced in ssa form.
765         (force_gimple_operand_bsi): New function.
766         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
767         __gcov_one_value_profiler): New functions.
768         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
769         the profiled value is a power of two or not.
770         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
771         * tree-flow.h (in_ssa_p): Declare.
772         (force_gimple_operand_bsi): Declare.
773         * tree-into-ssa.c (in_ssa_p): New variable.
774         (rewrite_into_ssa): Set in_ssa_p.
775         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
776         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
777         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
778         tree_one_value_profiler_fn): New variables.
779         (tree_init_edge_profiler): Initialize the profiler function decls.
780         (tree_gen_edge_profiler): Use global gcov_type_node.
781         (prepare_instrumented_value): New function.
782         (tree_gen_interval_profiler, tree_gen_interval_profiler,
783         tree_gen_one_value_profiler): Call the library functions instead of
784         creating instrumentation code.
785         * tree.c (build_fn_decl): New function.
786         * tree.h (build_fn_decl): Declare.
787         * value-prof.c (rtl_divmod_values_to_profile,
788         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
789         tree_mod_pow2_value_transform, tree_find_values_to_profile):
790         Do not handle may_be_other and precise values of exponents at pow2
791         profiler.
792         (tree_mod_subtract_transform): Reflect that value field of
793         histogram has changed meaning.
794         (tree_divmod_values_to_profile): Record the values correctly.
795         (tree_values_to_profile): Update comment.
796         * value-prof.h (struct histogram_value_t): Remove pow2 data.
798 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
800         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
801         (decl).
803 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
805         * config/i386/i386.md (length_immediate): Use gcc_assert or
806         gcc_unreachable, as appropriate.
807         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
808         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
809         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
810         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
811         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
812         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
813         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
814         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
815         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
816         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
817         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
818         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
819         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
820         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
821         *prefetch_sse_rex): Likewise.
822         * config/i386/predicates.md (x86_64_immediate_operand,
823         x86_64_zext_immediate_operand, symbolic_operand,
824         no_seg_address_operand, aligned_operand,
825         memory_displacement_operand): Likewise.
826         * config/i386/sse.md (*mov<mode>_internal,
827         *movv2df_internal): Likewise.
829 2005-04-22  Jan Hubicka  <jh@suse.cz>
831         * Makefile.in (ipa.o, ipa-inline.o): New files.
832         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
833         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
834         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
835         * cgraphunit.c (cgraph_default_inline_p,
836         cgraph_decide_inlining_incrementally,  ncalls_inlined,
837         nfunctions_inlined, initial_insns, overall_insns, 
838         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
839         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
840         cgraph_mark_inline, cgraph_check_inline_limits,
841         cgraph_default_inline_p, cgraph_recursive_inlining_p,
842         update_callee_keys, lookup_recursive_calls,
843         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
844         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
845         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
846         pass_ipa_inline): Move to ipa-inline.c
847         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
848         * ipa.c: New file.
849         * ipa-inline.c: New file.
851 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
853         * doc/invoke.texi (SPARC options): Document that -mapp-regs
854         is turned off by default on Solaris.
856 2005-04-21  Roger Sayle  <roger@eyesopen.com>
858         * c-common.h (objc_build_method_signature): Update prototype.
859         * stub-objc.c (objc_build_method_signature): Update the stub
860         implementation to accept and ignore additional parameter.
861         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
862         the value of ellipsis to objc_build_method_signature instead
863         of setting TREE_OVERFLOW on the parms TREE_LIST node.
865 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
867         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
868         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
869         gen_rtx_* not gen_rtx_fmt_*.
870         (rs6000_emit_vector_select): Likewise.
871         (rs6000_emit_sync): New.
872         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
873         (larx, stcx, cmp): New mode substitutions.
874         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
875         UNSPEC_ISYNC): New constants.
876         (rlwinm): Give name.
877         (memory_barrier, isync, lwsync): New insns.
878         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
879         (sync_lock_release<mode>): New expander.
880         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
881         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
882         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
883         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
884         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
885         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
886         (sync_add<mode>_internal, sync_addshort_internal,
887         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
888         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
889         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
891         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
892         is the memory before, not after, the operation.  Clarify
893         barrier requirements.
895 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
897         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
898         * lambda.h (lambda_vector_min_nz): Likewise.
899         * langhooks.h (struct lang_hooks_for_types,
900         struct lang_hooks): Likewise.
901         * output.h (assemble_integer, this_is_asm_operands): Likewise.
902         * tree.h: Likewise.
903         * vec.h: Likewise.
904         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
905         
906         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
907         comments to avoid 'abort'.  Use gcc_assert as necessary.
908         * opts.c (common_handle_option): Likewise.
909         * pretty-print.c (pp_base_format_text): Likewise.
910         * print-rtl.c (print_rtx): Likewise.
911         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
912         * regmove.c (try_auto_increment): Likewise.
913         * reload.c (find_valid_class, find_reloads_toplev,
914         find_equiv_reg): Likewise.
915         * reload1.c (reload, forget_old_reloads_1, function_invariant_p, 
916         merge_assigned_reloads): Likewise.
917         * tree-inline.c (inline_forbidden_p_1,
918         estimate_num_insns_1): Likewise.
919         * tree-optimize.c (execute_todo): Likewise.
920         * tree-outof-ssa.c (eliminate_phi): Likewise.
921         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
922         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
923         * tree-ssa-operands.c (parse_ssa_operands,
924         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
925         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
926         * tree-ssanames.c (release_ssa_name): Likewise.
927         * tree.c (int_bit_position, int_byte_position, tree_low_cst, 
928         walk_tree): Likewise.
930         * tree-ssa-operands.c (verify_abort): Fold into ..
931         (verify_imm_links): ... here.
933 2005-04-21  Richard Henderson  <rth@redhat.com>
935         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
936         on non-memory operand for previous inversion.
938 2005-04-21  Devang Patel  <dpatel@apple.com>
940         PR optimization/20994
941         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
942         x = !(a == b) : p , q;.
943         (pass_if_conversion): Verify stmts and flow.
944         
945 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
947         * optabs.c (gen_conditional_trap): Restore #define.
949         * alias.c (true_dependence): Remove 'abort' from comments. Use
950         gcc_assert and gcc_unreachable as appropriate.
951         (canon_true_dependence): Likewise.
952         * bb-reorder.c (connect_traces): Likewise.
953         * c-common.c (c_add_case_label): Likewise.
954         * c-decl.c (finish_function): Likewise.
955         * caller-save.c (insert_restore, insert_save): Likewise.
956         * cfg.c (update_bb_profile_for_threading): Likewise.
957         * cfganal.c (flow_active_insn_p): Likewise.
958         * cfgexpand.c (add_reg_br_prob_note): Likewise.
959         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
960         cfg_layout_merge_blocks): Likewise.
961         * ifcvt.c (cond_exec_process_insns, merge_if_block,
962         find_if_block): Likewise.
963         * integrate.c (allocate_initial_values): Likewise.
964         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
965         swap_condition, unsigned_condition, signed_condition,
966         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
967         reg_or_subregno): Likewise.
968         * lambda-code.c (lambda_compute_auxillary_space,
969         lambda_transform_legal_p): Likewise.
970         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
971         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
972         lhd_incomplete_type_error, lhd_expand_expr,
973         lhd_types_compatible_p, lhd_tree_size): Likewise.
974         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
975         * local-alloc.c (update_equiv_regs): Likewise.
976         * loop-unroll.c (peel_loop_completely
977         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
978         peel_loop_simple, unroll_loop_stupid,
979         analyze_iv_to_split_insn): Likewise.
980         * loop.c (gen_prefetch, find_and_verify_loops,
981         basic_induction_var): Likewise.
982         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
983         * value-prof.c (tree_find_values_to_profile): Likewise.
984         * varasm.c (named_section, default_assemble_integer,
985         decode_addr_const): Likewise.
987 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
988            Fariborz Jahanian <fjahanian@apple.com>
990         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
991         portion of argument passed in fpr.
992         * expr.c (emit_push_insn): Fix computation of 'offset' used to
993         decide on partial argument save on stack.
995 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
997         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
998         comment typos.
1000 2005-04-21  Jan Hubicka  <jh@suse.cz>
1002         * cgraphunit.c: Include tree-pass.h
1003         (cgraph_decide_recursive_inlining,
1004         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
1005         cgraph_decide_inlining): Dump goes to dump_file.
1006         (cgraph_optimize): Call ipa passes instead of inliner.
1007         (cgraph_gate_inlining, pass_ipa_inline): New.
1008         * tree-optimize.c (all_ipa_passes): New static variable.
1009         (register_one_dump_file): Dead with IPA passes.
1010         (register_dump_files): Likewise.
1011         (init_tree_optimization_passes): Initialize IPA passes.
1012         (execute_todo): Do cgraph dump when asked to, do not dump function body
1013         for IPA pass.
1014         * tree-pass.h (TODO_dump_cgraph): New macro.
1015         (ipa_passes): Declare.
1016         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
1018 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1020         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
1021         gcc_assert instead of abort.
1022         (classify_argument, examine_argument, construct_container,
1023         contains_128bit_aligned_vector_p, ix86_check_movabs,
1024         standard_80387_constant_opcode, standard_80387_constant_rtx,
1025         ix86_initial_elimination_offset, ix86_compute_frame_layout,
1026         pro_epilogue_adjust_stack, ix86_expand_epilogue,
1027         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
1028         legitimize_tls_address, output_pic_addr_const,
1029         i386_output_dwarf_dtprel, put_condition_code, print_reg,
1030         get_some_local_dynamic_name, print_operand, print_operand_address,
1031         output_387_binary_op, emit_i387_cw_initialization,
1032         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
1033         ix86_expand_clear, ix86_expand_binary_operator,
1034         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
1035         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
1036         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
1037         ix86_expand_branch, ix86_expand_setcc,
1038         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
1039         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
1040         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
1041         memory_address_length, ix86_attr_length_immediate_default,
1042         ix86_attr_length_address_default, ix86_agi_dependant,
1043         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
1044         ix86_expand_binop_builtin, ix86_force_to_memory,
1045         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
1046         x86_emit_floatuns): Likewise.
1047         * config/i386/netware.c (gen_regparm_prefix,
1048         i386_nlm_strip_name_encoding): Likewise.
1049         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
1051 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1053         * optabs.c (gen_condiational_trap): Remove #define.
1054         (add_equal_note): Assertify. Remove explicit indirection from
1055         call via function pointer.
1056         (expand_ternary_op, expand_simple_binop, expand_binop,
1057         expand_twoval_unop, expand_twoval_binop,
1058         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
1059         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
1060         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
1061         prepare_float_lib_cmp, emit_conditional_move,
1062         emit_conditional_add, gen_add2_insn, gen_add3_insn,
1063         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
1064         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
1065         vector_compare_rtx, expand_vec_cond_expr): Likewise.
1067 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
1069         * vec.h: Update API to separate allocation mechanism from type.
1070         (VEC_safe_grow): New.
1071         * vec.c (calculate_allocation): New.
1072         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
1073         (vec_gc_free, vec_heap_free): Remove.
1074         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
1075         (VEC): Likewise.
1076         (mangle_macro_name): New.
1077         (struct macro_def): New.
1078         (struct macro): Add multiple argument values.
1079         (macro_expans_end): New.
1080         (push_macro_expansion):  Chain on new macro. Process multiple
1081         args, create follow on expansion. Return follow on argument.
1082         (macro_input): Deal with multiple arguments.
1083         
1084         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
1085         (struct tree_binfo): Adjust.
1086         * basic-block.h: Define VEC(edge,gc).
1087         (struct edge_def): Adjust.
1088         (struct basic_block_def, struct edge_iterator): Likewise.
1089         (ei_container, ei_start_1, ei_last_1): Likewise.
1090         * cfg.c (connect_src, connect_dest): Likewise.
1091         * cfgrtl.c (force_nonfallthru_and_redirect)
1092         * dbxout.c (dbxout_type)
1093         * dwarf2out.c (gen_member_die)
1094         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
1095         (gcc_tree_to_linear_expression): Adjust.
1096         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
1097         lbv_to_gcc_expression, lle_to_gcc_expression,
1098         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
1099         perfect_nestify): Likewise.
1100         * lambda.h (gcc_loopnest_to_lambda_loopnest,
1101         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
1102         * profile.c (instrument_values): Adjust.
1103         * tree-cfg.c (modified_noreturn_calls): Adjust.
1104         (remove_fallthru_edge): Likewise.
1105         * tree-dump.c (dequeue_and_dump): Adjust.
1106         * tree-flow-inline.h (mark_stmt_modified): Adjust.
1107         * tree-flow.h (modified_noreturn_calls): Adjust.
1108         (tree_on_heap): Remove. (yay!)
1109         (register_new_def): Adjust.
1110         * tree-into-ssa.c: Define VEC(int,heap).
1111         (block_defs_stack): Adjust.
1112         (find_idf, insert_phi_nodes, register_new_def,
1113         rewrite_initialize_block, rewrite_finalize_block,
1114         register_new_update_single, rewrite_update_init_block,
1115         rewrite_update_fini_block, rewrite_blocks,
1116         ssa_rewrite_finalize_block, ssa_register_new_def,
1117         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
1118         * tree-loop-linear.c (linear_transform_loops): Adjust.
1119         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
1120         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
1121         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
1122         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
1123         vrp_variables_stack): Adjust declarations.
1124         (tree_ssa_dominator_optimize): Adjust.
1125         (dom_opt_initialize_block, remove_local_expressions_from_table,
1126         restore_nonzero_vars_to_original_value,
1127         restore_vars_to_original_value,
1128         restore_currdefs_to_original_value, dom_opt_finalize_block,
1129         record_var_is_nonzero, record_cond, record_const_or_copy_1,
1130         optimize_stmt, update_rhs_and_lookup_avail_expr,
1131         lookup_avail_expr, record_range): Likewise.
1132         * tree-ssa-pre.c: Define VEC(basic_block,heap).
1133         (compute_antic_aux): Adjust.
1134         (inserted_exprs, create_expression_by_pieces, 
1135         insert_into_preds_of_block, eliminate, mark_operand_necessary, 
1136         remove_dead_inserted_code, fini_pre): Likewise.
1137         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
1138         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist. 
1139         ssa_prop_init): Likewise.
1140         * tree-ssa.c: Define VEC(bitmap,heap).
1141         (verify_name_tags): Adjust.
1142         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
1143         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
1144         tree_divmod_values_to_profile, tree_find_values_to_profile,
1145         value_profile_transformations): Likewise.
1146         * value-prof.h: Define VEC(histogram_value,heap).
1147         * varasm.c: Remove alias_pair pointer typedef, define
1148         VEC(alias_pair,gc).
1149         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
1150         
1151         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
1152         not a pointer to it.  Create an object vector.
1153         (extern_symbols): Turn into an object vector.
1154         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
1156 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
1158         PR/20742
1159         * Makefile.in (tree-chrec.o): Depend on params.h.
1160         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
1161         default value 20.
1162         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
1163         and fold build with fold_buildN.
1164         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
1165         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1166         (tree_contains_chrecs): Compute an estimation of the size of the
1167         given expression.
1168         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
1169         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
1170         * tree-scalar-evolution.c (simple_iv): Ditto.
1171         * doc/invoke.texi (scev-max-expr-size): Documented.
1173 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
1175         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
1176         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
1177         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
1178         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
1179         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1180         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
1181         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
1182         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
1183         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
1184         (darwin_fix_and_continue_switch): Delete.
1185         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
1186         (SUBTARGET_SWITCHES): Delete.
1187         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
1188         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
1189         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
1190         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
1191         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
1192         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
1193         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
1194         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
1195         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
1196         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
1197         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
1198         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
1199         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
1200         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
1201         (TARGET_64BIT): Undef before redefining.
1202         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
1203         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
1204         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
1205         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
1206         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
1207         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
1208         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
1209         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1210         (ix86_debug_arg_string, ix86_debug_addr_string)
1211         (ix86_align_loops_string, ix86_align_jumps_string)
1212         (ix86_align_funcs_string): Delete.
1213         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
1214         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
1215         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
1216         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
1217         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
1218         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
1219         (SUBTARGET_SWITCHES): Delete.
1220         * config/i386/i386.c (ix86_debug_arg_string): Delete.
1221         (ix86_debug_addr_string): Delete.
1222         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
1223         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
1224         (ix86_align_loops_string, ix86_align_jumps_string)
1225         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
1226         (ix86_align_funcs_string): Make static.
1227         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1228         (ix86_handle_option): New function.
1229         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
1230         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
1231         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
1232         of darwin_fix_and_continue_switch.
1233         (darwin_one_byte_bool): Delete.
1234         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
1235         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
1236         to darwin_one_byte_bool.
1237         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
1238         * config/i386/djgpp.opt, config/i386/i386.opt,
1239         * config/i386/sco5.opt: New files.
1241 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1243         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
1244         fp_zero_operand, fp_register_operand, intreg_operand,
1245         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
1246         call_operand, call_operand_address, tgd_symbolic_operand,
1247         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
1248         symbolic_operand, symbolic_memory_operand, label_ref_operand,
1249         sp64_medium_pic_operand, data_segment_operand,
1250         text_segment_operand, splittable_symbolic_memory_operand,
1251         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
1252         eq_or_neq, normal_comp_operator, noov_compare_op,
1253         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
1254         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
1255         const64_operand, const64_high_operand, arith11_operand,
1256         arith10_operand, arith_double_operand, arith_double_4096_operand,
1257         arith_double_add_operand, arith11_double_operand,
1258         arith10_double_operand, small_int, small_int_or_double,
1259         uns_small_int, uns_arith_operand, clobbered_register,
1260         input_operand, compare_operand): Delete.
1261         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
1262         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
1263         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
1264         (GEN_HIGHINT64, GEN_INT64): Delete.
1265         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
1266         gen_safe_XOR64): Adjust for above deletion.
1267         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
1268         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
1269         (legitimate_constant_p): Use const_zero_operand instead.
1270         (sparc_extra_constraint_check): Likewise.
1271         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
1272         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
1273         (PREDICATE_CODES): Delete.
1274         * config/sparc/sparc.md: Include predicates.md.
1275         (All patterns): Adjust for new predicate names.
1276         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
1277         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
1278         (movdi): Use general_operand predicate.
1279         (movdi_sp64_dbl): Delete.
1280         (movdi_const64_special): Add 'N' constraint.
1281         (movdicc): Use arith10_operand predicate.
1282         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
1283         (movdi_cc_reg_sp64): Use arith10_operand predicate.
1284         (movdi_cc_reg_sp64_trunc): Delete.
1285         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
1286         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
1287         (subdi3_sp32): Delete.
1288         (subdi3_insn_sp32): Change to define_insn_and_split.
1289         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
1290         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
1291         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
1292         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
1293         small_int_operand predicate.
1294         (divdi3, udivdi3): Use arith_operand predicate.
1295         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
1296         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
1297         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
1298         (xordi3_sp64_dbl): Delete.
1299         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
1300         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
1301         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
1302         cmp_ccx_set_not): Use arith_operand predicate.
1303         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
1304         * config/sparc/predicates.md: New file.
1306 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
1308         PR tree-optimization/14846
1309         * fold-const.c (fold_single_bit_test_into_sign_test): New,
1310         split out from ...
1311         (fold_single_bit_test): ... here.
1312         (fold_binary): Call fold_single_bit_test_into_sign_test
1313         instead of fold_single_bit_test.
1315 2005-04-20  James E Wilson  <wilson@specifixinc.com>
1317         PR c++/20805
1318         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
1319         is another declaration.
1321 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
1323         * config/cris/predicates.md: New file.
1324         * config/cris/cris-protos.h (cris_store_multiple_op_p)
1325         (cris_movem_load_rest_p): Declare.
1326         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
1327         (cris_movem_load_rest_p): Ditto.  Globalize.
1328         (cris_bdap_operand, cris_bdap_biap_operand,
1329         cris_orthogonal_operator, cris_commutative_orth_op,
1330         cris_operand_extend_operator,
1331         cris_additive_operand_extend_operator, cris_extend_operator,
1332         cris_plus_or_bound_operator, cris_mem_op,
1333         cris_general_operand_or_symbol,
1334         cris_general_operand_or_gotless_symbol,
1335         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
1336         cris_load_multiple_op): Remove predicate functions.
1337         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
1338         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
1339         * config/cris/cris.h (PREDICATE_CODES): Don't define.
1340         * config/cris/cris.md: Include predicates.md.
1341         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
1343 2005-04-20  Ian Lance Taylor  <ian@airs.com>
1345         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
1346         * c-common.h (STMT_EXPR_STMT): Don't define.
1347         (STMT_EXPR_NO_SCOPE): Don't define.
1348         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
1349         * c-pretty-print.c (pp_c_primary_expression): Likewise.
1350         (pp_c_expression): Likewise.
1352 2005-04-20  Richard Henderson  <rth@redhat.com>
1354         PR target/21100
1355         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
1357 2005-04-20  Jeff Law  <law@redhat.com>
1359         * reload1.c (reload): Ignore equivalences between pseudos and
1360         read only memory.
1362 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
1364         PR c/12913
1365         * c-tree.h (struct c_label_list): Update comment.
1366         (struct c_label_context): Rename to struct c_label_context_se.
1367         (label_context_stack): Rename to label_context_stack_se.
1368         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
1369         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
1370         c_end_vm_scope): New.
1371         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
1372         * c-decl.c (pop_scope): Call c_end_vm_scope.
1373         (pushdecl): Call c_begin_vm_scope for variably modified
1374         declarations.
1375         (define_label): Check for jumping into scope of identifier with
1376         variably modified type.  Push label on stack for those defined at
1377         current context of identifiers with variably modified type.
1378         (start_function): Create stack level for context of identifiers
1379         with variably modified type.
1380         (finish_function): Pop stack level for context of identifiers with
1381         variably modified type.
1382         * c-typeck.c (label_context_stack): Rename to
1383         label_context_stack_se.
1384         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
1385         (c_finish_goto_label): Check for jumping into scope of identifier
1386         with variably modified type.  Push label on stack for those jumped
1387         to from current context of identifiers with variably modified
1388         type.
1389         (struct c_switch): Add blocked_vm.
1390         (c_start_case): Initialize blocked_vm.
1391         (do_case): Check blocked_vm.
1392         (c_finish_case): Add comment.
1393         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
1394         variable label_context_stack.
1396 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1398         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
1399         conditional_replacement, value_replacement, abs_replacement,
1400         minmax_replacement.
1401         (replace_phi_edge_with_variable): Remove argument BB.
1402         (conditional_replacement, value_replacement,
1403         minmax_replacement, abs_replacement): Remove argument PHI_BB.
1404         Update a call to replace_phi_edge_with_variable.
1406         * tree-ssa-phiopt.c: Fix comments.
1408 2005-04-20  Michael Matz  <matz@suse.de>
1410         PR20973
1411         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
1412         pseudos.
1414 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1416         * tree-ssa-phiopt.c: Fix comment typos.
1418         PR tree-optimization/21116
1419         * tree-ssa-phiopt.c: Fix a typo.
1421 2005-04-19  Richard Henderson  <rth@redhat.com>
1423         * builtins.c (expand_builtin_sync_operation): Revert last change.
1424         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
1425         not vs new value.
1426         (expand_compare_and_swap_loop): Likewise.
1427         (expand_sync_operation): Remove fallback from NAND to AND; invert
1428         memory operand when expanding from cmpxchg.
1429         (expand_sync_fetch_operation): Likewise.
1430         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
1431         compare-and-swap.
1433         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
1434         when implementing NAND.  Fix double-add for AFTER.
1435         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
1436         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
1437         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
1438         memory value.
1439         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
1440         memory barrier.
1442         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
1443         to return old memory value.
1444         (sync_compare_and_swap_cc<IMODE>): Likewise.
1446         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
1447         return pre-reload.  Don't consider output or anti dependencies.
1448         * config/ia64/sync.md (IMODE): New.
1449         (modesuffix): Add QI and HI.
1450         (memory_barrier): Simplify expansion.
1451         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
1452         (cmpxchg_acq_<IMODE>): Likewise.
1453         (sync_lock_test_and_set<IMODE>): Likewise.
1454         (sync_lock_release<IMODE>): Likewise.
1456 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1458         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
1459         ~X or ~Y simplify.
1461 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
1463         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
1465 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
1466             Joseph S. Myers  <joseph@codesourcery.com>
1468         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
1469         * c-typeck.c (build_c_cast): Check these options.
1470         * doc/invoke.texi: Document these options.
1472 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
1474         * tree-ssa-phiopt.c: Update a comment about the pass.
1476 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1478         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
1479         config/mcore/mcore.c: Fix comment typos.
1481 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
1483         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
1484         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
1486 2005-04-19  Paul Brook  <paul@codesourcery.com>
1488         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs. 
1490 2005-04-19  Andrew Haley  <aph@redhat.com>
1492         PR java/21022
1493         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
1494         looking at a field's bitpos.
1496 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1498         * system.h (fopen, fdopen, freopen): Define these to the unlocked
1499         libiberty functions.
1501 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
1503         PR tree-optimization/21096
1504         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
1506 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
1508         PR target/21098
1509         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
1510         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
1512 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
1514         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
1515         refers to the function being dumped.
1517 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
1519         * varasm.c (assemble_start_function): Remove reset of in_section.
1521 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1523         PR tree-optimization/21085
1524         * fold-const (fold_binary): Don't change X % -C to X % C if C has
1525         overflowed.
1527 2005-04-19  Ben Elliston  <bje@au.ibm.com>
1529         * doc/invoke.texi (Optimize Options): Refer to the correct
1530         optimisation flag -ftree-dominator-opts, not -ftree-dom.
1532 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
1534         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
1535         alloca argument to be big enough.
1537 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
1539         PR middle-end/21049
1540         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
1541         cfun->cfg are NULL.
1543 2005-04-18  Tom Tromey  <tromey@redhat.com>
1545         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
1546         typo.
1548 2005-04-18  Richard Henderson  <rth@redhat.com>
1550         * config/alpha/alpha.c (alpha_split_atomic_op): New.
1551         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
1552         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
1553         * config/alpha/alpha-protos.h: Update.
1554         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
1555         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
1556         (attr type): Add ld_l, st_c, mb.
1557         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
1558         iornotsi3, xorsi_internal, xornotsi3): New.
1559         * config/alpha/ev4.md (ev4_ld): Add ld_l.
1560         (ev4_ist_c, ev4_mb): New.
1561         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
1562         (ev5_ld_l): New.
1563         * config/alpha/ev6.md (ev6_ild): Add ld_l.
1564         (ev6_ist): Add st_c.
1565         (ev6_mb): New.
1566         * config/alpha/sync.md: New file.
1568 2005-04-18  Richard Henderson  <rth@redhat.com>
1570         * builtins.c (expand_builtin_sync_operation): Fold nand to and
1571         for constants.
1573         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
1575 2005-04-18  Devang Patel  <dpatel@apple.com>
1577         * config/rs6000/atlivec.md (mulv4si3): New pattern.
1578         
1579 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1581         PR tree-optimization/20922
1582         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
1583         Fold X + c >= X and fold X - c <= X to true.
1585 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
1587         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
1588         unsigned int.
1589         (emergency_labeled_state_free): Likewise.
1591 2005-04-18  Nick Clifton  <nickc@redhat.com>
1593         * config/h8300/h8300.md (jump): Remove prescan parameter from
1594         calls to final_scan_insn.
1596         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
1597         parameter from calls to final_scan_insn.
1599         * config.gcc (m68hc12): Use the m68hc11.opt file for target
1600         specific options.
1601         (v850e, v850e1): Use the v850.opt file for target specific
1602         options.
1604 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
1606         PR tree-optimization/21001
1607         * tree-optimize.c (init_tree_optimization_passes): Move the
1608         first pass_forwprop immediately before pass_vrp.
1610 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1612         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
1613         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
1614         from enum tree_code op to bool is_sizeof.
1615         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
1616         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1617         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
1618         case.
1619         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
1620         cases.
1621         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
1622         ALIGNOF_EXPR cases.
1624 2005-04-17  Ian Lance Taylor  <ian@airs.com>
1626         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
1628 2005-04-17  Richard Henderson  <rth@redhat.com>
1630         * config/alpha/alpha.c (va_list_skip_additions): Only define if
1631         TARGET_ABI_OSF.
1632         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
1633         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
1634         of indirection through ssa names while looking for the gpr counter
1635         field.
1636         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
1637         saved va_list_gpr_size and va_list_fpr_size.
1639 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1641         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
1642         both pointers or both integers.
1644         * tree-vrp.c (maybe_add_assert_expr): Don't assert
1645         ASSERT_EXPRs for single-use variable.
1647         * tree-into-ssa.c: Fix a comment typo.
1649 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
1651         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
1652         -mipsN before forcing a default of -mips2.
1654 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1656         * predict.h (IS_TAKEN): Remove.
1657         * rtl.h (NOTE_PREDICTION): Likewise.
1659         * modulo-sched.c (CFG_HOOKS): Remove.
1661         * c-parser.c (N_C_TTYPES): Remove.
1663         * tree-flow-inline.h (get_stmt_operands): Remove.
1664         * lambda-code.c, tree-ssa-loop-unswitch.c,
1665         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
1666         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
1667         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
1668         calls to get_stmt_operands.
1669         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
1671 2005-04-17  Richard Henderson  <rth@redhat.com>
1673         PR target/20375
1674         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
1675         of CUMULATIVE_ARGS past the last named argument.
1676         (alpha_va_start): Expect pretend_args_size only if strictly less than
1677         6 named arguments.
1679 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
1681         PR middle-end/21024
1682         * builtins.c (expand_builtin_strcat): Convert the result of
1683         strlen to the right type.
1684         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
1685         avoid creating type mismatches.
1686         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
1687         type mismatches.
1689         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
1691 2005-04-16  Richard Henderson  <rth@redhat.com>
1693         PR target/21051
1694         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
1695         Use the mode of boolean_type_node when the user doesn't provide one.
1696         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
1698 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
1700         PR target/20126
1701         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
1702         (const)).
1704         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
1705         comment.
1707 2005-04-16  Roger Sayle  <roger@eyesopen.com>
1708             Steven Bosscher  <stevenb@suse.de>
1710         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
1711         (fold_unary_to_constant): Likewise.
1713 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
1715         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
1716         PROP_ASM_SCAN.
1718 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
1720         * doc/install.texi (Specific): Avoid using asterisks in @anchor
1721         names related to target triplets.
1722         Remove i?86-*-esix from platform directory.
1723         Remove powerpc-*-eabiaix from platform directory.
1725 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
1727         PR middle-end/20491
1728         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
1729         falling through from SUBREG case to REG.
1731 2005-04-15  Roger Sayle  <roger@eyesopen.com>
1733         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
1734         (fold_binary): Update comment mentioning fold_relational_hi_lo.
1735         (fold_binary_to_constant): Simplify using fold_binary.
1736         (fold_unary_to_constant): Likewise, simplify using fold_unary.
1738 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1740         * gthr-posix.c (pthread_cancel): Define.
1741         (pthread_mutexattr_init): Likewise.
1742         (pthread_mutexattr_settype): Likewise.
1743         (pthread_mutexattr_destroy): Likewise.
1745 2005-04-15  David S. Miller  <davem@davemloft.net>
1747         PR target/20673
1748         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
1750 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1752         PR tree-optimization/21031
1753         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
1754         (forward_propagate_into_cond_1): Call it.  Forward propagate
1755         integer-integer casts into COND_EXPRs.
1757 2005-04-15  Dave Korn  <dave.korn@artimi.com>
1759         * gcc.c (default_compilers): Clarify obscure error message when
1760         reading from standard input.
1762 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1764         * basic-block.h (PROP_EQUAL_NOTES): Remove.
1765         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
1767         * tree-ssa-alias.c (init_alias_info): Remove a call to
1768         get_stmt_operands.
1770 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
1772         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
1773         of non-virtual PHI nodes like we use to.
1775 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
1777         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
1778         (attr_copy_rtx): Do not use it.
1780 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
1782         * doc/tree-ssa.texi: Grammer/abbreviation updates.
1784 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
1786         * tree-vect-transform.c (vectorizable_store): Mark necessary
1787         objects in the vectorized store needing renaming.  Update the
1788         SSA graph for V_MAY_DEF operands in the original store.
1790 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
1792         * tree-ssa-pre.c (compute_avail): It's okay to have
1793         TREE_INVARIANT's here, and value number the resulting expressions.
1794         (create_expression_by_pieces): Make sure operands that were
1795         min_invariant when we started, stay that way.
1797 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
1799         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
1801 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1803         PR tree-optimization/20936.
1804         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
1806 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1808         * doc/invoke.texi: Fix typos.
1809         * doc/md.texi: Likewise.
1810         * doc/rtl.texi: Likewise.
1811         * doc/sourcebuild.texi: Likewise.
1812         * doc/tm.texi: Likewise.
1814 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
1816         PR tree-optimization/21004
1817         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
1818         and floorl in c99 mode only.
1819         * builtins.c (expand_builtin_int_roundingfn): Assert that
1820         fallback_fndecl is not NULL_TREE.
1822 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
1824         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
1825         * basic-block.h: Update the prototype for
1826         purge_all_dead_edges.
1827         * cfgexpand.c (tree_expand_cfg): Update a call to
1828         purge_all_dead_edges.
1829         * combine.c (combine_instructions): Likewise.
1830         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
1831         rest_of_handle_cse2, rest_of_handle_gcse,
1832         rest_of_handle_postreload): likewise.
1834 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
1836         PR middle-end/20739
1837         * gimplify.c (gimplify_addr_expr): Compensate for removal of
1838         e.g. cv-qualification conversions.
1840 2005-04-14  Mike Stump  <mrs@apple.com>
1842         * config/darwin-c.c (framework_construct_pathname): We must
1843         find all headers of a framework in the first instance of it
1844         found in the seach path.
1846 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
1848         PR tree-optimization/21021
1849         * tree-vrp.c (compare_values): Work around a bug in the front
1850         end that produces a comparison of mismatched types.
1852 2004-04-14  Richard Henderson  <rth@redhat.com>
1854         * config/ia64/ia64.h (enum fetchop_code): Remove.
1855         (enum ia64_builtins): Move ...
1856         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
1857         members except BSP and FLUSHRS.
1858         (ia64_init_builtins): Remove __sync builtins.
1859         (ia64_expand_builtin): Likewise.
1860         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
1861         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
1862         (ia64_expand_lock_release): Remove.
1863         * config/ia64/ia64.md (mf): Move to sync.md.
1864         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
1865         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
1866         * config/ia64/sync.md: New file.
1867         (memory_barrier): Rename from mf.
1868         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
1869         (cmpxchg_acq_<I48MODE>): Likewise.
1870         (sync_lock_test_and_set<I48MODE>): Likewise.
1872         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
1873         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
1875 2004-04-14  Richard Henderson  <rth@redhat.com>
1877         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
1878         (ix86_compare_emitted): New.
1879         (ix86_expand_compare): Use ix86_compare_emitted if set.
1880         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
1881         and ix86_compare_op0 are set.
1882         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
1883         (TARGET_CMPXCHG, TARGET_XADD): New.
1884         (ix86_compare_emitted): Declare.
1885         * config/i386/i386.md: Include sync.md
1886         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
1887         (UNSPECV_XCHG, UNSPECV_LOCK): New.
1888         * config/i386/sync.md: New file.
1890 2004-04-14  Richard Henderson  <rth@redhat.com>
1892         PR middle-end/14311
1893         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
1894         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
1895         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
1896         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
1897         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
1898         BT_FN_I8_VPTR_I8_I8): New.
1899         * builtins.def (DEF_SYNC_BUILTIN): New.
1900         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
1901         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
1902         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
1903         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
1904         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
1905         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
1906         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
1907         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
1908         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
1909         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
1910         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
1911         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
1912         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
1913         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
1914         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
1915         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
1916         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
1917         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
1918         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
1919         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
1920         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
1921         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
1922         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
1923         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
1924         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
1925         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
1926         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
1927         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
1928         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
1929         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
1930         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
1931         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
1932         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
1933         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
1934         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
1935         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
1936         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
1937         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
1938         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
1939         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
1940         BUILT_IN_SYNCHRONIZE: New.
1941         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
1942         as a function.  Accept __sync_ as a prefix as well.
1943         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
1944         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
1945         expand_builtin_lock_release): New.
1946         (expand_builtin): Call them.
1947         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
1948         neither BOTH_P nor FALLBACK_P are defined.
1949         (builtin_type_for_size): New.
1950         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
1951         (resolve_overloaded_builtin): New.
1952         * c-common.h (resolve_overloaded_builtin): Declare.
1953         (builtin_type_for_size): Declare.
1954         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
1955         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
1956         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
1957         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
1958         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
1959         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
1960         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
1961         sync_compare_and_swap_cc, sync_lock_test_and_set,
1962         sync_lock_release): New.
1963         * optabs.h: Declare them.
1964         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
1965         expand_sync_operation, expand_sync_fetch_operation,
1966         expand_sync_lock_test_and_set): Declare.
1967         * genopinit.c (optabs): Add sync optabs.
1968         * optabs.c (init_optabs): Initialize sync optabs.
1969         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
1970         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
1971         expand_sync_operation, expand_sync_fetch_operation,
1972         expand_sync_lock_test_and_set): New.
1973         * doc/extend.texi (Atomic Builtins): New section
1974         * doc/md.texi (Standard Names): Add sync patterns.
1976 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
1978         * tree-eh.c (lower_try_finally_copy): Generate new code in
1979         response to goto_queue entries as if the queue was sorted by
1980         index, not pointers.
1981         (lower_try_finally_switch): Likewise.
1983 2005-04-14  Richard Henderson  <rth@redhat.com>
1985         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
1986         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
1987         register.
1988         (ix86_expand_fp_movcc): Update to match.
1989         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
1990         * config/i386/i386-protos.h: Update.
1991         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
1992         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
1994 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
1996         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
1997         refer to 4.0.
1999 2005-04-14  Julian Brown  <julian@codesourcery.com>
2001         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
2002         link failures on ppc64 Linux.
2004 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2006         * config.gcc: Set cpu_type for s390.
2008 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
2010         Fix PR tree-optimization/20963
2011         * tree-ssa-pre.c (compute_avail): Remove special case for
2012         TREE_INVARIANT.
2013         (create_expression_by_pieces): Add value numbers for forced out
2014         statements.
2016 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
2018         * config/cris/cris.md: Replace references to (reg:SI 16) with
2019         (reg:SI CRIS_SRP_REGNUM).
2021 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
2023         PR tree-optimization/20657
2024         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
2025         create an appropriate range from it.
2027 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
2029         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
2030         <UNSPEC_FIST_CEIL> case.
2032         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
2033         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
2034         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
2035         to implement lfloor and llfloor built-ins as x87 intrinsic function.
2036         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
2037         (lfloor<mode>2): New expanders.
2038         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
2039         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
2040         to implement lceil and llceil built-ins as x87 intrinsic function.
2041         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
2042         (lceil<mode>2): New expanders.
2044 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
2046         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
2047         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
2049 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
2051         PR target/20927
2052         * config/s390/s390-modes.def: Define TFmode.
2054 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
2056         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
2057         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2058         * config/mips/mips.c (mips16_insn_length): Remove reference to
2059         JUMP_TABLES_IN_TEXT_SECTION.
2061 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
2063         * simplify-rtx.c (simplify_binary_operation_1): Return
2064         scalar or vector of constant 0, depending on the xor's
2065         mode.
2067 2005-04-13  Dale Johannesen  <dalej@apple.com>
2069         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
2070         (objc-act.o):  Ditto.
2071         * objc/objc-act.c (objc_gimplify_expr):  New.
2072         (objc_get_callee_fndecl):  New.
2073         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
2074         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
2075         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
2077 2005-04-13  Devang Patel  <dpatel@apple.com>
2079         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
2080         temp variables.
2082 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
2084         CRIS prologue as RTL.
2085         * config/cris/cris-protos.h (cris_emit_movem_store)
2086         (cris_expand_prologue): Prototype.
2087         * config/cris/cris.c (struct machine_function): New member
2088         stdarg_regs.
2089         (cfa_label_num, cris_target_asm_function_prologue): Remove.
2090         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
2091         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
2092         (cris_load_multiple_op, cris_return_address_on_stack)
2093         (cris_return_address_on_stack_for_return): ISO-Cify.
2094         (cris_store_multiple_op): New predicate function.
2095         (cris_expand_prologue, cris_emit_movem_store): New functions.
2096         (cris_print_operand) <case 'O'>: Handle modifications other than
2097         post-increment.
2098         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
2099         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
2100         (cris_gen_movem_load): Rearrange slightly to make local variable
2101         src a parameter, removing osrc.
2102         (cris_setup_incoming_varargs): Set machine_function member
2103         stdarg_regs to correspond to the number of registers that need to
2104         be saved.
2105         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
2106         CRIS_UNSPEC_GOT.
2107         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
2108         cris_general_operand_or_gotless_symbol accept UNSPEC.
2109         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
2110         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
2111         ("*cris_store_multiple"): New pattern.  Tweak common comment above
2112         this and "*cris_load_multiple".
2113         ("prologue"): New define_expand.
2115         * config/cris/cris.md ("epilogue"): Conditionalize on
2116         TARGET_PROLOGUE_EPILOGUE.
2118 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
2120         PR target/20924
2121         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
2122         fpsr 0 instead of fpsr 1.
2123         (divsf3_internal_thr): Ditto.
2124         (divdf3_internal_lat): Ditto.
2125         (divdf3_internal_thr): Ditto.
2126         (divxf3_internal_lat): Ditto.
2127         (divxf3_internal_thr): Ditto.
2129 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2131         PR tree-optimization/20913
2132         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
2134         PR tree-optimization/20702
2135         * tree-vrp.c (maybe_add_assert_expr): Recurse into
2136         dominator children that haven't been walked into.
2138 2005-04-13  Julian Brown  <julian@codesourcery.com>
2140         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
2141         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
2142         is true.
2144 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2146         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
2147         config/i386/sse.md: Fix comment typos.
2149         * genattrtab.c (NULL_ATTR): Remove.
2150         * ifcvt.c (NULL_EDGE): Likewise.
2152         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
2154         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
2155         NOTE_PREDICT): Remove.
2157 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2159         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
2160         * configure: Regenerate.
2161         * config.in: Likewise.
2162         * system.h: Declare vsnprintf if not already declared.
2164 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2166         * optc-gen.awk: Handle stand-alone Mask records.
2167         * opth-gen.awk: Likewise.
2168         * doc/options.texi (Option file format): Document them.
2169         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
2170         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
2171         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
2172         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
2173         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
2174         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
2175         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
2176         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
2177         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
2178         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
2179         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
2180         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
2181         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
2182         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
2183         TARGET_LONG_DOUBLE_128): Likewise.
2184         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
2185         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
2186         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
2187         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
2188         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
2189         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
2190         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
2191         * config/sparc/sparc.c (fpu_option_set): New global.
2192         (sparc_handle_option): New function.
2193         (sparc_override_options): Test fpu_option_set.
2194         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
2195         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
2196         * config/sparc/sparc.opt: New file.
2197         * config/sparc/little-endian.opt: Likewise.
2198         * config/sparc/long-double-switch.opt: Likewise.
2200 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2202         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
2203         (bfin_handle_options): Set it if -mshared-library-id= is seen.
2204         * config/bfin/bfin.opt (mshared-library-id=): Lose
2205         Var(bfin_lib_id_given).
2207 2005-04-13  Matt Thomas  <matt@3am-software.com>
2209         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
2210         defining.
2212 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
2214         * rtl.h (CLEAR_RTX_FLAGS): Remove.
2216         * cgraphunit.c (INSNS_PER_CALL): Remove.
2218         * tree-ssa-forwprop.c (vars,
2219         record_single_argument_cond_exprs,
2220         substitute_single_use_vars): Remove.
2221         (forward_propagate_into_cond_1, forward_propagate_into_cond):
2222         New.
2223         (tree_ssa_forward_propagate_single_use_vars): Call
2224         forward_propagate_into_cond for each COND_EXPR.
2226         * tree-inline.c (INSNS_PER_STMT): Remove.
2228 2005-04-12  Richard Henderson  <rth@redhat.com>
2230         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
2231         (ix86_expand_sse_fp_minmax): ... from ...
2232         (ix86_expand_fp_movcc): ... here.
2233         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
2234         * config/i386/i386-protos.h: Update.
2235         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
2236         (sse_setccsf, sse_setccdf): Allow before reload.
2237         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
2238         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
2239         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
2240         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
2241         (anddf3, nanddf3, iordf3, xordf3): New.
2243 2005-04-12  Jeff Law  <law@redhat.com>
2245         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
2246         (tree-ssa-uncprop.o): Add dependencies.
2247         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
2248         * tree-flow.h (remove_useless_stmts): Remove prototype.
2249         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
2250         remove_useless_stmts.
2251         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
2252         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
2253         * tree-pass.h (pass_uncprop): Declare.
2254         * tree-ssa-uncprop.c: New file.
2256 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
2258         PR target/20670
2259         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
2261 2005-04-12  Caroline Tice  <ctice@apple.com>
2263         Temporary fix for partitioning problems.
2264         * passes.c (rest_of_handle_final): Remove code that
2265         frees unlikely_text_section_name,
2266         * varasm.c (assemble_start_function): Test for partitioning
2267         flag before writing out section labels.
2268         (assemble_end_function): Test for partitioning flag before
2269         writing out section labels.
2271 2005-04-12  Steven Bosscher  <stevenb@suse.de>
2272             Stuart Hastings <stuart@apple.com>
2273             Jan Hubicka  <jh@suse.cz>
2275         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
2276         references to gt-tree-cfg.h.
2277         * basic-block.h (struct basic_block_def): Don't skip rbi
2278         for garbage collection.
2279         (struct reorder_block_def): Make GTY-able.
2280         (struct control_flow_graph): New structure.
2281         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
2282         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
2283         but instead defines to the control_flow_graph for cfun.
2284         (label_to_block_map): New define, points to the label map of
2285         the control_flow_graph for cfun.
2286         (n_edges_for_function, n_basic_blocks_for_function,
2287         last_basic_block_for_function, basic_block_info_for_function,
2288         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
2289         basic_block_info_for_function, label_to_block_map_for_function):
2290         Counterparts for the above, taking a struct function as an extra
2291         argument.
2292         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
2293         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
2294         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
2295         (alloc_rbi_pool, free_rbi_pool): Remove.
2296         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
2297         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
2298         here...
2299         (cfg_layout_finalize) ... and don't free it here.
2300         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
2301         garbage collected.
2302         * flow.c (free_basic_block_vars): Set label_to_block_map and
2303         n_edges to zero too.
2304         * function.h (struct function): Add cfg field.
2305         * function.c (allocate_struct_function): Allocate the cfg.
2306         * tree-cfg.c (label_to_block_map): Remove.
2307         (build_tree_cfg): Don't allocate the rbi pool here...
2308         (delete_tree_cfg_annotations): ...and don't free it here.
2309         Also don't nullify label_to_block_map for cfun.
2311 2005-04-12  Caroline Tice  <ctice@apple.com>
2313         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2314         Revert my patch from April 9.
2315         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
2316         (reorder_basic_blocks): Revert my patch from April 9.
2317         (insert_section_boundary_note): Revert my patch from April 9.
2318         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
2319         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
2320         (COLD_END_LABEL):  Revert my patch from April 9.
2321         (cold_text_section_label):  Revert my patch from April 9.
2322         (cold_end_label): Revert my patch from April 9.
2323         (dwarf2out_switch_text_section): Revert my patch from April 9.
2324         (output_aranges): Revert my patch from April 9.
2325         (output_ranges):  Revert my patch from April 9.
2326         (output_line_info): Revert my patch from April 9.
2327         (add_location_or_const_value_attribute):  Revert my patch from April 9.
2328         (dwarf2out_var_location): Revert my patch from April 9.
2329         (dwarf2out_init):  Revert my patch from April 9.
2330         (dwarf2out_finish): Revert my patch from April 9.
2331         * function.h (struct function): Revert my patch from April 9.
2332         * opts.c (decode_options): Revert my patch from April 9.
2333         * output.h (unlikely_section_label, hot_section_label,
2334         hot_section_end_label, cold_section_end_label,
2335         unlikely_text_section_name): Revert my patch from April 9.
2336         * passes.c (rest_of_handle_final): Revert my patch from April 9.
2337         * varasm.c (unlikely_section_label, hot_section_label,
2338         hot_section_end_label, cold_section_end_label,
2339         unlikely_text_section_name): Revert my patch from April 9.
2340         (initialize_cold_section_name): Revert my patch from April 9.
2341         (unlikely_text_section): Revert my patch from April 9.
2342         (in_unlikely_text_section): Revert my patch from April 9.
2343         (named_section): Revert my patch from April 9.
2344         (function_section): Revert my patch from April 9.
2345         (current_function_section): Revert my patch from April 9.
2346         (assemble_start_function): Revert my patch from April 9.
2347         (assemble_end_function): Revert my patch from April 9.
2348         (default_section_type_flags_1): Revert my patch from April 9.
2350 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2352         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
2353         * config/sparc/sparc.md (untyped_call): Save the registers manually.
2355         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
2357 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
2359         PR middle-end/20917
2360         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
2361         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
2363 2004-04-12  Richard Henderson  <rth@redhat.com>
2365         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
2366         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
2367         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
2368         (UNSPEC_*, UNSPECV_*): Renumber.
2370 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
2372         PR mudflap/19266
2373         From Richard Henderson <rth@redhat.com>:
2374         * tree-mudflap.c (mf_build_check_statement_for): Correct block
2375         splitting logic.
2377 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
2379         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
2381 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2383         * config/bfin/bfin.c (bfin_library_id_string): Remove.
2384         (bfin_library_id): New variable.
2385         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
2386         instead of bfin_library_id_string.
2387         (bfin_handle_option): New function.
2388         (override_options): Remove most code to deal with shared library IDs,
2389         just check they aren't used without -mid-shared-library.
2390         (TARGET_HANDLE_OPTION): Define.
2391         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
2392         * config/bfin/bfin.opt (mshared-library-id=): New.
2394 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
2396         * tree-vect-transform.c: Fix comment typos.
2398 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
2400         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
2401         split critical edges when not possible/profitable.
2403 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2405         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
2406         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
2407         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
2408         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
2409         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
2410         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
2411         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
2412         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
2413         MASK_NO_BITFIELD.
2414         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
2415         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2416         * config/ns32k/ns32k.opt: New file.
2418 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
2420         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
2421         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
2422         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
2423         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
2424         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
2425         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
2426         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
2427         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
2428         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
2429         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
2430         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
2431         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
2432         (MASK_COLDFIRE): Formatting fixes.
2433         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
2434         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
2435         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
2436         "_current_shared_library_a5_offset_".
2437         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2438         (MASK_ALL_CPU_BITS): New macro.
2439         (m68k_handle_option): New function.
2440         (override_options): Remove handling of m68k_library_id_string.
2441         * config/m68k/m68k.opt: New file.
2442         * config/m68k/ieee.opt: New file.
2444 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
2446         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2447         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
2448         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2449         (TARGET_CXX): Adjust accordingly.
2450         * target.h (struct gcc_target): Remove epxort_class_data.  Add
2451         determine_class_data_visibility and class_data_always_comdat.
2452         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2453         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
2454         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2455         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
2456         (arm_cxx_determine_class_data_visibility): New.
2457         (arm_cxx_class_data_always_comdat): Likewise.
2458         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
2459         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
2460         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
2461         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
2462         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
2463         Define.
2465 2005-04-11  Devang Patel  <dpatel@apple.com>
2467         * tree-data-ref.c (build_classic_dist_vector,
2468         compute_subscript_distance): Make externally visible.
2469         * tree-data-ref.h (build_classic_dist_vector,
2470         compute_subscript_distance): Same.
2471         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
2472         Check distance vector against vectorization factor.
2473         (vect_analyze_loop): Determine vectorizaion factor before
2474         analyzing data dependences.
2475         * tree-vectorizer.c (loops_num): Make it externally visible and
2476         rename ...
2477         * tree-vectorizer.c (vect_loops_num): ... new name.
2478         * tree-vectorizer.h  (vect_loops_num): New.
2480 2005-04-11  Devang Patel  <dpatel@apple.com>
2482         * tree-vect-analyze.c (vect_analyze_operations): Check
2483         vectorizable codition.
2484         * tree-vect-transform.c (vect_is_simple_cond): New function.
2485         (vectorizable_condition): New function.
2486         (vect_transform_stmt): Handle condition_vec_info_type.
2487         * tree-vectorizer.h (enum stmt_vec_info_type): Add
2488         condition_vec_info_type.
2489         (vectorizable_condition): New.
2491 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
2493         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
2494         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
2495         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
2497         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
2498         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
2500         * dwarf2out.c (output_line_info): Don't try to dereference
2501         a NULL current_function_decl.
2503         * config/t-slibgcc-darwin: Don't put shared libraries in
2504         directories other than $(slibdir).
2505         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
2506         OS uses for it.
2508 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2510         PR tree-optimization/20933
2511         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
2512         logic to reject aliases between read-only and writable
2513         variables ...
2514         (may_alias_p): ... here.
2515         (get_tmt_for): Do not associate read-only tags to pointers
2516         whose pointed-to type is not read-only.
2517         * tree-ssa.c (verify_ssa): Check that memory stores have at
2518         least one V_MAY_DEF or V_MUST_DEF.
2520 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2522         PR/17092
2523         * configure.ac (gcc_UNLOCKED_FUNCS): New.
2524         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
2525         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
2526         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
2527         _unlocked function.
2528         (fwrite_unlocked): Fix prototype.
2530         * configure, config.in: Regenerate.
2532 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
2534         * tree-ssa-loop-im.c: Include real.h.
2535         (determine_invariantness_stmt): If real division divisor is
2536         invariant and flag_unsafe_math_optimizations enabled, generate
2537         invariant reciprocal for hoisting.
2538         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
2540 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2542         Fix PR tree-optimization/20926
2544         * tree-ssa-alias.c (add_type_alias): Handle subvars.
2546 2005-04-11  Devang Patel  <dpatel@apple.com>
2548         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
2549         operand ordering.
2551 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2553         * fold-const.c (fold_binary_op_with_conditional_arg):
2554         use fold_buildN instead of "fold (buildN" in some
2555         non obvious places.
2556         (fold_unary): Likewise.
2557         (fold_binary): Likewise.
2559 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
2561         Fix PR tree-optimization/20612
2562         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
2563         handling
2564         (perfect_nestify): preheaderbb is *not* part of loop of the
2565         old destination.
2567 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
2569         * tree-ssa-alias.c (may_alias_p): If the variable
2570         is a global variable and the pointer is parameter
2571         and -fargument-noalias-global is used, then
2572         the pointer cannot alias the variable.
2574 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
2576         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
2577         * config/sparc/sparc.h: Likewise.
2578         * config/sparc/sparc.md: Likewise.
2580 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
2582         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
2584         * tree-vrp.c: Fix a comment typo.
2586 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
2588         PR tree-optimization/20920
2589         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
2590         SSA_NAME flows through an abnormal edge.
2591         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
2592         through abnormal edges.
2593         (maybe_add_assert_expr): Likewise.
2595 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
2597         * config/s390/s390.h (s390_tune_string, s390_arch_string)
2598         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
2599         (s390_stack_size_string, s390_stack_guard_string, target_flags)
2600         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
2601         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
2602         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
2603         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
2604         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
2605         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
2606         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
2607         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
2608         (TARGET_HANDLE_OPTION): Likewise.
2609         (s390_tune): Initialize to PROCESSOR_max.
2610         (s390_arch_string): Make static.
2611         (s390_tune_string, s390_warn_framesize_string): Delete.
2612         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
2613         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
2614         (s390_handle_arch_option, s390_handle_option): New functions.
2615         (override_options): Remove parsing of option strings.
2616         * config/s390/s390.opt: New file.
2618 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2620         * tree-complex.c (expand_vector_operations): Call
2621         update_stmt_if_modified.
2623 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
2625         * tree-vect-analyze (vect_determine_vectorization_factor):
2626         Do not use GET_MODE_NUNITS.
2627         * tree-vect-transform.c (vect_get_vec_def_for_operand,
2628         (vectorizable_load, vect_transform_loop): Likewise.
2630 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
2632         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
2633         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
2634         * optabs.h (enum optab_index): Add new OTI_lceil.
2635         (lceil_optab): Define corresponding macro.
2636         * optabs.c (init_optabs): Initialize lceil_optab.
2637         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
2638         and lceildi2 patterns.
2639         * builtins.c (expand_builtin_int_roundingfn): Handle
2640         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
2641         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
2642         BUILT_IN_LLCEIL{,F,L}.
2643         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
2644         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
2645         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
2646         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
2647         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
2648         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
2649         into lceil built-in function and (long long int)ceil{,f,l} into
2650         llceil built-in function.
2651         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
2652         BUILT_IN_LLCEIL.
2654 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2656         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
2657         zero.
2659 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
2661         * config/arm/arm.c: Fix a comment typo.
2662         * doc/tree-ssa.texi: Fix a typo.
2664 2005-04-10  Steven Bosscher  <stevenb@suse.de>
2666         * cselib.c (clear_table): Rename to cselib_clear_table.
2667         * cselib.h (cselib_clear_table): Add prototype.
2668         * gcse.c (gcse_main): Make 'f' argument unused.
2669         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
2670         of each basic block instead.
2671         (compute_sets, compute_hash_table_work): Likewise.
2672         (constprop_register): Change int 'alter_jumps' argument to bool.
2673         (do_local_cprop): Likewise.
2674         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
2675         the insn chain.  Explicitly clear the cselib tables after finishing
2676         one basic block.  Make sure there are no unterminated libcall blocks.
2677         Update compute_sets call.
2678         (cprop): Walk basic blocks instead of the insn chain.
2679         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
2680         Likewise.
2681         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
2682         one_cprop_pass calls.
2684 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2686         * combine.c (combine_simplify_rtx): Remove a transformation that
2687         relies on an invalid assumption about rtl sign-extension semantics.
2689 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
2691         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
2692         to build_int_cst_wide.
2694 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
2696         PR target/20126
2697         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
2698         set the original address pseudo to the correct value before the
2699         original insn, if possible, and leave the insn alone, otherwise
2700         create a new pseudo, set it and replace it in the insn.
2701         * recog.c (validate_change_maybe_volatile): New.
2702         * recog.h (validate_change_maybe_volatile): Declare.
2704 2005-04-09  Caroline Tice  <ctice@apple.com>
2706         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2707         Remove targetm.have_named_sections test.
2708         (fix_edges_for_rarely_executed_code): Likewise.
2709         (insert_section_boundary_note): Likewise.
2710         (reorder_basic_blocks): Check partitioning flag before calling
2711         verify_hot_cold_block_grouping.
2712         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
2713         the function struct rather than global variables.
2714         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
2715         (COLD_END_LABEL): Likewise
2716         (cold_text_section_label): New static global variable.
2717         (cold_end_label): Likewise.
2718         (dwarf2out_switch_text_section): Get hot/cold section labels from
2719         the function struct rather than global variables.
2720         (output_aranges): Use cold_text_section_label and cold_end_label;
2721         check partitioning flag before putting out delta.
2722         (output_ranges): Remove incorrect code attempting to use
2723         hot/cold labels.
2724         (output_line_info): Get cold section label from function struct.
2725         (add_location_or_const_value_attribute): Likewise.
2726         (get_subprogram_die): Get hot/cold section labels from function struct.
2727         (dwarf2out_var_location): Likewise.
2728         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
2729         write out cold_text_section_label if partition flag is set.
2730         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
2731         * function.h (struct function): Add new fields to point to hot/cold
2732         section labels: hot_section_label, cold_section_label,
2733         hot_section_end_label and cold_section_end_label; also add new field
2734         for cold text section name, unlikely_text_section_name.
2735         * opts.c (decode_options): Turn off partitioning flag if
2736         !targetm.have_named_sections.
2737         * output.h (hot_section_label): Remove.
2738         (hot_section_end_label): Remove.
2739         (cold_section_end_label): Remove.
2740         (unlikely_section_label): Remove.
2741         (unlikely_text_section_name): Remove.
2742         * passes.c (rest_of_handle_final):  Remove code that frees
2743         unlikely_text_section_name.
2744         * varasm.c (unlikely_section_label): Remove.
2745         (hot_section_label): Remove.
2746         (hot_section_end_label): Remove.
2747         (cold_section_end_label): Remove.
2748         (unlikely_text_section_name):  Remove.
2749         (initialize_cold_section_name): Modify to call
2750         targetm.strip_name_encoding; to store cold section name in current
2751         function struct, if it exists; and to only use the decl_section_name
2752         if flag_named_sections is true.
2753         (unlikely_text_section): Modify to get section name out of current
2754         function struct, if there is one; otherwise build it from
2755         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
2756         (in_unlikely_text_section): Likewise.
2757         (named_section): Modify to get/put cold section name in current function
2758         struct, if there is one.
2759         (function_section):  Change 'bool unlikely' to 'int reloc'; check
2760         targetm.have_named_sections before calling named_section.
2761         (current_function_section): Likewise.
2762         (assemble_start_function): Modify to get/put unlikely_text_section_name
2763         in current function struct; modify to get hot/cold section labels
2764         from function struct; initialize labels using
2765         ASM_GENERATE_INTERNAL_LABEL;
2766         test partitioning flag before writing out hot section label.
2767         (assemble_end_function): Test partitioning flag before writing out
2768         hot/cold section labels.
2769         (default_section_type_flags_1):  Modify to use array instead of
2770          char* for unlikely_text_section_name; set flags correctly for
2771          cold text section if there is not a current function decl.
2773 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2775         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
2776         and TI_VA_LIST_FPR_COUNTER_FIELD.
2777         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
2778         * tree-pass.h (pass_stdarg): Add.
2779         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
2780         * tree-stdarg.c: New file.
2781         * tree-stdarg.h: New file.
2782         * Makefile.in (OBJS-common): Add tree-stdarg.o.
2783         (tree-stdarg.o): Add dependencies.
2784         * function.h (struct function): Add va_list_gpr_size and
2785         va_list_fpr_size fields.
2786         * function.c (allocate_struct_function): Initialize them.
2787         * target.h (struct gcc_target): Add stdarg_optimize_hook.
2788         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
2789         (TARGET_INITIALIZER): Add it.
2791         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
2792         va_list_{g,f}pr_counter_field.
2793         (ix86_setup_incoming_varargs): Don't do anything if reg_save
2794         area will not be used.  Only save registers that tree-stdarg.c
2795         detected they need saving.
2796         (ix86_va_start): Don't set up fields that won't be used.
2798         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
2799         va_list_{g,f}pr_counter_field.
2800         (setup_incoming_varargs): Don't do anything if reg_save
2801         area will not be used.  Only save registers that tree-stdarg.c
2802         detected they need saving.
2803         (rs6000_va_start): Don't set up fields that won't be used.
2805         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
2806         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
2807         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
2808         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
2810 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
2812         PR target/20795
2813         * config/i386/i386.c (construct_container): Pass empty aligned
2814         struct, union or class in memory.
2816 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
2818         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
2819         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
2820         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
2821         config/rs6000/predicates.md: Fix comment typos.
2823         * sched-int.h (haifa_insn_data): Remove blockage and units.
2824         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
2825         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
2826         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
2828 2005-04-09  Jan Hubicka  <jh@suse.cz>
2829             Steven Bosscher  <stevenb@suse.de>
2831         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
2832         * cfgloop.c (get_loop_exit_edges): Likewise.
2833         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
2834         (unloop): Likewise.
2835         * loop-unroll.c (analyze_insns_in_loop): Likewise.
2836         * tree-cfg.c (dump_cfg_status): Likewise.
2838 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
2840         * config/rs6000/predicates.md (altivec_register_operand): Remove
2841         redundant match_code test.
2842         (gpc_reg_operand): Same.
2843         (cc_reg_operand): Same.
2844         (cc_reg_not_cr0_operand): Same.
2846 2005-04-09  Jan Hubicka  <jh@suse.cz>
2848         Forgotten hunk from my last merge patch:
2849         * final.c (output_addr_const): Do not call mark_referenced.
2851 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
2853         * doc/tree-ssa.texi: Add immediate use documentation.
2855 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
2857         * arm.c (FL_WBUF): Define.
2858         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
2859         (arm_is_6_or_7): Delete.
2860         (arm_tune_wbuf): New.
2861         (arm_override_options): Set arm_tune_wbuf.
2862         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
2863         (arm_is_6_or_7): Delete declaration.
2864         (arm_tune_wbuf): New declartion.
2865         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
2866         (model_wbuf): Derive from arm_tune_wbuf.
2867         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
2868         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
2869         (arm740t): Mark CPUs as having a write buffer.
2871 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
2873         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
2874         of 'const_double_operand' in operand 2 constraints.  Update enable
2875         condition.
2877 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
2879         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
2880         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
2881         * optabs.h (enum optab_index): Add new OTI_lfloor.
2882         (lfloor_optab): Define corresponding macro.
2883         * optabs.c (init_optabs): Initialize lfloor_optab.
2884         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
2885         and lfloordi2 patterns.
2886         * builtins.c (expand_builtin_int_roundingfn): New prototype.
2887         (expand_builtin_int_roundingfn): New function.
2888         (fold_builtin_int_roundingfn): New prototype.
2889         (fold_builtin_int_roundingfn): New function, renamed from
2890         fold_builtin_lround.
2891         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
2892         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
2893         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
2894         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
2895         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
2896         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
2897         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
2898         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
2899         into lfloor built-in function and (long long int)floor{,f,l} into
2900         llfloor built-in function.
2901         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
2902         BUILT_IN_LLFLOOR.
2904 2005-04-08  Ian Lance Taylor  <ian@airs.com>
2906         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
2907         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
2908         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
2909         (DO_COND, DO_BODY): Likewise.
2910         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
2911         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
2912         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
2913         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
2914         (build_continue_stmt, build_break_stmt): Don't declare.
2915         (c_do_switch_warnings): Update declaration.
2916         * c-gimplify.c (enum bc_t): Remove.
2917         (struct c_gimplify_ctx, ctxp): Remove.
2918         (push_context, pop_context): Remove static functions.
2919         (c_genericize): Don't call push_context or pop_context.
2920         (begin_bc_block, finish_bc_block): Remove static functions.
2921         (build_bc_goto): Likewise.
2922         (gimplify_c_loop): Likewise.
2923         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
2924         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
2925         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
2926         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
2927         * c-common.c (c_do_switch_warnings): Rename from
2928         c_do_switch_warnings_1.
2929         (c_do_switch_warnings) [old version]: Remove.
2930         (c_do_switch_expr_warnings): Remove.
2931         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
2932         function instead of c_do_switch_expr_warnings.
2933         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
2934         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
2935         * c-pretty-print.c (pp_c_statement): Likewise.
2936         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
2938 2005-04-08  Devang Patel  <dpatel@apple.com>
2940         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
2941         While selecting replacement condition pay attention to loop header.
2943 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
2945         Merge from tree-cleanup-branch: VRP, store CCP, store
2946             copy-prop, incremental SSA updating of FUD chains and
2947             newly exposed symbols.
2949         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
2950         (OBJS-common): Add tree-vrp.o.
2951         (tree-vrp.o): New rule.
2952         * basic-block.h (nearest_common_dominator_for_set): Declare.
2953         * common.opt (ftree-store-ccp): New flag.
2954         (ftree-copy-prop): New flag.
2955         (ftree-vrp): New flag.
2956         (ftree-store-copy-prop): New flag.
2957         * dominance.c (nearest_common_dominator_for_set): New.
2958         * domwalk.c (walk_dominator_tree): Only traverse
2959         statements in blocks marked in walk_data->interesting_blocks.
2960         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
2961         * fold-const.c (fold): Handle ASSERT_EXPR.
2962         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
2963         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
2964         flag_tree_vrp at -O2.
2965         * timevar.def (TV_TREE_VRP): Define.
2966         (TV_TREE_COPY_PROP): Define.
2967         (TV_TREE_STORE_COPY_PROP): Define.
2968         (TV_TREE_SSA_INCREMENTAL): Define.
2969         (TV_TREE_STORE_CCP): Define.
2970         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
2971         to kill_redundant_phi_nodes from comment.
2972         (verify_expr): Handle ASSERT_EXPR.
2973         * tree-dfa.c (mark_new_vars_to_rename): Remove second
2974         argument.  Update all users.
2975         (mark_call_clobbered_vars_to_rename): Remove.  Update all
2976         users.
2977         * tree-flow-inline.h (unmodifiable_var_p): New.
2978         * tree-flow.h (enum value_range_type): Declare.
2979         (struct value_range_def): Declare.
2980         (value_range): Declare.
2981         (remove_all_phi_nodes_for): Remove.  Update all users.
2982         (find_phi_node_for): Declare.
2983         (add_type_alias): Declare.
2984         (count_uses_and_derefs): Declare.
2985         (kill_redundant_phi_nodes): Remove.
2986         (rewrite_into_ssa): Remove.
2987         (rewrite_def_def_chains): Remove.
2988         (update_ssa, register_new_name_mapping, create_new_def_for,
2989         need_ssa_update_p, name_registered_for_update_p,
2990         release_ssa_name_after_update_ssa, dump_repl_tbl,
2991         debug_repl_tbl, dump_names_replaced_by,
2992         debug_names_replaced_by, mark_sym_for_renaming,
2993         mark_set_for_renaming, get_current_def, set_current_def,
2994         get_value_range, dump_value_range, debug_value_range,
2995         dump_all_value_ranges, debug_all_value_ranges,
2996         expr_computes_nonzero, loop_depth_of_name,
2997         unmodifiable_var_p): Declare.
2998         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
2999         ASSERT_EXPR.
3000         * tree-into-ssa.c (block_defs_stack): Update comment.
3001         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
3002         syms_to_rename, names_to_release, repl_tbl,
3003         need_to_initialize_update_ssa_p, need_to_update_vops_p,
3004         need_to_replace_names_p): New locals.
3005         (NAME_SETS_GROWTH_FACTOR): Define.
3006         (struct repl_map_d): Declare.
3007         (struct mark_def_sites_global_data): Add field
3008         interesting_blocks.
3009         (enum rewrite_mode): Declare.
3010         (REGISTER_DEFS_IN_THIS_STMT): Define.
3011         (compute_global_livein): Use last_basic_block instead of
3012         n_basic_blocks.
3013         (set_def_block): Remove last argument.  Update all callers.
3014         (prepare_use_operand_for_rename): Remove.  Update all callers.
3015         (prepare_def_operand_for_rename): Remove.  Update all callers.
3016         (symbol_marked_for_renaming): New.
3017         (is_old_name): New.
3018         (is_new_name): New.
3019         (repl_map_hash): New.
3020         (repl_map_eq): New.
3021         (repl_map_free): New.
3022         (names_replaced_by): New.
3023         (add_to_repl_tbl): New.
3024         (add_new_name_mapping): New.
3025         (mark_def_sites): Assume that all the operands in the
3026         statement are in normal form.
3027         (find_idf): Assert that the block in the stack is valid.
3028         (get_default_def_for): New.
3029         (insert_phi_nodes_for): Add new argument 'update_p'.
3030         Add documentation.
3031         If update_p is true, add a new mapping between the LHS of
3032         each new PHI and the name that it replaces.
3033         (insert_phi_nodes_1): Only call find_idf if needed.
3034         (get_reaching_def): Call get_default_def_for.
3035         (rewrite_operand): Remove.
3036         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
3037         and REWRITE_THIS_STMT are false.
3038         Assume that all the operands in the statement are in
3039         normal form.
3040         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
3041         (rewrite_virtual_phi_arguments): Remove.
3042         (invalidate_name_tags): Remove.
3043         (register_new_update_single, register_new_update_set,
3044         rewrite_update_init_block, replace_use,
3045         rewrite_update_fini_block, rewrite_update_stmt,
3046         rewrite_update_phi_arguments): New.
3047         rewrite_blocks): Remove argument 'fix_virtual_phis'.
3048         Add arguments 'entry', 'what' and 'blocks'.
3049         Initialize the dominator walker according to 'what' and
3050         'blocks'.
3051         Start the dominator walk at 'entry'.
3052         (mark_def_site_blocks): Add argument 'interesting_blocks'.
3053         Use it to configure the dominator walker.
3054         (rewrite_into_ssa): Remove argument 'all'.
3055         Make internal.
3056         (rewrite_all_into_ssa): Remove.
3057         (rewrite_def_def_chains): Remove.
3058         (mark_def_interesting, mark_use_interesting,
3059         prepare_phi_args_for_update, prepare_block_for_update,
3060         prepare_def_site_for, prepare_def_sites,
3061         dump_names_replaced_by, debug_names_replaced_by,
3062         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
3063         delete_update_ssa, create_new_def_for,
3064         register_new_name_mapping, mark_sym_for_renaming,
3065         mark_set_for_renaming, need_ssa_update_p,
3066         name_registered_for_update_p, ssa_names_to_replace,
3067         release_ssa_name_after_update_ssa,
3068         insert_updated_phi_nodes_for, update_ssa): New.
3069         * tree-loop-linear.c (linear_transform_loops): Call
3070         update_ssa instead of rewrite_into_ssa.
3071         * tree-optimize.c (vars_to_rename): Remove.
3072         Update all users.
3073         (init_tree_optimization_passes): Replace
3074         pass_redundant_phi with pass_copy_prop.
3075         Add pass_vrp.
3076         Replace pass_ccp with pass_store_ccp.
3077         Add pass_store_copy_prop after pass_store_ccp.
3078         (execute_todo): If the TODO_ flags don't include updating
3079         the SSA form, assert that it does not need to be updated.
3080         Call update_ssa instead of rewrite_into_ssa and
3081         rewrite_def_def_chains.
3082         If TODO_verify_loops is set, call verify_loop_closed_ssa.
3083         (tree_rest_of_compilation):
3084         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
3085         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
3086         TODO_cleanup_cfg): Renumber.
3087         (TODO_verify_loops, TODO_update_ssa,
3088         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
3089         TODO_update_ssa_only_virtuals): Define.
3090         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
3091         Declare.
3092         * tree-phinodes.c (make_phi_node): Update documentation.
3093         (remove_all_phi_nodes_for): Remove.
3094         (find_phi_node_for): New.
3095         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
3096         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
3097         (interpret_rhs_modify_expr): Likewise.
3098         * tree-sra.c (decide_instantiations): Mark all symbols in
3099         SRA_CANDIDATES for renaming.
3100         (mark_all_v_defs_1): Rename from mark_all_v_defs.
3101         (mark_all_v_defs): New function.  Update all users to call it
3102         with the whole list of scalarized statements, not just the
3103         first one.
3104         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
3105         (compute_flow_insensitive_aliasing): If the tag is
3106         unmodifiable and the variable isn't or vice-versa, don't
3107         make them alias of each other.
3108         (setup_pointers_and_addressables): If the type tag for
3109         VAR is about to change, mark the old one for renaming.
3110         (add_type_alias): New.
3111         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
3112         (ccp_lattice_t): Rename from latticevalue.
3113         (value): Remove.  Update all users.
3114         (const_val): New local variable.
3115         (do_store_ccp): New local variable.
3116         (dump_lattice_value): Handle UNINITIALIZED.
3117         (debug_lattice_value): New.
3118         (get_default_value): Re-write.
3119         (set_lattice_value): Re-write.
3120         (def_to_varying): Remove.  Update all users.
3121         (likely_value): Return VARYING for statements that make
3122         stores when STORE_CCP is false.
3123         Return VARYING for any statement other than MODIFY_EXPR,
3124         COND_EXPR and SWITCH_EXPR.
3125         (ccp_initialize): Re-write.
3126         (replace_uses_in, replace_vuse_in, substitute_and_fold):
3127         Move to tree-ssa-propagate.c.
3128         (ccp_lattice_meet): Handle memory stores when
3129         DO_STORE_CCP is true.
3130         (ccp_visit_phi_node): Likewise.
3131         (ccp_fold): Likewise.
3132         (evaluate_stmt): Likewise.
3133         (visit_assignment): Likewise.
3134         (ccp_visit_stmt): Likewise.
3135         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
3136         into DO_STORE_CCP.
3137         (do_ssa_ccp): New.
3138         (pass_ccp): Use it.
3139         (do_ssa_store_ccp): New.
3140         (gate_store_ccp): New.
3141         (pass_store_ccp): Declare.
3142         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
3143         (may_propagate_copy): Reformat.
3144         Don't abort if ORIG is a virtual and DEST isn't.
3145         If NEW does not have alias information but DEST does,
3146         copy it.
3147         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
3148         copy_prop_kind, which_copy_prop): Declare.
3149         (stmt_may_generate_copy, get_copy_of_val,
3150         get_last_copy_of, set_copy_of_val, dump_copy_of,
3151         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
3152         copy_prop_visit_stmt, copy_prop_visit_phi_node,
3153         init_copy_prop, fini_copy_prop, execute_copy_prop,
3154         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
3155         store_copy_prop): New.
3156         (pass_copy_prop, pass_store_copy_prop): Declare.
3157         * tree-ssa-dom.c (struct opt_stats_d): Add fields
3158         'num_const_prop' and 'num_copy_prop'.
3159         (cprop_operand): Update them.
3160         (dump_dominator_optimization_stats): Dump them.
3161         (tree_ssa_dominator_optimize): Call update_ssa instead of
3162         rewrite_into_ssa.
3163         (loop_depth_of_name): Declare extern.
3164         (simplify_cond_and_lookup_avail_expr): Guard against NULL
3165         values for LOW or HIGH.
3166         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
3167         (record_equivalences_from_stmt): Call expr_computes_nonzero.
3168         (cprop_operand): Only propagate if VAL != OP.
3169         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
3170         statement for renaming.
3171         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
3172         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
3173         add_type_alias if necessary.
3174         Call mark_new_vars_to_rename.
3175         (tree_ssa_iv_optimize): If new symbols need to be renamed,
3176         mark every statement updated, call update_ssa and
3177         rewrite_into_loop_closed_ssa.
3178         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
3179         from LIVEIN if VAR is a virtual.
3180         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
3181         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
3182         (get_call_expr_operands): Reformat statement.
3183         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
3184         symbols.
3185         * tree-ssa-propagate.c (ssa_prop_init): Initialize
3186         SSA_NAME_VALUE for every name.
3187         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3188         get_value_loaded_by): New.
3189         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
3190         substitute_and_fold): Move from tree-ssa-ccp.c.
3191         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
3192         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
3193         get_value_loaded_by, replace_uses_in, substitute_and_fold):
3194         Declare.
3195         * tree-ssa.c (verify_use): Fix error message.
3196         (propagate_into_addr, replace_immediate_uses, get_eq_name,
3197         check_phi_redundancy, kill_redundant_phi_nodes,
3198         pass_redundant_phi): Remove.  Update all users.
3199         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
3200         add_type_alias, if necessary.
3201         * tree-vectorizer.h (struct _stmt_vect_info): Update
3202         documentation for field 'memtag'.
3203         * tree-vrp.c: New file.
3204         * tree.def (ASSERT_EXPR): Define.
3205         * tree.h (ASSERT_EXPR_VAR): Define.
3206         (ASSERT_EXPR_COND): Define.
3207         (SSA_NAME_VALUE_RANGE): Define.
3208         (struct tree_ssa_name): Add field 'value_range'.
3209         (PHI_REWRITTEN): Remove.
3210         (struct tree_phi_node): Remove field 'rewritten'.
3211         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
3212         -ftree-store-copy-prop): Document.
3213         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
3214         Document usage of update_ssa.
3216 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
3218         PR target/20814
3219         * config/rs6000/predicates.md (altivec_register_operand): Accept
3220         SUBREG.
3221         (and64_operand): Do not limit CONST_INT to mask64_operand.
3222         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
3223         (and_operand): Do not limit CONST_INT to mask_operand.
3225 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
3227         PR rtl-optimization/20466
3228         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
3229         for overlap of the address of each list member.
3230         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
3232 2005-04-08  Mike Stump  <mrs@apple.com>
3234         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
3236         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
3237         instead of 4.
3239 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3241         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
3243         * function.c (push_function_context_to): Don't set
3244         contains_functions.
3245         * function.h (function): Remove contains_functions.
3246         (current_function_contains_functions): Remove.
3248         * function.h (function): Remove instrument_entry_exit.
3249         (current_function_instrument_entry_exit): Remove.
3251         * function.h (nonlocal_labels): Remove.
3253         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
3255         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
3256         (check_attr_value, write_attr_get, write_expr_attr_cache,
3257         find_attr, make_internal_attr): Don't reference negative_ok or
3258         unsigned_p.
3259         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
3260         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
3261         (ATTR_STATIC): Adjust the value.
3263         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
3265 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
3267         * config/s390/tpf.h (ASM_SPEC): Define.
3269 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
3271         * tree-flow.h: Remove the prototype for
3272         redirect_immediate_uses.
3273         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
3275 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
3277         * arm.c (arm_const_double_by_parts): New function.
3278         * arm-protos.h (arm_const_double_by_parts): Add prototype.
3279         * arm.md (define_split for 64-bit constants): Add another one.
3281 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
3283         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
3285 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3287         * system.h: Revert last change.
3289 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
3291         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
3292         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
3293         (TARGET_SWITCHES): Delete.
3294         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
3295         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
3296         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
3297         * config/xtensa/xtensa.opt: New file.
3299 2005-04-08  Ben Elliston  <bje@au.ibm.com>
3301         * config/fp-bit.c: Include L_mul_tf in #endif comment.
3302         * config/fp-bit.h: Tidy comments.
3304 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3306         * system.h: Poison PARAMS.
3308 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
3310         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
3311         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
3312         (TARGET_SWITCHES): Delete.
3313         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
3314         * config/vax/vax.opt: New file.
3316 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
3318         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
3320 2005-04-07  Ian Lance Taylor  <ian@airs.com>
3322         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
3323         define.
3324         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
3325         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
3326         Likewise.
3328 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
3330         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
3331         all immediate uses in PHI nodes.
3333 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
3335         * arm.c (arm_const_double_inline_cost): Handle any constant by
3336         using gen_lowpart and gen_highpart_mode.
3337         (note_invalid_constants): All constants in an RTX with a constraint
3338         that permits memory are now pushed to the constant pool.
3339         (output_move_double): Delete code to handle reg to reg and
3340         constant to reg moves.
3341         (const_double_needs_minipool, output_mov_immediate): Delete.
3342         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
3343         CONST_INT and CONST_VECTOR.
3344         * arm.md (ANY64): New mode macro.
3345         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
3346         (movdf_soft_insn): Split reg-reg and const-reg moves.
3347         (split patterns for 64-bit constant and register moves): New.
3348         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
3349         (cirrus_movdf_hard_insn): Likewise.
3350         * fpa.md (movdf_fpa): Likewise.
3351         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
3352         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
3353         constraints.
3354         (movv2si_internal_2): Likewise.
3355         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
3356         (movdf_vfp): Likewise.
3357         * arm-protos.h (output_mov_immediate): Delete prototype.
3359 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
3361         PR target/20093
3362         * simplify-rtx.c (simplify_unary_operation_1): Check
3363         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
3365 2005-04-06  James E Wilson  <wilson@specifixinc.com>
3367         PR target/20717
3368         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
3369         ADDR_EXPR.
3371 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3373         * coverage.h (GCOV_TYPE_NODE): Delete.
3374         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
3375         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
3376         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
3377         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
3378         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
3380 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
3382         PR other/20792
3383         * Makefile.in (gcc.pot): Remove options.c dependency.
3384         * optc-gen.awk: Don't quote help strings with N_().
3386 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
3388         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
3389         the function returns a pointer type.
3391 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
3393         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
3394         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
3395         * doc/invoke.texi: Documnet salias-max-implicit-fields.
3396         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
3397         explicit_uses members.
3398         (get_or_create_used_part_for): Initialize new fields.
3399         (fieldoff_compare): New function.
3400         (create_overlap_variables_for): Count number of fields, use
3401         heuristic to determine whether to create subvars for vars with
3402         only implicit uses.
3403         Sort the field list by offset and avoid creating duplicate SFT's.
3405 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3407         * c.opt (-F): Remove trailing whitespace from help string.
3408         (-finput-charset): Use a tab to separate the switch name and help
3409         string.
3410         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
3411         (-ftree-vectorizer-verbose): Likewise.
3413 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3415         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
3416         a PHI argument where a use occurs instead of all PHI arguments.
3418 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
3420         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
3421         scope.
3423 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
3425         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
3426         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
3427         config/bfin/bfin.h: Fix comment typos.
3429 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
3431         * doc/install.texi: Update the URL for Jacks.
3432         * doc/sourcebuild.texi: Likewise.
3434 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3436         PR target/17245
3437         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
3438         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
3440 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3442         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
3444 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
3446         * config/v850/v850-protos.h (override_options): Delete.
3447         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
3448         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
3449         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
3450         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
3451         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
3452         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
3453         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
3454         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
3455         (OVERRIDE_OPTIONS): Delete.
3456         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
3457         (small_memory_info): Remove the value field.
3458         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
3459         TARGET_NO_APP_REGS.
3460         * config/v850/v850.c (small_memory): Remove the value field.
3461         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3462         (override_options): Delete.
3463         (v850_handle_memory_option, v850_handle_option): New functions.
3464         * config/v850/v850.opt: New file.
3466 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
3468         * config.host: Add a section for generic hosts, and a subsection
3469         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
3470         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
3471         * config/host-darwin.h: New.
3472         * config/x-darwin: New.
3473         * config/i386/host-i386-darwin.c: New.
3474         * config/i386/x-darwin: New.
3475         * config/rs6000/host-darwin.c: Include host-darwin.h.
3476         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
3477         (darwin_rs6000_gt_pch_use_address): Likewise.
3478         * config/rs6000/x-darwin: Change name of .o built, update
3479         dependencies for changes to rs6000/host-darwin.c.
3481 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3483         PR target/17824
3484         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
3486 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
3488         * tree-vect-analyze.c (vect_analyze_loop_form): Call
3489         split_loop_exit_edge instead of loop_split_edge_with.
3491 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
3493         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
3494         UNSPEC_SET_VSCR): New constants, used throughout.
3495         (*andc3_v4sf): New.
3496         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
3497         Replace with...
3498         (altivec_vspltis<VI_char>): ... this pattern, using
3499         a QImode const_int_operand for the immediate.
3500         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
3501         define_expands.
3503 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
3505         PR target/17822
3506         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
3508 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
3510         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
3512 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3514         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
3515         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
3516         macros as living in "this file" and not gcc.h.
3518 2005-04-06  Ben Elliston  <bje@au.ibm.com>
3520         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
3521         -ftree-live_range_split.  Perhaps renamed at some point?
3523 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3525         PR target/20625
3526         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
3527         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
3529 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
3531         * tree-flow.h (number_of_iterations_cond): Declaration removed.
3532         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
3533         (number_of_iterations_special): New function.
3534         (number_of_iterations_exit): Use number_of_iterations_special.
3535         Use simplify_using_outer_evolutions only at -O3.
3536         (number_of_iterations_cond, tree_simplify_using_condition,
3537         simplify_using_initial_conditions, loop_niter_by_eval,
3538         compare_trees, can_count_iv_in_wider_type_bound,
3539         simplify_using_outer_evolutions): Use fold_build.
3541 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
3543         * doc/install.texi (Configuration): Document --with-java-home.
3545 2005-04-05  Richard Henderson  <rth@redhat.com>
3547         PR target/20342
3548         PR target/20447
3549         * config/i386/i386.c (print_operand): Handle vector zeros.
3550         (ix86_split_to_parts): Handle CONST_VECTOR.
3551         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
3552         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
3553         what modes to tie for MMX and SSE registers.
3554         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
3555         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
3556         to vector modes as well.
3557         * config/i386/predicates.md (const0_operand): Handle VOIDmode
3558         properly as an input mode.
3560 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3562         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
3564 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3566         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
3568 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3570         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
3571         and local functions, set sse_nregs to 8 and float_in_sse.
3572         (function_arg_advance, function_arg): If float_in_sse, pass
3573         SFmode and DFmode arguments in SSE registers.
3574         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
3576         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
3577         of -funit-at-a-time.
3579 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3581         * config/i386/i386-protos.h (ix86_function_value): Accept two
3582         arguments, like the target macro.
3583         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
3584         * config/i386/i386.c (ix86_function_value): Accept the second
3585         argument of the target macro.
3586         (ix86_function_ok_for_sibcall): Pass a function pointer to
3587         ix86_function_value.
3588         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
3589         call to ix86_value_regno).
3590         (ix86_value_regno): Add support for returning floating point values
3591         in SSE registers.
3593 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
3595         PR tree-optimization/20076
3596         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
3597         that call __builtin_return or __builtin_apply_args.
3599 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
3601         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
3602         Use immediate use iterator.
3603         (stmt_is_bumper_for_loop): Use immediate use iterator.
3604         * predict.c (strip_builtin_expect): Use update_stmt.
3605         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
3606         on all elements of a STATEMENT_LIST.
3607         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
3608         (bsi_remove): Remove imm_use links and mark the stmt as modified.
3609         (bsi_replace): Mark stmt as modified and the update it.
3610         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
3611         (expand_complex_libcal): Call update_stmt.
3612         (expand_complex_comparison): Call mark_stmt_modified.
3613         (expand_complex_operations_1): Call update_stmt_if_modified.
3614         (expand_vector_operations_1): Call mark_stmt_modified.
3615         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
3616         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
3617         add_immediate_use, redirect_immediate_use,
3618         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
3619         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
3620         (mark_new_vars_to_rename): Call update_stmt.
3621         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
3622         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
3623         Ignore PHI nodes.
3624         (unmodify_stmt): Delete.
3625         (update_stmt): New.  Force an update of a stmt.
3626         (update_stmt_if_modified): update a stmt if it is out of date.
3627         (get_stmt_operands): Verify stmt is NOT modified.
3628         (stmt_modified_p): Update comment.
3629         (delink_imm_use): Remove a use node from its immuse list.
3630         (link_imm_use_to_list): Link a use node to a specific list.
3631         (link_imm_use): Link a node to the correct list.
3632         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
3633         it in the correct list, if appropriate.
3634         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
3635         (relink_imm_use): Link a use node in place of another node in a list.
3636         (relink_imm_use_stmt): LInk a node in place of another node, and set
3637         the stmt pointer.
3638         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
3639         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
3640         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
3641         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
3642         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
3643         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
3644         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
3645         (has_zero_uses): New.  Return true if there are no uses of a var.
3646         (has_single_use): New.  Return true if there is only a single use of a
3647         variable.
3648         (single_imm_use): New.  Return the simgle immediate use.
3649         (num_imm_uses): New.  Return the number of immediate uses.
3650         (get_v_must_def_ops): Use is now a pointer.
3651         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
3652         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
3653         the use node.
3654         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
3655         (delink_stmt_imm_use): Delink all immuses from a stmt.
3656         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
3657         * tree-flow.h (struct dataflow_d): Delete.
3658         (immediate_use_iterator_d): New.  Immediate use iterator struct.
3659         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
3660         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
3661         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
3662         iteration.
3663         (struct stmt_ann_d): Remove dataflow_t from struct.
3664         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
3665         (if_convertible_phi_p): Use FAST immuse iterator.
3666         (if_convertible_loop_p): Don't call compute_immediate_uses.
3667         (replace_phi_with_cond_modify_expr): Call update_stmt.
3668         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
3669         update_stmt_if_modified.
3670         (rewrite_all_into_ssa): Initialize ssa operands.
3671         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
3672         compute_immediate_uses.
3673         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
3674         ssa_property is available.
3675         (execute_one_pass):  Change parameters passed to execute_todo.
3676         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
3677         (remove_ssa_form): Call fini_ssa_operands.
3678         (insert_backedge_copies): Delete call to modify_stmt.
3679         * tree-phinodes.c (make_phi_node): Initialize use nodes.
3680         (release_phi_node): Delink any use nodes before releasing.
3681         (resize_phi_node): Relink any use nodes.
3682         (remove_phi_arg_num): Delink the use node.
3683         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
3684         (remove_all_phi_nodes_for): Release phi node first.
3685         * tree-pretty-print.c (dump_generic_node): Print stmt address.
3686         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
3687         (scalarize_use, scalarize_copy): Call update_stmt.
3688         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
3689         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
3690         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
3691         (ccp_initialize): Remove call to compute_immediate_uses.
3692         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
3693         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
3694         stmts.
3695         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
3696         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
3697         (eliminate_redundant_computations): Call mark_stmt_modified.
3698         (cprop_operand): Call mark_stmt_modified.
3699         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
3700         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
3701         (dse_optimize_stmt): Use new immuse interface.
3702         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
3703         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
3704         (substitute_single_use_vars): Use new immuse interface.
3705         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
3706         and compute_immediate_uses.
3707         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
3708         interface.
3709         (rewrite_mem_refs): Call update_stmt.
3710         (determine_lsm): Remove call to compute_imm_uses and free_df.
3711         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
3712         (try_unroll_loop_completely): Call update_stmt.
3713         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
3714         (rewrite_use_compare): Call update_stmt.
3715         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
3716         (rewrite_use) : Call update_stmt.
3717         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
3718         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
3719         update_stmt.
3720         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
3721         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
3722         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
3723         use nodes.
3724         (initialize_vuse_operand): New.  Initialize a vuse operand.
3725         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
3726         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
3727         (finalize_ssa_defs): Use stmt parameter.
3728         (correct_use_link): Ensure a use node is in the correct list, and has
3729         the correct stmt pointer.
3730         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
3731         finalize_ssa_v_must_defs): Also initialize use nodes.
3732         (finalize_ssa_stmt_operands): Pass extra stmt operands.
3733         (build_ssa_operands): Seperate parsing from final operand construction.
3734         (parse_ssa_operands): New.  Parse entry point for operand building.
3735         (swap_tree_operands): New.  Swap 2 tree operands.
3736         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
3737         operands.
3738         (get_expr_operands): Call swap_tree_operands when needed.
3739         (copy_virtual_operands): Use initialize routines for virtual use ops.
3740         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
3741         (verify_abort): New.  Issue imm_use error.
3742         (verify_imm_links): New Verify imm_use links for a var.
3743         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
3744         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
3745         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
3746         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
3747         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
3748         (NULL_USE_OPERAND_P) Define.
3749         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
3750         use node.
3751         (struct vuse_operand_type): New struct.
3752         (SET_USE): Call set_ssa_use_from_ptr.
3753         (USE_STMT): Define.
3754         (PHI_ARG_INDEX_FROM_USE): Define.
3755         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
3756         argument via SET_USE, not PHI_ARG_DEF_TREE.
3757         * tree-ssa-pre.c (eliminate): Call update_stmt.
3758         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
3759         call free_df.
3760         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
3761         (nearest_common_dominator_of_uses): Use imm_use iterator.
3762         (statement_sink_location): Use imm_use iterator and interface.
3763         (execute_sink_code): Don't call compute_immediate_uses or free-df.
3764         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
3765         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
3766         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
3767         (verify_ssa): Ensure no stmt is marked modify after optimization pass
3768         if new parameter is true.
3769         (init_tree_ssa): Don't initialize operand cache here.
3770         (delete_tree_ssa): Don't destroy operand cache here.
3771         (propagate_into_addr): Pass in a use pointer, return true if anything
3772         was changed.
3773         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
3774         (check_phi_redundancy): Use imm_use iterator.
3775         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
3776         free_df.
3777         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
3778         (release_ssa_name): Delink node and all elements in its imm_use list.
3779         * tree-tailcall.c (adjust_return_value): Call update_stmt.
3780         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
3781         * tree-vectorizer.c (need_imm_uses_for): Delete.
3782         (vectorize_loops): Dont call compute_immediate_uses or free_df.
3783         * tree.h (struct ssa_imm_use_d): Define.
3784         (SSA_NAME_IMM_USE_NODE): Define.
3785         (struct tree_ssa_name): Add imm_use node.
3786         (PHI_DF): Delete.
3787         (PHI_ARG_IMM_USE_NODE): Define.
3788         (struct phi_arg_d): Add imm_use node.
3789         (struct tree_phi_node): Remove struct dataflow_d element.
3790         (TDF_STMTADDR): Define.
3792 2005-04-05  Dale Johannesen  <dalej@apple.com>
3794         * doc/invoke.texi (Optimization Options):  Remove
3795         duplicate -fcse-follow-jumps.  Add -fweb.
3796         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
3797         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
3799 2005-04-05  Per Bothner  <per@bothner.com>
3801         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
3802         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
3803         (warn_uninit): Get EXPR_LOCUS from context now instead.
3804         This fixes a USE_MAPPED_LOCATION testsuite failure.
3806         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
3808 2005-04-05  Per Bothner  <per@bothner.com>
3810         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
3811         of the artification 'return 0' in main() to BUILTINS_LOCATION.
3812         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
3813         before warning.
3815 2004-04-05  Devang Patel  <dpatel@apple.com>
3817         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
3818         (lhsr<mode>3): ... new name.
3819         (altivec_vsra<VI_char>): Rename to ..
3820         (ashr<mode>3): ... new name.
3821         * config/rs6000/rs6000.c (builtin_description): Rename shift
3822         operations.
3824 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
3826         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
3827         gen_lowpart_for_combine.
3828         * cse.c (gen_lowpart_if_possible): Move...
3829         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
3830         gen_lowpart_SUBREG.
3831         (gen_lowpart_no_emit_general): Use it.
3833 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
3835         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
3836         overriding.
3838 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
3840         * system.h: Fix typo.
3842 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3844         * config/bfin/bfin-modes.def: New file.
3845         * config/bfin/bfin-protos.h: New file.
3846         * config/bfin/bfin.c: New file.
3847         * config/bfin/bfin.h: New file.
3848         * config/bfin/bfin.md: New file.
3849         * config/bfin/bfin.opt: New file.
3850         * config/bfin/crti.s: New file.
3851         * config/bfin/crtn.s: New file.
3852         * config/bfin/elf.h: New file.
3853         * config/bfin/lib1funcs.asm: New file.
3854         * config/bfin/predicates.md: New file.
3855         * config/bfin/t-bfin: New file.
3856         * config/bfin/t-bfin-elf: New file.
3857         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
3858         Document new attributes.
3859         (interrupt, interrupt_handler, saveall): Update documentation for
3860         these attributes.
3861         * doc/install.texi (Specific): Add entry for the Blackfin.
3862         * doc/invoke.texi (Blackfin Options): New section.
3863         * doc/md.texi (Blackfin family): New section to document constraints.
3864         * config.gcc: Add bfin*-* and bfin*-elf configurations.
3866 2005-04-05  Olivier Hainque  <hainque@adacore.com>
3868         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
3869         match what the system unwinder expects.
3870         * config/mips/mips.c (mips_frame_set): If we're saving the return
3871         address register and the dwarf return address column number differs
3872         from the hard register number, adjust the note reg to refer to the
3873         former.
3875 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
3877         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
3878         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
3879         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
3880         (processor_type): New enum.
3881         (mn10300_processor): New variable.
3882         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
3883         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
3884         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
3885         (PROCESSOR_DEFAULT): New macro.
3886         * config/mn10300/mn10300.c (mn10300_processor): New variable.
3887         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3888         (mn10300_handle_option, mn10300_override_options): New functions.
3889         * config/mn10300/mn10300.opt: New file.
3891 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
3892             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
3894         PR tree-optimization/19903
3895         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
3896         that don't fit in their type after conversion.
3898 2005-04-05  Uros Bizjak <uros@kss-loka.si>
3900         PR target/20421
3901         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
3902         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
3903         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
3904         flag here. Implement using define_insn_and_split.
3905         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
3906         (frndintxf2_mask_pm_i387): New insn patterns.
3907         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
3908         Do not set ix86_optimize_mode_switching flag.
3909         (ceilsf2, ceildf2, ceilxf2): Same.
3910         (btruncsf2, btruncdf2, btruncxf2): Same.
3911         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
3913 2005-04-05  Ian Lance Taylor  <ian@airs.com>
3915         PR debug/9963
3916         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
3917         i386_pe_record_external_function.
3918         (i386_pe_record_external_function): Update declaration.
3919         * config/i386/winnt.c (struct extern_list): Add decl field.
3920         (i386_pe_record_external_function): Add decl parameter.
3921         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
3922         identifier.
3923         * config/i386/i386-protos.h (i386_pe_record_external_function):
3924         Update declaration.
3926 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
3928         * config/m68k/m68k-protos.h: Add a prototype for
3929         valid_dbcc_comparison_p_2.
3930         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
3931         extend_operator, const_uint32_operand, const_sint32_operand,
3932         general_src_operand, nonimmediate_src_operand,
3933         memory_src_operand, post_inc_operand, pre_dec_operand,
3934         pcrel_address): Move to predicates to predicates.md.
3935         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
3936         * config/m68k/m68k.md: Include predicates.md.
3937         * config/m68k/predicates.md: New.
3939 2005-04-04  Roger Sayle  <roger@eyesopen.com>
3941         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
3943         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
3945 2005-04-04  Ian Lance Taylor  <ian@airs.com>
3947         * c-typeck.c (struct c_switch): Rename switch_stmt field to
3948         switch_expr.
3949         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
3950         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
3951         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
3952         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
3953         * c-common.c (c_do_switch_warnings_1): New static function broken
3954         out of c_do_switch_warnings.
3955         (c_do_switch_warnings): Call c_do_switch_warnings_1.
3956         (c_do_switch_expr_warnings): New function.
3957         * c-common.h (c_do_switch_expr_warnings): Declare.
3959 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
3960             Daniel Jacobowitz  <dan@codesourcery.com>
3962         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
3963         trapping divide.
3964         * rtlanal.c (may_trap_p): Same.
3966 2005-04-04  Dale Johannesen  <dalej@apple.com>
3968         * ChangeLog:  remove reference to ChangeLog.12.
3970 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
3972         CRIS epilogue as RTL.
3973         * config/cris/cris.md: Change all 0 in unspec 0 to
3974         CRIS_UNSPEC_PLT.
3975         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
3976         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
3977         patterns.
3978         ("return"): Change to define_expand.  Call cris_expand_return for
3979         actual expansion.
3980         ("*return_expanded"): New pattern.
3981         ("epilogue"): New define_expand.
3982         * config/cris/cris.h (PREDICATE_CODES): Add
3983         cris_load_multiple_op.
3984         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
3985         type.
3986         (enum cris_retinsn_type): New.
3987         (struct machine_function): New member return_type.
3988         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
3989         (cris_target_asm_function_epilogue): Remove, moving RTLified
3990         contents to...
3991         (cris_expand_epilogue): New function.
3992         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
3993         (cris_gen_movem_load, cris_load_multiple_op)
3994         (cris_return_address_on_stack_for_return, cris_expand_return): New
3995         functions.
3996         (cris_target_asm_function_prologue)
3997         (cris_initial_frame_pointer_offset): Call
3998         cris_reg_saved_in_regsave_area instead of complicated expression.
3999         Call cris_return_address_on_stack instead of an expression.
4000         (cris_print_operand) <case 'o', case 'O'>: New cases.
4001         (cris_return_address_on_stack): Change return-type to bool.
4002         (cris_simple_epilogue): Ditto.  Return false if registers are
4003         saved.
4004         * config/cris/cris-protos.h (cris_simple_epilogue)
4005         (cris_return_address_on_stack): Adjust prototype return type.
4006         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
4007         (cris_return_address_on_stack_for_return): New prototypes.
4009 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4011         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
4012         gpr_or_int12_operand.
4014         * config/frv/frv-protos.h: Add a prototype to
4015         frv_legitimate_memory_operand and frv_const_unspec_p.
4016         (frv_unspec): Move from frv.c.
4017         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
4018         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
4019         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
4020         gpr_or_fpr_operand, gpr_or_int12_operand,
4021         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
4022         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
4023         int6_operand, int5_operand, uint5_operand, uint4_operand,
4024         uint1_operand, int_2word_operand, uint16_operand,
4025         upper_int16_operand, integer_register_operand,
4026         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
4027         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
4028         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
4029         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
4030         move_destination_operand, movcc_fp_destination_operand,
4031         frv_function_symbol_referenced_p, move_source_operand,
4032         condexec_dest_operand, condexec_source_operand,
4033         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
4034         const_unspec_operand, gpr_or_memory_operand,
4035         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
4036         icc_operand, fcc_operand, cc_operand, icr_operand,
4037         fcr_operand, cr_operand, call_operand, sibcall_operand,
4038         symbolic_operand, relational_operator,
4039         integer_relational_operator, float_relational_operator,
4040         ccr_eqne_operator, minmax_operator,
4041         condexec_si_binary_operator, condexec_si_media_operator,
4042         condexec_si_divide_operator, condexec_si_unary_operator,
4043         condexec_sf_conv_operator, condexec_sf_add_operator,
4044         condexec_memory_operand, intop_compare_operator, acc_operand,
4045         even_acc_operand, quad_acc_operand, accg_operand: Move to
4046         predicates.md.
4047         * config/frv/frv.h (PREDICATE_CODES): Remove.
4048         * config/frv/frv.md: Include predicates.md.
4049         * config/frv/predicates.md: New.
4051 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4053         PR target/19537
4054         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
4055         * tree-ssa-loop-ivopts.c: Include langhooks.h.
4056         (add_standard_iv_candidates_for_size): New function, extracting code
4057         from add_standard_iv_candidates and parameterizing it by type size.
4058         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
4060 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
4062         * system.h (GCOV_SIZE_TYPE): Unposion.
4063         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
4064         (GCOV_TYPE_SIZE): ...this new macro.
4065         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
4066         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
4067         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
4068         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
4069         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
4070         instead of unsigned_intSI_type_node.
4071         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
4072         (rtl_gen_one_value_profiler_no_edge_manipulation)
4073         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
4074         * value-prof.c: Include coverage.h.
4076 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
4077             Diego Novillo <dnovillo@redhat.com>
4079         Fix PR tree-optimization/20703
4080         Fix PR tree-optimization/20725
4082         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
4083         (create_expression_by_pieces): Ditto.
4084         (valid_in_set): Ditto. Also handle tcc_declaration.
4085         (find_or_generate_expression): Handle comparison class.
4086         (insert_into_preds_of_block): Ditto.
4087         (insert_aux): Ditto.
4088         (create_value_expr_from): Handle comparison class, recursively
4089         handle reference nodes.
4090         (compute_avail): Handle comparison classes, rewrite a little cleaner.
4091         (execute_pre): Fix spacing.
4092         (do_fre): Renamed to execute_fre.
4094 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4096         * doc/invoke.texi (SPARC options): Document that
4097         -mlittle-endian is not supported on Linux either.
4099 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4101         PR target/4198
4102         PR target/12027
4103         * config.gcc (Obsolete configurations): Remove
4104         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
4105         (sparclite-*-coff*): Delete.
4106         (sparclite-*-elf*): Likewise.
4107         (sparc86x-*-elf*): Likewise.
4108         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
4109         * config/sparc/lite.h: Delete.
4110         * config/sparc/litecoff.h: Likewise.
4111         * config/sparc/liteelf.h: Likewise.
4112         * config/sparc/sp86x-elf.h: Likewise.
4113         * config/sparc/t-sparclite: Likewise.
4114         * config/sparc/t-sp86x: Likewise.
4116 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
4118         * config/s390/s390-protos.h: (s390_comparison,
4119         s390_alc_comparison, s390_slb_comparison, const0_operand,
4120         consttable_operand, larl_operand, s_operand,
4121         shift_count_operand, bras_sym_operand, load_multiple_operation,
4122         store_multiple_operation, s390_plus_operand): Remove prototypes.
4123         (s390_legitimate_address_without_index_p): New prototype.
4124         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
4125         to s390.h.
4126         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
4127         const0_operand, consttable_operand, larl_operand, s_operand,
4128         shift_count_operand, bras_sym_operand, load_multiple_operation,
4129         store_multiple_operation, s390_plus_operand): Move to
4130         predicates.md.
4131         (check_mode): Remove.
4132         (s390_branch_condition_mask): Remove 'static'. Move prototype to
4133         s390-protos.h.
4134         (s390_legitimate_address_without_index_p): New.
4135         * config/s390/s390.h (PREDICATE_CODES): Remove.
4136         * config/s390/s390.md: Include predicates.md.
4137         * config/s390/predicates.md: New.
4139 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4141         PR target/20446
4142         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
4143         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
4144         (NEED_INDICATE_EXEC_STACK): Define to 1.
4145         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
4146         (NEED_INDICATE_EXEC_STACK): Define to 1.
4147         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
4148         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
4149         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
4150         (pic_helper_emitted_p): New global.
4151         (emit_pic_helper): New function extracted from...
4152         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
4153         Do not call emit_pic_helper if delay_pic_helper is true.
4154         (sparc_expand_prologue): Pass 'false' to load_pic_register.
4155         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
4156         (sparc_file_end): New function.
4158 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4160         * config/mcore/mcore-protos.h: Remove the prototypes for
4161         mcore_arith_reg_operand, mcore_general_movsrc_operand,
4162         mcore_general_movdst_operand, mcore_reload_operand,
4163         mcore_arith_J_operand, mcore_arith_K_operand,
4164         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
4165         mcore_arith_K_S_operand, mcore_arith_imm_operand,
4166         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4167         mcore_literal_K_operand, mcore_addsub_operand,
4168         mcore_compare_operand, mcore_load_multiple_operation,
4169         mcore_store_multiple_operation, mcore_call_address_operand.
4170         Add a prototype for const_ok_for_mcore.
4171         * config/mcore/mcore.c (mcore_call_address_operand,
4172         mcore_general_movsrc_operand, mcore_general_movdst_operand,
4173         mcore_arith_reg_operand, mcore_reload_operand,
4174         mcore_arith_J_operand, mcore_arith_K_operand,
4175         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
4176         mcore_arith_M_operand, mcore_arith_imm_operand,
4177         mcore_arith_any_imm_operand, mcore_arith_O_operand,
4178         mcore_literal_K_operand, mcore_addsub_operand,
4179         mcore_compare_operand, mcore_load_multiple_operation,
4180         mcore_store_multiple_operation): Move to predicates.md.
4181         (const_ok_for_mcore): Export.
4182         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
4183         * config/mcore/mcore.md: Include predicates.md.
4184         * config/mcore/predicates.md: New.
4186         * config/mcore/predicates.md: Fix a comment typo.
4188 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4189             Adrian Straetling  <straetling@de.ibm.com>
4191         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
4192         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
4193         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
4194         attribute.
4195         ("imul"): Removed from "type" attribute.
4196         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
4197         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
4198         Changed type to imulsi.
4199         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
4201 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4203         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
4204         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
4205         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
4206         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
4207         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
4208         (TARGET_SWITCHES, mcore_stack_increment_string)
4209         (TARGET_OPTIONS): Delete.
4210         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
4211         than *_BIT constants.
4212         (TARGET_8ALIGN): #undef old definition before redefining to 1.
4213         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
4214         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
4215         (mcore_override_options): Delete mcore_stack_increment code.
4216         Change use of M340_BIT to MASK_M340.
4217         * config/mcore/mcore.opt: New file.
4219 2005-04-04  Ian Lance Taylor  <ian@airs.com>
4221         * config/arm/arm.c (replace_symbols_in_block): Remove static
4222         function.
4224 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
4226         * config/fr30/fr30-protos.h: Remove the prototypes for
4227         stack_add_operand, add_immediate_operand,
4228         high_register_operand, low_register_operand, call_operand,
4229         di_operand, and nonimmediate_di_operand.
4230         * config/fr30/fr30.c (stack_add_operand,
4231         add_immediate_operand, high_register_operand,
4232         low_register_operand, call_operand, di_operand,
4233         nonimmediate_di_operand): Move to predicates.md.
4234         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
4235         * config/fr30/fr30.md: Include predicates.md.
4236         * config/fr30/predicates.md: New.
4238         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
4239         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
4240         mcore_call_address_operand.
4242         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
4243         general_movsrc_operand.
4245 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
4247         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
4248         after freeing.
4250 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
4252         PR target/14812
4253         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
4254         a negated value.
4256 2005-04-04  Richard Henderson  <rth@redhat.com>
4257             Jakub Jelinek  <jakub@redhat.com>
4259         PR rtl-optimization/16104
4260         * fold-const.c (fold_unary): Fix folding of vector conversions.
4262 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4264         * config.gcc (xstormy16-*-elf): Set extra_options.
4265         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
4266         * config/stormy16/stormy16.opt: New file.
4268 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
4270         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
4271         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
4272         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
4273         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
4274         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
4275         (TARGET_UNIX_ASM): Delete.
4276         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
4277         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
4278         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
4279         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4280         * config/pdp11/pdp11.opt: New file.
4282 2005-04-03  Roger Sayle  <roger@eyesopen.com>
4283             Alexandre Oliva  <aoliva@redhat.com>
4285         PR c++/19199
4286         * fold-const.c (non_lvalue): Split tests into...
4287         (maybe_lvalue_p): New function.
4288         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
4289         C++ front-end prior to lowering into gimple form.
4291 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4293         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
4294         BUILT_IN_STRNCASECMP): New.
4295         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
4296         and strndup.
4298 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
4300         PR target/14812
4301         * arm.md (addsi3_compare0_for_combiner): Delete.
4302         (addsi3_compare0_scratch_for_combiner): Delete.
4303         (cmpsi_neg_shiftsi): Delete.
4304         (compare_negsi_si): New pattern.
4305         (cmpsi_negshiftsi_si): New pattern.
4306         (negated_cbranchsi4): Restrict to equality_operator.
4308         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
4309         template.
4311 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4313         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
4314         Fix comment typos.
4316         * doc/install.texi: Fix a typo.
4318 2005-04-03  Steven Bosscher  <stevenb@suse.de>
4320         PR middle-end/20648
4321         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
4322         a computed goto if the edge to the computed goto block has
4323         incoming abnormal edges.  Clarify how the function works.
4325 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
4327         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
4328         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
4329         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
4330         hash_scan_set, reg_set_between_after_reload_p,
4331         reg_used_between_after_reload_p, get_avail_load_store_reg,
4332         eliminate_partially_redundant_load): Likewise.
4333         * postreload.c (reload_cse_simplify_set,
4334         reload_combine_note_use): Likewise.
4335         * predict.c (predict_insn, expected_value_to_br_prob,
4336         propagate_freq, expensive_function_p): Likewise.
4337         * print-rtl.c (print_rtx): Likewise.
4338         * profile.c (instrument_edges, instrument_values,
4339         compute_branch_probabilities, branch_prob, union_groups,
4340         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
4341         * protoize.c (in_system_include_dir, file_could_be_converted,
4342         file_normally_convertible, gen_aux_info_file, seek_to_line,
4343         do_cleaning): Likewise.
4344         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
4345         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
4346         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4348 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4350         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
4351         * modulo-sched.c (undo_replace_buff_elem): New structure.
4352         (kernel_number_of_cycles, ps_unschedule_node,
4353         undo_generate_reg_moves,free_undo_replace_buff,
4354         undo_permute_partial_schedule,  loop_single_full_bb_p,
4355         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
4356         build_loops_structure, get_sched_window): New.
4357         (generate_reg_moves): Return undo_replace_buff_elem and other
4358         fixes.
4359         (generate_prolog_epilog): Remove old loop versioning.
4360         (sms_schedule): Use loop information and loop_version.
4361         (sms_schedule_by_order): Split part of it to get_sched_window.
4362         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
4363         cfg_layout_finalize and free_dominance_info before/after SMS.
4365 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
4367         * cfghooks.c (lv_flush_pending_stmts,
4368         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
4369         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
4370         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
4371         lv_add_condition_to_bb,
4372         lv_adjust_loop_header_phi, extract_cond_bb_edges,
4373         flush_pending_stmts): New in cfg_hooks structure.
4374         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
4375         extract_cond_bb_edges, lv_adjust_loop_header_phi,
4376         lv_add_condition_to_bb): New declarations.
4377         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
4378         bool.
4379         (loop_version): Declare.
4380         * cfgloopmanip.c (cfghooks.h): Include.
4381         (duplicate_loop_to_header_edge): Change return type to bool.
4382         (loop_version, lv_adjust_loop_entry_edge): Move here.
4383         * cfgrtl.c (cfgloop.h): Include.
4384         (rtl_verify_flow_info_1): Fix.
4385         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
4386         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
4387         initialization.
4388         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
4389         tree_lv_add_condition_to_bb): New.
4390         (tree_cfg_hooks): Add new hooks to initialization.
4391         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
4392         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
4394 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
4396         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
4397         xstormy16_below100_or_register,
4398         xstormy16_splittable_below100_or_register, and
4399         nonimmediate_nonstack_operand.
4401         * config/stormy16/stormy16-protos.h: Remove the prototypes for
4402         xstormy16_ineqsi_operator, equality_operator,
4403         inequality_operator, shift_operator,
4404         xstormy16_below100_operand, xstormy16_below100_or_register,
4405         xstormy16_splittable_below100_or_register,
4406         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
4407         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
4408         equality_operator, inequality_operator,
4409         xstormy16_below100_operand, xstormy16_below100_or_register,
4410         xstormy16_splittable_below100_or_register,
4411         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
4412         nonimmediate_nonstack_operand, shift_operator): Move to
4413         predicates.md.
4414         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
4415         * config/stormy16/stormy16.md: Include predicates.md.
4416         * config/stormy16/predicates.md: New.
4418 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4420         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
4421         small_int, large_int, reg_or_0_operand, simple_memory_operand,
4422         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
4423         move_operand, power_of_2_operand): Move to predicates.md.
4424         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
4425         PREDICATE_CODE): Remove.
4426         * config/iq2000/iq2000.md: Include predicates.md.
4427         * config/iq2000/predicates.md: New.
4429 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
4431         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
4432         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
4433         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
4434         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
4435         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
4436         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
4437         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
4438         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4439         (TARGET_M68HC11): Delete.
4440         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
4441         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
4442         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
4443         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
4444         (nb_soft_regs): Delete.
4445         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
4446         (m68hc11_override_options): Remove the code that caters for MASK_M6811
4447         and MASK_M6812 being set simultaneously.  Change the code that sets
4448         the default m68hc11_soft_reg_count to use integers instead of strings.
4449         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
4450         m68hc11_soft_reg_count (which now has an int type) as the number
4451         of soft registers.
4452         * config/m68hc11/m68hc11.opt: New file.
4454 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
4456         * config/fr30/fr30.h (PREDICATE_CODES): Remove
4457         fp_displacement_operand, sp_displacement_operand.
4459         * config/m68hc11/m68hc11-protos.h: Add a prototype for
4460         m68hcc_auto_inc_p.
4461         Remove the prototypes for tst_operand, cmp_operand,
4462         stack_register_operand, d_register_operand,
4463         hard_addr_reg_operand, splitable_operand,
4464         m68hc11_logical_operator, m68hc11_arith_operator,
4465         m68hc11_non_shift_operator, m68hc11_shift_operator,
4466         m68hc11_unary_operator, m68hc11_eq_compare_operator,
4467         non_push_operand, hard_reg_operand, and
4468         reg_or_some_mem_operand.
4469         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
4470         extern.
4471         (tst_operand, cmp_operand, non_push_operand,
4472         splitable_operand, reg_or_some_mem_operand,
4473         stack_register_operand, d_register_operand,
4474         hard_addr_reg_operand, hard_reg_operand,
4475         m68hc11_eq_compare_operator, m68hc11_logical_operator,
4476         m68hc11_arith_operator, m68hc11_non_shift_operator,
4477         m68hc11_shift_operator, m68hc11_unary_operator): Move to
4478         predicates.md.
4479         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
4480         * config/m68hc11/m68hc11.md: Include predicates.md.
4481         * config/m68hc11/predicates.md: New.
4483 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4485         PR debug/19345
4486         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
4487         change checked in along with 2005-03-03's patch for debug/20253.
4488         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
4489         (remap_decl): Insert type decl in map earlier.
4491 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4493         PR tree-optimization/20640
4494         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
4495         post-dominator if it has phi nodes.
4496         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
4497         before dead statements.
4499 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4501         PR middle-end/20491
4502         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
4504 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
4506         PR rtl-optimization/20290
4507         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
4508         in every iteration if the entry point is the exit test.
4510 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
4512         * config/cris/cris.md (attribute "length"): Define.
4514 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
4516         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
4517         (word_offset_memref_operand): New.
4518         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
4519         (indexed_or_indirect_operand): Delete.
4520         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
4521         (indexed_or_indirect_operand): Delete.
4523         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
4525         PR 20650
4526         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
4527         a register.
4529         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
4530         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
4532 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4534         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
4536 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4538         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
4539         (rus, prus): Remove static variables.
4540         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
4541         (process_command): Permit report_times and use_pipes together.
4543 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4545         * c-decl.c (validate_proto_after_old_defn): Look at
4546         TYPE_MAIN_VARIANT of argument types.
4548 2005-04-01  Paul Brook  <paul@codesourcery.com>
4550         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
4551         (arm_output_function_epilogue): Allow call_via_SP.
4552         (thumb_call_via_reg, arm_file_end): Ditto.
4553         * config/arm/arm.h (struct machine_function): Include space for SP.
4554         (thumb_call_via_label): Update declaration.
4556 2005-04-01  Ian Lance Taylor  <ian@airs.com>
4558         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
4559         doing a peephole optimization, once again put any notes in the
4560         proper position.
4562 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4564         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
4566 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4568         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
4569         (block_alloc, find_free_reg): Likewise.
4570         * loop-doloop.c (doloop_modify): Likewise.
4571         * loop-invariant.c (record_use): Likewise.
4572         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
4573         get_iv_value, canon_condition, eliminate_implied_condition,
4574         eliminate_implied_condition, simplify_using_initial_values,
4575         shorten_into_mode, canonicalize_iv_subregs,
4576         iv_number_of_iterations): Likewise.
4577         * loop-unroll.c (expand_var_during_unrolling): Likewise.
4578         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
4579         unswitch_loop): Likewise.
4580         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
4581         move_movables, replace_call_address, find_and_verify_loops,
4582         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
4583         record_giv, final_giv_value, general_induction_var,
4584         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
4585         loop_giv_dump): Likewise.
4587         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
4588         GCOV_CHECK_WRITING): Remove.
4589         (gcov_position, gcov_rewrite): Use gcc_assert.
4590         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
4591         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
4592         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
4593         gcc_assert.
4595 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4597         * tree-inline.c: Fix a typo.
4599 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
4601         * configure.ac (enable-checking): Explicitly set all variables for
4602         collective switch values.  Alphabetize variables. Rename
4603         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
4604         synonym for 'no'.
4605         * doc/install.texi (enable-checking): Update documentation.
4606         * configure: Rebuilt.
4608 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4610         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
4611         possible.
4613 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4615         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
4616         Also reject cases where this pattern will cause load delay stalls
4617         unless optimizing for size and it will produce a shorter sequence.
4618         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
4619         variants to avoid pre-adjusting the base when possible.
4621 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
4623         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
4624         the frame and argument pointers.
4625         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
4626         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
4627         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
4628         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
4629         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
4630         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
4632 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
4634         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
4635         with entry for selectany attribute.
4636         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
4637         Declare.
4638         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
4639         (i386_pe_asm_named_section): Handle sections generated by
4640         selectany attribute.
4641         * doc/extend.texi (selectany): Document attribute.
4643 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
4644             Jan Hubicka  <jh@suse.cz>
4646         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
4647         to fix addresses involving EBP and ESP.
4648         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
4649         for SUBREGed registers.
4650         (legitimate_address_p): Accept SUBREGed registers.
4652 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
4654         PR c++/19406
4655         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
4656         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
4657         for FIELD_DECLs.
4659 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4661         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
4663 2005-04-01  James E Wilson  <wilson@specifixinc.com>
4665         PR c++/20505
4666         * dwarf2out.c (rtl_for_decl_init): New function.
4667         (rtl_for_decl_location): Extracted from here.
4668         (tree_add_const_value_attribute): Call rtl_for_decl_init and
4669         add_const_value_attribute.  Delete initializer_constant_valid_p call.
4671 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
4673         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
4674         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
4675         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
4676         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
4677         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
4678         config/i386/i386.md, config/rs6000/predicates.md,
4679         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
4680         config/s390/s390.c, config/stormy16/stormy16.c,
4681         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
4682         typos.
4684 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
4686         PR c/17855
4687         * gimplify.c (gimplify_expr): Create a temporary for lvalue
4688         COND_EXPR and CALL_EXPR.
4690 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
4692         PR target/20632
4693         * genautomata.c (first_cycle_unit_presence): Check all alternative
4694         states for unit presence.
4696         * doc/md.texi: Remove remark about impossibility to query unit
4697         presence in non nondeterministic automaton state.
4699         * config/ia64/ia64.c (get_template): Change order of unit querying.
4701 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4703         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
4704         obsolete comment.
4706 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
4708         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
4709         flag for edges outside any loops.
4711 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
4713         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
4715 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4717         * tree-ssa-alias.c: Follow spelling conventions.
4718         * doc/tree-ssa.texi: Fix a typo.
4720 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
4722         * postreload-gcse.c: Include target.h.
4723         (gcse_after_reload_main): Return early if we cannot modify jumps.
4724         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
4726 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
4728         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
4729         expensive operations.
4731 2005-03-31  Ian Lance Taylor  <ian@airs.com>
4733         * collect2.c (lderrout): New variable.
4734         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
4735         if it is set, to stderr.
4736         (handler): Unlink lderrout if it is set.
4737         (dump_file): Add "to" parameter.  Change all callers.
4738         (main): Initialize lderrout.
4739         (collect_execute): Add errname parameter.  Change all callers.
4740         Rename redir parameter to outname.  Never pass
4741         PEX_STDERR_TO_STDOUT to pex_run.
4742         * collect2.h (collect_execute, dump_file): Update declarations.
4743         * tlink.c (tlink_execute): Add errname parameter.  Change all
4744         callers.
4745         (do_tlink): Check lderrout as well as ldout.
4747 2005-03-31  Caroline Tice  <ctice@apple.com>
4749         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
4750         (bb-reorder.o): Add errors.h to list of requirements.
4751         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
4752         profiledbootstrap flags.
4753         * bb-reorder.c (errors.h): Add new include.
4754         (struct bbro_basic_block_data_def): Add new field, in_trace.
4755         (add_unlikely_executed_notes):  Remove function.
4756         (mark_bb_for_unlikely_executed_section): Remove function.
4757         (insert_section_boundary_note): New function.
4758         (verify_hot_cold_block_grouping): New function.
4759         (push_to_next_round_p): Remove variables and tests that push all
4760         cold blocks to last round.
4761         (find_traces): Remove code that added extra round of trace finding
4762         when doing partitioning.
4763         (find_traces_1_round) :  Remove variable last_round;  add code to
4764         update new struct field, in_trace; correct trace_length where it was
4765         incorrect before (after call to copy_bb); change code that pushed all
4766         cold blocks to last round. Instead verify that all blocks going into
4767         a trace belong in the same partition.
4768         (connect_traces): Modify to connect the traces in two passes, if the
4769         function contains both hot and cold blocks.  The first pass connects
4770         all the traces for blocks in the partition that the first block in
4771         the function belongs to; the second pass connnects all the traces
4772         containing blocks that belong in the other partition.
4773         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
4774         code that automatically put the first block in a function into the
4775         hot partition if the function had any hot blocks.
4776         (fix_crossing_unconditional_branches): Check number of succ edges
4777         before attempting to get one.
4778         (fix_edges_for_rarely_executed_code):  Update comment describing
4779         function.
4780         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
4781         remove call to add_unlikely_executed_notes; add call to
4782         verify_hot_cold_block_grouping.
4783         (duplicate_computed_gotos): Don't change computed goto if it's a
4784         crossing edge.
4785         (partition_hot_cold_basic_blocks):  Update function comment.
4786         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
4787         condition.
4788         (try_forward_edges): Likewise.
4789         (merge_blocks_move_predecessor_nojumps): Likewise.
4790         (merge_blocks_move_successor_nojumps): Likewise.
4791         (merge_blocks_move): Likewise.
4792         (try_crossjump_bb): Likewise.
4793         * cfglayout.c (update_unlikely_executed_notes): Remove function.
4794         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
4795         notes to cold bb's; remove call to update_unlikely_executed_notes.
4796         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4797         NOTE_INSN_SWITCH_TEXT_SECTIONS.
4798         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
4799         function declaration.
4800         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
4801         from consideration.
4802         (rtl_can_merge_blocks): Remove redundancy from condition.
4803         (try_redirect_by_replacing_jump): Likewise.
4804         (force_nonfallthru_and_redirect): Remove code for adding
4805         UNLIKELY_EXECUTED_CODE notes to cold bb's.
4806         (commit_one_edge_insertion): Likewise.
4807         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
4808         * dbxout.c (FORCE_TEXT): Replace function_section with
4809         current_function_section.
4810         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
4811         function, switch_text_section.
4812         (struct xcoff_debug): Likewise.
4813         (dbxout_function_end): Add code to put out label diffs for both
4814         hot and cold sections.
4815         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
4816         for new debug_hooks funciton, switch_text_section..
4817         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
4818         switch_text_section.
4819         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
4820         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
4821         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
4822         dw_fde_switched_sections.
4823         (output_call_frame_info):  Add test to see if function switches text
4824         sections in the middle; if so, use appropriate extra hot and cold
4825         section labels to compute size deltas for the hot and cold sections.
4826         (dwarf2out_begin_prologue): Add code to initialize new fields in
4827         dw_fde_struct.
4828         (dwarf2out_switch_text_section): New function (invoked through
4829         debug_hook); updates new fields in dw_fde_struct appropriately and
4830         increments separate_line_info_table_in_use.
4831         (dwarf2_debug_hooks): Initialize switch_text_section function to be
4832         dwarf2out_switch_text_section.
4833         (struct var_loc_node): Add new field, section_label.
4834         (output_aranges): Add code to check whether in hot or cold section and
4835         use the appropriate label in calculating deltas.
4836         (output_ranges): Likewise.
4837         (output_line_info): Add code to check which section we're in and
4838         use appropriate hot/cold label.
4839         (add_location_or_constant_value_attribute): Likewise.
4840         (gen_subprogam_die): Modify arange attributes to use correct labels.
4841         (dwarf2out_begin_block): Change call to function_section into call to
4842         current_function_section.
4843         (dwarf2out_end_block): Likewise.
4844         (dwarf2out_source_line): Likewise.
4845         (dwarf2out_var_location): Add code to check whether in hot or cold
4846         section and use the appropriate label.
4847         * except.c (output_function_exception_table): Change call to
4848         function_section into call to current_function_section.
4849         * final.c (profile_function): Likewise.
4850         (scan_ahead_for_unlikely_executed_note): Remove function.
4851         (final_scan_insn):  Remove calls to
4852         scan_ahead_for_unlikely_executed_note, and related code for switching
4853         to cold section, except for the single time
4854         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
4855         debug_hooks->switch_text_sections; replace appropriate calls to
4856         function_section with calls to current_function_section.
4857         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
4858         test_bb to condition.
4859         (find_if_case_2): Likewise.
4860         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
4861         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
4862         * opts.c (decode_options): Change warning about hot/cold partitioning
4863         with exceptionss to inform (so as not to cause bootstrap failures);
4864         remove warning about partitioning with DWARF debug info.
4865         * output.h (current_function_section): Add new function decl.
4866         (insert_section_boundary_note): Likewise.
4867         (enum in_section): Move this declaration here from varasm.c.
4868         (unlikely_section_label): Likewise.
4869         (unlikely_text_section_name): Likewise.
4870         (last_text_section_name): New global variable.
4871         (last_text_section): Likewise.
4872         (hot_section_label): Likewise.
4873         (hot_section_end_label): Likewise.
4874         (cold_section_end_label): Likewise.
4875         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
4876         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
4877         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
4878         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
4879         insn from consideration.
4880         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
4881         switch_text_section.
4882         * varasm.c (basic-block.h): Add new include.
4883         (unlikely_section_label_printed): Remove global variable.
4884         (unlikely_section_label): Make global variable not be static any more.
4885         (unlikely_text_section_name): Likewise.
4886         (hot_section_end_label): New global variable (not static)
4887         (first_function_block_is_cold): Likewise.
4888         (hot_section_label): Likewise.
4889         (cold_section_end_label): Likewise..
4890         (last_text_section): New global variable, not static.
4891         (last_text_section_name): New global variable, not static.
4892         (initialize_cold_section_name): New function.
4893         (enum in_section): Move declaration to output.h.
4894         (text_section): Update last_text_section.
4895         (unlikely_text_section): Replace code to determine cold section name
4896         with call to initialize_cold_section_name; Add code to update
4897         last_text_section; remove code for printing out label.
4898         (named_section_real): Add code to update last_text_section and
4899         last_text_section_name as appropriate.
4900         (function_section): Change test for 'unlikely' to depend on
4901         first_function_block_is_cold (moved old test to
4902         current_function_section).
4903         (current_function_section): New function.
4904         (assemble_start_function): Move code that frees
4905         unlikely_text_section_name; initialize hot_section_end_label;
4906         print hot and cold section labels at the start of the function;
4907         set first_function_block_is_cold, if appropriate; initialize l
4908         ast_text_section; add call to insert_section_boundary_note.
4909         (assemble_end_function):  Add code to write out hot and cold section
4910         end labels.
4911         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
4912         switch_text_section.
4913         * config/darwin.c (machopic_select_section): Replace incorrect
4914         function in base_funs; update reloc for cold sections if necessary.
4915         * config/darwin.h (SECTION_FUNCTION):  Add code to update
4916         last_text_section if appropriate.
4917         (text_unlikely_section): Remove.
4918         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
4919         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
4920         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
4921         partitioning for this architecture.
4923 2005-03-31  Olivier Hainque  <hainque@adacore.com>
4925         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
4926         defined and non-zero.
4928 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4930         PR c++/18644
4931         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
4932         semantics.
4934 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
4936         PR target/20611
4937         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
4938         label operand.  Remove (use (unspec..)).  Don't emit a label on
4939         the offset word.
4940         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
4941         generate inline label for load_toc_v4_PIC_1b.
4942         (rs6000_emit_load_toc_table): Likewise.
4944 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
4946         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
4947         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
4949 2005-03-29  Devang Patel  <dpatel@apple.com>
4951         * tree-sra.c (decide_block_copy): Disable scalarization of
4952         sub-elements.
4954 2005-03-30  Stuart Hastings  <stuart@apple.com>
4955             Dale Johannesen  <dalej@apple.com>
4957         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
4958         * print-tree.c (print_node):  Add case STATEMENT_LIST.
4960 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
4962         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
4963         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
4964         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
4965         is given with "powerpc64*" or "all", or when --with-cpu chooses
4966         a 64-bit cpu.
4968 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
4970         PR debug/20268
4971         * dwarf2out.c (add_high_low_attributes): New function, extracted from
4972         gen_lexical_block_die.
4973         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
4975 2005-03-31  Jan Hubicka  <jh@suse.cz>
4977         2004-11-02  Jan Hubicka  <jh@suse.cz>
4979         * cgraph.c (cgraph_varpool_node_name): New function.
4980         (dump_cgraph_varpool_node): New function.
4981         (dump_varpool): New function.
4982         * cgraphunit.c (cgraph_optimize): Dump varpool.
4984         2004-10-16  Jan Hubicka  <jh@suse.cz>
4986         * cgraph.c (decide_is_variable_needed): New function.
4987         (cgraph_varpool_finalize_decl): Use it.
4988         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
4989         unit-at-a-time.
4990         * final.c (output_addr_const): Do not call mark_referenced.
4991         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
4992         always go via cgraph.
4993         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
4994         (check_global_declarations): Ifdef out code clearing DECL_RTL.
4995         * tree-optimize.c (execute_inline): Mark functions called.
4996         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
4998         2004-10-11  Jan Hubicka  <jh@suse.cz>
5000         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
5001         (cgraph_varpool_last_needed_node): New static variable.
5002         (enqueue_needed_varpool_node): Break out from ...; add items to the
5003         end of queue; update first pointers.
5004         (cgraph_varpool_mark_needed_node): ... here.
5005         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
5006         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
5007         * cgraph.h (cgraph_varpool_node): Add analyzed field.
5008         (cgraph_varpool_first_unanalyzed_node): Declare.
5009         * cgraphunit.c: Include output.h.
5010         (cgraph_varpool_analyze_pending_decls): New function.
5011         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
5012         for errors, analyze pending decls.
5013         (cgraph_finalize_compilation_unit): Only analyze decls.
5014         (cgraph_optimize): Assemble the decls after expanding.
5016 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
5018         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
5019         subvars get marked properly in tags for grouping.
5020         (add_pointed_to_var): Mark only actual pointed to
5021         variables/subvars in addresses needed.
5022         (create_overlap_variables_for): Clear call clobbered on original
5023         variable.
5024         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
5025         addresable vars with subvars into list.
5026         * tree-ssa.c (verify_ssa_name): Verify original is not used where
5027         subvar should be.
5029 2005-03-30  Richard Henderson  <rth@redhat.com>
5031         * cgraph.h (struct cgraph_node): Add alias.
5032         * varasm.c (assemble_alias): Set it.
5033         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
5034         avoid calling cgraph_expand_function.
5036 2005-03-30  Tom Tromey  <tromey@redhat.com>
5038         * tree.def (FILE_TYPE): Removed.
5039         * typeclass.h (enum type_class): Removed file_type_class.
5040         * dwarf2out.c (is_base_type): Updated.
5041         (gen_type_die): Likewise.
5042         * dbxout.c (dbxout_type): Updated.
5043         * builtins.c (type_to_class): Updated.
5044         * tree.c (type_contains_placeholder_1): Updated.
5045         * config/sparc/sparc.c (sparc_type_code): Updated.
5046         * config/ia64/ia64.c (hfa_element_mode): Updated.
5047         * expr.c (count_type_elements): Updated.
5048         * stor-layout.c (layout_type): Updated.
5049         * tree-inline.c (remap_type): Updated.
5050         * tree-pretty-print.c (dump_generic_node): Updated.
5052 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
5054         * builtins.c (expand_builtin_powi): Fix mode of
5055         2nd argument to match int.
5056         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
5057         2nd argument type to int.
5058         * libgcc2.c: Change prototype of __powi* functions to use
5059         int.
5061 2005-03-30  Dale Johannesen  <dalej@apple.com>
5063         PR middle-end/19225
5064         * calls.c (expand_call):  Flush pending deferrals before
5065         throwing call.
5067 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5069         PR c/772
5070         PR c/17913
5071         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
5072         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
5073         c_label_context, label_context_stack): New.
5074         * c-decl.c (define_label): Check for jumps into statement
5075         expressions.  Add label to list of defined labels.
5076         (start_function): Push context on label_context_stack.
5077         (finish_function): Pop context from label_context_stack.
5078         * c-typeck.c (label_context_stack): New.
5079         (c_finish_goto_label): Check for jumps into statement
5080         expressions.  Add label to list of jumped to labels.
5081         (struct c_switch): Add blocked_stmt_expr.
5082         (c_start_case): Initialize it.
5083         (do_case): Check it.
5084         (c_finish_case): Verify !blocked_stmt_expr.
5085         (c_begin_stmt_expr):  Push context on label_context_stack.
5086         Increment blocked_stmt_expr.  Mark labels jumped to from outside
5087         as undefinable.
5088         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
5089         defined in the statement expression and no longer jumpable to.
5090         Mark labels jumped to from just outside the statement expression
5091         as again definable.  Pop context from label_context_stack.
5092         * doc/extend.texi (Statement Exprs): Update.
5094 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
5096         PR c/20368
5097         * c-decl.c (start_function): Check for old_decl being
5098         error_mark_node.
5100 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5102         * final.c (final): Remove prescan parameter.  Change all callers.
5103         (final_scan_insn): Remove prescan parameter.  Change all callers.
5105 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
5107         * tree-vectorizer.c: Fix comment typos.
5109 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
5111         * tree-scalar-evolution.c (instantiate_parameters_1): Return
5112         as soon as a chrec_dont_know is detected.
5114 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
5116         Merge from csl-arm-branch.
5117         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
5119         * tlink.c (recompile_files): Do not assume that "rename" can
5120         overwrite an existing file.
5122 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
5124         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
5125         * gcc/configure: Regenerate.
5127 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5129         * doc/install.texi: Update binutils requirement for powerpc*-linux.
5131         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
5133         * calls.c (struct arg_data): Update "partial" comment.
5134         (load_register_parameters): Update "nregs" comment.
5136 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5138         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
5139         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
5140         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
5141         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
5142         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
5143         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
5144         than target_flags & 0.
5145         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
5146         (iq2000_arch, iq2000_parse_cpu): Delete.
5147         (TARGET_HANDLE_OPTION): Override default.
5148         (iq2000_handle_option): New function.
5149         (override_options): Remove -march= and -mcpu= handling.
5150         * config/iq2000/iq2000.opt: New file.
5152 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5154         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
5155         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
5156         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
5157         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
5158         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
5159         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
5160         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
5161         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
5162         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
5163         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
5164         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
5165         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
5166         (c4x_rpts_cycles_string, c4x_cpu_version_string)
5167         (TARGET_OPTIONS): Delete.
5168         (c4x_rpts_cycles, c4x_cpu_version): Declare.
5169         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
5170         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
5171         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
5172         (c4x_cpu_version_string): Delete.
5173         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5174         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
5175         equivalent -mcpu= option.
5176         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
5177         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
5178         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
5179         or clearing the appropriate MASK_* bit.
5180         (c4x_file_start): Use c4x_cpu_version.
5181         * config/c4x/c4x.opt: New file.
5183 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5185         * doc/options.texi: Document the new MaskExists flag.
5186         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
5187         if the option has the MaskExists flag.
5189 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
5191         * opt-functions.awk (flag_set_p, test_flag): New functions.
5192         (switch_flags): Use them.
5193         * opth-gen.awk: Use flag_set_p to check for flags.
5194         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
5196 2005-03-30  Ian Lance Taylor  <ian@airs.com>
5198         * config.host (i[34567]86-*-mingw32*): Don't set
5199         host_can_use_collect2 to no.
5201 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
5203         PR target/20203
5204         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
5205         Remove convert_memory_address call duplicating that in memory_address.
5207 2005-03-29  Richard Henderson  <rth@redhat.com>
5209         PR c/20519
5210         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
5211         (build_compound_literal): Likewise.  Propagate decl type into the
5212         initializer.
5213         (finish_decl): Likewise.  Use new return value from complete_array_type
5214         for zero sized arrays.
5215         (complete_array_type): Move ...
5216         * c-common.c (complete_array_type): ... here.  Change first argument
5217         to pointer-to-type-node.  Consistently use sizetype for the index
5218         except for zero sized arrays.  Detect zero sized arrays for pedantic
5219         mode diagnostics.  Create a new type node instead of modifying the
5220         old node in place.
5221         * c-tree.h (complete_array_type): Move decl ...
5222         * c-common.h (complete_array_type): ... here.
5224 2005-03-29  Richard Henderson  <rth@redhat.com>
5226         PR tree-opt/19108
5227         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
5229 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
5231         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
5232         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
5233         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
5234         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
5236 2005-03-29  Eric Christopher  <echristo@redhat.com>
5238         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
5239         truthvalue conversion removal.
5241 2005-03-29  Ian Lance Taylor  <ian@airs.com>
5243         PR bootstrap/14316
5244         * collect2.c: Never include <vfork.h>.
5245         (VFORK_STRING, vfork): Don't define.
5246         (pid): Remove global variable.
5247         (handler): Call raise instead of kill (getpid(), ...).
5248         (collect_wait): Add pex parameter.  Change all callers.  Use
5249         pex_get_status rather than pwait.
5250         (do_wait): Add pex parameter.  Change all callers.
5251         (collect_execute): Return struct pex_obj * rather than void.  Use
5252         pex routines rather than pexecute.
5253         (fork_execute): Get pex_obj from collect_execute, and pass it to
5254         do_wait.
5255         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
5256         Only declare quit_handler if SIGQUIT is defined.
5257         (scan_libraries): Likewise.
5258         * collect2.h (collect_execute): Update declaration.
5259         (collect_wait): Update declaration.
5260         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
5261         pass it to collect_wait.
5263 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
5265         PR c/20672
5266         * c-parser.c (c_parser_compound_statement_nostart): Give error
5267         message for EOF instead of just setting parser->error.
5269 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
5271         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
5272         (slpeel_update_phi_nodes_for_guard1): New function.
5273         (slpeel_update_phi_nodes_for_guard2): New function.
5274         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
5275         of slpeel_update_phi_nodes_for_guard.
5276         (vectorize_loops): Remove call to loop_closed_rewrite.
5277         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
5278         assertion.
5280 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
5282         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
5283         (TARGET_LITTLE_ENDIAN): New macro.
5284         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
5285         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
5286         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
5287         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
5288         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
5289         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
5290         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
5291         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
5292         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
5293         (TARGET_OPTIONS): Delete.
5294         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
5295         (CACHE_FLUSH_TRAP): Turn into an integer.
5296         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
5297         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
5298         -mflush-trap is in use.
5299         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
5300         (m32r_cache_flush_trap_string): Delete.
5301         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
5302         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
5303         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
5304         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5305         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
5306         -mmodel= and -msdata= handling from...
5307         (m32r_init): ...here.
5308         * config/m32r/m32r.opt: New file.
5310 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
5312         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
5313         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
5314         * tree-vect-analyze.c (vect_object_analysis): additional parm
5315         pass back a "struct ptr_info_def *" with the points-to info.
5316         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
5317         statement using info returned from vect_object_analysis.
5318         * tree-vect-transform.c (update_vuses_to_preheader): New function.
5319         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
5320         for virtual uses and defs when creating a replacement vector
5321         reference.  Call duplicate_ssa_name_ptr_info to define points-to
5322         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
5323         (vectorizable_store): copy_virtual_operands and update
5324         definition statements.
5325         (vectorizable_load): copy_virtual_operands.  Remove call to
5326         mark_call_clobbered_vars_to_rename for call to "const" builtin.
5327         * tree-vectorizer.c (vectorize_loops): Remove calls to
5328         rewrite_into_ssa and bitmap_clear (vars_to_rename).
5329         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
5330         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
5331         define macro STMT_VINFO_PTR_INFO for use in accessing.
5332         * tree.h add export of duplicate_ssa_name_ptr_info.
5333         * rs6000.c (altivec_init_builtins): Declare builtin function
5334         __builtin_altivec_mask_for_load to be "const".
5336 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
5338         PR middle-end/20622
5339         * cgraph.h (struct cgraph_varpool_node): Add alias field.
5340         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
5341         assemble_variable on aliases.
5342         * varasm.c (assemble_alias): Set node->alias.
5343         * toplev.c (wrapup_global_declarations): Don't call
5344         rest_of_decl_compilation on aliases again.
5346 2005-03-29  Paul Brook  <paul@codesourcery.com>
5348         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
5349         * config/arm/arm.c (arm_dbx_register_number): New function.
5350         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
5352 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5354         PR middle-end/20263
5355         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
5356         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
5358 2005-03-29  Dale Johannesen <dalej@apple.com>
5360         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
5361         $(TREE_H) and $(COVERAGE_H).
5362         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
5363         * opts.c (common_handle_option): Enable tree-based value transforms.
5364         * toplev.c (process_options): Ditto.
5365         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
5366         refers to references to this type.
5367         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
5368         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
5369         for may_be_more, may_be_less.
5370         (rtl_gen_pow2_profiler): Adjust.
5371         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
5372         (rtl_gen_one_value_profiler): Adjust.
5373         (rtl_gen_const_delta_profiler): Adjust.
5374         * tree-profile.c (tree_gen_interval_profiler): Implement.
5375         (tree_gen_pow2_profiler): Ditto.
5376         (tree_gen_one_value_profiler): Ditto.
5377         (tree_profiling): New.
5378         (pass_tree_profile): Reference it.
5379         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
5380         tree.h, gcov-io.h.
5381         (insn_divmod_values_to_profile): Rename to
5382         rtl_divmod_values_to_profile. Adjust.
5383         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
5384         (insn_prefetch_values_to_profile): Adjust.
5385         (rtl_value_profile_transformations): Adjust.
5386         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
5387         (gen_mod_pow2): Rename to rtl_mod_pow2.
5388         (gen_mod_subtract): Rename to rtl_mod_subtract.
5389         (divmod_fixed_value_transform): Rename to
5390         rtl_divmod_fixed_value_transform.
5391         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
5392         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
5393         (rtl_find_values_to_profile): Adjust.
5394         (tree_value_profile_transformations): Implement.
5395         (tree_divmod_values_to_profile): New.
5396         (tree_values_to_profile): New.
5397         (tree_divmod_fixed_value): New.
5398         (tree_mod_pow2): New.
5399         (tree_mod_subtract): New.
5400         (tree_divmod_fixed_value_transform): New.
5401         (tree_mod_pow2_value_transform): New.
5402         (tree_mod_subtract_transform): New.
5403         (tree_find_values_to_profile): Implement.
5404         * profile.c (instrument_values):  Free histograms.
5405         (compute_value_histograms): Adjust. Implement tree version.
5407 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
5409         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
5410         * config/i386/i386.c (output_fix_trunc): Add new round_mode
5411         variable.  Output "fldcw" depending on round_mode.
5412         * config/i386/i386.md (UNSPEC_FIST): New.
5413         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
5414         New isns patterns to implement lrint and llrint built-ins as x87
5415         intrinsic function.
5416         (fistdi2, fist<mode>2 splitters): New splitters.
5417         (lrint<mode>2): New expanders.
5419 2005-03-28  Ian Lance Taylor  <ian@airs.com>
5421         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
5422         0 when calling final_scan_insn.
5424 2005-03-28  Jan Hubicka  <jh@suse.cz>
5426         PR middle-end/20635
5427         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
5428         as needed.
5430         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
5431         types where possible.
5433 2005-03-26  Per Bothner  <per@bothner.com>
5435         Make -f[no-]show-column also control non-cpp diagnostics.
5436         * c.opt (fshow-column): Move option from here ...
5437         * common.opt (fshow-column): ... to here.
5438         * diagnostic.c (diagnostic_build_prefix): Only print column number
5439         if flag_show_column.
5441 2005-03-27  Steven Bosscher  <stevenb@suse.de>
5443         * vax-protos.h (vax_output_int_move, vax_output_int_add,
5444         vax_output_conditional_branch): New prototypes.
5445         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
5446         extracted from vax.md mov and add patterns.
5447         (vax_output_conditional_branch): New function to output conditional
5448         branch instructions.
5449         * vax.md: Use mode macros for arithmetic and mov patterns.
5450         Use code macros for the jump patterns.
5452 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5454         * Makefile.in (libbackend.o): Depend on version files;
5455         add custom generation command.
5457 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
5459         PR target/20636
5460         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
5461         sure that we have a REG before getting its REGNO.
5463 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5465         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
5466         * builtins.def (BUILT_IN_STRNDUP): New.
5468 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
5470         PR tree-optimization/20470
5471         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
5472         ABS(x-y).
5474 2005-03-25  Mike Stump  <mrs@apple.com>
5476         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
5477         sized objects.
5479 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
5481         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
5482         Use our own structure definitions.
5484         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
5485         (fix_truncdfsi2): Allow registers or memory as destination.
5486         When TARGET_PPC_GFXOPT, generate simplified pattern.
5487         (fix_truncdfsi2_internal): Use define_insn_and_split.
5488         (fix_truncdfsi2_internal_gfxopt): New.
5489         (fctiwz): Don't confuse register allocation by giving it no choices.
5490         (stfiwx): New.
5491         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
5492         (EXTRA_MEMORY_CONSTRAINT): Likewise.
5493         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
5494         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
5496 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5498         * dominance.c (free_dominance_info): Speed up by freeing et
5499         data structures without maintaining other nodes.
5500         * et-forest.c (et_free_tree_force): New.
5501         * et-forest.h: Add a prototype for et_free_tree_force.
5503         * tree.c (get_set_constructor_bits,
5504         get_set_constructor_bytes): Remove.
5505         * tree.h: Remove the corresponding prototypes.
5507 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
5509         PR target/15491
5510         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
5511         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
5512         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
5513         PRE_DEC, NEG and NOT.
5515 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
5517         * fold-const.c: Convert uses of fold (build (...)) to
5518         fold_buildN.
5520 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
5522         PR rtl-optimization/20249
5523         * cse.c (insert_regs): Do not record equivalence of registers in
5524         different modes.
5526 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
5528         * emit-rtl.c (reverse_comparison): Remove.
5529         * rtl.h: Remove the corresponding prototype.
5531 2005-03-24  James E Wilson  <wilson@specifixinc.com>
5533         * doc/install.texi (--enable-altivec): Delete docs.
5535 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
5537         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
5538         SFmode and DFmode before reload when
5539         flag_unsafe_math_optimizations not enabled.
5541 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
5543         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
5545         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
5546         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
5548 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
5550         * configure.ac (enable-checking): Add 'runtime' option.
5551         * doc/install.texi (enable-checking): Document 'runtime' checking.
5552         * tsystem.h (gcc_assert, gcc_unreachable): Define.
5553         * config.in: Regenerated.
5554         * configure: Regenerated.
5556 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
5558         * optabs.h (enum optab_index): Remove OTI_llrint.
5559         (llrint_optab): Remove macro.
5560         * optabs.c (init_optabs): Remove llrint_optab initialization.
5561         * genopinit.c (optabs): Remove llrint_optab implementation.
5562         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
5563         using lrint_optab.
5565 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
5567         PR rtl-optimization/20532
5568         * simplify-rtx.c (simplify_binary_operation_1): Protect from
5569         overflow when adding coefficients for PLUS or MINUS.
5570         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
5571         two as multiplier.
5573 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5575         * langhooks.h (truthvalue_conversion): Remove.
5576         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5577         LANG_HOOKS_TRUTHVALUE_CONVERSION.
5578         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
5579         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
5580         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
5582 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
5584         * params.def: Fix a typo.
5585         * config/mips/mips.c: Follow the spelling convensions.
5586         * doc/invoke.texi: Fix typos.
5588 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
5590         Fix PR tree-optimization/20601
5592         * tree-ssa-pre.c (insert_aux): Add missing condition to
5593         constification.
5595 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5597         * final.c (final_scan_insn): Don't remove no-op instructions.
5598         * reload1.c (reload): Remove simple no-op instructions even when
5599         not optimizing.
5601 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
5603         PR tree-optimization/20501
5604         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
5605         reporting that peeling for alignment is applied moved to...
5606         * (vect_analyze_data_refs_alignment): Here.
5608 2005-03-23  Ian Lance Taylor  <ian@airs.com>
5610         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
5612 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5614         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
5615         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
5617 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
5619         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
5620         imply that this is called once, independent of asms in code.
5621         Adjust to now being pased output and input lists.  Mention helper
5622         function decl_overlaps_hard_reg_set_p.
5623         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
5624         hook_tree_tree_identity and to take three trees, returning third.
5625         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
5626         prototype.
5627         * stmt.c: include hard-reg-set.h before tree.h.
5628         (decl_overlaps_hard_reg_set_p): New function, broken out from...
5629         (decl_conflicts_with_clobbers_p): Call
5630         decl_overlaps_hard_reg_set_p.
5631         (expand_asm_operands): Pass output and input lists in call to
5632         targetm.md_asm_clobbers.
5633         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
5634         hook_tree_tree_tree_tree_3rd_identity.
5635         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
5636         parameters.
5637         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
5638         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
5639         parameters, first two unused.
5640         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
5641         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
5642         in constraint letters and MOF is not mentioned as a asm-declared
5643         register in neither of the input and output lists.
5645 2005-03-23  DJ Delorie  <dj@redhat.com>
5647         * optabs.c (expand_binop): Make sure the first subword's result
5648         gets stored.
5650 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5652         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
5653         Call c_common_truthvalue_conversion rather than
5654         lang_hooks.truthvalue_conversion.
5655         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
5656         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
5657         c-typeck.c.
5658         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
5659         c_common_truthvalue_conversion.
5660         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
5661         c_parser_conditional_expression, c_parser_binary_expression): Call
5662         c_objc_common_truthvalue_conversion.
5663         * c-typeck.c (build_unary_op): Call
5664         c_objc_common_truthvalue_conversion.
5665         (build_conditional_expr): Do not call
5666         lang_hooks.truthvalue_conversion.
5667         (build_binary_op): Call c_common_truthvalue_conversion.
5668         (c_objc_common_truthvalue_conversion): Moved from
5669         c-objc-common.c.  Call default_function_array_conversion instead
5670         of default_conversion.
5672 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
5674         * c-common.h (default_conversion): Remove.
5675         (perform_integral_promotions): Add.
5676         * c-tree.h (default_conversion): Add.
5677         * c-typeck.c (perform_integral_promotions): New, split out from
5678         default_conversion.
5679         * c-common.c (check_case_value): Use perform_integral_promotions,
5680         not default_conversion.
5681         (c_add_case_label): Don't continue processing case label after
5682         found to be pointer.
5684 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
5686         * gcc.c (do_spec_1): Do not add a -L path for a directory in
5687         the prefix list if we have already added a multilib directory
5688         based on that path.
5689         (main): Do not add MD_EXEC_PREFIX to the list of directories to
5690         search with -L.
5692 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5694         * reload1.c (indirect_symref_ok, reload_obstack): Make them
5695         static.
5696         * reload.h: Remove the prototype for indirect_symref_ok.
5698         * reload1.c (indirect_symref_ok): Make it global.
5699         * reload.h: Add a prototype for indirect_symref_ok.
5701 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5703         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
5704         ashlhi3 expander.
5706 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
5708         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
5710 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
5712         * c-opts.c (c_common_parse_file): Only start/end main source file
5713         if debug hooks says the writer wants it.
5714         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
5715         member.
5716         (xcoff_debug_hooks): Ditto.
5717         * debug.c (do_nothing_hooks): Ditto.
5718         * debug.h (gcc_debug_hooks): Ditto.
5719         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
5720         * sdbout.c (sdb_debug_hooks): Ditto.
5721         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
5723 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
5725         * doc/extend.texi: Deprecate C++ min/max operators.
5727 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
5729         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
5730         artificial original candidates.
5732 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
5733             Jan Hubicka  <jh@suse.cz>
5734             Steven Bosscher <stevenb@suse.de>
5736         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
5737         call cost based on argument sizes.
5738         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
5739         inlining.
5740         * params.def: (max-inline-inssn-single): Set to 450.
5741         (max-inline-insns-auto): Set to 90.
5742         (max-inline-insns-recursive): Set to 450
5743         (max-inline-insns-recursive-auto): Set to 450.
5744         (large-function-insns): Set to 2700.
5745         (inline-call-cost): New parameter.
5746         * tree-inline.c (estimate_move_cost): New function.
5747         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
5748         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
5749         based on arguments.
5750         * tree-inline.h (estimate_move_cost): Declare.
5751         * invoke.texi: (max-inline-inssn-single): Change default to 450.
5752         (max-inline-insns-auto): Change default to 90.
5753         (max-inline-insns-recursive): Change default to 450
5754         (max-inline-insns-recursive-auto): Change default to 450.
5755         (large-function-insns): Change default to 2700.
5756         (inline-call-cost): Document new parameter.
5758 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5760         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
5761         (TARGET_DEFAULT): Delete.
5762         * config/i860/i860.opt: New file.
5764 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
5766         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
5767         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5768         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5769         (frv_sched_lookahead): Delete.
5770         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
5771         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
5772         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
5773         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
5774         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
5775         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
5776         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
5777         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
5778         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
5779         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
5780         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
5781         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
5782         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
5783         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
5784         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
5785         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
5786         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
5787         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
5788         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
5789         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
5790         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
5791         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
5792         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
5793         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
5794         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
5795         (frv_sched_lookahead): Delete.
5796         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
5797         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5798         (frv_handle_option): New function.  Move -mcpu= handling from...
5799         (frv_override_options): ...here.  Remove handling of other
5800         TARGET_OPTIONS.
5801         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
5802         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
5803         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
5804         and TARGET_NO_MULTI_CE.
5805         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
5806         !TARGET_VLIW_BRANCH.
5807         * config/frv/frv.opt: New file.
5809 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5811         * fold-const.c (fold_ternary): Take decomposed arguments of
5812         CALL_EXPR.
5813         (fold): Update a call to fold_ternary.
5815         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
5816         * tree.h: Add corresponding prototypes.
5818 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
5820         PR target/20561
5821         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
5822         between jump table and its label.
5823         * final.c (shorten_branches): Handle notes in between ADDR_VEC
5824         resp. ADDR_DIFF_VEC and the label preceeding it.
5825         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
5826         is emitted in the right section.
5828 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
5830         * fold-const.c (fold_unary, fold_binary): Update comments
5831         about arguments.
5833 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
5835         PR rtl-optimization/20527
5836         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
5837         REG_INC note, test that the register also isn't mentioned in PRED
5838         or SUCC.
5840 2005-03-22  Ben Elliston  <bje@au.ibm.com>
5842         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
5843         and definition.
5845 2005-03-21  Mike Stump  <mrs@apple.com>
5847         * varasm.c (default_assemble_visibility): Remove extra ().
5849 2005-03-21  Roger Sayle  <roger@eyesopen.com>
5851         PR middle-end/20557
5852         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
5853         to determine whether a block can be duplicated, rather than test
5854         whether the block contains noncopyable insns ourselves.
5856 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5858         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
5859         predicates.
5861 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5863         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
5865 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
5867         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
5868         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
5869         * config/fr30/fr30.opt: New file.
5871 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
5873         Fix PR tree-optimization/20542
5875         * tree-flow-inline.h (overlap_subvar): Move to here.
5876         * tree-ssa-operands.c: From here.
5877         * tree-flow.h (overlap_subvar): Declare.
5878         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
5879         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
5880         for variables with subvars.
5882 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
5884         PR middle-end/20177
5885         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
5886         * modulo-sched.c (const_iteration_count): Return on NULL
5887         pre-header.
5888         (print_node_sched_params): Return on NULL dump_file.
5889         (generate_reg_moves): Handle reg-anti dependencies and disregard
5890         closing branch when generating register moves.
5891         (sms_schedule): Mark the SMSed block dirty.
5892         * passes.c (rest_of_handle_sms): Call update_life_info for all
5893         basic-blocks.
5894         * testsuite/gcc.dg/20050321-1.c: New test.
5896 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
5898         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
5899         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
5900         movqi_internal): Likewise.
5902 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
5904         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
5905         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
5906         xtensa_b4const): Delete prototypes.
5907         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
5908         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
5909         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
5910         xtensa_extra_constraint): New prototypes.
5911         (add_operand, arith_operand, nonimmed_operand, mem_operand,
5912         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
5913         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
5914         move_operand, const_float_1_operand, fpmem_offset_operand,
5915         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
5916         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
5917         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
5918         argument type to HOST_WIDE_INT.
5919         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
5920         xtensa_mask_immediate): Likewise.
5921         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
5922         Likewise.  Also make these functions static.
5923         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
5924         (xtensa_const_ok_for_letter_p): New.
5925         (add_operand, arith_operand, nonimmed_operand, mem_operand,
5926         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
5927         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
5928         move_operand, const_float_1_operand, fpmem_offset_operand,
5929         branch_operator, ubranch_operator, boolean_operator): Move to
5930         predicates.md.
5931         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
5932         (xtensa_mem_offset): Change return type to bool.
5933         (xtensa_extra_constraint): New.
5934         (gen_int_relational): Update type of const_range_p function pointer.
5935         Use xtensa_b4const_or_zero.
5936         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
5937         xtensa_const_ok_for_letter_p.  Update comments.
5938         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
5939         (PREDICATE_CODES): Delete.
5940         * config/xtensa/xtensa.md: Include predicates.md.
5941         * config/xtensa/predicates.md: New file.
5943 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5945         * config/v850/v850-protos.h: Remove the prototypes for
5946         reg_or_int9_operand, reg_or_const_operand,
5947         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
5948         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
5949         movsi_source_operand, power_of_two_operand,
5950         not_power_of_two_operand, special_symbolref_operand,
5951         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
5952         register_is_ok_for_epilogue.
5953         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
5954         reg_or_int9_operand, reg_or_const_operand,
5955         call_address_operand, special_symbolref_operand,
5956         movsi_source_operand, power_of_two_operand,
5957         not_power_of_two_operand, register_is_ok_for_epilogue,
5958         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
5959         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
5960         predicates.md.
5961         * config/v850/v850.h (PREDICATE_CODES): Remove.
5962         * config/v850/v850.md: Include predicates.md.
5963         * config/v850/predicates.md: New.
5965 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
5967         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
5968         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
5969         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
5970         (itoolsdir, itoolsdatadir): Move definition above new first use.
5971         (install-itoolsdirs): New rule.
5972         (install-mkheaders): Depend on install-itoolsdirs, not
5973         install-include-dir.
5975 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
5977         * tree-into-ssa.c: Remove obsolete comments.
5979 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
5981         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
5982         unrolling if -fpeel-loops is specified, too.
5983         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5984         Remove superfluous check for flag_unroll_loops.
5986 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
5988         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
5989         (lrint_optab, llrint_optab): Define corresponding macros.
5990         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
5991         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
5992         pattern and llrint_optab using llrintdi2 patterns.
5993         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
5994         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
5995         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
5996         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
5997         flag_unsafe_math_optimizations is set.
5999 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
6001         * combine.c (combine_simplify_rtx, simplify_if_then_else,
6002         simplify_logical, if_then_else_cond, known_cond,
6003         simplify_comparison): Adjust calls to reverse_comparison.
6004         Don't use combine_reversed_comparison_code).
6005         (combine_reversed_comparison_code): Remove.
6006         (reversed_comparison): Using reversed_comparison_code, move it...
6007         * jump.c (reversed_comparison): ... here.
6008         * rtl.h (reversed_comparison): Add prototype.
6010 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6012         * builtins.c (fold_builtin): Take decomposed arguments of
6013         CALL_EXPR.
6014         * fold-const.c (fold_ternary): Update a call to fold_builtin.
6015         * gimplify.c (gimplify_call_expr): Likewise.
6016         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
6017         * tree.h: Update the prototype of fold_builtin.
6019 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
6021         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
6022         * rtlhooks.c (gen_lowpart_no_emit_general): New.
6023         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
6024         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
6025         * simplify-rtx.c (simplify_binary_operation_1): Use it.
6027 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
6029         * builtins.c (fold_builtin_1): Take decomposed arguments of
6030         CALL_EXPR.
6031         (fold_builtin): Update a call to fold_builtin_1.
6033 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
6035         PR other/20564
6036         * gcov.c (output_lines): Only output function block summary when
6037         outputting branch information.
6038         * doc/gcov.texi: Document format of preamble and additional block
6039         information lines.
6041 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
6043         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
6044         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
6045         the defaults false if BITS_PER_UNIT != 8.
6046         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
6047         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
6048         than BITS_PER_UNIT != 8.
6049         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
6050         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
6051         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
6052         #undefs.
6053         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
6054         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
6056 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6058         PR middle-end/20539
6059         * fold-const.c (fold_binary): Fix type mismatch between
6060         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
6061         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
6062         for non-truth-valued expressions.
6064         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
6065         and FUNCTION_DECL in the main switch.
6066         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
6067         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
6068         we also need to convert their operands to match.
6069         <TRUTH_NOT_EXPR>: Likewise.
6071 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
6073         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
6074         diagnostic without checking whether an lvalue.
6075         * c-common.h (lvalue_p): Remove.
6076         (enum lvalue_use): Update comment.
6077         (lvalue_or_else): Replace by lvalue_error.
6078         * c-typeck.c (lvalue_p): Make static.
6079         (lvalue_or_else): New.  Call lvalue_error.
6081 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
6083         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
6084         (function_arg_advance): Use rs6000_parm_start.
6085         (function_arg, rs6000_arg_partial_bytes): Likewise.
6087 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6089         * c-common.c (check_case_value): Adjust comment about stripping
6090         NOPs.
6091         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
6092         * c-typeck.c (default_conversion, convert_arguments,
6093         build_modify_expr, convert_for_assignment, store_init_value,
6094         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
6095         manually.  Remove inaccurate comments.
6097 2005-03-20  Roger Sayle  <roger@eyesopen.com>
6098             Joseph S. Myers  <joseph@codesourcery.com>
6100         * varasm.c (do_assemble_alias): Restore comment describing function.
6101         Annotate the target parameter as potentially unused.
6103 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6105         PR target/18551
6106         * config/avr/avr.c (avr_output_function_prologue): Do not use
6107         current_function_name() in a label, use a local label instead.
6109 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
6111         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
6112         flag_finite_math_only, not flag_unsafe_math_optimizations.
6114 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6116         * builtins.c (fold_builtin_1): Update a call to
6117         targetm.fold_builtin.
6118         * hooks.c (hook_tree_tree_bool_null): Rename to
6119         hook_tree_tree_tree_bool_null.  Take one more argument of type
6120         tree.
6121         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
6122         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
6123         hook_tree_tree_tree_bool_null.
6124         * target.h (gcc_target): Update the prototype of fold_builtin.
6125         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
6126         arguments of CALL_EXPR.
6127         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
6128         new prototype.
6130 2005-03-20  Jan Hubicka  <jh@suse.cz>
6132         * cgraph.h (cgraph_node): Add prev_clone pointer.
6133         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
6134         (cgraph_clone_node): Produce doubly linked chain.
6136 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6138         * c-common.c (handle_aligned_attribute, check_function_sentinel,
6139         get_nonnull_operand, handle_sentinel_attribute,
6140         check_function_arguments_recurse): Do not strip NOPS from
6141         INTEGER_CSTs.
6142         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
6143         Likewise.
6144         * c-format.c (get_constant): Likewise.
6145         * c-parser.c (c_parser_postfix_expression): Likewise.
6146         * c-typeck.c (set_init_index): Likewise.
6147         (convert_arguments): Don't check for NOP_EXPR containing integer
6148         constant.
6150 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
6152         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
6153         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
6154         Take decomposed arguments of CALL_EXPR.
6155         (fold_builtin_1): Update calls to the functions mentioned
6156         above.
6158 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
6160         * c-decl.c (check_bitfield_type_and_width): Require bit-field
6161         width to have integer type.
6162         (build_enumerator): Require enumerator value to have integer type.
6164 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6166         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
6167         to __builtin_inff.
6169 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6171         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
6172         std=iso9899:199x): Correct descriptions.
6174 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
6176         * config.gcc: Consistently use solaris2.1[0-9]* instead of
6177         solaris2.1[0-9].
6179 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
6181         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
6182         of CALL_EXPR.
6183         (expand_builtin_memcpy, fold_builtin_1): Update calls to
6184         fold_builtin_memcpy.
6186         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
6187         arguments of CALL_EXPR.
6188         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
6189         fold_builtin_found, fold_builtin_1): Update calls to
6190         fold_trunc_transparent_mathfn.
6192 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6194         PR middle-end/20493
6195         * fold-const.c (fold_widened_comparison): Don't optimize casts of
6196         function pointers on targets that require function pointer
6197         canonicalization.
6198         (fold_sign_changed_comparison): Likewise.
6200 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
6202         * combine.c (try_combine): When changing the mode of a hard reg, make
6203         sure that doing so is valid.
6205 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
6207         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
6208         (TARGET_HANDLE_OPTION): Override default.
6209         (avr_handle_option): New function.
6210         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
6211         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
6212         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
6213         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
6214         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
6215         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
6216         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
6217         (TARGET_OPTIONS): Delete.
6218         * config/avr/avr.opt: New file.
6220 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6222         * config/m32r/m32r-protos.h: Remove the prototypes for
6223         call_address_operand, symbolic_operand, seth_add3_operand,
6224         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6225         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6226         two_insn_const_operand, move_src_operand,
6227         move_double_src_operand, move_dest_operand,
6228         eqne_comparison_operator, signed_comparison_operator,
6229         large_insn_p, conditional_move_operand, carry_compare_operand,
6230         m32r_block_immediate_operand, extend_operand,
6231         reg_or_eq_int16_operand, int8_operand, and
6232         reg_or_zero_operand.
6233         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6234         seth_add3_operand, int8_operand, cmp_int16_operand,
6235         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6236         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6237         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6238         move_double_src_operand, move_dest_operand,
6239         eqne_comparison_operator, signed_comparison_operator,
6240         extend_operand, small_insn_p, large_insn_p,
6241         conditional_move_operand, carry_compare_operand,
6242         m32r_block_immediate_operand): Move to predicates.md.
6243         (MAX_MOVE_BYTES): Move to m32r.h.
6244         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6245         * config/m32r/m32r.md: Include predicates.md.
6246         * config/m32r/predicates.md: New.
6248 2005-03-18  James E Wilson  <wilson@specifixinc.com>
6250         PR c++/19769
6251         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
6252         origin.
6254 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6256         * config/mn10300/mn10300-protos.h: Remove the prototypes for
6257         call_address_operand, const_8bit_operand.
6258         * config/mn10300/mn10300.c (call_address_operand,
6259         const_8bit_operand, const_1f_operand): Move to predicates.md.
6260         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
6261         * config/mn10300/mn10300.md: Include predicates.md.
6262         * config/mn10300/predicates.md: New.
6264 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
6266         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
6267         declarations in diagnostics and %E for identifiers, not %s.
6269 2005-03-18  Jan Hubicka  <jh@suse.cz>
6270             Dale Johannesen  <dalej@apple.com>
6272         * basic-block.h (scale_bbs_frequencies_int,
6273         scale_bbs_frequencies_gcov_type): Declare.
6274         * cfg.c (RDIV): New macro.
6275         (update_bb_frequency_for_threading): Fix.
6276         * basic-block.h (scale_bbs_frequencies_int,
6277         scale_bbs_frequencies_gcov_type): New.
6278         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
6279         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
6280         scale_bbs_frequencies_int.
6281         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
6283 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6285         * config/m32r/m32r-protos.h: Remove the prototypes for
6286         call_address_operand, symbolic_operand, seth_add3_operand,
6287         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
6288         reg_or_uint16_operand, reg_or_cmp_int16_operand,
6289         two_insn_const_operand, move_src_operand,
6290         move_double_src_operand, move_dest_operand,
6291         eqne_comparison_operator, signed_comparison_operator,
6292         large_insn_p, conditional_move_operand, carry_compare_operand,
6293         m32r_block_immediate_operand, extend_operand,
6294         reg_or_eq_int16_operand, int8_operand, and
6295         reg_or_zero_operand.
6296         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
6297         seth_add3_operand, int8_operand, cmp_int16_operand,
6298         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
6299         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
6300         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
6301         move_double_src_operand, move_dest_operand,
6302         eqne_comparison_operator, signed_comparison_operator,
6303         extend_operand, small_insn_p, large_insn_p,
6304         conditional_move_operand, carry_compare_operand,
6305         m32r_block_immediate_operand): Move to predicates.md.
6306         (MAX_MOVE_BYTES): Move to m32r.h.
6307         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
6308         * config/m32r/m32r.md: Include predicates.md.
6309         * config/m32r/predicates.md: New.
6311         * config/pa/pa-protos.h: Add prototypes for magic_milli and
6312         shadd_constant_p.
6313         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
6314         symbolic_operand, symbolic_memory_operand,
6315         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
6316         indexed_memory_operand, move_dest_operand, move_src_operand,
6317         prefetch_cc_operand, prefetch_nocc_operand,
6318         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
6319         arith_operand, arith11_operand, pre_cint_operand,
6320         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
6321         ireg_operand, int5_operand, uint5_operand, int11_operand,
6322         uint32_operand, arith5_operand, and_operand, ior_operand,
6323         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
6324         pc_or_label_operand, div_operand, plus_xor_ior_operator,
6325         shadd_operand, movb_comparison_operator,
6326         cmpib_comparison_operator): Move to predicates.md.
6327         (magic_milli, shadd_constant_p): Make it extern.
6328         * config/pa/pa.h (PREDICATE_CODES): Remove.
6329         * config/pa/pa.md: Include predicates.md.
6330         * config/pa/predicates.md: New.
6332         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
6333         predicate.
6335 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6337         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
6338         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
6339         config/alpha/freebsd.h, config/alpha/linux.h,
6340         config/alpha/netbsd.h, config/alpha/osf5.h,
6341         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
6342         config/h8300/h8300-protos.h, config/h8300/h8300.c,
6343         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
6344         doc/cppopts.texi: Update copyright.
6346 2005-03-18  Jan Hubicka  <jh@suse.cz>
6348         PR middle-end/20225
6349         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
6350         too late.
6351         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
6352         called too late.
6354 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6356         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
6357         VEC_safe_push.
6359 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
6361         * combine.c (gen_binary): Remove.
6362         (known_cond, simplify_shift_const, find_split_point,
6363         combine_simplify_rtx, simplify_if_then_else, simplify_set,
6364         simplify_logical, expand_field_assignment, extract_left_shift,
6365         force_to_mode, if_then_else_cond, apply_distributive_law,
6366         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
6367         simplify_comparison, reversed_comparison): Replace with
6368         simplify_gen_binary, simplify_gen_relational or
6369         distribute_and_simplify_rtx.
6370         (distribute_and_simplify_rtx): New function.
6372 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
6373             Paolo Bonzini  <gcc.gnu.org>
6375         * calls.c (setjmp_call_p, special_function_p): Update comments
6376         at the head of the functions.
6378 2005-03-18  Jan Hubicka  <jh@suse.cz>
6380         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
6382         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
6383         function body should be released; do not proactively release function
6384         bodies in non-unit-at-a-time mode.
6386 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
6388         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
6389         mno-fp-ret-in-387 multilib variants.
6391 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
6393         * common.opt (m): Remove.
6394         * opts.c (handle_option): Pass 'm' options to set_target_switch if
6395         table lookup fails.
6396         (common_handle_option): Remove OPT_m case.
6398 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
6400         * builtins.c (fold_builtin_bitop): Take decomposed arguments
6401         of CALL_EXPR.
6402         (fold_builtin_1): Update a call to fold_builtin_bitop.
6404         * builtins.c (fold_builtin_signbit): Take decomposed arguments
6405         of CALL_EXPR.
6406         (fold_builtin_1): Update a call to fold_builtin_signbit.
6408 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
6410         PR tree-optimization/20474
6411         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
6412         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
6414 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6416         * config/h8300/h8300-protos.h: Remove prototypes for
6417         general_operand_src, general_operand_dst, single_one_operand,
6418         single_zero_operand, call_insn_operand,
6419         two_insn_adds_subs_operand, small_call_insn_operand,
6420         jump_address_operand, bit_operand, bit_memory_operand,
6421         stack_pointer_operand, const_int_gt_2_operand,
6422         const_int_ge_8_operand, const_int_qi_operand,
6423         const_int_hi_operand, incdec_operand, bit_operator,
6424         nshift_operator, eqne_operator, gtle_operator,
6425         gtuleu_operator, iorxor_operator.
6426         Add prototypes for h8sx_shift_type h8sx_classify_shift and
6427         h8300_ldm_stm_parallel.
6428         * config/h8300/h8300.c (h8sx_shift_type,): Move to
6429         h8300-protos.h.
6430         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
6431         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
6432         (h8300_ldm_stm_parallel): Make it extern.
6433         (h8300_ldm_parallel, h8300_stm_parallel,
6434         h8300_return_parallel, general_operand_src,
6435         general_operand_dst, h8300_dst_operand, h8300_src_operand,
6436         nibble_operand, reg_or_nibble_operand, single_one_operand,
6437         single_zero_operand, call_insn_operand,
6438         two_insn_adds_subs_operand, small_call_insn_operand,
6439         jump_address_operand, bit_operand, bit_memory_operand,
6440         stack_pointer_operand, const_int_gt_2_operand,
6441         const_int_ge_8_operand, const_int_qi_operand,
6442         const_int_hi_operand, incdec_operand, eqne_operator,
6443         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
6444         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
6445         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
6446         nshift_operator): Move to predicates.md.
6447         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
6448         * config/h8300/h8300.md: Include predicates.md.
6449         * config/h8300/predicates.md: New.
6451 2005-03-17  Richard Henderson  <rth@redhat.com>
6453         * config.gcc (ia64*-*-hpux*): Add extra_options.
6454         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
6455         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6456         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
6457         (ia64_tls_size_string, ia64_tune_string): Remove.
6458         (ia64_tune): Init to PROCESSOR_ITANIUM2.
6459         (TARGET_DEFAULT_TARGET_FLAGS): New.
6460         (TARGET_HANDLE_OPTION): New.
6461         (ia64_override_options): Move options parsing ...
6462         (ia64_handle_option): ... here.  New.
6463         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
6464         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
6465         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
6466         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
6467         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
6468         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
6469         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
6470         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
6471         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
6472         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
6473         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
6474         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
6475         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
6476         TARGET_EARLY_STOP_BITS): Remove.
6477         (TARGET_ILP32): Default false.
6478         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
6479         (enum ia64_inline_type): New.
6480         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
6481         * config/ia64/ia64.md: Update for new definitions of
6482         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
6483         * config/ia64/ia64.opt: New file.
6484         * config/ia64/ilp32.opt: New file.
6486 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6488         PR target/18380
6489         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
6491 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
6493         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
6494         instead of MASK_H8300S.
6495         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
6496         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
6497         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
6498         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
6499         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
6500         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
6501         TARGET_SWITCHES): Remove.
6502         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
6503         TARGET_H8300SX.
6504         * config/h8300/h8300.opt: New.
6506         * config/alpha/alpha.opt, config/arc/arc.opt,
6507         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
6508         notices.
6510 2005-03-17  Ian Lance Taylor  <ian@airs.com>
6512         * gmon.c: Remove.
6514 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
6516         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
6517         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
6518         (TARGET_HANDLE_OPTION): Override default.
6519         (arc_handle_option): New function.
6520         (arc_init): Remove code to set arch_cpu_string.
6521         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
6522         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
6523         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
6524         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
6525         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
6526         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
6527         (arc_rodata_string, TARGET_OPTIONS): Delete.
6528         * config/arc/arc.opt: New file.
6530 2005-03-17  Richard Henderson  <rth@redhat.com>
6532         * doc/extend.texi (Weak Pragmas): New section.
6533         (attribute alias): Clarify that target must be in the same
6534         translation unit.
6536 2005-03-17  Richard Henderson  <rth@redhat.com>
6538         * config/alpha/alpha.opt: New file.
6539         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
6540         of alpha_cpu.
6541         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
6542         alpha_fprm_string, alpha_fptm_string): Make static.
6543         (alpha_tls_size_string): Remove.
6544         (alpha_handle_option): New.
6545         (override_options): Update for alpha_cpu/alpha_tune split.
6546         (alpha_file_start): Likewise.
6547         (TARGET_DEFAULT_TARGET_FLAGS): New.
6548         (TARGET_HANDLE_OPTION): New.
6549         * config/alpha/alpha.h (alpha_tune): Declare.
6550         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
6551         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
6552         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
6553         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
6554         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
6555         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
6556         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
6557         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
6558         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
6559         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
6560         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
6561         (TARGET_DEFAULT): Remove MASK_FP.
6562         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
6563         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
6564         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
6565         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
6566         alpha_tls_size_string): Remove.
6567         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
6568         (attribute tune): Rename from attribute cpu.
6569         * config/alpha/ev4.md: Update to match.
6570         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
6571         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
6572         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
6573         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
6574         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
6575         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
6577 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
6579         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
6580         and return without creating new state if before_nops_num is nonzero.
6581         * config/ia64/ia64.md (first_insn): New attribute.
6582         (alloc): Set it to yes.
6584 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6586         * tree-vectorizer.c (new_vec_stmt_info): Initialize
6587         STMT_VINFO_SUBVARS to NULL.
6588         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
6590 2005-03-16 Dale Johannesen  <dalej@apple.com>
6592         * rtlanal.c (find_first_parameter_load):  Rewrite to
6593         return actual first param load or the call if none,
6594         instead of first in block, when not all loads exist.
6596 2005-03-16  Roger Sayle  <roger@eyesopen.com>
6598         * optabs.c (expand_copysign_absneg): Make static.
6599         * optabs.h (expand_copysign_absneg): Delete prototype.
6600         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
6602 2005-03-16  Richard Henderson  <rth@redhat.com>
6604         PR middle-end/15700
6605         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
6606         (alias_pairs): Rename from output_defs.
6607         (find_decl_and_mark_needed): Split out from assemble_alias.
6608         (do_assemble_alias): New.
6609         (assemble_output_def): Remove.
6610         (finish_aliases_1, finish_aliases_2): New.
6611         (process_pending_assemble_output_defs): Remove.
6612         (assemble_alias): Defer aliases for which we don't yet have a
6613         non-external decl for the target symbol.
6614         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
6615         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
6616         * toplev.c (compile_file): Use finish_aliases_2 instead of
6617         process_pending_assemble_output_defs.
6618         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
6619         (process_pending_assemble_output_defs): Remove.
6621 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6623         Fix PR tree-optimization/20489
6625         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
6626         for empty structures.
6628 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
6630         Fix PR tree-optimization/20490
6632         * tree-ssa-pre.c (create_expression_by_pieces): Use
6633         force_gimple_operand on result of fold.
6635 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
6637         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
6638         of closing parenthesis.
6640 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
6642         * builtins.c (expand_movstr): Update a call to
6643         fold_builtin_strcpy.
6644         (expand_builtin_strncpy): Update a call to
6645         fold_builtin_strncpy.
6646         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
6647         arguments of CALL_EXPR.
6648         (fold_builtin_1): Update calls to fold_builtin_strcpy and
6649         fold_builtin_strncpy.
6650         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
6651         * tree.h: Update the prototypes of fold_builtin_strcpy and
6652         fold_builtin_strncpy.
6654 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6655             Dorit Naishlos  <dorit@il.ibm.com>
6657         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
6658         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
6659         error.
6661 2005-03-16  Steven Bosscher  <stevenb@suse.de>
6663         * tree-inline.c (walk_type_fields, walk_tree,
6664         walk_tree_without_duplicates): Move from here...
6665         * tree.c: ...to here.
6667 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
6669         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
6670         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
6671         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
6672         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
6673         (version): Define using $(BASEVER_c).
6674         (Makefile, config.status, build/gcov-iov.o): No longer depends on
6675         version.c.
6676         (version.o): Depend on version files; add custom generation command.
6677         (prefix.o): Define BASEVER on command line.
6678         (s-iov): Depend on version files; adjust command.
6679         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
6680         Add gcc-vers.texi.
6681         (gcc-vers.texi): New rule.
6682         (doc/%.info, doc/%.dvi): Add -I . to command line.
6683         (doc/gccinstall.dvi): Likewise.
6684         (PACKAGE): Delete.  All uses replaced with "gcc".
6685         * aclocal.m4: Do not include gcc-version.m4.
6686         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
6687         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
6688         Set is_release based on contents of DEV-PHASE.
6689         Set gcc_version based on contents of BASE-VER.
6690         Define WIN32_REGISTRY_KEY only if the user overrode the default.
6691         * config.in, configure: Regenerate.
6692         * gccbug.in: Determine version of GCC in use at runtime.
6693         * gcov-iov.c: Get version number and development phase from
6694         command line, not by including version.c.
6695         * intl.c: Replace all uses of PACKAGE with "gcc".
6696         * libada-mk.in: Delete unused "gcc_version" variable.
6697         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
6698         * version.c: (VERSUFFIX): New hook for redistributors; adjust
6699         commentary to match.
6700         (version_string): Put together from pieces.
6701         * config/alpha/x-vms: Do not use $(gcc_version).
6702         * config/i386/t-nwld: Likewise.
6703         * doc/include/gcc-common.texi: Include gcc-vers.texi for
6704         version-GCC and DEVELOPMENT.
6706 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6708         PR tree-optimization/17454
6709         * tree.c (tree_size): Add case for TREE_BINFO.
6710         * fold-const.c (fold_checksum_tree): Only clear the overloaded
6711         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
6713 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6715         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
6716         op1 whilst expanding the signed widenening multiply variant.
6718 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
6720         * toplev.c (display_target_options): Avoid unused variable warning if
6721         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
6722         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
6723         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
6724         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
6725         (mips_isa_info): New variable.
6726         (mips_parse_cpu): Remove the first argument and leave the caller
6727         to report errors.
6728         (TARGET_HANDLE_OPTION): Override default.
6729         (mips_handle_option): New function.  Move option validation code from...
6730         (override_options): ...here.  Update calls to mips_parse_cpu.
6731         * config/mips/mips.h (mips_arch_string, mips_tune_string)
6732         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
6733         (SUBTARGET_TARGET_OPTIONS): Delete.
6734         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
6735         (mno-flush-func, mtune=): New options.
6737 2005-03-15  Roger Sayle  <roger@eyesopen.com>
6738             Richard Henderson  <rth@redhat.com>
6740         * real.c (c4x_single_format, c4x_extended_format): Provide values
6741         for signbit_ro for c4x's single and extended floating point formats.
6742         * optabs.c (expand_copysign): Use the floating point format's
6743         signbit_ro for expanding via expand_copysign_absneg, and it's
6744         signbit_rw field for expanding via expand_copysign_bit.
6746 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
6748         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
6749         known_alignment_for_access_p.
6750         (known_alignment_for_access_p): New.
6751         (do_peeling_for_alignment): Field made int instead of bool and renamed
6752         to peeling_for_alignment.
6753         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
6754         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
6755         functionality used to be in vect_analyze_operations.
6756         (vect_analyze_operations): Code to determine vectorization factor was
6757         moved to vect_determine_vectorization_factor.
6758         (vect_enhance_data_refs_alignment): Update to correct alignment when it
6759         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
6760         factor.
6761         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
6762         be part of vect_analyze_operations).
6763         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
6764         creating the guard condition, as the number of iterations may be
6765         constant.
6766         (slpeel_tree_peel_loop_to_edge): Use new name of
6767         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
6768         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
6769         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
6770         (vect_do_peeling_for_alignment): Use fold.
6771         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
6773         (vect_update_inits_of_dr): Renamed to
6774         vect_update_init_of_dr.
6775         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
6776         (vectorizable_store): Fix assertion to use == instead of =.
6778 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
6780         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
6781         call_used_regs for wCG registers.
6783 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
6785         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
6786         for non-offsettable memory references to cope with outstanding reload
6787         replacements, take 2.
6789 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
6791         PR target/18668
6792         * config/i386/i386.h (x86_fisttp): New.
6793         (TARGET_FISTTP): New macro.
6794         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
6795         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
6796         instruction when fisttp flag is set.
6797         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
6799         * config/i386/i386.md (type attribute): Add fisttp.
6800         (unit attribute): Set to i387 for fisttp type.
6801         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
6802         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
6803         TARGET_FISTTP.
6804         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
6805         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
6806         macros.
6807         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
6808         patterns for TARGET_FISTTP.  Enable patterns for
6809         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
6810         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
6811         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
6812         implement fisttp x87 insn.
6813         (fix_trunc*_i387_fisttp splitters): New patterns.
6814         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
6815         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
6816         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
6817         clobber.
6818         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
6819         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
6820         Implement using mode macros. Disable patterns for TARGET_FISTTP.
6821         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
6822         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
6823         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
6824         Disable patterns for TARGET_FISTTP.
6825         (fix_trunc*_i387 splitters): Implement usign mode macros.
6826         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
6827         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
6828         (fix_trunx*_sse peephole2s): Implement using mode macros.
6830 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
6832         PR rtl-optimization/20291
6833         * combine.c (try_combine): If splitting fails, re-try with
6834         original combined pattern, i.e. before clobber stripping.
6836 2005-03-14  Eric Christopher  <echristo@redhat.com>
6838         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
6839         STACK_GROWS_DOWNWARD.
6841 2005-03-14  Roger Sayle  <roger@eyesopen.com>
6843         * real.h (struct real_format): Split the signbit field into two
6844         two fields, signbit_ro and signbit_rw.
6845         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
6846         mips_double_format, ieee_extended_motorola_format,
6847         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
6848         ieee_extended_intel_128_format, ibm_extended_format,
6849         mips_extended_format, ieee_quad_format, mips_quad_format,
6850         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
6851         i370_double_format, c4x_single_format, c4x_extended_format,
6852         real_internal_format): Update initializers for new field.
6853         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
6854         real_format structure.
6855         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
6856         field of the real_format structure.
6858 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
6860         Fix PR tree-optimization/20458
6862         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
6863         DECL_EXTERNAL on STRUCT_FIELD tags.
6864         (clear_call_clobbered): Ditto.
6865         * tree-ssa-operands.c (note_addressable): Make sure the original
6866         variable doesn't slip into the addressable list if we have
6867         subvars.
6868         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
6869         tags too.
6871 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
6873         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
6874         (-fwide-exec-charset): Likewise.
6875         (-finput-charset): Likewise.
6876         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
6877         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
6878         * c.opt (Wnormalized): New.
6880 2005-03-14  Devang Patel  <dpatel@apple.com>
6882         * doc/invoke.texi: Add reference to Visibility document.
6884 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
6886         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
6887         MASK_SPLIT_ADDRESSES.
6888         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
6889         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
6890         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
6891         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
6892         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
6893         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
6894         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
6895         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
6896         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
6897         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
6898         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
6899         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
6900         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
6901         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
6902         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
6903         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
6904         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
6905         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
6906         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
6907         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
6908         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
6909         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
6910         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
6911         (TARGET_EXPLICIT_RELOCS): Delete.
6912         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
6913         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
6914         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
6915         (override_options): Set MASK_LONG64 if -mint64 is given and no
6916         -mlongXX option is.  Complain about -mint64 -mlong32.
6917         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
6918         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
6919         * config/mips/mips.opt: New file.
6921 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
6923         * config.gcc (extra_options): New variable for listing option files.
6924         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
6925         * configure.ac (extra_opt_files): New AC_SUBST variable.
6926         (tm_file_list, tm_include_list): Include options.h first.
6927         * configure: Regenerate.
6928         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
6929         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
6930         (s-options-h): New rule.
6931         (options.h): Depend on it.
6932         (TEXI_GCCINT_FILES): Add options.texi.
6933         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
6934         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
6935         * target.h (gcc_target): Add default_target_flags and handle_option.
6936         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
6937         (TARGET_HANDLE_OPTION): New macros.
6938         (TARGET_INITIALIZER): Include them.
6939         * opt-functions.awk (opt_args, nth_arg): New functions.
6940         (switch_flags): Handle the "Target" flag.
6941         (var_args): Delete.
6942         (var_name): Use opt_args and nth_arg.
6943         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
6944         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
6945         macros for the "Mask" and "InverseMask" options.
6946         * opts.h (cl_var_cond): New enum.
6947         (cl_option): Replace the "has_set_value" and "set_value" fields with
6948         "var_cond" and "var_value".
6949         (CL_TARGET): New macro.
6950         (option_enabled, print_filtered_help): Declare.
6951         (decode_options): Move definition.
6952         * opts.c (handle_option): Search for the original option before
6953         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
6954         var_cond and var_value fields.  Use targetm.handle_option to handle
6955         target options.
6956         (decode_options): Set target_flags to targetm.default_target_flags.
6957         (print_filtered_help): Make global.  Handle CL_TARGET.
6958         (option_enabled): New function.
6959         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
6960         (display_target_options, set_target_switch, print_switch_values)
6961         (default_pch_valid_p): Guard uses of target_switches with
6962         #ifdef TARGET_SWITCHES.  Also...
6963         (display_target_options): Display the CL_TARGET entries in cl_options.
6964         (set_target_option): Don't complain about the "" option when
6965         TARGET_SWITCHES is undefined.
6966         (print_switch_values): Use option_enabled.
6967         (default_pch_valid_p): Check cl_options[] when looking for something
6968         that has changed the value of target_flags.
6969         * c.opt: Remove documentation from top of file.
6970         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
6971         * doc/sourecebuild.texi: Refer to the new options documentation
6972         instead of c.opt.  Document machine-specific .opt files.
6973         * doc/tm.texi (target_flags): Say that this variable is declared
6974         by options.h.
6975         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
6976         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
6977         an alternative.
6978         * doc/options.texi: New file.
6980 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
6982         PR middle-end/18628
6983         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
6984         register.
6986 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
6988         PR c++/20280
6989         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
6990         temporary variable of pointer type if an lvalues is required.
6991         (gimplify_modify_expr_rhs): Request an rvalue from it.
6992         (gimplify_expr): Pass fallback on.
6994 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
6996         * cfgbuild.c: Update comments.
6998 2005-03-14  Roger Sayle  <roger@eyesopen.com>
7000         PR rtl-optimization/17236
7001         * optabs.c (expand_doubleword_mult): New helper function split out
7002         from expand_binop.  Permute the order in which instructions are
7003         emitted to minimize the number of simultaneously live registers.
7004         (expand_binop): Call expand_doubleword_mult to synthesize a double
7005         word multiplication.
7007 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7009         * basic-block.h: Update the prototypes of cached_make_edge and
7010         rtl_make_eh_edge.
7011         * cfg.c (cached_make_edge): Take edge_cache representing one
7012         row of the adjacency matrix of edges.
7013         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
7014         (make_edges): Initialize edge_cache to represent one row of
7015         the adjacency matrix of edges.
7017 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7019         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
7020         New functions.
7021         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
7022         Remove unused removed_phis variable.
7023         (conditional_replacement): Use build1/build2.
7024         (abs_replacement): Use last_and_only_stmt and build1/build2.
7026 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7028         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
7029         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
7030         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
7031         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
7032         * c-common.c (handle_novops_attribute): New function.
7033         (c_common_attribute_table): Add "no vops" entry.
7034         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
7035         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
7036         * tree-ssa-operands.c (get_call_expr_operands): Do not
7037         create virtual operands for calls with ECF_NOVOPS flag.
7038         * tree.h (DECL_IS_NOVOPS): New macro.
7039         (struct tree_decl): Add novops_flag.
7040         (ECF_NOVOPS): New constant.
7042 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
7044         PR target/17688
7045         * config/i386/i386.c (x86_use_himode_fiop): New.
7046         (x86_use_simode_fiop): Rename from x86_use_fiop.
7047         * config/i386/i386.h (x86_use_himode_fiop): Declare.
7048         (TARGET_USE_HIMODE_FIOP): New.
7049         (x86_use_simode_fiop): Rename from x86_use_fiop.
7050         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
7052         * config/i386/i386.md (X87MODEI12): New mode macro define.
7053         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
7054         to implement x87 FP compare with HImode input operands.
7055         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
7056         Use X87MODEI12 mode macro to handle HImode input operands.
7057         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
7058         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
7059         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
7060         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
7061         macro to implement x87 operators with HImode input operands.
7062         (fop splitters): Use X87MODEI12 mode macro to handle HImode
7063         input operands.
7065 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7067         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
7068         integer_zerop.
7069         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
7070         constants invariant.
7072 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
7074         * basic-block.h (BB_VISITED): Removed.
7075         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
7077 2005-03-14  Falk Hueffner  <falk@debian.org>
7079         PR bootstrap/20424
7080         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
7082 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7084         * ggc-zone.c: Fix comment typos.
7086         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
7087         stringpool.c, config/mips/mips-protos.h: Update copyright.
7089 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7091         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
7092         throughout with its typedef, "rtx".
7093         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
7094         (rs6000_tls_symbol_ref_1): Remove inline keyword.
7095         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
7096         regs in comment to match code.
7098 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
7100         * except.c (check_handled): Make it static.
7101         * except.h: Remove the corresponding prototype.
7103         * function.c (get_func_frame_size): Make it static.
7104         * function.h: Remove the corresponding type.
7106         * regclass.c (reg_class_superclasses, reg_class_subclasses):
7107         Make them static.
7108         * hard-reg-set.h: Remove the corresponding declarations.
7110         * tree-cfg.c (verify_stmts): Check that
7111         bb_for_stmt (stmt) == bb for every PHI node and statement.
7113 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
7115         * config.gcc: Remove excess indentation.
7116         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
7118 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7120         PR middle-end/19331
7121         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
7122         * fold-const.c (fold_sign_changed_comparison): Likewise.
7123         (fold_binary): Optimize comparisons against widened operands if
7124         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
7126 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7128         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
7129         (sparc_override_options): Initialize it.
7130         (sparc_struct_value_rtx): Set it on the MEM to be returned.
7132 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
7134         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
7135         (reg_or_none500mem_operand): New predicate.
7136         (zero_reg_mem_operand): New predicate.
7137         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
7138         to reg_or_none500mem_operand.
7139         (extendsfdf2_fpr): Add MEM alternative.
7140         (extenddftf2_internal): Change operand2 predicate to
7141         zero_reg_mem_operand.
7143 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7145         * ggc-zone.c: Rewritten.
7147         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
7148         if there are none.
7149         * configure.ac: Define GGC_ZONE for --with-gc=zone.
7150         * config.in: Regenerated.
7151         * configure: Regenerated.
7152         * gengtype.c (write_types_process_field, write_func_for_structure):
7153         Pass new argument to gt_pch_note_object.
7154         * ggc-common.c (struct ptr_data): Add TYPE.
7155         (gt_pch_note_object): Take TYPE argument and save it.
7156         (call_count): Update call to ggc_pch_count_object.
7157         (call_alloc): Update call to ggc_pch_alloc_object.
7158         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
7159         file.
7160         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
7161         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
7162         (ggc_alloc_zone_stat): Delete.
7163         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
7164         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
7165         (ggc_pch_alloc_object): Update prototypes.
7166         (garbage_zone): Delete.
7167         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
7168         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
7169         pointers.
7170         (tree_id_zone): New variable.
7171         (ggc_alloc_cleared_zone): Remove unused.
7172         (ggc_alloc_zone): Define.
7173         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
7174         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
7175         ggc_alloc_zone_stat.
7176         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
7177         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
7178         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
7179         (make_node_stat): Likewise.  Use tree_id_zone.
7181 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7182             Joseph S. Myers  <joseph@codesourcery.com>
7184         * configure.ac: Check for MIPS TLS.
7185         * configure: Regenerated.
7186         * config/mips/mips-protos.h (enum mips_symbol_type): Add
7187         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
7188         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
7189         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
7190         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7191         (mips_classify_symbol, mips_symbolic_constant_p)
7192         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
7193         (mips_tls_operand_p, mips_call_tls_get_addr)
7194         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
7195         (mips_tls_symbol_ref_1): New functions.
7196         (mips_legitimize_address, mips_legitimize_const_move): Call
7197         mips_legitimize_tls_address.
7198         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
7199         for MIPS16.
7200         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
7201         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
7202         (mips_char_to_class): Document V1_REG.
7203         (HAVE_AS_TLS): Provide default.
7204         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
7205         constants.
7206         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
7207         !TARGET_ABICALLS.
7208         (tls_get_tp_<mode>): New instruction.
7210 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7212         * configure.ac: Update checks for target tools.
7213         * configure: Regenerated.
7215 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
7217         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
7219 2005-03-13  Roger Sayle  <roger@eyesopen.com>
7221         * expmed.c (expand_mult): Use synthetic multiplication sequences for
7222         more classes of DImode multiplication by constant.  Allow both
7223         multiplication by small negative constants (by performing a
7224         multiplication by a positive constant and negating the result) and
7225         multiplications by large powers of two, by using a left shift.
7227 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7229         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
7230         of basic blocks into work_stack.
7232         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
7233         config/mips/vr.h: Update copyright.
7235         * c-decl.c (c_init_decl_processing): Remove useless calls to
7236         build_function_type.
7238         * builtins.c (fold_trunc_transparent_mathfn,
7239         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
7240         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
7241         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
7242         fold_builtin_strcpy, fold_builtin_strncpy,
7243         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
7244         TREE_TYPE (exp).
7246         * builtins.c (expand_builtin_mathfn_3): Remove local variable
7247         before_call.
7249         * lambda-code.c (lambda_compute_auxillary_space): Remove local
7250         variable determinant.
7252         * tree-cfg.c (group_case_labels): Remove local variable type.
7254         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
7255         variable ann.
7257         * tree-ssa-phiopt.c (value_replacement): Remove local variable
7258         result.
7260 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
7262         PR target/18251
7263         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
7264         (*movmemqi_insn): Delete.
7265         (*movmemhi): Delete.
7267 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
7269         * builtins.c (fold_builtin_classify): Take decomposed
7270         arguments of CALL_EXPR.
7271         (fold_builtin_1): Update a call to fold_builtin_classify.
7273 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
7275         PR c/20402
7276         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
7277         through into call to parser_xref_tag after parse error.
7278         (c_parser_struct_declaration): Consistently return NULL_TREE on
7279         error.
7281 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
7283         * tree-flow-inline.h (ref_contains_array_ref): New function.
7284         (lookup_subvars_for_var): Ditto.
7285         (get_subvars_for_var): Ditto.
7286         (var_can_have_subvars): Ditto.
7288         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
7289         (struct subvar): New type.
7291         * tree-dfa.c (okay_component_ref_for_subvars): New function.
7293         * tree-optimize.c (init_tree_optimization_passes): Call
7294         pass_create_structure_vars.
7296         * tree-ssa-alias.c: Include vec.h.
7297         (init_alias_info): Don't auto-clear call clobbered on struct-field
7298         tags.
7299         (compute_flow_insensitive_aliasing): Handle subvars.
7300         (group_aliases): Handle STRUCT_FIELD aliases.
7301         (setup_pointers_and_addressables): Ditto.
7302         Don't mark variables non-addressable if they still have
7303         addressable subvars.
7304         Also mark subvars addressable when the real variable is marked
7305         addressable.
7306         (add_pointed_to_var): Try to prune the pointed-to set by only
7307         pointing to subvars when possible.
7308         Otherwise, make sure we set addresses_needed and pt_vars to
7309         properly include subvars.
7310         (bitpos_of_field): New function.
7311         (push_fields_onto_fieldstack): Ditto.
7312         (get_or_create_used_part_for): Ditto.
7313         (create_overlap_variables_for): Ditto.
7314         (find_used_portions): Ditto.
7315         (create_structure_vars): Ditto.
7316         (pass_create_structure_vars): New structure.
7318         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
7319         (get_expr_operands): Handle subvars.  Also try to turn
7320         COMPONENT_REF accesses into must-defs now that we can accurately
7321         portray it.
7322         (note_addressable): Try to only mark as addressable those subvars
7323         we know a COMPONENT_REF touches.
7324         (overlap_subvar): New function.
7326         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
7327         Handle subvar storing.
7328         (vect_address_analysis): Update caller of vect_object_analysis.
7330         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
7332         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
7333         (STMT_VINFO_SUBVARS): New macro.
7335         * common.opts: add flag_tree_salias.
7337         * opts.c (decode_options): flag_tree_salias defaults to on.
7339         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
7341         * doc/tree-ssa.texi: Document structural alias analysis.
7343 2005-03-12  Steven Bosscher  <stevenb@suse.de>
7345         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
7346         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
7347         * tree-ssa-operands.c (get_expr_operands): Likewise.
7348         (get_expr_operands): Likewise for ERROR_MARK.
7350 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7352         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
7353         var.
7355         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
7356         removed_phis.
7358         * tree-ssa-pre.c (compute_avail): Remove local variable val.
7359         (mark_operand_necessary): Remove local variable ver.
7361         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
7362         variable prefix_len.
7364         * value-prof.c (mod_subtract_transform): Remove local variable
7365         value.
7367         * builtins.c (fold_builtin_exponent): Take decomposed
7368         arguments of CALL_EXPR.
7369         (fold_builtin_1): Update a call to fold_builtin_exponent.
7371         * builtins.c (fold_builtin_logarithm): Take decomposed
7372         arguments of CALL_EXPR.
7373         (fold_builtin_1): Update a call to fold_builtin_logarithm.
7375         * c-decl.c (c_init_decl_processing): Remove local variables
7376         ptr_ftype_void and ptr_ftype_ptr.
7378         * gimplify.c (gimplify_expr): Remove local variables r0 and
7379         r1.
7381         * reg-stack.c (move_for_stack_reg): Remove local variable
7382         push_insn.
7383         (compare_for_stack_reg): Remove local variable flags_user.
7384         (convert_regs_1): Remove local variable deleted.
7386         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
7387         variable new_cond.
7388         (combine_blocks): Remove local variables exits and new_e.
7390         * tree-inline.c (expand_call_inline): Remove local variable
7391         decl.
7393         * tree-ssa-live.c (create_ssa_var_map,
7394         calculate_live_on_entry): Remove local variable snn.
7396 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
7398         * c-lex.c (c_lex_with_flags): Add parameter to call to
7399         cpp_spell_token.
7401 2005-03-11  Per Bothner  <per@bothner.com>
7403         * c-tree.h (struct c_declarator): New id_loc field.
7404         * c-pragma.h (c_lex_with_flags): Take position reference.
7405         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
7406         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
7407         (c_lex): Pass dummy location to c_lex_with_flags.
7408         * c-parser.c (c_lex_one_token): Set c_token's location using
7409         c_lex_with_flags, instead of input_location, which might be "ahead".
7410         (c_parser_direct_declarator): Set declarator's id_loc from
7411         c_token's id_loc.
7412         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
7413         declarator's id_loc, rather than probably-imprecise input_location.
7414         (build_id_declarator): Initialize c_declarator's id_loc field.
7416 2005-03-11  Roger Sayle  <roger@eyesopen.com>
7418         PR middle-end/20419
7419         * builtins.c (expand_builtin_signbit): Force the signbit's word
7420         into an integer register to avoid SUBREGs of floating point modes.
7422 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
7424         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
7425         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
7426         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
7427         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
7429 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
7431         PR rtl-optimization/20306
7432         * expr.c (emit_move_complex): Set try_int false if mode is
7433         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
7434         emit_block_move if try_int is true.
7436 2005-03-11  Richard Henderson  <rth@redhat.com>
7438         PR target/20415
7439         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
7440         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
7441         to match.
7443 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7445         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
7446         (TARGET_FIX_VR4130): New macro.
7447         (TARGET_OPTIONS): Add -mfix-vr4130.
7448         (ISA_HAS_MACCHI): New macro.
7449         (ASM_SPEC): Add -mfix-vr4130.
7450         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
7451         (override_options): Handle mips_fix_vr4130_string.
7452         (mips_avoid_hazards): Clear all_noreorder_p
7453         if we're working around VR4130 errata and the macc alternatives
7454         are not available.
7455         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
7456         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
7457         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
7458         (MULTILIB_DEFAULTS): Remove leading "march=".
7459         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
7460         if no architecture option is given.
7461         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
7462         VR4130 multilibs.
7463         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
7464         * doc/invoke.texi: Document -mfix-vr4130.
7466 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
7468         * config/mips/mips.c (override_options): Only warn about -mint64
7469         deprecation if TARGET_INT64.
7471 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7473         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
7474         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
7475         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
7476         are non-specific regarding the nonnull parameter positions.
7477         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
7478         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
7479         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
7480         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
7482         * builtins.def: Use the non-specific "nonnull" attibute lists.
7484 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7486         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7487         single_pred_edge, single_succ, single_pred): Improve comments.
7489 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
7491         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
7492         single_pred_edge, single_succ, single_pred): New inline functions.
7493         * bb-reorder.c (rotate_loop, find_traces_1_round,
7494         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
7495         duplicate_computed_gotos): Use the single_succ/pred functions.
7496         * cfganal.c (forwarder_block_p): Ditto.
7497         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7498         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
7499         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
7500         merge_seq_blocks): Ditto.
7501         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
7502         * cfglayout.c (fixup_reorder_chain): Ditto.
7503         * cfgloop.c (mark_single_exit_loops, update_latch_info,
7504         canonicalize_loop_headers, verify_loop_structure): Ditto.
7505         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
7506         mfb_update_loops, create_preheader, force_single_succ_latches,
7507         create_loop_notes): Ditto.
7508         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
7509         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
7510         commit_one_edge_insertion, purge_dead_edges,
7511         cfg_layout_can_merge_blocks_p): Ditto.
7512         * except.c (sjlj_emit_function_enter): Ditto.
7513         * flow.c (init_propagate_block_info): Ditto.
7514         * function.c (thread_prologue_and_epilogue_insns): Ditto.
7515         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
7516         insert_insn_end_bb): Ditto.
7517         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
7518         find_if_case_2): Ditto.
7519         * lambda-code.c (perfect_nestify): Ditto.
7520         * lcm.c (optimize_mode_switching): Ditto.
7521         * loop-doloop.c (doloop_modify): Ditto.
7522         * loop-init.c (loop_optimizer_init): Ditto.
7523         * loop-iv.c (simplify_using_initial_values): Ditto.
7524         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
7525         * loop-unswitch.c (unswitch_loop): Ditto.
7526         * modulo-sched.c (generate_prolog_epilog): Ditto.
7527         * predict.c (combine_predictions_for_insn, estimate_probability,
7528         tree_estimate_probability, last_basic_block_p,
7529         estimate_bb_frequencies): Ditto.
7530         * profile.c (branch_prob): Ditto.
7531         * regrename.c (copyprop_hardreg_forward): Ditto.
7532         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
7533         * tracer.c (layout_superblocks): Ditto.
7534         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
7535         cfg_remove_useless_stmts_bb, cleanup_control_flow,
7536         cleanup_control_expr_graph, disband_implicit_edges,
7537         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
7538         tree_verify_flow_info, tree_make_forwarder_block,
7539         tree_forwarder_block_p, remove_forwarder_block,
7540         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
7541         * tree-if-conv.c (tree_if_conversion): Ditto.
7542         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7543         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
7544         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
7545         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
7546         copy_loop_headers): Ditto.
7547         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
7548         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
7549         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
7550         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
7551         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
7552         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
7553         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
7554         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
7555         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
7556         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
7557         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
7558         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
7559         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
7560         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
7561         slpeel_add_loop_guard): Ditto.
7563 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
7565         PR tree-optimization/15784
7566         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
7567         and -1 - A to ~A.
7569         * stmt.c (expand_case): Don't change index_type.  Convert minval
7570         to the proper type.
7572         PR tree-optimization/20130
7573         * fold-const.c (fold): Fold x * -1 into -x.
7575 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7577         PR rtl-optimization/20331
7578         * rtlanal.c (modified_between_p): Check its address first for MEM.
7579         (modified_in_p): Likewise.
7581 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
7583         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
7585 2005-03-10  Steven Bosscher  <stevenb@suse.de>
7587         * expr.c (expand_expr_real_1): If possible, use a conditional
7588         move for expanding MIN_EXPR and MAX_EXPR.
7589         Use temp for moving around rtx-en.
7591 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
7593         PR rtl-opt/20412
7594         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
7595         correct mode.
7597 2005-03-10  Roger Sayle  <roger@eyesopen.com>
7599         * builtins.c (expand_builtin_signbit): Extend to handle floating
7600         point modes wider than the largest integer type, using the
7601         operand_subword_force function to obtain the signbit's word.
7603 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7605         PR target/20322
7606         * combine.c (try_combine): If recog_for_combine added CLOBBERs
7607         to NEWI2PAT, fail to combine if they are used by NEWPAT.
7609 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
7611         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
7613 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
7615         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
7616         type void.
7617         (perform_edge_inserts): Unconditionally call
7618         free_dominator_info.
7620         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
7622 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
7624         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
7626 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
7628         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
7630         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
7631         gcc_unreachable.
7632         (rtl_register_value_prof_hooks,
7633         tree_value_profile_transformations,
7634         tree_register_value_prof_hooks): Likewise.
7635         * var-tracking.c (stack_adjust_offset_pre_post,
7636         variable_htab_free, variable_union, dataflow_set_different_2,
7637         count_uses, variable_was_changed, set_frame_base_location,
7638         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
7639         vt_add_function_parameters): Likewise.
7640         * varasm.c (named_section_real, named_section, make_decl_rtl,
7641         asm_emit_uninitialised, assemble_integer, decode_addr_const,
7642         const_hash_1, compare_constant, copy_constant, force_const_mem,
7643         output_constant_pool_2, output_constant_pool_1, output_constant,
7644         output_constructor, make_decl_one_only, decl_tls_model,
7645         default_no_named_section, default_elf_select_section_1,
7646         default_unique_section_1): Likewise.
7647         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
7648         * vmsdbgout.c (addr_const_to_string): Likewise.
7650         PR c++/20375
7651         * function.c (struct assign_parm_data_one): Remove last_named
7652         field.
7653         (assign_parm_find_data_types): Don't determine last_named.
7654         Reorder named_parm determination.
7655         (assign_parms): Only setup varargs on the last non-varadic
7656         parameter.
7658 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
7660         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
7661         sda base address on medium model.
7663 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
7665         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
7666         * cfgloop.c (flow_loop_nodes_find): Export.
7667         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
7668         Declare.
7669         * cfgloopmanip.c (fix_loop_structure): New function.
7670         * predict.c (predict_loops): Clean up the loops information.
7671         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
7672         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
7673         loop structure.
7674         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
7675         (rewrite_into_loop_closed_ssa): Declaration changed.
7676         * tree-loop-linear.c (linear_transform_loops): Add argument to
7677         rewrite_into_loop_closed_ssa call.
7678         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
7679         * tree-ssa-loop-im.c (move_computations): Ditto.
7680         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
7681         * tree-vectorizer.c (vectorize_loops): Ditto.
7682         * tree-optimize.c: Include cfgloop.h.
7683         (execute_todo): Choose whether to call cleanup_tree_cfg or
7684         cleanup_tree_cfg_loop.
7685         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
7686         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
7687         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
7688         cleanup_tree_cfg_loop call.
7689         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
7690         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
7691         work on part of cfg.
7693 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
7695         PR inline-asm/20314
7696         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
7697         with multiple alternatives.
7699         * stmt.c (parse_output_constraint): Fix a typo.
7701 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
7703         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
7704         assembly directive instead of deprecated "no-generics".
7706 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
7708         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
7709         for non-offsettable memory references to cope with outstanding reload
7710         replacements.
7711         * config/s390/s390.md ("reload_outti"): Call find_replacement to
7712         avoid losing outstanding address reloads.
7713         ("reload_outdi", "reload_outdf"): Likewise.
7715 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7717         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
7718         code.  Add more cbrt transformations.
7720 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7722         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
7724 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7726         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
7727         NULL_TREE when a given tree is not simplified.
7728         (fold): Return the original tree when any of the functions
7729         mentioned above NULL_TREE.
7731         * fold-const.c (fold_unary, fold_binary): Take decomposed
7732         arguments, code, type, op0, and op1 in case of fold_binary.
7733         (fold): Update calls to fold_unary and fold_binary.
7735 2005-03-09  Roger Sayle  <roger@eyesopen.com>
7737         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
7738         a fndecl and an arglist instead of a CALL_EXPR, exp.
7740 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
7742         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
7744         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
7746         * expr.c (expand_assignment): Remove orig_to_rtx.
7748         * fold-const.c (int_const_binop): Remove no_overflow.
7750         * ifcvt.c (noce_emit_move_insn): Remove inmode.
7752         * loop-iv.c (get_biv_step_1): Remove lhs.
7754         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
7756         * real.c (real_nan): Remove neg.
7758         * function.c (thread_prologue_and_epilogue_insns): Remove i
7759         and newinsn.
7761         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
7762         tb.
7764         * tree-eh.c (tree_could_trap_p): Remove idx.
7766         * tree-into-ssa.c (ann): Remove ann.
7768         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
7770         * tree-sra.c (decide_block_copy): Remove inst_count.
7772         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
7774         * tree-ssa-loop-im.c (lhs): Remove.
7776         * cfgbuild.c (state, STATE, SET_STATE,
7777         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
7778         make_edges.
7779         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
7780         (find_basic_blocks): Set the state of each basic block to
7781         BLOCK_NEW.
7783 2005-03-08  Jeff Law  <law@redhat.com>
7785         * tree-cfg.c (cleanup_control_flow): If removal of a computed
7786         goto results in the removal of edges in the CFG, then we need
7787         to recompute dominators.
7789 2005-03-09  Ben Elliston  <bje@au.ibm.com>
7791         * c-common.c (c_do_switch_warnings): Comment fix.
7793 2005-03-08  Julian Brown  <julian@codesourcery.com>
7795         * Patch from 2005-03-08 reverted for causing regressions and
7796         ppc-darwin bootstrap failure.
7798 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
7800         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
7801         Define the real function for ppc-darwin.
7802         * c-typeck.c (convert_arguments): Check for target-specific
7803         invalid argument call to unprototyped function.
7804         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
7805         New Macro.
7806         * target.h (invalid_arg_for_unprototyped_fn): New field
7807         in struct calls.
7808         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
7809         default target hook.
7810         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
7811         Declare.
7813 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7815         * c-typeck.c (constructor_stack, constructor_range_stack,
7816         initializer_stack): Make them static.
7818         * cfg.c (rbi_pool): Make it static.
7820         * gimple-low.c (lower_stmt_body): Make it static.
7821         * tree-flow.h: Remove the corresponding prototype.  Don't
7822         declare lower_data.
7824         * sched-deps.c (cache_size): Make it static.
7826         * stor-layout.c (lang_adjust_rli): Make it static.
7828 2005-03-08  Julian Brown  <julian@codesourcery.com>
7830         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
7831         from being used for symbols with vague linkage when
7832         HAVE_GAS_COMDAT_GROUP is true.
7834 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
7836         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
7837         nlabel == JUMP_LABEL (jump).
7839 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7841         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
7842         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
7843         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
7844         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
7846 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
7848         PR c/14411
7849         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
7850         * c-common.c (handle_returns_twice): New function.
7851         (c_common_attribute_table): Declare eturns_twice' attribute.
7852         * doc/extend.texi: Document eturns_twice' attribute.
7853         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
7854         (struct tree_decl): Add returns_twice_flag.
7856 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7858         * tree-ssa-phiopt.c: Fix a comment typo.
7860         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
7861         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
7862         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
7863         copyright.
7865 2005-03-08  Richard Henderson  <rth@redhat.com>
7867         * config/alpha/alpha.c (code_for_builtin): Replace special-case
7868         builtin codes with ctzdi2, clzdi2, popcountdi2.
7869         (struct alpha_builtin_def): Add is_const.
7870         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
7871         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
7872         (alpha_init_builtins): Init them.  Set nothrow and const attributes
7873         on builtins.
7874         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
7875         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
7876         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
7877         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
7878         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
7879         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
7880         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
7881         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
7882         (TARGET_FOLD_BUILTIN): New.
7883         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
7884         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
7885         (ffsdi2): Use ctz.
7886         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
7888 2005-03-08  Ira Rosen  <irar@il.ibm.com>
7890         PR tree-optimization/20122
7891         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
7892         condition of access function instead of base.
7894 2005-03-07  Jeff Law  <law@redhat.com>
7895             Steven Bosscher  <stevenb@suse.de>
7897         * tree-cfg.c (find_taken_edge_computed_goto): New function.
7898         (find_taken_edge): Call find_taken_edge_computed_goto as
7899         appropriate.  Allow any gimple invariant rather than just
7900         INTEGER_CST for VAL.
7901         (cleanup_control_flow): Cleanup a computed goto which has turned
7902         into a simple goto.
7903         (tree_merge_blocks): If block B has any forced labels, move
7904         them to the start of block A.
7905         * tree-ssa-dom.c (thread_across_edge): Allow threading across
7906         computed gotos as well.
7907         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
7908         removal of unnecessary computed gotos too.
7909         (lookup_redirection_data): Fix type of INSERT argument.  Callers
7910         updated.
7912 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
7914         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
7915         Remove trailing spaces.
7917         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
7918         unshare_all_trees): Make them static.
7919         * tree-gimple.h: Remove the corresponding prototypes.
7921         * diagnostic.h: Remove unused prototype
7922         debug_output_buffer.
7923         * modulo-sched.c: Remove unused prototype
7924         set_row_column_for_ps.
7926         * tree-ssa-phiopt.c (tree_ssa_phiopt,
7927         replace_phi_edge_with_variable): Remove unused variable i.
7929 2005-03-07  Per Bothner  <per@bothner.com>
7931         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
7933 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
7935         PR tree-opt/17671
7936         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
7937         bbs on the COND_EXPR instead of the PHI_NODEs.
7938         (candidate_bb_for_phi_optimization): Remove.
7939         (replace_phi_with_stmt): Rename to ...
7940         (replace_phi_edge_with_variable): this and change so that we
7941         replace the phi argument instead of removing the PHI.
7942         (conditional_replacement): Change so we deal with PHI with more
7943         than two arguments.
7944         (value_replacement): Likewise.
7945         (abs_replacement): Likewise.
7947 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
7949         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
7950         output_e500_flip_gt_bit.
7952         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
7953         as bit 31.
7954         (rs6000_generate_compare): Fix logic to look at the correct bits.
7955         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
7956         Look at GT bit.
7957         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
7958         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
7959         gen_move_from_CR_gt_bit.
7961         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
7962         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
7963         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
7965         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
7966         (E500_CR_IOR_COMPARE): New constant.
7968 2005-03-08  Earl Chew <earl_chew@agilent.com>
7969             David Billinghurst <David.Billinghurst@riotinto.com>
7971         * config/i386/host-cygwin.c: New file to support precompiled
7972         headers on cygwin
7973         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
7974         * config.host: Use above files for cygwin host.
7976 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
7978         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
7979         ordering ops from earlier change.
7981 2005-03-07  Per Bothner  <per@bothner.com>
7983         Various fixes to allow us to again build if --enable-mapped-location:
7984         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
7985         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
7986         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
7987         local variable loc. Change logic appropriately.
7988         * tree-vect-transform.c (vect_finish_stmt_generation): Use
7989         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
7990         * c-parser.c (c_parser_for_statement): Initialize loc variable.
7991         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
7992         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
7994 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
7996         PR rtl-optimization/19683
7997         * reload1.c (choose_reload_regs): Pass the number of bits, not the
7998         number of bytes, to smallest_int_for_mode.  Fix arguments to
7999         REG_CANNOT_CHANGE_MODE_P.
8001 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8003         * reorg.c (relax_delay_slots): Check that the jump is
8004         conditional before trying to invert it.
8006 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8008         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
8009         Make them static.
8011         * calls (stack_arg_under_construction): Make it static.
8013         * flow.c (regs_live_at_setjmp): Make it static.
8014         * flow.h: Remove the corresponding prototype.
8016         * reload1.c (reload_startobj, reload_firstobj,
8017         something_needs_operands_changed, reload_inherited,
8018         reload_inheritance_insn, reload_override_in,
8019         reload_spill_index): Make them static.
8021         * recog.c (verify_changes): Make it static.
8022         * recog.h: Remove the corresponding prototype.
8024         * cfgbuild.c (find_sub_basic_blocks): Remove.
8025         * basic-block.h: Remove the corresponding prototype.
8026         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
8027         in comments.
8028         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
8030         * tree-ssa-operands.c (check_build_stmt): Remove.
8032         * stor-layout.c (set_alignment): Remove.
8033         * tree.h: Remove the corresponding prototype.
8035         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
8037         * tree-ssa-dce.c (control_dependence_map,
8038         visited_control_parents): Make them static.
8040         * cfghooks.c (verify_flow_info): Remove local variable
8041         num_bb_notes.
8043         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
8044         last_bb_seen.
8046         * loop-unswitch.c (unswitch_loop): Remove local variable src.
8048 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
8050         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
8052 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
8054         * config/ia64/hpux.h (LINK_SPEC): Add -z.
8055         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
8056         PARALLEL for an empty structure.
8058 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
8060         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
8062         * fold-const.c (fold_binary): Unroll the very first "for"
8063         loop.
8065 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
8067         * config/rs6000/predicates.md (branch_comparison_operator): Remove
8068         redundant match_code test.
8069         (scc_comparison_operator): Swap match_operand and match_code
8070         tests.
8071         (branch_positive_comparison_operator): Same.
8072         (trap_comparison_operator): Use comparison_operator and swap with
8073         match_code test.
8075 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8077         PR target/20288
8078         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
8079         (out_movhi_r_mr): Read low byte of volatile MEM first.
8080         (out_movhi_mr_r): Write high byte of volatile MEM first.
8082 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8084         * cselib.c (reg_values, reg_values_size): Make them static.
8086         * cse.c (cse_reg_info_table): Make it static.
8088         * fold-const.c (fold_unary): Use build1 instead of copy_node.
8090 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
8092         * cse.c (find_best_addr): Use canon_for_address.
8094 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8096         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
8097         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
8098         SUBREG and MEM, respectively.
8100         * fold-const.c (fold_binary): Use code instead of t.
8102         * fold-const.c (optimize_minmax_comparison): Take decomposed
8103         arguments code, type, op0, and op1 instead of t.
8104         (fold_binary): Update a call to optimize_minmax_comparison.
8106         * fold-const.c (fold_range_test): Take decomposed arguments
8107         code, type, op0, and op1 instead of t.
8108         (fold_binary): Update a call to fold_range_test.
8110         * fold-const.c (fold_binary_op_with_conditional_arg): Take
8111         decomposed arguments code, type, op0, and op1 instead of t.
8112         (fold_binary): Update a call to fold_range_test.
8114 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
8116         * fold-const.c (fold_binary): Avoid directly using the original
8117         expression t as much as possible.
8119 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8121         * c-semantics.c (build_stmt): Use TYPE_P instead of
8122         IS_NON_TYPE_CODE_CLASS.
8123         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
8124         (NON_TYPE_CHECK): Use TYPE_P instead of
8125         IS_NON_TYPE_CODE_CLASS.
8127         * fold-const.c (fold): Remove handling of binary expressions.
8129 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
8131         * doc/c-tree.texi: Wrap comments in @r{}.
8132         * doc/cpp.texi: Likewise.
8133         * doc/cppinternals.texi: Likewise.
8134         * doc/extend.texi: Likewise.
8135         * doc/md.texi: Likewise.
8136         * doc/objc.texi: Likewise.
8137         * doc/sourcebuild.texi: Likewise.
8138         * doc/tm.texi: Likewise.
8139         * doc/tree-ssa.texi
8141 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
8143         * predict.c (apply_return_prediction): Standardize PHI chain
8144         walking.
8145         * tree-ssa.c (ssa_redirect_edge): Likewise.
8147         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
8148         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
8149         Update copyright.
8151         * tree-phinodes.c (remove_phi_node): Drop the last argument.
8152         * tree-flow.h: Adjust the prototype for remove_phi_node.
8153         * lambda-code.c (perfect_nestify): Adjust a call to
8154         remove_phi_node.
8155         * tree-cfg.c
8156         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
8157         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
8158         Likewise.
8159         * tree-ssa-dce.c (remove_dead_phis): Likewise.
8160         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
8161         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8162         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
8164         * combine.c (simplify_and_const_int): Use gen_int_mode instead
8165         of GEN_INT (trunc_int_for_mode (...)).
8166         * loop-iv.c (iv_number_of_iterations): Likewise.
8167         * postreload.c (reload_cse_move2add): Likewise.
8168         * simplify-rtx.c (simplify_const_unary_operation,
8169         simplify_const_binary_operation): Likewise.
8170         * stor-layout.c (get_mode_bounds): Likewise.
8172         * fold-const.c (fold_binary): New.
8173         (fold): Call fold_binary on binary expressions.
8175 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
8177         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
8178         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
8179         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
8180         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
8181         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
8183 2005-03-04  Devang Patel  <dpatel@apple.com>
8185         PR tree-optimization/18815
8186         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8187         loops with zero exit edges.
8189 2005-03-04  Devang Patel  <dpatel@apple.com>
8191         * doc/invoke.texi: Remove reference to webpage that does not exist.
8193 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
8194             Joseph S. Myers  <joseph@codesourcery.com>
8196         PR c++/19797
8197         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
8198         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
8199         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
8200         * pa.c (get_plabel): Change argument to symbol_ref.  Call
8201         maybe_get_identifier instead of get_identifier.
8202         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
8203         (struct deferred_plabel): Replace name field with symbol field.
8204         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
8205         ASM_OUTPUT_EXTERNAL_REAL is defined.
8206         (output_global_address): Use output_addr_const for output of all
8207         symbol_refs.
8208         (output_deferred_plabels): Use symbol_ref instead of name for address
8209         output.
8210         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
8211         ASM_OUTPUT_SYMBOL_REF): New macros.
8212         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
8213         comment.
8214         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
8215         label.
8217 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
8219         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
8220         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
8222 2005-03-04  Jeff Law  <law@redhat.com>
8224         * basic-block.h (rediscover_loops_after_threading): Declare.
8225         * tree-ssa-dom.c: Include cfgloop.h.
8226         (tree_ssa_dominator_optimize): Discover loops and some basic
8227         properties.  Remove forwarder blocks recreated by loop header
8228         canonicalization.  Also mark backedges in the CFG.
8229         * tree-ssa-threadupdate.c: Include cfgloop.h
8230         (rediscover_loops_after_threading): Define.
8231         (struct local_info): New field, JUMP_THREADED.
8232         (prune_undesirable_thread_requests): New function.
8233         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
8234         then record that fact for the callers of redirct_edges.
8235         (thread_block): If BB has incoming backedges, then call
8236         prune_undesirable_thraed_requests.    Note when we are
8237         going to have to rediscover loop information.  Return a
8238         boolean indicating if any jumps were threaded.
8239         (thread_through_all_blocks): Bubble up boolean indicating
8240         if any jumps were threaded.
8241         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
8242         (tree-ssa-threadupdate.o): Similarly.
8244 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8246         * fold-const.c (fold_ternary): Unroll the "for" loop to
8247         extract operands.
8249 2005-03-04  Andrew Haley  <aph@redhat.com>
8251         * unwind-dw2-fde-glibc.c (struct
8252         unw_eh_callback_data.check_cache): New field.
8253         (frame_hdr_cache): New.
8254         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
8255         Cache frame header info.
8257 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
8259         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8260         (print_c_condition): Declare.
8261         * read-rtl.c (ptr_loc): New structure.
8262         (ptr_locs, ptr_loc_obstack, joined_conditions)
8263         (joined_conditions_obstack): New variables.
8264         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
8265         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8266         (join_c_conditions, print_c_condition): New functions.
8267         (apply_macro_to_string): Associate the new string with the same
8268         source location as the old one.
8269         (add_condition_to_string): Use join_c_conditions.
8270         (read_string): Use set_rtx_ptr_loc to record a filename and line
8271         number for the string.
8272         (read_rtx): Initialize the new variables above.
8273         * genattrtab.c (write_test_expr, write_attr_value): Use
8274         print_c_condition.
8275         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
8276         comment above the GCC_VERSION check.
8277         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
8278         Inline the definition of MAYBE_EVAL.
8279         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
8280         * genoutput.c (process_template): Likewise.
8281         * genpreds.c (write_predicate_subfunction): Likewise.
8282         (write_predicate_expr): Use print_c_condition.
8283         * genrecog.c (write_cond): Likewise.
8284         * gensupport.c (process_rtx): Use join_c_conditions to join the
8285         conditions of a define_insn_and_split.  Record a source location
8286         for the string after the "&&".
8287         (alter_test_for_insn): Use join_c_conditions.
8289 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
8291         Revert for now:
8292         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8293         PR tree-optimization/15784
8294         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8295         and -1 - A to ~A.
8297 2005-03-04  Ben Elliston  <bje@au.ibm.com>
8299         * gcc.c (option_map): Add --coverage.
8300         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
8301         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
8302         * config/darwin.h: Pass -lgcov for `coverage'.
8303         * doc/invoke.texi (Debugging Options): Document --coverage.
8305 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8307         * gcse.c (bypass_block): Use find_edge wherever possible.
8309 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
8311         Fix PR debug/20253
8313         * c-opts.c (c_common_parse_file): Call start_source_file
8314         and end_source_file at the approriate times.
8316         * dwarf2out.c (dwarf2out_finish): Don't auto-end
8317         the main file, it will be done for us now.
8319 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
8321         * fold-const.c (fold_ternary): New.
8322         (fold): Call fold_ternary on ternary expressions.  Remove
8323         handling of ternary expressions.
8325 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
8327         PR tree-optimization/15784
8328         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
8329         and -1 - A to ~A.
8331 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
8333         * config/rs6000/predicates.md (branch_comparison_operator):
8334         Convert from C block to conditional format.
8336 2005-03-03  Jan Hubicka  <jh@suse.cz>
8338         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
8339         and non-constant public variables.
8341 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
8343         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
8344         with LABEL_EXPR.
8346         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
8347         EDGE_I.
8349         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
8350         calls to release_ssa_name and release_phi_node.
8352         * fold-const.c (fold): Remove handling of unary expressions.
8354         * fold-const.c (fold_unary): Avoid directly using the original
8355         expression t as much as possible.
8357 2005-03-03  Roger Sayle  <roger@eyesopen.com>
8358             Andrew Pinski  <pinskia@physics.uc.edu>
8360         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
8361         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
8363 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
8365         Describe special registers SRP and MOF as allocatable registers.
8366         * config/cris/cris.c (cris_md_asm_clobbers): New function.
8367         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
8368         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
8369         TARGET_HAS_MUL_INSNS.
8370         (cris_print_operand) <case 'd'>: New case.
8371         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
8372         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
8373         define.
8374         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
8375         (REG_ALLOC_ORDER): Update for MOF.
8376         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
8377         SPECIAL_REGS.
8378         (GENERAL_REGS): No longer a define of ALL_REGS.
8379         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
8380         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
8381         Adjust accordingly.
8382         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
8383         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
8384         (SECONDARY_RELOAD_CLASS): Define.
8385         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
8386         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
8387         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
8388         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
8389         (REGISTER_MOVE_COST): Define.
8390         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
8391         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
8392         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
8393         (CRIS_MOF_REGNUM): New define_constants.
8394         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
8395         special registers.
8396         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
8397         New patterns.
8398         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
8399         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
8400         Adjust for MOF being properly described as a register.
8401         (indir_to_reg_split): Name this split.  Conditionalize on the
8402         destination register being a general register.
8403         (movei): Conditionalize on on operands 0 and 1 having the same
8404         register class.
8406 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
8408         PR target/20277
8409         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
8410         -mcpu to override any other explicitly given flags.
8412 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
8414         * recog.c (verify_changes, confirm_change_group): New functions,
8415         broken out of apply_change_group.
8416         (apply_change_group): Use them.
8417         * recog.h (verify_change, confirm_change_group): Declare.
8418         * rtl.h (redirect_jump_2): Declare.
8419         * jump.c (redirect_exp, invert_exp): Delete.
8420         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
8421         (redirect_jump_2): New function, broken out of redirect_jump.
8422         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
8423         (invert_jump): Use invert_jump_1 and redirect_jump_2.
8424         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
8426 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
8428         * varasm.c (named_section): Use xstrdup rather than doing it by
8429         hand.
8431         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
8433 2005-03-02  Devang Patel  <dpatel@apple.com>
8435         Undo PR tree-optimization/18815 fix.
8437 2005-03-02  Devang Patel  <dpatel@apple.com>
8439         PR tree-optimization/18815
8440         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
8441         loops with zero exit edges.
8443 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8445         * cfg.c (connect_src, connect_dest, disconnect_src,
8446         disconnct_dest): New.
8447         (unchecked_make_edge, remove_edge, redirect_edge_succ,
8448         redirect_edge_pred): Use the new functions.
8450         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
8451         free_dominance_info only when needed.
8453 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
8455         PR target/20276
8456         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
8457         (reg_or_sub_cint64_operand): Same.
8459 2005-03-02  Jeff Law  <law@redhat.com>
8461         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
8462         CFG_ALTERED in the main DOM iteration loop.
8464 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
8466         PR c++/19916
8467         * varasm.c (initializer_constant_valid_p): Allow conversions
8468         between OFFSET_TYPEs.  Tidy.
8470 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
8472         * config/cris/cris.md ("return"): Remove epilogue delay list
8473         sanity check.
8475 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
8477         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
8478         for Thumb.
8479         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
8481 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
8483         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
8484         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
8485         config/m68k/m68k.c, config/mips/mips.h,
8486         config/rs6000/rs6000-protos.h, doc/contrib.texi,
8487         doc/include/gcc-common.texi: Update copyright.
8489         PR middle-end/18029 and PR middle-end/18030
8490         * expr.c (optimize_bitfield_assignment_op): Add a special case
8491         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
8493         * fold-const.c (fold_unary): New.
8494         (fold): Call fold_unary on unary expressions.
8496 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
8498         * cgraph.h (struct cgraph_edge): Add prev_caller and
8499         prev_callee fields.
8500         (cgraph_node_remove_callees): Export.
8501         * cgraph.c (cgraph_create_edge): Initialize prev_caller
8502         and prev_callee.
8503         (cgraph_edge_remove_callee): New function.
8504         (cgraph_edge_remove_caller): Likewise.
8505         (cgraph_remove_edge): Use.
8506         (cgraph_redirect_edge_callee): Likewise.
8507         (cgraph_node_remove_callees): New function.
8508         (cgraph_node_remove_callers): Likewise.
8509         (cgraph_remove_node): Use.
8510         * tree-optimize.c (tree_rest_of_compilation): Use
8511         cgraph_node_remove_callees instead of manual loop.
8512         * cgraphunit.c (cgraph_finalize_function): Likewise.
8513         (cgraph_expand_function): Likewise.
8514         (cgraph_remove_unreachable_nodes): Likewise.
8516 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
8518         PR c/8927
8519         * c-tree.h (undeclared_variable, build_external_ref): Add extra
8520         argument.
8521         * c-decl.c (undeclared_variable): Take location as argument.
8522         * c-typeck.c (build_external_ref): Likewise.
8523         * c-parser.c (c_parser_postfix_expression): Pass location of
8524         identifier to build_external_ref.
8526 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8528         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
8529         CCEQ mode for branch_positive_comparison_operator test.
8530         * config/rs6000/predicates (branch_comparison_operator): Revert to
8531         define_predicate.
8532         (scc_comparison_operator): Same.
8533         (branch_positive_comparison_operator): Same.
8535 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
8537         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
8538         (cris_delay_slots_for_epilogue): Remove.
8539         (save_last): Move into cris_target_asm_function_epilogue.
8540         (cris_target_asm_function_epilogue): Remove tests for file being
8541         NULL.
8542         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
8543         (cris_delay_slots_for_epilogue): Remove prototypes.
8544         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
8545         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
8547 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
8549         * config/rs6000/predicates.md (branch_comparison_operator): Change
8550         to define_special_predicate.
8551         (scc_comparison_operator): Same.
8552         (branch_positive_comparison_operator): Same.
8554 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
8556         * Makefile.in (tree-ssa-sink.o): New.
8557         (OBJS-common): Add tree-ssa-sink.o.
8558         * common.opt: Add -ftree-sink
8559         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
8560         * timevar.def (TV_TREE_SINK): new timevar.
8561         * tree-flow.h (is_hidden_global_store): Prototype.
8562         * tree-optimize.c (init_tree_optimization_passes): Add
8563         pass_sink_code.
8564         * tree-pass.h (pass_sink_code): New.
8565         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
8566         for non-obvious global store store to is_hidden_global_store, and
8567         call that new function.
8568         * tree-ssa-sink.c: New file.
8569         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
8570         * doc/passes.texi: Document forward store motion.
8571         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
8572         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
8573         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
8574         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
8576 2005-03-01  Per Bothner  <per@bothner.com>
8578         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
8579         and we have a non-zero column-number, add it to the message.
8580         Also factor out the diagnostic_kind_text.
8582 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
8584         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
8585         flow_loop_pre_header_scan, flow_loop_pre_header_find,
8586         flow_loop_scan): Removed.
8587         (flow_loop_dump): Do not dump removed fields.
8588         (flow_loop_free): Do not free removed fields.
8589         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
8590         (loop_exit_edge_p): New function.
8591         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
8592         num_pre_header_edges, entry_edges, num_entries, exit_edges,
8593         num_exits, exits_doms.
8594         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
8595         LOOP_EDGES, LOOP_ALL): Removed.
8596         (flow_loop_scan): Declaration removed.
8597         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
8598         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
8599         flow_loops_find.
8600         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
8601         (if_convert): Call flow_loops_find and flow_loops_free
8602         when calling mark_loop_exit_edges.
8603         * cfgloopanal.c (mark_loop_exit_edges): Moved from
8604         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
8605         free_dominance_info calls.
8606         * loop-init.c (flow_loops_find): Ditto.
8607         * passes.c (rest_of_handle_branch_prob): Ditto.
8608         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
8609         * loop-unroll.c (analyze_insns_in_loop): Do not use
8610         EDGE_LOOP_EXIT.
8611         * predict.c (predict_loops): Do not call flow_loop_scan.
8612         Use get_loop_exit_edges.
8613         (tree_estimate_probability): Do not pass flags to flow_loops_find.
8614         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
8615         Do not use EDGE_LOOP_EXIT.
8616         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
8617         to bb_with_exit_edge_p.
8618         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
8619         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
8620         to bb_with_exit_edge_p.
8621         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
8622         EDGE_LOOP_EXIT.
8623         * tree-loop-linear.c (linear_transform_loops): Do not call
8624         flow_loop_scan.  Use loop->single_exit.
8625         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
8626         (vect_analyze_loop_form): Do not call flow_loop_scan.
8627         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
8628         loop->single_exit.
8629         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
8630         loop->single_exit.
8631         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
8632         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
8633         slpeel_tree_duplicate_loop_to_edge_cfg,
8634         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
8635         Use loop_preheader_edge and loop->single_exit.  Do not call
8636         flow_loop_scan.
8638 2005-03-01  Nick Clifton  <nickc@redhat.com>
8640         * config/arm/arm.c (thumb_find_work_register): Check all of the
8641         argument registers to see if they are free, and a couple of
8642         special cases where the last argument register but can be proved
8643         to be available during the function's prologue.
8644         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
8645         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
8646         thumb_unexpanded_epilogue): Use unsigned long as the type for the
8647         register bit-mask.
8648         (thumb_compute_save_reg_mask): Likewise.  Also use
8649         thumb_find_work_register() to ensure that there is agreement about
8650         which work register is going to be used in the prologue.
8651         (thumb_output_function_prologue): Use unsigned long as the type
8652         for the register bit-mask.  Also delay pushing the link register if
8653         other high registers are going to be pushed.
8654         (thumb_compute_save_reg_mask, emit_multi_reg_push,
8655         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
8656         redundant prototypes.
8658 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
8660         PR target/19819
8661         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
8662         and after reload in REG+REG indexed addresses without REG_POINTER
8663         set in the base and not set in the index.
8665 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8667         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
8668         Don't undefine here.
8669         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
8670         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
8671         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
8672         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
8673         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
8674         Delete.
8675         * config.gcc (sh*-*-linux*): Use config/linux.h.
8677 2005-02-28  Dale Johannesen  <dalej@apple.com>
8678             Stan Shebs  <shebs@apple.com>
8680         Rewrite of 64-bit Darwin structure-by-value pass/return.
8681         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
8682         intoffset, use_stack, named.
8683         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
8684         (rs6000_darwin64_record_arg_advance_flush):  New.
8685         (rs6000_darwin64_record_arg_advance_recurse): New.
8686         (rs6000_darwin64_record_arg_flush):  New.
8687         (rs6000_darwin64_record_arg_recurse):  New.
8688         (rs6000_darwin64_record_arg):  New.
8689         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
8690         (function_arg_boundary):  Handle 128-bit aligned structs.
8691         (function_arg_advance):  Rewrite darwin64 struct handling.
8692         (function_arg):  Call rs6000_darwin64_record_arg.
8693         (function_arg_partial_nregs):  Handle darwin64 structs.
8694         (rs6000_darwin64_function_value):  Remove.
8695         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
8697 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8699         PR tree-optimization/20216
8700         * tree-chrec.c (tree_fold_factorial): Delete.
8701         (tree_fold_binomial): Change argument list to take a return type
8702         and change the type of K to unsigned int.  Rewrite to avoid explicit
8703         evaluation of factorials, and (recursively) calling fold to perform
8704         compile-time arithmetic.  Return NULL on (internal) overflow.
8705         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
8706         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
8707         if any intermediate calculation overflows.
8708         (chrec_apply): Update call to chrec_evaluate.
8710 2005-02-28  James E Wilson  <wilson@specifixinc.com>
8712         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
8714 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
8716         PR c/20245
8717         * c-parser.c (c_parser_compound_statement): Return error_mark_node
8718         instead of NULL_TREE on error.
8720 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
8722         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
8723         (EASY_VECTOR_15_ADD_SELF): Remove.
8724         (num_insns_constant_wide): Not static.
8725         (validate_condition_mode): Not static.
8726         (toc_relative_expr_p): Not static.
8727         (legitimate_indirect_address_p): Not static.
8728         (macho_lo_sum_memory_operand): Not static.
8729         (invalid_e500_subreg): Not static.
8730         (easy_vector_same): Not static.
8731         (easy_vector_splat_const): Not static.
8732         (RS6000_SYMBOL_REF_TLS_P): Remove.
8733         (any_operand): Delete.
8734         (any_parallel_operand): Delete.
8735         (count_register_operand): Delete.
8736         (altivec_register_operand): Delete.
8737         (xer_operand): Delete.
8738         (s8bit_cint_operand): Delete.
8739         (short_cint_operand): Delete.
8740         (u_short_cint_operand): Delete.
8741         (non_short_cint_operand): Delete.
8742         (exact_log2_cint_operand): Delete.
8743         (gpc_reg_operand): Delete.
8744         (cc_reg_operand): Delete.
8745         (cc_reg_not_cr0_operand): Delete.
8746         (reg_or_short_operand): Delete.
8747         (reg_or_neg_short_operand): Delete.
8748         (reg_or_aligned_short_operand): Delete.
8749         (reg_or_u_short_operand): Delete.
8750         (reg_or_cint_operand): Delete.
8751         (reg_or_arith_cint_operand): Delete.
8752         (reg_or_add_cint64_operand): Delete.
8753         (reg_or_sub_cint64_operand): Delete.
8754         (reg_or_logical_cint_operand): Delete.
8755         (got_operand): Delete.
8756         (got_no_const_operand): Delete.
8757         (easy_fp_constant): Delete.
8758         (easy_vector_constant): Delete.
8759         (easy_vector_constant_add_self): Delete.
8760         (zero_constant): Delete.
8761         (zero_fp_constant): Delete.
8762         (volatile_mem_operand): Delete.
8763         (offsettable_mem_operand): Delete.
8764         (mem_or_easy_const_operand): Delete.
8765         (add_operand): Delete.
8766         (non_add_cint_operand): Delete.
8767         (logical_operand): Delete.
8768         (non_logical_cint_operand): Delete.
8769         (mask_operand): Delete.
8770         (mask_operand_wrap): Delete.
8771         (mask64_operand): Delete.
8772         (mask64_2_operand): Delete.
8773         (and64_operand): Delete.
8774         (and64_2_operand): Delete.
8775         (and_operand): Delete.
8776         (reg_or_mem_operand): Delete.
8777         (lwa_operand): Delete.
8778         (symbol_ref_operand): Delete.
8779         (call_operand): Delete.
8780         (current_file_function_operand): Delete.
8781         (input_operand): Delete.
8782         (rs6000_nonimmediate_operand): Delete.
8783         (rs6000_tls_symbol_ref): Delete.
8784         (save_world_operation): Delete.
8785         (restore_world_operation): Delete.
8786         (load_multiple_operation): Delete.
8787         (store_multiple_operation): Delete.
8788         (vrsave_operation): Delete.
8789         (mfcr_operation): Delete.
8790         (mtcrf_operation): Delete.
8791         (lmw_operation): Delete.
8792         (stmw_operation): Delete.
8793         (branch_comparison_operator): Delete.
8794         (branch_positive_comparison_operator): Delete.
8795         (scc_comparison_operator): Delete.
8796         (trap_comparison_operator): Delete.
8797         (boolean_operator): Delete.
8798         (boolean_or_operator): Delete.
8799         (min_max_operator): Delete.
8800         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
8801         (EASY_VECTOR_15): Moved to here.
8802         (EASY_VECTOR_15_ADD_SELF): Move to here.
8803         (PREDICATE_CODES): Delete.
8804         * config/rs6000/rs6000-protos.h: Delete predicate functions.
8805         Declare functions no longer static.
8806         * config/rs6000/predicates.md: New.
8807         * config/rs6000/rs6000.md: Include predicates.md
8809 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
8811         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
8812         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
8813         REG_ALWAYS_RETURN.
8814         * cfgrtl.c (need_fake_edge_p): Likewise.
8815         * combine.c (distribute_notes): Likewise.
8816         * emit-rtl.c (try_split): Likewise.
8817         * recog.c (peephole2_opimize): Likewise.
8818         * reg-notes.def (ALWAYS_RETURN): Remove.
8819         * rtl.h (LCT_ALWAYS_RETURN): Remove.
8820         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
8821         * tree.h (ECF_ALWAYS_RETURN): Remove.
8823 2005-02-28  Roger Sayle  <roger@eyesopen.com>
8825         PR middle-end/19874
8826         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
8827         between different machine modes is never a "useless" conversion.
8829 2005-02-28  Geert Bosch  <bosch@gnat.com>
8831         PR ada/15977
8832         * doc/contrib.texi: List contributors for Ada front end
8834 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
8836         * simplify-rtx.c (simplify_unary_operation_1,
8837         simplify_const_unary_operation): New, extracted from...
8838         (simplify_unary_operation): ... this one.
8839         (simplify_binary_operation_1,
8840         simplify_const_binary_operation): New, extracted from...
8841         (simplify_binary_operation): ... this one.
8842         * rtl.h (simplify_const_unary_operation,
8843         simplify_const_binary_operation): Add prototypes.
8845 2005-02-28  Julian Brown  <julian@codesourcery.com>
8847         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
8848         building libjava and caused PR regression/20228.
8850 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
8852         PR bootstrap/17383
8853         * Makefile.in (host_subdir): New.
8854         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
8855         * configure: Regenerate.
8857 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
8859         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
8860         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
8861         installation directory first.
8863 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
8865         PR target/19065.
8866         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
8867         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
8868         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
8869         * config/cris/cris.md: Tweak comments referring to Q.
8870         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
8871         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
8872         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
8873         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
8874         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
8875         Insert spaces in constraints to align alternatives vertically for
8876         readability.
8877         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
8878         operand 1: "M".
8880 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8882         PR rtl-optimization/17728
8883         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
8884         operand 0 from general_operand to move_dest_operand.
8886 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8888         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
8889         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
8890         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
8891         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
8893 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8895         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
8896         * configure: Regenerate.
8897         * libada-mk.in: Remove CC; rename
8898         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
8900 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
8902         PR tree-opt/20188
8903         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
8904         for the lhs, also walk over the tree.  Likewise for rhs.
8906 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
8908         * tree-ssa-dom.c (simple_iv_increment_p): New function.
8909         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
8910         Do not propagate value of iv before increment over the increment.
8912 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
8914         * c-parser.c: New file.
8915         * c-parse.in: Remove.
8916         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
8917         Remove.
8918         (c-parser.o): Add dependencies.
8919         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
8920         maintainer-clean, TAGS): Update.
8921         * c-config-lang.in (gtfiles): Update.
8922         * gengtype-lex.l: Don't handle "@@".
8923         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
8924         objc_build_synchronized, objc_begin_try_stmt,
8925         objc_begin_catch_clause, objc_finish_catch_clause,
8926         objc_build_finally_clause, objc_finish_try_stmt): New.
8927         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
8928         type_seen_p.
8929         (c_parse_init): Update comment.
8930         * c-decl.c (c_init_decl_processing): Update comment.
8931         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
8932         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
8933         new c_declspecs members.
8935 2005-02-25  Julian Brown  <julian@codesourcery.com>
8937         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
8938         from being used for symbols with vague linkage when
8939         HAVE_GAS_COMDAT_GROUP is true.
8941 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
8943         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
8945 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
8947         PR target/19930
8948         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
8949         (LIBGCC2_HAS_DF_MODE): New.
8950         (LIBGCC2_HAS_XF_MODE): New.
8951         (LIBGCC2_HAS_TF_MODE): New.
8952         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
8953         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
8954         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
8955         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
8956         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
8957         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
8958         and add _fixtfdi, _fixunstfdi, _floatditf
8959         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
8960         L_fixunstfdi, L_floatditf.
8961         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
8962         (LIBGCC2_HAS_TF_MODE): Define.
8964 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
8966         PR tree-optimization/20204
8967         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
8968         REWRITE_THIS_STMT markers on PHI nodes.
8969         (rewrite_initialize_block): Likewise.
8971 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
8973         * version.c (version_string): Update to 4.1.
8975 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
8977         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
8978         Clarify that the alternative way doesn't work in GNU C++.
8980 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
8982         PR tree-optimization/19937
8983         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
8984         to the type of the induction variable.
8986 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8988         PR rtl-optimization/20117
8989         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
8990         the block including noncopyable insn.
8992 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
8994         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
8995         calls to find_reg_note.
8997 2005-02-24  Richard Henderson  <rth@redhat.com>
8999         PR tree-opt/20127
9000         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
9001         the type.
9003 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
9005         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
9006         vector types if to use base reg for misaligned non-word ld/std.
9008 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9010         PR target/14619
9011         * config/cris/cris.c (cris_target_asm_function_prologue): Create
9012         dwarf2 label manually and put it after, not before the prologue.
9014 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
9016         PR target/19019
9017         * reload.c (operands_match_p): Only increment register number for
9018         SCALAR_INT_MODE_P modes in multiple hard registers.
9020         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
9021         Fix formatting.
9023 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9025         * ChangeLog.5: Fix log message typo(s).
9026         * ChangeLog.7: Likewise.
9027         * ChangeLog.tree-ssa: Likewise.
9028         * cfgexpand.c: Fix comment typo(s).
9029         * conflict.c: Likewise.
9030         * defaults.h: Likewise.
9031         * dwarf2out.c: Likewise.
9032         * gcse.c: Likewise.
9033         * ggc-page.c: Likewise.
9034         * tree-eh.c: Likewise.
9035         * tree-ssa-dom.c: Likewise.
9037 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
9039         PR target/19019
9040         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
9041         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
9042         if SHARED is defined.
9044         PR target/20196
9045         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
9046         allow splitting only if operands 0 and 3 don't overlap.
9048 2005-02-24  Richard Henderson  <rth@redhat.com>
9050         PR middle-end/19953
9051         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
9052         (fold_builtin_1): Call them.
9053         * fold-const.c (fold_complex_mult_parts): Split out from ...
9054         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
9055         (fold_complex_div_parts, fold_complex_div): New.
9056         (fold): Use them.
9057         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
9059 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9061         * tree-ssa-ccp.c (visit_assignment): Verify that result of
9062         VIEW_CONVERT_EXPR is_gimple_min_invariant.
9064         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
9065         (print_node): Likewise.
9066         Print TYPE_SIZES_GIMPLIFIED.
9068 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
9070         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
9071         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
9072         operands as commutative in constraints.
9074 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
9076         * tree-into-ssa.c: Re-organize internal functions.
9078 2005-02-24  Richard Henderson  <rth@redhat.com>
9080         PR middle-end/18902
9081         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
9082         for c99.
9083         * common.opt (fcx-limited-range): New.
9084         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
9085         * toplev.c (flag_complex_method): Initialize to 1.
9086         (process_options): Set flag_complex_method to 0 if
9087         flag_cx_limited_range.
9088         * doc/invoke.texi (-fcx-limited-range): New.
9090 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
9092         * cse.c (delete_trivially_dead_insns): Speed up by using
9093         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
9094         prev_real_insn.
9096 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
9098         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
9099         functions when -mid-shared-library is being used.
9101 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9103         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
9104         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
9105         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
9106         * system.h: Poison LINK_LIBGCC_SPECIAL.
9108 2005-02-23  James E Wilson  <wilson@specifixinc.com>
9110         * gengtype.c (note_insn_name): Make 1 element larger.
9112 2005-02-23  Roger Sayle  <roger@eyesopen.com>
9114         PR target/20018
9115         PR rtl-optimization/20097
9116         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
9117         BImode SUBREGs of SImode registers which confuse the ia64 backend.
9119 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
9121         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
9122         * t-aix52 (SHLIB_INSTALL): Same.
9124 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
9126         * genpreds.c: Update copyright.
9128 2005-02-23  Michael Beach  <michaelb@ieee.org>
9130         PR target/20159
9131         * config/sparc/t-elf (startup files): Assemble with CPP.
9133 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
9135         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
9136         (write_predicate_expr): Likewise.
9138 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9140         PR tree-optimization/20100
9141         PR tree-optimization/20115
9142         * tree-optimize.c (init_tree_optimization_passes): Remove
9143         pass_maybe_create_global_var.
9144         * tree-pass.h (pass_maybe_create_global_var): Remove.
9145         * tree-ssa-alias.c (aliases_computed_p): Declare.
9146         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
9147         (count_calls_and_maybe_create_global_var): Remove.
9148         (pass_maybe_create_global_var): Remove.
9149         (init_alias_info): Do not declare aliases_computed_p.
9150         (maybe_create_global_var): If the function contains no
9151         call-clobbered variables and a mix of pure/const and regular
9152         function calls, create .GLOBAL_VAR.
9153         Mark all call-clobbered variables for renaming.
9154         (merge_pointed_to_info): Update comment.
9155         (add_pointed_to_var): Likewise.
9156         (is_escape_site): Likewise.
9157         Accept struct alias_info * instead of size_t *.
9158         Update all users.
9159         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
9160         as necessary.
9161         * tree-ssa-operands.c (get_call_expr_operands): If
9162         ALIASES_COMPUTED_P is false, do not add call-clobbering
9163         operands.
9164         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
9165         (delete_tree_ssa): Likewise.
9167 2005-02-22  James E Wilson  <wilson@specifixinc.com>
9169         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
9170         (do_compile): Do call it here.
9172 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9174         PR rtl-optimization/20017.
9175         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
9176         rest_of_handle_cse2, rest_of_handle_gcse): Call
9177         delete_dead_jumptables immediately before calling cleanup_cfg.
9179 2005-02-22  Devang Patel  <dpatel@apple.com>
9181         PR 19952
9182         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
9183         all labels
9185 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
9187         * config/rs6000/aix.h (WINT_TYPE): Define.
9189 2005-02-22  Stan Shebs  <shebs@apple.com>
9191         * config/rs6000/rs6000.c (rs6000_override_options): Default to
9192         natural alignment for 64-bit Darwin.
9193         (rs6000_parse_alignment_option): Warn about uses of -malign-power
9194         on 64-bit Darwin.
9195         * doc/invoke.texi: Document this.
9197 2005-02-22  DJ Delorie  <dj@redhat.com>
9199         * c-common.c (c_common_type_for_mode): Pass the mode's precision
9200         to make_[un]signed_type, not the mode itself.
9202 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
9204         * cfg.c (cached_make_edge): Call make_edge if edge cache is
9205         not available.  Use tail calls wherever possible.
9206         (make_edge): Call unchecked_make_edge to create an edge.
9208         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
9209         (coalesce_ssa_name): Don't check for
9210         SSANORM_USE_COALESCE_LIST.
9211         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
9213 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
9215         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
9216         (rewrite_into_ssa): ... here.
9218 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
9220         PR tree-optimization/19786
9221         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
9222         tag to another's may-alias bitmap when adding to the other's list.
9224 2005-02-21  DJ Delorie  <dj@redhat.com>
9226         * tree-ssa-loop-ivopts.c (computation_cost): Start register
9227         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
9228         registers in unsupported ways.
9229         * expmed.c (init_expmed): Likewise.
9231 2005-02-21  Stan Cox  <scox@redhat.com>
9233         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
9235 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9237         * tree-cfg.c (fold_cond_expr_cond): New.
9238         (make_edges): Call fold_cond_expr_cond.
9239         (find_taken_edge): Accept nothing but INTEGER_CST.
9240         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
9241         and 1.
9242         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
9244         * flow.c (delete_dead_jumptables): Speed up by scanning insns
9245         that do not belong to any basic block.
9247 2005-02-21  Jeff Law  <law@redhat.com>
9249         * cfganal.c (find_unreachable_blocks): Manually CSE load of
9250         e->dest.
9252 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
9254         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
9255         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
9256         Adjust their definitions.
9257         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
9258         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
9260         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
9261         genautomata.c, langhooks.c, langhooks.h, system.h,
9262         config/arm/lib1funcs.asm: Update copyright.
9264 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
9266         * dbxout.c (dbxout_function_end): Emit Lscope label always.
9268 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
9270         PR bootstrap/13770
9271         * doc/install.texi: Document --with-gc.
9273 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
9275         * simplify-rtx.c (simplify_unary_operation): Add a missing
9276         "break" statement.
9278 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9280         PR tree-optimization/18663
9281         * tree-ssa-dom.c (extract_range_from_cond): Return 0
9282         if the type has variable bounds.
9284 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
9286         * gcse.c: Remove an obsolete comment.
9288         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
9290 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
9292         * doc/extend.texi (Function Attributes) <Attribute const>: The
9293         attribute "pure" is below this text, not above.
9295 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9297         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
9298         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
9299         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
9301 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
9303         PR 18785
9304         * langhooks.h (struct lang_hooks): Add to_target_charset.
9305         * langhooks.c (lhd_to_target_charset): New function.
9306         * langhooks-def.h: Declare lhd_to_target_charset.
9307         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
9308         (LANG_HOOKS_INITIALIZER): Update.
9309         * c-common.c (c_common_to_target_charset): New function.
9310         * c-common.h: Declare it.
9311         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
9312         c_common_to_target_charset.
9314         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
9315         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
9316         Delete definitions.
9317         * system.h: Poison them.
9318         * doc/tm.texi: Don't discuss them.
9319         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
9320         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
9321         (pp_c_char): Do not attempt to generate letter escapes for
9322         newline, tab, etc.
9323         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
9324         * config/mips/mips.c (mips_output_ascii): Likewise.
9326 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
9328         PR tree-optimization/19951
9329         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
9330         is abnormal.
9332 2005-02-19  Steven Bosscher  <stevenb@suse.de>
9334         PR middle-end/19698
9335         * function.h (struct function): New field `max_loop_depth'.
9336         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
9337         (flow_loops_find): Reset the max loop depth count before finding loops.
9338         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
9339         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
9340         (calculate_global_regs_live): Make sure the loop will terminate
9341         when the initial sets are not empty.
9343 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
9345         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
9346         object inside.
9347         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
9349 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
9351         PR other/19525
9352         * doc/invoke.texi: Remove documentation of %M spec.
9353         * gcc.c: Likewise.
9354         (init_spec): Remove %M suffix from -lgcc_s.
9355         (do_spec_1): Remove 'M' case.
9356         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
9357         to put shared libraries in the multilib directory.  Remove the
9358         shlib_so_soname substitution variable.  Don't add a multilib encoding
9359         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
9360         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
9361         SHLIB_INSTALL as well as SHLIB_LINK.
9362         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
9363         (SHLIB_NAME): Delete.
9364         (SHLIB_DIR): New macro.
9365         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
9366         (SHLIB_INSTALL): Adjust accordingly.
9367         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
9368         * config/t-slibgcc-sld: Likewise.
9369         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
9370         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
9371         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
9372         in $(SHLIB_DIR).
9373         (SHLIBUNWIND_INSTALL): Adjust accordingly.
9374         * config/i386/t-nwld (SHLIB_SONAME): Delete.
9375         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
9376         Use @shlib_base_name@ instead of @shlib_so_name@.
9377         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
9378         and @shlib_base_name@.so in @multilib_dir@.
9379         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
9380         to the install path.
9381         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
9382         (SHLIB_LINK): Remove previous workaround.
9383         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
9384         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
9385         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
9386         the install path.
9387         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
9388         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
9389         (SHLIB_INSTALL): Adjust accordingly.
9390         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
9391         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
9392         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
9393         config/t-slibgcc-elf-ver.
9395 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
9396             Jakub Jelinek  <jakub@redhat.com>
9398         PR tree-optimization/19828
9399         * tree-ssa-loop-im.c: Add a TODO comment.
9400         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
9401         without side-effects.
9403 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9405         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
9406         call fold_convert.
9408 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
9410         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
9411         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
9412         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
9413         functions.
9414         (ia64_reorg): Delete fixup_errata call.
9415         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
9416         (TARGET_SWITCHES): Delete -mb-step entry.
9418 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
9420         PR c/20043
9421         * c-typeck.c (composite_type): Handle quals in transparent unions.
9422         (type_lists_compatible_p): Likewise.
9424 2005-02-18  Stan Shebs  <shebs@apple.com>
9426         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
9427         expressions in the .literal8 section.
9429 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
9431         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
9433 2005-02-18  Roger Sayle  <roger@eyesopen.com>
9435         * fold-const.c (constant_boolean_node): Always create values of the
9436         specified type, don't bother calling truthvalue_conversion.
9438 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9440         * except.c (output_function_exception_table): Call
9441         assemble_external_libcall (eh_personality_libfunc).
9443 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9445         PR target/19886
9446         * config/ia64/ia64.h (struct machine_function): Add state_num.
9447         * config/ia64/ia64.c (process_epilogue,
9448         process_for_unwind_directive): Use new unwind state numbers each
9449         time rather than state 1.
9451 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9453         PR target/20054
9454         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
9455         before the "*llgt_didi" pattern.
9457 2005-02-18  Jason Merrill  <jason@redhat.com>
9459         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
9461 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
9463         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
9464         (div0): Use it in place of ARM_FUNC_ALIAS.
9465         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
9467 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
9469         PR middle-end/20030
9470         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
9471         access, the lower bound of the array type if it exists.
9473 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
9475         PR c++/20008
9476         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
9477         cases that are out-of-range for the index type.
9479 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
9481         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
9482         (estimate_case_costs): Don't call convert.
9483         * expmed.c (expand_shift): Likewise.
9484         (make_tree): Call fold_convert instead of convert.
9486 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9488         PR c++/19813
9489         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
9490         that ref to be marked MEM_READONLY_P doesn't have base that needs
9491         constructing.
9493 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
9495         * genautomata.c (output_get_cpu_unit_code_func,
9496         output_cpu_unit_reservation_p): Don't generate old-style function
9497         definitions.
9499 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
9501         PR c++/20023
9502         PR tree-optimization/20009
9503         * convert.c (convert_to_integer): Revert 2005-02-16 change.
9505         PR tree-optimization/18947
9506         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
9507         inline, remove all nodes that are inlined into the extern inline
9508         being redefined.
9510 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9512         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
9513         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
9514         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
9515         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
9516         Update copyright.
9518 2005-02-17  Roger Sayle  <roger@eyesopen.com>
9520         PR tree-optimization/19917
9521         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
9522         to be potentially trapping.
9524 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
9526         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
9528 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9530         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
9531         tem becomes a local variable which is set to the value of the
9532         back end defined INITIAL_FRAME_ADDRESS macro.
9533         (expand_builtin_frame_address): Omit the base parameter to
9534         expand_builtin_return_addr.
9535         (expand_builtin_profile_func): Likewise.
9536         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
9537         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
9538         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
9540 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
9542         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
9543         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
9544         * config/frv/frv.c (frv_function_epilogue): Likewise.
9546 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
9548         * lambda-code (perfect_nestify): Remove mark/unmark
9549         for rewriting hack.
9550         * tree-loop-linear.c (linear_transform_loops): Add
9551         rewrite_into_ssa call so that ssa is correct for
9552         rewriting into loop closed.
9554 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
9556         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
9557         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
9558         BITMAP_FREE.
9559         * bt-load.c (btr_def_live_range, combine_btr_defs,
9560         migrate_btr_def, migrate_btr_defs): Likewise.
9561         * cfgcleanup.c (thread_jump): Likewise.
9562         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
9563         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
9564         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
9565         df_rd_local_compute, df_reg_info_compute): Likewise.
9566         * dominance.c (init_dom_info, free_dom_info): Likewise.
9567         * flow.c (init_propagate_block_info,
9568         free_propagate_block_info): Likewise.
9569         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
9570         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
9571         modify_reg_pav): Likewise.
9572         * loop-invariant.c (find_defs, find_invariant_insn,
9573         find_invariants, free_inv_motion_data): Likewise.
9574         * predict.c (tree_predict_by_opcode,
9575         estimate_bb_frequencies): Likewise.
9576         * stmt.c (expand_case): Likewise.
9577         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
9578         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
9579         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
9580         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
9581         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
9582         rewrite_ssa_into_ssa): Likewise.
9583         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9584         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
9585         analyze_edges_for_bb, perform_edge_inserts): Likewise.
9586         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
9587         * tree-sra.c (tree_sra): Likewise.
9588         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
9589         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
9590         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
9591         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
9592         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
9593         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
9594         Likewise.
9595         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
9596         calculate_live_on_entry, calculate_live_on_exit,
9597         build_tree_conflict_graph): Likewise.
9598         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
9599         record_important_candidates, set_use_iv_cost, find_depends,
9600         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
9601         tree_ssa_iv_optimize_finalize): Likewise.
9602         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
9603         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
9604         tree_duplicate_loop_to_header_edge): Likewise.
9605         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
9606         * tree-ssa.c (verify_flow_insensitive_alias_info,
9607         verify_name_tags, verify_ssa, init_tree_ssa,
9608         delete_tree_ssa): Likewise.
9609         * tree-ssanames.c (marked_ssa_names, init_ssanames,
9610         fini_ssanames): Likewise.
9611         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
9613 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
9615         * config/rs6000/t-rtems: Completely reworked.
9617 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9619         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
9621 2005-02-17  Ira Rosen  <irar@il.ibm.com>
9623         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
9624         POINTER_TYPE_P when checking that type is a pointer.
9625         (vect_get_memtag): Remove.
9626         (vect_address_analysis): Use POINTER_TYPE_P. Call
9627         vect_object_analysis with dummy parameter for memtag.
9628         (vect_object_analysis): Extract memtag (functionality that
9629         used to be in vect_get_memtag and moved here). Fix printings.
9630         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
9631         with correct parameters. Remove call to vect_get_memtag.
9633 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
9635         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
9636         (tree-vectorizer.o): Added missing dependencies.
9638         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
9639         decleration.
9640         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
9641         declaration in tree-vectorizer.c, now has an extern declaration in
9642         tree-vectorizer.h).
9643         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9644         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9645         get_vectype_for_scalar_type, vect_is_simple_use,
9646         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9647         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
9648         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
9649         vectorizable_store, vectorizable_operation, vectorizable_assignment,
9650         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
9651         find_loop_location): Likewise.
9653         * tree-vectorizer.c (langhooks.h): #include removed.
9654         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
9655         moved to tree-vectorized.h.
9656         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
9657         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
9658         get_vectype_for_scalar_type, vect_is_simple_use,
9659         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
9660         vect_supportable_dr_alignment, new_loop_vec_info,
9661         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
9662         vect_set_verbosity_level, find_loop_location): Likewise.
9664         (vect_analyze_loop): Function externalized. Declaration moved to
9665         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
9666         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
9667         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
9668         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
9669         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
9670         vect_enhance_data_refs_alignment, vect_analyze_operations,
9671         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
9672         vect_stmt_relevant_p, vect_get_loop_niters,
9673         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
9674         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
9675         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
9676         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
9677         vect_get_memtag): Likewise.
9679         (vectorizable_load): Function externalized. Declaration moved to
9680         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
9681         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
9682         vect_transform_loop): Likewise.
9683         (vect_transform_stmt): Moved to tree-vect-transform.c.
9684         (vect_align_data_ref, vect_create_destination_var,
9685         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
9686         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
9687         vect_get_vec_def_for_operand, vect_init_vector,
9688         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
9689         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
9690         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
9691         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
9692         vect_do_peeling_for_loop_bound): Likewise.
9694         * tree-vect-analyze.c: New file.
9695         * tree-vect-transform.c: New file.
9697 2005-02-17  Jason Merrill  <jason@redhat.com>
9699         PR mudflap/19319, c++/19317
9700         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
9701         slot explicit.
9703 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
9705         * doc/install.texi (Specific): Update link for Darwin-specific
9706         tool binary site.
9708 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
9710         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
9711         constant_boolean_node.
9713 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
9715         PR target/19019
9716         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
9717         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
9719 2005-02-16  Richard Henderson  <rth@redhat.com>
9721         PR 19920
9722         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
9723         with W_TYPE_SIZE.
9724         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
9725         replace uses with Wtype_MAXp1_F.
9726         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
9727         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
9728         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
9729         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
9730         and HAVE_TFMODE as appropriate.
9731         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
9732         (__floatdisf): Likewise.
9733         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
9734         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
9735         (Wtype_MAXp1_F): New.
9736         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
9737         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
9739 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
9741         * PR target/19162
9742         * arm.c (arm_apply_result_size): New function.
9743         * arm.h (APPLY_RESULT_SIZE): Define.
9744         * arm-protos.h (arm_apply_result_size): Add prototype.
9745         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
9746         (movxf): New expand.
9747         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
9748         (call_value_symbol): Remove predicate for operand 0.
9749         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
9750         (untyped_call): Rework to correclty return values for any type.
9751         (untyped_return): New expand.
9752         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
9754 2005-02-16  Stan Shebs  <shebs@apple.com>
9756         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
9757         * config/rs6000/t-darwin8: New, for 64-bit multilib.
9759 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9761         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
9762         configure settings on Solaris 7 and later.
9764 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
9766         PR tree-optimization/19865
9767         * tree-optimize.c (init_tree_optimization_passes): Run
9768         pass_may_alias after pass_sra.
9770 2005-02-16  Richard Henderson  <rth@redhat.com>
9771             Stuart Hastings  <stuart@apple.com>
9773         PR debug/19521
9774         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
9775         Do nothing if debug info suppressed for this function.
9776         (dbxout_begin_function): Early exit if debug info suppressed for
9777         this function.
9779 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
9781         PR target/20007
9782         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
9783         find_basic_blocks.
9784         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9786         PR tree-optimization/19967
9787         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
9788         expand_builtin_strchr, expand_builtin_strrchr): Take a new
9789         argument TYPE.  Adjust calls to fold_builtin_XXX.
9790         (expand_builtin, fold_builtin_1): Adjust calls to
9791         expand_builtin_XXX.
9792         (fold_builtin_strchr, fold_builtin_strpbrk,
9793         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
9794         result to a requested type TYPE.
9796 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
9798         PR middle-end/19857
9799         * fold-const.c (fold): Don't optimize (T)(x & cst) to
9800         (T)x & (T)cst if (T)cst overflows.
9801         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
9802         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
9804 2005-02-15  Jeff Law  <law@redhat.com>
9806         * gcse.c (blocks_with_calls): New bitmap.
9807         (alloc_gcse_mem): Allocate it.
9808         (free_gcse_mem): Free it.
9809         (clear_modifY_mem_tables): Clear it.
9810         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
9811         when we encounter CALL_INSNs.
9812         (compute_transp, case MEM): Handle blocks with calls separate
9813         from blocks without calls.  Use bitmap iterators rather than
9814         FOR_EACH_BB.
9816 2005-02-15  Peter O'Gorman  <peter@pogma.com>
9818         PR bootstrap/18810
9819         * mklibgcc.in (vis_hide): Use a temporary object file, not
9820         -o /dev/null.
9822 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
9824         PR target/19924
9825         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
9826         access optimization.
9828 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
9829             Alan Modra  <amodra@bigpond.net.au>
9831         PR target/19019
9832         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
9833         (_xlqsub): Rename to __gcc_qsub.
9834         (_xlqmul): Rename to __gcc_qmul.
9835         (_xlqdiv): Rename to __gcc_qdiv.
9836         Provide versioned symbol aliases with old names.
9837         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
9838         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
9839         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
9840         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
9841         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
9843 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
9845         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
9846         Fold ~(A - 1) and ~(A + -1) to -A.
9848 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
9850         PR pch/14940
9851         PR target/19300
9852         * config/host-linux.c (linux_gt_pch_use_address): Copy from
9853         config/pa/pa-host.c:pa_gt_pch_use_address.
9855 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
9857         * tree-vn.c (get_value_handle): Make sure that given an
9858         is_gimple_min_invariant expression, we always return it.
9860 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
9862         * passes.c (rest_of_handle_gcse): Fix a comment.
9864 2005-02-15  Jeff Law  <law@redhat.com>
9866         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
9867         bitmap.
9868         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
9869         (canon_list_insert, record_last_mem_set_info): Similarly.
9870         (clear_modify_mem_tables): Similarly.
9872 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
9874         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
9875         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
9876         config/mips/mips.md, config/rs6000/aix.h,
9877         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
9879 2005-02-15  Richard Henderson  <rth@redhat.com>
9881         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
9882         call to be best_edge.
9884 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
9886         * basic-block.h: Adjust the prototype for find_basic_blocks.
9887         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
9888         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
9889         find_basic_blocks.
9891         * flow.c (recompute_reg_usage): Remove all arguments.
9892         * passes.c (rest_of_compilation): Adjust the call to
9893         recompute_reg_usage.
9894         * rtl.h: Adjust the prototype for recompute_reg_usage.
9896 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
9898         * tree-dump.c (dump_files): Update to reflect new member
9899         of dump_file_info.
9900         (dump_register): Add new argument.
9901         Set glob name.
9902         (dump_switch_p_1): Check against glob name if doglob was passed.
9903         (dump_switch_p): Check against regular first, then glob if
9904         we didn't have any hits on the dump name.
9905         * tree-optimize.c (register_one_dump_file):
9906         Pass in glob name as well.
9907         * tree-pass.h (struct dump_file_info): Add glob
9908         member.
9910 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
9912         PR preprocessor/16323
9913         * doc/invoke.texi: Document that -Wendif-labels is on by default.
9915 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
9917         PR target/19019
9918         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
9919         (trunctfdf2_internal1): New.
9920         (trunctfdf2_internal2): Renamed from trunctfdf2.
9922 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
9924         PR tree-optimization/19853
9925         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
9927 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
9929         * passes.c (rest_of_handle_loop_optimize): Remove calls to
9930         delete_dead_jumptables and cleanup_cfg.
9932 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
9934         * reload.c (find_reloads): Swap address_reloaded flags when
9935         swapping commutative operands.
9937 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
9939         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
9940         Use standard_iv_increment_position for computing the bsi position
9941         for create_iv.
9942         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
9943         the bsi position.
9945 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
9947         PR target/17428
9948         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
9949         life range of hard registers.
9950         * value-prof.c (insn_prefetch_values_to_profile): Only
9951         scan normal insns.
9953         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
9954         profile in libcalls.
9956 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
9958         * bitmap.h (bitmap_and_compl_into): Return bool.
9959         * bitmap.c (bitmap_and_compl_into): Return changed flag.
9961 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
9963         PR tree-optimization/19944
9964         * fold-const.c (fold): Re-add ABS_EXPR folding.
9966 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
9968         PR target/19019
9969         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
9970         {TARGET,MASK}_XL_COMPAT.
9971         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
9972         MASK_XL_COMPAT.
9973         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
9974         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
9975         TARGET_XL_COMPAT.
9976         (rs6000_arg_partial_bytes): Same.
9977         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
9978         and XL compatibility enabled.
9979         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
9980         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
9981         test to final condition.
9982         (cmptf_internal2): New.
9983         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
9984         xl-compat.  Add TFmode information to description.
9986 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
9988         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
9990 2005-02-13  Jason Merrill  <jason@redhat.com>
9992         PR c++/16405
9993         * fold-const.c (fold_indirect_ref_1): Split out from...
9994         (build_fold_indirect_ref): Here.
9995         (fold_indirect_ref): New fn.
9996         * tree.h: Declare it.
9997         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
9998         (gimplify_modify_expr_rhs): Likewise.
9999         (gimplify_expr): Likewise.
10001 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
10003         PR tree-optimization/14303
10004         PR tree-optimization/15784
10005         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
10006         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
10007         ABS_EXPR<x> != 0 to x != 0.
10009 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
10011         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
10012         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
10013         spelling conventions.
10015         * passes.c (rest_of_handle_gcse): Don't run cse_main and
10016         delete_trivially_dead_insns too many times.
10018         * passes.c (rest_of_handle_gcse): Remove dead assignments to
10019         tem and tem2.
10021 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10023         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
10024         (vect_is_simple_iv_evolution): Remove redundant parameter
10025         and step check.
10026         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
10027         without last parameter.
10028         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
10029         Return pointer step. Call vect_is_simple_iv_evolution without
10030         last parameter. Check only that the step is multiple of size
10031         type. Remove stmt_vinfo updates.
10032         (vect_get_memtag_and_dr): Remove.
10033         (vect_get_memtag): New function.
10034         (vect_address_analysis): New function.
10035         (vect_object_analysis): New function.
10036         (vect_analyze_data_refs): Call vect_object_analysis and
10037         vect_get_memtag. Update stmt_vinfo fields.
10039 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10041         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
10042         exist and are objects. Remove checks for pointer.
10043         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
10044         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
10045         (vect_create_data_ref_ptr): Likewise.
10046         (vect_base_addr_differ_p): New function.
10047         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
10048         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
10049         Don't set the DR_BASE_NAME field of data-ref.
10050         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
10052 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
10054         * optabs.h (enum optab_index): Add new OTI_ldexp.
10055         (ldexp_optab): Define corresponding macro.
10056         * optabs.c (init_optabs): Initialize ldexp_optab.
10057         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
10058         patterns.
10059         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
10060         using ldexp_optab.
10061         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
10062         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
10064         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
10065         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
10066         intrinsics.
10068 2005-02-12  Ira Rosen  <irar@il.ibm.com>
10070         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
10071         to base_address.
10072         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
10073         stmt_vec_info.
10074         (vect_get_base_and_offset): Always return an address.
10075         (vect_create_addr_base_for_vector_ref): Remove treatment for
10076         different data reference types.
10077         (vect_compute_data_ref_alignment): Rename base to base_address in
10078         stmt_vec_info. Get the object in order to force its alignment.
10079         (vect_get_memtag_and_dr): Rename base to base_address in
10080         stmt_vec_info. Extract the object for memtag analysis.
10082 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
10084         PR regression/19898.
10085         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
10086         changes cc_status, use apply modified_in_p to part of cc_status
10087         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
10088         body.
10090 2005-02-11  Richard Henderson  <rth@redhat.com>
10092         * tree-complex.c (expand_complex_libcall): New.
10093         (expand_complex_multiplication): Use it for c99 compliance.
10094         (expand_complex_division): Likewise.
10095         * fold-const.c (fold_complex_add, fold_complex_mult): New.
10096         (fold): Call them.
10097         * builtins.c (built_in_names): Remove const.
10098         * tree.c (build_common_builtin_nodes): Build complex arithmetic
10099         builtins.
10100         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
10101         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
10102         (built_in_names): Remove const.
10103         * c-common.c (c_common_type_for_mode): Handle complex modes.
10104         * flags.h, toplev.c (flag_complex_method): Rename from
10105         flag_complex_divide_method.
10106         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
10107         __mulsc3, __muldc3, __mulxc3, __multc3): New.
10108         * libgcc2.h: Declare them.
10109         * libgcc-std.ver: Export them.
10110         * mklibgcc.in (lib2funcs): Build them.
10112 2005-02-11  Steven Bosscher  <stevenb@suse.de>
10114         PR tree-optimization/19876
10115         Partially revert my change from 2005-01-14
10116         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
10117         (compute_antic): ...and remove the loop here.
10119 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
10121         PR middle-end/19858
10122         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
10123         is number of inner's bits, avoid creating a BIT_FIELD_REF.
10125         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
10126         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
10128 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
10130         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
10131         offsets for the big-endian 32-bit case.
10133 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
10135         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
10137 2005-02-11  Dale Johannesen  <dalej@apple.com>
10139         * cselib.c (cselib_process_insn):  Clear out regs where
10140         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
10141         * reload.c (find_equiv_reg): Ditto.
10143 2005-02-11  Ian Lance Taylor  <ian@airs.com>
10145         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
10146         with no elements.
10148         * tree.c (build_function_type_list): Work correctly if there are
10149         no arguments.
10151 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
10153         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
10154         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
10155         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
10156         TARGET_ZARCH instead of TARGET_64BIT.
10158 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
10160         * config/rs6000/t-rtems:
10161         (MULTILIB_OPTIONS): Remove mcpu=602.
10162         (MUTLILIB_DIRNAMES): Remove m602.
10163         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
10164         Let mcpu=602 match mcpu=603.
10165         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
10167 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10169         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
10170         signal trampolines.
10172 2005-02-10  David Daney  <ddaney@avtrex.com>
10174         * config/alpha/linux-unwind.h: Add exception clause to copyright.
10175         * config/i386/linux-unwind.h: Likewise.
10176         * config/ia64/linux-unwind.h: Likewise.
10177         * config/mips/linux-unwind.h: Likewise.
10178         * config/pa/linux-unwind.h: Likewise.
10179         * config/rs6000/linux-unwind.h: Likewise.
10180         * config/s390/linux-unwind.h: Likewise.
10181         * config/sh/linux-unwind.h: Likewise.
10182         * config/sparc/linux-unwind.h: Likewise.
10184 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10186         PR tree-optimization/17549
10187         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
10188         TER to replace a DEF with its expression if the DEF and the
10189         rhs of the expression we replace into have the same root
10190         variable.
10192 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
10194         * config/mips/mips.md: Fix the placement of the match_scratch in the
10195         lea64 peephole2.
10197 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10199         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
10200         Fix comment typos.
10202 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
10204         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
10205         (strip_offset): Handle addresses.
10206         (add_address_candidates): Use strip_offset.
10207         (difference_cost): Reflect strip_offset change.
10208         (force_var_cost, difference_cost): Strip nops.
10210 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
10212         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
10214         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
10215         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
10216         config/cris/cris-protos.h, config/cris/cris.c: Update
10217         copyright.
10219 2005-02-10  Jeff Law  <law@redhat.com>
10221         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
10222         (lookup_avail_expr): Similarly.
10224 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
10226         * builtins.c (fold_builtin_powi): New function.
10227         (fold_builtin_1): Call it.
10229 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10231         PR documentation/19309
10232         * doc/cpp.texi: The __GNUC__ and related predefined macros
10233         are also defined for the "standalone" cpp.
10234         Some non-GCC compilers may also define __GNUC__.
10236 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
10238         PR c/19342
10239         * c-typeck.c (common_type): New routine.  Old common_type renamed
10240         to...
10241         (c_common_type): ...this.
10242         (build_conditional_expr, build_binary_op): Use c_common_type instead
10243         of common_type.
10245 2005-02-10  Steven Bosscher  <stevenb@suse.de>
10247         * doc/md.texi: Replace @samp{length} with @code{length}.
10249 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
10251         PR tree-optimization/18687
10252         * tree-flow.h (find_loop_niter): Declare.
10253         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
10254         Try using scev even for loops with more than one exit.
10255         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
10256         (struct ivopts_data): Added niters field.
10257         (struct nfe_cache_elt): New.
10258         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
10259         functions.
10260         (tree_ssa_iv_optimize_init): Initialize niters cache.
10261         (determine_number_of_iterations): Removed.
10262         (find_induction_variables): Do not call determine_number_of_iterations.
10263         Access niters for single exit through niter_for_single_dom_exit.
10264         (add_iv_outer_candidates): Access niters for single exit through
10265         niter_for_single_dom_exit.
10266         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
10267         number_of_iterations_cond.
10268         (iv_period): New function.
10269         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
10270         (may_replace_final_value): Take data argument.  Use
10271         niter_for_single_dom_exit.
10272         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
10273         (rewrite_use_compare): Pass data to may_eliminate_iv.
10274         (rewrite_use_outer): Pass data to may_replace_final_value.
10275         (free_loop_data): Clean up the niters cache.
10276         (tree_ssa_iv_optimize_finalize): Free the niters cache.
10277         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
10278         * tree-ssa-loop-niter.c (find_loop_niter): New function.
10279         (find_loop_niter_by_eval): Use tree_int_cst_lt.
10280         (num_ending_zeros): Moved to tree.c.
10281         * tree.h (num_ending_zeros): Declare.
10282         * tree.c (num_ending_zeros): Moved from tree.c.
10284 2005-02-09  Richard Henderson  <rth@redhat.com>
10286         * builtins.c (DEF_BUILTIN): Add COND argument.
10287         * tree.h (DEF_BUILTIN): Likewise.
10288         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
10289         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
10290         match.
10291         (DEF_BUILTIN_STUB): New.
10292         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
10293         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
10294         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
10295         * c-common.c (DEF_BUILTIN): Add COND argument.
10296         * tree.c (local_define_builtin): New.
10297         (build_common_builtin_nodes): New.
10299 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10301         * fold-const.c (fold_strip_sign_ops): New function to simplify a
10302         floating point expression ignoring the sign of the result.
10303         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
10304         (fold) <MULT_EXPR>: Use it to simplify x*x.
10305         * tree.h (fold_strip_sign_ops): Prototype here.
10306         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
10307         argument.  Use fold_strip_sign_ops to simplify the first argument.
10308         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
10309         first argument when the second argument is an even integer
10310         constant, but only with -funsafe_math_optimizations.
10311         (fold_builtin_1): Update call to fold_builtin_copysign.
10313 2005-02-09  Ian Lance Taylor  <ian@airs.com>
10315         PR middle-end/19583
10316         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
10317         just check whether EH_FILTER_FAILURE falls through.
10319 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
10321         * gcc/haifa-sched.c (schedule_block): Make queued sched group
10322         insns return to ready list in the next turn.
10324 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10326         PR middle-end/19402
10327         * builtins.def: New __builtin_powi[lf].
10328         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
10329         (expand_builtin_powi): New function.
10330         (expand_builtin): Dispatch to expand_builtin_powi.
10331         * libgcc2.h: Add prototypes for __builtin_powi[lf].
10332         * libgcc2.c: Add __builtin_powi[lf] implementation.
10333         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
10334         * optabs.h: Add powi_optab.
10335         * optabs.c (init_optabs): Initialize powi_optab.
10336         * doc/extend.texi: Document __builtin_powi[lf].
10338 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
10340         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
10341         exists.
10343 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
10345         PR middle-end/19854
10346         * fold-const.c (try_move_mult_to_index): Remove redundant
10347         type argument.  Create ADDR_EXPR with correct type.
10348         (fold): Update callers of try_move_mult_to_index.  Convert
10349         result to the appropriate type.
10351 2005-02-09  Roger Sayle  <roger@eyesopen.com>
10353         PR target/19597
10354         * config/avr/avr.c (default_rtx_costs): Delete.
10355         (avr_operand_rtx_cost): New function.
10356         (avr_rtx_costs): Completely rewrite.
10358 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
10360         PR target/19806
10361         * config/cris/cris.c (in_code): New variable.
10362         (cris_output_addr_const): Now a static function, a wrapper for
10363         output_addr_const.
10364         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
10365         case from old cris_output_addr_const.
10366         (cris_asm_output_label_ref): Similar for LABEL_REF.
10367         (cris_output_addr_const_extra): Similar for UNSPEC.
10368         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
10369         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
10370         * config/cris/cris-protos.h (cris_output_addr_const): Remove
10371         declaration.
10372         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
10373         (cris_asm_output_label_ref): Declare.
10375 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
10377         PR preprocessor/19801
10378         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
10379         filenames that changed when libcpp was moved to the toplevel.
10381 2005-02-07  Roger Sayle  <roger@eyesopen.com>
10383         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
10384         zero extensions of BImode operands.  Call lowpart_subreg instead
10385         of gen_lowpart_common and gen_lowpart_SUBREG.
10387 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
10389         PR ada/19489
10390         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
10391         * configure.ac: Set cc_for_cross_gnattools.
10392         * configure: Regenerate.
10394 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
10396         PR target/19803
10397         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
10399 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10401         PR debug/19327
10402         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
10403         of nested functions.
10405 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
10407         * doc/extend.texi: Document deprecated extensions allowing
10408         static floating-point members to have initializers and allowing
10409         floating-point literals in integral constant expressions.
10411 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
10413         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
10414         config/darwin7.h, config/mips/mips.c,
10415         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
10416         Update copyright.
10418         * cse.c: Update comments.
10420 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
10422         PR middle-end/19775
10423         * builtins.c (fold_builtin_sqrt): Transform
10424         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
10425         pow(x,y*0.5).
10427 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
10428             Dorit Naishlos  <dorit@il.ibm.com>
10430         * doc/invoke.texi (ftree-vectorizer-verbose): New.
10431         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
10432         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
10433         was added.
10434         * tree.h (vect_set_verbosity_level): New extern function declaration
10435         added.
10436         * tree-vectorizer.h (verbosity_levels): New enum type.
10437         * tree-vectorizer.c (vect_debug_stats): Function removed.
10438         (vect_debug_details): Likewise.
10439         (vect_verbosity_level): Global variable was defined and initialized.
10440         (vect_dump): Global variable definition.
10441         (vect_print_dump_info): New function.
10442         (vect_set_dump_settings): New function.
10443         (vect_set_verbosity_level): New function.
10444         (vectorize_loops): Add call to vect_set_dump_settings.
10446         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
10447         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10448         (slpeel_tree_peel_loop_to_edge): Likewise.
10450         (vect_analyze_offset_expr): Call to vect_print_dump_info with
10451         appropriate verbosity level instead of call to vect_debug_details
10452         or vect_debug_stats.
10453         (vect_get_base_and_offset):
10454         (vect_create_addr_base_for_vector_ref):
10455         (get_vectype_for_scalar_type):
10456         (vect_create_data_ref_ptr):
10457         (vect_init_vector):
10458         (vect_get_vec_def_for_operand):
10459         (vect_finish_stmt_generation):
10460         (vectorizable_assignment):
10461         (vectorizable_operation):
10462         (vectorizable_store):
10463         (vectorizable_load):
10464         (vect_transform_stmt):
10465         (vect_update_ivs_after_vectorizer):
10466         (vect_do_peeling_for_loop_bound):
10467         (vect_update_inits_of_drs):
10468         (vect_do_peeling_for_alignment):
10469         (vect_transform_loop):
10470         (vect_is_simple_use):
10471         (vect_analyze_operations):
10472         (vect_is_simple_iv_evolution):
10473         (vect_analyze_scalar_cycles):
10474         (vect_analyze_data_ref_dependence):
10475         (vect_analyze_data_ref_dependences):
10476         (vect_compute_data_ref_alignment):
10477         (vect_enhance_data_refs_alignment):
10478         (vect_analyze_data_refs_alignment):
10479         (vect_analyze_data_ref_access):
10480         (vect_analyze_data_ref_accesses):
10481         (vect_analyze_pointer_ref_access):
10482         (vect_get_memtag_and_dr):
10483         (vect_analyze_data_refs):
10484         (vect_mark_relevant):
10485         (vect_stmt_relevant_p):
10486         (vect_mark_stmts_to_be_vectorized):
10487         (vect_can_advance_ivs_p):
10488         (vect_get_loop_niters):
10489         (vect_analyze_loop_form):
10490         (vect_analyze_loop):
10491         (vectorize_loops): Likewise.
10493         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
10494         (vect_update_inits_of_drs):
10495         (vect_do_peeling_for_alignment):
10496         (vect_transform_loop):
10497         (vect_analyze_operations):
10498         (vect_analyze_scalar_cycles):
10499         (vect_analyze_data_ref_dependences):
10500         (vect_analyze_data_refs_alignment):
10501         (vect_analyze_data_ref_accesses):
10502         (vect_analyze_data_refs):
10503         (vect_mark_stmts_to_be_vectorized):
10504         (vect_get_loop_niters):
10505         (vect_analyze_loop_form):
10506         (vect_analyze_loop): Likewise.
10507         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
10509 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
10511         PR bootstrap/19796
10512         Revert:
10513         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
10514         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
10515         either -ffast-math or -funsafe-math-optimizations is in use.
10517         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
10518         * config/mips/irix-csr.c: New file.
10519         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
10520         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
10521         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
10522         executables.
10524 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
10526         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
10527         redundant, incorrect definitions.
10529         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
10530         expand.
10531         ("*tls_indirect_call"): New, reference hard regs directly.
10532         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
10534 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10536         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
10537         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
10539 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10541         PR rtl-optimization/19800
10542         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
10543         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
10544         gen_lowpart.
10546 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
10548         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
10550 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
10552         PR other/17135
10553         * doc/invoke.texi: Correct documentation of -freorder-functions.
10555 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10557         PR other/14402
10558         * doc/invoke.texi: Don't mention gccbug.
10560 2005-02-06  Roger Sayle  <roger@eyesopen.com>
10561             Andrew Pinski  <pinskia@physics.uc.edu>
10562             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
10564         * simplify-rtx.c (simplify_relational_operation_1): Simplify
10565         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
10566         into just (zero_extract:SI FOO (const_int 1) BAR).
10568 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10570         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
10571         macro locally.  Don't give last revision date.  Use GCC version
10572         number from gcc-common.texi.
10573         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
10574         revision date.  Use GCC version number from gcc-common.texi.
10575         Describe being a library as current state rather than as 3.x
10576         history.
10577         * doc/gcc.texi: Remove last update date.
10578         * doc/gccint.texi: Likewise.  Update copyright dates.
10579         * doc/install.texi: Update copyright dates.
10581 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
10583         PR other/7549
10584         * doc/invoke.texi: Mention for each option included in -Wall that
10585         it is included in -Wall.
10586         * doc/gcc.texi: Update copyright and last modification date.
10588 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10590         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
10591         unnecessary cast to original induction variable increments.
10593 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
10595         PR tree-optimization/18219
10596         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
10597         in distributed form.
10599 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
10601         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
10602         Set bitpos and offset later in the function.  Do nothing if the
10603         target is a register and if the bitfield lies completely outside
10604         that register.
10605         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
10606         here.  Return an uninitialised register if the source value is stored
10607         in a register and the bitfield lies completely outside that register.
10609 2005-02-06  Steven Bosscher  <stevenb@suse.de>
10611         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
10612         not SET_DEST.
10614 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
10616         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
10618 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
10620         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
10621         * config/darwin8.h: New.
10622         * config/darwin7.h: Update comment.
10624 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10625             Dorit Naishlos  <dorit@il.ibm.com>
10627         * tree-vectorizer.h (LOC): New type.
10628         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
10629         (loop_line_number): New field in struct _loop_vec_info.
10630         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
10632         * tree-vectorizer.c (input.h): Included.
10633         (find_loop_location): New function.
10634         (vect_debug_stats): Argument changed from loop to LOC. Computation of
10635         loop line number removed.
10636         (vect_debug_details): Likewise.
10637         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
10639         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
10640         call to vect_debug_details/stats changed from loop to loop_loc.
10641         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10642         (slpeel_tree_peel_loop_to_edge): Likewise.
10644         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
10645         changed from NULL to UNKNOWN_LOC.
10646         (vect_get_base_and_offset):
10647         (vect_create_addr_base_for_vector_ref):
10648         (get_vectype_for_scalar_type):
10649         (vect_create_data_ref_ptr):
10650         (vect_init_vector):
10651         (vect_get_vec_def_for_operand):
10652         (vect_finish_stmt_generation):
10653         (vectorizable_assignment):
10654         (vectorizable_operation):
10655         (vectorizable_store):
10656         (vectorizable_load):
10657         (vect_transform_stmt):
10658         (vect_update_ivs_after_vectorizer):
10659         (vect_do_peeling_for_loop_bound):
10660         (vect_do_peeling_for_alignment):
10661         (vect_transform_loop):
10662         (vect_is_simple_use):
10663         (vect_analyze_operations):
10664         (vect_is_simple_iv_evolution):
10665         (vect_analyze_scalar_cycles):
10666         (vect_analyze_data_ref_dependences):
10667         (vect_compute_data_ref_alignment):
10668         (vect_enhance_data_refs_alignment):
10669         (vect_analyze_data_ref_access):
10670         (vect_analyze_data_ref_accesses):
10671         (vect_analyze_pointer_ref_access):
10672         (vect_get_memtag_and_dr):
10673         (vect_analyze_data_refs):
10674         (vect_mark_relevant):
10675         (vect_stmt_relevant_p):
10676         (vect_mark_stmts_to_be_vectorized):
10677         (vect_can_advance_ivs_p):
10678         (vect_get_loop_niters):
10679         (vect_analyze_loop):
10680         (vectorize_loops): Likewise.
10682         (vectorizable_load): Argument in call to vect_debug_details/stats
10683         changed from loop to LOOP_LOC (loop_vinfo).
10684         (vect_transform_loop):
10685         (vect_analyze_operations):
10686         (vect_analyze_scalar_cycles):
10687         (vect_analyze_data_ref_dependence):
10688         (vect_enhance_data_refs_alignment):
10689         (vect_analyze_data_ref_accesses):
10690         (vect_analyze_pointer_ref_access):
10691         (vect_analyze_data_refs):
10692         (vect_analyze_loop): Likewise.
10694         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
10695         changed from loop to loop_loc.
10697         (vect_enhance_data_refs_alignment): Removed unused variable loop.
10699 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
10700             Dorit Naishlos  <dorit@il.ibm.com>
10702         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
10703         declaration added.
10704         (vect_analyze_data_ref_dependences): Likewise.
10706         (vect_is_simple_use): Argument changed from loop structure to
10707         loop_vect_info structure.
10708         (vect_can_advance_ivs_p): Likewise.
10709         (vect_create_index_for_vector_ref): Likewise.
10710         (vect_update_ivs_after_vectorizer): Likewise.
10711         (new_stmt_vec_info): Likewise.
10713         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
10714         changed from loop to loop_vinfo.
10715         (vect_create_data_ref_ptr): First argument in call to
10716         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
10717         (vectorizable_assignment): Second argument in call to vect_is_simple_use
10718         was changed from loop to loop_vinfo.
10719         (vectorizable_operation): Likewise.
10720         (vectorizable_store): Likewise.
10721         (vect_mark_stmts_to_be_vectorized): Likewise.
10722         (vect_do_peeling_for_loop_bound): First argument in call to
10723         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
10724         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
10725         was changed from loop to loop_vinfo.
10726         (vect_analyze_data_ref_dependences): Third argument in call to
10727         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
10729         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
10730         (vect_create_data_ref_ptr): Likewise.
10731         (vect_init_vector): Likewise.
10732         (vect_get_vec_def_for_operand): Likewise.
10733         (vectorizable_assignment): Likewise.
10734         (vectorizable_operation): Likewise.
10735         (vectorizable_store): Likewise.
10736         (vectorizable_load): Likewise.
10737         (vect_update_ivs_after_vectorizer): Likewise.
10738         (vect_is_simple_use): Likewise.
10739         (vect_analyze_data_ref_dependence): Likewise.
10740         (vect_analyze_pointer_ref_access): Likewise.
10741         (vect_can_advance_ivs_p): Likewise.
10743         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
10744         before _stmt_vec_info.
10745         (_stmt_vec_info): Loop field replaced by loop_vec_info.
10746         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
10747         (new_stmt_vec_info): Argument changed from loop structure to
10748         loop_vect_info structure
10750         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
10751         (vect_analyze_offset_expr): Avoid 80 columns overflow.
10752         (vect_create_addr_base_for_vector_ref): Likewise.
10753         (vect_analyze_pointer_ref_access): Likewise.
10755 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10757         PR tree-opt/19768
10758         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
10759         phi flag if the phi is abnormal.
10761 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
10763         PR tree-opt/19736
10764         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
10765         information for the new statement.
10767 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10769         PR driver/19117
10770         * gcc.c (main): Include the target in -v output.
10772 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
10774         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
10775         Do not drop the extend if we'd have to add a paradoxical subreg
10776         later.  Include optabs.h and insn-codes.h.
10777         * Makefile.in (combine.o): Depend on $(OPTABS_H).
10779 2005-02-02  Roger Sayle  <roger@eyesopen.com>
10781         PR middle-end/19405
10782         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
10783         * fold-const.c (const_binop): Avoid constant folding floating
10784         point operations in modes that use composite representations.
10785         * simplify-rtx.c (simplify_binary_operation): Likewise.
10787 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
10789         * config/rs6000/altivec.md (altivec_dst): Make the first operand
10790         a REG, not a MEM.
10791         (altivec_dstt): Likewise.
10792         (altivec_dstst): Likewise.
10793         (altivec_dststt): Likewise.
10794         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
10795         of first operand.
10797 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10799         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
10800         EXPR_LOCUS from orig_cond to the new cond_stmt.
10801         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
10802         the new vec_stmt.
10804 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10806         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
10807         standard_iv_increment_position. Remove call to bsi_next
10808         (no need to bump the iterator anymore).
10809         (vect_create_index_for_vector_ref): Call
10810         standard_iv_increment_position. Remove second function argument.
10811         (vect_finish_stmt_generation): Remove call to bsi_next
10812         (no need to bump the iterator anymore).
10813         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
10814         to vect_create_index_for_vector_ref.
10816 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
10818         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
10819         phis are used out of the loop.
10821 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
10823         PR c/17807
10824         * c-decl.c (undef_nested_function): New variable.
10825         (pop_scope): Diagnose undefined nested functions.
10826         (finish_function): Don't attempt cgraph processing or genericizing
10827         if current top-level function contained an undefined nested
10828         function.  Reset undef_nested_function at the end of a top-level
10829         function.
10831 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
10833         * tree.c (build_int_cst_type): Take sign of the value into account
10834         when deciding whether sign extend the value.
10836 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10838         PR c/18502
10839         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
10840         (cpp_options, cc1_options): Change %{std*&ansi} to
10841         %{std*&ansi&trigraphs}.
10843 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
10845         * cse.c: Update comments.
10847 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
10849         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
10850         arguments go on the stack.  Do not put complex doubles in odd/even
10851         pairs.
10853 2005-02-02  Steven Bosscher  <stevenb@suse.de>
10855         * doc/invoke.texi: Update the options enabled at -O1, -O2,
10856         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
10857         -ftree-pre, and -fthread-jumps.
10859 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
10861         PR tree-optimization/19578
10862         * tree-flow.h (modified_noreturn_calls): Declare.
10863         (noreturn_call_p): Declare.
10864         * tree-flow-inline.h (noreturn_call_p): New function.
10865         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
10866         * tree-cfg.c (modified_noreturn_calls): New variable.
10867         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
10868         that contain a mid-block noreturn call.
10869         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
10871 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
10873         * df.c (df_def_record_1, df_uses_record): Don't use
10874         DF_FOR_REGALLOC.
10875         * df.h (DF_FOR_REGALLOC): Remove.
10877 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10879         PR c/19435
10880         * c-typeck.c (really_start_incremental_init): Reset
10881         constructor_max_index for arrays of incomplete type.
10883 2005-02-02  Jeff Law  <law@redhat.com>
10885         * gcse.c (struct reg_set): Store the block index where the register
10886         was set rather than the setting insn.
10887         (record_one_set, compute_transp): Corresponding changes.
10888         (pre_insert_copy_insn): Do not call replace_one_set.
10889         (replace_one_set): Remove.
10891 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
10893         PR other/15514
10894         * doc/gcov.texi: Fix typo.
10896 2005-02-01  Richard Henderson  <rth@redhat.com
10898         PR target/19680
10899         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
10900         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
10901         type to bool.
10902         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
10903         * config/i386/i386-protos.h: Update.
10905 2005-02-01  Steven Bosscher  <stevenb@suse.de>
10907         PR tree-optimization/19217
10908         * tree-cfg.c (verify_expr): Use the data field to see if TP was
10909         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
10910         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
10911         that it is walking a PHI node.
10913 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
10915         * doc/extend.texi (Nested Functions): Update.
10917 2005-02-01  Richard Henderson  <rth@redhat.com>
10919         PR 19696
10920         * optabs.c (expand_copysign_absneg): Export.
10921         * optabs.h (expand_copysign_absneg): Declare.
10922         * config/rs6000/rs6000.md (copysigntf3): New.
10924 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
10926         PR tree-optimization/19633
10927         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
10928         * tree-ssa-alias.c (init_alias_info): Initialize.
10929         (merge_pointed_to_info): Set.
10930         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
10931         (dump_points_to_info_for): Show value of pt_null.
10932         (struct count_ptr_d): Declare.
10933         (find_ptr_dereference): Remove.
10934         (ptr_is_dereferenced_by): Remove.
10935         (count_ptr_derefs): New local function.
10936         (count_uses_and_derefs): New local function.
10937         (compute_points_to_and_addr_escape): Call it.  If the number
10938         of dereferences is greater than zero, mark the pointer as
10939         dereferenced.  If there are fewer dereferences than uses of
10940         the pointer, the pointer's value escapes.
10942 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
10944         PR tree-optimization/19670
10945         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
10946         here...
10947         (verify_use): ... set it here, instead.
10949 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
10951         * doc/sourcebuild.texi (Test directives): Fix formatting.
10953         * doc/sourcebuild.texi (Test directives): Describe selector
10954         expressions.
10956 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
10958         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
10959         specific 64-bit CPUs.
10961 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
10963         PR target/16201
10964         * arm.c (arm_eliminable_register): New function.
10965         (adjacent_mem_locations): Don't allow eliminable registers.  Use
10966         HOST_WIDE_INT for address offsets.
10967         * arm-protos.h (arm_eliminable_register): Add prototype.
10969 2005-02-01  Steven Bosscher  <stevenb@suse.de>
10971         PR optimization/15242
10972         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
10973         * basic-block.h (duplicate_computed_gotos): Add prototype.
10974         * bb-reorder.c (duplicate_computed_gotos): New function to
10975         duplicate sufficiently small blocks ending in a computed jump.
10976         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
10977         if not optimizing for size.
10978         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
10979         never do tail merging for blocks ending in a computed jump.
10980         * doc/invoke.texi: Document the max-goto-duplication-insns param.
10982 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
10984         Patch from Richard Sandiford <rsandifo@redhat.com>
10985         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
10986         from inheriting a subreg equivalence with a non-spill register.
10988         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
10990 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
10992         * config/frv/frv.c (movcc_fp_destination_operand): New.
10993         (gpr_or_memory_operand): Fix typo in comment.
10994         (gpr_or_memory_operand_with_scratch): New.
10995         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
10996         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
10997         movcc_fp_destination_operand.
10998         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
10999         Legitimize memory addresses using a scratch register.
11001 2005-01-31  Jeff Law  <law@redhat.com>
11003         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
11004         bitmap a sparse bitmap instead of a simple bitmap.
11005         (mark_def_sites_initialize_block):  Corresponding changes.
11006         (ssa_mark_def_sites_initialize_block): Likewise.
11007         (ssa_mark_phi_uses): Likewise.
11008         (mark_def_site, ssa_mark_def_sites): Likewise.
11009         (mark_def_site_blocks): Likewise.
11010         (rewrite_ssa_into_ssa): Likewise.
11012         * tree-ssa-dom.c (record_cond): Pass correct variable type
11013         for last argument to htab_find_slot_with_hash.
11015         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
11016         effects when optimizing 0 % X.  Do not try to optimize X % 0.
11018 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
11020         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
11021         1_mmalua.
11023 2005-02-01  Eric Christopher  <echristo@redhat.com>
11025         * config/mips/mips.c (override_options): Warn if -mint64
11026         is used.
11027         * doc/invoke.texi (MIPS Options): Document that -mint64 is
11028         deprecated.
11030 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
11032         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
11033         timestamp.
11034         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
11035         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
11036         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
11037         (cached_regno): Initialize to INVALID_REGNUM.
11038         (cse_reg_info_table_size,
11039         cse_reg_info_table_first_uninitialized,
11040         cse_reg_info_timestamp): New.
11041         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
11042         get_cse_reg_info.
11043         (init_cse_reg_info, get_cse_reg_info_1): New.
11044         (get_cse_reg_info): Cache the last look-up.
11045         (new_basic_block): Update the code to clear mappings from
11046         registers to cse_reg_info entries.
11047         (cse_main): Call init_cse_reg_info.
11049         * cse.c (get_cse_reg_info): Update a comment.
11051 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11053         PR c/19333
11054         * c-decl.c (start_decl): Do not warn about arrays of elements with
11055         an incomplete type here.
11056         (grokdeclarator): Do it here by making a pedwarn an error.
11057         * c-typeck.c (push_init_level): If there were previous errors with
11058         the constructor type, do not warn about braces for initializers.
11059         (process_init_element): Likewise for excess initializer elements.
11061 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
11063         * cse.c (delete_trivially_dead_insn): Don't iterate.
11065 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
11067         * config/rs6000/rs6000.md (copysignsf3): New expand.
11068         (copysigndf3): Likewise.
11070 2005-01-31  Steven Bosscher  <stevenb@suse.de>
11072         * recog.c (constrain_operands): Only look for earlyclobber operand
11073         conflicts if an '&' constraint was seen.
11075 2005-01-31  Marc Espie <espie@openbsd.org>
11077         * config.gcc: Don't include embedded systems fragment, switches default
11078         debugging format to ELF.
11079         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
11080         longer pick it up there.
11082 2005-01-31  Dale Johannesen  <dalej@apple.com>
11084         * doc/extend.texi (nested functions): Fix linkage description.
11085         Clarify that static is not allowed.
11087 2005-01-31  Dale Johannesen  <dalej@apple.com>
11089         * config/rs6000/darwin.md (movsf_low_di):  Make work.
11090         (movdf_low_di):  Make work.
11092 2005-01-31  Dale Johannesen  <dalej@apple.com>
11094         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
11095         Make work for 64 bit.
11097 2005-01-31  Roger Sayle  <roger@eyesopen.com>
11098             Dale Johannesen  <dalej@apple.com>
11100         PR middle-end/19650
11101         * fold-const.c (fold_binary_op_with_conditional_arg):
11102         Make types match original operands, before STRIP_NOPS.
11104 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
11106         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
11107         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
11108         (struct gcc_sigcontext): Delete.  Merge contents to..
11109         (struct gcc_ucontext): ..here.
11110         (get_sigcontext): Delete.
11111         (get_regs): New function, like get_sigcontext but return regs ptr.
11112         64-bit version finds regs from r1 to support vdso.
11113         (ppc_linux_aux_vector): New function.
11114         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
11115         and vector regs.
11117 2005-01-31  Ira Rosen  <irar@il.ibm.com>
11119         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
11120         sizetype.
11121         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
11122         redundant fold. Fix misalignment for MINUS_EXPR.
11123         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
11124         (vect_analyze_pointer_ref_access): Likewise.
11125         (vect_get_memtag_and_dr): Likewise.
11127 2005-01-31  Richard Henderson  <rth@redhat.com>
11129         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
11130         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
11131         absnegdf2_i387, absnegxf2_i387): Likewise.
11133 2005-01-31  Richard Henderson  <rth@redhat.com>
11135         PR 19696
11136         * optabs.c (expand_copysign_absneg): New.
11137         (expand_copysign_bit): Split out from ...
11138         (expand_copysign): ... here.  Use expand_copysign_absneg.
11140 2005-01-30  Roger Sayle  <roger@eyesopen.com>
11142         PR middle-end/19697
11143         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
11144         constant as the second operand and a register as the third.
11146 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
11148         PR target/19704
11149         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
11150         that dllimport'd functions do not use all call-clobbered registers
11151         to pass parameters.
11153 2005-01-30  Richard Henderson  <rth@redhat.com>
11155         PR 19696
11156         * optabs.c (expand_absneg_bit): Split out from expand_unop and
11157         expand_abs_nojump and generalize.  Use operand_subword and
11158         emit_no_conflict_block.  Support large modes.
11159         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
11160         back to maximum.
11161         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
11162         negation to subtraction.
11163         (expand_copysign): Check that the format has signed zeros.
11164         Use operand_subword and emit_no_conflict_block.  Support large modes.
11166 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
11168         Fix PR tree-optimization/19624
11170         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
11171         * tree-ssa-pre.c: Add cfgloop.h.
11172         Update comment.
11173         (pre_stats): New member, constified.
11174         (inserted_exprs): New static variable.
11175         (NECESSARY): New macro.
11176         (create_expression_by_pieces): Fold the expression, and
11177         mark it as defaulting to not necessary. Also put in
11178         inserted_exprs.
11179         (fully_constant_expression): New function.
11180         (insert_into_preds_of_block): Modify to not insert phis when we
11181         are playing with induction variables.
11182         Push phis onto the inserted_exprs vector, and mark them as not
11183         necessary by default.
11184         (insert_aux): Call fully_constant_expression on eprime.
11185         If all edges produce the same value, mark it constant.
11186         (mark_operand_necessary): New function.
11187         (remove_dead_inserted_code): New function.
11188         (init_pre): Init loop optimizer to get loop info.
11189         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
11190         (execute_pre): Commit edge inserts, then remove dead code.
11192 2005-01-30  Richard Henderson  <rth@redhat.com>
11194         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
11195         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
11197 2005-01-30  Richard Henderson  <rth@redhat.com>
11199         PR target/19700
11200         * config/i386/i386.c (ix86_expand_copysign): New.
11201         (ix86_split_copysign_const): New.
11202         (ix86_split_copysign_var): Rename from ix86_split_copysign,
11203         rearrange op1/nmask operands.
11204         * config/i386/i386-protos.h: Update.
11205         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
11206         (copysigndf3): Likewise.
11207         (copysignsf3_const, copysigndf3_const): New.
11208         (copysignsf3_var): Rename from copysignsf3, split out splitter
11209         and fix split predicate for X constraint.
11210         (copysigndf3_var): Similarly.
11212 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
11214         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
11215         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
11216         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
11218 2005-01-29  Richard Henderson  <rth@redhat.com>
11220         PR target/19690
11221         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
11222         of # and * in constraints.
11224 2005-01-29  Richard Henderson  <rth@redhat.com>
11226         PR middle-end/19689
11227         * expr.c (store_field): Don't strip sub-mode cast when the input
11228         data is even smaller.
11230 2005-01-29  Richard Henderson  <rth@redhat.com>
11232         PR middle-end/19687
11233         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
11234         union being empty.
11236 2005-01-29  Richard Henderson  <rth@redhat.com>
11238         * combine.c (make_field_assignment): Fix argument order
11239         to gen_int_mode.
11241 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
11243         PR tree-optimization/15791
11244         * fold-const.c (extract_array_ref): New function.
11245         (fold): Fold comparisons between &a[i] and &a[j] or
11246         semantically equivalent trees.
11248 2005-01-29  Jeff Law  <law@redhat.com>
11250         * gcse.c (insert_expr_in_table): Revamp handling of available
11251         and anticipatable occurrence lists to avoid unnecessary list
11252         walking.
11253         (insert_set_in_table): Similarly.
11255 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
11257         * c-common.c (fix_string_type): Just use c_build_qualified_type to
11258         build string type.
11259         (c_build_qualified_type): Build qualified array types with
11260         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
11261         * c-decl.c (c_make_fname_decl): Build unqualified array type
11262         before qualified type.
11263         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
11264         type is qualified, not just if type itself is.  Don't apply
11265         qualifiers to array type when declarator is processed.  Apply
11266         qualifiers to field type whether or not it is an array type.
11267         Don't handle array types specially for applying qualifiers to
11268         variables.
11269         * c-typeck.c (composite_type): Build unqualified element type and
11270         array type when forming composite of array types.
11271         (common_pointer_type, comptypes, comp_target_types,
11272         type_lists_compatible_p, build_indirect_ref, build_array_ref,
11273         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
11274         types.
11275         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
11276         (args2) in variables a1 and a2.
11278 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
11280         * cse.c (n_elements_made, max_elements_made): Remove.
11281         (insert): Don't touch n_elements_made.
11282         (cse_main): Don't touch n_elements_made or max_elements_made.
11284 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
11286         PR target/15384
11287         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
11288         configuration part of dp-bit.c to be lost.
11290 2005-01-28  Roger Sayle  <roger@eyesopen.com>
11292         * expmed.c (expand_mult_highpart_optab): When attempting to use
11293         a non-widening multiplication in a wider mode, the operands need
11294         to be converted (zero or sign extended) to that mode.
11296 2005-01-28  Ian Lance Taylor  <ian@airs.com>
11298         PR middle-end/16558
11299         PR middle-end/19583
11300         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
11301         through if both operands fall through.
11303 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11305         * cse.c (fold_rtx) <PC>: Don't optimize.
11307 2005-01-28  Jeff Law  <law@redhat.com>
11309         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
11310         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
11312 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
11314         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
11315         cse_reg_info_used_list_end): Remove.
11316         (cse_reg_info_list, cse_reg_info_list_free): New.
11317         (get_cse_reg_info): When allocating an instance of
11318         cse_reg_info, add it to the beginning of the cse_reg_info_list
11319         list.  Remove code to maintain cse_reg_info_used_list.
11320         (new_basic_block): Reset the free list to the beginning of
11321         cse_reg_info_list.
11323 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
11325         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
11326         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
11327         (frv_expand_mdpackh_builtin): New function.
11328         (frv_expand_builtin): Use it to expand __MDPACKH.
11329         * doc/extend.texi (__MDPACKH): Update documentation.
11331 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
11333         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
11334         SSE_FLOAT_MODE_P for use_sse computation.
11336 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
11338         PR target/19663
11339         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
11341 2005-01-27  Richard Henderson  <rth@redhat.com>
11343         * builtins.c (expand_builtin_copysign): New.
11344         (expand_builtin): Call it.
11345         * genopinit.c (optabs): Add copysign_optab.
11346         * optabs.c (init_optabs): Initialize it.
11347         (expand_copysign): New.
11348         * optabs.h (OTI_copysign, copysign_optab): New.
11349         (expand_copysign): Declare.
11351         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
11352         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
11354         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
11355         (ix86_expand_fp_absneg_operator): ... here.
11356         (ix86_split_copysign): New.
11357         * config/i386/i386-protos.h: Update.
11358         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
11359         (copysignsf3, copysigndf3): New.
11361         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
11362         (copysignsf3, ncopysignsf3): New.
11363         (copysigndf3, ncopysigndf3): New.
11364         (copysignxf3, ncopysignxf3): New.
11365         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
11367 2005-01-27  Arend Bayer  <arend.bayer@web.de>
11368             Kazu Hirata  <kazu@cs.umass.edu>
11370         * cse.c: (find_best_addr): Don't call copy_rtx before calling
11371         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
11372         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
11373         NULL_RTX.
11375 2005-01-27  Jeff Law  <law@redhat.com>
11377         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
11378         definitions of SSA_NAMEs which are not being rewritten.
11379         (rewrite_ssa_into_ssa): Only initialize the current definition
11380         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
11381         If checking is enabled, assert that SSA_NAME_AUX is clear for all
11382         SSA_NAMEs before returning.
11384 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
11386         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
11387         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
11388         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
11389         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
11390         config/mips/iris6.h, config/sh/sh.c: Update copyright.
11392 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11394         PR middle-end/17278
11395         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
11396         higher to -O2 and higher.  Likewise for tree PRE.
11397         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
11398         and better.
11400 2005-01-27  Ian Lance Taylor  <ian@airs.com>
11402         PR middle-end/19583
11403         * gimple-low.c (try_catch_may_fallthru): New static function.
11404         (block_may_fallthru): Handle TRY_CATCH_EXPR.
11405         * tree-inline.c (expand_call_inline): Don't warn about reaching
11406         the end of a non-void function being inlined if the function uses
11407         a return slot.
11409 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
11411         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
11413         PR c/18946
11414         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
11415         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
11416         (implicitly_declare): Handle error_mark_node.
11418 2005-01-27  Richard Henderson  <rth@redhat.com>
11420         PR tree-opt/14329
11421         * tree.h (struct tree_decl): Add debug_expr_is_from.
11422         (DECL_DEBUG_EXPR_IS_FROM): New.
11423         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
11424         * dwarf2out.c (dwarf2out_var_location): Update to match.
11425         * tree-outof-ssa.c (create_temp): Likewise.
11426         * var-tracking.c (track_expr_p): Likewise.
11427         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
11428         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
11429         * toplev.c (default_tree_printer): Likewise.
11431 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
11433         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
11434         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
11436 2005-01-27  Steven Bosscher  <stevenb@suse.de>
11438         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
11439         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
11440         ASM_CLOBBERS): Add tree checks.
11442         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
11443         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
11444         * c-common.def (SWITCH_STMT): Update to match.
11445         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
11446         macros instead of SWITCH_EXPR ones.
11447         * c-dump.c (c_dump_tree): Likewise.
11448         * c-gimplify.c (gimplify_switch_stmt): Likewise.
11449         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
11451         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
11453 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
11455         * unwind-dw2.c (execute_stack_op): Add missing cases for
11456         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
11458 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
11460         * config.gcc (Obsolete configurations): Remove 'dummy', add
11461         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
11462         sparc-*-openbsd*.
11464 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
11466         PR tree-optimization/19633
11467         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
11468         CALL_EXPRs.
11469         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
11470         are no call-clobbered variables.
11471         * tree-outof-ssa.c (check_replaceable): Return false for calls
11472         with side-effects.
11474 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
11476         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
11477         even for variables with NULL DECL_INITIAL.
11479 2005-01-26  Stuart Hastings  <stuart@apple.com>
11481         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
11483 2005-01-26  Richard Henderson  <rth@redhat.com>
11485         PR middle-end/18008
11486         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11487         field's type.
11488         * expr.c (store_field): Strip conversions to odd-bit-sized types
11489         if the destination field width matches.
11491 2005-01-26  Richard Henderson  <rth@redhat.com>
11493         * c-decl.c, expmed.c, expr.c: Revert last change.
11495 2005-01-26  Richard Henderson  <rth@redhat.com>
11497         PR middle-end/18008
11498         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
11499         field's type.
11500         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
11501         if we don't need the bits above those present in the current mode.
11502         * expr.c (store_field): Strip conversions to odd-bit-sized types
11503         if the destination field width matches.
11505 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
11507         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
11508         either -ffast-math or -funsafe-math-optimizations is in use.
11510 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11512         PR target/19293
11513         PR target/19329
11514         * config/avr/avr.c (notice_update_cc): Only set condition code for
11515         ashrqi3 if shift count > 0.
11516         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
11517         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
11518         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
11519         count <= 0 as a no-op, and shift count >= width by copying zero
11520         or sign bit to all bits of the result.
11521         * config/avr/avr.md (all shifts): Add alternatives for zero shift
11522         count, with attribute "length" set to 0 and "cc" set to "none".
11524 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11526         * doc/invoke.texi: Document -mTLS.
11528         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
11529         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
11530         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
11531         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
11532         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
11533         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
11534         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
11535         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
11537         * configure.ac: Check for a TLS capable gas.
11539         * configure: Regenerate.
11541 2005-01-26  Richard Henderson  <rth@redhat.com>
11543         PR middle-end/18008
11544         * combine.c (make_field_assignment): Simplify store to zero_extract
11545         from a source with an overlapping mask.
11547 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
11549         2004-11-11  Eric Christopher  <echristo@redhat.com>
11551         * config/frv/frv.md: Add fr400_integer automaton. Don't
11552         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
11553         to TYPE_MACC.
11555 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11557         PR middle-end/16585
11558         * cfgbuild.c (make_edges): Do not clear or set
11559         current_function_has_computed_jump.
11560         * function.h (struct function): Remove the has_computed_jump field.
11561         (current_function_has_computed_jump): Do not define.
11562         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
11563         in a computed jump.  Ignore current_function_has_computed_jump.
11565 2005-01-26  Richard Henderson  <rth@redhat.com>
11567         PR middle-end/19515
11568         * expr.c (categorize_ctor_elements): New argument p_must_clear.
11569         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
11570         fully initialized.
11571         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
11572         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
11573         objects into static storage if they have more than one non-zero value.
11574         * tree.h (categorize_ctor_elements): Update decl.
11576 2005-01-26  Steven Bosscher  <stevenb@suse.de>
11578         PR middle-end/19616
11579         * tree.h (CALL_EXPR_TAILCALL): Add comment.
11580         * calls.c (check_sibcall_argument_overlap_1): Revert the change
11581         to this function from 2004-07-10.
11582         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
11583         the current function for tail call optimizations if the address
11584         of one of it its arguments is taken.
11586 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
11588         * cse.c (fold_rtx): Call equiv_constant only when necessary.
11590 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
11592         * function.c (expand_function_end): If current_function_calls_alloca,
11593         emit stack restore in a place that is reached when the function falls
11594         through at the end.
11596 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
11598         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
11599         rule to avoid matching inappropriate suffix rule.
11601 2005-01-26  Jan Hubicka  <jh@suse.cz>
11603         PR tree-optimization/19241
11604         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
11606 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11608         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
11609         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
11610         of doubling.
11611         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
11612         <sim*>: Always use crt1.o, regardless of N in simN.
11613         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11614         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
11615         (CRT_CALL_STATIC_FUNCTION): Remove.
11616         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
11617         use crt1.o, regardless of N in simN.
11618         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
11619         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
11620         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
11621         case isystem setting.
11622         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
11624 2005-01-25  Ian Lance Taylor  <ian@airs.com>
11626         * gimple-low.c (block_may_fallthru): Correct handling of
11627         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
11629 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
11631         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
11632         handlers to match indentation; nested under the mtune=* handler.
11633         Similar for mcpu= and march=.
11635 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
11637         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
11638         * config/mips/linux64.h (LIB_SPEC): Likewise.
11639         * config/mn10300/linux.h (LIB_SPEC): Likewise.
11640         * config/sh/linux.h (LIB_SPEC): Likewise.
11642 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
11644         * config/frv/frv.c (frv_legitimize_tls_address): New.
11645         (TARGET_HAVE_TLS): Define.
11646         (FRV_SYMBOL_REF_TLS_P): Define.
11647         (frv_override_options): Handle new register classes.
11648         (frv_legitimate_address_p): Reject tls addresses.
11649         (frv_legitimize_address): Handle TLS addresses.
11650         (gen_inlined_tls_plt): New.
11651         (gen_tlsmoff): New.
11652         (frv_legitimize_tls_address): New.
11653         (unspec_got_name): Add TLS entries.
11654         (got12_operand): Add R_FRV_TLSMOFF12 case.
11655         (frv_emit_move): Fixup TLS addresses.
11656         (frv_emit_movsi): Legitimize TLS addresses.
11658         * config/frv/frv.h (MASK_BIG_TLS): New.
11659         (TARGET_BIG_TLS): New.
11660         (HAVE_AS_TLS): Define.
11661         (TARGET_SWITCHES): Add -mTLS and -mtls options.
11662         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
11663         (REG_CLASS_NAMES): Same.
11664         (REG_CLASS_CONTENTS): Same.
11665         (CONSTRAINT_LEN): New.
11666         (REG_CLASS_FROM_CONSTRAINT): New.
11667         (PREDICATE_CODES): Add symbolic_operand.
11669         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
11670         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
11671         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
11672         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
11673         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
11674         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
11675         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
11676         GR9_REG, GR14_REG, LRREG.
11677         (type): Add load_or_call attribute.
11678         ("load_or_call"): New reservation.
11679         ("call_gettlsoff"): New.
11680         ("tls_indirect_call"): New.
11681         ("tls_load_gottlsoff12"): New.
11682         ("tlsoff_hilo"): New.
11683         ("tls_tlsdesc_ldd"): New.
11684         ("tls_tlsoff_ld"): New.
11685         ("tls_lddi"): New.
11687         * config/frv/frv-protos.h (symbolic_operand): Protoize.
11689         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
11691         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
11692         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
11693         * config/frv/frv.c (TLS_BIAS): Define.
11694         (frv_output_dwarf_dtprel): New.
11696 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
11698         PR rtl-optimization/19579
11699         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
11700         both A and B, see if they don't clobber registers the other expr uses.
11702 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
11704         * real.c (do_add): Initialize signalling and canonical members.
11706         * real.c (real_from_integer): Zero out destination.
11708 2005-01-18  Jan Hubicka  <jh@suse.cz>
11710         PR tree-optimize/19337
11711         * tree-inline.c (initialize_inlined_parameters): Copy
11712         saved_static_chain_decl only.
11714 2005-01-25  Richard Henderson  <rth@redhat.com>
11716         PR target/19556
11717         PR target/19584
11718         * config/i386/i386.c (x86_inter_unit_moves): Zero.
11719         (ix86_preferred_reload_class): Rewrite fp-constant section, with
11720         80387 enabled, to return a proper subclass.  Return the subset that
11721         overlaps with GENERAL_REGS for PLUS.
11722         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
11724 2005-01-25  Richard Henderson  <rth@redhat.com>
11726         PR middle-end/19609
11727         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
11729 2005-01-25  Roger Sayle  <roger@eyesopen.com>
11731         * expmed.c (choose_multiplier): Change interface to return the
11732         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
11733         (expand_divmod): Update calls to choose_multiplier.
11735 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11737         PR middle-end/19330
11738         * expmed.c (extract_bit_field): Use adjust_address instead of
11739         gen_lowpart when op0 is a MEM.
11741 2005-01-24  Steven Bosscher  <stevenb@suse.de>
11743         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
11745 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
11747         * config/mips/irix-csr.c: New file.
11748         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
11749         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
11750         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
11751         executables.
11753 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
11755         PR bootstrap/19364
11756         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
11757         sparc/elf.h, add sparc/sp-elf.h.
11758         (sparc-*-rtems*): Likewise.
11759         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
11760         tm-dwarf2.h, add sparc/sp-elf.h.
11761         (sparc86x-*-elf): Likewise.
11762         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
11763         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
11764         TARGET_OS_CPP_BUILTINS.
11765         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11766         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
11767         Undefine it.
11768         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
11769         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
11770         (SWITCH_TAKES_ARG): Likewise.
11771         (LOCAL_LABEL_PREFIX): Likewise.
11772         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
11773         (TARGET_N_FORMAT_TYPES): Delete.
11774         (TARGET_FORMAT_TYPES): Likewise.
11775         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11776         * config/sparc/elf.h: Delete.
11777         * config/sparc/sp-elf.h: New file.
11779 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11781         * tree-flow-inline.h (phi_arg_from_edge): Remove.
11782         * tree-flow.h: Remove the corresponding prototype.
11783         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
11784         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
11786 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11788         PR target/17751
11789         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
11790         for AIX ABI or ELF -fPIC.
11791         (rs6000_emit_load_toc_table): Don't create toc_section here.
11792         (rs6000_xcoff_file_start): Nor here.
11794 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
11796         * sh.c (ra.h): Don't #include.
11797         (hard_regs_intersect_p): New function, resurrected from ra.c.
11799         * sh.c: Fix 1996 Copyright.
11801 2005-01-24  Richard Henderson  <rth@redhat.com>
11802             Aldy Hernandez  <aldyh@redhat.com>
11804         * regrename.c (note_sets): Handle subregs.
11806 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
11808         PR bootstrap/18058
11809         * genconditions.c (write_header, write_conditions): Elide file if
11810         not GCC >= 3.0.1.
11812 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
11814         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
11815         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
11816         Update copyright.
11818 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11820         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
11821         expand_builtin_printf, expand_builtin_fprintf,
11822         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
11823         checking against POINTER_TYPE.
11824         (validate_arglist): Handle POINTER_TYPE code by checking
11825         POINTER_TYPE_P.
11827 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
11829         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
11830         init_rtlanal): New.
11831         (for_each_rtx): Call for_each_rtx_1.
11832         * rtl.h (init_rtlanal): Declare.
11833         * toplev.c (backend_init): Call init_rtlanal.
11835 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
11837         * flow.c (propagate_one_insn): Formatting.
11839         PR middle-end/19551
11840         * flow.c (libcall_dead_p): Be more conservative if unsure.
11841         If there are any instructions between insn and call, see if they are
11842         all dead before saying the libcall is dead.
11844 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
11846         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
11847         operand constraint for operand 0.
11849 2005-01-23  Richard Henderson  <rth@redhat.com>
11851         PR 19486
11852         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
11853         edges leading to join block.
11855 2005-01-23  Roger Sayle  <roger@eyesopen.com>
11857         * expmed.c (expand_mult_highpart): Make static.  Change type of
11858         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
11859         (expand_divmod): Updates calls to expand_mult_highpart by using
11860         gen_int_mode to pass a CONST_INT rtx.
11861         * rtl.h (expand_mult_highpart): Remove prototype.
11863 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11865         * flow.c (regset_bytes, regset_size): Remove.
11867         * cfganal.c: Fix a reference to Harvey's paper.
11869 2005-01-23  Steven Bosscher  <stevenb@suse.de>
11871         PR rtl-optimization/19464
11872         * tree-optimize.c (init_tree_optimization_passes): Add one more
11873         copyrename pass just before out-of-ssa.
11875 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
11877         PR bootstrap/18058
11878         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
11879         * ggc-none.c (ggc_free): Define.
11881 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11883         * cse.c (max_reg, max_insn_uid): Remove.
11884         (cse_main): Don't access max_reg or max_insn_uid.
11886         * c-common.c (explicit_flag_signed_bitfields,
11887         lang_statement_code_p, lang_expand_function_end): Remove.
11888         * c-common.h: Remove the corresponding declarations.
11889         * c-opts.c (c_common_handle_option): Remove all write access
11890         to explicit_flag_signed_bitfields.
11892         * cgraph.c (cgraph_varpool_n_nodes): Remove.
11893         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
11894         * cgraph.h: Remove the corresponding declaration.
11896         * gcse.c (null_pointer_info): Remove.
11898 2005-01-23  Roger Sayle  <roger@eyesopen.com>
11899             Eric Botcazou  <ebotcazou@libertysurf.fr>
11901         * combine.c (simplify_logical): Only simplify logical expressions
11902         of the form ior(and(x,y),z) by the inverse distributive law if the
11903         result is cheaper than the original.
11905 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
11907         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
11908         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
11909         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
11910         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
11911         config/freebsd-spec.h, config/arm/arm.h,
11912         config/h8300/h8300.md, config/i386/i386.md,
11913         config/i386/predicates.md, config/i386/sse.md,
11914         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
11915         config/vax/vax.md: Fix comment typos.  Follow spelling
11916         conventions.
11918 2005-01-23  Steven Bosscher  <stevenb@suse.de>
11920         * gengtype.c (walk_type): Produce `not equal to' compares for loop
11921         tests, instead of `less than'.
11923 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
11925         * function.c (assign_parm_setup_block): When creating a new stack slot
11926         for a parameter, get its alignment from the parameter's DECL_ALIGN
11927         rather than the type's TYPE_ALIGN.  Make sure that the parameter
11928         is at least word aligned.
11930 2005-01-22  Roger Sayle  <roger@eyesopen.com>
11932         PR middle-end/19378
11933         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
11935 2005-01-22  Richard Henderson  <rth@redhat.com>
11937         PR target/19506
11938         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
11939         in both compare operands.
11940         (movdfcc_1_sse_max): Likewise.
11941         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
11942         (movdfcc_1_sse): Likewise.
11943         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
11944         scratch register as needed.
11946 2005-01-22  Richard Henderson  <rth@redhat.com>
11948         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
11950         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
11952 2005-01-22  Richard Henderson  <rth@redhat.com>
11954         * genopinit.c (optabs): Use smin/smax for floating point too.
11955         * doc/md.texi: Update to match.  Clarify that floating point
11956         results are undefined for +0/-0 and NaN.
11957         * doc/rtl.texi: Likewise.
11958         * rtl.def (SMIN, SMAX): Likewise
11959         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
11961         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
11962         leading 's' to the name.
11963         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
11964         smaxxf3, sminxf3): Likewise.
11965         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
11966         Likewise.
11968 2005-01-22  Paul Brook  <paul@codesourcery.com>
11970         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
11972 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
11974         * config/s390/s390.c (struct processor_costs): New fields
11975         dlgr, dlr, dr, dsgfr, dsgr.
11976         (z900_cost, z990_cost): Values for new fields.
11977         (s390_rtx_costs): New cases MEM und COMPARE in switch
11978         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
11979         DIV, MOD, UDIV, UMOD.
11981 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
11983         * config/s390/s390.md ("doloop_si64"): Reload input value directly
11984         into the register being decremented.
11985         ("doloop_si31", "doloop_di"): Likewise.
11986         ("*doloop_si_long"): Adapt pattern.
11988 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
11990         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
11991         access registers.
11992         (CLASS_MAX_NREGS): Likewise.
11994 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
11996         * doc/tree-ssa.texi (Statement Operands): Add example for new
11997         must-def macro. Note deprecation of old operands interface.
11999 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
12001         PR tree-optimization/19484
12002         * tree-cfg.c (remove_fallthru_edge): New function.
12003         (cleanup_control_flow): Remove fallthru edges from calls that are
12004         now known not to return.
12006 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12008         Fix PR tree-optimization/19038
12009         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
12010         copies with loop variant ones.
12012 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
12014         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
12015         config/alpha/alpha-protos.h, config/alpha/alpha.h,
12016         config/alpha/alpha.md, config/alpha/predicates.md,
12017         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
12018         config/sparc/sol2.h: Update copyright.
12020         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
12021         first label to see if it is a nonlocal label.
12023 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
12024             Andrew Pinski  <pinskia@physics.uc.edu>
12026         PR target/19491
12027         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
12028         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
12030 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
12032         * config/rs6000/rtems.h: Update copyright.
12034 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
12036         PR target/19548
12037         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
12038         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
12039         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
12041 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
12043         PR c/18809
12044         * c-typeck.c (convert_arguments): Check for error_mark_node.
12046 2005-01-21  Ian Lance Taylor  <ian@airs.com>
12048         PR tree-optimization/13000
12049         * tree-inline.c: Include "tree-flow.h".
12050         (expand_call_inline): If warn_return_type, warn if non-void inline
12051         function falls through.
12052         * tree-cfg.c (execute_warn_function_return): Don't warn about
12053         control reaching end if TREE_NO_WARNING is set.  Set
12054         TREE_NO_WARNING.
12055         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
12056         has been lowered.
12057         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
12058         branch if we don't need one.
12059         * c-typeck.c: Include "tree-flow.h"
12060         (c_finish_bc_stmt): Don't add a goto if the current statement
12061         list doesn't fall through to the current point.
12063 2005-01-21  Roger Sayle  <roger@eyesopen.com>
12065         PR rtl-optimization/576
12066         * real.c (real_arithmetic): Change return type from void to bool
12067         to return an indication that the result may be inexact.
12068         * real.h (real_arithmeric): Update prototype.
12069         * fold-const.c (const_binop):  Don't constant fold floating
12070         point expressions when the user specifies -frounding-math and
12071         the result may depend upon the run-time rounding mode.
12072         (fold_convert_const_real_from_real): Clean-up.
12073         (fold_initializer): Ignore flag_rounding_math for initializers.
12074         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
12075         constant fold FP operations with flag_rounding_math if the
12076         result may depend upon the run-time rounding mode.
12078 2005-01-21  Tom Tromey  <tromey@redhat.com>
12080         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
12082 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
12084         * tree-cfg.c: Fix comment typos.
12086 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
12088         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
12089         around the call to rest_of_handle_branch_target_load_optimize.
12091 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
12093         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
12094         (sparc64-*-openbsd*): Likewise.
12095         (sparclite-*-elf*): Include tm-dwarf2.h.
12096         (sparc86x-*-elf*): Likewise.
12097         (sparc64-*-elf*): Likewise.
12098         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
12099         (DBX_DEBUGGING_INFO): Likewise.
12100         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
12101         (PREFERRED_DEBUGGING_TYPE): Likewise.
12102         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12103         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
12104         (PREFERRED_DEBUGGING_TYPE): Likewise.
12105         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
12106         (PREFERRED_DEBUGGING_TYPE): Likewise.
12107         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
12109 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12111         PR target/18701
12112         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
12114 2005-01-20  Paul Brook  <paul@codesourcery.com>
12116         * doc/rtl.texi: Document value extension requirements for CONST_INT.
12118 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12120         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
12121         label is first in a sequence of labels.
12123         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
12125 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
12126             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12128         * doc/sourcebuild.texi (Test Directives): New.
12130 2005-01-20  Roger Sayle  <roger@eyesopen.com>
12132         * real.c (real_floor): Don't leave the result uninitialized when
12133         mode is VOIDMode, but return the unrounded intermediate value.
12134         (real_ceil): Likewise.
12136 2005-01-20  Paul Brook  <paul@codesourcery.com>
12138         * config/arm/arm.md (insv): Use gen_int_mode.
12140 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
12142         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
12143         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12144         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12145         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12146         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
12148 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
12150         Fix PR debug/19124
12151         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
12152         fbreg, so we have to assume we can't.
12153         (loc_descriptor_from_tree_1): Ditto.
12154         (containing_function_has_frame_base): New function.
12155         (add_location_or_const_value_attribute): Use it.
12156         Also try to generate a frame_base from a single element location
12157         list.
12159 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12161         PR tree-optimization/15349
12162         * timevar.def (TV_TREE_MERGE_PHI): New.
12163         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
12164         PHI_WANTED.
12165         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
12166         calls to tree_forwarder_block_p.
12167         (remove_forwarder_block_with_phi, merge_phi_nodes,
12168         gate_merge_phi, pass_merge_phi): New.
12169         * tree-optimize.c (init_tree_optimization_passes): Add
12170         pass_merge_phi.
12171         * tree-pass.h: Add an extern for pass_merge_phi;
12173 2005-01-20  Richard Henderson  <rth@redhat.com>
12175         PR target/19418
12176         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
12177         (_mm_castps_pd, _mm_castps_si128): New.
12178         (_mm_castsi128_ps, _mm_castsi128_pd): New.
12180 2005-01-20  Richard Henderson  <rth@redhat.com>
12182         PR target/19530
12183         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
12184         __builtin_ia32_vec_init_v2si.
12185         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
12186         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
12187         (ix86_init_mmx_sse_builtins): Create it.
12188         (ix86_expand_builtin): Expand it.
12189         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
12190         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
12191         (vec_extractv2si_0, vec_extractv2si_1): New.
12193 2005-01-20  Richard Henderson  <rth@redhat.com>
12195         PR target/16533
12196         * config/i386/i386.c (ix86_expand_push): New.
12197         * config/i386/mmx.md (push<MMXMODE>1): New.
12198         * config/i386/sse.md (push<SSEMODE>1): New.
12199         * config/i386/i386-protos.h: Update.
12201 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
12203         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
12204         copyright.
12206 2005-01-20  Richard Henderson  <rth@redhat.com>
12208         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
12209         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
12211 2005-01-19  Richard Henderson  <rth@redhat.com>
12213         PR target/19350
12214         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
12215         to V4SFmode in SSE1 fallback load path.
12217 2005-01-19  Richard Henderson  <rth@redhat.com>
12219         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
12220         in QImode expansion to ix86_expand_vector_set.
12221         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
12223 2005-01-19  Richard Henderson  <rth@redhat.com>
12225         PR target/19511
12226         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
12227         subclass of the input class.
12228         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
12229         Always true for cross-SSE1 classes.  Rationalize conditionals.
12230         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
12231         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
12232         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
12233         (movdi_2): Add MMX/SSE zeros.
12234         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
12235         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
12236         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
12237         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
12238         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
12239         (zero_extendsidi2_rex64_1): Remove.
12240         (MOV0 peephole): Check GENERAL_REG_P.
12242 2005-01-19  Richard Henderson  <rth@redhat.com>
12244         PR target/19427
12245         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
12246         shufps elements.
12247         (ix86_expand_vector_extract): Likewise.
12249 2005-01-19  Richard Henderson  <rth@redhat.com>
12251         PR middle-end/19304
12252         * expr.c (emit_move_change_mode): New argument force; use
12253         simplify_gen_subreg if true.
12254         (emit_move_via_alt_mode): Merge into ...
12255         (emit_move_via_integer): ... here.
12256         (emit_move_ccmode): Use emit_move_change_mode directly.
12258 2005-01-19  Richard Henderson  <rth@redhat.com>
12260         PR target/19518
12261         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
12262         (alpha_preferred_reload_class): Handle CONST_VECTOR.
12263         (alpha_emit_set_const_1): Add no_output parameter; don't emit
12264         rtl if true.
12265         (alpha_emit_set_const): Likewise.  Make static.
12266         (alpha_emit_set_long_const): Make static.
12267         (alpha_extract_integer): Split out from alpha_expand_mov.
12268         (alpha_split_const_mov): Likewise.
12269         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
12270         (alpha_legitimate_constant_p): New.
12271         * config/alpha/alpha-protos.h: Update.
12272         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
12273         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
12274         * config/alpha/alpha.md (movsi): Add n alternative.
12275         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
12276         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
12277         (splitters for all of the above): Use alpha_split_const_mov.
12278         * config/alpha/predicates.md (non_add_const_operand): New.
12279         (non_zero_const_operand): New.
12280         (input_operand): Use alpha_legitimate_constant_p after reload.
12282 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12284         PR tree-optimization/19038
12285         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
12286         (add_candidate): Add ivs with increment in latch only if
12287         allow_ip_end_pos_p is true.
12288         (determine_iv_cost): Use empty_block_p.
12290 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
12292         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
12293         (compute_dominance_frontiers): Ditto.
12295 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
12297         PR target/19529
12298         * config/sh/t-rtems: New.
12299         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
12301 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
12303         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
12304         the offset of the selected field.
12306 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
12308         * tree-cfg.c (remove_forwarder_block): Fix the check to
12309         prevent a nonlocal label from appearing in the middle of a
12310         basic block.
12312 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
12314         PR rtl-optimization/19462
12315         * reorg.c (find_end_label): Create return insn only if
12316         current_function_epilogue_delay_list is empty.
12318 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
12320         * doc/passes.texi: Remove paragraph mentioning new-ra.
12322 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
12324         PR rtl-optimization/15139
12325         * combine.c: Include params.h.
12326         (count_rtxs): New function.
12327         (record_value_for_reg): If replace_rtx would replace at least
12328         2 occurrences of REG in VALUE and TEM is really large, replace REG with
12329         (clobber (const_int 0)) instead of TEM.
12330         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
12331         * params.h (MAX_LAST_VALUE_RTL): New.
12332         * Makefile.in (combine.o): Depend on $(PARAMS_H).
12333         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
12335         PR c/17297
12336         * c-typeck.c (digest_init): Only call build_vector if all constructor
12337         elements are *_CST nodes.
12338         * gimplify.c (gimplify_init_constructor): Likewise.
12340         PR middle-end/19164
12341         * c-typeck.c (digest_init): Only call build_vector if inside_init
12342         is a CONSTRUCTOR.
12344 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
12346         * toplev.c (init_asm_output): Remove dead #ifdef.
12348 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12350         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
12352 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12354         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
12355         accessing DECL_FUNCTION_CODE.
12356         * dojump.c (do_jump): Likewise.
12357         * gimplify.c (gimplify_call_expr): Likewise.
12358         * predict.c (expr_expected_value): Likewise.
12359         (strip_builtin_expect): Likewise.
12360         * tree-inline.c (estimate_num_insns_1): Likewise.
12361         * tree-ssa-loop-im.c (stmt_cost): Likewise
12362         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
12363         (tree_expr_nonnegative_p): Likewise.
12365 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12367         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
12368         variant of the load_pcrel_sym pattern.
12369         * config/sparc/sparc.md (P macro): Move to the top.
12370         (load_pcrel_sym): Macroize using P.
12371         (save_register_window): Likewise.
12373 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
12375         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
12376         ("sordered"): Same.
12378 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
12380         PR C/19472
12381         * c-typeck.c (build_asm_expr): Strip nops off
12382         input memory operands.
12384 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
12386         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
12387         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
12388         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
12389         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
12391 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
12393         PR target/19379
12394         * config/i386/i386.c (override_options): If the 80387 is disabled,
12395         then do not return FP values using FP registers.
12397 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
12399         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
12400         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
12401         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
12402         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
12403         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
12404         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
12405         output.h, postreload-gcse.c, postreload.c, recog.c,
12406         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
12407         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
12408         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
12409         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
12410         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
12411         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
12412         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
12413         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
12415         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
12416         config/alpha/alpha.c, config/arm/vfp.md,
12417         config/i386/emmintrin.h, config/i386/i386-modes.def,
12418         config/i386/i386-protos.h, config/i386/i386.h,
12419         config/i386/pmmintrin.h, config/i386/ppro.md,
12420         config/i386/predicates.md, config/i386/xmmintrin.h,
12421         config/i860/i860.c, config/ia64/ia64-modes.def,
12422         config/ia64/ia64-protos.h, config/ia64/ia64.h,
12423         config/ia64/ia64.md, config/ia64/itanium1.md,
12424         config/ia64/itanium2.md, config/ia64/predicates.md,
12425         config/iq2000/iq2000.h, config/mips/linux64.h,
12426         config/rs6000/aix41.h, config/rs6000/aix43.h,
12427         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
12428         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
12429         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
12430         config/sparc/linux64.h, config/sparc/litecoff.h,
12431         config/sparc/sp64-elf.h, config/sparc/sparc.c,
12432         config/sparc/sparc.h, config/sparc/sparc.md,
12433         config/sparc/sysv4-only.h: Update copyright.
12435 2005-01-18  Richard Henderson  <rth@redhat.com>
12437         PR target/19496
12438         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
12440 2005-01-18  Marc Espie  <espie@openbsd.org>
12441         * config/i386/openbsdelf.h: Typo.
12443 2005-01-18  Richard Henderson  <rth@redhat.com>
12445         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
12446         special case for sse.
12447         * config/i386/predicates.md (sse_comparison_operator): Likewise.
12449 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
12451         * tree-inline.c (estimate_num_insns_1): Added cases for
12452         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
12454 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12456         PR rtl-optimization/19296
12457         * combine.c (simplify_comparison): Rewrite the condition under
12458         which a non-paradoxical SUBREG of a PLUS can be lifted when
12459         compared against a constant.
12461 2005-01-18  Andi Kleen <ak@muc.de>
12463         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
12464         * c.opt (-Wpointer-sign): Add.
12465         * doc/invoke.texi: (-Wpointer-sign): Add.
12467 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12469         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
12470         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
12471         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
12472         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
12473         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
12474         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
12475         for TARGET_MIX_SSE_I387.
12476         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
12477         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
12478         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
12479         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
12480         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
12481         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
12482         TARGET_MIX_SSE_I387.
12483         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
12484         from expander.
12486 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
12488         PR target/19424
12489         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
12490         Add movaps alternative for xmm reg->reg move.
12492 2005-01-17  Jeff Law  <law@redhat.com>
12494         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
12495         at the end of the main DOM loop rather than just before DOM exits.
12497 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
12499         PR tree-optimization/19121
12500         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
12501         adding aliases to a name tag, also add them to the pointer's
12502         type tag.
12503         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
12504         sensitive alias info at all.  Only check that the two pointers
12505         have compatible pointed-to sets.
12506         * tree-ssa.c (verify_name_tags): Verify that the alias set of
12507         a pointer's type tag is a superset of the alias set of the
12508         pointer's name tag.
12510 2005-01-17  James E Wilson  <wilson@specifixinc.com>
12512         PR target/19357
12513         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
12514         comment to document why.
12516 2005-01-17  Richard Henderson  <rth@redhat.com>
12518         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
12519         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
12520         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
12521         sse2_vmsminv2df3_finite): New.
12522         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
12523         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
12524         Force op1 into register.
12526 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
12528         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
12529         bubblestrap from always rebuilding build directory.
12531 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
12533         * config/s390/s390.md ("*clc"): Remove incorrect '='.
12534         ("*cmpmem_short"): Likewise.
12536 2005-01-17  Steven Bosscher  <stevenb@suse.de>
12538         * basic-block.h: Document BB_* flags.
12539         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
12540         use an sbitmap instead.
12541         * sched-rgn.c (compute_trg_info): Likewise.
12543 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
12545         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
12546         redundant target_cpu_default and extra_parts lines.  Use the default
12547         "from-abi" ISA.
12548         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
12549         (SUBTARGET_EXTRA_SPECS): Delete.
12550         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
12551         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
12552         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
12553         and "n32" for -mabi=n32.
12555 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12557         PR c/5675
12558         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
12559         fold constant variables into initial values.
12561 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12563         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
12565         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
12566         through the statements backward.
12568 2005-01-17  Ian Lance Taylor  <ian@airs.com>
12570         PR middle-end/13127:
12571         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
12572         a variable set to the return value of the inlined function.
12574 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
12576         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
12577         when modes are tieable.
12579 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
12581         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
12582         of pthread_create to find out if threads are enabled.
12583         * gthr-posix95.h (__gthread_active_p): Likewise.
12585 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
12587         * common.opt (-fnew-ra): Remove.
12588         * ra*.*: Remove.
12589         * toplev.h (flag_new_regalloc): Remove.
12590         * Makefile.in (ra*.*): Don't mention.
12591         * passes.c (rest_of_handle_new_regalloc): Remove.
12592         (rest_of_handle_combine, rest_of_compilation): Always consider
12593         flag_new_regalloc as false.
12594         * doc/invoke.texi: Don't document -fnew-ra.
12596 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
12598         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
12599         last parameter to reg_scan.
12600         * loop.c (loop_optimize): Likewise.
12601         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
12602         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
12603         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12604         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12605         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
12606         * regclass.c (reg_scan): Likewise, for the declaration.
12607         * rtl.h (reg_scan): Likewise, for the prototype.
12609 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
12611         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
12612         mark_dfs_back_edges.
12614 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
12616         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
12617         (compute_avail): Uses don't go in tmp_gen.
12619 2005-01-16  Steven Bosscher  <stevenb@suse.de>
12621         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
12622         loop to look for a free slot in a page entry.
12624 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12626         PR target/16304
12627         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
12628         * toplev.c (compile_file): Call process_pending_assemble_output_defs
12629         just before targetm.asm_out.file_end.
12630         * tree.h (process_pending_assemble_output_defs): Declare.
12631         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
12632         New functions.
12633         (assemble_alias): Defer generation of assembly code for defines when
12634         TARGET_DEFERRED_OUTPUT_DEFS is true.
12635         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12636         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
12637         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
12639 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12641         PR target/19336
12642         * pa.c (pa_scalar_mode_supported_p): New function.
12643         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12644         * pa.h (MIN_UNITS_PER_WORD): Add comment.
12646         * pa-protos.h (prefetch_operand): Delete.
12647         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
12648         * pa.c (prefetch_operand): Delete.
12649         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
12650         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
12651         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
12652         and prefetch_nocc_operand.
12653         * pa.md (prefetch): Rework to avoid reload problems handling short
12654         displacements when a cache control completer needs to be provided.
12655         (prefetch_32, prefetch_64): Delete.
12656         (prefetch_cc, prefetch_nocc): New patterns.
12658 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
12660         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
12662 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12664         PR ada/19388
12665         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
12666         exceeds maximum alignment for global common data.
12667         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
12668         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
12670 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12672         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
12674 2004-01-15  Roger Sayle  <roger@eyesopen.com>
12676         * harg-reg-set.h (reg_class_names): Prototype global array.
12677         * regclass.c (reg_class_names): Declare here and initialize to
12678         REG_CLASS_NAMES.
12679         (dump_regclass): Remove local declaration of reg_class_names.
12680         (regclass): Likewise.
12681         * cfg.c (dump_flow_info): Likewise.
12682         * ra-debug.c (reg_class_names): Likewise.
12683         * regrename.c (reg_class_names): Likewise.
12684         * reload.c (reg_class_names): Likewise.
12685         * reload1.c (spill_failure): Likewise.
12686         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
12688 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
12690         * config/s390/s390.md ("reload_outti"): Remove predicate for
12691         output operand.  Abort if operand is not a MEM.
12692         ("reload_outdi", "reload_outdf"): Likewise.
12694 2005-01-15  Marc Espie  <espie@openbsd.org>
12696         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
12697         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
12698         * config/openbsd.h:  Fix C++ includes for native configurations.
12699         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
12700         Add trampoline support.
12701         * config/i386/openbsdelf.h: New.
12703 2005-01-15  Marc Espie  <espie@openbsd.org>
12705         * collect2.c (main): Explicitly parse -dynamic-linker option.
12707 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
12709         PR tree-optimization/19060
12710         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
12711         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
12712         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
12713         and handle extract_range_from_cond returning false.
12714         * fold-const.c (fold): Optimize comparisons with min/max even for
12715         width > HOST_BITS_PER_WIDE_INT.
12717 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
12719         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
12720         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
12721         Remove little endian multilib variants.
12722         Add mips32 multilib variant.
12724 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
12726         * explow.c (copy_all_reg, stabilize): Remove.
12727         * expr.h: Remove the corresponding prototypes.
12729         * rtlanal.c (regs_set_between_p): Remove.
12730         * rtl.h: Remove the corresponding prototype.
12732 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
12734         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
12735         to rs6000_nonimmediate_operand.
12736         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
12737         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
12738         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
12739         rs6000_nonimmediate_operand.
12740         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
12741         rs6000_nonimmediate_operand.
12743 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
12745         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
12747 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12749         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
12750         on e500v2.
12751         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
12752         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
12754         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
12755         (rs6k_nonimmediate_operand): New.
12756         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
12757         correctly.
12758         (legitimate_lo_sum_address_p): Same.
12759         (rs6000_legitimize_address): Same.
12760         (rs6000_legitimize_reload_address): Same.
12761         (rs6000_legitimate_address): Same.
12762         (spe_build_register_parallel): Pass DF and DC modes in a DI
12763         register.
12765         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
12766         to rs6k_nonimmediate_operand.
12768         * config/rs6000/spe.md ("*frob_df_di"): New.
12769         ("*frob_di_df"): New.
12770         ("*frob_di_df_2"): New.
12771         ("*mov_sidf_e500_subreg0"): New.
12772         ("*mov_sidf_e500_subreg4"): New.
12773         ("*movdf_e500_double"): Change predicate to
12774         rs6k_nonimmediate_operand.
12776 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12778         * postreload.c (move2add_note_store): Only call
12779         trunc_int_for_mode on scalar integers.
12781 2005-01-14  Steven Bosscher  <stevenb@suse.de>
12783         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
12784         replace BB_VISITED uses.
12785         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
12786         (propagate_necessity): Check the bitmap instead of BB_VISITED.
12787         (tree_dce_done): Free visited_control_parents.
12788         (perform_tree_ssa_dce): Allocate and clear it.
12789         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
12790         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
12791         instead of BB_VISITED.
12793 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
12795         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
12796         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
12797         Remove unused prototypes.
12799 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12801         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
12802         64-bit register usage.
12803         (spe_func_has_64bit_regs_p): Add FIXME note.
12805 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
12807         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
12808         flag_finite_math_only with flag_unsafe_math_optimizations.
12810 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
12812         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
12813         end-of-stack check.
12814         (__tpf_eh_return): Copy TPF private stack area from the module
12815         boundary stack frame.  Add check for when module addresses are
12816         equal, but no stub address is found.
12818 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
12820         PR target/7525
12821         * arm.h (struct machine_function): Add call_via field.
12822         (thumb_call_via_label): Declare.
12823         * arm.c (thumb_call_via_label): New variable.
12824         (thumb_call_reg_needed): New variable.
12825         (arm_output_function_epilogue): For Thumb code, output any per-function
12826         call-indirect trampolines.
12827         (thumb_call_via_reg): New function.
12828         (arm_file_end): New function.
12829         (TARGET_ASM_FILE_END): Call arm_file_end.
12830         (aof_file_end): Likewise.
12831         * arm-protos.h (thumb_call_via_reg): Declare.
12832         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
12833         thumb_call_via_reg in normal case.
12835 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
12837         PR middle-end/19084
12838         PR rtl-optimization/19348
12839         * recog.c (peephole2_optimize): Do global life update if some peephole
12840         decides it doesn't need at least one of its inputs and that change
12841         influences liveness at the start of the basic block.
12843         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
12844         arguments instead of 1.
12846 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
12848         PR middle-end/18820
12849         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
12850         zero for nested functions needing a static chain or functions
12851         with a non-constant address.
12853 2005-01-13  Roger Sayle  <roger@eyesopen.com>
12855         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
12856         (and (sign_extend X) C) into (zero_extend (and X C)).
12858 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
12860         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
12862 2005-01-13  Richard Henderson  <rth@redhat.com>
12864         PR target/19009
12865         PR target/19250
12866         PR target/19252
12867         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
12868         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
12869         not just TARGET_SSE.
12870         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
12871         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
12872         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
12873         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
12874         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
12875         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
12876         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
12877         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
12878         (movdicc_c_rex64): Rename with '*'.
12879         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
12880         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
12881         (movsfcc_1_387): Rename from movsfcc_1.
12882         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
12883         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
12884         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
12885         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
12886         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
12887         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
12888         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
12889         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
12890         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
12891         sse_movdfcc_const0_4): Remove.
12892         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
12893         recognize min/max early.  Update for changed sse cmove patterns.
12894         (ix86_split_sse_movcc): New.
12895         * config/i386/i386-protos.h: Update.
12897 2005-01-13  Steven Bosscher  <stevenb@suse.de>
12899         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
12900         (fix_stmt_v_may_defs): Likewise.
12902 2005-01-13  Richard Henderson  <rth@redhat.com>
12904         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
12905         for converting the mask.
12907 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
12909         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
12910         definition to 600.
12912 2005-01-13  Richard Henderson  <rth@redhat.com>
12914         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
12915         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
12916         IX86_BUILTIN_MOVDQ2Q): Remove.
12917         (IX86_BUILTIN_VEC_EXT_V4SI): New.
12918         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
12919         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
12920         shuffling.
12921         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
12922         (sse2_pextrw): Fix immediate constraint.
12923         (sse2_loadq, sse2_loadq_rex64): Remove.
12924         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
12925         Use __builtin_ia32_vec_ext_<size>.
12926         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
12928 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
12930         * function.c (assign_parm_setup_block): Look inside original
12931         entry_parm when inspecting PARALLEL.
12933 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
12934             Joel Sherrill  <joel@oarcorp.com>
12936         PR target/19399
12937         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
12938         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
12939         rtems_gxx_recursive_mutex_init.
12940         (__gthread_recursive_mutex_lock): New function.
12941         (__gthread_recursive_mutex_trylock): Likewise.
12942         (__gthread_recursive_mutex_unlock): Likewise.
12944 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
12946         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
12948 2005-01-13  Jan Beulich  <jbeulich@novell.com>
12950         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
12951         (ashrti3_internal): Indicate output is early clobber. Generate result
12952         into output rather than first input. Use move for low word of output
12953         if shift count is exactly 64.
12954         (lshrti3_internal): Likewise.
12956 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
12958         PR target/18329
12959         PR target/18330
12960         * reload1.c (delete_output_reload): Don't delete an output reload
12961         if the pseudo lives longer than a single basic block.  Adjust and
12962         improve wording of comment.
12964 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
12966         PR target/19334
12967         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
12968         of TYPE_SIZE where we mean the number of bytes.
12970 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
12972         * function.c (assign_parm_setup_block): Relax condition on
12973         multi-register optimization.
12975 2005-01-12  Nick Clifton  <nickc@redhat.com>
12977         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
12978         an "in_delay_slot" attribute of "no" to prevent them being used in
12979         delay slots.  This is forbidden because they might generate
12980         exceptions.
12982 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
12984         PR target/19389
12985         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
12986         with r->Y and Y->r.
12988 2005-01-12  Nick Clifton  <nickc@redhat.com>
12990         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
12991         passed on to GAS) but do not define, as GAS no longer supports or
12992         needs the -m2000 option.
12994 2005-01-11  Roger Sayle  <roger@eyesopen.com>
12996         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
12997         type as args of unprototyped builtins aren't automatically promoted.
12998         (fold_builtin_abs): Likewise.
13000 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13002         * Makefile.in: Set a `build-warn' variable.
13004 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
13006         PR tree-optimization/17949
13007         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
13008         (find_interesting_uses_address): Use it.
13010 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
13012         * regrename.c (kill_value): Handle subreg's that won't simplify.
13014 2005-01-11  Richard Henderson  <rth@redhat.com>
13016         PR target/13366
13017         * config/i386/i386.h (enum ix86_builtins): Move ...
13018         * config/i386/i386.c: ... here.
13019         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
13020         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
13021         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
13022         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
13023         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
13024         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
13025         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
13026         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
13027         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
13028         IX86_BUILTIN_LOADDDUP): Remove.
13029         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
13030         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
13031         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
13032         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
13033         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
13034         (ix86_init_builtins): Make static.
13035         (ix86_init_mmx_sse_builtins): Update for changed builtins.
13036         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
13037         if all the modes match.  Otherwise, fake it.
13038         (get_element_number, ix86_expand_vec_init_builtin,
13039         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
13040         (ix86_expand_builtin): Make static.  Update for changed builtins.
13041         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
13042         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
13043         (ix86_expand_vector_init_duplicate): New.
13044         (ix86_expand_vector_init_low_nonzero): New.
13045         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
13046         Split out from ix86_expand_vector_init; handle integer modes.
13047         (ix86_expand_vector_init): Use them.
13048         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
13049         * config/i386/i386-protos.h: Update.
13050         * config/i386/predicates.md (reg_or_0_operand): New.
13051         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
13052         (movv2sf_internal): Likewise.  And a splitter to match them all.
13053         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
13054         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
13055         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
13056         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
13057         (mmx_pinsrw): Fix operand ordering.
13058         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
13059         rather than sse_loadss expander.
13060         (movv2df splitter): Similarly.
13061         (sse_loadss, sse_loadlss): Remove.
13062         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
13063         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
13064         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
13065         (sse3_movddup): Rename with '*'.
13066         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
13067         (sse2_loadsd): Remove.
13068         (vec_dupv2df_sse3): Rename from sse3_loadddup.
13069         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
13070         (sse2_pinsrw): Fix argument ordering.
13071         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
13072         (sse2_stored): Remove 'r' destination.
13073         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
13074         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
13075         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
13076         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
13077         vec_extractv16qi, vec_initv16qi): New.
13079         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
13080         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
13081         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
13082         constructor form.
13083         (_mm_load_pd, _mm_store_pd): Use plain dereference.
13084         (_mm_load_si128, _mm_store_si128): Likewise.
13085         (_mm_load1_pd): Use _mm_set1_pd.
13086         (_mm_load_sd): Use _mm_set_sd.
13087         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
13088         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
13089         (_mm_set_epi64): Use _mm_set_epi64x.
13090         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
13091         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
13092         _mm_setr_epi8): Use _mm_set_foo form.
13093         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
13094         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
13095         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
13096         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
13097         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
13098         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
13099         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
13100         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
13101         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
13102         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
13103         (_mm_movedup_pd): Use _mm_shuffle_pd.
13104         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
13105         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
13106         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
13107         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
13108         Use _mm_setzero_ps.
13109         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
13110         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
13111         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
13112         (_mm_store_ps): Use raw dereference.
13113         (_mm_store1_ps): Use _mm_storeu_ps.
13114         (_mm_storer_ps): Use _mm_store_ps.
13115         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
13116         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
13118 2005-01-11  Stan Shebs  <shebs@apple.com>
13120         * config/rs6000/rs6000.c (machopic_output_stub): Issue
13121         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
13123 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
13125         PR target/18761
13126         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
13127         Skip all DECLs except for FIELD_DECLs.
13129 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13131         * config/s390/s390.c (override_options): Return error if
13132         -mbackchain, -mpacked-stack and -mhard-float are used together.
13133         (s390_va_start): Remove the backchain && packed-stack special case.
13134         (s390_gimplify_va_arg): Likewise.
13135         * doc/invoke.texi: Remove the ABI incompatibility note.
13137 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
13139         * config/s390/s390.c (struct s390_frame_layout): Remove
13140         save_backchain_p.
13141         (s390_frame_info, s390_emit_prologue): Replace occurrences of
13142         save_backchain_p with TARGET_BACKCHAIN.
13144 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13146         PR target/18916
13147         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
13148         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
13149         * function.c (locate_and_pad_parm): Set new field.
13150         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
13151         Tweak where_pad test to include "none".  Always set mem align for
13152         stack_parm.
13153         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
13154         not sufficient for type.
13155         (assign_parm_setup_block): If stack_parm is zero on entry, always
13156         make a new stack local.  Block move old stack parm if necessary
13157         to new aligned stack local.
13158         (assign_parm_setup_stack): Use a block move to handle
13159         potentially misaligned entry_parm.
13160         (assign_parms_unsplit_complex): Specify required alignment when
13161         creating stack local.
13162         * calls.c (compute_argument_addresses): Override alignment of stack
13163         arg calculated from its type with the alignment given by
13164         FUNCTION_ARG_BOUNDARY.
13165         (store_one_arg): Likewise.
13167 2005-01-11  Jan Beulich  <jbeulich@novell.com>
13169         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
13170         Change respective itanium_class attribute to ialu.
13171         (shladdp4_internal): New.
13172         * config/ia64/predicates.md (shladd_log2_operand): New.
13174 2005-01-11  Richard Henderson  <rth@redhat.com>
13176         * expr.c (store_constructor): Use rtvec_alloc instead of
13177         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
13179 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
13181         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
13183 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
13185         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
13186         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
13187         (TARGET_RWRELOC): Define.
13188         (ia64_rwreloc_section_type_flags): Delete.
13189         (ia64_section_type_flags): New function.
13190         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
13191         (TARGET_RWRELOC): Define.
13193 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
13195         PR target/18987
13196         * config/ia64/ia64.c (process_set): For alloc insn, only call
13197         process_epilogue is !frame_pointer_needed.
13199 2005-01-10  Roger Sayle  <roger@eyesopen.com>
13201         PR c++/19355
13202         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
13203         unary operator and can't be treated as a binary/comparison operator.
13205 2005-01-10  Richard Henderson  <rth@redhat.com>
13207         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
13208         (ix86_return_in_memory): Likewise.
13209         (function_arg_advance):  Likewise.  Mirror structure in function_arg
13210         for choosing register to advance.
13212 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
13214         * tree-vectorizer.c, tree.def: Fix comment typos.
13216 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
13218         * config/s390/s390.c (struct processor_costs): 4 new fields:
13219         ddbr, ddr, debr, der.
13220         (s390_rtx_costs): More precise handling of divide instructions.
13222 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
13224         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
13226 2005-01-10  Jan Beulich  <jbeulich@novell.com>
13228         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
13229         names resulting from -ffunction-sections/-fdata-sections and linkonce
13230         ones.
13231         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
13232         based on the section name. Rearrange the section name comparison logic
13233         slightly so that each section name is compared against at most once.
13235 2005-01-10  Ben Elliston  <bje@au.ibm.com>
13237         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
13238         targets for which -fPIC reduces limitations on the GOT size.
13240 2005-01-09  Falk Hueffner  <falk@debian.org>
13242         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
13243         X/C1 cmpop C2.
13245 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
13247         PR target/18720
13248         * collect2.c (main): Set aixrtl_flag for -brtl option.
13249         (resolve_lib_name): Search for .so file extension before .a
13250         if aixrtl_flag set.
13252 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
13254         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
13255         (vect_analyze_data_refs_alignment): Add dump prints.
13257 2005-01-09  Ira Rosen  <irar@il.ibm.com>
13259         * tree-vectorizer.c (vect_analyze_offset_expr): Use
13260         expr_invariant_in_loop_p.
13261         Initialize outputs first thing in the function.
13262         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
13263         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
13264         (vect_analyze_pointer_ref_access): Check that the initial condition of
13265         the access function is loop invariant.
13267 2005-01-09  Richard Henderson  <rth@redhat.com>
13269         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
13270         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
13271         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
13272         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
13273         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
13274         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
13275         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
13276         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
13277         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
13278         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
13279         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
13280         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
13281         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
13282         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
13283         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
13284         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
13285         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
13286         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
13287         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
13288         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
13289         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
13290         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
13291         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
13292         mmx_ prefix.
13293         (mmx_clrdi, pavgusb): Remove.
13294         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
13295         with leading sse_ prefix.
13296         * config/i386/sse.md: Receive them.
13297         * config/i386/mmx.md: New file.
13298         (MMXMODE12, MMXMODE24, mmxvecsize): New.
13299         (subrv2sf3): Turn into expander for normal subtraction.
13300         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
13301         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
13302         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
13303         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
13304         commutative; use ix86_binary_operator_ok.
13305         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
13306         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
13307         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
13308         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
13309         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
13310         Macroize from existing patterns; use ix86_binary_operator_ok.
13311         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
13312         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
13313         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
13314         with vec_select+vec_concat.
13315         (mmx_pshufw, mmx_pshufw_1): Likewise.
13316         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
13317         (mmx_uavgv4hi3): Model correctly.
13318         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
13319         _mm_xor_si64): Remove casts.
13321 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
13323         PR tree-optimization/19224
13324         * tree-scalar-evolution.c (get_instantiated_value,
13325         set_instantiated_value): New functions.
13326         (instantiate_parameters_1): Cache the results.
13327         (instantiate_parameters, resolve_mixers): Initialize and free
13328         the cache.
13330 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
13332         * config/i386/i386.md (addhi_4): Correct reference in comment.
13333         (addqi_4): Same.
13335 2005-01-08  Richard Henderson  <rth@redhat.com>
13337         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
13338         (_mm_cvtsi128_si64x): Likewise.
13339         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
13340         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
13341         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
13342         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
13343         * config/i386/i386-protos.h: Update.
13344         * config/i386/i386.c (print_operand): Add 'H'.
13345         (ix86_fixup_binary_operands): Split out from ...
13346         (ix86_expand_binary_operator): ... here.
13347         (ix86_fixup_binary_operands_no_copy): New.
13348         (ix86_expand_fp_absneg_operator): Handle vector mode results.
13349         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
13350         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
13351         (safe_vector_operand): Use CONST0_RTX.
13352         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
13353         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
13354         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
13355         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
13356         special cases.
13357         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
13358         (IX86_BUILTIN_CMPNGESS): New.
13359         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
13360         (attr type): Add sselog1.
13361         (attr unit, attr memory): Handle it.
13362         (movti, movti_internal, movti_rex64): Move near other integer moves.
13363         (movtf, movtf_internal): Move near other fp moves.
13364         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
13365         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
13366         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
13367         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
13368         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
13369         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
13370         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
13371         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
13372         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
13373         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
13374         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
13375         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
13376         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
13377         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
13378         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
13379         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
13380         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
13381         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
13382         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
13383         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
13384         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
13385         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
13386         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
13387         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
13388         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
13389         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
13390         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
13391         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
13392         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
13393         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
13394         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
13395         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
13396         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
13397         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
13398         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
13399         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
13400         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
13401         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
13402         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
13403         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
13404         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
13405         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
13406         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
13407         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
13408         same time.
13409         (SSEPUSH, push<SSEPUSH>): Remove.
13410         (MMXPUSH, push<MMXPUSH>): Remove.
13411         (sse_movaps, sse_movaps_1, sse_movups): Remove.
13412         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
13413         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
13414         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
13415         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
13416         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
13417         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
13418         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
13419         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
13420         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
13421         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
13422         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
13423         (ppro_sse_log_V4SF): Handle sselog1.
13424         * config/i386/predicates.md (const_0_to_1_operand): New.
13425         (const_0_to_255_mul_8_operand): New.
13426         (const_1_to_31_operand): Rename from const_int_1_31_operand.
13427         (const_2_to_3_operand, const_4_to_7_operand): New.
13428         * config/i386/sse.md: New file.
13429         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
13430         (sse_movups): Rename from sse_movups_1.
13431         (sse_loadlss): Rename from sse_loadss_1.
13432         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
13433         from the name.
13434         (negv4sf2): Use ix86_expand_fp_absneg_operator.
13435         (absv4sf2, negv2df, absv2df): New.
13436         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
13437         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
13438         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
13439         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
13440         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
13441         (sse3_addsubv4sf3): Model correctly.
13442         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
13443         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
13444         (sse_movhlps): Model with vec_select+vec_concat.
13445         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
13446         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
13447         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
13448         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
13449         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
13450         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
13451         sse2_pshufhw_1): Likewise.
13452         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
13453         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
13454         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
13455         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
13456         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
13457         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
13458         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
13459         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
13460         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
13461         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
13462         sminv8hi3): Mark commutative
13463         operands.  Use ix86_binary_operator_ok.
13464         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
13465         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
13466         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
13467         sse2_punpcklqdq): Allow operand2 in memory.
13468         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
13469         sse2_movsd): Add memory alternatives.
13470         (sse_storelps): Turn expander into an insn; split after reload.
13471         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
13472         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
13474 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13476         * configure.ac (DWARF-2 debug_line): Use objdump.
13477         * configure: Regenerate.
13479 2005-01-08  Jeff Law  <law@redhat.com>
13480             Diego Novillo  <dnovillo@redhat.com>
13482         PR tree-optimization/18241
13483         * tree-nrv.c (tree_nrv): Ignore volatile return values.
13484         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
13485         statements with volatile operands.
13486         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
13487         operands after marking a statement with has_volatile_ops.
13489 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13491         * tree.c (int_fits_type_p): Always honor integer constant
13492         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
13494 2005-01-08  Roger Sayle  <roger@eyesopen.com>
13496         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
13497         the latent bug in rtl_delete_block has been resolved.
13499 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13501         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
13502         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
13504 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
13506         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
13507         library as @multilib_dir@/$(SHLIB_SONAME).
13509 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13511         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
13512         * configure: Regenerate.
13514 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13516         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
13517         TYPE_MODE.
13519 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
13521         PR target/13674
13522         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
13523         Convert non-word aligned offset address using ld/std into
13524         indirect address.
13526 2005-01-07  Richard Henderson  <rth@redhat.com>
13528         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
13530 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
13532         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
13534 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
13536         PR tree-optimization/19283
13537         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
13538         is not shorter than the original type.
13540         PR rtl-optimization/19012
13541         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
13543         PR rtl-optimization/18861
13544         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
13545         (FULL_STATE): Define.
13546         (mark_tablejump_edge): New function.
13547         (purge_dead_tablejump_edges): New function.
13548         (find_bb_boundaries): Use it.
13550         PR tree-optimization/18828
13551         * builtins.c (expand_builtin_next_arg): Remove argument and all
13552         the argument checking.
13553         (expand_builtin): Adjust caller.
13554         (expand_builtin_va_start): Likewise.  Remove error for too many
13555         arguments.
13556         (fold_builtin_next_arg): Issue error for too many arguments.
13557         After checking arguments, replace them with magic arguments that
13558         prevent further checking of the args.
13560 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13562         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
13564 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13566         PR target/6077
13567         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
13568         and %{.S:...} (and their negative variants) to test whether the
13569         input file is assembler or pre-processed-assembler independent of
13570         the actual filename extension.
13572 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13574         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
13575         of sign or zero extended values.
13577 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
13579         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
13580         for IBM long double format correctly.
13582 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
13584         Fix PR tree-optimization/18792
13586         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
13587         to first_loop_depth, and use loop depth instead of loop number.
13588         (build_classic_dir_vector): Ditto.
13589         (compute_data_dependences_for_loop): Use depth, not loop number.
13590         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
13591         number. Pass in loops, instead of loop numbers.
13592         (gather_interchange_stats): Ditto.
13593         (linear_transform_loops): Ditto.
13595 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
13597         PR rtl-opt/13299
13598         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
13599         biv_fits_mode_p, extension_within_bounds_p): New functions.
13600         (check_ext_dependent_givs): Use them.
13602 2005-01-06  Roger Sayle  <roger@eyesopen.com>
13604         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
13605         more than one barrier, in which case we should delete them all.
13607 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
13609         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
13611 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
13613         Fix PR middle-end/19286
13614         Fix PR debug/19267
13615         * dwarf2out.c (gen_subprogram_die): If we've already tried to
13616         output this subprogram, simply ignore this attempt to do it again.
13617         (add_abstract_origin_attribute): Don't abort trying to add the abstract
13618         origin attribute if it's not possible.
13619         (gen_block_die): Don't ignore subblocks of "unused" blocks.
13620         (decls_for_scope): Ditto.
13621         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
13622         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
13624 2005-01-05  Richard Henderson  <rth@redhat.com>
13626         PR target/11327
13627         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
13628         (bdesc_2arg): Use it.
13629         (ix86_expand_binop_builtin): Force operands into registers
13630         when optimizing.
13631         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
13632         ix86_expand_sse_compare, ix86_expand_sse_comi,
13633         ix86_expand_builtin): Likewise.
13635 2005-01-05  Richard Henderson  <rth@redhat.com>
13637         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
13638         and VEC_SELECT.
13639         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
13640         (mulv4hi3): Set itanium_class mmmul.
13641         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
13642         (fpack): Rename from fpack_sfsf.
13644 2005-01-05  Richard Henderson  <rth@redhat.com>
13646         PR rtl-opt/10692
13647         * reload1.c (do_input_reload): Restrict the optimization deleteing
13648         a previous output reload to RELOAD_FOR_INPUT.
13650 2005-01-05  Steven Bosscher  <stevenb@suse.de>
13652         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
13653         comment that we fall through after case.
13654         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
13655         (distribute_links): Likewise.
13656         * cse.c (cse_insn): Likewise.
13657         * cselib.c (cselib_invalidate_mem): Likewise.
13658         * df.c: Update comments at the top of the file.
13659         (read_modify_subreg_p): Update comments here too.
13660         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
13661         * flow.c (mark_set_1): Likewise.
13662         (mark_used_regs): Likewise.
13663         * gcse.c (mems_conflict_for_gcse_p): Likewise.
13664         (canon_list_insert): Likewise.
13665         (mark_set): Likewise.
13666         (try_replace_reg): Likewise.
13667         (store_killed_in_insn): Likewise.
13668         * loop.c (count_one_set): Likewise.
13669         (basic_induction_var): Likewise.
13670         * postreload-gcse.c (find_mem_conflicts): Likewise.
13671         * postreload.c (reload_combine_note_store): Likewise.
13672         (move2add_note_store): Likewise.
13673         * reload.c (find_equiv_reg): Likewise.
13674         (mark_referenced_resources): Likewise.
13675         * rtlanal.c (set_noop_p): Likewise.
13676         (note_stores): Likewise.
13677         (note_uses): Likewise.
13678         * sched-deps.c (sched_analyze_1): Likewise.
13679         * sched-rgn.c (check_live_1): Likewise.
13680         (update_live_1): Likewise.
13681         * config/i860/i860.c: Likewise.
13683         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
13684         an lvalue.
13685         (ZERO_EXTRACT): Mention that this one can be an lvalue.
13687         * doc/rtl.texi: Update documentation for bit-fields and SET.
13689 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13691         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
13693 2005-01-05  Jan Hubicka  <jh@suse.cz>
13694             Richard Henderson  <rth@redhat.com>
13696         PR target/18910
13697         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
13698         with an offset.
13700 2005-01-05  Richard Henderson  <rth@redhat.com>
13702         PR target/12902
13703         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
13704         (sse_shufps): Change operand 3 to const_int_operand.
13705         (sse2_storelps): Fix typo in template.
13706         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
13707         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
13708         (ix86_expand_builtin): Likewise.
13710 2005-01-05  Julian Brown  <julian@codesourcery.com>
13712         * config/arm/arm.c (arm_return_in_memory): Treat complex types
13713         as aggregates for AAPCS ABIs.
13715 2005-01-05  Stan Shebs  <shebs@apple.com>
13717         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
13718         Mach-O getters if ppc64.
13719         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
13720         size argument.
13721         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13722         signed four-byte field for global code case.
13723         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
13725 2005-01-05  Roger Sayle  <roger@eyesopen.com>
13727         PR middle-end/19100
13728         * c-common.c: Include real.h.
13729         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
13730         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
13731         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
13732         * Makefile.in (c-common.o): Update dependencies.
13734 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13736         * c-parse.in (asm_string): Add trailing semicolon.
13738 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13740         * c-parse.in (asm_string): New.  Don't allow wide strings in
13741         'asm'.
13742         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
13743         asm_string instead of STRING.
13745 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
13747         * c-typeck.c (constructor_no_implicit): Remove.
13748         (set_designator, process_init_element): Don't check
13749         constructor_no_implicit.
13751 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
13752             Kaz Kojima  <kkojima@gcc.gnu.org>
13754         PR target/16482
13755         * lcm.c (create_pre_exit): New.
13756         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
13757         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
13759 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13761         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
13762         -msoft-float in target_float_switch.
13763         * arm.c (arm_override_options): Fix processing of target_float_switch.
13765 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
13767         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
13768         preferencing.
13770 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
13772         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
13773         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
13775 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13777         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
13778         if deleting the then-block allows the test-block to fallthru to the
13779         else-block.
13781 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
13783         PR c/19152
13784         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
13785         after the full declaration if the are in two different TUs.
13787 2005-01-04  Richard Henderson  <rth@redhat.com>
13789         PR tree-opt/19158
13790         * tree-sra.c (generate_one_element_init): Just
13791         call gimplify_and_add.
13792         (generate_element_init): Record the
13793         new referenced variables and mark them for renaming
13794         and split out to ...
13795         (generate_element_init_1): This.
13796         (scalarize_init): Don't call push_gimplify_context/
13797         pop_gimplify_context.
13799 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
13801         * toplev.c (get_src_pwd): Handle failure of getpwd().
13803 2005-01-04  Roger Sayle  <roger@eyesopen.com>
13805         * fold-const.c (fold_single_bit_test): Delete unreachable handling
13806         of TRUTH_NOT_EXPR.
13807         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
13808         all the cases handled by it are inverted by invert_truthvalue.
13810 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13812         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
13813         (save_register_windowsi): Likewise.
13815 2005-01-04  Richard Henderson  <rth@redhat.com>
13817         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
13819 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
13821         PR middle-end/17767
13822         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
13823         any simplifications of vector mode comparison operators.
13824         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
13826 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
13827             Devang Patel  <dpatel@apple.com>
13829         PR tree-optimization/18308
13830         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
13831         the operands before creating a new expression.
13832         * dojump.c (do_jump): Make drop_through_label available
13833         for all cases.  Add expansion of COND_EXPR.
13835 2005-01-04  Ira Rosen  <irar@il.ibm.com>
13837         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
13838         INTEGER_CST instead of TREE_CONSTANT.
13839         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
13840         instead of TREE_CONSTANT.
13841         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
13842         instead of TREE_CONSTANT.
13844 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13846         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
13848 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
13850         PR target/19240
13851         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
13852         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
13854 2005-01-03  Richard Henderson  <rth@redhat.com>
13856         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
13857         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
13858         fold_convert_const_real_from_real): Split out from ...
13859         (fold_convert_const): ... here.
13861 2005-01-03  Richard Henderson  <rth@redhat.com>
13863         PR target/19235
13864         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
13865         (mov<MMXMODEI>_internal): Likewise.
13866         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
13867         Add V2SF case; use it for SSE1; don't use TI.
13868         (movdf_integer): Likewise.
13869         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
13871 2005-01-03  Ira Rosen  <irar@il.ibm.com>
13873         * tree-vectorizer.c (vect_strip_conversions): New function.
13874         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
13875         check for binary class.
13877 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
13879         Fix PR debug/17924
13880         Fix PR debug/19191
13881         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
13882         is a decl.
13883         * gimple-low.c (mark_blocks_with_used_vars): New function.
13884         (mark_blocks_with_used_subblocks): Ditto.
13885         (mark_used_blocks): Ditto.
13886         (pass_mark_used_blocks): New pass.
13887         * tree-inline.c: Include debug.h.
13888         (expand_call_inline): Call outlining_inline_function here.
13889         * tree-optimize.c (init_tree_optimization_passes): Add
13890         pass_mark_used_blocks.
13891         * tree-pass.h (pass_mark_used_blocks): New.
13892         * Makefile.in (tree-inline.o): Add debug.h dependency.
13894 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
13896         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
13897         VAR_DECLs to have weak_import attribute.
13899         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
13900         'struct ucontext'.
13902 2004-01-03  Steven Bosscher  <stevenb@suse.de>
13904         * passes.c (rest_of_compilation): Don't run regmove if only
13905         flag_expensive_optimizations, require flag_regmove instead.
13907 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13909         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
13910         register "sparc".
13911         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
13912         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
13913         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
13914         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
13916 2005-01-03  Richard Henderson  <rth@redhat.com>
13918         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
13919         (ia64_const_ok_for_letter_p): New.
13920         (ia64_const_double_ok_for_letter_p): New.
13921         (ia64_extra_constraint): New.
13922         (ia64_expand_vecint_compare): New.
13923         (ia64_expand_vcondu_v2si): New.
13924         (ia64_expand_vecint_cmov): New.
13925         (ia64_expand_vecint_minmax): New.
13926         (ia64_print_operand): Add 'v'.
13927         (ia64_preferred_reload_class): New.
13928         (ia64_vector_mode_supported_p): New.
13929         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
13930         (PREFERRED_RELOAD_CLASS): Move to function.
13931         (CONST_OK_FOR_LETTER_P): Move to function.
13932         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
13933         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
13934         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
13935         (EXTRA_CONSTRAINT): Move to function.
13936         * config/ia64/ia64.md: Include vect.md.
13937         (itanium_class): Add mmalua.
13938         (type): Handle it.
13939         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
13940         (1b_mmalua): New.
13941         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
13942         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
13943         CONST0_RTX.
13944         (const_int_2bit_operand): New.
13945         (fr_reg_or_0_operand): New.
13946         * config/ia64/ia64-modes.def: Add vector modes.
13947         * config/ia64/ia64-protos.h: Update.
13948         * config/ia64/vect.md: New file.
13950 2005-01-03  Richard Henderson  <rth@redhat.com>
13952         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
13954 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
13956         PR target/19236
13957         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
13958         to SFmode.
13959         (log1pdf2): Change mode of operands[0,1] to DFmode.
13961 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13963         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
13964         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
13965         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13966         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
13967         SPARC_RELAXED_ORDERING.
13969 2005-01-03  Richard Henderson  <rth@redhat.com>
13970             Uros Bizjak  <uros@kss-loka.si>
13972         PR target/14631
13973         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
13974         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
13975         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
13976         handling.
13977         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
13978         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
13979         const_pow2_1_to_128_operand): New predicates.
13981 2005-01-02  Greg McGary  <greg@mcgary.org>
13983         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
13984         anonymous decls.
13985         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
13986         object.  [ptr_type]: Remove unused variable.
13987         Remember nearest addressable array-element or record-component
13988         when checking bitfield components.  Tolerate empty BIND_EXPR.
13990 2005-01-01  Richard Henderson  <rth@redhat.com>
13992         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
13993         that don't narrow the value.  Fail for other conversions.
13995 2005-01-01  Richard Henderson  <rth@redhat.com>
13997         PR c/19031
13998         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
13999         * c-lang.c (finish_file): Don't do it here.
14000         * objc/objc-act.c (objc_finish_file): Likewise.
14002         * cgraph.c (decl_assembler_name_equal): New.
14003         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
14004         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
14005         * cgraph.h (struct cgraph_varpool_node): Add next.
14006         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
14007         * varasm.c (assemble_alias): Mark the target as needed.
14009 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
14011         PR middle-end/19221
14012         * function.c (get_arg_pointer_save_area): Use entry_of_function
14013         instead of get_insns.
14015 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14016             Andrew Pinski  <pinskia@physics.uc.edu>
14017             James E. Wilson  <wilson@specifixinc.com>
14019         PR rtl-optimization/12092
14020         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
14021         is zero.
14023 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14024             Olivier Hainque  <hainque@act-europe.fr>
14026         * tree.c (int_fits_type_p): A narrower type always fits in a
14027         wider one, except for negative values into unsigned types.
14029 2005-01-01  Roger Sayle  <roger@eyesopen.com>
14031         * tree.c (int_fits_type_p): Compare the result of force_fit_type
14032         with the original constant rather than require TREE_OVERFLOW.
14034 2005-01-01  Steven Bosscher  <stevenb@suse.de>
14036         PR middle-end/17544
14037         * c-decl.c (finish_function): If compiling C99, annotate the
14038         compiler generated return with the current file name and line 0.
14039         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
14040         the source line is greater than 0.
14041         (remove_bb): Likewise.