1 2005-11-12 Hans-Peter Nilsson <hp@axis.com>
4 * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
5 ZERO_EXTEND>: New cases.
7 2005-11-11 Daniel Jacobowitz <dan@codesourcery.com>
9 * longlong.h (__clz_tab): Always provide.
11 2005-11-11 Steven Bosscher <stevenb@suse.de>
14 * loop-invariant.c (may_assign_reg_p): Make sure a hard register
16 (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
17 before check_maybe_invariant.
18 (move_invariant_reg): Use gen_move_insn instead of replacing
19 SET_DEST with the temporary for the invariant.
20 (move_loop_invariants): If checking is enabled, do internal
21 consistency checks after completing the pass.
23 2005-11-11 David Edelsohn <edelsohn@gnu.org>
26 * common.opt (Wvolatile-register-var): New.
27 * varasm.c (make_decl_rtl): Only emit warning when option
28 specified. Clarify warning message.
29 * doc/invoke.texi (Wvolatile-register-var): Document new option.
31 * doc/md.texi (copysign): Document standard named pattern.
33 2005-11-11 Jie Zhang <jie.zhang@analog.com>
35 * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
36 bytes when align is 2.
37 * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
38 by the first instruction of the loop.
40 2005-11-11 Jason Merrill <jason@redhat.com>
43 * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
46 2005-11-11 Zdenek Dvorak <dvorakz@suse.cz>
48 PR rtl-optimization/22509
49 * local-alloc.c (memref_used_between_p): Check whether a function call
50 could not reference the memref.
52 2005-11-11 Ulrich Weigand <uweigand@de.ibm.com>
54 * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
55 algorithm so as to choose the best, not the worst, alternative.
56 Reset accumulated register class before processing next alternative.
58 2005-11-11 Kaz Kojima <kkojima@gcc.gnu.org>
61 * calls.c (expand_call): Copy a return value to a plain register
64 2005-11-10 Alexandre Oliva <aoliva@redhat.com>
67 * varasm.c (assemble_name): Recompute name only for transparent
70 2005-11-10 Hans-Peter Nilsson <hp@axis.com>
72 * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
74 2005-11-04 Jeff Law <law@redhat.com>
77 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
78 perform reassociation if the parent statement will not die as
79 a result of the optimization.
81 2005-11-10 Daniel Berlin <dberlin@dberlin.org>
83 * tree-ssa-alias.c (compute_may_aliases): Remove call to
85 * tree-dfa.c (referenced_var_remove): Remove function.
86 * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
87 (delete_tree_ssa): Remove call to delete_old_heapvars.
88 Add call to delete_alias_heapvars.
89 * tree-flow.h (referenced_var_remove): Remove prototype
90 (init_alias_heapvars): New prototype.
91 (delete_alias_heapvars): Ditto.
92 * Makefile.in (tree-ssa-structalias.o): Add
93 gt-tree-ssa-structalias.o
94 (GTFILES): Add tree-ssa-structalias.h and
95 tree-ssa-structalias.c.
96 (s-gtype): Add gt-tree-ssa-structalias.h.
97 * tree-ssa-structalias.c (heapvars): Remove.
98 (oldheapvars): Remove.
99 (heapvar_for_stmt): New variable.
100 (heapvar_lookup): New function.
101 (heapvar_insert): Ditto.
102 (get_constraint_for): See if we have an old heapvar
104 (init_alias_heapvars): New function.
105 (delete_alias_heapvars): Ditto.
106 Add include of gt-tree-ssa-structalias.h.
108 2005-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
111 * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
113 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
115 * tree.c (int_fits_type_p): Only look at the base type
116 if it has the same precision as the original type.
118 2005-11-10 Jakub Jelinek <jakub@redhat.com>
121 * varasm.c (assemble_alias): Use %q+D in the error
122 message instead of %J and %qD.
124 2005-11-10 Richard Guenther <rguenther@suse.de>
126 * gcse.c (free_ldst_entry): Only free hashtable if
129 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
131 * function.c (assign_stack_local_1): Issue an error message if
132 the frame size overflows in the signed target arithmetics.
134 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
136 * tree.c (build_qualified_type): Chain the new type to the original
137 type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
138 a POINTER_TYPE or a REFERENCE_TYPE respectively.
139 (build_pointer_type_for_mode): Only return unqualified types.
140 (build_reference_type_for_mode): Likewise.
142 2005-11-09 Jakub Jelinek <jakub@redhat.com>
144 * Makefile.in (gnucompare): Do comparison of all files using one of
145 the chosen methods and only afterwards decide if just warning should
146 be issued or comparison failure raised.
148 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
150 * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
151 (noce_try_abs): Negate if the comparison is reversed.
152 Look only one instruction backwards for a REG_EQUAL note.
154 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
157 * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
158 gthr-tpf.h: Define __gthrw. For all identifiers that might
159 be weak, introduce weakrefs or non-weak aliases with __gthrw,
160 and prefix all uses with __ghtrw.
162 2005-11-09 Alexandre Oliva <aoliva@redhat.com>
165 * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
166 (TREE_DEPRECATED): Adjust comment. Check for a DECL.
167 * c-common.c (handle_weakref_attribute): New.
168 (c_common_attribute_table): Add weakref.
169 * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
171 * configure, config.in: Rebuilt.
172 * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
173 * doc/extend.texi: Document weakref attribute.
174 * varasm.c (ultimate_transparent_alias_target): New
175 (assemble_name): Use it.
176 (weak_finish_1): Split out of...
177 (weak_finish): ... and deal with weakrefs in...
178 (weakref_targets): ... new list.
179 (globalize_decl): Clean up weakref_targets.
180 (do_assemble_alias): Handle weakrefs.
181 (finish_aliases_1): Do not reject weakrefs to external symbols.
182 (assemble_alias): Handle weakrefs.
184 2005-11-09 Richard Guenther <rguenther@suse.de>
186 PR tree-optimization/24716
187 * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
188 t_bool to track results from follow_ssa_edge.
190 2005-11-09 Eric Botcazou <ebotcazou@adacore.com>
192 * final.c (force_source_line): New global variable.
193 (final_scan_insn): Set it to true instead of clearing last_filename.
194 (notice_source_line): Return true if force_source_line is true,
195 unless source info is absent.
197 2005-11-09 Andrew Pinski <pinskia@physics.uc.edu>
200 * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
201 a linkage name for a variable if it a register variable.
202 * c-decl.c (grokdeclarator): Global register variables
203 should be set as PUBLIC.
205 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
208 * config/s390/s390.c (struct s390_frame_layout): New fields
209 first_save_gpr_slot and last_save_gpr_slot.
210 (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
211 s390_emit_epilogue, s390_initial_elimination_offset): Replaced
212 first_save_gpr and last_save_gpr with the _slot variants.
213 (s390_register_info): Calculate first_save_gpr_slot and
214 last_save_gpr_slot using regs_ever_live.
216 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
219 * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
220 for a function containing a landing pad.
222 2005-11-09 Andreas Krebbel <krebbel1@de.ibm.com>
225 * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
228 2005-11-08 Bernd Schmidt <bernd.schmidt@analog.com>
230 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
231 MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
233 2005-11-09 Nathan Sidwell <nathan@codesourcery.com>
236 * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
238 (call,load,store): New insn types.
239 (mem_access, branch_access): Adjust reservation conditions.
240 (define_delay): Adjust condition.
241 (decrement_and_branch_until_zero): Allow for ms2. Set branch
243 (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
244 (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
246 (call_internal, call_value_internal, return_internal,
247 return_interrupt_internal, eh_return_internal, indirect_jump,
248 tablejump): Set call insn type.
249 (blockage, ei, di): Use appropriate unspec const.
250 * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
251 (ms1_get_attr_type): Adjust to give load & store types.
252 (ms1_final_prescan_insn): Adjust for new insn types. Don't look
253 backwards past a barrier.
254 (ms1_override_options): Accept ms2 arch. Copy and reset delayed
256 (struct branch_info, struct label_info): New.
258 (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
259 (ms1_machine_reorg): New.
260 (TARGET_MACHINE_DEPENDENT_REORG): Override.
261 * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
262 * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
263 (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
266 2005-11-09 Per Bothner <per@bothner.com>
267 Uros Bizjak <uros@kss-loka.si>
270 * toplev.c (process_options): Initialize debug_hooks early
271 in case lang_hooks.post_options ends up calling a debug_hook.
273 2005-11-08 Jakub Jelinek <jakub@redhat.com>
275 * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
276 DBX_REGISTER_NUMBER being contiguous.
278 2005-11-08 James A. Morrison <phython@gcc.gnu.org>
279 Diego Novillo <dnovillo@redhat.com>
282 * tree-vrp.c (register_edge_assert_for): Do not register
283 always-false predicates.
285 2005-11-08 Devang Patel <dpatel@apple.com>
287 PR tree-optimization/23115
288 * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
291 2005-11-08 Joseph S. Myers <joseph@codesourcery.com>
293 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
296 2005-11-08 Daniel Berlin <dberlin@dberlin.org>
298 Fix PR tree-optimization/23382
300 * tree-ssa-alias.c (compute_may_aliases): Call
301 delete_old_heap_vars.
302 * tree-dfa.c (referenced_var_remove): New function.
303 * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
304 * tree-flow.h (referenced_var_remove): Add prototype.
305 (delete_old_heap_vars): Ditto.
306 * tree-ssa-structalias.c (heapvars): New variable.
307 (oldheapvars): Ditto.
308 (get_constraint_for): Put heap vars on heapvars list.
309 (delete_old_heap_vars): New function.
311 2005-11-08 Jason Merrill <jason@redhat.com>
313 * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
315 2005-11-08 Uros Bizjak <uros@kss-loka.si>
318 * reg-stack.c (reg_to_stack): Update register liveness also
319 for flag_sched2_use_traces.
321 2005-11-08 Alan Modra <amodra@bigpond.net.au>
324 * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
325 override prior explicit -mno-powerpc-gfxopt.
327 2005-11-07 Eric Botcazou <ebotcazou@adacore.com>
329 * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
330 if the bitsize is zero.
331 * doc/md.texi (Standard Pattern Names): Document it.
333 * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
334 (TARGET_PASS_BY_REFERENCE): Likewise.
336 2005-11-07 Ian Lance Taylor <ian@airs.com>
338 PR rtl-optimization/24683
339 * config/i386/i386.c (legitimize_pic_address): If constant operand
340 to PLUS is too large, put it in a register.
342 2005-11-07 Jie Zhang <jie.zhang@analog.com>
344 * configure.ac: Enable checking assembler dwarf2 support for bfin
346 * configure: Regenerate.
348 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
352 * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
353 gen_easy_vector_constant_add_self): Delete.
354 (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
356 (output_vec_const_move): Use gen_easy_altivec_constant.
357 (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
358 * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
359 (easy_vector_constant_add_self): Rewritten.
360 * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
361 easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
362 (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
363 * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
364 Macroize and adjust for the other changes.
366 2005-11-07 Paolo Bonzini <bonzini@gnu.org>
370 * c-typeck.c (build_c_cast): Try using a shared constant, and see
371 if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
373 2005-11-07 Jakub Jelinek <jakub@redhat.com>
375 PR rtl-optimization/23567
376 * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
377 (noce_process_if_block): Don't do any optimizations except
378 if (cond) x = x; if !set_b and write into orig_x may trap
379 or fault. Remove the MEM_READONLY_P check.
381 2005-11-06 Diego Novillo <dnovillo@redhat.com>
384 * tree-vrp.c (fix_equivalence_set): New.
385 (extract_range_from_assert): Call it.
387 2005-11-05 Ian Lance Taylor <ian@airs.com>
390 * combine.c (apply_distributive_law): Don't distribute across a
393 2005-11-05 Kazu Hirata <kazu@codesourcery.com>
395 * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
396 config/ms1/ms1.h, config/rs6000/predicates.md,
397 config/s390/s390.c, params.def, postreload-gcse.c,
398 tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
399 tree-vrp.c, tree.c: Fix comment typos.
400 * doc/invoke.texi: Fix typos.
402 2005-11-05 Sebastian Pop <pop@cri.ensmp.fr>
404 * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
405 for testing whether the data_dependence_relation contains distance
406 vectors. Iterate over all distance vectors of the ddr.
407 * lambda.h: Define a vec of lambda_vector pointers.
408 * tree-data-ref.c (dump_data_dependence_relation,
409 dump_data_dependence_direction): Iterate over all distance and
410 direction vectors of the ddr.
411 (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
413 (build_classic_dist_vector, build_classic_dir_vector): Push a set
414 of distance/direction vectors instead of a single one.
415 * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
416 lambda_vectors with a vec of lambda_vectors.
417 (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
418 (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
419 DDR_NUM_DIST_VECTS): New.
420 * tree-loop-linear.c (gather_interchange_stats): Test for the
421 existence of distance vectors only after having checked that there
422 is a dependence. Iterate over all distance vectors of the ddr.
423 (linear_transform_loops): Use dump_data_dependence_relation.
424 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
425 distance vectors using DDR_NUM_DIST_VECTS. Iterate over all the
426 distance vectors of the ddr.
428 2005-11-05 Bernd Schmidt <bernd.schmidt@analog.com>
430 * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
431 expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
432 IS_INTHANDLER; all callers changed.
433 (n_regs_saved_by_prologue): Take interrupt handler attributes into
435 (do_link, do_unlink): New argument ALL; all callers changed.
436 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
437 If function isn't leaf, save and restore all registers.
438 (bfin_function_ok_for_sibcall): Only true if not an interrupt or
441 2005-11-05 Jan Hubicka <jh@suse.cz>
443 PR rtl-optimization/23490
444 * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
445 max-flow-memory-location): Document.
446 * flow.c: Include params.h
447 (MAX_MEM_SET_LIST_LEN): Kill.
448 (add_to_mem_set_list): Use new param.
449 * cse.c (cse_basic_block): Replace 1000 by new param.
450 * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
451 PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
452 * predict.c (predict_loops): Use new param.
453 * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
455 * ipa-inline.c (cgraph_decide_inlining_of_small_function,
456 cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
457 Do not hold memory returned by cgraph_node_name across other call.
459 2005-11-04 Hans-Peter Nilsson <hp@axis.com>
462 * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
465 2005-11-04 Jeff Law <law@redhat.com>
468 * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
469 * tree-ssa-dom.c: Include params.h.
470 (thread_across_edge): If there are too many statements in the
471 target block, then do not thread through it.
472 * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
473 * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
475 2005-11-03 Diego Novillo <dnovillo@redhat.com>
478 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
479 TODO_update_ssa instead of TODO_update_ssa_no_phi.
481 2005-11-04 Sebastian Pop <pop@cri.ensmp.fr>
484 * tree-scalar-evolution.c (instantiate_parameters_1,
485 instantiate_parameters, resolve_mixers): Compute the size of an
486 expression to be instantiated and give up the instantiation if the
487 size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
489 2005-11-04 Richard Guenther <rguenther@suse.de>
491 * tree-flow.h (ref_contains_indirect_ref): Rename to
492 array_ref_contains_indirect_ref.
493 * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
494 (array_ref_contains_indirect_ref): Make comment match the code
496 (ref_contains_array_ref): Likewise.
497 * tree-ssa-structalias.c (find_func_aliases): Remove call to
498 ref_contains_indirect_ref.
499 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
500 Rename calls to ref_contains_indirect_ref.
502 2005-11-04 Paul Brook <paul@codesourcery.com>
504 * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
505 gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
506 (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
507 * config/arm/arm.md: Use match_operand in peephole input templates
508 and match_dup in peephole output templates.
510 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
512 * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
515 2005-11-04 Mark Mitchell <mark@codesourcery.com>
516 Daniel Jacobowitz <dan@codesourcery.com>
518 * longlong.h (add_ssaaaa): Clobber condition code register
520 (sub_ddmmss): Likewise.
521 (umul_ppmm): Likewise.
523 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
524 Paul Brook <paul@codesourcery.com>
525 Phil Blundell <pb@reciva.com>
527 * configure.ac: Add test for ARM TLS support.
528 * configure: Regenerated.
529 * config/arm/arm-protos.h (legitimize_tls_address)
530 (arm_tls_referenced_p, tls_mentioned_p)
531 (arm_output_addr_const_extra): New prototypes.
532 (thumb_legitimize_pic_address): Delete.
533 * config/arm/arm.c: Include "gt-arm.h".
534 (enum tls_reloc): New.
535 (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
536 (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
537 (arm_call_tls_get_addr, legitimize_tls_address)
538 (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
539 (arm_init_tls_builtins, arm_emit_tls_decoration)
540 (arm_output_addr_const_extra): New functions.
541 (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
542 (TARGET_HAVE_TLS): Define.
543 (target_thread_pointer): New.
544 (arm_override_options): Handle -mtp=.
545 (legitimize_pic_address): Ignore UNSPECs.
546 (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
548 (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
549 (tls_get_addr_libfunc): New variable.
550 (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
551 (arm_init_builtins): Call arm_init_tls_builtins.
552 (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
553 (arm_encode_section_info): Call default_encode_section_info.
554 * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
555 (enum arm_tp_type): New.
556 (target_thread_pointer): Add declaration.
557 (LEGITIMATE_CONSTANT_P): Handle TLS.
558 (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
559 (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
560 (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
561 * config/arm/arm.md: Add UNSPEC_TLS.
563 (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
565 (tls_load_dot_plus_eight): New insn and a peephole to create it.
566 (load_tp_hard, load_tp_soft): New insns.
567 * arm.opt: Add -mtp=.
568 * doc/invoke.texi (ARM Options): Document -mtp.
570 2005-11-04 Daniel Jacobowitz <dan@codesourcery.com>
572 * config/arm/lib1funcs.asm: Don't include "libunwind.S".
573 * config/arm/libunwind.S: Include "lib1funcs.asm".
574 * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
575 (LIB2ADDEH): Add libunwind.S.
576 (LIB2ADDEHDEP): Add lib1funcs.asm.
577 * mklibgcc.in: Handle asm files in libgcc_eh.a.
579 2005-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
582 * gcc/c.opt: Add a -lang-fortran option.
583 * gcc/c-opts.c: Add a lang_fortran flag.
584 (c_common_init_options): Handling the -lang-fortran option.
585 (c_common_handle_option): Add a case for Fortran options in
586 preprocessing. Remove cases for -ffixed-form and
587 -ffixed-line-length. Add a case for -lang-fortran.
589 2005-11-03 David Edelsohn <edelsohn@gnu.org>
591 * config/rs6000/rs6000.c: Include params.h
592 (optimization_options): Set max-grow-copy-bb-insns default to 16.
593 (bdesc_2arg): Delete vpkuhss and vpkuwss.
594 * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
595 (UNSPEC_VPKUWSS): Delete.
596 (altivec_vpkuhss): Delete.
597 (altivec_vpkuwss): Delete.
598 * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
600 (neg_eq0<mode>): Remove final condition.
601 (neg_eq<mode>): Remove condition and split-condition.
603 2005-11-04 Alan Modra <amodra@bigpond.net.au>
605 * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
606 Use associated print macros.
608 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
611 * diagnostic.c (diagnostic_set_info_translated): New function.
612 (diagnostic_set_info): Use it. Add comment.
613 * diagnostic.h (diagnostic_set_info_translated): Declare.
615 2005-11-03 Eric Botcazou <ebotcazou@adacore.com>
617 * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
618 On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
619 reference only if 'public' is true.
620 (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
621 emit the .hidden directive only if the indirect reference is public.
622 (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
623 Pass it to dw2_force_const_mem.
624 * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
625 * dwarf2out.c (output_cfi): Adjust calls to above function.
626 (output_call_frame_info): Likewise.
627 * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
628 as 'public' argument to dw2_asm_output_encoded_addr_rtx.
630 2005-11-03 Zdenek Dvorak <dvorakz@suse.cz>
632 PR tree-optimization/24483
633 * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
634 field to elts if possible.
636 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
639 * gimplifier.c (gimplify_expr): Create a temporary for lvalue
642 2005-11-03 Daniel Berlin <dberlin@dberlin.org>
644 Fix PR tree-optimization/24351
646 * tree-ssa-structalias.c (struct variable_info): Add
648 (get_varinfo_fc): New function to follow collapsing.
649 (new_var_info): Set collapsed_to to NULL.
650 (dump_constraint): Follow collapsing.
651 (build_constraint_graph): Handle collapsing.
652 (do_simple_structure_copy): Return false if something bad
654 (collapse_rest_of_var): New function.
655 (do_structure_copy): Collapse if do_simple_structure_copy returns
658 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
661 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
662 expressions to a statement list instead of gimplifying them.
664 2005-11-03 Eric Botcazou <ebotcazou@libertysurf.fr>
666 PR rtl-optimization/23585
667 * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
668 that can't trap plus a constant integer, if the mode has zero size.
670 2005-11-03 Ulrich Weigand <uweigand@de.ibm.com>
673 * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
675 ("*insv<mode>_reg_extimm"): Likewise.
677 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
680 * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
681 c_common_type_for_mode returns an unnamed type.
683 2005-11-02 Richard Henderson <rth@redhat.com>
687 * dwarf2out.c (dwarf2out_reg_save_reg): New.
688 (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
689 * function.c (assign_parms): Use calls.internal_arg_pointer.
690 (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
692 * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
693 (TARGET_CALLS): Add it.
694 * target.h (struct gcc_target): Add calls.internal_arg_pointer.
695 * targhooks.c (default_internal_arg_pointer): New.
696 * targhooks.h (default_internal_arg_pointer): Declare.
697 * tree.h (dwarf2out_reg_save_reg): Declare.
698 * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
699 * config/i386/i386.c (dbx_register_map): Add return column.
700 (dbx64_register_map, svr4_dbx_register_map): Likewise.
701 (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
702 (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
703 (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
704 (ix86_save_reg): Save force_align_arg_pointer.
705 (ix86_emit_save_regs): Make regno unsigned.
706 (ix86_emit_save_regs_using_mov): Likewise.
707 (ix86_expand_prologue): Handle force_align_arg_pointer.
708 (ix86_expand_epilogue): Likewise.
709 * config/i386/i386.h: (dbx_register_map): Update.
710 (dbx64_register_map, svr4_dbx_register_map): Update.
711 (struct machine_function): Add force_align_arg_pointer.
712 * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
713 (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
714 (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
716 2005-11-02 Jan Hubicka <jh@suse.cz>
719 * i386.md: Add peep2 for simplyfing array accesses.
721 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
724 * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
725 * config/s390/s390.c (s390_decompose_shift_count): New function.
726 (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
727 (print_shift_count_operand): Use s390_decompose_shift_count.
728 * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
729 Use s390_decompose_shift_count. Do not accept any non-base hard regs.
731 2005-11-02 Ulrich Weigand <uweigand@de.ibm.com>
734 * loop.c (loop_givs_rescan): Use force_operand to expand
737 2005-11-02 Andrew Pinski <pinskia@physics.uc.edu>
740 * fold-const.c (build_range_check): Use unsigned when signed
741 overflow is undefined also. If etype is subtype, make sure that
742 the subtraction is in the supertype.
744 2005-11-02 Richard Henderson <rth@redhat.com>
747 * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
750 2005-11-01 Richard Henderson <rth@redhat.com>
753 * loop.c (scan_loop): Do not propagate computations to a hard
754 register destination with SMALL_REGISTER_CLASSES.
756 2005-11-01 Joseph S. Myers <joseph@codesourcery.com>
758 * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
759 costs for MULT inside PLUS or MINUS.
761 2005-11-01 Bob Wilson <bob.wilson@acm.org>
763 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
764 (TRAMPOLINE_SIZE): Round up to 60.
765 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
767 2005-10-31 James E. Wilson <wilson@specifix.com>
770 * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
771 ifdef. Put ifdefs around call in gen_subprogram_die.
772 (compute_frame_pointer_to_cfa_displacement): Likewise.
773 (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
776 PR rtl-optimization/17356
777 * cfgrtl.c (purge_dead_edges): Undo last change. In EDGE_EH code,
778 add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
780 2005-10-31 Jan Hubicka <jh@suse.cz>
783 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
786 * i386.c (legitimize_pic_address): Deal with large immediates.
789 * coverage.c (coverage_checksum_string): Fix code to stip random seeds
790 from symbol names while computing checkup.
793 * predict.c (predict_loops): Do not estimate more than
794 MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
795 * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
797 2005-10-31 Andrew MacLeod <amacleod@redhat.com>
799 PR tree-optimization/19097
800 * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
802 2005-10-31 J"orn Rennecke <joern.rennecke@st.com>
804 * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
806 2005-10-31 Andrew Pinski <pinskia@physics.uc.edu>
809 * tree-inline.c (setup_one_parameter): If the init_stmt
810 is NULL, don't insert the statement.
812 2005-10-30 Jan Hubicka <jh@suse.cz>
814 PR tree-optimization/24172
815 * tree-inline.c (copy_body_r): Unshare the substituted value first.
817 2005-10-30 Hans-Peter Nilsson <hp@bitrange.com>
819 * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
820 constants for hosts with long != 32 bits.
822 2005-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
825 * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
827 2005-10-28 Aldy Hernandez <aldyh@redhat.com>
829 * config/ms1/ms1.h (TARGET_MS1_64_001): New.
830 (TARGET_MS1_16_002): New.
831 (TARGET_MS1_16_003): New.
833 * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
834 ("*decrement_and_branch_until_zero_no_clobber"): New.
835 Add corresponding splitter for decrement_and_branch_until_zero
837 Key all decrement_and_branch_until_zero patterns off of
840 2005-10-28 Andrew Pinski <pinskia@physics.uc.edu>
843 * tree-complex.c (extract_component): Treat RESULT_DECL
844 like the rest of the decls.
846 2005-10-25 Eric Botcazou <ebotcazou@adacore.com>
848 * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
849 indirect call to _mcount if the function needs a static chain.
851 2005-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
852 Caroline Tice <ctice@apple.com>
854 PR rtl-optimization/24460
855 * dwarf2out.c (have_switched_text_sections): New boolean variable.
856 (dwarf2out_switch_text_section): Set it to true instead of
857 incrementing separate_line_info_table_in_use.
858 (output_loc_list): Additionally test have_switched_text_sections.
859 (output_ranges): Likewise.
860 (dwarf2out_finish): Likewise.
861 * varasm.c (assemble_start_function): Do not call
862 insert_section_boundary_note.
863 (assemble_end_function): If flag_reorder_blocks_and_partition,
864 switch to the function's section before emitting the .size directive.
865 * bb-reorder.c (insert_section_boundary_note): Staticify.
866 (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
867 * output.h (insert_section_boundary_note): Delete.
869 2005-10-24 Andrew Pinski <pinskia@physics.uc.edu>
872 * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
873 instead of pointer equality when comparing types.
875 2005-10-24 James E. Wilson <wilson@specifix.com>
877 * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
878 add_dependence_list_and_free calls.
880 2005-10-24 Steven Bosscher <stevenb@suse.de>
882 * contrib.texi: Add the names of the LLNL folks who donated
883 Cray pointer support for gfortran.
885 2005-10-24 Steven Bosscher <stevenb@suse.de>
887 PR tree-optimization/24225
888 * profile.c (branch_prob): Look from end to start through a
889 basic block when looking for a locus.
891 2005-10-24 Richard Henderson <rth@redhat.com>
893 * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
895 (hppa_expand_prologue): Likewise.
897 2005-10-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
899 * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
900 (NO_DEFERRED_PROFILE_COUNTERS): Define.
901 * pa.h (NO_PROFILE_COUNTERS): Define.
902 * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
903 (funcdef_nos): New vector to hold label numbers of deferred profile
905 (output_deferred_profile_counters): New function.
906 (hppa_profile_hook): Push label number onto funcdef_nos.
907 (pa_hpux_file_end): Call output_deferred_profile_counters if
908 NO_DEFERRED_PROFILE_COUNTERS is false.
910 * pa-protos.h (get_deferred_plabel): New prototype.
911 * pa.c (get_plabel): Rename to get_deferred_plabel. Return plabel.
913 (output_call): Adjust calls.
915 2005-10-24 Alan Modra <amodra@bigpond.net.au>
917 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
918 peculiarity of GOT/TOC section usage.
920 2005-10-23 Andrew Pinski <pinskia@physics.uc.edu>
923 * c-common.c (constant_string_class_name): Add documentation.
925 2005-10-23 Kaz Kojima <kkojima@gcc.gnu.org>
928 * recog.c (peephole2_optimize): Increment peep2_current_count
929 only when the slot is empty.
931 2005-10-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
934 * except.c (output_function_exception_table): Call
935 assemble_external_libcall if we need a personality function.
937 2005-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
939 PR rtl-optimization/24460
940 * bb-reorder.c (fix_crossing_unconditional_branches): Do not
941 set the basic block for barriers.
943 2005-10-21 Janis Johnson <janis187@us.ibm.com>
945 * var-tracking.c (vt_initialize): Initialize post.
947 2005-10-21 Devang Patel <dpatel@apple.com>
950 * c-common.c (vector_types_convertible_p): Check vector element type.
952 2005-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
954 * config/sh/sh.c (prepare_move_operands): Handle the address
955 constant which is a tls symbolic address plus a constant.
957 2005-10-21 Andrew Pinski <pinskia@physics.uc.edu>
960 * gcc.c (main): Use the correct counter for erroring out
961 about mulitple files.
963 2005-10-21 Alan Modra <amodra@bigpond.net.au>
966 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
967 use r2 for 64-bit tls .got access.
969 2005-10-21 Paolo Bonzini <bonzini@gnu.org>
971 * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
974 2005-10-20 Steven Bosscher <stevenb@suse.de>
976 PR tree-optimization/24307
977 * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
979 2005-10-20 Alexandre Oliva <aoliva@redhat.com>
982 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
984 * varasm.c (find_decl_and_mark_needed): After cgraph global info
985 is ready, stop marking functions, but still mark variables.
987 2005-10-20 Richard Guenther <rguenther@suse.de>
990 * fold-const.c (invert_truthvalue): Handle COND_EXPR with
993 2005-10-20 Eric Botcazou <ebotcazou@libertysurf.fr>
995 PR rtl-optimization/23585
996 * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
997 (rtx_addr_can_trap_p): ... here. Invoke rtx_addr_can_trap_p_1.
998 (may_trap_p_1): New predicate extracted from...
999 (may_trap_p): ... here. Invoke may_trap_p_1.
1000 (may_trap_or_fault_p): New predicate.
1001 * rtl.h (may_trap_or_fault_p): Declare it.
1002 * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
1003 instead of may_trap_p.
1004 (steal_delay_list_from_fallthrough): Likewise.
1005 (fill_simple_delay_slots): Likewise.
1006 (fill_slots_from_thread): Likewise.
1007 * function.c (pad_to_arg_alignment): Rework comment about
1008 SPARC_STACK_BOUNDARY_HACK.
1009 * config/sparc/sparc.h: Likewise.
1011 2005-10-19 Adrian Straetling <straetling@de.ibm.com>
1013 * config/s390/s390.c (s390_expand_insv): New.
1014 * config/s390/s390-protos.h (s390_expand_insv): Declare.
1015 * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
1016 ("icm_hi"): Remove mode attribute.
1017 ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
1019 ("*extracthi", "*extractqi"): Remove.
1020 (extv<mode>", "*extzv<mode>"): New.
1021 ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
1022 "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
1024 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1026 * cfgexpand.c (discover_nonconstant_array_refs_r,
1027 discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
1028 (tree_expand_cfg): Call discover_nonconstant_array_refs.
1029 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
1030 discover_nonconstant_array_refs.
1032 2005-10-19 Steven Bosscher <stevenb@suse.de>
1035 * c-decl.c (pop_scope): Don't warn about an unused variable
1036 if it is marked with TREE_NO_WARNING.
1037 (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
1038 somenow mismatch and olddecl is to be replaced.
1040 2005-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
1043 * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
1044 whether registers live on the edge can be saved/restored.
1046 2005-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
1048 * config/sh/sh.c (fixup_mova): Skip notes.
1050 2005-10-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1052 * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
1053 * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
1054 (s390_can_eliminate): Handle BASE_REGNUM elimination.
1055 (s390_initial_elimination_offset): Likewise.
1056 (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
1057 register on TARGET_ZARCH targets.
1058 * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
1059 (INITIAL_FRAME_POINTER_OFFSET): Remove.
1060 (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
1061 (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
1063 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
1065 * config/s390/s390.md: Comment describing output modifiers updated.
1066 * config/s390/s390.c (print_operand): Likewise.
1068 2005-10-19 Andreas Krebbel <krebbel1@de.ibm.com>
1070 * config/s390/s390.c (override_options): Added check for -mstack-size
1072 * doc/invoke.texi: Mention that limit in the documenation.
1074 2005-10-18 Paolo Bonzini <bonzini@gnu.org>
1077 * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
1079 2005-10-18 Daniel Berlin <dberlin@dberlin.org>
1081 Fix PR tree-optimization/24231
1083 * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
1084 (compute_avail): Ditto.
1086 2005-10-18 Richard Henderson <rth@redhat.com>
1089 * config/i386/i386.c (legitimate_constant_p): Check
1090 SYMBOL_REF_TLS_MODEL directly. Don't fallthru to SYMBOL_REF
1092 (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
1093 (legitimate_pic_address_disp_p): Reorg CONST checking to make
1094 sure SYMBOL_REF_TLS_MODEL is tested. Test SYMBOL_REF_TLS_MODEL
1096 (print_operand_address): Likewise.
1097 * config/i386/predicates.md (x86_64_immediate_operand): Test
1098 SYMBOL_REF_TLS_MODEL properly inside CONST.
1099 (x86_64_zext_immediate_operand): Likewise.
1100 (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
1101 initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
1102 * config/i386/i386-protos.h: Remove predicates.md entries.
1104 2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
1106 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
1107 Check that elements of TYPE_METHODS are FUNCTION_DECLs.
1109 2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
1110 Ian Lance Taylor <ian@airs.com>
1113 * fold-const.c (fold_widened_comparison): Do not allow range based
1114 constant folding when right operand cannot be unwidened.
1116 2005-10-17 Richard Henderson <rth@redhat.com>
1118 * builtins.c (expand_builtin_synchronize): Build a new-style asm
1119 with a memory clobber.
1121 2005-10-17 James E Wilson <wilson@specifix.com>
1123 PR rtl-optimization/17356
1124 * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
1125 checking for EDGE_EH.
1127 2005-10-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1129 * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
1130 the slot on an even boundary for any type with 16-byte alignment.
1132 2005-10-17 Hans-Peter Nilsson <hp@axis.com>
1135 * md.texi (Modifiers) <%>: Clarify that % doesn't work
1136 after register allocation.
1138 2005-10-17 DJ Delorie <dj@redhat.com>
1140 * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
1143 2005-10-17 Nathan Sidwell <nathan@codesourcery.com>
1146 * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
1149 2005-10-17 Kaz Kojima <kkojima@gcc.gnu.org>
1151 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
1152 to 2 if it's already non-zero.
1153 (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
1154 is set and warn about it if flag_schedule_insns is 1.
1156 2005-10-17 Paul Woegerer <paul.woegerer@nsc.com>
1158 * config/crx/crx.md: Compare-and-branch instructions need to
1161 2005-10-17 Uros Bizjak <uros@kss-loka.si>
1164 * config/i386/i386.md (*pushdi2_rex64 splitter)
1165 (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
1166 (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
1167 flow2 pass only when (optimize > 0 && flag_peephole2).
1169 2005-10-16 Andrew Pinski <pinskia@physics.uc.edu>
1172 * gcc.c (have_c): New static variable.
1174 (process_command): Remove declation of have_c.
1175 Set have_o to 1 when handling -o.
1176 (main): Add a fatel error if there are multiple
1177 files specified and -o and -c/-S is passed witout
1178 -combine or multiple languages.
1180 2005-10-16 Daniel Berlin <dberlin@dberlin.org>
1182 Fix PR tree-optimization/22444
1183 * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
1184 Assert that we don't hit something with subvars.
1185 (setup_pointers_and_addressables): Don't add things with subvars,
1186 because we'll already process the subvars for aliasing purposes.
1188 2005-10-16 Hans-Peter Nilsson <hp@axis.com>
1191 * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
1192 ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
1193 ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
1194 ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
1195 ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
1196 swapped, alternatives for the R constraint.
1199 * builtins.c (get_builtin_sync_mode): Make unlimited
1200 mode_for_size request.
1202 2005-10-15 Richard Henderson <rth@redhat.com>
1204 * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
1205 (gimplify_expr): ... here.
1206 (gimplify_compound_lval): Use it in initial scan loop. Allow
1207 fb_lvalue in base expression.
1209 2005-10-15 Richard Henderson <rth@redhat.com>
1212 * builtins.c (expand_builtin_trap): Export.
1213 * expr.h (expand_builtin_trap): Declare.
1214 * expr.c (expand_assignment): Emit a trap for integral offsets
1215 from registers that weren't reduced to bitpos.
1217 * tree-cfg.c (mark_array_ref_addressable_1): Remove.
1218 (mark_array_ref_addressable): Remove.
1219 * tree-flow.h (mark_array_ref_addressable): Remove.
1220 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
1222 2005-10-15 James E Wilson <wilson@specifix.com>
1225 * sched-deps.c (add_dependence_list): New arg UNCOND. Fix all callers.
1226 (add_dependence_list_and_free): Likewise.
1227 (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
1230 2005-10-15 Diego Novillo <dnovillo@redhat.com>
1234 * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
1235 sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
1237 (vrp_visit_phi_node): Only prevent infinite iterations when
1238 the previous result and the new result are both VR_RANGEs.
1240 2005-10-15 Ranjit Mathew <rmathew@gcc.gnu.org>
1242 * tree-into-ssa.c (mark_def_sites): Correct minor typo in
1245 2005-10-14 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1248 * c-parser.c (c_parser_for_statement): Use location of RID_FOR
1251 2005-10-14 Per Bothner <per@bothner.com>
1253 PR preprocessor/21250
1254 * c-ppoutput.c (print_line): Print internal line 0 as 1.
1256 2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
1259 * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
1260 overflow flags. Refactor some conditionals.
1262 2005-10-13 Andrew Pinski <pinskia@physics.uc.edu>
1265 * tree-dfa.c (add_referenced_var): Only look at decls which
1266 have TREE_CONSTANT or TREE_READONLY set instead of if
1267 !TREE_PUBLIC or !TREE_CONSTANT.
1269 2005-10-13 James E Wilson <wilson@specifix.com>
1271 * doc/invoke.texi: For -x, add f95-cpp-input.
1272 * doc/install.texi: For --enable-languages doc, change f95 to fortran.
1274 2005-10-12 Sebastian Pop <pop@cri.ensmp.fr>
1276 PR tree-optimization/24262
1277 * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
1278 in loop all the time.
1280 2005-10-12 Richard Henderson <rth@redhat.com>
1283 * tree.h (DECL_TRANSPARENT_UNION): Remove.
1284 * function.c (assign_parm_find_data_types): Don't support it.
1285 * print-tree.c (print_node): Likewise.
1286 * c-common.c (handle_transparent_union_attribute): Likewise.
1287 Use build_duplicate_type.
1288 * tree-inline.c (remap_type_1): Split out of remap_type;
1289 properly remap aggregate fields.
1290 (build_duplicate_type): New.
1291 * doc/extend.texi (Variable Attributes): Remove documentation
1292 for transparent_union.
1294 2005-10-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1297 * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
1298 (gen_stack_pointer_dec): Likewise.
1300 2005-10-12 Danny Smith <dannysmith@users.sourceforge.net>
1304 * target.h (struct gcc_target): Add valid_dllimport_attribute_p
1306 (struct cxx): Add adjust_class_at_definition target hook.
1307 * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
1308 defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
1309 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
1310 hook_void_tree. Add to TARGET_CXX.
1311 * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
1313 (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
1314 * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
1315 instead of attribute. Check for dllexport override. Warn if
1316 inconsistent dll linkage. Don't lose old dllimport if decl has
1317 had address referenced. Tweak lookup of dllimport atribute.
1318 (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
1319 for target specific rules. Don't add dllimport attribute if
1320 DECL_DECLARED_INLINE_P. Set DECL_DLLIMPORT_P when adding
1321 dllimport attribute.
1322 (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
1323 * varasm.c (initializer_constant_valid_p): Replace
1324 DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
1328 * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
1329 'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
1330 (i[34567]86-*-mingw32*): Likewise.
1332 * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
1333 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
1335 * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
1336 C++-specific code. Change return value to bool.
1337 (i386_pe_dllimport_p): Likewise.
1338 (associated_type): Simplify and make language-independent
1339 (i386_pe_encode_section_info): Replace override of ambiguous
1340 dllimport symbol refs with a gcc_assert.
1341 (i386_pe_valid_dllimport_attribute_p): Define.
1342 * config/i386/winnt-cxx.c: New file. Define C++ versions of
1343 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
1344 i386_pe_adjust_class_at_definition.
1345 * config/i386/winnt-stubs.c: New file. Define stub versions of
1346 lang-specific functions.
1347 * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
1348 i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
1349 i386_pe_adjust_class_at_definition.
1350 (i386_pe_valid_dllimport_attribute_p): Declare.
1351 * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
1352 (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
1353 * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
1356 * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
1357 dllimport attribute with test of DECL_DLLIMPORT_P.
1359 2005-10-12 Adrian Straetling <straetling@de.ibm.com>
1361 * combine.c (make_extraction): Correct offset computation.
1363 2005-10-12 Hans-Peter Nilsson <hp@axis.com>
1365 * config/cris/t-linux (LIMITS_H_TEST): Define.
1367 2005-10-12 Richard Henderson <rth@redhat.com>
1370 * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
1372 2005-10-12 Richard Guenther <rguenther@suse.de>
1374 * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
1376 2005-10-12 Nathan Sidwell <nathan@codesourcery.com>
1379 * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
1380 DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
1383 2005-10-12 Richard Guenther <rguenther@suse.de>
1386 * varasm.c (output_constant): Correct typo from previous
1389 2005-10-11 Ian Lance Taylor <ian@airs.com>
1391 PR rtl-optimization/13931
1392 * combine.c: Revert patch of 2003-05-14, and:
1393 (try_combine): Only set elim_i1 and elim_i2 if the destination is
1394 completely killed in the appropriate insn.
1395 (distribute_notes): Don't skip multiple hard register test for
1396 elim_i1 and elim_i2.
1398 2005-10-11 Richard Henderson <rth@redhat.com>
1401 * c-typeck.c (convert_for_assignment): Use build_constructor_single
1402 to initialize a transparent union instead of a nop_expr.
1404 2005-10-11 Richard Henderson <rth@redhat.com>
1406 * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
1407 * tree-ssa-dce.c: Include tree-scalar-evolution.h.
1408 (tree_ssa_dce_loop): Call scev_reset.
1411 * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
1412 * tree-ssa-dce.c: Include cfgloop.h.
1413 (tree_ssa_dce_loop, pass_dce_loop): New.
1414 * tree-pass.h (pass_dce_loop): Declare it.
1415 * passes.c (init_optimization_passes): Use it.
1417 2005-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1420 * convert.c (convert_to_real): Revert 2005-10-05 patch.
1421 Only apply the optimization for rounding builtins if the inner
1422 cast is also an extension.
1424 2005-10-11 Andrew Pinski <pinskia@physics.uc.edu>
1427 * tree-ssa-ccp.c (execute_fold_all_builtins): Call
1428 mark_new_vars_to_rename instead of update_stmt.
1430 2005-10-11 Bernd Schmidt <bernd.schmidt@analog.com>
1432 * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
1434 2005-10-11 Jakub Jelinek <jakub@redhat.com>
1436 * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
1437 for setting MMX register to 0 rather than mmx.
1439 2005-10-10 Steve Ellcey <sje@cup.hp.com>
1442 * configure.ac: Move gas check from mips specific case to common case.
1443 Do check for GNU as for mips*-*-* and *-*-hpux* targets.
1444 * configure: Regenerate
1445 * doc/install.texi: Update.
1447 2005-10-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1450 * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
1452 2005-10-10 Maciej W. Rozycki <macro@linux-mips.org>
1454 * gcc.c (do_spec_1): Accept numeric characters in file name
1457 2005-10-10 Nick Clifton <nickc@redhat.com>
1459 * config/arm/arm.c: Remove extraneous whitespace. Remove comment
1460 describing the deleted arm_gen_rotated_half_load function.
1462 2005-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
1464 * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
1467 2005-10-09 Daniel Jacobowitz <dan@codesourcery.com>
1469 * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
1471 * config/arm/t-linux-eabi (LIB1ASMFUNCS)
1472 (EXTRA_MULTILIB_PARTS): Define.
1473 * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
1474 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
1475 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
1476 * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
1477 (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
1478 (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
1480 2005-10-09 Zdenek Dvorak <dvorakz@suse.cz>
1482 PR tree-optimization/24226
1483 * tree-cfg.c (remove_bb): Clean up unreachable loops.
1484 * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
1485 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
1488 2005-10-09 Eric Botcazou <ebotcazou@libertysurf.fr>
1490 * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
1492 2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
1495 * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
1496 Rewrite for no need for the early clobber.
1498 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
1500 Merge from csl-arm-branch:
1501 2005-09-07 Paul Brook <paul@codesourcery.com>
1502 * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
1505 2005-04-30 Paul Brook <paul@codesourcery.com>
1506 * config/arm/bpabi.h (TARGET_DEFAULT): Define.
1507 * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
1509 2005-03-07 Daniel Jacobowitz <dan@codesourcery.com>
1510 * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
1511 (arm_override_options): Use TARGET_AAPCS_BASED.
1512 * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
1513 (PTRDIFF_TYPE): Use int for AAPCS.
1514 (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
1515 * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
1516 (DEFAULT_SHORT_ENUMS): Delete.
1517 * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
1519 2004-12-15 Daniel Jacobowitz <dan@codesourcery.com>
1520 * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
1521 * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
1522 * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
1524 2004-12-03 Mark Mitchell <mark@codesourcery.com>
1525 * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
1527 2004-11-22 Mark Mitchell <mark@codesourcery.com>
1528 * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
1530 2004-11-19 Mark Mitchell <mark@codesourcery.com>
1531 * config.gcc (arm*-*-linux-gnueabi): Add it.
1532 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
1534 (TARGET_OS_CPP_BUILTINS): Likeiwse.
1535 * config/arm/linux-eabi.h: New file.
1536 * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
1537 (LINUX_TARET_LINK_SPEC): Likewise.
1538 (LINK_SPEC): Use it.
1539 * config/arm/t-linux-eabi: New file.
1541 2005-10-08 Steven Bosscher <stevenb@suse.de>
1544 * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
1546 (PARAM_SMS_DFA_HISTORY): Likewise.
1548 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
1551 * calls.c (mem_overlaps_already_clobbered_arg_p): New.
1552 (load_register_parameters): Call it.
1553 (check_sibcall_argument_overlap_1): Likewise.
1554 (store_one_arg): Likewise.
1556 2005-10-07 James E. Wilson <wilson@specifix.com>
1558 * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
1559 DImode not VECINT24 for operand 2.
1562 * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
1566 * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
1567 fr_spill): Use destination_operand for operand 0.
1569 2005-10-07 DJ Delorie <dj@redhat.com>
1571 * varasm.c (output_constant): Limit error to expanding
1574 2005-10-07 Richard Guenther <rguenther@suse.de>
1577 * fold-const.c (fold_binary): Fix operand types during folding
1578 of X op (A, Y). Evaluation order of the side-effects of
1579 X and A are frontend-defined, so ensure we honour that even for
1580 tcc_comparison class operands; eased by removing duplicate code.
1582 2005-10-07 Steve Ellcey <sje@cup.hp.com>
1584 * stor-layout.c (layout_type): Do not allow alignment of array
1585 elements to be greater than their size.
1587 2005-10-07 Steve Ellcey <sje@cup.hp.com>
1589 * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
1591 (hppa*-*-linux*): Ditto.
1592 (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
1593 * config/host-hpux.c: New.
1594 * config/x-hpux: New.
1595 * config/pa/x-hpux: Remove.
1596 * config/pa/x-linux: Remove.
1597 * config/pa/pa-host.c: Remove.
1599 2005-10-07 Jeff Law <law@redhat.com>
1601 * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
1602 determine whether or not to try and thread outgoing edges.
1604 2005-10-07 David Edelsohn <edelsohn@gnu.org>
1606 * config/rs6000/rs6000.md (eqsi_power): New.
1607 (neg_eq0si): Add TARGET_POWER to final condition.
1610 2005-10-06 Richard Henderson <rth@redhat.com>
1612 * config/rs6000/rs6000.c: Revert last change.
1614 2005-10-06 Richard Henderson <rth@redhat.com>
1616 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
1617 (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
1619 2005-10-06 Andrew Pinski <pinskia@physics.uc.edu>
1623 * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
1624 out return_label and naked_return_label.
1626 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
1628 * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
1631 2005-10-06 Richard Henderson <rth@redhat.com>
1634 * tree-inline.c (declare_return_variable): Handle modify_dest not
1637 2005-10-06 Daniel Berlin <dberlin@dberlin.org>
1639 Fix PR tree-optimization/22488
1640 * tree-ssa-structalias.c (check_for_overlaps): New function.
1641 (create_variable_info_for): Use it.
1643 2005-10-06 Richard Henderson <rth@redhat.com>
1646 * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
1647 (dwarf2out_start_source_file): Print it.
1649 2005-10-06 Geoffrey Keating <geoffk@apple.com>
1651 * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
1653 2005-10-06 Richard Henderson <rth@redhat.com>
1656 * mode-switching.c (optimize_mode_switching): Clear transp bit
1657 for block with incomming abnormal edges.
1659 * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
1660 (fpscr_set_from_mem): Use them.
1661 * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
1662 (fpscr postinc splitters): Rewrite as peephole2+split.
1664 2005-10-06 David Edelsohn <edelsohn@gnu.org>
1666 * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
1667 (eq<mode>_compare): Same.
1669 2005-10-06 Richard Guenther <rguenther@suse.de>
1671 PR tree-optimization/24238
1672 * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
1674 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
1676 * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
1677 here. Use AC_PATH_PROG for environment variables instead of
1679 * configure.ac: Update calls to gcc_AC_CHECK_TOOL. Use it for
1681 * configure: Regenerated.
1683 2005-10-06 Richard Earnshaw <richard.earnshaw@arm.com>
1686 * arm.md (call): If the address isn't a SYMBOL_REF or a register,
1687 then force it into a register.
1688 (call_value): Likewise.
1690 2005-10-06 Richard Henderson <rth@redhat.com>
1693 * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
1694 under pass_vectorize. Clear TODO_ggc_collect from the dce pass
1695 under pass_vectorize.
1697 2005-10-05 Devang Patel <dpatel@apple.com>
1700 * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
1701 handling constants. Check NAMESPACE_DECL context for constants.
1703 2005-10-05 Eric Christopher <echristo@apple.com>
1705 * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
1707 2005-10-05 Richard Henderson <rth@redhat.com>
1710 * tree-cfg.c (mark_array_ref_addressable_1): New.
1711 (mark_array_ref_addressable): New.
1712 * tree-flow.h (mark_array_ref_addressable): Declare.
1713 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
1715 2005-10-05 Andrew Pinski <pinskia@physics.uc.edu>
1719 * reload.c (subst_reloads): When adding a REG_LABEL to a
1720 jump instruction, also update JUMP_LABEL.
1722 2005-10-05 David Edelsohn <edelsohn@gnu.org>
1724 * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
1725 * bb-reorder.c (copy_bb_p): Use it.
1726 * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
1728 2005-10-05 Richard Henderson <rth@redhat.com>
1731 * toplev.c (process_options): Warn about unsupported combinations
1732 of unwind tables and omit-frame-pointer.
1733 * config/i386/i386.c (override_options): Similarly. Enable
1734 accumulate-outgoing-args if not explicitly disabled.
1736 2005-10-05 Steve Ellcey <sje@cup.hp.com>
1738 * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
1739 Handle big endian vs. small endian.
1740 (vec_initv2sf): Handle big endian vs. small endian.
1741 (*vec_extractv2sf_1): Ditto.
1743 2005-10-05 Dale Johannesen <dalej@apple.com>
1745 * convert.c (convert_to_real): Don't convert
1746 (float)floor(double d) to floorf((float)d).
1748 2005-10-05 Daniel Jacobowitz <dan@codesourcery.com>
1750 * config/arm/arm.md (insv): Use gen_int_mode in more places.
1752 2005-10-05 Andrew MacLeod <amacleod@redhat.com>
1754 PR tree-optimization/18587
1755 * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
1756 (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
1757 build_vuses): Change to VEC type.
1758 (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
1759 opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
1760 opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
1761 opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
1762 (get_name_decl): New. Return DECL_UID of base variable.
1763 (operand_build_cmp): New. qsort comparison routine.
1764 (operand_build_sort_virtual): New. Sort virtual build vector.
1765 (init_ssa_operands, fini_ssa_operands): Use VEC routines.
1766 (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
1767 (FINALIZE_BASE): Use get_name_decl.
1768 (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
1769 finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
1770 (start_ssa_stmt_operands, append_def, append_use, append_vuse,
1771 append_v_may_def, append_v_must_def): Replace opbuild_* routines with
1772 direct VEC_* manipulations.
1773 (build_ssa_operands): Call operand_build_sort_virtual.
1774 (copy_virtual_operand, create_ssa_artficial_load_stmt,
1775 add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
1776 with direct VEC_* manipulations.
1777 * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
1778 with direct VEC manipulations.
1780 2005-10-05 Paolo Bonzini <bonzini@gnu.org>
1782 PR tree-optimization/21419
1783 PR tree-optimization/24146
1784 PR tree-optimization/24151
1786 * c-typeck.c (readonly_error): Handle USE being lv_asm.
1787 (build_asm_expr): Call it if outputs are read-only.
1788 * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
1790 2005-10-05 Billy Biggs <billy.biggs@gmail.com>
1791 Paolo Bonzini <bonzini@gnu.org>
1795 * doc/extend.texi (x86 Built-ins): Document that -msse and friends
1796 enable the instructions and not just the built-ins.
1797 * doc/invoke.texi (x86 Options): Likewise.
1799 2005-10-04 Geoffrey Keating <geoffk@apple.com>
1801 * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
1803 * doc/invoke.texi (Option Summary): Correct spelling
1804 of -mmacosx-version-min.
1806 2005-10-04 Devang Patel <dpatel@apple.com>
1808 * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
1811 2005-10-04 Steve Ellcey <sje@cup.hp.com>
1813 * tree-vect-transform.c (vect_create_epilog_for_reduction):
1814 Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
1816 2005-10-04 Adrian Straetling <straetling@de.ibm.com>
1818 * config/s390/s390.md ("TDSI","DP"): New mode macros.
1819 ("TE","tg"): New mode attributes.
1820 ("sync_compare_and_swap<mode>"): Replace with a define_expand.
1821 ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
1822 ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
1823 dword_mode and one for GPRmode.
1825 2005-10-04 Ian Lance Taylor <ian@airs.com>
1827 PR preprocessor/13726
1828 * c-ppoutput.c (cb_include): Add comments parameter, and print out
1829 any comments passed in.
1831 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1833 * tree.c (annotate_with_file_line): Fix typo.
1835 2005-10-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1838 * builtins.c (fold_builtin_memcmp): When constructing the pointer
1839 type used to access data in the inlined length == 1 case, use
1840 build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
1841 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
1843 2005-10-04 Uros Bizjak <uros@kss-loka.si>
1845 * config/i386/i386.h (TARGET_FISTTP): Enable also for
1846 TARGET_SSE3 and only for TARGET_80387.
1847 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
1848 (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
1849 Do not depend on TARGET_80387.
1851 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1853 * tree.c (last_annotated_node): Change type to location_t*.
1854 (annotate_with_file_line): Reflect the change of
1855 last_annotated_node type.
1857 2005-10-04 Richard Guenther <rguenther@suse.de>
1860 * c-decl.c (grokdeclarator): Don't write to fields
1863 2005-10-04 Andrew Pinski <pinskia@physics.uc.edu>
1866 * c-decl.c (finish_decl): Use set_user_assembler_name even for
1868 * varasm.c (make_decl_rtl): If a register variable does not
1869 have a set user assmbler name, error out.
1870 Decode the asmspec is now name+1 bypassing '*'.
1872 2005-10-04 Steven Bosscher <stevenb@suse.de>
1874 PR tree-optimization/23049
1875 * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
1876 of a COND_EXPR is folded before calling fold on the whole rhs of a
1877 conditional assignment.
1878 * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
1879 document that a COND_EXPR may appear there.
1881 2005-10-03 Diego Novillo <dnovillo@redhat.com>
1884 * tree-vrp.c (extract_range_from_assert): If the new numeric
1885 range created out of the assertion contradicts the existing
1886 numeric range of the ASSERT_EXPR variable, make the new range
1889 2005-10-03 Kaz Kojima <kkojima@gcc.gnu.org>
1891 * config/sh/sh.c (sh_register_move_cost): Add case for moving
1892 from T_REGS to FP register class.
1894 2005-10-03 Richard Henderson <rth@redhat.com>
1897 * tree-nested.c (convert_nl_goto_reference): Lookup a translation
1898 before creating a new one.
1900 2005-10-03 David Edelsohn <edelsohn@gnu.org>
1902 * config/rs6000/t-aix43 (LDFLAGS): New.
1903 * config/rs6000/t-aix52 (LDFLAGS): New.
1905 2005-10-03 Ian Lance Taylor <ian@airs.com>
1907 * gimplify.c (find_single_pointer_decl_1): New static function.
1908 (find_single_pointer_decl): New static function.
1909 (internal_get_tmp_var): For a formal variable, set restrict base
1910 information if appropriate.
1911 * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
1913 * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
1914 (DECL_GET_RESTRICT_BASE): Define.
1915 (SET_DECL_RESTRICT_BASE): Define.
1916 (decl_restrict_base_lookup): Declare.
1917 (decl_restrict_base_insert): Declare.
1918 (struct tree_decl_with_vis): Add based_on_restrict_p field.
1919 * tree.c (restrict_base_for_decl): New static variable.
1920 (init_ttree): Initialize restrict_base_for_decl.
1921 (copy_node_stat): Copy restrict base information.
1922 (decl_restrict_base_lookup): New function.
1923 (decl_restrict_base_insert): New function.
1924 (print_restrict_base_statistics): New static function.
1925 (dump_tree_statistics): Call print_restrict_base_statistics.
1927 2005-10-02 Diego Novillo <dnovillo@redhat.com>
1930 * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
1931 case of anti-ranges.
1933 2005-10-02 Andrew Pinski <pinskia@physics.uc.edu>
1936 * c-typeck.c (tagged_tu_seen): Rename to ...
1937 (tagged_tu_seen_cache): this and add val field.
1938 (comptypes): Move functional to comptypes_internal
1939 and free tagged_tu_seen.
1940 (comptypes_internal): New function and call comptypes_internal
1941 instead of comptypes. Speed up by sibcalling
1942 tagged_types_tu_compatible_p.
1943 (alloc_tagged_tu_seen): New function
1944 (free_all_tagged_tu_seen_up_to): New function.
1945 (tagged_types_tu_compatible_p): Return the val of the seen two
1947 Add that the two types are the same to tagged_tu_seen_base
1948 if they are and call comptypes_internal instead of comptypes.
1949 <case UNION_TYPE>: Speed up common type where the fields are
1951 (function_types_compatible_p): Call comptypes_internal instead of
1953 (type_lists_compatible_p): Likewise.
1954 (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
1956 2005-10-02 Matthias Klose <doko@debian.org>
1958 * doc/invoke.texi: Fix typo and speling error.
1960 2005-10-01 Richard Henderson <rth@redhat.com>
1962 * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
1964 2005-10-01 Mark Mitchell <mark@codesourcery.com>
1966 * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
1967 using --start-group and --end-group.
1969 2005-10-01 Diego Novillo <dnovillo@redhat.com>
1971 * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
1972 FIXME note regarding quirky semantics.
1974 2005-10-01 Diego Novillo <dnovillo@redhat.com>
1977 * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
1978 non-null range as a last resort.
1980 2005-10-01 James A. Morrison <phython@gcc.gnu.org>
1981 Diego Novillo <dnovillo@redhat.com>
1984 * tree-vrp.c (extract_range_from_assert): For !=
1985 assertions, only build an anti-range if LIMIT is a
1986 single-valued range.
1988 2005-09-30 Richard Earnshaw <richard.earnshaw@arm.com>
1990 * arm.md (movqi): On thumb when optimizing, handle loading from
1991 memory by describing this as taking a subreg of a zero-extended load
1992 into an SImode register.
1995 2005-09-30 Daniel Jacobowitz <dan@codesourcery.com>
1997 * reload1.c (merge_assigned_reloads): Do not change any
1998 RELOAD_FOR_OUTPUT_ADDRESS reloads.
2000 2005-09-30 Geoffrey Keating <geoffk@apple.com>
2002 * Makefile.in (LIPO_FOR_TARGET): Define.
2003 (STRIP_FOR_TARGET): Define.
2005 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
2006 before creating new ones. Do symlinks before creating the actual
2009 * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
2010 to work out which multilibs are actually being built.
2012 2005-09-30 Kazu Hirata <kazu@codesourcery.com>
2014 * tree-vect-transform.c, config/ms1/ms1.md,
2015 config/s390/s390.c, config/v850/v850.md: Fix comment typos.
2016 Follow spelling conventions.
2017 * doc/invoke.texi, doc/md.texi: Fix typos.
2019 2005-09-30 Andrew Macleod <amacleod@redat.com>
2021 PR tree-optimization/21430
2022 * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
2023 use operands, and set stmt pointer if need be.
2024 (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
2025 tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
2028 2005-09-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2031 * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
2033 2005-09-29 Mark Mitchell <mark@codesourcery.com>
2035 * optabs.c (expand_binop): Initialize first_pass_p.
2037 2005-09-29 Jakub Jelinek <jakub@redhat.com>
2040 * c-decl.c (c_write_global_declarations_1): If any
2041 wrapup_global_declaration_2 call returned true, restart the loop.
2043 2005-09-29 Daniel Berlin <dberlin@dberlin.org>
2045 Fix PR tree-optimization/24117
2046 * tree-ssa-structalias.c (find_func_aliases): Strip nops
2047 before considering whether to use anyoffset.
2049 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
2053 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
2055 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2057 (swap_commutative_operands_with_target): New.
2059 2005-09-29 Paolo Bonzini <bonzini@gnu.org>
2062 * gimplify.c (gimplify_asm_expr): Raise an error if an output is
2065 2005-09-29 Steven Bosscher <stevenb@suse.de>
2067 PR tree-optimization/23911
2068 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
2069 and IMAGPART_EXPR too.
2071 2005-09-28 Mark Mitchell <mark@codesourcery.com>
2074 * expmed.c (expand_shift): Move logic to reverse rotation
2075 direction when rotating by constants ...
2076 * optabs.c (expand_binop): ... here.
2077 * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
2078 (ix86_rotrdi3): New pattern.
2079 (rotldi3): Handle 32-bit mode.
2080 (ix86_rotldi3): New pattern.
2082 2005-09-29 Alan Modra <amodra@bigpond.net.au>
2085 * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
2086 check for numbers that need no bit twiddle.
2088 2005-09-28 Geoffrey Keating <geoffk@apple.com>
2090 * config/rs6000/t-darwin8: Uncomment contents, allow -m64
2091 multilib to be built.
2093 * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
2094 (stage1-start): Delete old libgcc and libunwind before moving
2095 anything into the stage directory.
2096 (stage2-start): Likewise.
2097 (stage3-start): Likewise.
2098 (stage4-start): Likewise.
2099 (stageprofile-start): Likewise.
2100 (stagefeedback-start): Likewise.
2101 * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
2102 header in tm_file and CPU-specific t-darwin in tmake_file.
2103 (i[34567]86-*-darwin*): Don't change tm_file.
2104 (powerpc-*-darwin*): Don't change tm_file or tmake_file.
2105 * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
2106 shared library stub for target OS version.
2107 * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
2108 (SHLIB_LINK): Don't make SHLIB_SOLINK.
2109 (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
2110 (libgcc_s.%.dylib): New.
2112 (install-darwin-libgcc-stubs): New.
2113 (INSTALL_LIBGCC): New append.
2114 * config/i386/darwin-libgcc.10.4.ver: New.
2115 * config/i386/darwin-libgcc.10.5.ver: New.
2116 * config/i386/t-darwin: New.
2117 * config/rs6000/darwin-libgcc.10.4.ver: New.
2118 * config/rs6000/darwin-libgcc.10.5.ver: New.
2119 * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
2120 * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
2122 2005-09-28 Paul Brook <paul@codesourcery.com>
2124 * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
2127 2005-09-28 Richard Guenther <rguenther@suse.de>
2129 PR tree-optimization/23853
2130 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
2131 host_integerp to verify misalignment value.
2133 2005-09-28 Richard Henderson <rth@redhat.com>
2135 * builtins.c (get_builtin_sync_mode): New.
2136 (expand_builtin_sync_operation): Pass in mode argument.
2137 (expand_builtin_compare_and_swap): Likewise.
2138 (expand_builtin_lock_test_and_set): Likewise.
2139 (expand_builtin_lock_release): Likewise.
2140 (expand_builtin): Update to match.
2142 2005-09-28 Nick Clifton <nickc@redhat.com>
2144 * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
2145 formatting. Add check to PLUS case to ensure that the offset is
2146 within an acceptable range.
2148 * config/v850/v850.md (casesi): Disable the generation of the
2149 switch pattern as it is not being handled properly at the moment.
2151 * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
2152 for when the high words are identical.
2154 2005-09-27 Richard Henderson <rth@redhat.com>
2156 * pretty-print.c (pp_base_format): Fix typo for %>.
2158 2005-09-27 Daniel Berlin <dberlin@dberlin.org>
2159 Devang Patel <dpatel@apple.com>
2161 PR tree-optimization/23625
2162 * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
2163 LABEL_EXPR, assertion check.
2165 2005-09-27 J"orn Rennecke <joern.rennecke@st.com>
2167 * optabs.c (no_conflict_move_test): Check if a result of a
2168 to-be-moved insn would be clobbered by an originally
2171 2005-09-27 Jeff Law <law@redhat.com>
2173 * passes.c (init_optimization_passes): Replace copy propagation
2174 passes immediately after DOM with phi-only copy propagation
2175 pases. Add phi-only copy propagation pass after first DOM pass.
2176 * tree-pass.h (pass_phi_only_copy_prop): Declare.
2177 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
2178 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
2179 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
2180 to init_copy_prop. Callers updated.
2181 (do_phi_only_copy_prop): New function.
2182 (pass_phi_only_copy_prop): New pass descriptor.
2184 2005-09-27 Nick Clifton <nickc@redhat.com>
2186 * libgcc2.c (__popcount_tab): Remove redundant prototype.
2188 2005-09-26 Jason Merrill <jason@redhat.com>
2191 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
2193 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
2195 2005-09-26 James E Wilson <wilson@specifix.com>
2197 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
2198 copyright. Add gcc copyright plus libgcc exception.
2199 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
2201 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
2203 2005-09-26 Jeff Law <law@redhat.com>
2205 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
2206 about when to iterate.
2208 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
2211 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
2212 for __complex__ double in -mcpu=G5 mode.
2214 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
2216 PR tree-optimization/23942
2217 * Makefile.in (SCEV_H): Depends on PARAMS_H.
2218 * tree-scalar-evolution.c: Include params.h.
2220 (follow_ssa_edge, follow_ssa_edge_in_rhs,
2221 follow_ssa_edge_in_condition_phi_branch,
2222 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
2223 Change return type to t_bool. Use a parameter to limit the size of
2224 trees that are walked before stopping
2225 (analyze_evolution_in_loop): Initialize the limit to 0.
2226 (follow_ssa_edge): Give up by returning t_dont_know if the limit
2227 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
2229 2005-09-26 Uros Bizjak <uros@kss-loka.si>
2232 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
2233 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
2235 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
2237 * combine.c (make_extraction): Check for valid use of subreg.
2239 2005-09-26 Uros Bizjak <uros@kss-loka.si>
2242 * config/i386/i386.md ("*fistdi2_1"): New pattern.
2243 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
2244 ("fist<mode>2_with_temp"): Use only register operands.
2246 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
2248 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
2249 CALL_INSN_FUNCTION_USAGE.
2251 2005-09-26 Richard Guenther <rguenther@suse.de>
2254 * gcse.c: Include hashtab.h, define ldst entry hashtable.
2255 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
2256 (ldst_entry): Use the hashtable instead of list-walking.
2257 (find_rtx_in_ldst): Likewise.
2258 (free_ldst_entry): Free the hashtable.
2259 (compute_ld_motion_mems): Create the hashtable.
2260 (trim_ld_motion_mems): Remove entry from hashtable if
2261 removing it from list.
2262 (compute_store_table): Likewise^2.
2263 (store_motion): Free hashtable in case we did not see
2266 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
2268 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
2269 and arg1 if we are passing them to fold_build2.
2271 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
2274 * config/i386/i386.c (ix86_function_regparm): Fix the test for
2277 2005-09-25 Richard Henderson <rth@redhat.com>
2279 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
2280 SYMBOL_REF_TLS_MODEL to be correct.
2282 2005-09-24 Richard Henderson <rth@redhat.com>
2284 * ipa-type-escape.c (discover_unique_type): Remove dead code at
2285 end of function. Reindent.
2287 2005-09-24 Ian Lance Taylor <ian@airs.com>
2289 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
2290 NEGATE_EXPR/BIT_NOT_EXPR case.
2292 2005-09-24 Richard Henderson <rth@redhat.com>
2294 * c-common.c (handle_mode_attribute): When not modifying in place,
2295 create subtypes for enumerations.
2296 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
2297 * gimplify.c (create_tmp_from_val): Likewise.
2299 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
2301 * config/i386/i386.md (*tls_global_dynamic_64,
2302 *tls_local_dynamic_base_64): Add missing mode to call.
2303 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
2305 2005-09-24 Jan Hubicka <jh@suse.cz>
2307 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
2308 (cgraph_clone_node): Likewise.
2309 * cgraph.h (cgraph_clone_edge): Update prototype.
2310 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
2311 duplicated prototypes; add updating argument.
2312 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
2313 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
2315 (cgraph_mark_inline_edge): Likewise.
2316 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
2317 (cgraph_flatten_node): Likewise.
2318 (cgraph_decide_recursive_inlining): Likewise.
2319 (cgraph_decide_inlining_of_small_function): Likewise.
2320 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2322 2005-09-23 David Edelsohn <edelsohn@gnu.org>
2323 Pete Steinmetz <steinmtz@us.ibm.com>
2325 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
2326 (rldic.): Set type to "compare".
2328 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
2329 mfjmpr for MFCTR/MFLR.
2330 (movdf_hardfloat64): Same.
2331 (movdf_softfloat64): Same. Correct order of store and move types.
2332 (movti_string): Set type to store_ux/load_ux.
2333 (load_multiple): Set type to load_ux.
2334 (store_multiple): Set type to store_ux.
2335 (movmemsi): Set type to store_ux.
2336 (output_cbranch direct_return): Set type to jmpreg.
2337 (stmw): Set type to store_ux.
2338 (lmw): Set type to load_ux.
2339 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
2340 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
2341 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
2342 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
2343 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
2344 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
2345 (rios1-fpstore): Increase latency to 3.
2346 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
2347 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
2349 2005-09-23 David Edelsohn <edelsohn@gnu.org>
2350 Andrew Pinski <pinskia@physics.uc.edu>
2352 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
2353 operand2 constraint to "b".
2354 (sync_<fetchop_name>di_internal): Same.
2355 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
2357 (sync_old_<fetchop_name>di_internal): Same.
2358 (sync_new_<fetchop_name>si_internal): Same.
2359 (sync_new_<fetchop_name>di_internal): Same.
2361 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
2364 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
2365 case, define as macros.
2367 PR rtl-optimization/23837
2368 * optabs.c (no_conflict_move_test): Don't set must_stay for a
2369 clobber / clobber match between dest and p->first.
2371 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
2372 (no_conflict_move_test): Update comments.
2374 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
2376 * doc/install.texi: Update URL for Jacks.
2377 * doc/sourcebuild.texi: Likewise.
2379 2005-09-22 David Edelsohn <edelsohn@gnu.org>
2382 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
2383 registers when choosing register preferences.
2384 (movdf_hardfloat64): Same.
2386 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
2388 * expmed.c (expand_shift): Don't use the target of the rotate as
2389 target for the first expanded shift insn.
2390 * testsuite/gcc.dg/20050922-1.c: Testcase added.
2392 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
2394 PR tree-optimization/22438
2395 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
2396 preserved iv rhs rewriting specially.
2398 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
2400 * tree-data-ref.c (analyze_array_indexes): Only estimate when
2401 estimate_only is true.
2402 * tree-flow.h (ref_contains_indirect_ref): New prototype.
2403 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
2404 tree-ssa-structalias.c
2405 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
2406 ref_contains_indirect_ref.
2407 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
2409 2005-09-21 DJ Delorie <dj@redhat.com>
2411 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
2413 (mn10300_return_in_memory): Support variable size types also.
2414 (mn10300_pass_by_reference): Likewise.
2415 (mn10300_function_value): New.
2416 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
2417 (FUNCTION_OUTGOING_VALUE): Likewise.
2418 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
2419 * doc/invoke.texi: Document it.
2421 2005-09-21 Uros Bizjak <uros@kss-loka.si>
2424 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
2425 force integer op1 into register for XFmode compares.
2427 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
2430 * expmed.c (alg_code): Add alg_impossible.
2431 (alg_hash_entry): Add cost.
2432 (synth_mult): Record alg_impossible in the hash table if
2433 multiplication by a given integer is impossble within the
2434 limit. Speed up using alg_impossible.
2436 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
2438 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
2439 argument. Allow and set any offset if needs_anyoffset is passed
2441 (get_constraint_for): Add argument here too.
2443 (do_structure_copy): Pass NULL to get_constraint_for.
2444 (handle_ptr_arith): Ditto.
2445 (find_func_aliases): Ditto.
2447 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
2449 PR rtl-optimization/23898
2450 * output.h (get_attr_min_length): Declare.
2451 * final.c (get_attr_length_1): New function, broken out of:
2453 (get_attr_min_length): New function.
2454 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
2455 (duplicate_computed_gotos): Likewise.
2456 * genattr.c (insn_min_length): Generate declaration.
2457 * genattrtab.c (min_fn, min_attr_value): New functions.
2458 (make_length_attrs): Generate insn_min_length.
2460 2005-09-20 Steve Ellcey <sje@cup.hp.com>
2462 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
2464 2005-09-20 Richard Henderson <rth@redhat.com>
2466 PR tree-optimization/24059
2467 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
2470 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
2472 * c.opt (fextended-identifiers): New.
2473 * c-opts.c (c_common_handle_option): Handle
2474 -fextended-identifiers.
2475 * doc/cpp.texi: Update documentation of extended identifiers.
2476 * doc/cppopts.texi (-fextended-identifiers): Document.
2478 2005-09-20 Jakub Jelinek <jakub@redhat.com>
2480 PR tree-optimization/23929
2481 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
2484 PR tree-optimization/23818
2485 * tree-stdarg.c (execute_optimize_stdarg): Call
2486 calculate_dominance_info.
2488 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
2490 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
2491 (analyze_siv_subscript_cst_affine): Add weak SIV test.
2492 (compute_overlap_steps_for_affine_1_2): Use
2493 get_number_of_iters_for_loop.
2494 (analyze_subscript_affine_affine): Check whether difference is
2496 Use get_number_of_iters_for_loop.
2497 Check whether overlap occurs outside of bounds.
2498 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
2500 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
2502 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
2503 base register if possible.
2505 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
2507 PR tree-optimization/18463
2508 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
2509 converting it directly is not possible.
2510 (chrec_convert_aggressive): New function.
2511 * tree-chrec.h (chrec_convert_aggressive): Declare.
2512 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
2513 Fold chrec conversions aggressively if asked to.
2514 (instantiate_parameters): Modified because of changes in
2515 instantiate_parameters_1.
2517 2005-09-19 Richard Henderson <rth@redhat.com>
2519 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
2520 (reduc_splus_v2df): New.
2522 2005-09-19 Richard Sandiford <richard@codesourcery.com>
2524 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
2525 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
2527 2005-09-19 Richard Henderson <rth@redhat.com>
2529 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
2532 2005-09-19 Richard Henderson <rth@redhat.com>
2534 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
2535 (ia64_expand_dot_prod_v8qi): New.
2536 * config/ia64/ia64-protos.h: Update.
2537 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
2538 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
2539 sdot_prodv8qi, sdot_prodv4hi): New.
2540 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
2542 2005-09-19 Richard Henderson <rth@redhat.com>
2545 * real.c (exact_real_truncate): Return false if the format cannot
2546 represent the number as a normal.
2548 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
2549 for a memory source.
2551 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
2553 * tree-ssa-operands.c (swap_tree_operands): Export.
2554 * tree.h (swap_tree_operands): Declare.
2555 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
2556 Call swap_tree_operands.
2558 2005-09-19 Richard Henderson <rth@redhat.com>
2560 * tree-flow.h (merge_alias_info): Declare.
2561 * tree-ssa-copy.c (merge_alias_info): Export.
2562 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
2563 (vect_create_data_ref_ptr): Use create_iv directly.
2564 (vectorizable_load): Use correct types for integer constants.
2565 (vect_generate_tmps_on_preheader): Likewise.
2566 (vect_gen_niters_for_prolog_loop): Likewise.
2568 2005-09-19 Steven Bosscher <stevenb@suse.de>
2570 PR rtl-optimization/23943
2571 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
2573 2005-09-18 Jan Hubicka <jh@suse.cz>
2575 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
2577 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
2579 * varasm.c (output_constant): Do not abort on conversions to union
2580 types between different sizes.
2582 2005-09-18 Richard Guenther <rguenther@suse.de>
2585 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
2588 2005-09-18 Paul Brook <paul@codesourcery.com>
2590 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
2592 2005-09-17 Richard Henderson <rth@redhat.com>
2594 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
2595 * tree-ssa-loop.c (pass_vect_dce): Remove.
2596 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
2599 2005-09-17 Richard Henderson <rth@redhat.com>
2601 * tree-pass.h (pass_vect_dce): Declare.
2602 * passes.c (init_optimization_passes): Add it.
2603 * tree-flow.h (tree_ssa_dce): Declare.
2604 * tree-ssa-dce.c (tree_ssa_dce): Export.
2605 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
2606 (gate_tree_vectorize): ... here.
2607 (pass_vect_dce): New.
2609 2005-09-17 Jan Hubicka <jh@suse.cz>
2611 * except.c (struct eh_status): Turn region_array into vec.
2612 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
2613 convert_from_eh_region_ranges, find_exception_handler_labels,
2614 current_function_has_exception_handlers, assign_filter_values,
2615 build_post_landing_pads, dw2_build_landing_pads,
2616 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
2617 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
2618 foreach_reachable_handler, can_throw_internal_1,
2619 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
2621 (duplicate_eh_region_1): Update region_array.
2622 (duplicate_eh_regions): Resize region_array and avoid recomputing.
2624 2005-09-17 David Edelsohn <edelsohn@gnu.org>
2627 * expmed.c (expand_mult): Substitute simple register for op0 when
2630 2005-09-17 Richard Henderson <rth@redhat.com>
2632 * expr.c (emit_move_via_integer): Add force argument, pass it on
2633 to emit_move_change_mode. Update callers.
2634 (emit_move_complex): Pass true to new force argument.
2635 * function.c (expand_function_end): Move expand_eh_return call
2636 earlier. Merge sub-word complex values into a pseudo before
2637 copying to the return hard register.
2639 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
2641 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
2642 between different sizes.
2644 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
2648 * passes.c (init_optimization_passes): Register dump files for
2651 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
2653 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
2654 * config/s390/s390.c (s390_overlap_p): New function.
2655 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
2656 peephole2, "*xc" peephole2): Added overlap check to the peephole2
2659 2005-09-16 Richard Guenther <rguenther@suse.de>
2661 * ipa-pure-const.c (static_execute): Free auxiliar information.
2662 * ipa-type-escape.c (discover_unique_type): Free temporary key.
2663 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
2665 2005-09-15 DJ Delorie <dj@redhat.com>
2667 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
2669 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
2671 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2673 (swap_commutative_operands_with_target): New.
2675 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
2677 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
2680 (estimate_iters_using_array): New function.
2681 * tree-data-ref.h (estimate_iters_using_array): Prototype
2682 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
2683 Use estimate_iters_using_array instead of analyze_array.
2685 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
2687 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
2690 2005-09-15 Michael Matz <matz@suse.de>
2692 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
2694 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
2696 PR tree-optimization/23835
2697 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
2698 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
2700 2005-09-14 Richard Henderson <rth@redhat.com>
2702 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
2703 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
2705 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
2707 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
2708 in the ARRAY_TYPE case.
2710 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
2712 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
2714 2005-09-14 Uros Bizjak <uros@kss-loka.si>
2717 * tree-vect-transform.c (vectorizable_operation): Return false for
2718 scalar shift operations and for vector shift operations with
2719 non-invariant shift arguments. Use scalar tree operand op1 as
2720 a shift operand when vector shift insn pattern uses scalar shift
2722 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
2724 2005-09-14 Olivier Hainque <hainque@adacore.com>
2726 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
2727 value if it has side-effects.
2729 2005-09-14 David Edelsohn <edelsohn@gnu.org>
2732 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
2734 2005-09-14 Alan Modra <amodra@bigpond.net.au>
2736 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
2737 passed as NAME as if it were label at start of function code.
2739 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
2741 * config/sh/sh.md (*movv4sf_i): Add general register cases to
2744 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
2746 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
2747 as early clobber. Rewrite so the PIC register is not implicitly used.
2749 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2751 * tree.c (annotate_with_file_line): Compare line numbers before
2754 2005-09-13 Uros Bizjak <uros@kss-loka.si>
2757 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
2758 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
2760 2005-09-13 Ian Lance Taylor <ian@airs.com>
2762 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
2763 than a HOST_WIDEST_INT to gen_doloop_begin.
2765 2005-09-13 Diego Novillo <dnovillo@redhat.com>
2767 * tree-dfa.c (dump_variable): Guard against NULL annotations.
2769 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
2771 PR tree-optimize/23817
2772 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
2774 2005-09-13 Alan Modra <amodra@bigpond.net.au>
2777 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
2778 word before changing the stack pointer. Use gen_frame_mem for MEMs.
2779 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
2780 (restore_stack_nonlocal): Likewise.
2781 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
2783 2005-09-12 Ian Lance Taylor <ian@airs.com>
2786 * c.opt (ffriend-injection): New C++ option.
2787 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
2788 (C++ Dialect Options): Document -ffriend-injection.
2790 2005-09-12 Josh Conner <jconner@apple.com>
2793 * ipa-reference.c (static_execute): Don't mark variables in
2794 named sections TREE_READONLY.
2796 2005-09-12 Alan Modra <amodra@bigpond.net.au>
2798 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
2801 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
2803 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
2804 V_MUST_DEF instead of just the first_use_p.
2805 Don't mark the virtual variables for renaming on the statement which
2807 (pass_dse): Remove TODO_update_ssa.
2809 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
2812 * stor-layout.c (compute_record_mode): For records with a single
2813 field, actually check the field's mode size against the type size.
2815 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
2816 registers for TARGET_SHMEDIA.
2817 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
2818 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
2819 of GENERAL_REGS and FP_REGS.
2821 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
2823 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
2825 2005-09-12 Alan Modra <amodra@bigpond.net.au>
2827 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
2828 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
2829 are omitted. Exclude stack_tie insn too.
2831 2005-09-11 David Edelsohn <edelsohn@gnu.org>
2833 PR rtl-optimization/23098
2834 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
2836 * config/rs6000/rs6000.md (movdf splitter): Use
2837 const_double_operand predicate for TARGET_POWERPC64.
2838 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
2839 SYMBOL_REF method to ABI_V4.
2841 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
2842 replace_equiv_address.
2843 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
2844 rs6000_sr_alias_set and MEM_NOTRAP.
2845 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
2847 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
2849 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
2850 handle CALL_EXPR again.
2852 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
2854 * arm/predicates.md (alignable_memory_operand): Delete.
2856 2005-09-10 Richard Henderson <rth@redhat.com>
2859 * dbxout.c (dbxout_expand_expr): New.
2860 (dbxout_symbol): Use it.
2862 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
2864 * arm.c (arm_gen_rotated_half_load): Delete.
2865 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
2866 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
2867 (thumb_set_return_address): Likewise.
2868 (thumb_load_double_from_address): Use adjust_address.
2869 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
2870 (extendhsisi2_mem, movhi_bytes): Use change_address.
2871 (movhi): Use widen_memory_access.
2872 (reload_out_df): Use replace_equiv_address.
2873 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
2875 2005-09-09 Richard Henderson <rth@redhat.com>
2878 * dbxout.c: Include expr.h.
2879 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
2880 (dbxout_symbol): Handle DECL_VALUE_EXPR.
2881 * Makefile.in (dbxout.o): Add EXPR_H.
2883 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
2885 PR tree-optimization/23509
2886 * tree-cfg.c (replace_uses_by): Use replace_exp.
2887 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
2888 pointers have name_mem_tag or type_mem_tag set.
2890 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
2892 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
2893 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
2894 of wrongly accessing operands.
2896 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
2898 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
2899 * tree-chrec.c: Include tree-scalar-evolution.h.
2900 (chrec_convert): Instantiate the base and step before calling
2901 scev_probably_wraps_p that would fail on parametric evolutions.
2902 Collect all the fails into a single section failed_to_convert,
2903 print a diagnostic, and return chrec_dont_know instead of calling
2905 * tree-scalar-evolution.c (loop_closed_phi_def): New.
2906 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
2908 (scev_const_prop): Don't replace the definition of a loop closed ssa
2909 phi node by itself, or by another loop closed ssa phi node.
2910 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
2911 that base and step are defined.
2913 2005-09-09 Richard Guenther <rguenther@suse.de>
2916 * fold-const.c (fold_ternary): Check truth_value_p before
2917 calling invert_truthvalue.
2919 2005-09-09 Nick Clifton <nickc@redhat.com>
2921 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
2922 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
2923 dimension of these arrays.
2924 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
2926 * longlong.h: Only provide a prototype for the __clz_tab[] array
2927 if this header has not been included from libgcc2.h.
2928 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
2930 Provide prototypes for exported functions.
2931 Use the __clz_tab[] and __popcount_tab[] arrays provided by
2934 2005-09-08 Josh Conner <jconner@apple.com>
2938 * expr.c (expand_expr_addr_expr_1): Don't invoke
2939 expand_simple_binop for EXPAND_INITIALIZER.
2941 2005-09-08 Richard Henderson <rth@redhat.com>
2944 * toplev.c (wrapup_global_declaration_1): Split out ...
2945 (wrapup_global_declaration_2): ... from ...
2946 (wrapup_global_declarations): ... here. Return bool.
2947 (check_global_declaration_1): Split out ...
2948 (check_global_declarations): from here.
2949 (emit_debug_global_declarations): New.
2950 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
2951 check_global_declaration_1, emit_debug_global_declarations): Declare.
2952 * c-decl.c (c_write_global_declarations_1): Don't create a vector
2953 of decls. Call wrapup_global_declaration_1,
2954 wrapup_global_declaration_2, check_global_declaration_1 directly.
2955 (c_write_global_declarations_2): New.
2957 (c_write_global_declarations): Call c_write_global_declarations_2.
2958 * langhooks.c (write_global_declarations): Call
2959 emit_debug_global_declarations.
2961 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
2962 remove decls that have DECL_RTL_SET_P.
2963 * passes.c (rest_of_decl_compilation): Invoke
2964 cgraph_varpool_finalize_decl for all but functions.
2966 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
2968 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
2969 the result of a conversion if the new min and max cannot be compared.
2971 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
2973 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
2974 (override_options): Setting s390_sr_alias_set removed.
2975 (save_fpr, save_gprs): Set alias set to vararg or frame.
2976 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
2977 s390_sr_alias_set with get_frame_alias_set ().
2978 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
2979 get_varargs_alias_set ().
2981 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2985 * c-parser.c (c_parser_objc_method_definition): If the next
2986 token is not "{", error out and don't start the function.
2988 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
2990 * tree-vrp.c (extract_range_from_expr): Move the check for non
2991 nullness after the check for gimple invariant.
2993 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2995 * tree.c (host_integerp, tree_low_cst): Correct function comment.
2997 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3000 * config/m32r.md (movmemsi_internal): Canonicalize order of
3001 operands in PLUS component of template.
3003 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
3005 * reload1.c (fixup_eh_region_note): Remove assertion.
3006 (fixup_abnormal_edges): Reverted removal of call to
3007 find_many_sub_basic_blocks made on 2005-08-31.
3009 2005-09-07 Richard Henderson <rth@redhat.com>
3011 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
3012 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
3013 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
3014 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
3015 rearrange for better packing.
3016 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
3017 (lookup_cfa_1): Remove inline marker.
3018 (cfa_equal_p): Split out of ...
3019 (def_cfa_1): ... here. Use INVALID_REGNUM.
3020 (build_cfa_loc): Handle !cfa->indirect.
3021 (frame_pointer_cfa_offset): New.
3022 (dbx_reg_number): Assert register elimination performed; do
3023 leaf register remapping.
3024 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
3025 (eliminate_reg_to_offset): New.
3026 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
3027 for verifiably local stack frame addresses; re-base to CFA.
3028 (mem_loc_descriptor): Remove can_use_fbreg argument.
3029 (concat_loc_descriptor, loc_descriptor): Likewise.
3030 (containing_function_has_frame_base): Remove.
3031 (rtl_for_decl_location): Don't do register elimination or
3032 leaf register remapping here.
3033 (secname_for_decl): Split out from ..
3034 (add_location_or_const_value_attribute): ... here.
3035 (convert_cfa_to_loc_list): New.
3036 (compute_frame_pointer_to_cfa_displacement): New.
3037 (gen_subprogram_die): Use them.
3038 * tree.h (frame_base_decl): Remove.
3039 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
3040 (prologue_stack_adjust): Remove.
3041 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
3042 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
3043 (set_frame_base_location): Remove.
3044 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
3045 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
3046 (vt_add_function_parameters): Don't eliminate_regs.
3047 (vt_initialize): Don't create frame_base_decl.
3049 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3051 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
3052 version of GNU binutils for 4.x and later.
3054 2005-09-06 Mark Mitchell <mark@codesourcery.com>
3056 * ggc-page.c (ggc_push_context): Remove.
3057 (ggc_pop_context): Likewise.
3058 * ggc.h (ggc_push_context): Remove.
3059 (ggc_pop_context): Likewise.
3061 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
3064 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
3065 returning from an interrupt handler.
3067 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
3070 * config/arc/arc.c (output_shift): Add check for loop count when
3073 2005-09-06 Steven Bosscher <stevenb@suse.de>
3075 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
3077 (abs_replacement): Likewise.
3078 (pass_phiopt): Remove TODO_update_ssa.
3080 2005-09-06 Jakub Jelinek <jakub@redhat.com>
3083 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
3084 if "return with no value, in function returning non-void" warning
3086 * tree-cfg.c (execute_warn_function_return): Don't look at
3087 RETURN_EXPRs with TREE_NO_WARNING set.
3090 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
3091 for internal functions doesn't use registers used by global registers
3092 variables. Use fewer register parameters if there are global register
3095 2005-09-06 Olivier Hainque <hainque@adacore.com>
3096 Eric Botcazou <ebotcazou@adacore.com>
3099 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
3100 when we would be extracting outside its bit span (bitpos+bitsize
3101 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
3102 Ada unchecked conversions.
3104 2005-09-06 Steven Bosscher <stevenb@suse.de>
3106 * tree-ssa-pre.c (try_look_through_load): New function.
3107 (compute_avail): Use it to try to look through loads for some
3108 more useful expressions.
3110 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
3112 * simplify-rtx.c (simplify_binary_operation_1): Correct the
3113 condition for detecting cases like (a&a) and (a^a).
3115 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
3117 * common.opt: Add option ftree-vect-loop-version.
3118 * params.def: Add --param vect-max-version-checks.
3119 * doc/invoke.texi: Document ftree-vect-loop-version and
3120 --param vect-max-version-checks.
3121 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
3122 may_misalign_stmts and defines for accessors.
3123 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
3124 LOOP_VINFO_MAY_MISALIGN_STMTS.
3125 (destroy_loop_vec_info): VEC_free for
3126 LOOP_VINFO_MAY_MISALIGN_STMTS.
3127 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
3128 Update documentation.
3129 (vect_update_misalignment_for_peel): New.
3130 (vect_enhance_data_refs_alignment): Update to choose loop
3131 peeling or loop versioning if appropriate for the (potentially)
3132 unaligned data references in the loop.
3133 (vect_analyze_data_refs_alignment): Remove call to
3134 vect_enhance_data_refs_alignment so the checks can be done
3136 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
3137 and move up call to vect_analyze_data_refs_alignment.
3138 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
3139 (vect_transform_loop): Add call to loop_version.
3141 2005-09-06 Jakub Jelinek <jakub@redhat.com>
3143 PR rtl-optimization/23098
3144 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
3145 * simplify-rtx.c (constant_pool_reference_p): New function.
3146 * rtl.h (constant_pool_reference_p): New prototype.
3147 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
3148 constant_pool_reference_p in condition and
3149 avoid_constant_pool_reference in preparation statements.
3151 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
3153 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
3154 STRICT_LOW_PART SETs.
3156 2005-09-06 Alan Modra <amodra@bigpond.net.au>
3159 * except.c (sjlj_emit_function_enter): Find the function begin
3160 note even when it's not in first basic block.
3162 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
3164 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
3165 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
3166 * aclocal.m4: Regenerate.
3168 2005-09-05 DJ Delorie <dj@redhat.com>
3170 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
3173 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
3175 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
3176 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
3177 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
3178 Follow spelling conventions.
3179 * doc/invoke.texi: Follow spelling conventions.
3181 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
3183 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
3184 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
3185 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
3187 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
3190 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
3191 (output_stack_adjust): Use gen_tmp_stack_mem.
3192 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
3193 (sh_set_return_address, sh_allocate_initial_value): Likewise.
3194 (sh_get_pr_initial_val): Likewise.
3195 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
3196 (sh_initialize_trampoline): Likewise. Also use adjust_address.
3197 * sh.md (divsi_inv_m0): Use gen_const_mem.
3198 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
3199 (movdf_i4+1): Use gen_tmp_stack_mem.
3200 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
3201 (fpu_switch+2): Likewise.
3202 (movv4sf_i, movv16sf_i): Use adjust_address.
3203 (symGOT_load): Set MEM_NOTRAP_P bit.
3205 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3208 * pa.c (emit_move_sequence): Fix typo in last change.
3210 2005-09-03 Jakub Jelinek <jakub@redhat.com>
3212 PR rtl-optimization/23454
3213 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
3216 2005-09-03 Richard Henderson <rth@redhat.com>
3217 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3220 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
3223 2005-09-02 Nicolas Pitre <nico@cam.org>
3225 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
3226 to bit_count to 32 bits.
3228 2005-08-31 Mark Mitchell <mark@codesourcery.com>
3231 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
3232 generating synthetic loads from volatile lvalues.
3234 005-09-02 Nick Clifton <nickc@redhat.com>
3236 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
3237 __ctzhi2, __clzhi2): New functions.
3239 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
3242 * tree-nested.c (struct var_map_elt): Mark with GTY.
3243 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
3245 (lookup_field_for_decl): Allocate new element in GC memory.
3246 (lookup_tramp_for_decl): Likewise.
3247 (convert_nl_goto_reference): Likewise
3248 (create_nesting_tree): Allocate info in GC memory. Likewise for
3250 (free_nesting_tree): Free with ggc_free instead of free.
3251 (root): New static variable.
3252 (lower_nested_functions): Remove root as local variable. And zero out
3253 root at the end of the function.
3255 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
3257 PR rtl-optimization/20365
3258 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
3259 to short. New member ix.
3260 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
3261 (simplify_plus_minus): Initialize ix members before calling qsort.
3263 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
3265 PR tree-optimization/23626
3266 * tree-cfg.c (replace_uses_by): Clean up eh info.
3268 2005-09-01 DJ Delorie <dj@redhat.com>
3270 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
3273 2005-09-01 David Edelsohn <edelsohn@gnu.org>
3275 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
3276 (rs6000_split_multireg_move): Use replace_equiv_address instead of
3279 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
3281 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
3282 do not issue warning for a variable definition following
3285 2005-09-01 Richard Henderson <rth@redhat.com>
3288 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
3289 conversion to CONST_VECTOR.
3291 2005-09-01 Richard Henderson <rth@redhat.com>
3294 * reload1.c (reload_as_needed): Check !CALL_P before calling
3295 fixup_eh_region_note.
3296 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
3298 2005-09-01 DJ Delorie <dj@redhat.com>
3300 * varasm.c (output_constant): Let the target resolve
3301 conversions of addresses to non-default pointer sizes.
3303 2005-09-01 Nicolas Pitre <nico@cam.org>
3305 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
3306 to alow matching ARM pre-indexed addressing mode.
3307 (arm_override_options): Remove now irrelevant comment.
3309 2005-09-01 Phil Edwards <phil@codesourcery.com>
3311 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
3312 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
3313 * config/i386/vxworks.h: Likewise.
3314 * config/i386/t-vxworksae: New file, for VxWorks AE.
3315 * config/i386/vxworksae.h: Likewise.
3317 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
3319 PR tree-optimization/23410
3320 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
3321 sequence is not wrapping during the first step.
3323 2005-09-01 Jakub Jelinek <jakub@redhat.com>
3326 * dwarf2out.c (base_type_die): Compare char_type_node with
3327 TYPE_MAIN_VARIANT (type), not type.
3329 2005-09-01 Richard Guenther <rguenther@suse.de>
3331 PR tree-optimization/15366
3332 * common.opt: Add -finline-functions-called-once.
3333 Put -fearly-inlining in alphabetically ordered place.
3334 * doc/invoke.texi: Document new option.
3335 * ipa-inline.c (cgraph_decide_inlining): Honour
3336 flag_inline_functions_called_once.
3338 2005-09-01 Jakub Jelinek <jakub@redhat.com>
3340 PR rtl-optimization/23478
3341 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
3342 (alloc_qty): Initialize it.
3343 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
3344 (combine_regs): Combine also n_throwing_calls_crossed fields.
3345 (find_free_reg): Don't attempt to caller-save pseudos crossing
3346 calls that might throw.
3347 * global.c (struct allocno): Add throwing_calls_crossed field.
3348 (global_alloc): Revert 2005-08-22 change. Initialize
3349 throwing_calls_crossed.
3350 (find_reg): Don't attempt to caller-save pseudos crossing calls that
3353 2005-09-01 Alan Modra <amodra@bigpond.net.au>
3356 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
3357 (mask64_operand): Reinstate code prior to 2005-06-11 change.
3358 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
3359 (and64_2_operand): Tweak to use predicate.
3360 (and_operand): Adjust for mask_operand changes.
3361 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
3362 (print_operand): Likewise.
3363 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
3364 (mask64_1or2_operand): Delete.
3365 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
3366 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
3367 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
3368 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
3369 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
3370 (rotldi3_internal4): Likewise.
3371 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
3372 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
3373 (ashldi3_internal7): Likewise.
3374 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
3375 (ashldi3_internal, ashldi3_internal9 split): Likewise.
3376 (anddi3 split): Don't match mask64_operand.
3377 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
3378 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
3379 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
3380 't' splitter predicate.
3381 (movdi_internal64 + 2): Revert 2005-06-11 change.
3383 2005-08-31 DJ Delorie <dj@redhat.com>
3385 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
3386 (m32c_asm_integer): Add support for 32 bit pointers.
3388 2005-08-31 Richard Henderson <rth@redhat.com>
3390 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
3391 component-like references for setting MEM_NOTRAP_P.
3393 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
3394 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
3396 2005-08-31 Richard Henderson <rth@redhat.com>
3398 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
3399 into a pseudo before applying gen_lowpart.
3401 2005-08-31 Geoffrey Keating <geoffk@apple.com>
3403 * doc/install.texi (Specific): Update cctools version required
3404 for full functionality.
3405 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
3406 linkers as -macosx_version_min.
3408 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
3411 * sh.c (print_operand, %R and %S): Add handling of floating point
3412 registers, memory, constants and invalid operands.
3414 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
3416 * ipa-pure-const.c: Change dump name.
3418 2005-08-31 Uros Bizjak <uros@kss-loka.si>
3421 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
3422 to "reg_or_0_operand".
3423 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
3425 2005-08-31 Dale Johannesen <dalej@apple.com>
3427 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
3428 loops that count down.
3430 2005-08-31 Richard Henderson <rth@redhat.com>
3433 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
3434 (fixup_eh_region_note): New.
3435 (reload_as_needed): Call it.
3436 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
3437 don't call find_many_sub_basic_blocks; call verify_flow_info.
3438 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
3439 (keep_stack_depressed): Likewise.
3440 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
3442 2005-08-31 Richard Henderson <rth@redhat.com>
3444 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
3447 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
3449 * expr.c (expand_expr_real_1): Compare size of address
3450 mode to target's address mode size in deciding expansion of
3451 the constant address.
3453 2005-08-31 Richard Guenther <rguenther@suse.de>
3456 * expr.c (all_zeros_p): New function.
3457 (expand_expr_real_1): Handle the case of an all-zero
3458 non-addressable constructor separately.
3460 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
3462 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
3463 arguments, adjust all callers.
3464 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
3466 2005-08-30 Richard Henderson <rth@redhat.com>
3469 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
3470 whenever the mode sizes match.
3472 2005-08-31 Alan Modra <amodra@bigpond.net.au>
3474 * calls.c (load_register_parameters): Fix comment typo.
3475 * expr.c (emit_push_insn): Comment formatting.
3477 2005-08-30 Ian Lance Taylor <ian@airs.com>
3479 * config/i386/x-cygwin (host-cygwin): Change dependency from
3480 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
3482 2005-08-29 Geoffrey Keating <geoffk@apple.com>
3484 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
3487 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
3490 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
3491 call to ggc_collect.
3493 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
3496 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
3497 beginning. Remove $(INCLUDES) from all the rules, if following
3498 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
3500 2005-08-29 Jakub Jelinek <jakub@redhat.com>
3503 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
3504 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
3505 not constant, but maxlen is, don't set len to maxlen, rather
3506 set maxlen to len if len is a constant.
3508 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
3510 PR tree-optimization/23475
3511 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
3514 2005-08-28 Daniel Berlin <dberlin@dberlin.org>