1 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
4 * gimplifier.c (gimplify_expr): Create a temporary for lvalue
7 2005-11-03 Daniel Berlin <dberlin@dberlin.org>
9 Fix PR tree-optimization/24351
11 * tree-ssa-structalias.c (struct variable_info): Add
13 (get_varinfo_fc): New function to follow collapsing.
14 (new_var_info): Set collapsed_to to NULL.
15 (dump_constraint): Follow collapsing.
16 (build_constraint_graph): Handle collapsing.
17 (do_simple_structure_copy): Return false if something bad
19 (collapse_rest_of_var): New function.
20 (do_structure_copy): Collapse if do_simple_structure_copy returns
23 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
26 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
27 expressions to a statement list instead of gimplifying them.
29 2005-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
31 PR rtl-optimization/23585
32 * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
33 that can't trap plus a constant integer, if the mode has zero size.
35 2005-11-03 Ulrich Weigand <uweigand@de.ibm.com>
38 * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
40 ("*insv<mode>_reg_extimm"): Likewise.
42 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
45 * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
46 c_common_type_for_mode returns an unnamed type.
48 2005-11-02 Richard Henderson <rth@redhat.com>
52 * dwarf2out.c (dwarf2out_reg_save_reg): New.
53 (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
54 * function.c (assign_parms): Use calls.internal_arg_pointer.
55 (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
57 * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
58 (TARGET_CALLS): Add it.
59 * target.h (struct gcc_target): Add calls.internal_arg_pointer.
60 * targhooks.c (default_internal_arg_pointer): New.
61 * targhooks.h (default_internal_arg_pointer): Declare.
62 * tree.h (dwarf2out_reg_save_reg): Declare.
63 * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
64 * config/i386/i386.c (dbx_register_map): Add return column.
65 (dbx64_register_map, svr4_dbx_register_map): Likewise.
66 (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
67 (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
68 (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
69 (ix86_save_reg): Save force_align_arg_pointer.
70 (ix86_emit_save_regs): Make regno unsigned.
71 (ix86_emit_save_regs_using_mov): Likewise.
72 (ix86_expand_prologue): Handle force_align_arg_pointer.
73 (ix86_expand_epilogue): Likewise.
74 * config/i386/i386.h: (dbx_register_map): Update.
75 (dbx64_register_map, svr4_dbx_register_map): Update.
76 (struct machine_function): Add force_align_arg_pointer.
77 * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
78 (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
79 (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
81 2005-11-02 Jan Hubicka <jh@suse.cz>
84 * i386.md: Add peep2 for simplyfing array accesses.
86 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
89 * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
90 * config/s390/s390.c (s390_decompose_shift_count): New function.
91 (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
92 (print_shift_count_operand): Use s390_decompose_shift_count.
93 * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
94 Use s390_decompose_shift_count. Do not accept any non-base hard regs.
96 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
99 * loop.c (loop_givs_rescan): Use force_operand to expand
102 2005-11-02 Andrew Pinski <pinskia@physics.uc.edu>
105 * fold-const.c (build_range_check): Use unsigned when signed
106 overflow is undefined also. If etype is subtype, make sure that
107 the subtraction is in the supertype.
109 2005-11-02 Richard Henderson <rth@redhat.com>
112 * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
115 2005-11-01 Richard Henderson <rth@redhat.com>
118 * loop.c (scan_loop): Do not propagate computations to a hard
119 register destination with SMALL_REGISTER_CLASSES.
121 2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
123 * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
124 costs for MULT inside PLUS or MINUS.
126 2005-11-01 Bob Wilson <bob.wilson@acm.org>
128 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
129 (TRAMPOLINE_SIZE): Round up to 60.
130 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
132 2005-10-31 James E. Wilson <wilson@specifix.com>
135 * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
136 ifdef. Put ifdefs around call in gen_subprogram_die.
137 (compute_frame_pointer_to_cfa_displacement): Likewise.
138 (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
141 PR rtl-optimization/17356
142 * cfgrtl.c (purge_dead_edges): Undo last change. In EDGE_EH code,
143 add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
145 2005-10-31 Jan Hubicka <jh@suse.cz>
148 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
151 * i386.c (legitimize_pic_address): Deal with large immediates.
154 * coverage.c (coverage_checksum_string): Fix code to stip random seeds
155 from symbol names while computing checkup.
158 * predict.c (predict_loops): Do not estimate more than
159 MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
160 * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
162 2005-10-31 Andrew MacLeod <amacleod@redhat.com>
164 PR tree-optimization/19097
165 * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
167 2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
169 * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
171 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
174 * tree-inline.c (setup_one_parameter): If the init_stmt
175 is NULL, don't insert the statement.
177 2005-10-30 Jan Hubicka <jh@suse.cz>
179 PR tree-optimization/24172
180 * tree-inline.c (copy_body_r): Unshare the substituted value first.
182 2005-10-30 Hans-Peter Nilsson <hp@bitrange.com>
184 * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
185 constants for hosts with long != 32 bits.
187 2005-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
190 * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
192 2005-10-28 Aldy Hernandez <aldyh@redhat.com>
194 * config/ms1/ms1.h (TARGET_MS1_64_001): New.
195 (TARGET_MS1_16_002): New.
196 (TARGET_MS1_16_003): New.
198 * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
199 ("*decrement_and_branch_until_zero_no_clobber"): New.
200 Add corresponding splitter for decrement_and_branch_until_zero
202 Key all decrement_and_branch_until_zero patterns off of
205 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
208 * tree-complex.c (extract_component): Treat RESULT_DECL
209 like the rest of the decls.
211 2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
213 * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
214 indirect call to _mcount if the function needs a static chain.
216 2005-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
217 Caroline Tice <ctice@apple.com>
219 PR rtl-optimization/24460
220 * dwarf2out.c (have_switched_text_sections): New boolean variable.
221 (dwarf2out_switch_text_section): Set it to true instead of
222 incrementing separate_line_info_table_in_use.
223 (output_loc_list): Additionally test have_switched_text_sections.
224 (output_ranges): Likewise.
225 (dwarf2out_finish): Likewise.
226 * varasm.c (assemble_start_function): Do not call
227 insert_section_boundary_note.
228 (assemble_end_function): If flag_reorder_blocks_and_partition,
229 switch to the function's section before emitting the .size directive.
230 * bb-reorder.c (insert_section_boundary_note): Staticify.
231 (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
232 * output.h (insert_section_boundary_note): Delete.
234 2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
237 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
238 instead of pointer equality when comparing types.
240 2005-10-24 James E. Wilson <wilson@specifix.com>
242 * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
243 add_dependence_list_and_free calls.
245 2005-10-24 Steven Bosscher <stevenb@suse.de>
247 * contrib.texi: Add the names of the LLNL folks who donated
248 Cray pointer support for gfortran.
250 2005-10-24 Steven Bosscher <stevenb@suse.de>
252 PR tree-optimization/24225
253 * profile.c (branch_prob): Look from end to start through a
254 basic block when looking for a locus.
256 2005-10-24 Richard Henderson <rth@redhat.com>
258 * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
260 (hppa_expand_prologue): Likewise.
262 2005-10-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
264 * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
265 (NO_DEFERRED_PROFILE_COUNTERS): Define.
266 * pa.h (NO_PROFILE_COUNTERS): Define.
267 * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
268 (funcdef_nos): New vector to hold label numbers of deferred profile
270 (output_deferred_profile_counters): New function.
271 (hppa_profile_hook): Push label number onto funcdef_nos.
272 (pa_hpux_file_end): Call output_deferred_profile_counters if
273 NO_DEFERRED_PROFILE_COUNTERS is false.
275 * pa-protos.h (get_deferred_plabel): New prototype.
276 * pa.c (get_plabel): Rename to get_deferred_plabel. Return plabel.
278 (output_call): Adjust calls.
280 2005-10-24 Alan Modra <amodra@bigpond.net.au>
282 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
283 peculiarity of GOT/TOC section usage.
285 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu>
288 * c-common.c (constant_string_class_name): Add documentation.
290 2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
293 * recog.c (peephole2_optimize): Increment peep2_current_count
294 only when the slot is empty.
296 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
299 * except.c (output_function_exception_table): Call
300 assemble_external_libcall if we need a personality function.
302 2005-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
304 PR rtl-optimization/24460
305 * bb-reorder.c (fix_crossing_unconditional_branches): Do not
306 set the basic block for barriers.
308 2005-10-21 Janis Johnson <janis187@us.ibm.com>
310 * var-tracking.c (vt_initialize): Initialize post.
312 2005-10-21 Devang Patel <dpatel@apple.com>
315 * c-common.c (vector_types_convertible_p): Check vector element type.
317 2005-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
319 * config/sh/sh.c (prepare_move_operands): Handle the address
320 constant which is a tls symbolic address plus a constant.
322 2005-10-21 Andrew Pinski <pinskia@physics.uc.edu>
325 * gcc.c (main): Use the correct counter for erroring out
326 about mulitple files.
328 2005-10-21 Alan Modra <amodra@bigpond.net.au>
331 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
332 use r2 for 64-bit tls .got access.
334 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
336 * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
339 2005-10-20 Steven Bosscher <stevenb@suse.de>
341 PR tree-optimization/24307
342 * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
344 2005-10-20 Alexandre Oliva <aoliva@redhat.com>
347 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
349 * varasm.c (find_decl_and_mark_needed): After cgraph global info
350 is ready, stop marking functions, but still mark variables.
352 2005-10-20 Richard Guenther <rguenther@suse.de>
355 * fold-const.c (invert_truthvalue): Handle COND_EXPR with
358 2005-10-20 Eric Botcazou <ebotcazou@libertysurf.fr>
360 PR rtl-optimization/23585
361 * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
362 (rtx_addr_can_trap_p): ... here. Invoke rtx_addr_can_trap_p_1.
363 (may_trap_p_1): New predicate extracted from...
364 (may_trap_p): ... here. Invoke may_trap_p_1.
365 (may_trap_or_fault_p): New predicate.
366 * rtl.h (may_trap_or_fault_p): Declare it.
367 * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
368 instead of may_trap_p.
369 (steal_delay_list_from_fallthrough): Likewise.
370 (fill_simple_delay_slots): Likewise.
371 (fill_slots_from_thread): Likewise.
372 * function.c (pad_to_arg_alignment): Rework comment about
373 SPARC_STACK_BOUNDARY_HACK.
374 * config/sparc/sparc.h: Likewise.
376 2005-10-19 Adrian Straetling <straetling@de.ibm.com>
378 * config/s390/s390.c (s390_expand_insv): New.
379 * config/s390/s390-protos.h (s390_expand_insv): Declare.
380 * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
381 ("icm_hi"): Remove mode attribute.
382 ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
384 ("*extracthi", "*extractqi"): Remove.
385 (extv<mode>", "*extzv<mode>"): New.
386 ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
387 "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
389 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
391 * cfgexpand.c (discover_nonconstant_array_refs_r,
392 discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
393 (tree_expand_cfg): Call discover_nonconstant_array_refs.
394 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
395 discover_nonconstant_array_refs.
397 2005-10-19 Steven Bosscher <stevenb@suse.de>
400 * c-decl.c (pop_scope): Don't warn about an unused variable
401 if it is marked with TREE_NO_WARNING.
402 (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
403 somenow mismatch and olddecl is to be replaced.
405 2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
408 * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
409 whether registers live on the edge can be saved/restored.
411 2005-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
413 * config/sh/sh.c (fixup_mova): Skip notes.
415 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
417 * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
418 * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
419 (s390_can_eliminate): Handle BASE_REGNUM elimination.
420 (s390_initial_elimination_offset): Likewise.
421 (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
422 register on TARGET_ZARCH targets.
423 * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
424 (INITIAL_FRAME_POINTER_OFFSET): Remove.
425 (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
426 (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
428 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
430 * config/s390/s390.md: Comment describing output modifiers updated.
431 * config/s390/s390.c (print_operand): Likewise.
433 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
435 * config/s390/s390.c (override_options): Added check for -mstack-size
437 * doc/invoke.texi: Mention that limit in the documenation.
439 2005-10-18 Paolo Bonzini <bonzini@gnu.org>
442 * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
444 2005-10-18 Daniel Berlin <dberlin@dberlin.org>
446 Fix PR tree-optimization/24231
448 * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
449 (compute_avail): Ditto.
451 2005-10-18 Richard Henderson <rth@redhat.com>
454 * config/i386/i386.c (legitimate_constant_p): Check
455 SYMBOL_REF_TLS_MODEL directly. Don't fallthru to SYMBOL_REF
457 (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
458 (legitimate_pic_address_disp_p): Reorg CONST checking to make
459 sure SYMBOL_REF_TLS_MODEL is tested. Test SYMBOL_REF_TLS_MODEL
461 (print_operand_address): Likewise.
462 * config/i386/predicates.md (x86_64_immediate_operand): Test
463 SYMBOL_REF_TLS_MODEL properly inside CONST.
464 (x86_64_zext_immediate_operand): Likewise.
465 (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
466 initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
467 * config/i386/i386-protos.h: Remove predicates.md entries.
469 2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
471 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
472 Check that elements of TYPE_METHODS are FUNCTION_DECLs.
474 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
475 Ian Lance Taylor <ian@airs.com>
478 * fold-const.c (fold_widened_comparison): Do not allow range based
479 constant folding when right operand cannot be unwidened.
481 2005-10-17 Richard Henderson <rth@redhat.com>
483 * builtins.c (expand_builtin_synchronize): Build a new-style asm
484 with a memory clobber.
486 2005-10-17 James E Wilson <wilson@specifix.com>
488 PR rtl-optimization/17356
489 * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
490 checking for EDGE_EH.
492 2005-10-17 Eric Botcazou <ebotcazou@libertysurf.fr>
494 * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
495 the slot on an even boundary for any type with 16-byte alignment.
497 2005-10-17 Hans-Peter Nilsson <hp@axis.com>
500 * md.texi (Modifiers) <%>: Clarify that % doesn't work
501 after register allocation.
503 2005-10-17 DJ Delorie <dj@redhat.com>
505 * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
508 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
511 * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
514 2005-10-17 Kaz Kojima <kkojima@gcc.gnu.org>
516 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
517 to 2 if it's already non-zero.
518 (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
519 is set and warn about it if flag_schedule_insns is 1.
521 2005-10-17 Paul Woegerer <paul.woegerer@nsc.com>
523 * config/crx/crx.md: Compare-and-branch instructions need to
526 2005-10-17 Uros Bizjak <uros@kss-loka.si>
529 * config/i386/i386.md (*pushdi2_rex64 splitter)
530 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
531 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
532 flow2 pass only when (optimize > 0 && flag_peephole2).
534 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
537 * gcc.c (have_c): New static variable.
539 (process_command): Remove declation of have_c.
540 Set have_o to 1 when handling -o.
541 (main): Add a fatel error if there are multiple
542 files specified and -o and -c/-S is passed witout
543 -combine or multiple languages.
545 2005-10-16 Daniel Berlin <dberlin@dberlin.org>
547 Fix PR tree-optimization/22444
548 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
549 Assert that we don't hit something with subvars.
550 (setup_pointers_and_addressables): Don't add things with subvars,
551 because we'll already process the subvars for aliasing purposes.
553 2005-10-16 Hans-Peter Nilsson <hp@axis.com>
556 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
557 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
558 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
559 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
560 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
561 swapped, alternatives for the R constraint.
564 * builtins.c (get_builtin_sync_mode): Make unlimited
565 mode_for_size request.
567 2005-10-15 Richard Henderson <rth@redhat.com>
569 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
570 (gimplify_expr): ... here.
571 (gimplify_compound_lval): Use it in initial scan loop. Allow
572 fb_lvalue in base expression.
574 2005-10-15 Richard Henderson <rth@redhat.com>
577 * builtins.c (expand_builtin_trap): Export.
578 * expr.h (expand_builtin_trap): Declare.
579 * expr.c (expand_assignment): Emit a trap for integral offsets
580 from registers that weren't reduced to bitpos.
582 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
583 (mark_array_ref_addressable): Remove.
584 * tree-flow.h (mark_array_ref_addressable): Remove.
585 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
587 2005-10-15 James E Wilson <wilson@specifix.com>
590 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
591 (add_dependence_list_and_free): Likewise.
592 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
595 2005-10-15 Diego Novillo <dnovillo@redhat.com>
599 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
600 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
602 (vrp_visit_phi_node): Only prevent infinite iterations when
603 the previous result and the new result are both VR_RANGEs.
605 2005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
607 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
610 2005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
613 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
616 2005-10-14 Per Bothner <per@bothner.com>
618 PR preprocessor/21250
619 * c-ppoutput.c (print_line): Print internal line 0 as 1.
621 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
624 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
625 overflow flags. Refactor some conditionals.
627 2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
630 * tree-dfa.c (add_referenced_var): Only look at decls which
631 have TREE_CONSTANT or TREE_READONLY set instead of if
632 !TREE_PUBLIC or !TREE_CONSTANT.
634 2005-10-13 James E Wilson <wilson@specifix.com>
636 * doc/invoke.texi: For -x, add f95-cpp-input.
637 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
639 2005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
641 PR tree-optimization/24262
642 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
643 in loop all the time.
645 2005-10-12 Richard Henderson <rth@redhat.com>
648 * tree.h (DECL_TRANSPARENT_UNION): Remove.
649 * function.c (assign_parm_find_data_types): Don't support it.
650 * print-tree.c (print_node): Likewise.
651 * c-common.c (handle_transparent_union_attribute): Likewise.
652 Use build_duplicate_type.
653 * tree-inline.c (remap_type_1): Split out of remap_type;
654 properly remap aggregate fields.
655 (build_duplicate_type): New.
656 * doc/extend.texi (Variable Attributes): Remove documentation
657 for transparent_union.
659 2005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
662 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
663 (gen_stack_pointer_dec): Likewise.
665 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
669 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
671 (struct cxx): Add adjust_class_at_definition target hook.
672 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
673 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
674 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
675 hook_void_tree. Add to TARGET_CXX.
676 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
678 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
679 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
680 instead of attribute. Check for dllexport override. Warn if
681 inconsistent dll linkage. Don't lose old dllimport if decl has
682 had address referenced. Tweak lookup of dllimport atribute.
683 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
684 for target specific rules. Don't add dllimport attribute if
685 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
687 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
688 * varasm.c (initializer_constant_valid_p): Replace
689 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
693 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
694 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
695 (i[34567]86-*-mingw32*): Likewise.
697 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
698 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
700 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
701 C++-specific code. Change return value to bool.
702 (i386_pe_dllimport_p): Likewise.
703 (associated_type): Simplify and make language-independent
704 (i386_pe_encode_section_info): Replace override of ambiguous
705 dllimport symbol refs with a gcc_assert.
706 (i386_pe_valid_dllimport_attribute_p): Define.
707 * config/i386/winnt-cxx.c: New file. Define C++ versions of
708 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
709 i386_pe_adjust_class_at_definition.
710 * config/i386/winnt-stubs.c: New file. Define stub versions of
711 lang-specific functions.
712 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
713 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
714 i386_pe_adjust_class_at_definition.
715 (i386_pe_valid_dllimport_attribute_p): Declare.
716 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
717 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
718 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
721 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
722 dllimport attribute with test of DECL_DLLIMPORT_P.
724 2005-10-12 Adrian Straetling <straetling@de.ibm.com>
726 * combine.c (make_extraction): Correct offset computation.
728 2005-10-12 Hans-Peter Nilsson <hp@axis.com>
730 * config/cris/t-linux (LIMITS_H_TEST): Define.
732 2005-10-12 Richard Henderson <rth@redhat.com>
735 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
737 2005-10-12 Richard Guenther <rguenther@suse.de>
739 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
741 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
744 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
745 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
748 2005-10-12 Richard Guenther <rguenther@suse.de>
751 * varasm.c (output_constant): Correct typo from previous
754 2005-10-11 Ian Lance Taylor <ian@airs.com>
756 PR rtl-optimization/13931
757 * combine.c: Revert patch of 2003-05-14, and:
758 (try_combine): Only set elim_i1 and elim_i2 if the destination is
759 completely killed in the appropriate insn.
760 (distribute_notes): Don't skip multiple hard register test for
763 2005-10-11 Richard Henderson <rth@redhat.com>
766 * c-typeck.c (convert_for_assignment): Use build_constructor_single
767 to initialize a transparent union instead of a nop_expr.
769 2005-10-11 Richard Henderson <rth@redhat.com>
771 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
772 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
773 (tree_ssa_dce_loop): Call scev_reset.
776 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
777 * tree-ssa-dce.c: Include cfgloop.h.
778 (tree_ssa_dce_loop, pass_dce_loop): New.
779 * tree-pass.h (pass_dce_loop): Declare it.
780 * passes.c (init_optimization_passes): Use it.
782 2005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
785 * convert.c (convert_to_real): Revert 2005-10-05 patch.
786 Only apply the optimization for rounding builtins if the inner
787 cast is also an extension.
789 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
792 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
793 mark_new_vars_to_rename instead of update_stmt.
795 2005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
797 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
799 2005-10-11 Jakub Jelinek <jakub@redhat.com>
801 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
802 for setting MMX register to 0 rather than mmx.
804 2005-10-10 Steve Ellcey <sje@cup.hp.com>
807 * configure.ac: Move gas check from mips specific case to common case.
808 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
809 * configure: Regenerate
810 * doc/install.texi: Update.
812 2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
815 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
817 2005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
819 * gcc.c (do_spec_1): Accept numeric characters in file name
822 2005-10-10 Nick Clifton <nickc@redhat.com>
824 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
825 describing the deleted arm_gen_rotated_half_load function.
827 2005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
829 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
832 2005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
834 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
836 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
837 (EXTRA_MULTILIB_PARTS): Define.
838 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
839 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
840 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
841 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
842 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
843 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
845 2005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
847 PR tree-optimization/24226
848 * tree-cfg.c (remove_bb): Clean up unreachable loops.
849 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
850 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
853 2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
855 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
857 2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
860 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
861 Rewrite for no need for the early clobber.
863 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
865 Merge from csl-arm-branch:
866 2005-09-07 Paul Brook <paul@codesourcery.com>
867 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
870 2005-04-30 Paul Brook <paul@codesourcery.com>
871 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
872 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
874 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
875 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
876 (arm_override_options): Use TARGET_AAPCS_BASED.
877 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
878 (PTRDIFF_TYPE): Use int for AAPCS.
879 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
880 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
881 (DEFAULT_SHORT_ENUMS): Delete.
882 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
884 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
885 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
886 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
887 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
889 2004-12-03 Mark Mitchell <mark@codesourcery.com>
890 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
892 2004-11-22 Mark Mitchell <mark@codesourcery.com>
893 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
895 2004-11-19 Mark Mitchell <mark@codesourcery.com>
896 * config.gcc (arm*-*-linux-gnueabi): Add it.
897 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
899 (TARGET_OS_CPP_BUILTINS): Likeiwse.
900 * config/arm/linux-eabi.h: New file.
901 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
902 (LINUX_TARET_LINK_SPEC): Likewise.
904 * config/arm/t-linux-eabi: New file.
906 2005-10-08 Steven Bosscher <stevenb@suse.de>
909 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
911 (PARAM_SMS_DFA_HISTORY): Likewise.
913 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
916 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
917 (load_register_parameters): Call it.
918 (check_sibcall_argument_overlap_1): Likewise.
919 (store_one_arg): Likewise.
921 2005-10-07 James E. Wilson <wilson@specifix.com>
923 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
924 DImode not VECINT24 for operand 2.
927 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
931 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
932 fr_spill): Use destination_operand for operand 0.
934 2005-10-07 DJ Delorie <dj@redhat.com>
936 * varasm.c (output_constant): Limit error to expanding
939 2005-10-07 Richard Guenther <rguenther@suse.de>
942 * fold-const.c (fold_binary): Fix operand types during folding
943 of X op (A, Y). Evaluation order of the side-effects of
944 X and A are frontend-defined, so ensure we honour that even for
945 tcc_comparison class operands; eased by removing duplicate code.
947 2005-10-07 Steve Ellcey <sje@cup.hp.com>
949 * stor-layout.c (layout_type): Do not allow alignment of array
950 elements to be greater than their size.
952 2005-10-07 Steve Ellcey <sje@cup.hp.com>
954 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
956 (hppa*-*-linux*): Ditto.
957 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
958 * config/host-hpux.c: New.
959 * config/x-hpux: New.
960 * config/pa/x-hpux: Remove.
961 * config/pa/x-linux: Remove.
962 * config/pa/pa-host.c: Remove.
964 2005-10-07 Jeff Law <law@redhat.com>
966 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
967 determine whether or not to try and thread outgoing edges.
969 2005-10-07 David Edelsohn <edelsohn@gnu.org>
971 * config/rs6000/rs6000.md (eqsi_power): New.
972 (neg_eq0si): Add TARGET_POWER to final condition.
975 2005-10-06 Richard Henderson <rth@redhat.com>
977 * config/rs6000/rs6000.c: Revert last change.
979 2005-10-06 Richard Henderson <rth@redhat.com>
981 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
982 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
984 2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
988 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
989 out return_label and naked_return_label.
991 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
993 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
996 2005-10-06 Richard Henderson <rth@redhat.com>
999 * tree-inline.c (declare_return_variable): Handle modify_dest not
1002 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
1004 Fix PR tree-optimization/22488
1005 * tree-ssa-structalias.c (check_for_overlaps): New function.
1006 (create_variable_info_for): Use it.
1008 2005-10-06 Richard Henderson <rth@redhat.com>
1011 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
1012 (dwarf2out_start_source_file): Print it.
1014 2005-10-06 Geoffrey Keating <geoffk@apple.com>
1016 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
1018 2005-10-06 Richard Henderson <rth@redhat.com>
1021 * mode-switching.c (optimize_mode_switching): Clear transp bit
1022 for block with incomming abnormal edges.
1024 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
1025 (fpscr_set_from_mem): Use them.
1026 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
1027 (fpscr postinc splitters): Rewrite as peephole2+split.
1029 2005-10-06 David Edelsohn <edelsohn@gnu.org>
1031 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
1032 (eq<mode>_compare): Same.
1034 2005-10-06 Richard Guenther <rguenther@suse.de>
1036 PR tree-optimization/24238
1037 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
1039 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
1041 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
1042 here. Use AC_PATH_PROG for environment variables instead of
1044 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
1046 * configure: Regenerated.
1048 2005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
1051 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
1052 then force it into a register.
1053 (call_value): Likewise.
1055 2005-10-06 Richard Henderson <rth@redhat.com>
1058 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
1059 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
1060 under pass_vectorize.
1062 2005-10-05 Devang Patel <dpatel@apple.com>
1065 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
1066 handling constants. Check NAMESPACE_DECL context for constants.
1068 2005-10-05 Eric Christopher <echristo@apple.com>
1070 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
1072 2005-10-05 Richard Henderson <rth@redhat.com>
1075 * tree-cfg.c (mark_array_ref_addressable_1): New.
1076 (mark_array_ref_addressable): New.
1077 * tree-flow.h (mark_array_ref_addressable): Declare.
1078 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
1080 2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
1084 * reload.c (subst_reloads): When adding a REG_LABEL to a
1085 jump instruction, also update JUMP_LABEL.
1087 2005-10-05 David Edelsohn <edelsohn@gnu.org>
1089 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
1090 * bb-reorder.c (copy_bb_p): Use it.
1091 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
1093 2005-10-05 Richard Henderson <rth@redhat.com>
1096 * toplev.c (process_options): Warn about unsupported combinations
1097 of unwind tables and omit-frame-pointer.
1098 * config/i386/i386.c (override_options): Similarly. Enable
1099 accumulate-outgoing-args if not explicitly disabled.
1101 2005-10-05 Steve Ellcey <sje@cup.hp.com>
1103 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
1104 Handle big endian vs. small endian.
1105 (vec_initv2sf): Handle big endian vs. small endian.
1106 (*vec_extractv2sf_1): Ditto.
1108 2005-10-05 Dale Johannesen <dalej@apple.com>
1110 * convert.c (convert_to_real): Don't convert
1111 (float)floor(double d) to floorf((float)d).
1113 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
1115 * config/arm/arm.md (insv): Use gen_int_mode in more places.
1117 2005-10-05 Andrew MacLeod <amacleod@redhat.com>
1119 PR tree-optimization/18587
1120 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
1121 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
1122 build_vuses): Change to VEC type.
1123 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
1124 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
1125 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
1126 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
1127 (get_name_decl): New. Return DECL_UID of base variable.
1128 (operand_build_cmp): New. qsort comparison routine.
1129 (operand_build_sort_virtual): New. Sort virtual build vector.
1130 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
1131 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
1132 (FINALIZE_BASE): Use get_name_decl.
1133 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
1134 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
1135 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
1136 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
1137 direct VEC_* manipulations.
1138 (build_ssa_operands): Call operand_build_sort_virtual.
1139 (copy_virtual_operand, create_ssa_artficial_load_stmt,
1140 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
1141 with direct VEC_* manipulations.
1142 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
1143 with direct VEC manipulations.
1145 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
1147 PR tree-optimization/21419
1148 PR tree-optimization/24146
1149 PR tree-optimization/24151
1151 * c-typeck.c (readonly_error): Handle USE being lv_asm.
1152 (build_asm_expr): Call it if outputs are read-only.
1153 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
1155 2005-10-05 Billy Biggs <billy.biggs@gmail.com>
1156 Paolo Bonzini <bonzini@gnu.org>
1160 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
1161 enable the instructions and not just the built-ins.
1162 * doc/invoke.texi (x86 Options): Likewise.
1164 2005-10-04 Geoffrey Keating <geoffk@apple.com>
1166 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
1168 * doc/invoke.texi (Option Summary): Correct spelling
1169 of -mmacosx-version-min.
1171 2005-10-04 Devang Patel <dpatel@apple.com>
1173 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
1176 2005-10-04 Steve Ellcey <sje@cup.hp.com>
1178 * tree-vect-transform.c (vect_create_epilog_for_reduction):
1179 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
1181 2005-10-04 Adrian Straetling <straetling@de.ibm.com>
1183 * config/s390/s390.md ("TDSI","DP"): New mode macros.
1184 ("TE","tg"): New mode attributes.
1185 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
1186 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
1187 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
1188 dword_mode and one for GPRmode.
1190 2005-10-04 Ian Lance Taylor <ian@airs.com>
1192 PR preprocessor/13726
1193 * c-ppoutput.c (cb_include): Add comments parameter, and print out
1194 any comments passed in.
1196 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1198 * tree.c (annotate_with_file_line): Fix typo.
1200 2005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1203 * builtins.c (fold_builtin_memcmp): When constructing the pointer
1204 type used to access data in the inlined length == 1 case, use
1205 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
1206 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1208 2005-10-04 Uros Bizjak <uros@kss-loka.si>
1210 * config/i386/i386.h (TARGET_FISTTP): Enable also for
1211 TARGET_SSE3 and only for TARGET_80387.
1212 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
1213 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
1214 Do not depend on TARGET_80387.
1216 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1218 * tree.c (last_annotated_node): Change type to location_t*.
1219 (annotate_with_file_line): Reflect the change of
1220 last_annotated_node type.
1222 2005-10-04 Richard Guenther <rguenther@suse.de>
1225 * c-decl.c (grokdeclarator): Don't write to fields
1228 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1231 * c-decl.c (finish_decl): Use set_user_assembler_name even for
1233 * varasm.c (make_decl_rtl): If a register variable does not
1234 have a set user assmbler name, error out.
1235 Decode the asmspec is now name+1 bypassing '*'.
1237 2005-10-04 Steven Bosscher <stevenb@suse.de>
1239 PR tree-optimization/23049
1240 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
1241 of a COND_EXPR is folded before calling fold on the whole rhs of a
1242 conditional assignment.
1243 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
1244 document that a COND_EXPR may appear there.
1246 2005-10-03 Diego Novillo <dnovillo@redhat.com>
1249 * tree-vrp.c (extract_range_from_assert): If the new numeric
1250 range created out of the assertion contradicts the existing
1251 numeric range of the ASSERT_EXPR variable, make the new range
1254 2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
1256 * config/sh/sh.c (sh_register_move_cost): Add case for moving
1257 from T_REGS to FP register class.
1259 2005-10-03 Richard Henderson <rth@redhat.com>
1262 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
1263 before creating a new one.
1265 2005-10-03 David Edelsohn <edelsohn@gnu.org>
1267 * config/rs6000/t-aix43 (LDFLAGS): New.
1268 * config/rs6000/t-aix52 (LDFLAGS): New.
1270 2005-10-03 Ian Lance Taylor <ian@airs.com>
1272 * gimplify.c (find_single_pointer_decl_1): New static function.
1273 (find_single_pointer_decl): New static function.
1274 (internal_get_tmp_var): For a formal variable, set restrict base
1275 information if appropriate.
1276 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
1278 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
1279 (DECL_GET_RESTRICT_BASE): Define.
1280 (SET_DECL_RESTRICT_BASE): Define.
1281 (decl_restrict_base_lookup): Declare.
1282 (decl_restrict_base_insert): Declare.
1283 (struct tree_decl_with_vis): Add based_on_restrict_p field.
1284 * tree.c (restrict_base_for_decl): New static variable.
1285 (init_ttree): Initialize restrict_base_for_decl.
1286 (copy_node_stat): Copy restrict base information.
1287 (decl_restrict_base_lookup): New function.
1288 (decl_restrict_base_insert): New function.
1289 (print_restrict_base_statistics): New static function.
1290 (dump_tree_statistics): Call print_restrict_base_statistics.
1292 2005-10-02 Diego Novillo <dnovillo@redhat.com>
1295 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
1296 case of anti-ranges.
1298 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
1301 * c-typeck.c (tagged_tu_seen): Rename to ...
1302 (tagged_tu_seen_cache): this and add val field.
1303 (comptypes): Move functional to comptypes_internal
1304 and free tagged_tu_seen.
1305 (comptypes_internal): New function and call comptypes_internal
1306 instead of comptypes. Speed up by sibcalling
1307 tagged_types_tu_compatible_p.
1308 (alloc_tagged_tu_seen): New function
1309 (free_all_tagged_tu_seen_up_to): New function.
1310 (tagged_types_tu_compatible_p): Return the val of the seen two
1312 Add that the two types are the same to tagged_tu_seen_base
1313 if they are and call comptypes_internal instead of comptypes.
1314 <case UNION_TYPE>: Speed up common type where the fields are
1316 (function_types_compatible_p): Call comptypes_internal instead of
1318 (type_lists_compatible_p): Likewise.
1319 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
1321 2005-10-02 Matthias Klose <doko@debian.org>
1323 * doc/invoke.texi: Fix typo and speling error.
1325 2005-10-01 Richard Henderson <rth@redhat.com>
1327 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
1329 2005-10-01 Mark Mitchell <mark@codesourcery.com>
1331 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
1332 using --start-group and --end-group.
1334 2005-10-01 Diego Novillo <dnovillo@redhat.com>
1336 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
1337 FIXME note regarding quirky semantics.
1339 2005-10-01 Diego Novillo <dnovillo@redhat.com>
1342 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
1343 non-null range as a last resort.
1345 2005-10-01 James A. Morrison <phython@gcc.gnu.org>
1346 Diego Novillo <dnovillo@redhat.com>
1349 * tree-vrp.c (extract_range_from_assert): For !=
1350 assertions, only build an anti-range if LIMIT is a
1351 single-valued range.
1353 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
1355 * arm.md (movqi): On thumb when optimizing, handle loading from
1356 memory by describing this as taking a subreg of a zero-extended load
1357 into an SImode register.
1360 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1362 * reload1.c (merge_assigned_reloads): Do not change any
1363 RELOAD_FOR_OUTPUT_ADDRESS reloads.
1365 2005-09-30 Geoffrey Keating <geoffk@apple.com>
1367 * Makefile.in (LIPO_FOR_TARGET): Define.
1368 (STRIP_FOR_TARGET): Define.
1370 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
1371 before creating new ones. Do symlinks before creating the actual
1374 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
1375 to work out which multilibs are actually being built.
1377 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
1379 * tree-vect-transform.c, config/ms1/ms1.md,
1380 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
1381 Follow spelling conventions.
1382 * doc/invoke.texi, doc/md.texi: Fix typos.
1384 2005-09-30 Andrew Macleod <amacleod@redat.com>
1386 PR tree-optimization/21430
1387 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
1388 use operands, and set stmt pointer if need be.
1389 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
1390 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
1393 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1396 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
1398 2005-09-29 Mark Mitchell <mark@codesourcery.com>
1400 * optabs.c (expand_binop): Initialize first_pass_p.
1402 2005-09-29 Jakub Jelinek <jakub@redhat.com>
1405 * c-decl.c (c_write_global_declarations_1): If any
1406 wrapup_global_declaration_2 call returned true, restart the loop.
1408 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
1410 Fix PR tree-optimization/24117
1411 * tree-ssa-structalias.c (find_func_aliases): Strip nops
1412 before considering whether to use anyoffset.
1414 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
1418 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
1420 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1422 (swap_commutative_operands_with_target): New.
1424 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
1427 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
1430 2005-09-29 Steven Bosscher <stevenb@suse.de>
1432 PR tree-optimization/23911
1433 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
1434 and IMAGPART_EXPR too.
1436 2005-09-28 Mark Mitchell <mark@codesourcery.com>
1439 * expmed.c (expand_shift): Move logic to reverse rotation
1440 direction when rotating by constants ...
1441 * optabs.c (expand_binop): ... here.
1442 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
1443 (ix86_rotrdi3): New pattern.
1444 (rotldi3): Handle 32-bit mode.
1445 (ix86_rotldi3): New pattern.
1447 2005-09-29 Alan Modra <amodra@bigpond.net.au>
1450 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
1451 check for numbers that need no bit twiddle.
1453 2005-09-28 Geoffrey Keating <geoffk@apple.com>
1455 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
1456 multilib to be built.
1458 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
1459 (stage1-start): Delete old libgcc and libunwind before moving
1460 anything into the stage directory.
1461 (stage2-start): Likewise.
1462 (stage3-start): Likewise.
1463 (stage4-start): Likewise.
1464 (stageprofile-start): Likewise.
1465 (stagefeedback-start): Likewise.
1466 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
1467 header in tm_file and CPU-specific t-darwin in tmake_file.
1468 (i[34567]86-*-darwin*): Don't change tm_file.
1469 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
1470 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
1471 shared library stub for target OS version.
1472 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
1473 (SHLIB_LINK): Don't make SHLIB_SOLINK.
1474 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
1475 (libgcc_s.%.dylib): New.
1477 (install-darwin-libgcc-stubs): New.
1478 (INSTALL_LIBGCC): New append.
1479 * config/i386/darwin-libgcc.10.4.ver: New.
1480 * config/i386/darwin-libgcc.10.5.ver: New.
1481 * config/i386/t-darwin: New.
1482 * config/rs6000/darwin-libgcc.10.4.ver: New.
1483 * config/rs6000/darwin-libgcc.10.5.ver: New.
1484 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
1485 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
1487 2005-09-28 Paul Brook <paul@codesourcery.com>
1489 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
1492 2005-09-28 Richard Guenther <rguenther@suse.de>
1494 PR tree-optimization/23853
1495 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
1496 host_integerp to verify misalignment value.
1498 2005-09-28 Richard Henderson <rth@redhat.com>
1500 * builtins.c (get_builtin_sync_mode): New.
1501 (expand_builtin_sync_operation): Pass in mode argument.
1502 (expand_builtin_compare_and_swap): Likewise.
1503 (expand_builtin_lock_test_and_set): Likewise.
1504 (expand_builtin_lock_release): Likewise.
1505 (expand_builtin): Update to match.
1507 2005-09-28 Nick Clifton <nickc@redhat.com>
1509 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
1510 formatting. Add check to PLUS case to ensure that the offset is
1511 within an acceptable range.
1513 * config/v850/v850.md (casesi): Disable the generation of the
1514 switch pattern as it is not being handled properly at the moment.
1516 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
1517 for when the high words are identical.
1519 2005-09-27 Richard Henderson <rth@redhat.com>
1521 * pretty-print.c (pp_base_format): Fix typo for %>.
1523 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
1524 Devang Patel <dpatel@apple.com>
1526 PR tree-optimization/23625
1527 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
1528 LABEL_EXPR, assertion check.
1530 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
1532 * optabs.c (no_conflict_move_test): Check if a result of a
1533 to-be-moved insn would be clobbered by an originally
1536 2005-09-27 Jeff Law <law@redhat.com>
1538 * passes.c (init_optimization_passes): Replace copy propagation
1539 passes immediately after DOM with phi-only copy propagation
1540 pases. Add phi-only copy propagation pass after first DOM pass.
1541 * tree-pass.h (pass_phi_only_copy_prop): Declare.
1542 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
1543 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
1544 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
1545 to init_copy_prop. Callers updated.
1546 (do_phi_only_copy_prop): New function.
1547 (pass_phi_only_copy_prop): New pass descriptor.
1549 2005-09-27 Nick Clifton <nickc@redhat.com>
1551 * libgcc2.c (__popcount_tab): Remove redundant prototype.
1553 2005-09-26 Jason Merrill <jason@redhat.com>
1556 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
1558 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
1560 2005-09-26 James E Wilson <wilson@specifix.com>
1562 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
1563 copyright. Add gcc copyright plus libgcc exception.
1564 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
1566 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
1568 2005-09-26 Jeff Law <law@redhat.com>
1570 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
1571 about when to iterate.
1573 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
1576 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
1577 for __complex__ double in -mcpu=G5 mode.
1579 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
1581 PR tree-optimization/23942
1582 * Makefile.in (SCEV_H): Depends on PARAMS_H.
1583 * tree-scalar-evolution.c: Include params.h.
1585 (follow_ssa_edge, follow_ssa_edge_in_rhs,
1586 follow_ssa_edge_in_condition_phi_branch,
1587 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
1588 Change return type to t_bool. Use a parameter to limit the size of
1589 trees that are walked before stopping
1590 (analyze_evolution_in_loop): Initialize the limit to 0.
1591 (follow_ssa_edge): Give up by returning t_dont_know if the limit
1592 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
1594 2005-09-26 Uros Bizjak <uros@kss-loka.si>
1597 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
1598 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
1600 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
1602 * combine.c (make_extraction): Check for valid use of subreg.
1604 2005-09-26 Uros Bizjak <uros@kss-loka.si>
1607 * config/i386/i386.md ("*fistdi2_1"): New pattern.
1608 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
1609 ("fist<mode>2_with_temp"): Use only register operands.
1611 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
1613 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
1614 CALL_INSN_FUNCTION_USAGE.
1616 2005-09-26 Richard Guenther <rguenther@suse.de>
1619 * gcse.c: Include hashtab.h, define ldst entry hashtable.
1620 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
1621 (ldst_entry): Use the hashtable instead of list-walking.
1622 (find_rtx_in_ldst): Likewise.
1623 (free_ldst_entry): Free the hashtable.
1624 (compute_ld_motion_mems): Create the hashtable.
1625 (trim_ld_motion_mems): Remove entry from hashtable if
1626 removing it from list.
1627 (compute_store_table): Likewise^2.
1628 (store_motion): Free hashtable in case we did not see
1631 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
1633 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
1634 and arg1 if we are passing them to fold_build2.
1636 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
1639 * config/i386/i386.c (ix86_function_regparm): Fix the test for
1642 2005-09-25 Richard Henderson <rth@redhat.com>
1644 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
1645 SYMBOL_REF_TLS_MODEL to be correct.
1647 2005-09-24 Richard Henderson <rth@redhat.com>
1649 * ipa-type-escape.c (discover_unique_type): Remove dead code at
1650 end of function. Reindent.
1652 2005-09-24 Ian Lance Taylor <ian@airs.com>
1654 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
1655 NEGATE_EXPR/BIT_NOT_EXPR case.
1657 2005-09-24 Richard Henderson <rth@redhat.com>
1659 * c-common.c (handle_mode_attribute): When not modifying in place,
1660 create subtypes for enumerations.
1661 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
1662 * gimplify.c (create_tmp_from_val): Likewise.
1664 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
1666 * config/i386/i386.md (*tls_global_dynamic_64,
1667 *tls_local_dynamic_base_64): Add missing mode to call.
1668 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
1670 2005-09-24 Jan Hubicka <jh@suse.cz>
1672 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
1673 (cgraph_clone_node): Likewise.
1674 * cgraph.h (cgraph_clone_edge): Update prototype.
1675 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
1676 duplicated prototypes; add updating argument.
1677 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
1678 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
1680 (cgraph_mark_inline_edge): Likewise.
1681 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
1682 (cgraph_flatten_node): Likewise.
1683 (cgraph_decide_recursive_inlining): Likewise.
1684 (cgraph_decide_inlining_of_small_function): Likewise.
1685 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1687 2005-09-23 David Edelsohn <edelsohn@gnu.org>
1688 Pete Steinmetz <steinmtz@us.ibm.com>
1690 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
1691 (rldic.): Set type to "compare".
1693 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
1694 mfjmpr for MFCTR/MFLR.
1695 (movdf_hardfloat64): Same.
1696 (movdf_softfloat64): Same. Correct order of store and move types.
1697 (movti_string): Set type to store_ux/load_ux.
1698 (load_multiple): Set type to load_ux.
1699 (store_multiple): Set type to store_ux.
1700 (movmemsi): Set type to store_ux.
1701 (output_cbranch direct_return): Set type to jmpreg.
1702 (stmw): Set type to store_ux.
1703 (lmw): Set type to load_ux.
1704 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
1705 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
1706 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
1707 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
1708 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
1709 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
1710 (rios1-fpstore): Increase latency to 3.
1711 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
1712 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
1714 2005-09-23 David Edelsohn <edelsohn@gnu.org>
1715 Andrew Pinski <pinskia@physics.uc.edu>
1717 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
1718 operand2 constraint to "b".
1719 (sync_<fetchop_name>di_internal): Same.
1720 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
1722 (sync_old_<fetchop_name>di_internal): Same.
1723 (sync_new_<fetchop_name>si_internal): Same.
1724 (sync_new_<fetchop_name>di_internal): Same.
1726 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
1729 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
1730 case, define as macros.
1732 PR rtl-optimization/23837
1733 * optabs.c (no_conflict_move_test): Don't set must_stay for a
1734 clobber / clobber match between dest and p->first.
1736 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
1737 (no_conflict_move_test): Update comments.
1739 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
1741 * doc/install.texi: Update URL for Jacks.
1742 * doc/sourcebuild.texi: Likewise.
1744 2005-09-22 David Edelsohn <edelsohn@gnu.org>
1747 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
1748 registers when choosing register preferences.
1749 (movdf_hardfloat64): Same.
1751 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
1753 * expmed.c (expand_shift): Don't use the target of the rotate as
1754 target for the first expanded shift insn.
1755 * testsuite/gcc.dg/20050922-1.c: Testcase added.
1757 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
1759 PR tree-optimization/22438
1760 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
1761 preserved iv rhs rewriting specially.
1763 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
1765 * tree-data-ref.c (analyze_array_indexes): Only estimate when
1766 estimate_only is true.
1767 * tree-flow.h (ref_contains_indirect_ref): New prototype.
1768 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
1769 tree-ssa-structalias.c
1770 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
1771 ref_contains_indirect_ref.
1772 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
1774 2005-09-21 DJ Delorie <dj@redhat.com>
1776 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
1778 (mn10300_return_in_memory): Support variable size types also.
1779 (mn10300_pass_by_reference): Likewise.
1780 (mn10300_function_value): New.
1781 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
1782 (FUNCTION_OUTGOING_VALUE): Likewise.
1783 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
1784 * doc/invoke.texi: Document it.
1786 2005-09-21 Uros Bizjak <uros@kss-loka.si>
1789 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
1790 force integer op1 into register for XFmode compares.
1792 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
1795 * expmed.c (alg_code): Add alg_impossible.
1796 (alg_hash_entry): Add cost.
1797 (synth_mult): Record alg_impossible in the hash table if
1798 multiplication by a given integer is impossble within the
1799 limit. Speed up using alg_impossible.
1801 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
1803 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
1804 argument. Allow and set any offset if needs_anyoffset is passed
1806 (get_constraint_for): Add argument here too.
1808 (do_structure_copy): Pass NULL to get_constraint_for.
1809 (handle_ptr_arith): Ditto.
1810 (find_func_aliases): Ditto.
1812 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
1814 PR rtl-optimization/23898
1815 * output.h (get_attr_min_length): Declare.
1816 * final.c (get_attr_length_1): New function, broken out of:
1818 (get_attr_min_length): New function.
1819 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
1820 (duplicate_computed_gotos): Likewise.
1821 * genattr.c (insn_min_length): Generate declaration.
1822 * genattrtab.c (min_fn, min_attr_value): New functions.
1823 (make_length_attrs): Generate insn_min_length.
1825 2005-09-20 Steve Ellcey <sje@cup.hp.com>
1827 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
1829 2005-09-20 Richard Henderson <rth@redhat.com>
1831 PR tree-optimization/24059
1832 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
1835 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
1837 * c.opt (fextended-identifiers): New.
1838 * c-opts.c (c_common_handle_option): Handle
1839 -fextended-identifiers.
1840 * doc/cpp.texi: Update documentation of extended identifiers.
1841 * doc/cppopts.texi (-fextended-identifiers): Document.
1843 2005-09-20 Jakub Jelinek <jakub@redhat.com>
1845 PR tree-optimization/23929
1846 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
1849 PR tree-optimization/23818
1850 * tree-stdarg.c (execute_optimize_stdarg): Call
1851 calculate_dominance_info.
1853 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
1855 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
1856 (analyze_siv_subscript_cst_affine): Add weak SIV test.
1857 (compute_overlap_steps_for_affine_1_2): Use
1858 get_number_of_iters_for_loop.
1859 (analyze_subscript_affine_affine): Check whether difference is
1861 Use get_number_of_iters_for_loop.
1862 Check whether overlap occurs outside of bounds.
1863 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
1865 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
1867 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
1868 base register if possible.
1870 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
1872 PR tree-optimization/18463
1873 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
1874 converting it directly is not possible.
1875 (chrec_convert_aggressive): New function.
1876 * tree-chrec.h (chrec_convert_aggressive): Declare.
1877 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
1878 Fold chrec conversions aggressively if asked to.
1879 (instantiate_parameters): Modified because of changes in
1880 instantiate_parameters_1.
1882 2005-09-19 Richard Henderson <rth@redhat.com>
1884 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
1885 (reduc_splus_v2df): New.
1887 2005-09-19 Richard Sandiford <richard@codesourcery.com>
1889 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
1890 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
1892 2005-09-19 Richard Henderson <rth@redhat.com>
1894 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
1897 2005-09-19 Richard Henderson <rth@redhat.com>
1899 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
1900 (ia64_expand_dot_prod_v8qi): New.
1901 * config/ia64/ia64-protos.h: Update.
1902 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
1903 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
1904 sdot_prodv8qi, sdot_prodv4hi): New.
1905 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
1907 2005-09-19 Richard Henderson <rth@redhat.com>
1910 * real.c (exact_real_truncate): Return false if the format cannot
1911 represent the number as a normal.
1913 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
1914 for a memory source.
1916 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
1918 * tree-ssa-operands.c (swap_tree_operands): Export.
1919 * tree.h (swap_tree_operands): Declare.
1920 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
1921 Call swap_tree_operands.
1923 2005-09-19 Richard Henderson <rth@redhat.com>
1925 * tree-flow.h (merge_alias_info): Declare.
1926 * tree-ssa-copy.c (merge_alias_info): Export.
1927 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
1928 (vect_create_data_ref_ptr): Use create_iv directly.
1929 (vectorizable_load): Use correct types for integer constants.
1930 (vect_generate_tmps_on_preheader): Likewise.
1931 (vect_gen_niters_for_prolog_loop): Likewise.
1933 2005-09-19 Steven Bosscher <stevenb@suse.de>
1935 PR rtl-optimization/23943
1936 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
1938 2005-09-18 Jan Hubicka <jh@suse.cz>
1940 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
1942 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
1944 * varasm.c (output_constant): Do not abort on conversions to union
1945 types between different sizes.
1947 2005-09-18 Richard Guenther <rguenther@suse.de>
1950 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
1953 2005-09-18 Paul Brook <paul@codesourcery.com>
1955 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
1957 2005-09-17 Richard Henderson <rth@redhat.com>
1959 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
1960 * tree-ssa-loop.c (pass_vect_dce): Remove.
1961 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
1964 2005-09-17 Richard Henderson <rth@redhat.com>
1966 * tree-pass.h (pass_vect_dce): Declare.
1967 * passes.c (init_optimization_passes): Add it.
1968 * tree-flow.h (tree_ssa_dce): Declare.
1969 * tree-ssa-dce.c (tree_ssa_dce): Export.
1970 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
1971 (gate_tree_vectorize): ... here.
1972 (pass_vect_dce): New.
1974 2005-09-17 Jan Hubicka <jh@suse.cz>
1976 * except.c (struct eh_status): Turn region_array into vec.
1977 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
1978 convert_from_eh_region_ranges, find_exception_handler_labels,
1979 current_function_has_exception_handlers, assign_filter_values,
1980 build_post_landing_pads, dw2_build_landing_pads,
1981 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
1982 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
1983 foreach_reachable_handler, can_throw_internal_1,
1984 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
1986 (duplicate_eh_region_1): Update region_array.
1987 (duplicate_eh_regions): Resize region_array and avoid recomputing.
1989 2005-09-17 David Edelsohn <edelsohn@gnu.org>
1992 * expmed.c (expand_mult): Substitute simple register for op0 when
1995 2005-09-17 Richard Henderson <rth@redhat.com>
1997 * expr.c (emit_move_via_integer): Add force argument, pass it on
1998 to emit_move_change_mode. Update callers.
1999 (emit_move_complex): Pass true to new force argument.
2000 * function.c (expand_function_end): Move expand_eh_return call
2001 earlier. Merge sub-word complex values into a pseudo before
2002 copying to the return hard register.
2004 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
2006 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
2007 between different sizes.
2009 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
2013 * passes.c (init_optimization_passes): Register dump files for
2016 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
2018 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
2019 * config/s390/s390.c (s390_overlap_p): New function.
2020 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
2021 peephole2, "*xc" peephole2): Added overlap check to the peephole2
2024 2005-09-16 Richard Guenther <rguenther@suse.de>
2026 * ipa-pure-const.c (static_execute): Free auxiliar information.
2027 * ipa-type-escape.c (discover_unique_type): Free temporary key.
2028 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
2030 2005-09-15 DJ Delorie <dj@redhat.com>
2032 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
2034 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
2036 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2038 (swap_commutative_operands_with_target): New.
2040 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
2042 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
2045 (estimate_iters_using_array): New function.
2046 * tree-data-ref.h (estimate_iters_using_array): Prototype
2047 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2048 Use estimate_iters_using_array instead of analyze_array.
2050 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
2052 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
2055 2005-09-15 Michael Matz <matz@suse.de>
2057 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
2059 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
2061 PR tree-optimization/23835
2062 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
2063 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
2065 2005-09-14 Richard Henderson <rth@redhat.com>
2067 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
2068 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
2070 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
2072 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
2073 in the ARRAY_TYPE case.
2075 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
2077 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
2079 2005-09-14 Uros Bizjak <uros@kss-loka.si>
2082 * tree-vect-transform.c (vectorizable_operation): Return false for
2083 scalar shift operations and for vector shift operations with
2084 non-invariant shift arguments. Use scalar tree operand op1 as
2085 a shift operand when vector shift insn pattern uses scalar shift
2087 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
2089 2005-09-14 Olivier Hainque <hainque@adacore.com>
2091 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
2092 value if it has side-effects.
2094 2005-09-14 David Edelsohn <edelsohn@gnu.org>
2097 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
2099 2005-09-14 Alan Modra <amodra@bigpond.net.au>
2101 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
2102 passed as NAME as if it were label at start of function code.
2104 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
2106 * config/sh/sh.md (*movv4sf_i): Add general register cases to
2109 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
2111 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
2112 as early clobber. Rewrite so the PIC register is not implicitly used.
2114 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2116 * tree.c (annotate_with_file_line): Compare line numbers before
2119 2005-09-13 Uros Bizjak <uros@kss-loka.si>
2122 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
2123 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
2125 2005-09-13 Ian Lance Taylor <ian@airs.com>
2127 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
2128 than a HOST_WIDEST_INT to gen_doloop_begin.
2130 2005-09-13 Diego Novillo <dnovillo@redhat.com>
2132 * tree-dfa.c (dump_variable): Guard against NULL annotations.
2134 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
2136 PR tree-optimize/23817
2137 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
2139 2005-09-13 Alan Modra <amodra@bigpond.net.au>
2142 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
2143 word before changing the stack pointer. Use gen_frame_mem for MEMs.
2144 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
2145 (restore_stack_nonlocal): Likewise.
2146 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
2148 2005-09-12 Ian Lance Taylor <ian@airs.com>
2151 * c.opt (ffriend-injection): New C++ option.
2152 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
2153 (C++ Dialect Options): Document -ffriend-injection.
2155 2005-09-12 Josh Conner <jconner@apple.com>
2158 * ipa-reference.c (static_execute): Don't mark variables in
2159 named sections TREE_READONLY.
2161 2005-09-12 Alan Modra <amodra@bigpond.net.au>
2163 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
2166 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
2168 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
2169 V_MUST_DEF instead of just the first_use_p.
2170 Don't mark the virtual variables for renaming on the statement which
2172 (pass_dse): Remove TODO_update_ssa.
2174 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
2177 * stor-layout.c (compute_record_mode): For records with a single
2178 field, actually check the field's mode size against the type size.
2180 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
2181 registers for TARGET_SHMEDIA.
2182 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
2183 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
2184 of GENERAL_REGS and FP_REGS.
2186 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
2188 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
2190 2005-09-12 Alan Modra <amodra@bigpond.net.au>
2192 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
2193 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
2194 are omitted. Exclude stack_tie insn too.
2196 2005-09-11 David Edelsohn <edelsohn@gnu.org>
2198 PR rtl-optimization/23098
2199 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
2201 * config/rs6000/rs6000.md (movdf splitter): Use
2202 const_double_operand predicate for TARGET_POWERPC64.
2203 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
2204 SYMBOL_REF method to ABI_V4.
2206 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
2207 replace_equiv_address.
2208 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
2209 rs6000_sr_alias_set and MEM_NOTRAP.
2210 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
2212 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
2214 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
2215 handle CALL_EXPR again.
2217 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
2219 * arm/predicates.md (alignable_memory_operand): Delete.
2221 2005-09-10 Richard Henderson <rth@redhat.com>
2224 * dbxout.c (dbxout_expand_expr): New.
2225 (dbxout_symbol): Use it.
2227 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
2229 * arm.c (arm_gen_rotated_half_load): Delete.
2230 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
2231 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
2232 (thumb_set_return_address): Likewise.
2233 (thumb_load_double_from_address): Use adjust_address.
2234 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
2235 (extendhsisi2_mem, movhi_bytes): Use change_address.
2236 (movhi): Use widen_memory_access.
2237 (reload_out_df): Use replace_equiv_address.
2238 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
2240 2005-09-09 Richard Henderson <rth@redhat.com>
2243 * dbxout.c: Include expr.h.
2244 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
2245 (dbxout_symbol): Handle DECL_VALUE_EXPR.
2246 * Makefile.in (dbxout.o): Add EXPR_H.
2248 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
2250 PR tree-optimization/23509
2251 * tree-cfg.c (replace_uses_by): Use replace_exp.
2252 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
2253 pointers have name_mem_tag or type_mem_tag set.
2255 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
2257 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
2258 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
2259 of wrongly accessing operands.
2261 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
2263 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
2264 * tree-chrec.c: Include tree-scalar-evolution.h.
2265 (chrec_convert): Instantiate the base and step before calling
2266 scev_probably_wraps_p that would fail on parametric evolutions.
2267 Collect all the fails into a single section failed_to_convert,
2268 print a diagnostic, and return chrec_dont_know instead of calling
2270 * tree-scalar-evolution.c (loop_closed_phi_def): New.
2271 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
2273 (scev_const_prop): Don't replace the definition of a loop closed ssa
2274 phi node by itself, or by another loop closed ssa phi node.
2275 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
2276 that base and step are defined.
2278 2005-09-09 Richard Guenther <rguenther@suse.de>
2281 * fold-const.c (fold_ternary): Check truth_value_p before
2282 calling invert_truthvalue.
2284 2005-09-09 Nick Clifton <nickc@redhat.com>
2286 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
2287 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
2288 dimension of these arrays.
2289 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
2291 * longlong.h: Only provide a prototype for the __clz_tab[] array
2292 if this header has not been included from libgcc2.h.
2293 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
2295 Provide prototypes for exported functions.
2296 Use the __clz_tab[] and __popcount_tab[] arrays provided by
2299 2005-09-08 Josh Conner <jconner@apple.com>
2303 * expr.c (expand_expr_addr_expr_1): Don't invoke
2304 expand_simple_binop for EXPAND_INITIALIZER.
2306 2005-09-08 Richard Henderson <rth@redhat.com>
2309 * toplev.c (wrapup_global_declaration_1): Split out ...
2310 (wrapup_global_declaration_2): ... from ...
2311 (wrapup_global_declarations): ... here. Return bool.
2312 (check_global_declaration_1): Split out ...
2313 (check_global_declarations): from here.
2314 (emit_debug_global_declarations): New.
2315 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
2316 check_global_declaration_1, emit_debug_global_declarations): Declare.
2317 * c-decl.c (c_write_global_declarations_1): Don't create a vector
2318 of decls. Call wrapup_global_declaration_1,
2319 wrapup_global_declaration_2, check_global_declaration_1 directly.
2320 (c_write_global_declarations_2): New.
2322 (c_write_global_declarations): Call c_write_global_declarations_2.
2323 * langhooks.c (write_global_declarations): Call
2324 emit_debug_global_declarations.
2326 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
2327 remove decls that have DECL_RTL_SET_P.
2328 * passes.c (rest_of_decl_compilation): Invoke
2329 cgraph_varpool_finalize_decl for all but functions.
2331 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
2333 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
2334 the result of a conversion if the new min and max cannot be compared.
2336 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
2338 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
2339 (override_options): Setting s390_sr_alias_set removed.
2340 (save_fpr, save_gprs): Set alias set to vararg or frame.
2341 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
2342 s390_sr_alias_set with get_frame_alias_set ().
2343 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
2344 get_varargs_alias_set ().
2346 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2350 * c-parser.c (c_parser_objc_method_definition): If the next
2351 token is not "{", error out and don't start the function.
2353 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2355 * tree-vrp.c (extract_range_from_expr): Move the check for non
2356 nullness after the check for gimple invariant.
2358 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2360 * tree.c (host_integerp, tree_low_cst): Correct function comment.
2362 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2365 * config/m32r.md (movmemsi_internal): Canonicalize order of
2366 operands in PLUS component of template.
2368 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
2370 * reload1.c (fixup_eh_region_note): Remove assertion.
2371 (fixup_abnormal_edges): Reverted removal of call to
2372 find_many_sub_basic_blocks made on 2005-08-31.
2374 2005-09-07 Richard Henderson <rth@redhat.com>
2376 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
2377 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
2378 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
2379 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
2380 rearrange for better packing.
2381 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
2382 (lookup_cfa_1): Remove inline marker.
2383 (cfa_equal_p): Split out of ...
2384 (def_cfa_1): ... here. Use INVALID_REGNUM.
2385 (build_cfa_loc): Handle !cfa->indirect.
2386 (frame_pointer_cfa_offset): New.
2387 (dbx_reg_number): Assert register elimination performed; do
2388 leaf register remapping.
2389 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
2390 (eliminate_reg_to_offset): New.
2391 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
2392 for verifiably local stack frame addresses; re-base to CFA.
2393 (mem_loc_descriptor): Remove can_use_fbreg argument.
2394 (concat_loc_descriptor, loc_descriptor): Likewise.
2395 (containing_function_has_frame_base): Remove.
2396 (rtl_for_decl_location): Don't do register elimination or
2397 leaf register remapping here.
2398 (secname_for_decl): Split out from ..
2399 (add_location_or_const_value_attribute): ... here.
2400 (convert_cfa_to_loc_list): New.
2401 (compute_frame_pointer_to_cfa_displacement): New.
2402 (gen_subprogram_die): Use them.
2403 * tree.h (frame_base_decl): Remove.
2404 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
2405 (prologue_stack_adjust): Remove.
2406 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
2407 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
2408 (set_frame_base_location): Remove.
2409 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
2410 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
2411 (vt_add_function_parameters): Don't eliminate_regs.
2412 (vt_initialize): Don't create frame_base_decl.
2414 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2416 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
2417 version of GNU binutils for 4.x and later.
2419 2005-09-06 Mark Mitchell <mark@codesourcery.com>
2421 * ggc-page.c (ggc_push_context): Remove.
2422 (ggc_pop_context): Likewise.
2423 * ggc.h (ggc_push_context): Remove.
2424 (ggc_pop_context): Likewise.
2426 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
2429 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
2430 returning from an interrupt handler.
2432 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
2435 * config/arc/arc.c (output_shift): Add check for loop count when
2438 2005-09-06 Steven Bosscher <stevenb@suse.de>
2440 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
2442 (abs_replacement): Likewise.
2443 (pass_phiopt): Remove TODO_update_ssa.
2445 2005-09-06 Jakub Jelinek <jakub@redhat.com>
2448 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
2449 if "return with no value, in function returning non-void" warning
2451 * tree-cfg.c (execute_warn_function_return): Don't look at
2452 RETURN_EXPRs with TREE_NO_WARNING set.
2455 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
2456 for internal functions doesn't use registers used by global registers
2457 variables. Use fewer register parameters if there are global register
2460 2005-09-06 Olivier Hainque <hainque@adacore.com>
2461 Eric Botcazou <ebotcazou@adacore.com>
2464 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
2465 when we would be extracting outside its bit span (bitpos+bitsize
2466 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
2467 Ada unchecked conversions.
2469 2005-09-06 Steven Bosscher <stevenb@suse.de>
2471 * tree-ssa-pre.c (try_look_through_load): New function.
2472 (compute_avail): Use it to try to look through loads for some
2473 more useful expressions.
2475 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
2477 * simplify-rtx.c (simplify_binary_operation_1): Correct the
2478 condition for detecting cases like (a&a) and (a^a).
2480 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
2482 * common.opt: Add option ftree-vect-loop-version.
2483 * params.def: Add --param vect-max-version-checks.
2484 * doc/invoke.texi: Document ftree-vect-loop-version and
2485 --param vect-max-version-checks.
2486 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
2487 may_misalign_stmts and defines for accessors.
2488 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
2489 LOOP_VINFO_MAY_MISALIGN_STMTS.
2490 (destroy_loop_vec_info): VEC_free for
2491 LOOP_VINFO_MAY_MISALIGN_STMTS.
2492 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
2493 Update documentation.
2494 (vect_update_misalignment_for_peel): New.
2495 (vect_enhance_data_refs_alignment): Update to choose loop
2496 peeling or loop versioning if appropriate for the (potentially)
2497 unaligned data references in the loop.
2498 (vect_analyze_data_refs_alignment): Remove call to
2499 vect_enhance_data_refs_alignment so the checks can be done
2501 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
2502 and move up call to vect_analyze_data_refs_alignment.
2503 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
2504 (vect_transform_loop): Add call to loop_version.
2506 2005-09-06 Jakub Jelinek <jakub@redhat.com>
2508 PR rtl-optimization/23098
2509 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
2510 * simplify-rtx.c (constant_pool_reference_p): New function.
2511 * rtl.h (constant_pool_reference_p): New prototype.
2512 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
2513 constant_pool_reference_p in condition and
2514 avoid_constant_pool_reference in preparation statements.
2516 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
2518 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
2519 STRICT_LOW_PART SETs.
2521 2005-09-06 Alan Modra <amodra@bigpond.net.au>
2524 * except.c (sjlj_emit_function_enter): Find the function begin
2525 note even when it's not in first basic block.
2527 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
2529 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
2530 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
2531 * aclocal.m4: Regenerate.
2533 2005-09-05 DJ Delorie <dj@redhat.com>
2535 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
2538 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
2540 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
2541 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
2542 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
2543 Follow spelling conventions.
2544 * doc/invoke.texi: Follow spelling conventions.
2546 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
2548 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
2549 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
2550 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
2552 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
2555 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
2556 (output_stack_adjust): Use gen_tmp_stack_mem.
2557 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
2558 (sh_set_return_address, sh_allocate_initial_value): Likewise.
2559 (sh_get_pr_initial_val): Likewise.
2560 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
2561 (sh_initialize_trampoline): Likewise. Also use adjust_address.
2562 * sh.md (divsi_inv_m0): Use gen_const_mem.
2563 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
2564 (movdf_i4+1): Use gen_tmp_stack_mem.
2565 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
2566 (fpu_switch+2): Likewise.
2567 (movv4sf_i, movv16sf_i): Use adjust_address.
2568 (symGOT_load): Set MEM_NOTRAP_P bit.
2570 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2573 * pa.c (emit_move_sequence): Fix typo in last change.
2575 2005-09-03 Jakub Jelinek <jakub@redhat.com>
2577 PR rtl-optimization/23454
2578 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
2581 2005-09-03 Richard Henderson <rth@redhat.com>
2582 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2585 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
2588 2005-09-02 Nicolas Pitre <nico@cam.org>
2590 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
2591 to bit_count to 32 bits.
2593 2005-08-31 Mark Mitchell <mark@codesourcery.com>
2596 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
2597 generating synthetic loads from volatile lvalues.
2599 005-09-02 Nick Clifton <nickc@redhat.com>
2601 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
2602 __ctzhi2, __clzhi2): New functions.
2604 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
2607 * tree-nested.c (struct var_map_elt): Mark with GTY.
2608 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
2610 (lookup_field_for_decl): Allocate new element in GC memory.
2611 (lookup_tramp_for_decl): Likewise.
2612 (convert_nl_goto_reference): Likewise
2613 (create_nesting_tree): Allocate info in GC memory. Likewise for
2615 (free_nesting_tree): Free with ggc_free instead of free.
2616 (root): New static variable.
2617 (lower_nested_functions): Remove root as local variable. And zero out
2618 root at the end of the function.
2620 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
2622 PR rtl-optimization/20365
2623 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
2624 to short. New member ix.
2625 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
2626 (simplify_plus_minus): Initialize ix members before calling qsort.
2628 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
2630 PR tree-optimization/23626
2631 * tree-cfg.c (replace_uses_by): Clean up eh info.
2633 2005-09-01 DJ Delorie <dj@redhat.com>
2635 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
2638 2005-09-01 David Edelsohn <edelsohn@gnu.org>
2640 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
2641 (rs6000_split_multireg_move): Use replace_equiv_address instead of
2644 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
2646 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
2647 do not issue warning for a variable definition following
2650 2005-09-01 Richard Henderson <rth@redhat.com>
2653 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
2654 conversion to CONST_VECTOR.
2656 2005-09-01 Richard Henderson <rth@redhat.com>
2659 * reload1.c (reload_as_needed): Check !CALL_P before calling
2660 fixup_eh_region_note.
2661 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
2663 2005-09-01 DJ Delorie <dj@redhat.com>
2665 * varasm.c (output_constant): Let the target resolve
2666 conversions of addresses to non-default pointer sizes.
2668 2005-09-01 Nicolas Pitre <nico@cam.org>
2670 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
2671 to alow matching ARM pre-indexed addressing mode.
2672 (arm_override_options): Remove now irrelevant comment.
2674 2005-09-01 Phil Edwards <phil@codesourcery.com>
2676 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
2677 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
2678 * config/i386/vxworks.h: Likewise.
2679 * config/i386/t-vxworksae: New file, for VxWorks AE.
2680 * config/i386/vxworksae.h: Likewise.
2682 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
2684 PR tree-optimization/23410
2685 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
2686 sequence is not wrapping during the first step.
2688 2005-09-01 Jakub Jelinek <jakub@redhat.com>
2691 * dwarf2out.c (base_type_die): Compare char_type_node with
2692 TYPE_MAIN_VARIANT (type), not type.
2694 2005-09-01 Richard Guenther <rguenther@suse.de>
2696 PR tree-optimization/15366
2697 * common.opt: Add -finline-functions-called-once.
2698 Put -fearly-inlining in alphabetically ordered place.
2699 * doc/invoke.texi: Document new option.
2700 * ipa-inline.c (cgraph_decide_inlining): Honour
2701 flag_inline_functions_called_once.
2703 2005-09-01 Jakub Jelinek <jakub@redhat.com>
2705 PR rtl-optimization/23478
2706 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
2707 (alloc_qty): Initialize it.
2708 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
2709 (combine_regs): Combine also n_throwing_calls_crossed fields.
2710 (find_free_reg): Don't attempt to caller-save pseudos crossing
2711 calls that might throw.
2712 * global.c (struct allocno): Add throwing_calls_crossed field.
2713 (global_alloc): Revert 2005-08-22 change. Initialize
2714 throwing_calls_crossed.
2715 (find_reg): Don't attempt to caller-save pseudos crossing calls that
2718 2005-09-01 Alan Modra <amodra@bigpond.net.au>
2721 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
2722 (mask64_operand): Reinstate code prior to 2005-06-11 change.
2723 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
2724 (and64_2_operand): Tweak to use predicate.
2725 (and_operand): Adjust for mask_operand changes.
2726 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
2727 (print_operand): Likewise.
2728 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
2729 (mask64_1or2_operand): Delete.
2730 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
2731 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
2732 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
2733 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
2734 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
2735 (rotldi3_internal4): Likewise.
2736 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
2737 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
2738 (ashldi3_internal7): Likewise.
2739 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
2740 (ashldi3_internal, ashldi3_internal9 split): Likewise.
2741 (anddi3 split): Don't match mask64_operand.
2742 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
2743 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
2744 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
2745 't' splitter predicate.
2746 (movdi_internal64 + 2): Revert 2005-06-11 change.
2748 2005-08-31 DJ Delorie <dj@redhat.com>
2750 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
2751 (m32c_asm_integer): Add support for 32 bit pointers.
2753 2005-08-31 Richard Henderson <rth@redhat.com>
2755 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
2756 component-like references for setting MEM_NOTRAP_P.
2758 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
2759 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
2761 2005-08-31 Richard Henderson <rth@redhat.com>
2763 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
2764 into a pseudo before applying gen_lowpart.
2766 2005-08-31 Geoffrey Keating <geoffk@apple.com>
2768 * doc/install.texi (Specific): Update cctools version required
2769 for full functionality.
2770 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
2771 linkers as -macosx_version_min.
2773 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
2776 * sh.c (print_operand, %R and %S): Add handling of floating point
2777 registers, memory, constants and invalid operands.
2779 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
2781 * ipa-pure-const.c: Change dump name.
2783 2005-08-31 Uros Bizjak <uros@kss-loka.si>
2786 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
2787 to "reg_or_0_operand".
2788 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
2790 2005-08-31 Dale Johannesen <dalej@apple.com>
2792 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
2793 loops that count down.
2795 2005-08-31 Richard Henderson <rth@redhat.com>
2798 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
2799 (fixup_eh_region_note): New.
2800 (reload_as_needed): Call it.
2801 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
2802 don't call find_many_sub_basic_blocks; call verify_flow_info.
2803 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
2804 (keep_stack_depressed): Likewise.
2805 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
2807 2005-08-31 Richard Henderson <rth@redhat.com>
2809 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
2812 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
2814 * expr.c (expand_expr_real_1): Compare size of address
2815 mode to target's address mode size in deciding expansion of
2816 the constant address.
2818 2005-08-31 Richard Guenther <rguenther@suse.de>
2821 * expr.c (all_zeros_p): New function.
2822 (expand_expr_real_1): Handle the case of an all-zero
2823 non-addressable constructor separately.
2825 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
2827 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
2828 arguments, adjust all callers.
2829 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
2831 2005-08-30 Richard Henderson <rth@redhat.com>
2834 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
2835 whenever the mode sizes match.
2837 2005-08-31 Alan Modra <amodra@bigpond.net.au>
2839 * calls.c (load_register_parameters): Fix comment typo.
2840 * expr.c (emit_push_insn): Comment formatting.
2842 2005-08-30 Ian Lance Taylor <ian@airs.com>
2844 * config/i386/x-cygwin (host-cygwin): Change dependency from
2845 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
2847 2005-08-29 Geoffrey Keating <geoffk@apple.com>
2849 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
2852 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
2855 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
2856 call to ggc_collect.
2858 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
2861 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
2862 beginning. Remove $(INCLUDES) from all the rules, if following
2863 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
2865 2005-08-29 Jakub Jelinek <jakub@redhat.com>
2868 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
2869 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
2870 not constant, but maxlen is, don't set len to maxlen, rather
2871 set maxlen to len if len is a constant.
2873 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
2875 PR tree-optimization/23475
2876 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
2879 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
2881 Fix PR middle-end/22455
2883 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
2884 Checksum only the parts of the tree that exist for the tree code.
2886 2005-08-28 Dale Johannesen <dalej@apple.com>
2888 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
2890 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
2892 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
2894 2005-08-28 Richard Henderson <rth@redhat.com>
2896 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
2897 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
2900 2005-08-28 Jakub Jelinek <jakub@redhat.com>
2903 * builtins.c (get_memory_rtx): Don't strip nops
2904 in between COMPONENT_REFs.
2906 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
2909 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
2911 (gimplify_modify_expr): Check for zero sized types and gimplify the
2912 rhs and lhs as statements.
2914 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
2917 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
2918 state for return address column of signal frames.
2920 2005-08-27 David Edelsohn <edelsohn@gnu.org>
2923 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
2924 bytes >= 2 not bytes == 2.
2925 (expand_block_move): Same.
2927 2005-08-27 Richard Guenther <rguenther@suse.de>
2930 * config/i386/sse.md (sse2_movsd): Add missing closing
2933 2005-08-27 Paul Brook <paul@codesourcery.com>
2935 * genrecog.c (enum decision_type): Add DT_num_insns.
2936 (struct decision_test): Add u.num_insns.
2937 (add_to_sequence): Add DT_num_insns test.
2938 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
2939 (write_cond, debug_decision_2): Ditto.
2940 (change_state): Assume peep2_next_insn never fails.
2941 Remove "afterward" argument.
2942 (write afterward, write_tree): Update to match.
2943 * recog.c (peep2_current_count): New variable.
2944 (peep2_next_insn): Check it.
2945 (peephole2_optimize): Set peep2_current_count.
2946 * recog.h (peep2_current_count): Declare.
2948 2005-08-26 Josh Conner <jconner@apple.com>
2951 * ipa-pure-const.c (check_tree): Check for volatile-ness
2952 when considering a dereference.
2954 2005-08-27 Jakub Jelinek <jakub@redhat.com>
2956 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
2958 2005-08-26 Jakub Jelinek <jakub@redhat.com>
2960 PR rtl-optimization/23561
2961 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
2962 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
2963 at most LEN bytes long memory fits into the field.
2964 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
2965 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
2966 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
2968 2005-08-26 Richard Henderson <rth@redhat.com>
2971 * loop.c (biased_biv_may_wrap_p): New.
2972 (maybe_eliminate_biv_1): Use it to suppress non-equality
2973 comparison transformations. Delete disabled code.
2975 2005-08-26 Ian Lance Taylor <ian@airs.com>
2977 * combine.c (make_extraction): Avoid reference outside object.
2979 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
2981 * stor-layout.c (finalize_type_size): Restore behaviour for
2982 non-aggregate types to the status quo ante of the patch for
2983 pr 23467. Document why it matters.
2985 2005-08-26 Jakub Jelinek <jakub@redhat.com>
2988 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
2989 array by one element, initialize the BT_LAST element with NULL.
2991 2005-08-26 David Edelsohn <edelsohn@gnu.org>
2993 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
2994 optimizing for size.
2996 (compare_plus_eqsi): Same.
2997 (plus_eqsi_compare): Same.
2998 (neg_eq0<mode>): Same.
2999 (neg_eq<mode>): Same.
3001 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
3004 2005-08-26 Nick Clifton <nickc@redhat.com>
3006 * config/v850/v850.c (ep_memory_operand): Return FALSE if
3007 TARGET_EP is not defined.
3008 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
3009 TARGET_EP is enabled.
3010 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
3011 * config/v850/v850.md (save_all_interrupt): Only use the EP
3012 register if TARGET_EP is defined.
3013 (restore_all_interrupt): Likewise.
3014 * config/v850/lib1funcs.asm: Update functions so that the EP
3015 register is only used if __EP__ is defined.
3017 2005-08-26 David Ung <davidu@mips.com>
3019 * config/mips/mips.c (mips_expand_prologue): Handle case when
3020 generating for MIPS16 and the outgoing argument area is more than
3021 SMALL_OPERAND. Use the frame pointer as temporary to generate the
3024 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
3026 * config/crx/crx.md: Make doloop_end pattern usage controllable
3027 via mloop-nesting=<max-nesting> command line switch. Make sure
3028 the combiner cannot use doloop_end_<mode> in an illegal way.
3029 * config/crx/crx.c: Use regs up to r6 for argument passing.
3030 Refine crx_address_cost (non cst4 displacements are expensive).
3031 * config/crx/crx.opt: Add switch for mloop-nesting=.
3033 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
3035 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
3036 (UNSPEC_MVST): New constant.
3038 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
3040 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
3041 Reject operands containing eliminable registers.
3042 * testsuite/gcc.dg/20050825-1.c: New testcase.
3044 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
3045 Jan Hubicka <jh@suse.cz>
3047 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
3049 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
3051 PR tree-optimization/23546
3052 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
3055 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
3057 * params.def (PARAM_MIN_SPEC_PROB): New.
3058 * sched-rgn.c (MIN_PROBABILITY): Delete.
3059 (compute_trg_info): Convert to PARAM_VALUE.
3060 * doc/invoke.texi (param): Document min-spec-prob.
3062 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
3064 * config/darwin.h: define __PIC__
3065 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
3066 TARGET_OS_CPP_BUILTINS macro.
3068 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
3070 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
3073 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
3075 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
3077 * cfghooks.c (duplicate_block): Added position where to place
3078 new block as argument.
3079 * cfghooks.h (duplicate_block): Declaration changed.
3080 * cfglayout.c (copy_bbs): Add argument after. Pass it to
3082 * cfglayout.h (copy_bbs): Declaration changed.
3083 * cfgloop.h (loop_version): Declaration changed.
3084 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
3085 position to copy_bbs.
3086 (loop_version): Pass position to duplicate_loop_to_header_edge.
3087 Add place_after argument and position new blocks according to
3089 * modulo-sched.c (sms_schedule): Pass place_after argument
3091 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
3092 * tree-cfg.c (split_edge_bb_loc): New function.
3093 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
3094 to determine position of new blocks.
3095 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
3097 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
3098 argument to duplicate_block.
3099 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3100 Pass position to copy_bbs.
3102 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
3104 * fold-const.c (ptr_difference_const): Use
3105 cst_and_fits_in_hwi instead of host_integerp.
3107 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
3109 * config/darwin.c (gen_pic_offset): New.
3110 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
3113 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
3115 PR tree-optimization/23486
3116 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
3118 2005-08-23 Phil Edwards <phil@codesourcery.com>
3120 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
3121 remove use_collect2.
3122 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
3124 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
3125 configuration files to override the default value.
3127 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
3128 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
3129 * config/vx-common.h: New file, split out from...
3130 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
3131 * config/vxworksae.h: New file, for VxWorks AE.
3132 * config/vxworks.opt: New file.
3133 * config/vxlib.c: Update for VxWorks 6.
3135 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
3136 other MULTILIB_* variables appropriately.
3137 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
3138 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
3139 * config/rs6000/vxworks.h: Update for VxWorks 6.
3140 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
3142 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
3145 * config/darwin.c (machopic_select_section): Remove the hack to
3146 mark "::operator new" and "::operator delete" for coalescing
3147 even though they are not weak.
3149 2005-08-24 Alan Modra <amodra@bigpond.net.au>
3151 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
3152 * configure: Regenerate.
3154 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
3157 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
3159 * convert.c (convert_to_integer, convert_to_vector): Likewise.
3160 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
3163 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
3165 * config/rs6000/predicates.md (equality_operator): New.
3166 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
3167 comparison with a large constant.
3169 2005-08-23 Mark Mitchell <mark@codesourcery.com>
3171 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
3173 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
3175 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
3176 registers is even, and we have a hardware double precision fp,
3178 (sh_gimplify_va_arg_expr): For floating point arguments, consider
3179 size of current argument when checking if argument was passed in
3182 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
3185 * stor-layout.c (finalize_type_size): Dont override
3186 existing alignment with a smaller alignment from the mode.
3188 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
3190 * lambda-code.c (lambda_vector_lexico_pos): Moved...
3191 * lambda.h (lambda_vector_lexico_pos): ... here.
3192 * tree-data-ref.c (build_classic_dist_vector): Return false when
3193 the distance vector is lexicographically negative.
3195 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
3197 PR tree-optimization/23511
3198 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
3199 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
3201 2005-08-23 Jakub Jelinek <jakub@redhat.com>
3203 PR tree-optimization/22043
3204 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
3205 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
3206 If ALLOW_FLEXARR, handle types ending with flexible array member.
3207 Pass false as second argument to recursive count_type_elements calls.
3208 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
3209 argument to count_type_elements call.
3210 * tree-sra.c (decide_block_copy): Likewise.
3211 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
3212 for a constant-sized object, set cleared as well. Pass true as
3213 second argument to count_type_elements call.
3215 2005-08-23 Alan Modra <amodra@bigpond.net.au>
3218 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
3219 from legitimate_small_data_p, and make global. Update use.
3220 Remove forward declaration.
3221 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
3223 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
3225 2005-08-23 David Edelsohn <edelsohn@gnu.org>
3227 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
3228 of scratch intermediates.
3229 (eq<mode>_compare): Same.
3230 (neg_eq0<mode>): New.
3231 (neg_eq<mode>): Convert to define_insn_and_split.
3233 2005-08-23 Alan Modra <amodra@bigpond.net.au>
3236 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
3237 stdarg functions, set/clear the fp marker even when no variable
3239 * config/rs6000/sysv4.opt (mprototype): Describe.
3241 2005-08-22 Jakub Jelinek <jakub@redhat.com>
3243 PR rtl-optimization/23478
3244 * regs.h (reg_info): Add throw_calls_crossed.
3245 (REG_N_THROWING_CALLS_CROSSED): Define.
3246 * flow.c (allocate_reg_life_data): Initialize
3247 REG_N_THROWING_CALLS_CROSSED.
3248 (propagate_one_insn, attempt_auto_inc): Update
3249 REG_N_THROWING_CALLS_CROSSED.
3250 * global.c (global_alloc): Don't allocate pseudos across
3251 calls that may throw.
3253 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
3256 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
3257 value is inbetween the range if we did not find an exact match.
3259 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
3261 * doc/invoke.texi (Option Summary): Add ms1 options.
3262 * doc/extend.texi: Document interrupt handler attribute for ms1.
3263 * doc/md.texi: Document ms1 constraints.
3264 * config.gcc: Add ms1-*-elf.
3265 * config/ms1/ms1.h: New.
3266 * config/ms1/ms1.c: New.
3267 * config/ms1/ms1.md: New.
3268 * config/ms1/ms1-protos.h: New.
3269 * config/ms1/ABI.txt: New.
3270 * config/ms1/crti.asm: New.
3271 * config/ms1/crtn.asm: New.
3272 * config/ms1/lib2extra-funcs.c: New.
3273 * config/ms1/t-ms1: New.
3274 * config/ms1/ms1.opt: New.
3276 2005-08-22 Ira Rosen <irar@il.ibm.com>
3278 * config/rs6000/altivec.md (xorv4sf3): New.
3279 (negv4sf2, neg<mode>2): Likewise.
3281 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
3284 * config/ia64/ia64.md (divsi3): Check divide by zero.
3285 (udivsi3): Likewise.
3287 (udivdi3): Likewise.
3289 2005-08-21 Jakub Jelinek <jakub@redhat.com>
3291 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
3292 up to elem_bitsize bits, not max_bitsize.
3294 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
3296 PR tree-optimization/23433
3297 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
3298 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
3300 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
3302 PR tree-optimization/23434
3303 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
3304 the iteration bound is not an INTEGER_CST.
3306 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
3308 * tree-vect-transform.c (get_initial_def_for_reduction): Set
3309 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
3310 NULL if need_epilog_adjust is false.
3311 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
3312 Case 3 always peels first itration, not just for PLUS case, and no need
3313 to use scalar_initial_def here. Create an epilog adjustment only if
3314 scalar_initial_def is not NULL.
3316 (vectorizable_reduction): Remove assert.
3318 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
3321 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
3322 (__moddi3): Likewise.
3323 (__udivdi3): Likewise.
3324 (__umoddi3): Likewise.
3325 (__divsi3): Likewise.
3326 (__modsi3): Likewise.
3327 (__udivsi3): Likewise.
3328 (__umodsi3): Likewise.
3330 2005-08-20 Jakub Jelinek <jakub@redhat.com>
3332 * tree-pass.h (TDF_GRAPH): Define.
3333 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
3334 * passes.c (finish_optimization_passes): Only call
3335 finish_graph_dump_file if TDF_GRAPH is set.
3336 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
3337 NULL. Set TDF_GRAPH bit.
3338 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
3340 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
3342 * arm.h (arm_stack_offsets): Add locals_base field.
3343 * arm.c (arm_get_frame_offsets): Compute it.
3344 (thumb_compute_initial_elimination offset): Make the Thumb frame
3345 pointer point to the base of the local variables.
3346 (thumb_expand_prologue): Update accordingly.
3347 (thumb_expand_epilogue): Likewise.
3349 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
3350 mode of clobbered scratch to DImode. Handle a case that's known to
3353 2005-08-19 David Edelsohn <edelsohn@gnu.org>
3355 * config/rs6000/rs6000.md (gt0<mode>): Delete.
3356 (gt0<mode>_compare): Delete.
3357 (neg_gt0<mode>): Delete.
3359 2005-08-19 Eric Christopher <echristo@apple.com>
3361 * optabs.h: Change CTI_ to COI_.
3364 2005-08-19 James E Wilson <wilson@specifix.com>
3366 * builtins.c (expand_builtin_return_addr): Set
3367 current_function_accesses_prior_frames when count != 0. Use
3368 frame_pointer_rtx when count == 0.
3369 * function.h (struct function): Add accesses_prior_frames field.
3370 (current_function_accesses_prior_frames): Define.
3371 * reload1.c (init_elim_table): Check
3372 current_function_accesses_prior_frames.
3373 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
3375 2005-08-19 Diego Novillo <dnovillo@redhat.com>
3377 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
3378 indicator. Return true if the flowgraph changed during
3381 2005-08-19 Diego Novillo <dnovillo@redhat.com>
3384 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
3385 conditional expression before testing its value.
3387 2005-08-19 Diego Novillo <dnovillo@redhat.com>
3389 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
3391 2005-08-19 Devang Patel <dpatel@apple.com>
3393 PR tree-optimization/23048
3394 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
3395 third parameter. Check whether latch is dominated by exit
3397 (if_convertible_loop_p): Supply exit block itself to
3398 if_convertible_bb_p.
3400 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
3403 * arm.md (arm_load_pic_register): Change argument to the mask of
3404 saved registers. Call thumb_find_work_register if we need a
3405 scratch register on Thumb.
3406 (arm_expand_prologue): Pass empty register set to
3407 arm_load_pic_register.
3408 (thumb_expand_prologue): Pass live_regs_mask directly to
3409 arm_load_pic_register.
3410 * arm-protos.h (arm_load_pic_register): Update prototype.
3412 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
3414 * sh.c (find_sole_member): New function.
3415 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
3416 if the record's alignment is larger than the size of its only member.
3418 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
3421 * arm.c (thumb_legitimize_reload_address): New function.
3422 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
3423 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
3425 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
3427 * config/crx/crx.c: Implement crx_decompose_address. Reject
3428 symbolic displacements since CRX register relative adressing
3429 mode can't handle unsigned 32-bit values as displacements.
3430 * config/crx/crx.h: Simplify definitions, remove redundant
3431 parenthesis and obsolete macros.
3432 * config/crx/crx.opt: Add new switch for debugging addresses.
3433 * config/crx/crx-protos.h: Add new declarations for above.
3435 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3438 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
3441 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3443 * collect2.c (dup2): Delete.
3444 * configure.ac: Don't check for dup2.
3446 * config.in, configure: Regenerate.
3448 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
3450 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
3451 record with the type of its only member.
3453 2005-08-18 David Edelsohn <edelsohn@gnu.org>
3455 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
3456 define_insn_and_split.
3457 (plus_ltu<mode>_compare): Same.
3458 (gtu<mode>_compare): Same.
3459 (plus_gtu<mode>_compare): Same.
3461 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
3463 PR tree-optimization/22228
3464 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
3466 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
3467 are recorded in vect_vnames_to_rename for renaming.
3468 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
3469 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
3470 in vect_vnames_to_rename.
3471 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
3472 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
3474 2005-08-18 Jan Hubicka <jh@suse.cz>
3477 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
3478 info only for local statics, not for member variables.
3480 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3482 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
3484 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3486 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
3488 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
3491 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
3493 2005-08-17 James E Wilson <wilson@specifix.com>
3495 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
3498 2005-08-17 David Edelsohn <edelsohn@gnu.org>
3500 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
3501 (leu<mode>_compare): Same.
3502 (plus_leu<mode>): Same.
3503 (neg_leu<mode>): Same.
3504 (and_neg_leu<mode): Same.
3505 (ltu<mode>_compare): Same.
3506 (plus_ltu<mode>): Same.
3508 (geu<mode>_compare): Same.
3509 (plus_geu<mode>): Same.
3510 (neg_geu<mode>): Same.
3511 (and_neg_geu<mode>): Same.
3512 (plus_gt<mode>): Same.
3513 (gtu<mode>_compare): Same.
3514 (plus_gtu<mode>): Same.
3516 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
3518 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
3519 Move call_table_data to end. Delete spurious .text.
3520 (callt_save_all_interrupt): Fix comment typo.
3522 2005-08-17 James E Wilson <wilson@specifix.com>
3523 Kevin Winchester <winchester@amirix.com>