1 2005-08-16 James E Wilson <wilson@specifix.com>
3 PR tree-optimization/21105
4 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7 2005-08-16 David Edelsohn <edelsohn@gnu.org>
9 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
10 (neg_ltu<mode>): Same.
12 (neg_gtu<mode>): Same.
14 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
16 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
17 (fold_builtin_isdigit): Use fold_buildN.
18 (build_function_call_expr): Likewise.
19 * c-typeck.c (c_finish_loop): Likewise.
21 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
22 Richard Shann <rshann@superh.com>
25 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
27 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
29 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
31 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
34 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
35 arm_compure_save_reg0_reg12_mask to determine when the PIC register
38 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
41 * fold-const.c (build_range_check): Disable optimization for function
42 pointer expressions on targets that require function pointer
45 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
47 * simplify-rtx.c (simplify_const_relational_operation): When
48 extracting arguments of a COMPARE, recompute the mode as well.
50 2005-08-15 Ian Lance Taylor <ian@airs.com>
52 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
54 2005-08-15 DJ Delorie <dj@redhat.com>
56 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
58 (movsi_splittable): Allow, but split, moves to the stack.
59 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
62 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
64 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
65 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
66 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
68 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
69 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
70 Delete HOST_PTR_PRINTF.
72 * configure, config.in: Regenerate.
74 2005-08-15 David Edelsohn <edelsohn@gnu.org>
76 * config/rs6000/rs6000.md (QHSI): New mode macro.
77 (wd): Extend mode attr for QImode and HImode
78 (dbits): New mode attr.
79 (zero_extend<mode>di2): Convert to mode macro.
81 2005-08-15 Steve Ellcey <sje@cup.hp.com>
84 * doc/invoke.texi (-mgnu-ld): Update description.
87 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
90 * Makefile.in (tree-chrec.o): Depends on real.h.
91 * tree-chrec.c: Include real.h.
92 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
93 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
94 * tree-scalar-evolution.c (add_to_evolution_1,
95 interpret_rhs_modify_expr): Ditto.
97 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
100 * tree-data-ref.c (estimate_niter_from_size_of_data): When
101 step is negative compute the estimation from init downwards to zero.
103 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
105 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
107 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
109 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
111 (legitimate_reload_constant_p): Fix handling of lliXX operands.
112 Accept double-word constants that can be split.
113 * config/s390/s390.md ("movti"): Use 'P' constraint.
114 ("*movdi_31", "*movdf_31"): Likewise.
116 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
118 Fix PR tree-optimization/22615
120 * tree-ssa-structalias.c (solution_set_add): Handle
121 first_vi_for_offset returning NULL.
122 (do_da_constraint): Ditto.
123 (do_sd_constraint): Ditto.
124 (do_ds_constraint): Ditto
125 (find_func_aliases): Ditto.
126 (build_constraint_graph): RHS is allowed be ANYTHING.
127 (first_vi_for_offset): Return NULL if we couldn't find anything at
130 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
132 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
133 over memory as first operand.
135 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
138 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
139 available for setting it.
141 2005-08-14 Ira Rosen <irar@il.ibm.com>
143 PR tree-optimization/23320
144 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
145 data-refs' types instead of base object nullness. Add check for
146 pointer type data-refs before first location comparison. Remove
149 2005-08-14 Andreas Schwab <schwab@suse.de>
151 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
153 2005-08-13 James E Wilson <wilson@specifix.com>
155 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
156 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
157 -fstack-protector-all, --param ssp-buffer-size): Document.
158 (-Wvariadic-macros): Alphabetize.
159 (-fsched-stalled-insns-dep): Add missing 'f'.
161 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
164 2005-08-13 David Edelsohn <edelsohn@gnu.org>
166 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
167 or indirect address operand.
168 (EXTRA_ADDRESS_CONSTRAINT): New.
169 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
171 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
173 PR tree-optimization/22236
174 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
175 successors and predecessors.
176 * tree-chrec.c (chrec_convert): Before converting, check that
177 sequences don't wrap.
178 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
179 (analyze_array): Extern.
180 (find_data_references_in_loop): Remove call to
181 compute_estimated_nb_iterations.
182 * tree-data-ref.h (analyze_array): Declared.
183 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
184 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
185 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
186 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
188 * tree-ssa-loop-ivcanon.c: Fix documentation.
189 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
190 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
191 (infer_loop_bounds_from_undefined): New.
192 (estimate_numbers_of_iterations_loop): Use
193 infer_loop_bounds_from_undefined.
194 (used_in_pointer_arithmetic_p): New.
195 (scev_probably_wraps_p): Pass an extra parameter. Call
196 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
197 (convert_step): Fix documentation.
198 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
199 Use initial_condition_in_loop_num and evolution_part_in_loop_num
200 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
201 scev_probably_wraps_p.
203 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
205 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
206 (s390_register_info): Ignore clobbered_regs information for fixed
207 registers, and only fixed registers.
208 (s390_init_frame_layout): Remove redundant call.
210 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
212 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
213 description of -Wold-style-casts.
215 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
216 Jakub Jelinek <jakub@redhat.com>
218 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
219 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
220 * config/s390/s390.c (print_operand): New output modifier 'G' added.
221 (get_thread_pointer): Renamed to s390_get_thread_pointer.
222 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
223 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
224 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
225 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
226 ("stack_protect_set", "stack_protect_test"): New expanders.
227 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
228 "stack_protect_testdi"): New insn definitions.
230 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
232 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
234 2005-08-12 Paul Brook <paul@codesourcery.com>
236 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
238 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
240 * config/s390/predicates.md (setmem_operand): New predicate.
241 (shift_count_operand): Accept ANDs with special constants as
243 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
244 with special constants.
245 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
246 shift_count_operand with setmem_operand.
248 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
250 * config/s390/s390.c (s390_extract_part, s390_single_part):
252 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
253 (s390_output_mi_thunk): Don't use lg on 31 bit.
254 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
255 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
257 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
259 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
260 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
261 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
262 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
263 with one of the new macros.
265 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
267 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
268 Don't set save_return_addr_p.
269 (s390_register_info): Make clobbered_regs not depending on
272 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
274 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
275 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
277 2005-08-11 James E. Wilson <wilson@specifix.com>
279 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
281 2005-08-11 Jakub Jelinek <jakub@redhat.com>
283 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
284 locations gathered by var-tracking in single entry loc_list
285 over loc_descriptor_from_tree.
287 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
288 pass it down to loc_descriptor.
289 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
290 (containing_function_has_frame_base): Move earlier in the file.
291 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
292 instead of always assuming fbreg can't be used.
294 2005-08-11 David Edelsohn <edelsohn@gnu.org>
296 * config/rs6000/altivec.md: Change constraint "m" to "Z".
297 * config/rs6000/predicates.md (indexed_or_indirect_operand):
298 Accept address wrapped in AND for Altivec.
299 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
300 Strip AND wrapping offset address for Altivec.
302 2005-08-11 Richard Henderson <rth@redhat.com>
305 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
306 before using TYPE_IS_SIZETYPE.
308 2005-08-11 Richard Henderson <rth@redhat.com>
311 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
312 insn types not present on ev4.
313 (alphaev5_insn_pipe): Similarly.
315 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
318 * arm.c (arm_override_options): If the user has selected callee-super-
319 interworking, then enable normal interworking.
321 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
323 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
326 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
328 * doc/rtl.texi: Fix two typos.
330 2005-08-11 Richard Guenther <rguenther@suse.de>
333 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
334 cases where we call to/from functions returning void.
336 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
339 * tree.c (build_pointer_type_for_mode): Robustify.
341 2005-08-10 James E Wilson <wilson@specifix.com>
343 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
344 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
346 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
349 2005-08-10 Eric Christopher <echristo@apple.com>
351 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
352 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
355 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
358 * config/darwin.c (machopic_indirect_data_reference): Use a new register
359 for the high part when generating dynamic-no-pic code.
361 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
363 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
364 (x86_64-*-linux*): Likewise.
366 * config/i386/crtfastmath.c: New file.
367 * config/i386/t-crtfm: Likewise.
369 * config/i386/linux.h (ENDFILE_SPEC): New.
370 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
372 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
375 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
377 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
378 (vec_shl, vec_shr): Document new operations.
379 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
381 2005-08-10 David Edelsohn <edelsohn@gnu.org>
383 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
384 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
385 change predicate to indexed_or_indirect_address.
387 2005-08-10 Richard Sandiford <richard@codesourcery.com>
389 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
390 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
391 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
393 * config/arm/unaligned-funcs.c: New file.
394 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
396 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
398 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
400 * cfglayout.c (pass_insn_locators_initialize): Add dump.
401 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
403 * except.c (pass_convert_to_eh_region_ranges): Add dump.
404 * final.c (pass_shorten_branches): Add dump.
405 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
406 (pass_life): Rename dump.
407 (rest_of_handle_flow2): Remove initial verify_flow_info.
408 * function.c (pass_instantiate_virtual_regs): Add dump.
409 * integrate.c (pass_initial_value_sets): Add dump.
410 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
411 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
412 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
413 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
414 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
415 gate_rtl_unrool_and_peel_loops): New.
416 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
417 rtl_doloop): Do not look at flags.
418 * mode-switching.c (pass_mode_switching): Add dump.
419 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
420 pass_split_before_regstack): Add dump.
421 * regmove.c (pass_stack_adjustments): Add dump.
422 * tree-optimize.c (pass_fixup_cfg): Add dump.
424 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
427 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
428 deciding which instruction sequence to use.
430 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
432 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
433 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
435 2005-08-09 Richard Guenther <rguenther@suse.de>
437 * c-common.c (builtin_function_2): Remove.
438 (def_builtin_1): New function.
439 (c_common_nodes_and_builtins): Use def_builtin_1 to
440 build builtin functions.
442 2005-08-09 Jie Zhang <jie.zhang@analog.com>
444 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
445 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
446 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
449 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
451 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
452 fold_binary instead of fold_build2 since we don't care about the
454 (loop_niter_by_eval): Likewise.
455 (compare_trees): Likewise.
456 (proved_non_wrapping_p): Likewise.
458 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
462 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
463 if the if is really empty.
465 2005-08-09 Steven Bosscher <stevenb@suse.de>
467 PR tree-optimization/23234
468 * tree-ssa-math-opts.c (place_reciprocal): New enum.
469 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
470 argument of the new enum.
471 (execute_cse_reciprocals): Add reciprocals for function arguments
472 on the unique successor edge of the entry block. Update other calls
473 to execute_cse_reciprocals_1.
475 2005-08-08 Richard Henderson <rth@redhat.com>
478 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
480 2005-08-08 Bob Wilson <bob.wilson@acm.org>
482 * expr.c (write_complex_part): Return after handling MEM.
484 2005-08-08 Josh Conner <jconner@apple.com>
486 PR rtl-optimization/23241
487 * combine.c (simplify_comparison): Fix error in determining
488 whether to lift a subreg from comparison.
490 2005-08-08 David Edelsohn <edelsohn@gnu.org>
493 * config/rs6000/altivec.md (vec_init<mode>): New.
494 (vec_set<mode>): New.
495 (vec_extract<mode>): New.
496 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
497 (rs6000_expand_vector_set): New.
498 (rs6000_expand_vector_extract): New.
499 (rs6000_legitimate_offset_address_p): Offset addresses are valid
500 for Altivec modes before reload.
501 (altivec_expand_vec_init_builtin): New.
502 (get_element_number): New.
503 (altivec_expand_vec_set_builtin): New.
504 (altivec_expand_vec_ext_builtin): New.
505 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
507 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
509 * config/rs6000/rs6000.h (rs6000_builtins): Add
510 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
511 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
512 * config/rs6000/rs6000-protos.h: Declare new functions.
514 2005-08-08 Jan Hubicka <jh@suse.cz>
516 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
517 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
518 * i386.md (movdi*): Use pic_32bit_operand.
519 * predicates.md (pic_32bit_operand): New.
521 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
524 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
526 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
528 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
529 (test_for_singularity): Use fold_build2.
531 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
533 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
535 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
537 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
538 (COMMON_ASM_OP) Define.
539 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
540 (ix86_encode_section_info): Likewise.
541 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
542 SUBTARGET_ENCODE_SECTION_INFO.
544 2005-08-06 Richard Henderson <rth@redhat.com>
547 * tree-nested.c (convert_local_reference): Save and restore val_only
548 around component_ref and friends. Clear walk_subtrees by default.
550 2005-08-06 Peter O'Gorman <peter@pogma.com>
553 * gcc.c (process_command): Check the argument to -b has a dash.
554 * doc/invoke.texi: Update -b and -V docs.
556 2005-08-06 James E Wilson <wilson@specifix.com>
558 * config/mips/cross64.h, config/mips/t-cross64: Delete.
560 2005-08-06 Michael Matz <matz@suse.de>
562 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
563 member only if only one insn is associated with the value.
565 2005-08-06 Nick Clifton <nickc@redhat.com>
567 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
569 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
570 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
571 Check symbol flags instead of symbol name mangling.
572 (xstormy16_asm_output_aligned_common): Likewise. Also
573 simplify code since the bss100_section cass is the only case
574 where the below100 code will be triggered.
575 (xstormy16_encode_section_info): Encode below100 attribute
576 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
578 (xstormy16_strip_name_encoding): Delete - this function is no
580 (TARGET_STRIP_NAME_ENCODING): Undefine.
581 * config/stormy16/stormy16-protos.h: Delete prototype for
582 xstormy16_strip_name_encoding.
584 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
586 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
587 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
588 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
589 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
590 config/alpha/predicates.md, config/arc/arc.h,
591 config/arm/arm.h, config/arm/ieee754-df.S,
592 config/arm/ieee754-sf.S, config/bfin/bfin.c,
593 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
594 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
595 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
596 config/m68hc11/m68hc11.h, config/mips/mips.c,
597 config/mips/mips.h, config/mips/openbsd.h,
598 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
599 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
600 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
601 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
602 config/sparc/linux.h, config/sparc/linux64.h,
603 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
604 doc/extend.texi, doc/gcov.texi, doc/install.texi,
605 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
606 typos. Follow spelling conventions.
608 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
611 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
612 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
613 specially. Check for side effects only for COND_EXPR.
614 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
615 return with TREE_NO_WARNING.
617 2005-08-06 Richard Sandiford <richard@codesourcery.com>
619 PR rtl-optimization/23233
620 * loop.c (combine_movables): Require the modes to be the same.
621 (move_movables): Remove handling of cases where the replacement
622 had a different mode to the original.
624 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
626 PR tree-optimization/23128
627 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
628 subtraction wrap, and set TREE_OVERFLOW if they do.
630 2005-08-05 Richard Henderson <rth@redhat.com>
633 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
636 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
639 * reload.c (find_reloads_subreg_address): Pass down TYPE
640 unchanged. Change all callers except find_reloads_toplev.
642 2005-08-05 Michael Matz <matz@suse.de>
644 * genattrtab.c (current_alternative_string): Remove.
645 (SIMPLIFY_ALTERNATIVE): Ditto.
646 (attr_alt_bit_p): Ditto.
647 (alternative_name): Make const char *.
648 (evaluate_eq_attr): Remove use of above things.
649 (simplify_test_exp): Ditto.
650 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
651 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
653 2005-08-04 James E Wilson <wilson@specifix.com>
655 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
656 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
657 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
658 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
659 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
661 2005-08-04 Richard Henderson <rth@redhat.com>
664 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
665 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
666 * tree-sra.c (decide_block_copy): Use it. Disable element copy
667 if we'd have to instantiate too many members.
669 2005-08-04 Richard Henderson <rth@redhat.com>
672 * tree-outof-ssa.c (coalesce_asm_operands): New.
673 (coalesce_ssa_name): Use it. Split out ...
674 (coalesce_phi_operands, coalesce_result_decls): ... these.
676 2005-08-04 Paul Brook <paul@codesourcery.com>
678 * read-rtl.c (read_quoted_string): Break if EOF.
680 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
682 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
683 (fold_build2): Likewise.
684 (fold_build3): Likewise.
685 (fold_build1_stat): New function prototype.
686 (fold_build2_stat): Likewise.
687 (fold_build3_stat): Likewise.
688 * fold-const.c (fold_build1): Rename to ..
689 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
690 through to build1_stat.
691 (fold_build2): Rename to ..
692 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
693 through to build2_stat.
694 (fold_build3): Rename to ..
695 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
696 through to build3_stat.
698 2005-08-04 David Edelsohn <edelsohn@gnu.org>
699 Ian Lance Taylor <ian@airs.com>
701 * function.c (assign_stack_local_1): Do not correct stack slot
702 address if allocation size is smaller than mode size.
704 2005-08-04 Diego Novillo <dnovillo@redhat.com>
707 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
708 (tree_merge_blocks): Propagate anything allowed by
710 Clarify documentation.
711 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
712 SSA form, schedule an update if necessary.
714 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
716 * doc/install.texi (Binaries): Remove broken link to
717 Sinix/Reliant Unix binaries.
719 2005-08-03 Richard Henderson <rth@redhat.com>
722 * function.c (stack_protect_epilogue): Export.
723 * tree.h (stack_protect_epilogue): Declare.
724 * calls.c (expand_call): Call it.
726 2005-08-03 Eric Christopher <echristo@apple.com>
728 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
729 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
732 2005-08-04 Jan Hubicka <jh@suse.cz>
734 * profile.c (branch_prob): Split edges with goto locus on them
735 to get proper line counts.
736 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
738 2005-08-03 Paul Brook <paul@codesourcery.com>
740 * function.c (assign_parms): Round current_function_args_size
741 to PARM_BOUNDARY, not STACK_BOUNDARY.
743 2005-08-03 Geoffrey Keating <geoffk@apple.com>
745 * config/i386/i386.c (x86_elf_aligned_common)
746 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
748 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
750 PR tree-optimization/23157
751 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
752 before emitting them.
754 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
756 PR tree-optimization/19899
757 * Makefile.in (tree-scalar-evolution.o): Add real.h.
758 * tree-scalar-evolution.c: Include real.h.
759 (add_to_evolution): Build constant -1 of correct type.
761 2005-08-03 Jan Hubicka <jh@suse.cz>
763 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
764 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
765 profile updating for complette unrolling.
766 * loop-unroll.c (peel_loop_completely): Use it.
767 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
768 (tree_unroll_loops_completely): Disable code growing unrolling of cold
771 2005-08-03 Paul Brook <paul@codesourcery.com>
773 * combine.c (can_change_dest_mode): New function.
774 (try_combine, simplify_set): Use it.
776 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
778 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
781 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
783 * doc/install.texi (Specific): Adjust link to openavr.org.
784 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
785 (Binaries): Adjust HP-UX Porting Center link.
786 (Binaries): Adjust Free Software Foundation ordering link.
788 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
790 * convert.c (convert_to_integer): Use fold_build1 instead of
791 build1 when converting an integer to an integer.
793 2005-08-02 Richard Henderson <rth@redhat.com>
795 * combine.c (combine_instructions): Don't use reg_equal/equiv
796 results if the mode doesn't match.
798 2005-08-02 Mark Mitchell <mark@codesourcery.com>
800 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
801 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
803 2005-08-02 Richard Henderson <rth@redhat.com>
806 * explow.c (memory_address): Remove special-case for
807 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
809 2005-08-02 Diego Novillo <dnovillo@redhat.com>
812 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
813 number of calls to cleanup_tree_cfg_1.
815 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
817 * doc/invoke.texi: document file extensions .F90 and .F95
819 2005-08-02 Richard Guenther <rguenther@suse.de>
821 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
822 positive if its first argument is positive.
824 2005-08-02 Richard Guenther <rguenther@suse.de>
826 PR tree-optimization/23177
827 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
830 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
832 PR tree-optimization/23129
833 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
834 varying for divisions with anti-ranges.
836 2005-08-02 Jan Hubicka <jh@suse.cz>
838 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
839 * tree-ssa-threadupdate.c (thread_block): Add it here.
841 2005-08-01 James E Wilson <wilson@specifix.com>
843 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
844 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
845 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
847 * config/mips/predicates.md (const_call_insn_operand): Add check for
848 SYMBOL_REF_LONG_CALL_P.
849 * doc/extend.texi (long_call): Document the new attribute.
851 2005-08-01 Ian Lance Taylor <ian@airs.com>
852 Richard Henderson <rth@redhat.com>
854 * Makefile.in (RTL_BASE_H): Add real.h.
855 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
857 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
859 * rtl.c (rtl_check_failed_code_mode): New.
860 * rtl.h (struct rtx_def): Add u.rv.
861 (XCMWINT, XCNMPRV): New.
862 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
863 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
865 2005-08-01 Richard Henderson <rth@redhat.com>
867 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
870 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
872 2005-08-01 Jan Hubicka <jh@suse.cz>
874 * i386-protos.h (asm_preferred_eh_data_format): Declare.
875 * i386.c: Include dwarf2.h
876 (asm_preferred_eh_data_format): New.
877 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
879 2005-08-01 Ian Lance Taylor <ian@airs.com>
881 * config/host-linux.c (linux_gt_pch_get_address): Add new name
882 randomize_va_space for virtual address randomization control.
884 2005-08-01 Steven Bosscher <stevenb@suse.de>
886 * common.opt (flag_ipa_cp): Put in right place to maintain
889 2005-08-01 Jan Hubicka <jh@suse.cz>
891 * profile.c (compute_value_histograms): Fix thinko.
892 * value-prof.c: Include toplev.h
893 (check_counter): New function.
894 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
895 tree_mod_subtract_transform): Add sanity check.
897 2005-08-01 Richard Guenther <rguenther@suse.de>
899 PR tree-optimization/23133
900 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
901 current functions parameter decls to find defs to cse
904 2005-08-01 Richard Guenther <rguenther@suse.de>
906 PR tree-optimization/23109
907 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
908 If trapping math is in effect, use post-dominator information
909 to check if we'd in any case reach a trapping point before
910 doing the reciprocal insertion.
911 (execute_cse_reciprocals): Compute post-dominators, if necessary.
912 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
913 expressions are invariant only if trapping math is not in effect.
915 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
917 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
918 cgraph_function_versioning): New declarations.
919 * cgraphunit.c: Add include to ipa-prop.h.
920 (update_call_expr, cgraph_copy_node_for_versioning,
921 cgraph_function_versioning): New functions.
922 * integrate.c (copy_decl_for_inlining): Remove.
923 * ipa-prop.h (ipa_replace_map): New struct.
924 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
925 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
926 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
927 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
928 ipcp_iterate_stage, ipcp_method_scale_print,
929 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
930 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
931 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
932 ipcp_update_bb_counts, ipcp_update_profiling,
933 ipcp_update_edges_counts): New functions.
934 (ipcp_method_cval_init): Remove restriction regarding local methods.
935 (ipcp_init_stage): Add ipcp_method_compute_scale.
936 (ipcp_insert_stage): Add versioning.
937 (ipcp_structures_print): Add ipcp_method_scale_print.
938 (ipcp_driver): Dump profiling info.
939 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
940 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
941 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
942 (struct inline_data): Add versioning_p, ipa_info, new fields.
943 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
944 declare_return_variable): Replace calls to copy_decl_for_inlining with
946 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
948 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
949 Add argument VERSIONING.
950 (copy_arguments_for_versioning, copy_static_chain,
951 function_versionable_p, tree_versionable_function_p,
952 tree_function_versioning, replace_ref_tree): New functions.
953 * tree-inline.h: Include varray.h.
954 (tree_versionable_function_p, tree_function_versioning,
955 tree copy_decl_for_dup): New declarations.
957 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
959 * ipa-cp.c: New file. Contains IPCP specific functionality.
960 * ipa-prop.h: New file. Contains structures/definitions that can be
961 used by several interprocedural data flow optimizations (and also IPCP).
962 * ipa-prop.c: New file.
963 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
964 * common.opt: Add ipa-cp flag.
965 * timevar.def: Add IPCP optimization.
966 * tree-optimize.c (init_tree_optimization_passes): Schedule
968 * tree-pass.h (pass_ipa_cp): Declare.
970 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
972 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
973 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
974 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
975 config/i386/i386.c, config/mips/mips.h,
976 config/rs6000/rs6000.h, config/sh/sh.c,
977 config/stormy16/stormy16.c: Fix comment typos.
979 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
982 * c-typeck.c (build_binary_op): Use common_type wrapper on
984 (common_type): Update comment.
986 2005-07-31 Steven Bosscher <stevenb@suse.de>
989 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
990 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
991 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
993 2005-07-31 Jan Hubicka <jh@suse.cz>
995 * pretty-print.h (pp_widest_integer): New macro.
996 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
999 2005-07-31 Jan Hubicka <jh@suse.cz>
1001 * output.h (enum section_category): Export from varasm.c
1002 (categorize_decl_for_section): Likewise.
1003 * varasm.c (enum section_category): Kill.
1004 (categorize_decl_for_section): Make global.
1005 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
1007 * i386.c (ix86_section_threshold): New static variable.
1008 (ix86_in_large_data_p, ix86_encode_section_info,
1009 x86_64_elf_unique_section,
1010 x86_64_elf_select_section): New functions.
1011 (TARGET_ENCODE_SECTION_INFO): Define
1012 (override_options): Enable medium model for PIC.
1013 (ix86_expand_prologue): Expand gen_set_got_rex64.
1014 (legitimate_constant_p): Handle new UNSPECs.
1015 (legitimate_pic_address_disp_p): Likewise.
1016 (legitimize_pic_address): Lower MEDIUM model addressing.
1017 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
1018 (enum cmodel): Add MEDIUM_PIC.
1019 (SYMBOL_REF_FAR_ADDR_P): New macro.
1020 (SYMBOL_FLAG_FAR_ADDR): New flag.
1021 * i386.md (movdi): Support medium model.
1022 (set_got_rex64): New pattern.
1023 * i386.opt (mlarge-data-threshold): New flag.
1024 * predicates.md (zext_operand/sext_operand): Deal with medium model.
1025 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
1026 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
1027 TARGET_ASM_UNIQUE_SECTION): New.
1029 * invoke.texi (-mlarge_data_threshold): Document
1031 2005-07-31 Jan Hubicka <jh@suse.cz>
1033 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
1034 (coalesce_vars): Likewise.
1035 * tree-ssa-live.c (coalesce_cost): New.
1036 (build_tree_conflict_graph): Use coalesce_cost.
1037 * tree-ssa-live.h (coalesce_cost): Declare.
1039 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
1041 * arm.md (all peepholes for post-increment operations): Delete.
1042 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
1043 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
1044 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
1045 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
1046 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
1048 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
1050 * fold-const.c (tree_expr_nonnegative_p): Always return true for
1053 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
1056 * doc/invoke.texi: Document -rdynamic.
1058 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
1061 * c-parser.c (c_parser_parms_list_declarator): Call
1062 mark_forward_parm_decls.
1063 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
1064 decls with visibility structure.
1066 2005-07-30 Paul Brook <paul@codesourcery.com>
1068 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
1070 2005-07-30 Paul Brook <paul@codesourcery.com>
1072 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1074 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
1076 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
1078 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1081 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
1082 nested function declarators.
1083 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
1084 (grokparms): Call warn_if_shadowing for parameters used within the
1086 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
1087 not used within the parameter list.
1088 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
1090 2005-07-30 Jan Hubicka <jh@suse.cz>
1092 * expr.c (expand_expr_real_1): Do not load mem targets into register.
1093 * i386.c (ix86_fixup_binary_operands): Likewise.
1094 (ix86_expand_unary_operator): Likewise.
1095 (ix86_expand_fp_absneg_operator): Likewise.
1096 * optabs.c (expand_vec_cond_expr): Validate dest.
1098 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1101 * real.c (real_from_string): Also set last bit if there is a
1102 nonzero hex digit beyond GCC's internal precision after ".".
1104 2005-07-29 David Edelsohn <edelsohn@gnu.org>
1106 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
1107 define_constants. Change duplicate values to unassigned numbers.
1108 Change UNSPEC_SUBS to UNSPEC_VSUBS.
1109 (*altivec_vspltsf): New.
1110 (altivec_vperm_v4sf): Delete.
1111 (altivec_vperm_<mode>): Use mode macro V.
1112 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
1113 (altivec_predicate_v4sf): Delete.
1114 (altivec_predicate_<mode>): Use mode macro V.
1115 (*altivec_lvesfx): New.
1116 (*altivec_stvesfx): New.
1117 (vec_realign_load_v4sf): Delete.
1118 (vec_realign_load_<mode>): Use mode macro V.
1119 * config/rs6000/rs6000.c (generate_set_vrsave): Use
1122 2005-07-29 Mark Mitchell <mark@codesourcery.com>
1125 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
1127 * configure: Regenerated.
1129 2005-07-29 Paul Brook <paul@codesourcery.com>
1131 * doc/install.texi: Add link to GFortran binaries wiki page.
1133 2005-07-29 David Ung <davidu@mips.com>
1135 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
1136 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
1137 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
1138 * config/mips/mips.md (cpu): Add 5kf name.
1139 (includes): Includes 5k.md.
1140 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
1141 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
1144 2005-07-29 Diego Novillo <dnovillo@redhat.com>
1147 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
1148 (cleanup_tree_cfg): ... here.
1149 Call cleanup_tree_cfg_1 until there are no more cleanups to
1152 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
1154 * tree-vrp.c (compare_range_with_value): Return true or false
1155 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
1156 EQ_EXPR respectively.
1158 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
1160 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
1163 2005-07-29 Diego Novillo <dnovillo@redhat.com>
1165 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
1166 (tree_ssa_dominator_optimize): Increment it.
1167 (dump_dominator_optimization_stats): Print it.
1169 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
1170 Steven Bosscher <stevenb@suse.de>
1172 PR rtl-optimization/23117
1173 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
1174 when head == tail. Tidy comment.
1176 2005-07-28 Richard Henderson <rth@redhat.com>
1178 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
1179 * cselib.c (rtx_equal_for_cselib_p): Likewise.
1180 * jump.c (rtx_renumbered_equal_p): Likewise.
1181 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
1182 CONST_INT and CONST_DOUBLE.
1183 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
1184 * reload.c (operands_match_p): Special case CONST_INT and
1185 CONST_DOUBLE; check mode earlier.
1187 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1190 * c-typeck.c (convert_for_assignment): Do not check
1191 DECL_IN_SYSTEM_HEADER on NULL fundecl.
1193 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1196 * c-typeck.c (composite_type): Prefer constant size arrays to
1199 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1202 * real.c (real_from_string): Set last bit if there is a nonzero
1203 hex digit beyond GCC's internal precision.
1205 2005-07-28 Richard Henderson <rth@redhat.com>
1208 * cfgcleanup.c (try_forward_edges): Watch out for end of
1211 2005-07-28 James E Wilson <wilson@specifixinc.com>
1214 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
1216 2005-07-28 Jan Hubicka <jh@suse.cz>
1218 * Makefile.in (rtl-profile.o): Kill all traces of it.
1219 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
1220 * coverage.h (rtl_coverage_counter_ref): Kill.
1221 * opts.c (flag_speculative_prefetching_set): Kill.
1222 (flag_loop_optimize_set): New.
1223 (common_handle_option): Disable loop optimizer when profiling;
1224 do not handle speculative prefetching.
1225 * passes.c (init_optimization_passes): Replace pass_profiling combo
1226 by branch_prob pass.
1227 * profile.c (compute_value_histograms): Update for simplified value
1229 (rtl_register_profile_hooks): Kill.
1230 (pass_profiling): Kill.
1231 (rest_of_handle_branch_prob): Do not profile.
1232 * toplev.c (process_options): Remove speculative prefetching.
1233 * toplev.h (flag_tree_based_profiling): Kill.
1234 * tree-profile.c (prepare_instrumented_value,
1235 tree_gen_interval_profiler, tree_gen_pow2_profiler,
1236 tree_gen_one_value_profiler, do_tree_profiling): Update for
1237 simplified datastructures.
1238 * value-prof.c: Add comment that speculative prefetching was dropped;
1239 update rest of file for simplified datastructures.
1240 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
1241 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
1242 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
1243 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
1244 rtl_mod_subtract, gen_speculative_prefetch,
1245 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
1246 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
1247 (gate_handle_value_profile_transformations,
1248 rest_of_handle_value_profile_transformations,
1249 pass_value_profile_transformations): Kill.
1250 * value-prof.h (histogram_value_t): Remove IL based unions.
1251 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
1252 rtl_profile_hooks): Remove hooks.
1254 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
1256 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
1257 (cgraph_clone_node): Likewise.
1258 * cgraph.h (cgraph_clone_edge): Update prototype.
1259 (cgraph_clone_node): Likewise.
1260 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
1262 (lookup_recursive_calls): Consider profile.
1263 (cgraph_decide_recursive_inlining): Fix updating; use new
1264 probability argument; use profile.
1265 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
1266 * tree-inline.c (copy_bb): Update clal of clone_edge.
1267 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
1269 * invoke.texi (min-inline-recursive-probability): Document.
1271 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1273 * doc/install.texi (Configuration): Update Valgrind homepage.
1275 2005-07-28 Richard Henderson <rth@redhat.com>
1278 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
1279 labels we want to delete.
1280 (cfg_layout_merge_blocks): Likewise.
1282 2005-07-28 Richard Henderson <rth@redhat.com>
1285 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
1286 when expanding to nothing.
1288 2005-07-28 Josh Conner <jconner@apple.com>
1290 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
1291 (cgraph_decide_inlining_of_small_functions): Likewise.
1293 2005-07-28 Josh Conner <jconner@apple.com>
1295 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
1296 direction of badness if negative.
1297 (cgraph_default_inline_p): Add reason to parameters, and assign it
1299 (cgraph_decide_inlining_of_small_functions): New parameter in call
1300 to cgraph_default_inline_p.
1301 (cgraph_decide_inlining_incrementally): Likewise.
1302 * cgraphunit.c (decide_is_function_needed): Likewise.
1303 * cgraph.h (cgraph_default_inline_p): Likewise.
1305 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1307 * builtins.c: Fix comment typo(s).
1308 * genautomata.c: Likewise.
1309 * gimplify.c: Likewise.
1310 * tree-dfa.c: Likewise.
1311 * tree-flow-inline.h: Likewise.
1312 * tree-into-ssa.c: Likewise.
1313 * tree-ssa-alias.c: Likewise.
1314 * tree-ssa-ccp.c: Likewise.
1315 * tree-ssa-copy.c: Likewise.
1316 * tree-ssa-dce.c: Likewise.
1317 * tree-ssa-dom.c: Likewise.
1318 * tree-ssa-operands.c: Likewise.
1319 * tree-tailcall.c: Likewise.
1320 * tree-vectorizer.c: Likewise.
1321 * tree-vrp.c: Likewise.
1324 2005-07-28 Jeff Law <law@redhat.com>
1326 * tree-vrp.c (test_for_singularity): Extracted from ...
1327 (simplify_cond_using_ranges): Attempt to simplify a relational
1328 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
1330 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
1332 PR tree-optimization/22506
1333 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
1334 phis whose argument is constant.
1336 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
1338 PR rtl-optimization/18992
1339 Back out this patch:
1340 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1341 PR optimization/12142
1342 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1343 uses of the register in the SET_SRC. Remove unnecessary argument.
1345 Replace it with this:
1346 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
1347 if flag_non_call_exceptions is set and the insn may trap, pass
1348 pc_rtx as dest for recursion.
1349 In SET_SRC part of SET case, if dest is already set, pass it down
1352 2005-07-28 Jan Hubicka <jh@suse.cz>
1354 * cfg.c (update_bb_profile_for_threading): Use RDIV.
1355 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
1356 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
1358 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
1359 profile when available.
1361 2005-07-28 Jan Beulich <jbeulich@novell.com>
1363 * config/ia64/ia64.c (ia64_load_pair_ok): New.
1364 (ia64_print_operand): Describe and handle 'X'.
1365 (ia64_register_move_cost): Also handle FP_REGS.
1366 (ia64_preferred_reload_class): Likewise.
1367 (ia64_secondary_reload_class): Likewise.
1368 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
1369 it. Also check for ITANIUM_CLASS_FLDP.
1370 * config/ia64/ia64.h (FP_REGNO_P): New.
1371 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
1372 (reg_class): Add FP_REGS.
1373 (REG_CLASS_NAMES): Adjust for it.
1374 (REG_CLASS_CONTENTS): Likewise.
1375 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
1376 (REG_CLASS_FROM_LETTER): Handle 'x'.
1377 (CLASS_MAX_NREGS): Handle FP_REGS.
1378 (MEMORY_MOVE_COST): Likewise.
1379 * config/ia64/ia64.md (itanium_class): Add fldp.
1380 (type): Handle fldp.
1381 (movti_internal): More allowable operand combinations. Use ldfp8 when
1382 splitting unnecessary. Remove predicable attribute. Adjust
1383 itanium_class attribute.
1384 (smuldi3_highpart): Remove outdated comment.
1385 (mulditi3, umulditi3, rotlti3): New expanders.
1386 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
1387 (absti2): Disabled new insn for future reference.
1388 Respective new splitters.
1389 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
1390 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
1391 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
1393 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
1395 PR rtl-optimization/23047
1396 * simplify-rtx.c (simplify_const_relational_operation): Respect
1397 flag_wrapv for comparisons with ABS.
1399 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
1401 PR tree-optimization/22493
1402 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
1403 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
1405 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
1407 * config/frv/frv.opt (moptimize-membar): New.
1409 * doc/invoke.texi: Document -moptimize-membar and its inverse.
1411 * config/frv/frv.h: Remove machine_function definition.
1413 * config/frv/frv.c (struct frv_io): New.
1414 (struct machine_function): Moved from frv.h. Add has_membar_p.
1415 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
1416 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
1417 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
1418 (frv_optimize_membar_global, frv_optimize_membar): New functions.
1419 (frv_reorg): Call frv_optimize_membar when appropriate.
1420 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
1421 (frv_expand_builtin): Adjust calls accordingly.
1422 (frv_io_address_cookie): New function.
1423 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
1424 load or store rather than a special insn. Add ccnstant address and
1425 io-type operands to the membar.
1426 (frv_ifcvt_modify_tests): Unsign regno.
1427 (frv_ifcvt_modify_tests): Same.
1429 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
1430 UNSPEC_OPTIONAL_MEMBAR constant.
1431 (builtin_read_<mode>): Delete.
1432 (builtin_write_<mode>): Delete.
1433 ("optional_membar_<mode>"): Add operand.
1435 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
1436 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
1437 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
1438 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
1439 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
1440 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
1441 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
1442 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
1443 * testsuite/gcc.target/frv/all-read-write-1.c: New.
1445 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
1447 * df.c (df_uses_record): Handle SCRATCH.
1449 2005-07-28 Steven Bosscher <stevenb@suse.de>
1452 * passes.c (rest_of_decl_compilation): If decl is a type and
1453 we have encountered errors, don't emit debug information.
1455 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1457 * params.def: Fixed comment.
1459 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
1462 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
1463 (TARGET_ASM_UNALIGNED_HI_OP): Add.
1464 (TARGET_ASM_UNALIGNED_SI_OP): Add.
1466 2005-07-27 Steven Bosscher <stevenb@suse.de>
1469 * varasm.c (assemble_start_function): Don't do anything that may
1470 require a CFG if the current function is a thunk.
1472 2005-07-25 Geoffrey Keating <geoffk@apple.com>
1474 * doc/install.texi (Prerequisites): Mention that perl is needed
1475 to do export control in libstdc++ targetting Darwin.
1477 2005-07-27 Steven Bosscher <stevenb@suse.de>
1479 PR rtl-optimization/17808
1480 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
1481 (sched_insns_conditions_mutex_p): Split out from...
1482 (add_dependence): ...here. But don't call it from here.
1483 (add_dependence_list): Check sched_insns_conditions_mutex_p
1484 before calling add_dependence.
1485 (add_dependence_list_and_free): Likewise.
1486 (fixup_sched_groups): Likewise.
1487 (sched_analyze_1): Likewise.
1488 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
1489 (sched_analyze): Likewise.
1490 (sched_analyze_insn): Likewise.
1491 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1492 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
1493 dependencies on all COND_EXEC insns to jumps ending basic blocks
1494 when doing intrablock scheduling.
1495 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
1497 2005-07-27 Jeff Law <law@redhat.com>
1499 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
1500 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
1501 equivalency sets, correctly handle the case were vr0 has an
1502 equivalency set, but vr1 does not.
1504 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
1506 PR tree-optimization/23073
1507 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
1508 vect_print_dump_info before fprintf.
1510 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1512 PR tree-optimize/22348
1513 * tree-ssa-loop-niter.c (number_of_iterations_cond):
1514 Fold the partial computation.
1516 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1518 PR tree-optimization/22325
1519 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
1521 * tree-scalar-evolution.c (scev_const_prop): Add generic final
1523 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
1524 (force_var_cost): ... this function.
1525 (compute_phi_arg_on_exit): Export.
1527 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1529 PR tree-optimization/20773
1530 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
1533 2005-07-27 Richard Guenther <rguenther@suse.de>
1535 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
1536 Avoid pushing again if current struct contains only
1537 fields we decomposed.
1539 2005-07-27 Jan Hubicka <jh@suse.cz>
1541 PR tree-optimization/22574
1542 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
1545 * tree-tailcall.c (decrease_profile): New function.
1546 (eliminate_tail_call): Use it.
1548 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
1549 visibility flags correctly in whole program mode.
1551 2005-07-26 Steve Ellcey <sje@cup.hp.com>
1553 PR rtl-optimization/22472
1554 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
1556 2005-07-26 Steven Bosscher <stevenb@suse.de>
1558 PR tree-optimization/22504
1559 * tree-complex.c (expand_complex_addition): Use 'code' instead
1560 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
1562 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
1564 * config.gcc (cpu_type): Add frv case.
1565 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
1566 (supported_defaults): Add fr550 case.
1568 2005-07-26 Diego Novillo <dnovillo@redhat.com>
1571 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
1572 whether a pointer of type T * may point to objects of type T *.
1574 2005-07-26 DJ Delorie <dj@redhat.com>
1576 * configure: Regenerate.
1578 2005-07-26 Dale Johannesen <dalej@apple.com>
1580 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
1582 2005-07-26 Mark Mitchell <mark@codesourcery.com>
1584 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
1585 Clarify use of "build" in name.
1587 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
1589 * doc/extend.texi (Raw read/write Functions): New section.
1590 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
1591 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
1592 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
1593 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
1594 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
1595 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
1596 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
1597 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
1598 * config/frv/frv.c: Add bdesc_loads global.
1599 Add bdesc_stores global.
1600 (frv_init_builtins): Add support for __builtin_{read/write}*.
1601 (frv_volatile_memref): New.
1602 (frv_expand_load_builtin): New.
1603 (frv_expand_store_builtin): New.
1604 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
1605 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
1606 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
1607 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
1608 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
1609 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
1610 (builtin_read_<mode>): New.
1611 (builtin_write_<mode>): New.
1612 (builtin_write64): New.
1613 (optional_membar_<mode>): New.
1615 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
1617 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
1618 (rather than units) against HOST_BITS_PER_WIDE_INT.
1620 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
1622 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
1623 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
1624 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
1625 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
1628 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
1629 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
1630 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
1632 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
1634 2005-07-26 Richard Guenther <rguenther@suse.de>
1636 PR tree-optimization/22486
1637 * fold-const.c (fold_unary): Fold away useless component
1638 references of the form (T *)&T.x, if the address
1641 2005-07-25 James E Wilson <wilson@specifixinc.com>
1643 * dwarf2out.c (add_call_src_coords_attributes): New.
1644 (gen_inlined_subroutine_die): Call it.
1645 (maybe_emit_file, init_file_table): Add comments.
1646 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
1648 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
1649 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
1650 * tree.h (BLOCK_SOURCE_LOCATION): New.
1651 (struct tree_block): New field locus.
1653 2005-07-26 Andreas Schwab <schwab@suse.de>
1655 PR rtl-optimization/23043
1656 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
1657 when allocating a struct unoccr.
1659 2005-07-25 Richard Henderson <rth@redhat.com>
1662 * tree-complex.c (gate_no_optimization): True if errors.
1663 * Makefile.in (tree-complex.o): Update dependencies.
1665 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
1667 * config/frv/predicates.md (integer_register_operand): Use
1670 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1673 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
1675 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1677 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1679 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1680 types when flag_unsafe_math_optimizations is true.
1682 2005-07-25 Mark Mitchell <mark@codesourcery.com>
1684 * gcc.c (option_map): Add --sysroot.
1685 (process_command): Handle --sysroot.
1686 (display_help): Document it.
1687 * doc/cppopts.tex (-isysroot): Document.
1688 * doc/invoke.texi (--sysroot): Document.
1689 * doc/install.texi (--with-build-sysroot): Document.
1691 * Makefile.in (inhibit_libc): New variable.
1692 (INHIBIT_LIBC_CFLAGS): Likewise.
1693 (LIBGCC2_CFLAGS): Include
1694 $(INHIBIT_LIBC_CFLAGS).
1695 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1696 ($(T)crtbegin.o): Do not use @inhibit_libc@.
1697 ($(T)crtend.o): Likewise.
1698 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1699 ($(T)crtendS.o): Likewise.
1700 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1701 ($(T)crtendT.o): Likewise.
1702 (stmp-fixinc): Do not complain about missing headers if
1704 * configure.ac (inhibit_libc): Set it to true/false.
1705 (--with-build-sysroot): New option. Use it to set
1707 * configure: Regenerated.
1709 2005-07-25 Manfred Hollstein <mh@suse.com>
1711 * calls.c (store_one_arg): Fix unsigned comparison warning.
1713 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1716 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1717 (ggc_print_statistics): Initialize variable before use.
1719 2005-07-25 Richard Guenther <rguenther@suse.de>
1721 * tree-dfa.c (mark_new_vars_to_rename): Protect against
1722 calling with a PHI_NODE argument.
1724 * tree-flow-inline.h (overlap_subvar): Protect against
1727 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
1729 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1730 * configure: Regenerate.
1732 2005-07-25 Ira Rosen <irar@il.ibm.com>
1734 * expr.c (highest_pow2_factor): Make extern.
1735 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1736 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1737 record_array_differ_p, array_ptr_differ_p): Likewise.
1738 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1739 additional cases. Call the above functions.
1740 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1741 base_object_differ_p when there are two base objects. Otherwise, compare
1742 base address and offset. Call may_alias_p.
1743 (dump_data_reference): Use a correct field name.
1744 (analyze_array): Make static. Initialize new data-ref fields.
1745 (analyze_indirect_ref): New function.
1746 (init_data_ref): Initialize new data-ref fields.
1747 (strip_conversion): Moved from tree-vect-analyze.c.
1748 (analyze_offset_expr, get_ptr_offset, address_analysis,
1749 object_analysis): Likewise.
1750 (analyze_offset): New function.
1751 (create_data_ref): Likewise.
1752 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1753 dimensions for ARRAY_REFs only.
1754 (build_classic_dist_vector): Make static.
1755 (access_functions_are_affine_or_constant_p): Call macro to get the
1756 address of access functions.
1757 (compute_all_dependences): Add new parameter
1758 compute_self_and_read_read_dependences. Compute self and read-read
1759 dependences if it is true.
1760 (find_data_references_in_loop): Call create_data_ref. Initialize new
1762 (compute_data_dependences_for_loop): Add new parameter
1763 compute_self_and_read_read_dependences. Remove parameter nb_loops,
1764 compute nb_loops. Call compute_all_dependences,
1765 build_classic_dist_vector and build_classic_dir_vector with correct
1767 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1768 with correct parameters. Compare dimensions for ARRAY_REFs only.
1769 (free_data_refs): Call macro to free access functions.
1770 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1771 fields from stmt_vinfo.
1772 (struct base_object_info): New structure.
1773 (struct data_reference): Move fields to base_object_info. Add fields
1774 first_location and object_info for above structures. Move fields from
1775 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1776 aligned_to. Add macros to access the new fields.
1777 Update functions declarations.
1778 * tree-flow.h (is_aliased_with): Declare.
1779 * tree-loop-linear.c (linear_transform_loops): Call
1780 compute_data_dependences_for_loop with correct parameters.
1781 * tree-ssa-alias.c (is_aliased_with): New function.
1782 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
1783 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1784 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1785 vect_base_addr_differ_p, compute_subscript_distance and
1786 build_classic_dist_vector. Add printings. Check absolute value of
1788 (vect_analyze_data_ref_dependences): Go through ddrs instead of
1790 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1791 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1792 to bytes. Add printing.
1793 (vect_compute_data_refs_alignment): Go through loads and stores in one
1795 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1796 vect_analyze_data_ref_access): Likewise.
1797 (vect_analyze_pointer_ref_access): Remove.
1798 (vect_address_analysis, vect_object_analysis): Likewise.
1799 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1800 and analyze data-refs in the loop.
1801 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1802 fields of data-ref instead of stmt. Add init to the offset from the
1804 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1805 (vect_update_init_of_dr): Likewise.
1806 (vect_update_inits_of_drs): Go through loads and stores in one loop.
1807 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1809 (new_loop_vec_info): Initialize new fields.
1810 (destroy_loop_vec_info): Free new fields.
1811 (vect_strip_conversion): Remove.
1812 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1813 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
1814 datarefs. Add new field ddrs.
1815 Add macros for the new fields access.
1816 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1817 base_aligned_p, misalignment, memtag, ptr_info and subvars.
1818 Remove their macros.
1819 * tree.h (highest_pow2_factor): Declare.
1821 2005-07-25 Jakub Jelinek <jakub@redhat.com>
1823 * calls.c (store_one_arg): Check for sibling call MEM arguments
1824 from already clobbered incoming argument area.
1826 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1828 * c-common.c (check_missing_format_attribute): New.
1829 * c-common.h (check_missing_format_attribute): Likewise.
1830 * c-typeck.c (convert_for_assignment): Use it.
1832 2005-07-24 Andreas Schwab <schwab@suse.de>
1834 * config/m68k/m68k.md ("extendqidi2"): When source is an address
1835 register use a word move. Correct operand of ext.w in 68000 code.
1837 2005-07-23 Mark Mitchell <mark@codesourcery.com>
1839 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1840 variables as declarations, rather than definitions.
1842 2005-07-24 Ira Rosen <irar@il.ibm.com>
1844 PR tree-optimization/22526
1845 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1848 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1850 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1851 that C99 reserve for future use. Use it to define clog10,
1852 clog10f and clog10l.
1854 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1856 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1857 * configure.ac: Check for -Wmissing-format-attribute.
1859 * configure: Regenerate.
1861 2005-07-23 Richard Henderson <rth@redhat.com>
1863 PR tree-optimization/22623
1864 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1866 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
1869 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1871 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1873 * Makefile.in (C_TREE_H): Update dependencies.
1874 * c-tree.h: Include toplev.h.
1875 * diagnostic.h (diagnostic_set_info): Add format attribute.
1876 * rtl-error.c (diagnostic_for_asm): Likewise.
1878 2005-07-23 Chao-ying Fu <fu@mips.com>
1880 * config/mips/mips-dsp.md: New file.
1881 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1882 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1884 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1885 MIPS_BUILTIN_BPOSGE32.
1886 (mips_expand_builtin_direct): Add one parameter to indicate that
1887 builtin functions need to return a value.
1888 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1890 (mips_regno_to_class): Add classes for 12 new DSP registers.
1891 (mips_subword): Change to check four HI registers.
1892 (mips_output_move): Output move to and from 6 new DSP accumulators.
1893 (override_options): Make sure -mdsp and -mips16 are not used together.
1894 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
1896 (mips_conditional_register_usage): Disable 6 new DSP accumulators
1898 (print_operand): Add 'q' for printing DSP accumulators.
1899 (mips_cannot_change_mode_class): Check ACC_REGS.
1900 (mips_secondary_reload_class): Check ACC_REGS.
1901 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1902 (mips_register_move_cost): Check ACC_REGS.
1903 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1904 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1905 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1906 (dsp_bdesc): New array.
1907 (bdesc_arrays): Add DSP builtin function table.
1908 (mips_prepare_builtin_arg): Check predicate again after
1910 (mips_expand_builtin): Add one more parameter to
1911 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1912 MIPS_BUILTIN_BPOSGE32.
1913 (mips_init_builtins): Initialize new function types.
1914 (mips_expand_builtin_direct): Check if builtin functions need to
1915 return a value and pass operands properly.
1916 (mips_expand_builtin_bposge): New function.
1917 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1918 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1919 (FIRST_PSEUDO_REGISTER): Increase to 188.
1920 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1921 Update for 12 new DSP registers.
1922 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1923 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1924 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1925 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1926 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1927 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1928 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1929 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1930 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1931 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1932 (REGISTER_NAMES): Add names for 12 new DSP registers.
1933 * config/mips/mips.md: Include mips-dsp.md.
1934 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1935 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1936 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1937 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1938 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1939 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1940 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1941 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1942 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1943 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1944 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1945 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1946 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1947 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1948 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1949 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1950 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1951 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1952 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1953 (UNSPEC_RDDSP): New constants.
1954 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1955 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
1957 * config/mips/mips.opt (-mdsp): New option.
1958 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1959 (reg_imm10_operand): New predicates.
1960 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1961 * doc/invoke.texi (-mdsp): Document new option.
1963 2005-07-22 DJ Delorie <dj@redhat.com>
1965 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1967 * tree-inline.c (inlinable_function_p): Likewise.
1969 2005-07-22 Mark Mitchell <mark@codesourcery.com>
1972 * toplev.c (check_global_declarations): Do not mark undefined
1973 variables as DECL_IGNORED_P.
1974 * varasm.c (first_global_object_name): GTY it.
1975 (weak_global_object_name): Likewise.
1976 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1977 a string to go into {weak,first}_global_object_name.
1979 2005-07-22 DJ Delorie <dj@redhat.com>
1981 * c-format.c (check_function_format): Change warning control
1982 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1984 2005-07-22 Diego Novillo <dnovillo@redhat.com>
1986 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1987 &PTR->FLD a dereference of PTR.
1988 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1989 a potential dereference of PTR.
1991 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
1993 PR rtl-optimization/20370
1994 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1995 call allocate_reg_info if necessary.
1997 PR rtl-optimization/21848
1998 * calls.c (emit_library_call_value_1): For const functions, add
1999 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
2001 PR rtl-optimization/22445
2002 * cselib.c (target.h): Include.
2003 (rtx_equal_for_cselib_p): Allow commutative matches.
2004 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
2005 Remove MODE parameter. Changed all callers.
2007 PR rtl-optimization/22258
2008 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
2010 (try_combine): Use likely_spilled_retval_p.
2012 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
2014 * config.gcc: Add crx-elf support.
2016 * doc/contrib.texi: Mention crx.
2017 * doc/extend.texi: Document crx extensions.
2018 * doc/install.texi: Document crx install.
2019 * doc/invoke.texi: Document crx options.
2020 * doc/md.texi: Document crx constraints.
2022 * config/crx/crx-protos.h: New file.
2023 * config/crx/crx.c: New file.
2024 * config/crx/crx.h: New file.
2025 * config/crx/crx.md: New file.
2026 * config/crx/crx.opt: New file.
2027 * config/crx/t-crx: New file.
2029 2005-07-22 Manfred Hollstein <mh@suse.com>
2031 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
2033 (int_add_graph_edge): Likewise.
2034 (collapse_nodes): Likewise.
2035 (process_unification_queue): Likewise.
2037 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2038 Laurent GUERBY <laurent@guerby.net>
2040 PR tree-optimization/22336
2041 * function.c (record_block_change): Check for
2042 cfun->ib_boundaries_block.
2044 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
2046 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
2047 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
2049 2005-07-21 DJ Delorie <dj@redhat.com>
2051 * toplev.c (warn_deprecated_use): Add warning control to warning
2053 * c-typeck.c (parser_build_binary_op): Likewise.
2054 (c_finish_if_stmt): Likewise.
2055 * c-common.c (check_function_sentinel): Likewise.
2056 (check_nonnull_arg): Likewise.
2058 2005-07-21 Richard Henderson <rth@redhat.com>
2061 * tree-complex.c (complex_ssa_name_components): New.
2062 (cvc_lookup): Allow entry not found.
2063 (create_components): Remove.
2064 (create_one_component_var, get_component_var): New.
2065 (get_component_ssa_name, set_component_ssa_name): New.
2066 (extract_component): Use get_component_ssa_name.
2067 (update_complex_components): Use set_component_ssa_name.
2068 (update_complex_components_on_edge): Likewise.
2069 (update_phi_components): Create new PHI nodes directly, instead
2070 of adding insns to edges.
2071 (tree_lower_complex): Allocate and free complex_variable_components
2072 and complex_ssa_name_components here.
2074 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
2076 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
2077 revert to returning false.
2079 2005-07-21 Uros Bizjak <uros@kss-loka.si>
2082 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
2084 2005-07-21 Uros Bizjak <uros@kss-loka.si>
2087 * config/i386/i386.md (cmpxf): Change operand constraints
2088 to "nonmemory_operand".
2090 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2092 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
2094 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2097 * fold-const.c (fold_build1): Add checksum for the operands.
2098 (fold_build2): Likewise.
2099 (fold_build3): Likewise.
2101 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2104 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
2106 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
2108 * common.opt (-fforward-propagate): Committed by mistake,
2111 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2113 * reg-stack.c: Fix comment typo(s).
2114 * tree-ssa-operands.c: Likewise.
2115 * tree-vectorizer: Likewise.
2117 2005-07-21 Nick Clifton <nickc@redhat.com>
2119 * config/sh/symbian.c: Replace C++ style line comments with C
2120 style line comments.
2121 (symbian_add_attribute): Do not use a ? operator on the LHS of
2123 (sh_symbian_handle_dll_attribute): Change the type of the
2124 method vector to "VEC(tree,gc)*" and use vector accessor
2125 macros to walk over the elements.
2126 (symbian_export_vtable_and_rtti_p): Likewise.
2127 (symbian_class_needs_attribute_p): Likewise.
2129 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
2132 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
2133 initialize targetm.resolve_overloaded_builtin here.
2134 (altivec_expand_overloaded_builtin): Make it non-static.
2135 * config/rs6000/rs6000-protos.h
2136 (altivec_expand_overloaded_builtin): New prototype.
2137 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
2138 targetm.resolve_overloaded_builtin here.
2139 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
2141 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
2142 Zdenek Dvorak <dvorakz@suse.cz>
2144 PR tree-optimization/19210
2145 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
2147 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
2148 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
2149 rely on unproven assumptions.
2150 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
2151 * tree-flow.h (number_of_iterations_exit): Add final parameter.
2152 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
2153 to number_of_iterations_exit.
2154 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
2155 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
2156 * tree-ssa-loop-niter.c (find_loop_niter,
2157 estimate_numbers_of_iterations_loop): Likewise.
2158 (number_of_iterations_exit): Honor the new options.
2159 * doc/invoke.texi (Wunsafe-loop-optimizations,
2160 funsafe-loop-optimizations): Document them.
2162 2005-07-21 Richard Sandiford <richard@codesourcery.com>
2164 PR rtl-optimization/22167
2165 * gcse.c (hoist_code): Fix hoist_exprs[] check.
2167 2005-07-20 Adam Nemet <anemet@lnxw.com>
2169 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
2170 __do_global_dtors_aux longcall.
2172 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
2174 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
2175 (old_special_pred_table): Don't reference
2176 SPECIAL_MODE_PREDICATES.
2177 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
2178 * config/arc/arc.h: Don't mention PREDICATE_CODES.
2179 * config/sh/predicates.h: Don't mention
2180 SPECIAL_MODE_PREDICATES.
2181 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
2184 2005-07-20 DJ Delorie <dj@redhat.com>
2186 * config.gcc: Add m32c-elf support.
2188 * doc/contrib.texi: Mention m32c.
2189 * doc/extend.texi: Document m32c extensions.
2190 * doc/install.texi: Mention m32c.
2191 * doc/invoke.texi: Document m32c options.
2192 * doc/md.texi: Document m32c constraints.
2194 * config/m32c/addsub.md: New file.
2195 * config/m32c/bitops.md: New file.
2196 * config/m32c/cond.md: New file.
2197 * config/m32c/jump.md: New file.
2198 * config/m32c/m32c-lib1.S: New file.
2199 * config/m32c/m32c-lib2.c: New file.
2200 * config/m32c/m32c-modes.def: New file.
2201 * config/m32c/m32c-pragma.c: New file.
2202 * config/m32c/m32c-protos.h: New file.
2203 * config/m32c/m32c.abi: New file.
2204 * config/m32c/m32c.c: New file.
2205 * config/m32c/m32c.h: New file.
2206 * config/m32c/m32c.md: New file.
2207 * config/m32c/m32c.opt: New file.
2208 * config/m32c/minmax.md: New file.
2209 * config/m32c/mov.md: New file.
2210 * config/m32c/muldiv.md: New file.
2211 * config/m32c/predicates.md: New file.
2212 * config/m32c/prologue.md: New file.
2213 * config/m32c/shift.md: New file.
2214 * config/m32c/t-m32c: New file.
2216 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2218 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2219 (stack_protect_set, stack_protect_test): New expanders.
2220 (stack_protect_set_si, stack_protect_set_si_media,
2221 stack_protect_set_di_media, stack_protect_test_si,
2222 stack_protect_test_si_media, stack_protect_test_di_media):
2225 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
2227 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
2229 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
2231 * tree.h (tree_expr_nonzero_p): Export.
2232 * fold-const.c (tree_expr_nonzero_p): Likewise.
2233 Return true for CALL_EXPRs that are alloca calls.
2234 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
2236 * tree-flow.h (expr_computes_nonzero): Remove.
2237 * tree-vrp.c (expr_computes_nonzero): Remove.
2238 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
2239 (extract_range_from_unary_expr): Likewise.
2240 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
2241 tree_expr_nonzero_p.
2243 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
2245 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
2246 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
2247 extra arg "picreg" and use it instead of pic_offset_table_rtx.
2248 All callers changed.
2249 (frame_related_constant_load): New arg "related" which controls
2250 setting of RTX_FRAME_RELATED_P. All callers changed.
2251 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
2252 (bfin_expand_prologue): Add stack limit checking.
2253 * config/bfin/bfin.md (trapifcc): New pattern.
2255 * config/bfin/bfin.c: Include "langhooks.h".
2256 (def_builtin): Go through lang_hooks to call builtin_function.
2258 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
2259 * config/bfin/predicates.md (symbol_ref_operand): New.
2260 (call_insn_operand): Delete. All callers changed to use
2261 register_no_elim_operand.
2262 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
2264 (function_arg): Use it to generate the call's operand 2.
2265 (bfin_longcall_p): New function.
2266 (bfin_expand_call): Extra arg "cookie". All callers and declaration
2267 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
2268 determine if the address needs to be in a REG.
2269 (bfin_handle_longcall_attribute): New function.
2270 (bfin_attribute_table): Add "longcall" and "shortcall".
2271 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
2272 (CUMULATIVE_ARGS): New member call_cookie.
2273 (PREDICATE_CODES): Add symbol_ref_operand.
2274 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
2275 extra USE to the pattern.
2276 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
2277 New patterns, split off call_insn, sibcall_insn, call_value_insn and
2278 sibcall_value_insn; now the new patterns handle direct calls and the
2279 old ones indirect calls.
2280 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
2282 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
2284 * doc/trouble.texi: Update section on handling of empty loops.
2286 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
2288 * config.gcc: Remove support for sparc-*-openbsd*,
2289 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
2291 * config.host: Remove support for i860-*-sysv4* as a host.
2292 * config/i860/*, config/ip2k/*, config/ns32k/*,
2293 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
2294 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
2295 mention obsolete ports.
2297 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2299 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
2301 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
2302 of frame_pointer_rtx.
2303 (sh_expand_epilogue): Likewise.
2304 (sh_set_return_address): Likewise.
2305 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
2306 instead of FRAME_POINTER_REGNUM if needed. Add elimination
2307 offsets from FRAME_POINTER_REGNUM.
2308 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
2309 (sh_register_names): Add initializer for sfp.
2310 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
2311 (VALID_REGISTER_P): Likewise.
2312 (FIRST_PSEUDO_REGISTER): Update.
2313 (DWARF_FRAME_REGISTERS): Define.
2314 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
2315 (HARD_FRAME_POINTER_REGNUM): Define.
2316 (FRAME_POINTER_REGNUM): Redefine.
2317 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
2318 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
2319 from FRAME_POINTER_REGNUM.
2320 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
2321 FRAME_POINTER_REGNUM.
2322 (REG_CLASS_CONTENTS): Add sfp.
2323 (REG_ALLOC_ORDER): Likewise.
2324 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
2325 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
2326 of frame_pointer_rtx.
2327 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2329 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
2331 * fold-const.c (tree_expr_nonnegative_p): Only return true for
2332 ABS_EXPR when flag_wrapv is false because of INT_MIN.
2333 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
2335 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
2338 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2340 Make CONSTRUCTOR use VEC to store initializers.
2341 * c-common.c (complete_array_type): Update to cope with VEC in
2343 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
2344 (pp_c_constructor_elts): New function.
2345 * c-pretty-print.h (pp_c_constructor_elts): Declare.
2346 * c-typeck.c (build_function_call, build_c_cast, digest_init,
2347 struct constructor_stack, struct initializer_stack,
2348 constructor_elements, push_init_level, pop_init_level,
2349 add_pending_init, find_init_member, output_init_element): Update to
2350 cope with VEC in CONSTRUCTOR_ELTS.
2351 * coverage.c (build_fn_info_value, build_ctr_info_value,
2352 build_gcov_info): Likewise.
2353 * expr.c (categorize_ctor_elements_1, store_constructor,
2354 expand_expr_real_1): Likewise.
2355 * fold-const.c (fold_ternary): Likewise.
2356 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
2357 gimplify_init_constructor, gimplify_expr): Likewise.
2358 * tree-dump.c (dequeue_and_dump): Likewise.
2359 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
2361 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
2363 * tree-sra.c (generate_element_init_1): Likewise.
2364 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2365 * tree-ssa-operands.c (get_expr_operands): Likewise.
2366 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2367 * tree-vect-transform.c (vect_get_vec_def_for_operand):
2368 (get_initial_def_for_reduction): Likewise.
2369 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
2370 value handle in annotations.
2371 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
2372 tree_node_structure): Add support for constr_kind.
2373 (build_vector_from_ctor, build_constructor_single,
2374 build_constructor_from_list): New functions.
2375 (build_constructor): Update to take a VEC instead of a TREE_LIST.
2376 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
2377 Update to cope with VEC in CONSTRUCTOR_ELTS.
2378 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
2379 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
2380 CONSTRUCTOR_APPEND_ELT): New macros.
2381 (struct constructor_elt, struct tree_constructor): New data types.
2382 (union tree_node): Add tree_constructor field.
2383 * treestruct.def: Define TS_CONSTRUCTOR.
2384 * varasm.c (const_hash_1, compare_constant, copy_constant,
2385 compute_reloc_for_constant, output_addressed_constants,
2386 initializer_constant_valid_p, output_constant,
2387 array_size_for_constructor, output_constructor): Update to cope with
2388 VEC in CONSTRUCTOR_ELTS.
2389 * vec.h (VEC_empty, VEC_copy): New macros.
2391 2005-07-19 Devang Patel <dpatel@apple.com>
2393 * dbxout.c (dbxout_type): Check Objective-C++ lang.
2395 2005-07-19 Richard Henderson <rth@redhat.com>
2398 * gimplify.c (gimplify_expr): Use main variant type for the temp
2399 destination for a discarded volatile read.
2400 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
2401 casts between non-void types that change volatility.
2403 2005-07-15 DJ Delorie <dj@redhat.com>
2405 * toplev.h: Add comment about the first parameter for warning().
2406 * errors.h: Likewise.
2408 * c.opt (Wpragmas): New.
2409 * doc/invoke.texi: Document it.
2411 * function.c (do_warn_unused_parameter): Add warning control to
2413 * c-decl.c (warn_if_shadowing): Likewise.
2414 * c-lex.c (cb_def_pragma): Likewise.
2415 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2416 (pop_alignment): Likewise.
2417 (handle_pragma_pack): Likewise.
2418 (apply_pragma_weak): Likewise.
2419 (handle_pragma_weak): Likewise.
2420 (handle_pragma_redefine_extname): Likewise.
2421 (add_to_renaming_pragma_list): Likewise.
2422 (handle_pragma_extern_prefix): Likewise.
2423 (maybe_apply_renaming_pragma): Likewise.
2424 (handle_pragma_visibility): Likewise.
2426 * config/c4x/c4x-c.c (BAD): Likewise.
2427 (c4x_parse_pragma): Likewise.
2428 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
2429 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2430 (rs6000_pragma_longcall): Likewise.
2431 * config/v850/v850-c.c (pop_data_area): Likewise.
2432 (ghs_pragma_section): Likewise.
2433 (ghs_pragma_section): Likewise.
2434 (ghs_pragma_interrupt): Likewise.
2435 (ghs_pragma_starttda): Likewise.
2436 (ghs_pragma_startsda): Likewise.
2437 (ghs_pragma_startzda): Likewise.
2438 (ghs_pragma_endtda): Likewise.
2439 (ghs_pragma_endsda): Likewise.
2440 (ghs_pragma_endzda): Likewise.
2442 2005-07-19 Danny Berlin <dberlin@dberlin.org>
2443 Kenneth Zadeck <zadeck@naturalbridge.com>
2445 * Makefile.in: Removed tree-promote-statics.c
2446 * tree-promote-statics.c: Removed.
2447 * common.opt: Removed flag-promote-statics.
2449 * passes.c: Removed tree-promote-statics pass.
2450 * tree-pass.h: Ditto.
2451 * timevar.def: Removed TV_PROMOTE_STATICS.
2454 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
2456 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
2458 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
2460 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2463 * c-common.c (check_function_arguments): Call
2464 'check_function_format' if either -Wformat or
2465 -Wmissing-format-attribute are specified.
2466 * c-format.c (check_function_format): Check -Wformat before
2467 calling 'check_format_info'.
2468 * c-opts.c (c_common_post_options): Don't warn for
2469 -Wmissing-format-attribute without -Wformat.
2470 * c-typeck.c (convert_for_assignment): Detect additional cases for
2471 -Wmissing-format-attribute.
2472 * doc/invoke.texi (-Wmissing-format-attribute): Document new
2475 2005-07-19 Richard Guenther <rguenther@suse.de>
2477 * config/i386/i386.md (lrint<mode>2): Use temporary
2478 instead of clobbering non-existent memory.
2480 2005-07-19 Nick Clifton <nickc@redhat.com>
2482 * config/avr/avr.c (legitimate_address_p): Fix debugging print
2483 statement to avoid displaying ASCII control characters.
2485 2005-07-19 Ben Elliston <bje@au.ibm.com>
2487 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
2488 * cfganal.c (find_edge_index): Ditto.
2489 * combine.c (combine_instructions): Ditto.
2490 * ddg.c (create_scc): Ditto.
2491 (find_successors): Ditto.
2492 (find_predecessors): Ditto.
2493 (find_nodes_on_paths): Ditto.
2494 (longest_simple_path): Ditto.
2495 * flow.c (update_life_info): Ditto.
2496 (count_or_remove_death_notes): Ditto.
2497 (clear_log_links): Ditto.
2498 * modulo-sched.c (generate_reg_moves): Ditto.
2499 (find_max_asap): Ditto.
2500 (find_max_hv_min_mob): Ditto.
2501 (find_max_dv_min_mob): Ditto.
2502 * sbitmap.c (sbitmap_first_set_bit): Ditto.
2503 * sched-rgn.c (extract_edgelst): Ditto.
2504 * tree-into-ssa.c (prepare_names_to_update): Ditto.
2505 (dump_update_ssa): Ditto.
2506 (ssa_names_to_replace) Ditto.
2507 (switch_virtuals_to_full_rewrite): Ditto.
2508 (update_ssa): Ditto.
2509 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2511 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
2513 Fix PR tree-optimization/22483
2515 * tree-complex.c (create_components): Use
2516 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
2517 * tree-flow-inline.h (fill_referenced_var_vec): New function.
2518 * tree-flow.h (safe_referenced_var_iterator): New structure.
2519 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
2520 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
2521 safe_referenced_var iterator.
2522 (add_type_alias): Ditto.
2524 2005-07-19 Steven Bosscher <stevenb@suse.de>
2526 * loop-init.c (rest_of_handle_loop2): Remove.
2527 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
2528 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
2529 (pass_rtl_loop_init, pass_rtl_loop_done,
2530 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
2531 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
2532 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
2533 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
2534 pass_tree_loop_done, and pass_tree_unswitch.
2535 (gate_loop): Rename to gate_tree_loop.
2536 * passes.c (init_optimization_passes): Update for renamed tree
2537 loop passes. Add the new loop2 passes as subpasses of loop2.
2538 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
2539 Update for the renamed tree loop passes.
2541 2005-07-18 Ian Lance Taylor <ian@airs.com>
2544 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
2545 blocks when optimizing.
2547 2005-07-18 Steve Ellcey <sje@cup.hp.com>
2549 * common.opt (frename-registers): Initialize to 2.
2551 (fgcse-after-reload): Ditto.
2552 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
2553 (process_options): Only change flag_web, flag_rename_registers,
2554 and flag_rerun_cse_after_loop if not explicitly set by user.
2556 2005-07-18 Jan Beulich <jbeulich@novell.com>
2558 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
2559 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
2560 in 64-bit mode the same as DImode in 32-bit mode.
2561 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
2562 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
2563 mode. Add new mode parameter.
2564 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
2565 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
2566 x86_64_shift_adj): New expanders.
2567 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
2568 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
2570 Respective new splitters. Use renamed shift splitter helpers in 32-bit
2571 DImode shift splitters.
2572 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
2573 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
2576 2005-07-18 Jan Beulich <jbeulich@novell.com>
2578 * i386.md (movdi_extzv_1): New.
2579 (zero_extendhidi2): Combine alternatives and never force use of
2581 (zero_extendqidi2): Likewise. Don't restrict input selection.
2583 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
2585 Fix PR tree-optimization/22531
2586 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
2589 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
2591 * tree-promote-statics.c (pass_promote_statics): Change dump file
2594 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
2596 * tree-optimize.c (init_tree_optimization_passes): Add
2597 pass_eliminate_useless_stores pass.
2598 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
2599 * tree-ssa-pre.c (is_copy_stmt): New function.
2600 (follow_copies_till_vuse): Ditto.
2601 (do_eustores): Ditto.
2602 (gate_eustores): Ditto.
2604 2005-07-16 Richard Henderson <rth@redhat.com>
2606 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
2608 2005-07-16 Danny Berlin <dberlin@dberlin.org>
2609 Kenneth Zadeck <zadeck@naturalbridge.com>
2611 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
2612 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
2613 ipa-type-escape.h, tree-promote-statics.c
2614 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
2615 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
2616 tree-promote-statics.c: new files.
2617 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
2618 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
2619 int nonlocal_set_p, mark_constant_function): Deleted.
2620 (rest_of_handle_cfg): Removed call to mark_constant_function.
2621 (nonoverlapping_component_refs_p): Added calls to support
2622 type based aliasing.
2623 * tree-ssa-alias.c (may_alias_p,
2624 compute_flow_insensitive_aliasing): Ditto.
2625 * calls.c (flags_from_decl_or_type): Removed reference to
2627 * c-typeck.c (convert_arguments): Make builtins tolerant of having
2628 too many arguments. This is necessary for Spec 2000.
2629 * cgraph.h (const_function, pure_function): Removed.
2630 * common.opt: Added "fipa-pure-const", "fipa-reference",
2631 "fipa-type-escape", and "ftree-promote-static".
2633 * passes.c: Added ipa and tree-promote-statics passes.
2634 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
2635 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
2636 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
2637 * tree-flow.h: Added exposed sra calls and addition of
2638 reference_vars_info field for FUNCTION_DECLS.
2639 * tree-pass.h: Added passes.
2640 * tree-sra.c: (sra_init_cache): New function.
2641 (sra_insert_before, sra_insert_after) Made public.
2642 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
2644 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
2645 aliasing. (may_alias_p): Added code to use type escape analysis to
2647 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
2648 code to prune clobbers of static variables based on information
2649 produced in ipa-reference pass. Changed call clobbering so that
2650 statics are not marked as clobbered if the call does not clobber
2653 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
2655 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
2658 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2660 * doc/install.texi (*-*-solaris2*): Document recommended version
2661 of GNU binutils and mention GNU linker problem on Solaris 10.
2663 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
2666 * c-decl.c (c_build_bitfield_integer_type): New function.
2667 (finish_struct): Call it.
2668 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
2670 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2672 * c-typeck.c (digest_init): Call 'convert_for_assignment'
2675 2005-07-16 Jan Hubicka <jh@suse.cz>
2677 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2678 (scale_bbs_frequencies_int): Watch roundoff errors.
2679 * predict.c (return_prediction): Initialize return_stmt.
2681 2005-07-16 Jan Hubicka <jh@suse.cz>
2683 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2684 after RTL profiling.
2686 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2689 * fold-const.c (build_range_check): Convert high/low to etype
2690 if we are only comparing against exp.
2692 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
2694 Fix PR tree-optimization/22376
2695 * tree-ssa-structalias.c (build_constraint_graph): We really meant
2697 (need_to_solve): New function.
2698 (compute_points_to_sets): Use it.
2700 2005-07-15 Jan Hubicka <jh@suse.cz>
2702 * cfg.c (update_bb_profile_for_threading): More diagnostic.
2703 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2705 2005-07-15 Richard Guenther <rguenther@suse.de>
2707 * c-common.c (handle_flatten_attribute): New function.
2708 Add flatten function attribute.
2709 * doc/extend.texi: Document flatten function attribute.
2710 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2711 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2713 (cgraph_decide_inlining): Handle functions with flatten
2716 2005-07-14 David Edelsohn <edelsohn@gnu.org>
2718 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2719 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2720 UNSPEC_XCHG, UNSPEC_AND): New.
2721 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2722 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2723 * config/rs6000/sync.md (FETCHOP): New code macro.
2724 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2726 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2727 (sync_compare_and_swap<mode>): Same.
2728 (sync_lock_test_and_set<mode>): Same.
2729 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2730 for QImode and HImode, and not PPC405.
2731 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2732 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2733 (sync_<fetchop>{si,di}_internal): New.
2734 (sync_nand{si,di}_internal): New.
2735 (sync_old_<fetchop>{si,di}_internal): New.
2736 (sync_old_nand{si,di}_internal): New
2737 (sync_new_<fetchop>{si,di}_internal): New.
2738 (sync_new_nand{si,di}_internal): New.
2739 (atomic_and{si,di}): New.
2740 (sync_new_nand{si,di}_internal): New.
2741 (atomic_and{si,di}): New.
2742 (sync_add<mode>_internal): Delete.
2743 (sync_addshort_internal): Use unspec instead of unspec_volatile.
2744 (sync_sub<mode>_internal): Delte.
2745 (sync_subshort_internal): New.
2746 (sync_andsi_internal): Use unspec instead of unspec_volatile.
2747 (sync_anddi_internal): Delete.
2748 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2749 (sync_booldi_internal): Delete.
2750 (sync_boolc<mode>_internal): Delete.
2751 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2752 (sync_boolc<mode>_internal2): Delete.
2753 (sync_boolcc<mode>_internal): Delete.
2754 (isync, lwsync): Use unspec instead of unspec_volatile.
2755 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2756 Revert UNSPEC_VOLATILE.
2757 (rs6000_split_atomic_op): New.
2758 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2760 2005-07-14 Eric Christopher <echristo@redhat.com>
2762 * config/mips/mips.c (mips_canonicalize_comparison): Cast
2763 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2765 2005-07-14 Eric Christopher <echristo@redhat.com>
2767 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2769 2005-07-14 Steven Bosscher <stevenb@suse.de>
2771 PR tree-optimization/22230
2772 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2773 the computation of the four cross productions for "range op range".
2775 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
2776 Ulrich Weigand <uweigand@de.ibm.com>
2779 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2782 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2784 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2786 2005-07-14 Steve Ellcey <sje@cup.hp.com>
2788 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2790 2005-07-14 Richard Guenther <rguenther@suse.de>
2793 * config/i386/i386-protos.h (ix86_function_value): Change
2794 prototype to match new target hook.
2795 * config/i386/i386.c (ix86_value_regno): Change prototype
2796 to take extra type argument.
2797 (TARGET_FUNCTION_VALUE): Define.
2798 (ix86_function_ok_for_sibcall): Pass extra argument to
2799 ix86_value_regno, check return slot rtx for exact match.
2800 (ix86_function_value): Take extra parameter. Dispatch to
2801 ix86_value_regno with fndecl/fntype as provided.
2802 (ix86_value_regno): Handle extra type argument.
2803 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2805 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2806 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2807 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2808 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2809 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2811 2005-07-14 Richard Guenther <rguenther@suse.de>
2813 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2814 * calls.c (expand_call): Pass fntype to hard_function_value.
2815 (emit_library_call_value_1): Likewise.
2816 * explow.c: Include target.h.
2817 (hard_function_value): Take extra argument, the fntype.
2818 Use new target hook for function_value.
2819 * expr.h (hard_function_value): Change prototype.
2820 * function.c (aggregate_value_p): Pass 0 as fntype to
2821 hard_function_value.
2822 (assign_parms): Use new target hook for function_value.
2823 Pass 0 as fntype to hard_function_value.
2824 (expand_function_end): Likewise.
2825 * reg-stack.c: Include target.h.
2826 (stack_result): Use new target hook for function_value.
2827 * target-def.h: New target hook function_value.
2828 * target.h: Likewise.
2829 * targhooks.c (default_function_value): New function.
2830 * targhooks.h (default_function_value): Declare.
2832 2005-07-13 Ian Lance Taylor <ian@airs.com>
2834 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2836 2005-07-14 Jan Hubicka <jh@suse.cz>
2838 * tree-dfa.c (dump_variable): Use default_def function.
2839 * tree-ssa-alias.c (dump_points_to_info): Likewise.
2840 * tree-ssa.c (verify_use): Likewise.
2841 * tree-ssanames.c (release_ssa_name): Likewise.
2842 * tree-tailcall.c (eliminate_tail_call): Likewise.
2843 (tree_optimize_tail_calls_1): Likewise.
2844 * tree-vrp.c (get_value_range): Likewise.
2846 2005-07-14 Ben Elliston <bje@au.ibm.com>
2848 * gcc.c (main): Compare language[0] with '*' when iterating over
2851 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
2853 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
2854 "s390_emit_compare". Add handling of CCZ1mode.
2855 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
2856 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
2858 (s390_branch_condition_mask): Add CCZ1mode handling.
2859 * config/s390/s390.md: ("seq", "*seq"): New pattern.
2860 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
2861 Use CCZ1mode instead of CCZmode.
2862 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
2864 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
2866 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
2868 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
2870 2005-07-13 Eric Christopher <echristo@redhat.com>
2872 * config/mips/mips.c (mips_canonicalize_comparison): New.
2873 (mips_emit_int_relational): Use.
2875 2005-07-13 Eric Christopher <echristo@redhat.com>
2877 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2879 * config/s390/s390.md: Include tpf.md. Move tpf specific
2881 * config/s390/tpf.md: To here.
2882 * config/s390/s390.opt: Move tpf specific options...
2883 * config/s390/tpf.opt: to here. Add mmain option.
2884 * config/s390/tpf-unwind.h: Remove unnecessary defines.
2885 * config/s390/tpf.h: Rewrite.
2887 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
2889 * doc/tm.texi: Remove @xref{Cross-profiling}.
2891 2005-07-13 Jeff Law <law@redhat.com>
2893 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
2894 expressions, test their _DECL operands for pointer equality rather
2895 than using operand_equal_p.
2897 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
2899 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
2900 (TARGET_POSIX_IO): This.
2901 * config/darwin.h: Likewise.
2902 * config/freebsd.h: Likewise.
2903 * config/linux.h: Likewise.
2904 * config/lynx.h: Likewise.
2905 * config/netbsd.h: Likewise.
2906 * config/rs6000/linux64.h: Likewise.
2907 * config/rs6000/linux.h: Likewise.
2908 * config/s390/tpf.h: Likewise.
2909 * config/sh/embed-elf.h: Likewise.
2910 * config/sparc/linux64.h: Likewise.
2911 * config/sparc/linux.h: Likewise.
2912 * config/svr4.h: Likewise.
2913 * gcov-io.h: Likewise.
2915 * doc/tm.texi: Updated.
2917 * libgcov.c (create_file_directory): Defined only if
2918 TARGET_POSIX_IO is defined.
2919 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
2922 2005-07-13 Jan Hubicka <jh@suse.cz>
2924 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
2926 2005-07-13 David Edelsohn <edelsohn@gnu.org>
2928 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
2929 structure as argument.
2931 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
2933 PR tree-optimization/21921
2934 * tree-iterator.c (tsi_link_before): Support the case when
2935 tsi_end_p (tsi) == true.
2937 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
2939 PR tree-optimization/22442
2940 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
2943 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
2945 PR rtl-optimization/20376
2946 * toplev.c (process_options): Enable -fweb and -frename-registers when
2948 * doc/invoke.texi: Update the information about when -fweb and
2949 -frename-registers are enabled.
2951 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
2954 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
2955 if *rhs_p is not a SSA_NAME.
2957 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
2959 Fix PR tree-optimization/22422
2960 * tree-ssa-structalias.c (struct variable_info): Add flag for
2962 (get_varinfo): Now a static function.
2963 (new_varinfo): init has_union and is_special_var to false.
2964 (solution_set_add): Check has_union.
2965 (do_da_constraint): Move temporary variable so it gets reset
2967 Also check for special variable.
2968 (do_ds_constraint): Ditto.
2969 (do_sd_constraint): Ditto.
2970 (do_structure_copy): Check for special variable.
2971 (find_func_aliases): Ditto.
2972 (init_base_vars): Set special vars properly.
2974 2005-07-13 Jan Hubicka <jh@suse.cz>
2976 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
2979 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
2980 (get_expr_operands): Fix thinko wrt flags and subvars.
2982 PR tree-optimize/22379
2983 * tree-inline.c (expand_call_inline): Do not output sorry in early
2986 2005-07-12 Dale Johannesen <dalej@apple.com>
2988 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
2990 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
2993 * host-linux.h: Include limits.h.
2995 2005-07-12 Dale Johannesen <dalej@apple.com>
2997 * expr.c (compress_float_constant): Add cost check.
2998 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
3000 2005-07-12 Dale Johannesen <dalej@apple.com>
3002 * gcc.target/i386/compress-float-sse.c: New.
3003 * gcc.target/i386/compress-float-sse-pic.c: New.
3004 * gcc.target/i386/compress-float-387.c: New.
3005 * gcc.target/i386/compress-float-387-pic.c: New.
3006 * gcc.dg/compress-float-ppc.c: New.
3007 * gcc.dg/compress-float-ppc-pic.c: New.
3009 2005-07-12 Eric Christopher <echristo@redhat.com>
3011 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
3013 * config/s390/s390.md: Include tpf.md. Move tpf specific
3015 * config/s390/tpf.md: To here.
3016 * config/s390/s390.opt: Move tpf specific options...
3017 * config/s390/tpf.opt: to here. Add mmain option.
3018 * config/s390/tpf-unwind.h: Remove unnecessary defines.
3019 * config/s390/tpf.h: Rewrite.
3021 2005-07-12 Eric Christopher <echristo@redhat.com>
3023 * gcc.c (struct infile): Update comment for language.
3024 (main): Rewrite input file resetting code.
3026 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
3029 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
3030 requiring a cast in a non RHS of modify_expr. Add a cast when required.
3031 (lookup_avail_expr): Use constant_boolean_node instead
3032 of boolean_false_node/boolean_true_node.
3034 2005-07-12 Ben Elliston <bje@au.ibm.com>
3036 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
3037 and use it when printing num_edges.
3039 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
3041 * doc/extend.texi (Blackfin Built-in Functions): New section.
3042 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
3045 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
3047 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
3048 s/cmpstrsi/cmpstrnsi
3049 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
3051 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
3052 (init_optabs): Initialize cmpstrn_optab.
3053 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
3054 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
3055 * expr.c: (enum insn_code cmpstrn_optab): Declare.
3056 * config/i386/i386.md: s/cmpstr/cmpstrn
3057 * config/c4x/c4x.md: s/cmpstr/cmpstrn
3058 * doc/md.texi: Update documentation.
3060 2005-07-11 Richard Henderson <rth@redhat.com>
3062 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
3063 build_va_arg_indirect_ref.
3064 (alpha_gimplify_va_arg): Likewise.
3065 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
3066 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
3067 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
3068 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3069 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
3070 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
3072 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
3074 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
3076 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
3077 * passes.c (init_optimization_passes): Add pass_empty_loop.
3078 * tree-pass.h (pass_empty_loop): Declare.
3079 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
3080 try_remove_empty_loop, remove_empty_loops): New functions.
3081 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
3082 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
3084 2005-07-12 Peter Barada <peter@the-baradas.com>
3088 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
3089 in address registers.
3090 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
3091 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
3092 alternative of addsi3_5200.
3094 2005-07-11 Ian Lance Taylor <ian@airs.com>
3096 * config/mips/mips.md (ffs<mode>2): Remove.
3098 2005-07-11 Ian Lance Taylor <ian@airs.com>
3100 * doc/tree-ssa.texi (Cleanups): Improve description of
3102 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
3104 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
3106 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
3107 * tree.h (DECL_ARGUMENT_FLD): New macro.
3109 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
3111 Fix PR tree-optimization/22404
3113 * tree-ssa-structalias.c (create_variable_info_for): Use
3116 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
3118 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
3119 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
3120 for second comparison operand.
3121 * config/bfin/predicates.md (reg_or_const_int_operand): New.
3123 * config/bfin/bfin.md (define_attr "type"): Add "sync".
3124 (define_insn_reservation "alu"): Likewise.
3125 (csync, ssync): Now of type sync.
3126 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
3127 -mcsync-anomaly -mspecld-anomaly.
3128 * config/bfin/bfin.opt (mcsync): Remove.
3129 (mcsync-anomaly, mspecld-anomaly): Add.
3130 * config/bfin/bfin.c: Include "insn-codes.h".
3131 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
3132 (TARGET_DEFAULT_TARGET_FLAGS): New.
3133 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
3135 2005-07-11 Steven Bosscher <stevenb@suse.de>
3137 * basic-block.h: Give the BB flags enum a name, bb_flags.
3138 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
3139 * cfgcleanup.c (enum bb_flags): Remove here.
3140 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
3141 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
3142 (update_forwarder_flag): Likewise.
3143 (thread_jump): Likewise.
3144 (try_forward_edges): Likewise.
3145 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
3146 forwarder flags. Don't clear bb->aux for all basic blocks. Only
3147 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
3149 2005-07-11 Richard Guenther <rguenther@suse.de>
3151 * config/i386/i386.opt: New target option -msseregparm.
3152 * config/i386/i386.c (override_options): Error out for
3153 -msseregparm but no SSE support.
3154 (ix86_function_sseregparm): Check for global sseregparm.
3155 * doc/invoke.texi: Document -msseregparm.
3157 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3159 * config.gcc (m32r-*-linux*): Use the default extra_parts.
3160 (m32rle-*-linux*): Ditto.
3162 2005-07-11 Jakub Jelinek <jakub@redhat.com>
3164 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
3165 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
3168 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3172 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
3173 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
3175 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
3177 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
3178 (varmap): Heapify varmap.
3179 (constraints): Heapify constraints.
3180 (struct constraint_graph): Heapify succs and preds.
3181 (constraint_vec_find): Update for heapification.
3182 (constraint_set_union): Ditto.
3183 (insert_into_complex): Ditto.
3184 (constraint_edge_vec_find): Ditto.
3185 (erase_graph_self_edge): Ditto.
3186 (add_graph_edge): Ditto.
3187 (get_graph_weights): Ditto.
3188 (merge_graph_nodes): Ditto.
3189 (build_constraint_graph): Ditto.
3190 (topo_visit): Ditto.
3191 (solve_graph): Ditto.
3192 (create_variable_info_for): Ditto.
3193 (init_base_vars): Ditto.
3194 (delete_points_to_sets): Free graph, varmap, and complex constraints.
3195 (condese_varmap_nodes): Free complex vector.
3196 (clear_edges_for_node): Clear succs and preds vector.
3198 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
3200 * tree-ssa-structalias.c (update_alias_info): Change counting of
3201 references to not include vdefs.
3203 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
3205 * tree-ssa-alias.c (free_used_part_map): Add missing free.
3208 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3210 * pa.c (pa_commutative_p): Make PLUS commutative when
3211 TARGET_NO_SPACE_REGS is true.
3213 2005-07-09 Diego Novillo <dnovillo@redhat.com>
3215 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
3216 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
3217 * tree-dfa.c (dump_subvars_for): New.
3218 (debug_subvars_for): New.
3219 (dump_variable): Show subvariables if VAR has them.
3220 * tree-flow-inline.h (get_subvar_at): New.
3221 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
3222 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
3224 (struct subvar): Change fields offset and size to unsigned
3226 (dump_subvars_for): Declare.
3227 (debug_subvars_for): Declare.
3228 (get_subvar_at): Declare.
3229 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
3230 to unsigned HOST_WIDE_INT *.
3231 (overlap_subvar): Likewise.
3232 * tree-gimple.c (is_gimple_reg): Always return false for
3233 SFTs and memory tags.
3234 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
3236 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
3237 (compute_may_aliases): Call compute_points_to_sets.
3238 (collect_points_to_info_for): Remove.
3239 (compute_points_to_and_addr_escape): Remove.
3240 (delete_alias_info): Call delete_points_to_sets.
3241 (compute_flow_sensitive_aliasing): If the call to
3242 find_what_p_points_to returns false, call set_pt_anything.
3243 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
3244 (set_pt_anything): Clear pi->pt_vars.
3245 (set_pt_malloc): Remove.
3246 (merge_pointed_to_info): Remove.
3247 (add_pointed_to_expr): Remove.
3248 (add_pointed_to_var): Remove.
3249 (collect_points_to_info_r): Remove.
3250 (is_escape_site): Make extern.
3252 (create_overlap_variables_for): Call it.
3253 * tree-ssa-copy.c (merge_alias_info): Never merge
3254 flow-sensitive alias information.
3255 * tree-ssa-operands.c (get_expr_operands): Adjust variables
3256 offset and size to be unsigned HOST_WIDE_INT.
3257 (add_to_addressable_set): Rename from note_addressable.
3258 Set TREE_ADDRESSABLE as the variables are added to the set.
3260 (add_stmt_operand): Do not try to micro-optimize unmodifiable
3261 operands into VUSEs when adding V_MAY_DEFs for members in an
3263 * tree-ssa-operands.h (add_to_addressable_set): Declare.
3264 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
3265 (struct variable_info): Add bitfield is_heap_var.
3266 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
3267 (new_var_info): Initialize is_heap_var.
3268 (get_constraint_for): Add HEAP variables to the symbol table.
3269 Mark them with is_heap_var.
3270 (update_alias_info): New. Taken mostly from the old
3271 compute_points_to_and_addr_escape.
3272 (handle_ptr_arith): New.
3273 (find_func_aliases): Call update_alias_info.
3274 Call handle_ptr_info for tcc_binary expressions.
3275 Call mark_stmt_modified.
3276 (create_variable_info_for): If DECL has subvars, do not create
3277 variables for its subvars. Always add all the fields.
3278 (set_uids_in_ptset): If the solution includes ANYOFFSET and
3279 SFTs, then add all the SFTs of the structure.
3280 If VI->DECL is an aggregate with subvariables, add the SFT at
3282 (find_what_p_points_to): If VI is an artificial variable,
3283 translate to bitfields in SSA_NAME_PTR_INFO.
3284 If the solution is empty, set pi->pt_vars to NULL
3285 (init_base_vars): Create ANYOFFSET.
3286 (compute_points_to_sets): Rename from create_alias_vars.
3288 (pass_build_pta): Remove.
3289 (delete_points_to_sets): Rename from delete_alias_vars.
3290 (pass_del_pta): Remove.
3291 * tree-ssa-structalias.h (struct alias_info): Move from
3293 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
3294 NUM_REFERENCES_SET): Likewise.
3295 (compute_points_to_sets, delete_points_to_sets): Declare.
3297 2005-07-09 Richard Henderson <rth@redhat.com>
3299 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
3300 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
3301 alpha_split_lock_test_and_set_12): New functions.
3302 * config/alpha/alpha-protos.h: Update.
3303 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
3304 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
3305 * config/alpha/sync.md (I12MODE): New.
3306 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
3307 (sync_<fetchop_name><I48MODE>): Likewise.
3308 (sync_nand<I48MODE>): Likewise.
3309 (sync_old_<fetchop_name><I48MODE>): Likewise.
3310 (sync_new_<fetchop_name><I48MODE>): Likewise.
3311 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
3312 (sync_compare_and_swap<I48MODE>): Likewise.
3313 (sync_lock_test_and_set<I48MODE>): Likewise.
3314 (sync_compare_and_swap<I12MODE>): New.
3315 (sync_compare_and_swap<I12MODE>_1): New.
3316 (sync_lock_test_and_set<I12MODE>): New.
3317 (sync_lock_test_and_set<I12MODE>_1): New.
3319 2005-07-09 Diego Novillo <dnovillo@redhat.com>
3323 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
3325 2005-07-09 Jakub Jelinek <jakub@redhat.com>
3327 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
3328 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
3330 2005-07-09 Richard SAndiford <richard@codesourcery.com>
3333 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
3335 2005-07-08 David Edelsohn <edelsohn@gnu.org>
3337 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
3338 memory_operand constraint.
3339 (store_conditional_<mode>): Same.
3340 (sync_compare_and_swap<mode>): Same.
3341 (sync_lock_test_and_set<mode>): Same.
3343 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
3345 Rewrite PIC support to more closely model actual instructions.
3346 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
3347 (cris_symbol): Remove prototypes for removed functions.
3348 (cris_pic_symbol_type_of, cris_valid_pic_const)
3349 (cris_expand_pic_call_address): Prototypes for new functions.
3350 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
3352 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
3354 <case ':'>: Add case for new punctuation character.
3355 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
3356 emitting (extra) PIC modifier.
3357 <case UNSPEC>: Do not assert for PLT.
3358 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
3359 (cris_expand_prologue, cris_expand_epilogue): Check
3360 for pic_offset_table_rtx usage instead of taking
3361 current_function_uses_pic_offset_table as the final word.
3362 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
3363 Remove flag_pic difference.
3364 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
3365 the moral equivalents of...
3366 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
3368 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
3369 (cris_handle_option): Mark ARG as unused.
3370 (cris_expand_pic_call_address): New worker function for "call",
3372 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
3373 output PIC constructs here.
3374 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
3375 as symbol-specific modifers, not whole or part of operands.
3376 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
3377 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
3378 constants and flag_pic.
3379 (CONSTANT_INDEX_P): Adjust for new functions.
3380 (enum cris_pic_symbol_type): New helper type.
3381 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
3382 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
3383 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
3385 ("movsi"): Emit actual instructions for GOT and relative access.
3386 ("*movsi_got_load"): New pattern to set up the register holding
3388 ("*movsi_internal"): Operand 1 is not a plain general_operand.
3389 Adjust FIXME for 'S'.
3390 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
3391 Use "movs" for -fpic cases.
3392 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
3393 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
3394 ("call", "call_value"): Just call cris_expand_pic_call_address for
3396 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
3397 Remove special pattern.
3398 ("*expanded_call_side", "*expanded_call_value_side"): New
3400 (gotplt-to-plt, gotplt-to-plt-side-call)
3401 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
3403 * config/cris/cris/predicates.md
3404 ("cris_general_operand_or_gotless_symbol"): Remove unused
3406 ("cris_general_operand_or_symbol"): Adjust for new functions.
3408 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
3410 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
3412 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
3414 * Makefile.in (TREE_H): Add treestruct.def.
3415 (c-decl.o): Add pointer-set.h
3416 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
3417 visibility on regular DECL's.
3418 (merge_decls): Fix the copying of decl nodes of various types for
3419 the new structures. Don't update RTL, section name, weak status,
3420 etc, on DECL's without RTL.
3421 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
3422 Don't check volatile on non-variable types.
3423 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
3424 to check whether we have seen arguments.
3425 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
3426 flag is checked before field (flag is common, field is not).
3427 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
3428 TS_DECL_COMMON could have an origin.
3429 (add_location_or_const_value_attribute): Don't check section name
3430 on non-var/function decls.
3431 (dwarf2out_var_location): Reverse order of tests.
3432 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
3433 with DECL_WRTL_CHECK.
3434 * expmed.c (make_tree): rtl is now in decl_with_rtl.
3435 * fold-const.c (fold_binary): Don't check weakness on
3436 non-var/function decls.
3437 (tree_expr_nonzero_p): Ditto.
3438 (fold_checksum_tree): Use tree_decl_extra as sizeof
3440 * ggc-page.c (extra_order_size_table): Add sizes for
3441 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
3443 * gimplify.c (gimplify_bind_expr): Only set
3444 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
3445 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
3447 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
3448 * langhooks.h (init_ts). New langhook.
3449 * passes.c (rest_of_decl_compilation): Reverse order of tests.