1 2005-08-11 James E. Wilson <wilson@specifix.com>
3 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
5 2005-08-11 Jakub Jelinek <jakub@redhat.com>
7 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
8 locations gathered by var-tracking in single entry loc_list
9 over loc_descriptor_from_tree.
11 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
12 pass it down to loc_descriptor.
13 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
14 (containing_function_has_frame_base): Move earlier in the file.
15 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
16 instead of always assuming fbreg can't be used.
18 2005-08-11 David Edelsohn <edelsohn@gnu.org>
20 * config/rs6000/altivec.md: Change constraint "m" to "Z".
21 * config/rs6000/predicates.md (indexed_or_indirect_operand):
22 Accept address wrapped in AND for Altivec.
23 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
24 Strip AND wrapping offset address for Altivec.
26 2005-08-11 Richard Henderson <rth@redhat.com>
29 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
30 before using TYPE_IS_SIZETYPE.
32 2005-08-11 Richard Henderson <rth@redhat.com>
35 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
36 insn types not present on ev4.
37 (alphaev5_insn_pipe): Similarly.
39 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
42 * arm.c (arm_override_options): If the user has selected callee-super-
43 interworking, then enable normal interworking.
45 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
47 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
50 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
52 * doc/rtl.texi: Fix two typos.
54 2005-08-11 Richard Guenther <rguenther@suse.de>
57 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
58 cases where we call to/from functions returning void.
60 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
63 * tree.c (build_pointer_type_for_mode): Robustify.
65 2005-08-10 James E Wilson <wilson@specifix.com>
67 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
68 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
70 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
73 2005-08-10 Eric Christopher <echristo@apple.com>
75 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
76 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
79 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
82 * config/darwin.c (machopic_indirect_data_reference): Use a new register
83 for the high part when generating dynamic-no-pic code.
85 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
87 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
88 (x86_64-*-linux*): Likewise.
90 * config/i386/crtfastmath.c: New file.
91 * config/i386/t-crtfm: Likewise.
93 * config/i386/linux.h (ENDFILE_SPEC): New.
94 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
96 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
99 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
101 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
102 (vec_shl, vec_shr): Document new operations.
103 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
105 2005-08-10 David Edelsohn <edelsohn@gnu.org>
107 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
108 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
109 change predicate to indexed_or_indirect_address.
111 2005-08-10 Richard Sandiford <richard@codesourcery.com>
113 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
114 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
115 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
117 * config/arm/unaligned-funcs.c: New file.
118 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
120 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
122 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
124 * cfglayout.c (pass_insn_locators_initialize): Add dump.
125 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
127 * except.c (pass_convert_to_eh_region_ranges): Add dump.
128 * final.c (pass_shorten_branches): Add dump.
129 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
130 (pass_life): Rename dump.
131 (rest_of_handle_flow2): Remove initial verify_flow_info.
132 * function.c (pass_instantiate_virtual_regs): Add dump.
133 * integrate.c (pass_initial_value_sets): Add dump.
134 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
135 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
136 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
137 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
138 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
139 gate_rtl_unrool_and_peel_loops): New.
140 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
141 rtl_doloop): Do not look at flags.
142 * mode-switching.c (pass_mode_switching): Add dump.
143 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
144 pass_split_before_regstack): Add dump.
145 * regmove.c (pass_stack_adjustments): Add dump.
146 * tree-optimize.c (pass_fixup_cfg): Add dump.
148 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
151 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
152 deciding which instruction sequence to use.
154 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
156 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
157 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
159 2005-08-09 Richard Guenther <rguenther@suse.de>
161 * c-common.c (builtin_function_2): Remove.
162 (def_builtin_1): New function.
163 (c_common_nodes_and_builtins): Use def_builtin_1 to
164 build builtin functions.
166 2005-08-09 Jie Zhang <jie.zhang@analog.com>
168 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
169 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
170 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
173 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
175 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
176 fold_binary instead of fold_build2 since we don't care about the
178 (loop_niter_by_eval): Likewise.
179 (compare_trees): Likewise.
180 (proved_non_wrapping_p): Likewise.
182 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
186 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
187 if the if is really empty.
189 2005-08-09 Steven Bosscher <stevenb@suse.de>
191 PR tree-optimization/23234
192 * tree-ssa-math-opts.c (place_reciprocal): New enum.
193 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
194 argument of the new enum.
195 (execute_cse_reciprocals): Add reciprocals for function arguments
196 on the unique successor edge of the entry block. Update other calls
197 to execute_cse_reciprocals_1.
199 2005-08-08 Richard Henderson <rth@redhat.com>
202 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
204 2005-08-08 Bob Wilson <bob.wilson@acm.org>
206 * expr.c (write_complex_part): Return after handling MEM.
208 2005-08-08 Josh Conner <jconner@apple.com>
210 PR rtl-optimization/23241
211 * combine.c (simplify_comparison): Fix error in determining
212 whether to lift a subreg from comparison.
214 2005-08-08 David Edelsohn <edelsohn@gnu.org>
217 * config/rs6000/altivec.md (vec_init<mode>): New.
218 (vec_set<mode>): New.
219 (vec_extract<mode>): New.
220 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
221 (rs6000_expand_vector_set): New.
222 (rs6000_expand_vector_extract): New.
223 (rs6000_legitimate_offset_address_p): Offset addresses are valid
224 for Altivec modes before reload.
225 (altivec_expand_vec_init_builtin): New.
226 (get_element_number): New.
227 (altivec_expand_vec_set_builtin): New.
228 (altivec_expand_vec_ext_builtin): New.
229 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
231 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
233 * config/rs6000/rs6000.h (rs6000_builtins): Add
234 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
235 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
236 * config/rs6000/rs6000-protos.h: Declare new functions.
238 2005-08-08 Jan Hubicka <jh@suse.cz>
240 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
241 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
242 * i386.md (movdi*): Use pic_32bit_operand.
243 * predicates.md (pic_32bit_operand): New.
245 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
248 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
250 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
252 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
253 (test_for_singularity): Use fold_build2.
255 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
257 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
259 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
261 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
262 (COMMON_ASM_OP) Define.
263 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
264 (ix86_encode_section_info): Likewise.
265 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
266 SUBTARGET_ENCODE_SECTION_INFO.
268 2005-08-06 Richard Henderson <rth@redhat.com>
271 * tree-nested.c (convert_local_reference): Save and restore val_only
272 around component_ref and friends. Clear walk_subtrees by default.
274 2005-08-06 Peter O'Gorman <peter@pogma.com>
277 * gcc.c (process_command): Check the argument to -b has a dash.
278 * doc/invoke.texi: Update -b and -V docs.
280 2005-08-06 James E Wilson <wilson@specifix.com>
282 * config/mips/cross64.h, config/mips/t-cross64: Delete.
284 2005-08-06 Michael Matz <matz@suse.de>
286 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
287 member only if only one insn is associated with the value.
289 2005-08-06 Nick Clifton <nickc@redhat.com>
291 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
293 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
294 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
295 Check symbol flags instead of symbol name mangling.
296 (xstormy16_asm_output_aligned_common): Likewise. Also
297 simplify code since the bss100_section cass is the only case
298 where the below100 code will be triggered.
299 (xstormy16_encode_section_info): Encode below100 attribute
300 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
302 (xstormy16_strip_name_encoding): Delete - this function is no
304 (TARGET_STRIP_NAME_ENCODING): Undefine.
305 * config/stormy16/stormy16-protos.h: Delete prototype for
306 xstormy16_strip_name_encoding.
308 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
310 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
311 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
312 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
313 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
314 config/alpha/predicates.md, config/arc/arc.h,
315 config/arm/arm.h, config/arm/ieee754-df.S,
316 config/arm/ieee754-sf.S, config/bfin/bfin.c,
317 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
318 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
319 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
320 config/m68hc11/m68hc11.h, config/mips/mips.c,
321 config/mips/mips.h, config/mips/openbsd.h,
322 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
323 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
324 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
325 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
326 config/sparc/linux.h, config/sparc/linux64.h,
327 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
328 doc/extend.texi, doc/gcov.texi, doc/install.texi,
329 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
330 typos. Follow spelling conventions.
332 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
335 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
336 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
337 specially. Check for side effects only for COND_EXPR.
338 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
339 return with TREE_NO_WARNING.
341 2005-08-06 Richard Sandiford <richard@codesourcery.com>
343 PR rtl-optimization/23233
344 * loop.c (combine_movables): Require the modes to be the same.
345 (move_movables): Remove handling of cases where the replacement
346 had a different mode to the original.
348 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
350 PR tree-optimization/23128
351 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
352 subtraction wrap, and set TREE_OVERFLOW if they do.
354 2005-08-05 Richard Henderson <rth@redhat.com>
357 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
360 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
363 * reload.c (find_reloads_subreg_address): Pass down TYPE
364 unchanged. Change all callers except find_reloads_toplev.
366 2005-08-05 Michael Matz <matz@suse.de>
368 * genattrtab.c (current_alternative_string): Remove.
369 (SIMPLIFY_ALTERNATIVE): Ditto.
370 (attr_alt_bit_p): Ditto.
371 (alternative_name): Make const char *.
372 (evaluate_eq_attr): Remove use of above things.
373 (simplify_test_exp): Ditto.
374 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
375 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
377 2005-08-04 James E Wilson <wilson@specifix.com>
379 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
380 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
381 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
382 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
383 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
385 2005-08-04 Richard Henderson <rth@redhat.com>
388 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
389 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
390 * tree-sra.c (decide_block_copy): Use it. Disable element copy
391 if we'd have to instantiate too many members.
393 2005-08-04 Richard Henderson <rth@redhat.com>
396 * tree-outof-ssa.c (coalesce_asm_operands): New.
397 (coalesce_ssa_name): Use it. Split out ...
398 (coalesce_phi_operands, coalesce_result_decls): ... these.
400 2005-08-04 Paul Brook <paul@codesourcery.com>
402 * read-rtl.c (read_quoted_string): Break if EOF.
404 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
406 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
407 (fold_build2): Likewise.
408 (fold_build3): Likewise.
409 (fold_build1_stat): New function prototype.
410 (fold_build2_stat): Likewise.
411 (fold_build3_stat): Likewise.
412 * fold-const.c (fold_build1): Rename to ..
413 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
414 through to build1_stat.
415 (fold_build2): Rename to ..
416 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
417 through to build2_stat.
418 (fold_build3): Rename to ..
419 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
420 through to build3_stat.
422 2005-08-04 David Edelsohn <edelsohn@gnu.org>
423 Ian Lance Taylor <ian@airs.com>
425 * function.c (assign_stack_local_1): Do not correct stack slot
426 address if allocation size is smaller than mode size.
428 2005-08-04 Diego Novillo <dnovillo@redhat.com>
431 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
432 (tree_merge_blocks): Propagate anything allowed by
434 Clarify documentation.
435 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
436 SSA form, schedule an update if necessary.
438 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
440 * doc/install.texi (Binaries): Remove broken link to
441 Sinix/Reliant Unix binaries.
443 2005-08-03 Richard Henderson <rth@redhat.com>
446 * function.c (stack_protect_epilogue): Export.
447 * tree.h (stack_protect_epilogue): Declare.
448 * calls.c (expand_call): Call it.
450 2005-08-03 Eric Christopher <echristo@apple.com>
452 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
453 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
456 2005-08-04 Jan Hubicka <jh@suse.cz>
458 * profile.c (branch_prob): Split edges with goto locus on them
459 to get proper line counts.
460 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
462 2005-08-03 Paul Brook <paul@codesourcery.com>
464 * function.c (assign_parms): Round current_function_args_size
465 to PARM_BOUNDARY, not STACK_BOUNDARY.
467 2005-08-03 Geoffrey Keating <geoffk@apple.com>
469 * config/i386/i386.c (x86_elf_aligned_common)
470 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
472 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
474 PR tree-optimization/23157
475 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
476 before emitting them.
478 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
480 PR tree-optimization/19899
481 * Makefile.in (tree-scalar-evolution.o): Add real.h.
482 * tree-scalar-evolution.c: Include real.h.
483 (add_to_evolution): Build constant -1 of correct type.
485 2005-08-03 Jan Hubicka <jh@suse.cz>
487 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
488 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
489 profile updating for complette unrolling.
490 * loop-unroll.c (peel_loop_completely): Use it.
491 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
492 (tree_unroll_loops_completely): Disable code growing unrolling of cold
495 2005-08-03 Paul Brook <paul@codesourcery.com>
497 * combine.c (can_change_dest_mode): New function.
498 (try_combine, simplify_set): Use it.
500 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
502 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
505 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
507 * doc/install.texi (Specific): Adjust link to openavr.org.
508 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
509 (Binaries): Adjust HP-UX Porting Center link.
510 (Binaries): Adjust Free Software Foundation ordering link.
512 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
514 * convert.c (convert_to_integer): Use fold_build1 instead of
515 build1 when converting an integer to an integer.
517 2005-08-02 Richard Henderson <rth@redhat.com>
519 * combine.c (combine_instructions): Don't use reg_equal/equiv
520 results if the mode doesn't match.
522 2005-08-02 Mark Mitchell <mark@codesourcery.com>
524 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
525 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
527 2005-08-02 Richard Henderson <rth@redhat.com>
530 * explow.c (memory_address): Remove special-case for
531 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
533 2005-08-02 Diego Novillo <dnovillo@redhat.com>
536 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
537 number of calls to cleanup_tree_cfg_1.
539 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
541 * doc/invoke.texi: document file extensions .F90 and .F95
543 2005-08-02 Richard Guenther <rguenther@suse.de>
545 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
546 positive if its first argument is positive.
548 2005-08-02 Richard Guenther <rguenther@suse.de>
550 PR tree-optimization/23177
551 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
554 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
556 PR tree-optimization/23129
557 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
558 varying for divisions with anti-ranges.
560 2005-08-02 Jan Hubicka <jh@suse.cz>
562 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
563 * tree-ssa-threadupdate.c (thread_block): Add it here.
565 2005-08-01 James E Wilson <wilson@specifix.com>
567 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
568 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
569 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
571 * config/mips/predicates.md (const_call_insn_operand): Add check for
572 SYMBOL_REF_LONG_CALL_P.
573 * doc/extend.texi (long_call): Document the new attribute.
575 2005-08-01 Ian Lance Taylor <ian@airs.com>
576 Richard Henderson <rth@redhat.com>
578 * Makefile.in (RTL_BASE_H): Add real.h.
579 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
581 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
583 * rtl.c (rtl_check_failed_code_mode): New.
584 * rtl.h (struct rtx_def): Add u.rv.
585 (XCMWINT, XCNMPRV): New.
586 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
587 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
589 2005-08-01 Richard Henderson <rth@redhat.com>
591 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
594 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
596 2005-08-01 Jan Hubicka <jh@suse.cz>
598 * i386-protos.h (asm_preferred_eh_data_format): Declare.
599 * i386.c: Include dwarf2.h
600 (asm_preferred_eh_data_format): New.
601 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
603 2005-08-01 Ian Lance Taylor <ian@airs.com>
605 * config/host-linux.c (linux_gt_pch_get_address): Add new name
606 randomize_va_space for virtual address randomization control.
608 2005-08-01 Steven Bosscher <stevenb@suse.de>
610 * common.opt (flag_ipa_cp): Put in right place to maintain
613 2005-08-01 Jan Hubicka <jh@suse.cz>
615 * profile.c (compute_value_histograms): Fix thinko.
616 * value-prof.c: Include toplev.h
617 (check_counter): New function.
618 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
619 tree_mod_subtract_transform): Add sanity check.
621 2005-08-01 Richard Guenther <rguenther@suse.de>
623 PR tree-optimization/23133
624 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
625 current functions parameter decls to find defs to cse
628 2005-08-01 Richard Guenther <rguenther@suse.de>
630 PR tree-optimization/23109
631 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
632 If trapping math is in effect, use post-dominator information
633 to check if we'd in any case reach a trapping point before
634 doing the reciprocal insertion.
635 (execute_cse_reciprocals): Compute post-dominators, if necessary.
636 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
637 expressions are invariant only if trapping math is not in effect.
639 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
641 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
642 cgraph_function_versioning): New declarations.
643 * cgraphunit.c: Add include to ipa-prop.h.
644 (update_call_expr, cgraph_copy_node_for_versioning,
645 cgraph_function_versioning): New functions.
646 * integrate.c (copy_decl_for_inlining): Remove.
647 * ipa-prop.h (ipa_replace_map): New struct.
648 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
649 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
650 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
651 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
652 ipcp_iterate_stage, ipcp_method_scale_print,
653 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
654 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
655 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
656 ipcp_update_bb_counts, ipcp_update_profiling,
657 ipcp_update_edges_counts): New functions.
658 (ipcp_method_cval_init): Remove restriction regarding local methods.
659 (ipcp_init_stage): Add ipcp_method_compute_scale.
660 (ipcp_insert_stage): Add versioning.
661 (ipcp_structures_print): Add ipcp_method_scale_print.
662 (ipcp_driver): Dump profiling info.
663 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
664 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
665 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
666 (struct inline_data): Add versioning_p, ipa_info, new fields.
667 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
668 declare_return_variable): Replace calls to copy_decl_for_inlining with
670 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
672 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
673 Add argument VERSIONING.
674 (copy_arguments_for_versioning, copy_static_chain,
675 function_versionable_p, tree_versionable_function_p,
676 tree_function_versioning, replace_ref_tree): New functions.
677 * tree-inline.h: Include varray.h.
678 (tree_versionable_function_p, tree_function_versioning,
679 tree copy_decl_for_dup): New declarations.
681 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
683 * ipa-cp.c: New file. Contains IPCP specific functionality.
684 * ipa-prop.h: New file. Contains structures/definitions that can be
685 used by several interprocedural data flow optimizations (and also IPCP).
686 * ipa-prop.c: New file.
687 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
688 * common.opt: Add ipa-cp flag.
689 * timevar.def: Add IPCP optimization.
690 * tree-optimize.c (init_tree_optimization_passes): Schedule
692 * tree-pass.h (pass_ipa_cp): Declare.
694 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
696 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
697 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
698 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
699 config/i386/i386.c, config/mips/mips.h,
700 config/rs6000/rs6000.h, config/sh/sh.c,
701 config/stormy16/stormy16.c: Fix comment typos.
703 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
706 * c-typeck.c (build_binary_op): Use common_type wrapper on
708 (common_type): Update comment.
710 2005-07-31 Steven Bosscher <stevenb@suse.de>
713 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
714 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
715 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
717 2005-07-31 Jan Hubicka <jh@suse.cz>
719 * pretty-print.h (pp_widest_integer): New macro.
720 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
723 2005-07-31 Jan Hubicka <jh@suse.cz>
725 * output.h (enum section_category): Export from varasm.c
726 (categorize_decl_for_section): Likewise.
727 * varasm.c (enum section_category): Kill.
728 (categorize_decl_for_section): Make global.
729 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
731 * i386.c (ix86_section_threshold): New static variable.
732 (ix86_in_large_data_p, ix86_encode_section_info,
733 x86_64_elf_unique_section,
734 x86_64_elf_select_section): New functions.
735 (TARGET_ENCODE_SECTION_INFO): Define
736 (override_options): Enable medium model for PIC.
737 (ix86_expand_prologue): Expand gen_set_got_rex64.
738 (legitimate_constant_p): Handle new UNSPECs.
739 (legitimate_pic_address_disp_p): Likewise.
740 (legitimize_pic_address): Lower MEDIUM model addressing.
741 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
742 (enum cmodel): Add MEDIUM_PIC.
743 (SYMBOL_REF_FAR_ADDR_P): New macro.
744 (SYMBOL_FLAG_FAR_ADDR): New flag.
745 * i386.md (movdi): Support medium model.
746 (set_got_rex64): New pattern.
747 * i386.opt (mlarge-data-threshold): New flag.
748 * predicates.md (zext_operand/sext_operand): Deal with medium model.
749 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
750 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
751 TARGET_ASM_UNIQUE_SECTION): New.
753 * invoke.texi (-mlarge_data_threshold): Document
755 2005-07-31 Jan Hubicka <jh@suse.cz>
757 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
758 (coalesce_vars): Likewise.
759 * tree-ssa-live.c (coalesce_cost): New.
760 (build_tree_conflict_graph): Use coalesce_cost.
761 * tree-ssa-live.h (coalesce_cost): Declare.
763 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
765 * arm.md (all peepholes for post-increment operations): Delete.
766 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
767 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
768 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
769 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
770 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
772 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
774 * fold-const.c (tree_expr_nonnegative_p): Always return true for
777 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
780 * doc/invoke.texi: Document -rdynamic.
782 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
785 * c-parser.c (c_parser_parms_list_declarator): Call
786 mark_forward_parm_decls.
787 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
788 decls with visibility structure.
790 2005-07-30 Paul Brook <paul@codesourcery.com>
792 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
794 2005-07-30 Paul Brook <paul@codesourcery.com>
796 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
798 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
800 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
802 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
805 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
806 nested function declarators.
807 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
808 (grokparms): Call warn_if_shadowing for parameters used within the
810 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
811 not used within the parameter list.
812 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
814 2005-07-30 Jan Hubicka <jh@suse.cz>
816 * expr.c (expand_expr_real_1): Do not load mem targets into register.
817 * i386.c (ix86_fixup_binary_operands): Likewise.
818 (ix86_expand_unary_operator): Likewise.
819 (ix86_expand_fp_absneg_operator): Likewise.
820 * optabs.c (expand_vec_cond_expr): Validate dest.
822 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
825 * real.c (real_from_string): Also set last bit if there is a
826 nonzero hex digit beyond GCC's internal precision after ".".
828 2005-07-29 David Edelsohn <edelsohn@gnu.org>
830 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
831 define_constants. Change duplicate values to unassigned numbers.
832 Change UNSPEC_SUBS to UNSPEC_VSUBS.
833 (*altivec_vspltsf): New.
834 (altivec_vperm_v4sf): Delete.
835 (altivec_vperm_<mode>): Use mode macro V.
836 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
837 (altivec_predicate_v4sf): Delete.
838 (altivec_predicate_<mode>): Use mode macro V.
839 (*altivec_lvesfx): New.
840 (*altivec_stvesfx): New.
841 (vec_realign_load_v4sf): Delete.
842 (vec_realign_load_<mode>): Use mode macro V.
843 * config/rs6000/rs6000.c (generate_set_vrsave): Use
846 2005-07-29 Mark Mitchell <mark@codesourcery.com>
849 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
851 * configure: Regenerated.
853 2005-07-29 Paul Brook <paul@codesourcery.com>
855 * doc/install.texi: Add link to GFortran binaries wiki page.
857 2005-07-29 David Ung <davidu@mips.com>
859 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
860 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
861 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
862 * config/mips/mips.md (cpu): Add 5kf name.
863 (includes): Includes 5k.md.
864 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
865 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
868 2005-07-29 Diego Novillo <dnovillo@redhat.com>
871 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
872 (cleanup_tree_cfg): ... here.
873 Call cleanup_tree_cfg_1 until there are no more cleanups to
876 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
878 * tree-vrp.c (compare_range_with_value): Return true or false
879 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
880 EQ_EXPR respectively.
882 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
884 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
887 2005-07-29 Diego Novillo <dnovillo@redhat.com>
889 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
890 (tree_ssa_dominator_optimize): Increment it.
891 (dump_dominator_optimization_stats): Print it.
893 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
894 Steven Bosscher <stevenb@suse.de>
896 PR rtl-optimization/23117
897 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
898 when head == tail. Tidy comment.
900 2005-07-28 Richard Henderson <rth@redhat.com>
902 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
903 * cselib.c (rtx_equal_for_cselib_p): Likewise.
904 * jump.c (rtx_renumbered_equal_p): Likewise.
905 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
906 CONST_INT and CONST_DOUBLE.
907 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
908 * reload.c (operands_match_p): Special case CONST_INT and
909 CONST_DOUBLE; check mode earlier.
911 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
914 * c-typeck.c (convert_for_assignment): Do not check
915 DECL_IN_SYSTEM_HEADER on NULL fundecl.
917 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
920 * c-typeck.c (composite_type): Prefer constant size arrays to
923 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
926 * real.c (real_from_string): Set last bit if there is a nonzero
927 hex digit beyond GCC's internal precision.
929 2005-07-28 Richard Henderson <rth@redhat.com>
932 * cfgcleanup.c (try_forward_edges): Watch out for end of
935 2005-07-28 James E Wilson <wilson@specifixinc.com>
938 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
940 2005-07-28 Jan Hubicka <jh@suse.cz>
942 * Makefile.in (rtl-profile.o): Kill all traces of it.
943 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
944 * coverage.h (rtl_coverage_counter_ref): Kill.
945 * opts.c (flag_speculative_prefetching_set): Kill.
946 (flag_loop_optimize_set): New.
947 (common_handle_option): Disable loop optimizer when profiling;
948 do not handle speculative prefetching.
949 * passes.c (init_optimization_passes): Replace pass_profiling combo
951 * profile.c (compute_value_histograms): Update for simplified value
953 (rtl_register_profile_hooks): Kill.
954 (pass_profiling): Kill.
955 (rest_of_handle_branch_prob): Do not profile.
956 * toplev.c (process_options): Remove speculative prefetching.
957 * toplev.h (flag_tree_based_profiling): Kill.
958 * tree-profile.c (prepare_instrumented_value,
959 tree_gen_interval_profiler, tree_gen_pow2_profiler,
960 tree_gen_one_value_profiler, do_tree_profiling): Update for
961 simplified datastructures.
962 * value-prof.c: Add comment that speculative prefetching was dropped;
963 update rest of file for simplified datastructures.
964 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
965 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
966 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
967 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
968 rtl_mod_subtract, gen_speculative_prefetch,
969 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
970 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
971 (gate_handle_value_profile_transformations,
972 rest_of_handle_value_profile_transformations,
973 pass_value_profile_transformations): Kill.
974 * value-prof.h (histogram_value_t): Remove IL based unions.
975 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
976 rtl_profile_hooks): Remove hooks.
978 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
980 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
981 (cgraph_clone_node): Likewise.
982 * cgraph.h (cgraph_clone_edge): Update prototype.
983 (cgraph_clone_node): Likewise.
984 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
986 (lookup_recursive_calls): Consider profile.
987 (cgraph_decide_recursive_inlining): Fix updating; use new
988 probability argument; use profile.
989 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
990 * tree-inline.c (copy_bb): Update clal of clone_edge.
991 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
993 * invoke.texi (min-inline-recursive-probability): Document.
995 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
997 * doc/install.texi (Configuration): Update Valgrind homepage.
999 2005-07-28 Richard Henderson <rth@redhat.com>
1002 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
1003 labels we want to delete.
1004 (cfg_layout_merge_blocks): Likewise.
1006 2005-07-28 Richard Henderson <rth@redhat.com>
1009 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
1010 when expanding to nothing.
1012 2005-07-28 Josh Conner <jconner@apple.com>
1014 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
1015 (cgraph_decide_inlining_of_small_functions): Likewise.
1017 2005-07-28 Josh Conner <jconner@apple.com>
1019 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
1020 direction of badness if negative.
1021 (cgraph_default_inline_p): Add reason to parameters, and assign it
1023 (cgraph_decide_inlining_of_small_functions): New parameter in call
1024 to cgraph_default_inline_p.
1025 (cgraph_decide_inlining_incrementally): Likewise.
1026 * cgraphunit.c (decide_is_function_needed): Likewise.
1027 * cgraph.h (cgraph_default_inline_p): Likewise.
1029 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1031 * builtins.c: Fix comment typo(s).
1032 * genautomata.c: Likewise.
1033 * gimplify.c: Likewise.
1034 * tree-dfa.c: Likewise.
1035 * tree-flow-inline.h: Likewise.
1036 * tree-into-ssa.c: Likewise.
1037 * tree-ssa-alias.c: Likewise.
1038 * tree-ssa-ccp.c: Likewise.
1039 * tree-ssa-copy.c: Likewise.
1040 * tree-ssa-dce.c: Likewise.
1041 * tree-ssa-dom.c: Likewise.
1042 * tree-ssa-operands.c: Likewise.
1043 * tree-tailcall.c: Likewise.
1044 * tree-vectorizer.c: Likewise.
1045 * tree-vrp.c: Likewise.
1048 2005-07-28 Jeff Law <law@redhat.com>
1050 * tree-vrp.c (test_for_singularity): Extracted from ...
1051 (simplify_cond_using_ranges): Attempt to simplify a relational
1052 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
1054 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
1056 PR tree-optimization/22506
1057 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
1058 phis whose argument is constant.
1060 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
1062 PR rtl-optimization/18992
1063 Back out this patch:
1064 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1065 PR optimization/12142
1066 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1067 uses of the register in the SET_SRC. Remove unnecessary argument.
1069 Replace it with this:
1070 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
1071 if flag_non_call_exceptions is set and the insn may trap, pass
1072 pc_rtx as dest for recursion.
1073 In SET_SRC part of SET case, if dest is already set, pass it down
1076 2005-07-28 Jan Hubicka <jh@suse.cz>
1078 * cfg.c (update_bb_profile_for_threading): Use RDIV.
1079 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
1080 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
1082 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
1083 profile when available.
1085 2005-07-28 Jan Beulich <jbeulich@novell.com>
1087 * config/ia64/ia64.c (ia64_load_pair_ok): New.
1088 (ia64_print_operand): Describe and handle 'X'.
1089 (ia64_register_move_cost): Also handle FP_REGS.
1090 (ia64_preferred_reload_class): Likewise.
1091 (ia64_secondary_reload_class): Likewise.
1092 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
1093 it. Also check for ITANIUM_CLASS_FLDP.
1094 * config/ia64/ia64.h (FP_REGNO_P): New.
1095 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
1096 (reg_class): Add FP_REGS.
1097 (REG_CLASS_NAMES): Adjust for it.
1098 (REG_CLASS_CONTENTS): Likewise.
1099 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
1100 (REG_CLASS_FROM_LETTER): Handle 'x'.
1101 (CLASS_MAX_NREGS): Handle FP_REGS.
1102 (MEMORY_MOVE_COST): Likewise.
1103 * config/ia64/ia64.md (itanium_class): Add fldp.
1104 (type): Handle fldp.
1105 (movti_internal): More allowable operand combinations. Use ldfp8 when
1106 splitting unnecessary. Remove predicable attribute. Adjust
1107 itanium_class attribute.
1108 (smuldi3_highpart): Remove outdated comment.
1109 (mulditi3, umulditi3, rotlti3): New expanders.
1110 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
1111 (absti2): Disabled new insn for future reference.
1112 Respective new splitters.
1113 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
1114 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
1115 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
1117 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
1119 PR rtl-optimization/23047
1120 * simplify-rtx.c (simplify_const_relational_operation): Respect
1121 flag_wrapv for comparisons with ABS.
1123 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
1125 PR tree-optimization/22493
1126 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
1127 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
1129 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
1131 * config/frv/frv.opt (moptimize-membar): New.
1133 * doc/invoke.texi: Document -moptimize-membar and its inverse.
1135 * config/frv/frv.h: Remove machine_function definition.
1137 * config/frv/frv.c (struct frv_io): New.
1138 (struct machine_function): Moved from frv.h. Add has_membar_p.
1139 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
1140 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
1141 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
1142 (frv_optimize_membar_global, frv_optimize_membar): New functions.
1143 (frv_reorg): Call frv_optimize_membar when appropriate.
1144 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
1145 (frv_expand_builtin): Adjust calls accordingly.
1146 (frv_io_address_cookie): New function.
1147 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
1148 load or store rather than a special insn. Add ccnstant address and
1149 io-type operands to the membar.
1150 (frv_ifcvt_modify_tests): Unsign regno.
1151 (frv_ifcvt_modify_tests): Same.
1153 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
1154 UNSPEC_OPTIONAL_MEMBAR constant.
1155 (builtin_read_<mode>): Delete.
1156 (builtin_write_<mode>): Delete.
1157 ("optional_membar_<mode>"): Add operand.
1159 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
1160 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
1161 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
1162 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
1163 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
1164 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
1165 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
1166 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
1167 * testsuite/gcc.target/frv/all-read-write-1.c: New.
1169 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
1171 * df.c (df_uses_record): Handle SCRATCH.
1173 2005-07-28 Steven Bosscher <stevenb@suse.de>
1176 * passes.c (rest_of_decl_compilation): If decl is a type and
1177 we have encountered errors, don't emit debug information.
1179 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
1181 * params.def: Fixed comment.
1183 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
1186 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
1187 (TARGET_ASM_UNALIGNED_HI_OP): Add.
1188 (TARGET_ASM_UNALIGNED_SI_OP): Add.
1190 2005-07-27 Steven Bosscher <stevenb@suse.de>
1193 * varasm.c (assemble_start_function): Don't do anything that may
1194 require a CFG if the current function is a thunk.
1196 2005-07-25 Geoffrey Keating <geoffk@apple.com>
1198 * doc/install.texi (Prerequisites): Mention that perl is needed
1199 to do export control in libstdc++ targetting Darwin.
1201 2005-07-27 Steven Bosscher <stevenb@suse.de>
1203 PR rtl-optimization/17808
1204 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
1205 (sched_insns_conditions_mutex_p): Split out from...
1206 (add_dependence): ...here. But don't call it from here.
1207 (add_dependence_list): Check sched_insns_conditions_mutex_p
1208 before calling add_dependence.
1209 (add_dependence_list_and_free): Likewise.
1210 (fixup_sched_groups): Likewise.
1211 (sched_analyze_1): Likewise.
1212 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
1213 (sched_analyze): Likewise.
1214 (sched_analyze_insn): Likewise.
1215 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1216 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
1217 dependencies on all COND_EXEC insns to jumps ending basic blocks
1218 when doing intrablock scheduling.
1219 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
1221 2005-07-27 Jeff Law <law@redhat.com>
1223 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
1224 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
1225 equivalency sets, correctly handle the case were vr0 has an
1226 equivalency set, but vr1 does not.
1228 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
1230 PR tree-optimization/23073
1231 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
1232 vect_print_dump_info before fprintf.
1234 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1236 PR tree-optimize/22348
1237 * tree-ssa-loop-niter.c (number_of_iterations_cond):
1238 Fold the partial computation.
1240 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1242 PR tree-optimization/22325
1243 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
1245 * tree-scalar-evolution.c (scev_const_prop): Add generic final
1247 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
1248 (force_var_cost): ... this function.
1249 (compute_phi_arg_on_exit): Export.
1251 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
1253 PR tree-optimization/20773
1254 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
1257 2005-07-27 Richard Guenther <rguenther@suse.de>
1259 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
1260 Avoid pushing again if current struct contains only
1261 fields we decomposed.
1263 2005-07-27 Jan Hubicka <jh@suse.cz>
1265 PR tree-optimization/22574
1266 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
1269 * tree-tailcall.c (decrease_profile): New function.
1270 (eliminate_tail_call): Use it.
1272 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
1273 visibility flags correctly in whole program mode.
1275 2005-07-26 Steve Ellcey <sje@cup.hp.com>
1277 PR rtl-optimization/22472
1278 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
1280 2005-07-26 Steven Bosscher <stevenb@suse.de>
1282 PR tree-optimization/22504
1283 * tree-complex.c (expand_complex_addition): Use 'code' instead
1284 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
1286 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
1288 * config.gcc (cpu_type): Add frv case.
1289 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
1290 (supported_defaults): Add fr550 case.
1292 2005-07-26 Diego Novillo <dnovillo@redhat.com>
1295 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
1296 whether a pointer of type T * may point to objects of type T *.
1298 2005-07-26 DJ Delorie <dj@redhat.com>
1300 * configure: Regenerate.
1302 2005-07-26 Dale Johannesen <dalej@apple.com>
1304 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
1306 2005-07-26 Mark Mitchell <mark@codesourcery.com>
1308 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
1309 Clarify use of "build" in name.
1311 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
1313 * doc/extend.texi (Raw read/write Functions): New section.
1314 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
1315 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
1316 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
1317 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
1318 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
1319 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
1320 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
1321 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
1322 * config/frv/frv.c: Add bdesc_loads global.
1323 Add bdesc_stores global.
1324 (frv_init_builtins): Add support for __builtin_{read/write}*.
1325 (frv_volatile_memref): New.
1326 (frv_expand_load_builtin): New.
1327 (frv_expand_store_builtin): New.
1328 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
1329 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
1330 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
1331 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
1332 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
1333 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
1334 (builtin_read_<mode>): New.
1335 (builtin_write_<mode>): New.
1336 (builtin_write64): New.
1337 (optional_membar_<mode>): New.
1339 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
1341 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
1342 (rather than units) against HOST_BITS_PER_WIDE_INT.
1344 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
1346 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
1347 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
1348 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
1349 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
1352 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
1353 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
1354 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
1356 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
1358 2005-07-26 Richard Guenther <rguenther@suse.de>
1360 PR tree-optimization/22486
1361 * fold-const.c (fold_unary): Fold away useless component
1362 references of the form (T *)&T.x, if the address
1365 2005-07-25 James E Wilson <wilson@specifixinc.com>
1367 * dwarf2out.c (add_call_src_coords_attributes): New.
1368 (gen_inlined_subroutine_die): Call it.
1369 (maybe_emit_file, init_file_table): Add comments.
1370 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
1372 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
1373 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
1374 * tree.h (BLOCK_SOURCE_LOCATION): New.
1375 (struct tree_block): New field locus.
1377 2005-07-26 Andreas Schwab <schwab@suse.de>
1379 PR rtl-optimization/23043
1380 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
1381 when allocating a struct unoccr.
1383 2005-07-25 Richard Henderson <rth@redhat.com>
1386 * tree-complex.c (gate_no_optimization): True if errors.
1387 * Makefile.in (tree-complex.o): Update dependencies.
1389 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
1391 * config/frv/predicates.md (integer_register_operand): Use
1394 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1397 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
1399 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
1401 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
1403 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
1404 types when flag_unsafe_math_optimizations is true.
1406 2005-07-25 Mark Mitchell <mark@codesourcery.com>
1408 * gcc.c (option_map): Add --sysroot.
1409 (process_command): Handle --sysroot.
1410 (display_help): Document it.
1411 * doc/cppopts.tex (-isysroot): Document.
1412 * doc/invoke.texi (--sysroot): Document.
1413 * doc/install.texi (--with-build-sysroot): Document.
1415 * Makefile.in (inhibit_libc): New variable.
1416 (INHIBIT_LIBC_CFLAGS): Likewise.
1417 (LIBGCC2_CFLAGS): Include
1418 $(INHIBIT_LIBC_CFLAGS).
1419 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
1420 ($(T)crtbegin.o): Do not use @inhibit_libc@.
1421 ($(T)crtend.o): Likewise.
1422 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
1423 ($(T)crtendS.o): Likewise.
1424 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
1425 ($(T)crtendT.o): Likewise.
1426 (stmp-fixinc): Do not complain about missing headers if
1428 * configure.ac (inhibit_libc): Set it to true/false.
1429 (--with-build-sysroot): New option. Use it to set
1431 * configure: Regenerated.
1433 2005-07-25 Manfred Hollstein <mh@suse.com>
1435 * calls.c (store_one_arg): Fix unsigned comparison warning.
1437 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
1440 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
1441 (ggc_print_statistics): Initialize variable before use.
1443 2005-07-25 Richard Guenther <rguenther@suse.de>
1445 * tree-dfa.c (mark_new_vars_to_rename): Protect against
1446 calling with a PHI_NODE argument.
1448 * tree-flow-inline.h (overlap_subvar): Protect against
1451 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
1453 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
1454 * configure: Regenerate.
1456 2005-07-25 Ira Rosen <irar@il.ibm.com>
1458 * expr.c (highest_pow2_factor): Make extern.
1459 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
1460 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1461 record_array_differ_p, array_ptr_differ_p): Likewise.
1462 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
1463 additional cases. Call the above functions.
1464 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
1465 base_object_differ_p when there are two base objects. Otherwise, compare
1466 base address and offset. Call may_alias_p.
1467 (dump_data_reference): Use a correct field name.
1468 (analyze_array): Make static. Initialize new data-ref fields.
1469 (analyze_indirect_ref): New function.
1470 (init_data_ref): Initialize new data-ref fields.
1471 (strip_conversion): Moved from tree-vect-analyze.c.
1472 (analyze_offset_expr, get_ptr_offset, address_analysis,
1473 object_analysis): Likewise.
1474 (analyze_offset): New function.
1475 (create_data_ref): Likewise.
1476 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
1477 dimensions for ARRAY_REFs only.
1478 (build_classic_dist_vector): Make static.
1479 (access_functions_are_affine_or_constant_p): Call macro to get the
1480 address of access functions.
1481 (compute_all_dependences): Add new parameter
1482 compute_self_and_read_read_dependences. Compute self and read-read
1483 dependences if it is true.
1484 (find_data_references_in_loop): Call create_data_ref. Initialize new
1486 (compute_data_dependences_for_loop): Add new parameter
1487 compute_self_and_read_read_dependences. Remove parameter nb_loops,
1488 compute nb_loops. Call compute_all_dependences,
1489 build_classic_dist_vector and build_classic_dir_vector with correct
1491 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
1492 with correct parameters. Compare dimensions for ARRAY_REFs only.
1493 (free_data_refs): Call macro to free access functions.
1494 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
1495 fields from stmt_vinfo.
1496 (struct base_object_info): New structure.
1497 (struct data_reference): Move fields to base_object_info. Add fields
1498 first_location and object_info for above structures. Move fields from
1499 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
1500 aligned_to. Add macros to access the new fields.
1501 Update functions declarations.
1502 * tree-flow.h (is_aliased_with): Declare.
1503 * tree-loop-linear.c (linear_transform_loops): Call
1504 compute_data_dependences_for_loop with correct parameters.
1505 * tree-ssa-alias.c (is_aliased_with): New function.
1506 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
1507 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
1508 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
1509 vect_base_addr_differ_p, compute_subscript_distance and
1510 build_classic_dist_vector. Add printings. Check absolute value of
1512 (vect_analyze_data_ref_dependences): Go through ddrs instead of
1514 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1515 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1516 to bytes. Add printing.
1517 (vect_compute_data_refs_alignment): Go through loads and stores in one
1519 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1520 vect_analyze_data_ref_access): Likewise.
1521 (vect_analyze_pointer_ref_access): Remove.
1522 (vect_address_analysis, vect_object_analysis): Likewise.
1523 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1524 and analyze data-refs in the loop.
1525 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1526 fields of data-ref instead of stmt. Add init to the offset from the
1528 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1529 (vect_update_init_of_dr): Likewise.
1530 (vect_update_inits_of_drs): Go through loads and stores in one loop.
1531 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1533 (new_loop_vec_info): Initialize new fields.
1534 (destroy_loop_vec_info): Free new fields.
1535 (vect_strip_conversion): Remove.
1536 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1537 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
1538 datarefs. Add new field ddrs.
1539 Add macros for the new fields access.
1540 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1541 base_aligned_p, misalignment, memtag, ptr_info and subvars.
1542 Remove their macros.
1543 * tree.h (highest_pow2_factor): Declare.
1545 2005-07-25 Jakub Jelinek <jakub@redhat.com>
1547 * calls.c (store_one_arg): Check for sibling call MEM arguments
1548 from already clobbered incoming argument area.
1550 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1552 * c-common.c (check_missing_format_attribute): New.
1553 * c-common.h (check_missing_format_attribute): Likewise.
1554 * c-typeck.c (convert_for_assignment): Use it.
1556 2005-07-24 Andreas Schwab <schwab@suse.de>
1558 * config/m68k/m68k.md ("extendqidi2"): When source is an address
1559 register use a word move. Correct operand of ext.w in 68000 code.
1561 2005-07-23 Mark Mitchell <mark@codesourcery.com>
1563 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1564 variables as declarations, rather than definitions.
1566 2005-07-24 Ira Rosen <irar@il.ibm.com>
1568 PR tree-optimization/22526
1569 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1572 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1574 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1575 that C99 reserve for future use. Use it to define clog10,
1576 clog10f and clog10l.
1578 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1580 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1581 * configure.ac: Check for -Wmissing-format-attribute.
1583 * configure: Regenerate.
1585 2005-07-23 Richard Henderson <rth@redhat.com>
1587 PR tree-optimization/22623
1588 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1590 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
1593 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1595 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1597 * Makefile.in (C_TREE_H): Update dependencies.
1598 * c-tree.h: Include toplev.h.
1599 * diagnostic.h (diagnostic_set_info): Add format attribute.
1600 * rtl-error.c (diagnostic_for_asm): Likewise.
1602 2005-07-23 Chao-ying Fu <fu@mips.com>
1604 * config/mips/mips-dsp.md: New file.
1605 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1606 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1608 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1609 MIPS_BUILTIN_BPOSGE32.
1610 (mips_expand_builtin_direct): Add one parameter to indicate that
1611 builtin functions need to return a value.
1612 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1614 (mips_regno_to_class): Add classes for 12 new DSP registers.
1615 (mips_subword): Change to check four HI registers.
1616 (mips_output_move): Output move to and from 6 new DSP accumulators.
1617 (override_options): Make sure -mdsp and -mips16 are not used together.
1618 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
1620 (mips_conditional_register_usage): Disable 6 new DSP accumulators
1622 (print_operand): Add 'q' for printing DSP accumulators.
1623 (mips_cannot_change_mode_class): Check ACC_REGS.
1624 (mips_secondary_reload_class): Check ACC_REGS.
1625 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1626 (mips_register_move_cost): Check ACC_REGS.
1627 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1628 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1629 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1630 (dsp_bdesc): New array.
1631 (bdesc_arrays): Add DSP builtin function table.
1632 (mips_prepare_builtin_arg): Check predicate again after
1634 (mips_expand_builtin): Add one more parameter to
1635 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1636 MIPS_BUILTIN_BPOSGE32.
1637 (mips_init_builtins): Initialize new function types.
1638 (mips_expand_builtin_direct): Check if builtin functions need to
1639 return a value and pass operands properly.
1640 (mips_expand_builtin_bposge): New function.
1641 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1642 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1643 (FIRST_PSEUDO_REGISTER): Increase to 188.
1644 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1645 Update for 12 new DSP registers.
1646 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1647 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1648 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1649 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1650 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1651 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1652 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1653 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1654 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1655 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1656 (REGISTER_NAMES): Add names for 12 new DSP registers.
1657 * config/mips/mips.md: Include mips-dsp.md.
1658 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1659 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1660 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1661 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1662 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1663 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1664 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1665 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1666 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1667 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1668 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1669 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1670 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1671 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1672 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1673 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1674 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1675 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1676 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1677 (UNSPEC_RDDSP): New constants.
1678 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1679 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
1681 * config/mips/mips.opt (-mdsp): New option.
1682 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1683 (reg_imm10_operand): New predicates.
1684 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1685 * doc/invoke.texi (-mdsp): Document new option.
1687 2005-07-22 DJ Delorie <dj@redhat.com>
1689 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1691 * tree-inline.c (inlinable_function_p): Likewise.
1693 2005-07-22 Mark Mitchell <mark@codesourcery.com>
1696 * toplev.c (check_global_declarations): Do not mark undefined
1697 variables as DECL_IGNORED_P.
1698 * varasm.c (first_global_object_name): GTY it.
1699 (weak_global_object_name): Likewise.
1700 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1701 a string to go into {weak,first}_global_object_name.
1703 2005-07-22 DJ Delorie <dj@redhat.com>
1705 * c-format.c (check_function_format): Change warning control
1706 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1708 2005-07-22 Diego Novillo <dnovillo@redhat.com>
1710 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1711 &PTR->FLD a dereference of PTR.
1712 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1713 a potential dereference of PTR.
1715 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
1717 PR rtl-optimization/20370
1718 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1719 call allocate_reg_info if necessary.
1721 PR rtl-optimization/21848
1722 * calls.c (emit_library_call_value_1): For const functions, add
1723 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1725 PR rtl-optimization/22445
1726 * cselib.c (target.h): Include.
1727 (rtx_equal_for_cselib_p): Allow commutative matches.
1728 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1729 Remove MODE parameter. Changed all callers.
1731 PR rtl-optimization/22258
1732 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1734 (try_combine): Use likely_spilled_retval_p.
1736 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
1738 * config.gcc: Add crx-elf support.
1740 * doc/contrib.texi: Mention crx.
1741 * doc/extend.texi: Document crx extensions.
1742 * doc/install.texi: Document crx install.
1743 * doc/invoke.texi: Document crx options.
1744 * doc/md.texi: Document crx constraints.
1746 * config/crx/crx-protos.h: New file.
1747 * config/crx/crx.c: New file.
1748 * config/crx/crx.h: New file.
1749 * config/crx/crx.md: New file.
1750 * config/crx/crx.opt: New file.
1751 * config/crx/t-crx: New file.
1753 2005-07-22 Manfred Hollstein <mh@suse.com>
1755 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1757 (int_add_graph_edge): Likewise.
1758 (collapse_nodes): Likewise.
1759 (process_unification_queue): Likewise.
1761 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1762 Laurent GUERBY <laurent@guerby.net>
1764 PR tree-optimization/22336
1765 * function.c (record_block_change): Check for
1766 cfun->ib_boundaries_block.
1768 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
1770 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
1771 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
1773 2005-07-21 DJ Delorie <dj@redhat.com>
1775 * toplev.c (warn_deprecated_use): Add warning control to warning
1777 * c-typeck.c (parser_build_binary_op): Likewise.
1778 (c_finish_if_stmt): Likewise.
1779 * c-common.c (check_function_sentinel): Likewise.
1780 (check_nonnull_arg): Likewise.
1782 2005-07-21 Richard Henderson <rth@redhat.com>
1785 * tree-complex.c (complex_ssa_name_components): New.
1786 (cvc_lookup): Allow entry not found.
1787 (create_components): Remove.
1788 (create_one_component_var, get_component_var): New.
1789 (get_component_ssa_name, set_component_ssa_name): New.
1790 (extract_component): Use get_component_ssa_name.
1791 (update_complex_components): Use set_component_ssa_name.
1792 (update_complex_components_on_edge): Likewise.
1793 (update_phi_components): Create new PHI nodes directly, instead
1794 of adding insns to edges.
1795 (tree_lower_complex): Allocate and free complex_variable_components
1796 and complex_ssa_name_components here.
1798 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
1800 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
1801 revert to returning false.
1803 2005-07-21 Uros Bizjak <uros@kss-loka.si>
1806 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
1808 2005-07-21 Uros Bizjak <uros@kss-loka.si>
1811 * config/i386/i386.md (cmpxf): Change operand constraints
1812 to "nonmemory_operand".
1814 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1816 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
1818 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1821 * fold-const.c (fold_build1): Add checksum for the operands.
1822 (fold_build2): Likewise.
1823 (fold_build3): Likewise.
1825 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
1828 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
1830 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
1832 * common.opt (-fforward-propagate): Committed by mistake,
1835 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1837 * reg-stack.c: Fix comment typo(s).
1838 * tree-ssa-operands.c: Likewise.
1839 * tree-vectorizer: Likewise.
1841 2005-07-21 Nick Clifton <nickc@redhat.com>
1843 * config/sh/symbian.c: Replace C++ style line comments with C
1844 style line comments.
1845 (symbian_add_attribute): Do not use a ? operator on the LHS of
1847 (sh_symbian_handle_dll_attribute): Change the type of the
1848 method vector to "VEC(tree,gc)*" and use vector accessor
1849 macros to walk over the elements.
1850 (symbian_export_vtable_and_rtti_p): Likewise.
1851 (symbian_class_needs_attribute_p): Likewise.
1853 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
1856 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
1857 initialize targetm.resolve_overloaded_builtin here.
1858 (altivec_expand_overloaded_builtin): Make it non-static.
1859 * config/rs6000/rs6000-protos.h
1860 (altivec_expand_overloaded_builtin): New prototype.
1861 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
1862 targetm.resolve_overloaded_builtin here.
1863 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
1865 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
1866 Zdenek Dvorak <dvorakz@suse.cz>
1868 PR tree-optimization/19210
1869 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
1871 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
1872 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
1873 rely on unproven assumptions.
1874 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
1875 * tree-flow.h (number_of_iterations_exit): Add final parameter.
1876 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
1877 to number_of_iterations_exit.
1878 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
1879 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
1880 * tree-ssa-loop-niter.c (find_loop_niter,
1881 estimate_numbers_of_iterations_loop): Likewise.
1882 (number_of_iterations_exit): Honor the new options.
1883 * doc/invoke.texi (Wunsafe-loop-optimizations,
1884 funsafe-loop-optimizations): Document them.
1886 2005-07-21 Richard Sandiford <richard@codesourcery.com>
1888 PR rtl-optimization/22167
1889 * gcse.c (hoist_code): Fix hoist_exprs[] check.
1891 2005-07-20 Adam Nemet <anemet@lnxw.com>
1893 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
1894 __do_global_dtors_aux longcall.
1896 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
1898 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
1899 (old_special_pred_table): Don't reference
1900 SPECIAL_MODE_PREDICATES.
1901 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
1902 * config/arc/arc.h: Don't mention PREDICATE_CODES.
1903 * config/sh/predicates.h: Don't mention
1904 SPECIAL_MODE_PREDICATES.
1905 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1908 2005-07-20 DJ Delorie <dj@redhat.com>
1910 * config.gcc: Add m32c-elf support.
1912 * doc/contrib.texi: Mention m32c.
1913 * doc/extend.texi: Document m32c extensions.
1914 * doc/install.texi: Mention m32c.
1915 * doc/invoke.texi: Document m32c options.
1916 * doc/md.texi: Document m32c constraints.
1918 * config/m32c/addsub.md: New file.
1919 * config/m32c/bitops.md: New file.
1920 * config/m32c/cond.md: New file.
1921 * config/m32c/jump.md: New file.
1922 * config/m32c/m32c-lib1.S: New file.
1923 * config/m32c/m32c-lib2.c: New file.
1924 * config/m32c/m32c-modes.def: New file.
1925 * config/m32c/m32c-pragma.c: New file.
1926 * config/m32c/m32c-protos.h: New file.
1927 * config/m32c/m32c.abi: New file.
1928 * config/m32c/m32c.c: New file.
1929 * config/m32c/m32c.h: New file.
1930 * config/m32c/m32c.md: New file.
1931 * config/m32c/m32c.opt: New file.
1932 * config/m32c/minmax.md: New file.
1933 * config/m32c/mov.md: New file.
1934 * config/m32c/muldiv.md: New file.
1935 * config/m32c/predicates.md: New file.
1936 * config/m32c/prologue.md: New file.
1937 * config/m32c/shift.md: New file.
1938 * config/m32c/t-m32c: New file.
1940 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
1942 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1943 (stack_protect_set, stack_protect_test): New expanders.
1944 (stack_protect_set_si, stack_protect_set_si_media,
1945 stack_protect_set_di_media, stack_protect_test_si,
1946 stack_protect_test_si_media, stack_protect_test_di_media):
1949 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
1951 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1953 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
1955 * tree.h (tree_expr_nonzero_p): Export.
1956 * fold-const.c (tree_expr_nonzero_p): Likewise.
1957 Return true for CALL_EXPRs that are alloca calls.
1958 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1960 * tree-flow.h (expr_computes_nonzero): Remove.
1961 * tree-vrp.c (expr_computes_nonzero): Remove.
1962 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
1963 (extract_range_from_unary_expr): Likewise.
1964 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1965 tree_expr_nonzero_p.
1967 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
1969 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1970 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
1971 extra arg "picreg" and use it instead of pic_offset_table_rtx.
1972 All callers changed.
1973 (frame_related_constant_load): New arg "related" which controls
1974 setting of RTX_FRAME_RELATED_P. All callers changed.
1975 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1976 (bfin_expand_prologue): Add stack limit checking.
1977 * config/bfin/bfin.md (trapifcc): New pattern.
1979 * config/bfin/bfin.c: Include "langhooks.h".
1980 (def_builtin): Go through lang_hooks to call builtin_function.
1982 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1983 * config/bfin/predicates.md (symbol_ref_operand): New.
1984 (call_insn_operand): Delete. All callers changed to use
1985 register_no_elim_operand.
1986 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1988 (function_arg): Use it to generate the call's operand 2.
1989 (bfin_longcall_p): New function.
1990 (bfin_expand_call): Extra arg "cookie". All callers and declaration
1991 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
1992 determine if the address needs to be in a REG.
1993 (bfin_handle_longcall_attribute): New function.
1994 (bfin_attribute_table): Add "longcall" and "shortcall".
1995 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
1996 (CUMULATIVE_ARGS): New member call_cookie.
1997 (PREDICATE_CODES): Add symbol_ref_operand.
1998 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
1999 extra USE to the pattern.
2000 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
2001 New patterns, split off call_insn, sibcall_insn, call_value_insn and
2002 sibcall_value_insn; now the new patterns handle direct calls and the
2003 old ones indirect calls.
2004 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
2006 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
2008 * doc/trouble.texi: Update section on handling of empty loops.
2010 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
2012 * config.gcc: Remove support for sparc-*-openbsd*,
2013 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
2015 * config.host: Remove support for i860-*-sysv4* as a host.
2016 * config/i860/*, config/ip2k/*, config/ns32k/*,
2017 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
2018 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
2019 mention obsolete ports.
2021 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2023 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
2025 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
2026 of frame_pointer_rtx.
2027 (sh_expand_epilogue): Likewise.
2028 (sh_set_return_address): Likewise.
2029 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
2030 instead of FRAME_POINTER_REGNUM if needed. Add elimination
2031 offsets from FRAME_POINTER_REGNUM.
2032 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
2033 (sh_register_names): Add initializer for sfp.
2034 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
2035 (VALID_REGISTER_P): Likewise.
2036 (FIRST_PSEUDO_REGISTER): Update.
2037 (DWARF_FRAME_REGISTERS): Define.
2038 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
2039 (HARD_FRAME_POINTER_REGNUM): Define.
2040 (FRAME_POINTER_REGNUM): Redefine.
2041 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
2042 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
2043 from FRAME_POINTER_REGNUM.
2044 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
2045 FRAME_POINTER_REGNUM.
2046 (REG_CLASS_CONTENTS): Add sfp.
2047 (REG_ALLOC_ORDER): Likewise.
2048 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
2049 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
2050 of frame_pointer_rtx.
2051 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
2053 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
2055 * fold-const.c (tree_expr_nonnegative_p): Only return true for
2056 ABS_EXPR when flag_wrapv is false because of INT_MIN.
2057 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
2059 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
2062 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2064 Make CONSTRUCTOR use VEC to store initializers.
2065 * c-common.c (complete_array_type): Update to cope with VEC in
2067 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
2068 (pp_c_constructor_elts): New function.
2069 * c-pretty-print.h (pp_c_constructor_elts): Declare.
2070 * c-typeck.c (build_function_call, build_c_cast, digest_init,
2071 struct constructor_stack, struct initializer_stack,
2072 constructor_elements, push_init_level, pop_init_level,
2073 add_pending_init, find_init_member, output_init_element): Update to
2074 cope with VEC in CONSTRUCTOR_ELTS.
2075 * coverage.c (build_fn_info_value, build_ctr_info_value,
2076 build_gcov_info): Likewise.
2077 * expr.c (categorize_ctor_elements_1, store_constructor,
2078 expand_expr_real_1): Likewise.
2079 * fold-const.c (fold_ternary): Likewise.
2080 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
2081 gimplify_init_constructor, gimplify_expr): Likewise.
2082 * tree-dump.c (dequeue_and_dump): Likewise.
2083 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
2085 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
2087 * tree-sra.c (generate_element_init_1): Likewise.
2088 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
2089 * tree-ssa-operands.c (get_expr_operands): Likewise.
2090 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2091 * tree-vect-transform.c (vect_get_vec_def_for_operand):
2092 (get_initial_def_for_reduction): Likewise.
2093 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
2094 value handle in annotations.
2095 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
2096 tree_node_structure): Add support for constr_kind.
2097 (build_vector_from_ctor, build_constructor_single,
2098 build_constructor_from_list): New functions.
2099 (build_constructor): Update to take a VEC instead of a TREE_LIST.
2100 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
2101 Update to cope with VEC in CONSTRUCTOR_ELTS.
2102 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
2103 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
2104 CONSTRUCTOR_APPEND_ELT): New macros.
2105 (struct constructor_elt, struct tree_constructor): New data types.
2106 (union tree_node): Add tree_constructor field.
2107 * treestruct.def: Define TS_CONSTRUCTOR.
2108 * varasm.c (const_hash_1, compare_constant, copy_constant,
2109 compute_reloc_for_constant, output_addressed_constants,
2110 initializer_constant_valid_p, output_constant,
2111 array_size_for_constructor, output_constructor): Update to cope with
2112 VEC in CONSTRUCTOR_ELTS.
2113 * vec.h (VEC_empty, VEC_copy): New macros.
2115 2005-07-19 Devang Patel <dpatel@apple.com>
2117 * dbxout.c (dbxout_type): Check Objective-C++ lang.
2119 2005-07-19 Richard Henderson <rth@redhat.com>
2122 * gimplify.c (gimplify_expr): Use main variant type for the temp
2123 destination for a discarded volatile read.
2124 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
2125 casts between non-void types that change volatility.
2127 2005-07-15 DJ Delorie <dj@redhat.com>
2129 * toplev.h: Add comment about the first parameter for warning().
2130 * errors.h: Likewise.
2132 * c.opt (Wpragmas): New.
2133 * doc/invoke.texi: Document it.
2135 * function.c (do_warn_unused_parameter): Add warning control to
2137 * c-decl.c (warn_if_shadowing): Likewise.
2138 * c-lex.c (cb_def_pragma): Likewise.
2139 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2140 (pop_alignment): Likewise.
2141 (handle_pragma_pack): Likewise.
2142 (apply_pragma_weak): Likewise.
2143 (handle_pragma_weak): Likewise.
2144 (handle_pragma_redefine_extname): Likewise.
2145 (add_to_renaming_pragma_list): Likewise.
2146 (handle_pragma_extern_prefix): Likewise.
2147 (maybe_apply_renaming_pragma): Likewise.
2148 (handle_pragma_visibility): Likewise.
2150 * config/c4x/c4x-c.c (BAD): Likewise.
2151 (c4x_parse_pragma): Likewise.
2152 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
2153 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2154 (rs6000_pragma_longcall): Likewise.
2155 * config/v850/v850-c.c (pop_data_area): Likewise.
2156 (ghs_pragma_section): Likewise.
2157 (ghs_pragma_section): Likewise.
2158 (ghs_pragma_interrupt): Likewise.
2159 (ghs_pragma_starttda): Likewise.
2160 (ghs_pragma_startsda): Likewise.
2161 (ghs_pragma_startzda): Likewise.
2162 (ghs_pragma_endtda): Likewise.
2163 (ghs_pragma_endsda): Likewise.
2164 (ghs_pragma_endzda): Likewise.
2166 2005-07-19 Danny Berlin <dberlin@dberlin.org>
2167 Kenneth Zadeck <zadeck@naturalbridge.com>
2169 * Makefile.in: Removed tree-promote-statics.c
2170 * tree-promote-statics.c: Removed.
2171 * common.opt: Removed flag-promote-statics.
2173 * passes.c: Removed tree-promote-statics pass.
2174 * tree-pass.h: Ditto.
2175 * timevar.def: Removed TV_PROMOTE_STATICS.
2178 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
2180 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
2182 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
2184 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2187 * c-common.c (check_function_arguments): Call
2188 'check_function_format' if either -Wformat or
2189 -Wmissing-format-attribute are specified.
2190 * c-format.c (check_function_format): Check -Wformat before
2191 calling 'check_format_info'.
2192 * c-opts.c (c_common_post_options): Don't warn for
2193 -Wmissing-format-attribute without -Wformat.
2194 * c-typeck.c (convert_for_assignment): Detect additional cases for
2195 -Wmissing-format-attribute.
2196 * doc/invoke.texi (-Wmissing-format-attribute): Document new
2199 2005-07-19 Richard Guenther <rguenther@suse.de>
2201 * config/i386/i386.md (lrint<mode>2): Use temporary
2202 instead of clobbering non-existent memory.
2204 2005-07-19 Nick Clifton <nickc@redhat.com>
2206 * config/avr/avr.c (legitimate_address_p): Fix debugging print
2207 statement to avoid displaying ASCII control characters.
2209 2005-07-19 Ben Elliston <bje@au.ibm.com>
2211 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
2212 * cfganal.c (find_edge_index): Ditto.
2213 * combine.c (combine_instructions): Ditto.
2214 * ddg.c (create_scc): Ditto.
2215 (find_successors): Ditto.
2216 (find_predecessors): Ditto.
2217 (find_nodes_on_paths): Ditto.
2218 (longest_simple_path): Ditto.
2219 * flow.c (update_life_info): Ditto.
2220 (count_or_remove_death_notes): Ditto.
2221 (clear_log_links): Ditto.
2222 * modulo-sched.c (generate_reg_moves): Ditto.
2223 (find_max_asap): Ditto.
2224 (find_max_hv_min_mob): Ditto.
2225 (find_max_dv_min_mob): Ditto.
2226 * sbitmap.c (sbitmap_first_set_bit): Ditto.
2227 * sched-rgn.c (extract_edgelst): Ditto.
2228 * tree-into-ssa.c (prepare_names_to_update): Ditto.
2229 (dump_update_ssa): Ditto.
2230 (ssa_names_to_replace) Ditto.
2231 (switch_virtuals_to_full_rewrite): Ditto.
2232 (update_ssa): Ditto.
2233 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2235 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
2237 Fix PR tree-optimization/22483
2239 * tree-complex.c (create_components): Use
2240 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
2241 * tree-flow-inline.h (fill_referenced_var_vec): New function.
2242 * tree-flow.h (safe_referenced_var_iterator): New structure.
2243 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
2244 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
2245 safe_referenced_var iterator.
2246 (add_type_alias): Ditto.
2248 2005-07-19 Steven Bosscher <stevenb@suse.de>
2250 * loop-init.c (rest_of_handle_loop2): Remove.
2251 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
2252 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
2253 (pass_rtl_loop_init, pass_rtl_loop_done,
2254 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
2255 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
2256 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
2257 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
2258 pass_tree_loop_done, and pass_tree_unswitch.
2259 (gate_loop): Rename to gate_tree_loop.
2260 * passes.c (init_optimization_passes): Update for renamed tree
2261 loop passes. Add the new loop2 passes as subpasses of loop2.
2262 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
2263 Update for the renamed tree loop passes.
2265 2005-07-18 Ian Lance Taylor <ian@airs.com>
2268 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
2269 blocks when optimizing.
2271 2005-07-18 Steve Ellcey <sje@cup.hp.com>
2273 * common.opt (frename-registers): Initialize to 2.
2275 (fgcse-after-reload): Ditto.
2276 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
2277 (process_options): Only change flag_web, flag_rename_registers,
2278 and flag_rerun_cse_after_loop if not explicitly set by user.
2280 2005-07-18 Jan Beulich <jbeulich@novell.com>
2282 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
2283 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
2284 in 64-bit mode the same as DImode in 32-bit mode.
2285 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
2286 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
2287 mode. Add new mode parameter.
2288 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
2289 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
2290 x86_64_shift_adj): New expanders.
2291 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
2292 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
2294 Respective new splitters. Use renamed shift splitter helpers in 32-bit
2295 DImode shift splitters.
2296 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
2297 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
2300 2005-07-18 Jan Beulich <jbeulich@novell.com>
2302 * i386.md (movdi_extzv_1): New.
2303 (zero_extendhidi2): Combine alternatives and never force use of
2305 (zero_extendqidi2): Likewise. Don't restrict input selection.
2307 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
2309 Fix PR tree-optimization/22531
2310 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
2313 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
2315 * tree-promote-statics.c (pass_promote_statics): Change dump file
2318 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
2320 * tree-optimize.c (init_tree_optimization_passes): Add
2321 pass_eliminate_useless_stores pass.
2322 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
2323 * tree-ssa-pre.c (is_copy_stmt): New function.
2324 (follow_copies_till_vuse): Ditto.
2325 (do_eustores): Ditto.
2326 (gate_eustores): Ditto.
2328 2005-07-16 Richard Henderson <rth@redhat.com>
2330 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
2332 2005-07-16 Danny Berlin <dberlin@dberlin.org>
2333 Kenneth Zadeck <zadeck@naturalbridge.com>
2335 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
2336 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
2337 ipa-type-escape.h, tree-promote-statics.c
2338 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
2339 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
2340 tree-promote-statics.c: new files.
2341 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
2342 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
2343 int nonlocal_set_p, mark_constant_function): Deleted.
2344 (rest_of_handle_cfg): Removed call to mark_constant_function.
2345 (nonoverlapping_component_refs_p): Added calls to support
2346 type based aliasing.
2347 * tree-ssa-alias.c (may_alias_p,
2348 compute_flow_insensitive_aliasing): Ditto.
2349 * calls.c (flags_from_decl_or_type): Removed reference to
2351 * c-typeck.c (convert_arguments): Make builtins tolerant of having
2352 too many arguments. This is necessary for Spec 2000.
2353 * cgraph.h (const_function, pure_function): Removed.
2354 * common.opt: Added "fipa-pure-const", "fipa-reference",
2355 "fipa-type-escape", and "ftree-promote-static".
2357 * passes.c: Added ipa and tree-promote-statics passes.
2358 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
2359 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
2360 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
2361 * tree-flow.h: Added exposed sra calls and addition of
2362 reference_vars_info field for FUNCTION_DECLS.
2363 * tree-pass.h: Added passes.
2364 * tree-sra.c: (sra_init_cache): New function.
2365 (sra_insert_before, sra_insert_after) Made public.
2366 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
2368 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
2369 aliasing. (may_alias_p): Added code to use type escape analysis to
2371 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
2372 code to prune clobbers of static variables based on information
2373 produced in ipa-reference pass. Changed call clobbering so that
2374 statics are not marked as clobbered if the call does not clobber
2377 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
2379 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
2382 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
2384 * doc/install.texi (*-*-solaris2*): Document recommended version
2385 of GNU binutils and mention GNU linker problem on Solaris 10.
2387 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
2390 * c-decl.c (c_build_bitfield_integer_type): New function.
2391 (finish_struct): Call it.
2392 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
2394 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2396 * c-typeck.c (digest_init): Call 'convert_for_assignment'
2399 2005-07-16 Jan Hubicka <jh@suse.cz>
2401 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
2402 (scale_bbs_frequencies_int): Watch roundoff errors.
2403 * predict.c (return_prediction): Initialize return_stmt.
2405 2005-07-16 Jan Hubicka <jh@suse.cz>
2407 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
2408 after RTL profiling.
2410 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2413 * fold-const.c (build_range_check): Convert high/low to etype
2414 if we are only comparing against exp.
2416 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
2418 Fix PR tree-optimization/22376
2419 * tree-ssa-structalias.c (build_constraint_graph): We really meant
2421 (need_to_solve): New function.
2422 (compute_points_to_sets): Use it.
2424 2005-07-15 Jan Hubicka <jh@suse.cz>
2426 * cfg.c (update_bb_profile_for_threading): More diagnostic.
2427 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
2429 2005-07-15 Richard Guenther <rguenther@suse.de>
2431 * c-common.c (handle_flatten_attribute): New function.
2432 Add flatten function attribute.
2433 * doc/extend.texi: Document flatten function attribute.
2434 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
2435 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
2437 (cgraph_decide_inlining): Handle functions with flatten
2440 2005-07-14 David Edelsohn <edelsohn@gnu.org>
2442 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
2443 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
2444 UNSPEC_XCHG, UNSPEC_AND): New.
2445 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
2446 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
2447 * config/rs6000/sync.md (FETCHOP): New code macro.
2448 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
2450 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
2451 (sync_compare_and_swap<mode>): Same.
2452 (sync_lock_test_and_set<mode>): Same.
2453 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
2454 for QImode and HImode, and not PPC405.
2455 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
2456 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
2457 (sync_<fetchop>{si,di}_internal): New.
2458 (sync_nand{si,di}_internal): New.
2459 (sync_old_<fetchop>{si,di}_internal): New.
2460 (sync_old_nand{si,di}_internal): New
2461 (sync_new_<fetchop>{si,di}_internal): New.
2462 (sync_new_nand{si,di}_internal): New.
2463 (atomic_and{si,di}): New.
2464 (sync_new_nand{si,di}_internal): New.
2465 (atomic_and{si,di}): New.
2466 (sync_add<mode>_internal): Delete.
2467 (sync_addshort_internal): Use unspec instead of unspec_volatile.
2468 (sync_sub<mode>_internal): Delte.
2469 (sync_subshort_internal): New.
2470 (sync_andsi_internal): Use unspec instead of unspec_volatile.
2471 (sync_anddi_internal): Delete.
2472 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
2473 (sync_booldi_internal): Delete.
2474 (sync_boolc<mode>_internal): Delete.
2475 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
2476 (sync_boolc<mode>_internal2): Delete.
2477 (sync_boolcc<mode>_internal): Delete.
2478 (isync, lwsync): Use unspec instead of unspec_volatile.
2479 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
2480 Revert UNSPEC_VOLATILE.
2481 (rs6000_split_atomic_op): New.
2482 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
2484 2005-07-14 Eric Christopher <echristo@redhat.com>
2486 * config/mips/mips.c (mips_canonicalize_comparison): Cast
2487 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
2489 2005-07-14 Eric Christopher <echristo@redhat.com>
2491 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
2493 2005-07-14 Steven Bosscher <stevenb@suse.de>
2495 PR tree-optimization/22230
2496 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
2497 the computation of the four cross productions for "range op range".
2499 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
2500 Ulrich Weigand <uweigand@de.ibm.com>
2503 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
2506 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
2508 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
2510 2005-07-14 Steve Ellcey <sje@cup.hp.com>
2512 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2514 2005-07-14 Richard Guenther <rguenther@suse.de>
2517 * config/i386/i386-protos.h (ix86_function_value): Change
2518 prototype to match new target hook.
2519 * config/i386/i386.c (ix86_value_regno): Change prototype
2520 to take extra type argument.
2521 (TARGET_FUNCTION_VALUE): Define.
2522 (ix86_function_ok_for_sibcall): Pass extra argument to
2523 ix86_value_regno, check return slot rtx for exact match.
2524 (ix86_function_value): Take extra parameter. Dispatch to
2525 ix86_value_regno with fndecl/fntype as provided.
2526 (ix86_value_regno): Handle extra type argument.
2527 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2529 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2530 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2531 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2532 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2533 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2535 2005-07-14 Richard Guenther <rguenther@suse.de>
2537 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2538 * calls.c (expand_call): Pass fntype to hard_function_value.
2539 (emit_library_call_value_1): Likewise.
2540 * explow.c: Include target.h.
2541 (hard_function_value): Take extra argument, the fntype.
2542 Use new target hook for function_value.
2543 * expr.h (hard_function_value): Change prototype.
2544 * function.c (aggregate_value_p): Pass 0 as fntype to
2545 hard_function_value.
2546 (assign_parms): Use new target hook for function_value.
2547 Pass 0 as fntype to hard_function_value.
2548 (expand_function_end): Likewise.
2549 * reg-stack.c: Include target.h.
2550 (stack_result): Use new target hook for function_value.
2551 * target-def.h: New target hook function_value.
2552 * target.h: Likewise.
2553 * targhooks.c (default_function_value): New function.
2554 * targhooks.h (default_function_value): Declare.
2556 2005-07-13 Ian Lance Taylor <ian@airs.com>
2558 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2560 2005-07-14 Jan Hubicka <jh@suse.cz>
2562 * tree-dfa.c (dump_variable): Use default_def function.
2563 * tree-ssa-alias.c (dump_points_to_info): Likewise.
2564 * tree-ssa.c (verify_use): Likewise.
2565 * tree-ssanames.c (release_ssa_name): Likewise.
2566 * tree-tailcall.c (eliminate_tail_call): Likewise.
2567 (tree_optimize_tail_calls_1): Likewise.
2568 * tree-vrp.c (get_value_range): Likewise.
2570 2005-07-14 Ben Elliston <bje@au.ibm.com>
2572 * gcc.c (main): Compare language[0] with '*' when iterating over
2575 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
2577 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
2578 "s390_emit_compare". Add handling of CCZ1mode.
2579 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
2580 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
2582 (s390_branch_condition_mask): Add CCZ1mode handling.
2583 * config/s390/s390.md: ("seq", "*seq"): New pattern.
2584 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
2585 Use CCZ1mode instead of CCZmode.
2586 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
2588 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
2590 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
2592 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
2594 2005-07-13 Eric Christopher <echristo@redhat.com>
2596 * config/mips/mips.c (mips_canonicalize_comparison): New.
2597 (mips_emit_int_relational): Use.
2599 2005-07-13 Eric Christopher <echristo@redhat.com>
2601 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2603 * config/s390/s390.md: Include tpf.md. Move tpf specific
2605 * config/s390/tpf.md: To here.
2606 * config/s390/s390.opt: Move tpf specific options...
2607 * config/s390/tpf.opt: to here. Add mmain option.
2608 * config/s390/tpf-unwind.h: Remove unnecessary defines.
2609 * config/s390/tpf.h: Rewrite.
2611 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
2613 * doc/tm.texi: Remove @xref{Cross-profiling}.
2615 2005-07-13 Jeff Law <law@redhat.com>
2617 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
2618 expressions, test their _DECL operands for pointer equality rather
2619 than using operand_equal_p.
2621 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
2623 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
2624 (TARGET_POSIX_IO): This.
2625 * config/darwin.h: Likewise.
2626 * config/freebsd.h: Likewise.
2627 * config/linux.h: Likewise.
2628 * config/lynx.h: Likewise.
2629 * config/netbsd.h: Likewise.
2630 * config/rs6000/linux64.h: Likewise.
2631 * config/rs6000/linux.h: Likewise.
2632 * config/s390/tpf.h: Likewise.
2633 * config/sh/embed-elf.h: Likewise.
2634 * config/sparc/linux64.h: Likewise.
2635 * config/sparc/linux.h: Likewise.
2636 * config/svr4.h: Likewise.
2637 * gcov-io.h: Likewise.
2639 * doc/tm.texi: Updated.
2641 * libgcov.c (create_file_directory): Defined only if
2642 TARGET_POSIX_IO is defined.
2643 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
2646 2005-07-13 Jan Hubicka <jh@suse.cz>
2648 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
2650 2005-07-13 David Edelsohn <edelsohn@gnu.org>
2652 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
2653 structure as argument.
2655 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
2657 PR tree-optimization/21921
2658 * tree-iterator.c (tsi_link_before): Support the case when
2659 tsi_end_p (tsi) == true.
2661 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
2663 PR tree-optimization/22442
2664 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
2667 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
2669 PR rtl-optimization/20376
2670 * toplev.c (process_options): Enable -fweb and -frename-registers when
2672 * doc/invoke.texi: Update the information about when -fweb and
2673 -frename-registers are enabled.
2675 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
2678 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
2679 if *rhs_p is not a SSA_NAME.
2681 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
2683 Fix PR tree-optimization/22422
2684 * tree-ssa-structalias.c (struct variable_info): Add flag for
2686 (get_varinfo): Now a static function.
2687 (new_varinfo): init has_union and is_special_var to false.
2688 (solution_set_add): Check has_union.
2689 (do_da_constraint): Move temporary variable so it gets reset
2691 Also check for special variable.
2692 (do_ds_constraint): Ditto.
2693 (do_sd_constraint): Ditto.
2694 (do_structure_copy): Check for special variable.
2695 (find_func_aliases): Ditto.
2696 (init_base_vars): Set special vars properly.
2698 2005-07-13 Jan Hubicka <jh@suse.cz>
2700 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
2703 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
2704 (get_expr_operands): Fix thinko wrt flags and subvars.
2706 PR tree-optimize/22379
2707 * tree-inline.c (expand_call_inline): Do not output sorry in early
2710 2005-07-12 Dale Johannesen <dalej@apple.com>
2712 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
2714 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
2717 * host-linux.h: Include limits.h.
2719 2005-07-12 Dale Johannesen <dalej@apple.com>
2721 * expr.c (compress_float_constant): Add cost check.
2722 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
2724 2005-07-12 Dale Johannesen <dalej@apple.com>
2726 * gcc.target/i386/compress-float-sse.c: New.
2727 * gcc.target/i386/compress-float-sse-pic.c: New.
2728 * gcc.target/i386/compress-float-387.c: New.
2729 * gcc.target/i386/compress-float-387-pic.c: New.
2730 * gcc.dg/compress-float-ppc.c: New.
2731 * gcc.dg/compress-float-ppc-pic.c: New.
2733 2005-07-12 Eric Christopher <echristo@redhat.com>
2735 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2737 * config/s390/s390.md: Include tpf.md. Move tpf specific
2739 * config/s390/tpf.md: To here.
2740 * config/s390/s390.opt: Move tpf specific options...
2741 * config/s390/tpf.opt: to here. Add mmain option.
2742 * config/s390/tpf-unwind.h: Remove unnecessary defines.
2743 * config/s390/tpf.h: Rewrite.
2745 2005-07-12 Eric Christopher <echristo@redhat.com>
2747 * gcc.c (struct infile): Update comment for language.
2748 (main): Rewrite input file resetting code.
2750 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
2753 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
2754 requiring a cast in a non RHS of modify_expr. Add a cast when required.
2755 (lookup_avail_expr): Use constant_boolean_node instead
2756 of boolean_false_node/boolean_true_node.
2758 2005-07-12 Ben Elliston <bje@au.ibm.com>
2760 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
2761 and use it when printing num_edges.
2763 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
2765 * doc/extend.texi (Blackfin Built-in Functions): New section.
2766 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
2769 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
2771 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
2772 s/cmpstrsi/cmpstrnsi
2773 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
2775 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
2776 (init_optabs): Initialize cmpstrn_optab.
2777 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
2778 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
2779 * expr.c: (enum insn_code cmpstrn_optab): Declare.
2780 * config/i386/i386.md: s/cmpstr/cmpstrn
2781 * config/c4x/c4x.md: s/cmpstr/cmpstrn
2782 * doc/md.texi: Update documentation.
2784 2005-07-11 Richard Henderson <rth@redhat.com>
2786 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
2787 build_va_arg_indirect_ref.
2788 (alpha_gimplify_va_arg): Likewise.
2789 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2790 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
2791 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
2792 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2793 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2794 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
2796 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2798 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
2800 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
2801 * passes.c (init_optimization_passes): Add pass_empty_loop.
2802 * tree-pass.h (pass_empty_loop): Declare.
2803 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
2804 try_remove_empty_loop, remove_empty_loops): New functions.
2805 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
2806 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
2808 2005-07-12 Peter Barada <peter@the-baradas.com>
2812 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
2813 in address registers.
2814 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
2815 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
2816 alternative of addsi3_5200.
2818 2005-07-11 Ian Lance Taylor <ian@airs.com>
2820 * config/mips/mips.md (ffs<mode>2): Remove.
2822 2005-07-11 Ian Lance Taylor <ian@airs.com>
2824 * doc/tree-ssa.texi (Cleanups): Improve description of
2826 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
2828 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
2830 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
2831 * tree.h (DECL_ARGUMENT_FLD): New macro.
2833 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
2835 Fix PR tree-optimization/22404
2837 * tree-ssa-structalias.c (create_variable_info_for): Use
2840 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
2842 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
2843 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
2844 for second comparison operand.
2845 * config/bfin/predicates.md (reg_or_const_int_operand): New.
2847 * config/bfin/bfin.md (define_attr "type"): Add "sync".
2848 (define_insn_reservation "alu"): Likewise.
2849 (csync, ssync): Now of type sync.
2850 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
2851 -mcsync-anomaly -mspecld-anomaly.
2852 * config/bfin/bfin.opt (mcsync): Remove.
2853 (mcsync-anomaly, mspecld-anomaly): Add.
2854 * config/bfin/bfin.c: Include "insn-codes.h".
2855 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
2856 (TARGET_DEFAULT_TARGET_FLAGS): New.
2857 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
2859 2005-07-11 Steven Bosscher <stevenb@suse.de>
2861 * basic-block.h: Give the BB flags enum a name, bb_flags.
2862 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
2863 * cfgcleanup.c (enum bb_flags): Remove here.
2864 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
2865 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
2866 (update_forwarder_flag): Likewise.
2867 (thread_jump): Likewise.
2868 (try_forward_edges): Likewise.
2869 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
2870 forwarder flags. Don't clear bb->aux for all basic blocks. Only
2871 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
2873 2005-07-11 Richard Guenther <rguenther@suse.de>
2875 * config/i386/i386.opt: New target option -msseregparm.
2876 * config/i386/i386.c (override_options): Error out for
2877 -msseregparm but no SSE support.
2878 (ix86_function_sseregparm): Check for global sseregparm.
2879 * doc/invoke.texi: Document -msseregparm.
2881 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2883 * config.gcc (m32r-*-linux*): Use the default extra_parts.
2884 (m32rle-*-linux*): Ditto.
2886 2005-07-11 Jakub Jelinek <jakub@redhat.com>
2888 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
2889 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
2892 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2896 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
2897 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
2899 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
2901 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
2902 (varmap): Heapify varmap.
2903 (constraints): Heapify constraints.
2904 (struct constraint_graph): Heapify succs and preds.
2905 (constraint_vec_find): Update for heapification.
2906 (constraint_set_union): Ditto.
2907 (insert_into_complex): Ditto.
2908 (constraint_edge_vec_find): Ditto.
2909 (erase_graph_self_edge): Ditto.
2910 (add_graph_edge): Ditto.
2911 (get_graph_weights): Ditto.
2912 (merge_graph_nodes): Ditto.
2913 (build_constraint_graph): Ditto.
2914 (topo_visit): Ditto.
2915 (solve_graph): Ditto.
2916 (create_variable_info_for): Ditto.
2917 (init_base_vars): Ditto.
2918 (delete_points_to_sets): Free graph, varmap, and complex constraints.
2919 (condese_varmap_nodes): Free complex vector.
2920 (clear_edges_for_node): Clear succs and preds vector.
2922 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
2924 * tree-ssa-structalias.c (update_alias_info): Change counting of
2925 references to not include vdefs.
2927 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
2929 * tree-ssa-alias.c (free_used_part_map): Add missing free.
2932 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2934 * pa.c (pa_commutative_p): Make PLUS commutative when
2935 TARGET_NO_SPACE_REGS is true.
2937 2005-07-09 Diego Novillo <dnovillo@redhat.com>
2939 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
2940 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
2941 * tree-dfa.c (dump_subvars_for): New.
2942 (debug_subvars_for): New.
2943 (dump_variable): Show subvariables if VAR has them.
2944 * tree-flow-inline.h (get_subvar_at): New.
2945 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
2946 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
2948 (struct subvar): Change fields offset and size to unsigned
2950 (dump_subvars_for): Declare.
2951 (debug_subvars_for): Declare.
2952 (get_subvar_at): Declare.
2953 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
2954 to unsigned HOST_WIDE_INT *.
2955 (overlap_subvar): Likewise.
2956 * tree-gimple.c (is_gimple_reg): Always return false for
2957 SFTs and memory tags.
2958 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
2960 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
2961 (compute_may_aliases): Call compute_points_to_sets.
2962 (collect_points_to_info_for): Remove.
2963 (compute_points_to_and_addr_escape): Remove.
2964 (delete_alias_info): Call delete_points_to_sets.
2965 (compute_flow_sensitive_aliasing): If the call to
2966 find_what_p_points_to returns false, call set_pt_anything.
2967 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
2968 (set_pt_anything): Clear pi->pt_vars.
2969 (set_pt_malloc): Remove.
2970 (merge_pointed_to_info): Remove.
2971 (add_pointed_to_expr): Remove.
2972 (add_pointed_to_var): Remove.
2973 (collect_points_to_info_r): Remove.
2974 (is_escape_site): Make extern.
2976 (create_overlap_variables_for): Call it.
2977 * tree-ssa-copy.c (merge_alias_info): Never merge
2978 flow-sensitive alias information.
2979 * tree-ssa-operands.c (get_expr_operands): Adjust variables
2980 offset and size to be unsigned HOST_WIDE_INT.
2981 (add_to_addressable_set): Rename from note_addressable.
2982 Set TREE_ADDRESSABLE as the variables are added to the set.
2984 (add_stmt_operand): Do not try to micro-optimize unmodifiable
2985 operands into VUSEs when adding V_MAY_DEFs for members in an
2987 * tree-ssa-operands.h (add_to_addressable_set): Declare.
2988 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
2989 (struct variable_info): Add bitfield is_heap_var.
2990 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
2991 (new_var_info): Initialize is_heap_var.
2992 (get_constraint_for): Add HEAP variables to the symbol table.
2993 Mark them with is_heap_var.
2994 (update_alias_info): New. Taken mostly from the old
2995 compute_points_to_and_addr_escape.
2996 (handle_ptr_arith): New.
2997 (find_func_aliases): Call update_alias_info.
2998 Call handle_ptr_info for tcc_binary expressions.
2999 Call mark_stmt_modified.
3000 (create_variable_info_for): If DECL has subvars, do not create
3001 variables for its subvars. Always add all the fields.
3002 (set_uids_in_ptset): If the solution includes ANYOFFSET and
3003 SFTs, then add all the SFTs of the structure.
3004 If VI->DECL is an aggregate with subvariables, add the SFT at
3006 (find_what_p_points_to): If VI is an artificial variable,
3007 translate to bitfields in SSA_NAME_PTR_INFO.
3008 If the solution is empty, set pi->pt_vars to NULL
3009 (init_base_vars): Create ANYOFFSET.
3010 (compute_points_to_sets): Rename from create_alias_vars.
3012 (pass_build_pta): Remove.
3013 (delete_points_to_sets): Rename from delete_alias_vars.
3014 (pass_del_pta): Remove.
3015 * tree-ssa-structalias.h (struct alias_info): Move from
3017 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
3018 NUM_REFERENCES_SET): Likewise.
3019 (compute_points_to_sets, delete_points_to_sets): Declare.
3021 2005-07-09 Richard Henderson <rth@redhat.com>
3023 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
3024 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
3025 alpha_split_lock_test_and_set_12): New functions.
3026 * config/alpha/alpha-protos.h: Update.
3027 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
3028 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
3029 * config/alpha/sync.md (I12MODE): New.
3030 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
3031 (sync_<fetchop_name><I48MODE>): Likewise.
3032 (sync_nand<I48MODE>): Likewise.
3033 (sync_old_<fetchop_name><I48MODE>): Likewise.
3034 (sync_new_<fetchop_name><I48MODE>): Likewise.
3035 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
3036 (sync_compare_and_swap<I48MODE>): Likewise.
3037 (sync_lock_test_and_set<I48MODE>): Likewise.
3038 (sync_compare_and_swap<I12MODE>): New.
3039 (sync_compare_and_swap<I12MODE>_1): New.
3040 (sync_lock_test_and_set<I12MODE>): New.
3041 (sync_lock_test_and_set<I12MODE>_1): New.
3043 2005-07-09 Diego Novillo <dnovillo@redhat.com>
3047 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
3049 2005-07-09 Jakub Jelinek <jakub@redhat.com>
3051 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
3052 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
3054 2005-07-09 Richard SAndiford <richard@codesourcery.com>
3057 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
3059 2005-07-08 David Edelsohn <edelsohn@gnu.org>
3061 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
3062 memory_operand constraint.
3063 (store_conditional_<mode>): Same.
3064 (sync_compare_and_swap<mode>): Same.
3065 (sync_lock_test_and_set<mode>): Same.
3067 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
3069 Rewrite PIC support to more closely model actual instructions.
3070 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
3071 (cris_symbol): Remove prototypes for removed functions.
3072 (cris_pic_symbol_type_of, cris_valid_pic_const)
3073 (cris_expand_pic_call_address): Prototypes for new functions.
3074 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
3076 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
3078 <case ':'>: Add case for new punctuation character.
3079 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
3080 emitting (extra) PIC modifier.
3081 <case UNSPEC>: Do not assert for PLT.
3082 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
3083 (cris_expand_prologue, cris_expand_epilogue): Check
3084 for pic_offset_table_rtx usage instead of taking
3085 current_function_uses_pic_offset_table as the final word.
3086 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
3087 Remove flag_pic difference.
3088 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
3089 the moral equivalents of...
3090 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
3092 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
3093 (cris_handle_option): Mark ARG as unused.
3094 (cris_expand_pic_call_address): New worker function for "call",
3096 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
3097 output PIC constructs here.
3098 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
3099 as symbol-specific modifers, not whole or part of operands.
3100 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
3101 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
3102 constants and flag_pic.
3103 (CONSTANT_INDEX_P): Adjust for new functions.
3104 (enum cris_pic_symbol_type): New helper type.
3105 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
3106 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
3107 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
3109 ("movsi"): Emit actual instructions for GOT and relative access.
3110 ("*movsi_got_load"): New pattern to set up the register holding
3112 ("*movsi_internal"): Operand 1 is not a plain general_operand.
3113 Adjust FIXME for 'S'.
3114 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
3115 Use "movs" for -fpic cases.
3116 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
3117 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
3118 ("call", "call_value"): Just call cris_expand_pic_call_address for
3120 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
3121 Remove special pattern.
3122 ("*expanded_call_side", "*expanded_call_value_side"): New
3124 (gotplt-to-plt, gotplt-to-plt-side-call)
3125 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
3127 * config/cris/cris/predicates.md
3128 ("cris_general_operand_or_gotless_symbol"): Remove unused
3130 ("cris_general_operand_or_symbol"): Adjust for new functions.
3132 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
3134 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
3136 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
3138 * Makefile.in (TREE_H): Add treestruct.def.
3139 (c-decl.o): Add pointer-set.h
3140 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
3141 visibility on regular DECL's.
3142 (merge_decls): Fix the copying of decl nodes of various types for
3143 the new structures. Don't update RTL, section name, weak status,
3144 etc, on DECL's without RTL.
3145 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
3146 Don't check volatile on non-variable types.
3147 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
3148 to check whether we have seen arguments.
3149 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
3150 flag is checked before field (flag is common, field is not).
3151 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
3152 TS_DECL_COMMON could have an origin.
3153 (add_location_or_const_value_attribute): Don't check section name
3154 on non-var/function decls.
3155 (dwarf2out_var_location): Reverse order of tests.
3156 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
3157 with DECL_WRTL_CHECK.
3158 * expmed.c (make_tree): rtl is now in decl_with_rtl.
3159 * fold-const.c (fold_binary): Don't check weakness on
3160 non-var/function decls.
3161 (tree_expr_nonzero_p): Ditto.
3162 (fold_checksum_tree): Use tree_decl_extra as sizeof
3164 * ggc-page.c (extra_order_size_table): Add sizes for
3165 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
3167 * gimplify.c (gimplify_bind_expr): Only set
3168 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
3169 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
3171 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
3172 * langhooks.h (init_ts). New langhook.
3173 * passes.c (rest_of_decl_compilation): Reverse order of tests.
3174 * print-tree.c (print_node): Update to only print fields that
3175 exist in the structures the passed decl has.
3176 * toplev.c (wrapup_global_declarations): Don't reset
3177 DECL_DEFER_OUTPUT on DECL's that don't contain it.
3178 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
3179 * tree-inline.c (remap_decl): Ditto.
3180 * tree-outof-ssa.c (create_temp): Reverse order of tests.
3181 * tree-pretty-print.c (print_declaration): Don't print
3182 DECL_REGISTER on things that don't contain it.
3183 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
3184 non-var/function decls.
3185 * tree.c (tree_contains_struct): New structure.
3186 (init_priority_for_decl): New hashtable.
3187 (tree_int_map): New structure.
3188 (tree_int_map_eq): New function.
3189 (tree_int_map_marked_p): Ditto.
3190 (tree_int_map_hash): Ditto.
3191 (tree_map): Move to tree.h.
3192 (tree_map_eq): Externalize.
3193 (tree_map_hash): Ditto.
3194 (tree_map_marked_p): Ditto.
3195 (init_ttree): Set up tree_contains_struct and call langhook.
3196 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
3197 (tree_code_size): Update for new structures.
3198 (tree_node_structure): Update for new structures.
3199 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
3201 (copy_node_stat): Copy init priority.
3202 (build_decl_stat): Ditto for visibility.
3203 (ts_enum_names): New.
3204 (tree_contains_struct_check_failed): New function.
3205 (decl_init_priority_lookup): Ditto.
3206 (decl_init_priority_insert): Ditto.
3207 * treestruct.def: New file.
3208 * tree.h (CODE_CONTAINS_STRUCT): New macro.
3209 (CONTAINS_STRUCT_CHECK): Ditto.
3210 (tree_contains_struct_check_failed): New prototype.
3211 (DECL_CHECK): Removed.
3212 (DECL_MINIMAL_CHECK): New.
3213 (DECL_COMMON_CHECK): Ditto.
3214 (DECL_WRTL_CHECK): Ditto.
3215 (DECL_NON_COMMON_CHECK): Ditto.
3216 (DECL_WITH_VIS_CHECK): Ditto.
3217 (VAR_OR_FUNCTION_DECL_P): Ditto
3218 (struct tree_decl_minimal): New structure.
3219 (struct tree_decl_common): Ditto.
3220 (struct tree_decl_with_rtl): Ditto.
3221 (struct tree_decl_with_vis): Ditto.
3222 (struct tree_decl_non_common): Ditto.
3223 (struct tree_field_decl): Ditto.
3224 (struct tree_parm_decl): Ditto.
3225 (struct tree_var_decl): Ditto.
3226 (struct tree_function_decl): Ditto.
3227 (struct tree_const_decl): Ditto.
3228 (struct tree_result_decl): Ditto.
3229 (union tree_node): Add new structures.
3230 * var-tracking.c (track_expr_p): Reverse order of tests.
3232 * doc/c-tree.texi: Add documentation on DECL node internal structure.
3234 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
3236 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
3237 * system.h: Poison FINALIZE_PIC.
3238 * doc/tm.texi (FINALIZE_PIC): Remove.
3240 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
3243 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
3244 to the correct type if we have a MODIFY_EXPR.
3246 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
3248 PR tree-optimization/22360
3249 * tree.c (upper_bound_in_type): Fix calculations for casting
3250 to a non-wider signed type and casting a signed value to a
3251 wider unsigned type.
3252 (lower_bound_in_type): Fix calculations for casting to a
3253 non-wider signed type.
3255 PR tree-optimization/20139
3256 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
3258 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
3259 fold_cond_expr_cond.
3260 * tree-ssanames.c (release_defs): Assert in_ssa_p.
3261 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
3263 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
3266 * tree-complex.c (expand_complex_libcall): Produce
3267 REALPART_EXPR/IMAGPART_EXPR with the correct type.
3269 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3271 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3272 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
3273 b" assert and inserted fastpath code for this case.
3274 (bitmap_ior): Removed "a != b" assert.
3276 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3278 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
3279 (ENDFILE_SPEC): Likewise.
3280 * config/m32r/m32r.h (ASM_SPEC): Likewise.
3282 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
3283 a large stack frame at epilogue.
3285 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
3287 * final.c: Include sdbout.h when required.
3289 2005-07-07 Geoffrey Keating <geoffk@apple.com>
3291 * config.gcc (*-*-darwin*): Only one target-specific header file
3293 (powerpc-*-darwin*): Add version-specific header files.
3294 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
3295 * config.in: Regenerate.
3296 * configure: Regenerate.
3297 * gcc.c: Include xregex.h.
3298 (version_compare_spec_function): New.
3299 (spec_function): Add version-compare.
3300 (replace_outfile_spec_function): Reformat comment.
3301 (compare_version_strings): New.
3302 * config/darwin-c.c (version_as_macro): New.
3303 (builtin_define): New.
3304 (darwin_cpp_builtins): New.
3305 * config/darwin-protos.h (darwin_cpp_builtins): New.
3306 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
3307 (LIB_SPEC): Make unconditional, update comment.
3308 (TARGET_C99_FUNCTIONS): Define.
3309 * config/darwin.opt: Sort.
3310 (mmacosx-version-min=): New.
3311 * config/darwin7.h: Delete.
3312 * config/darwin8.h: Delete.
3313 * config/i386/darwin.h (): Call darwin_cpp_builtins.
3314 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
3315 (TARGET_C99_FUNCTIONS): Define.
3316 * config/rs6000/darwin7.h: New.
3317 * config/rs6000/darwin8.h: New.
3318 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
3319 (-mmacosx-version-min): Document.
3321 2005-07-07 Ian Lance Taylor <ian@airs.com>
3323 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
3325 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
3328 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
3330 2005-07-07 Khem Raj <kraj@mvista.com>
3332 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
3333 in bytes, not words.
3335 2005-07-07 Paul Brook <paul@codesourcery.com>
3337 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
3338 DEFAULT_FUNCTION_ARG_PADDING to upward.
3340 2005-07-07 Richard Henderson <rth@redhat.com>
3342 * function.c (locate_and_pad_parm): Record parameter alignment in
3343 stack_alignment_needed.
3345 2005-07-07 David Edelsohn <edelsohn@gnu.org>
3347 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
3348 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
3349 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
3350 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
3351 (define_attr "type"): Add isync, sync, load_l, store_c.
3352 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
3353 Create scratch volatile MEM.
3354 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
3356 (load_locked_<mode>): New.
3357 (store_conditional_<mode>): New.
3358 (sync_compare_and_swap<mode>): Replace with splitter.
3359 (sync_lock_test_and_set<mode>): Replace with splitter.
3360 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
3362 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
3363 is ics. Attribute isync.
3364 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
3366 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
3367 and UNSPECV_SYNC_OP.
3368 (emit_unlikely_jump): New.
3369 (emit_load_locked): New.
3370 (emit_store_conditional): New.
3371 (rs6000_split_compare_and_swap): New.
3372 (rs6000_split_lock_test_and_set): New.
3373 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
3374 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
3375 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
3376 rs6000_split_lock_test_and_set): Declare.
3377 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
3378 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
3379 store_c, isync, sync.
3381 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
3383 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
3384 filenames to gtyp-gen.h.
3385 (s-typ-gen): Use it in place of for loops.
3387 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
3389 * hooks.c (hook_bool_rtx_int_false): New function.
3390 * hooks.h (hook_bool_rtx_int_false): Declare.
3391 * target-def.h (TARGET_COMMUTATIVE_P): Define.
3392 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
3393 * target.h (struct gcc_target): Add commutative_p member.
3394 * targhooks.c (hook_bool_rtx_commutative_p): New function.
3395 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
3396 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
3397 (pa_commutative_p): New function.
3398 * jump.c (target.h): Include.
3399 (rtx_renumbered_equal_p): Use targetm.commutative_p.
3400 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
3402 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
3404 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
3405 (s390_expand_setmem): New.
3406 * config/s390/s390.c: Likewise.
3407 (print_shift_count_operand): Truncate to 12 bits instead of 6.
3409 * config/s390/s390.md: ("setmem<mode>"): Accept character as
3410 general_operand. Call new function "s390_expand_setmem".
3411 ("clrmem_long", "*clrmem_long"): Rewrite to ...
3412 ("setmem_long", "*setmem_long"): ... this.
3414 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
3416 * config/s390/s390.c: (optimization_options): Enable
3417 TARGET_MVCLE at -Os.
3418 * doc/invoke.texi: Document changes in default behaviour.
3419 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
3421 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
3423 * expr.c: (set_storage_via_setmem): Convert opchar to mode
3424 defined by back-end.
3426 2005-07-07 Jakub Jelinek <jakub@redhat.com>
3428 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
3429 all sets in the pattern.
3430 * config/rs6000/rs6000.md (stack_protect_testsi,
3431 stack_protect_testdi): Likewise.
3433 2005-07-06 Jeff Law <law@redhat.com>
3435 * tree-vrp.c (simplify_using_ranges): Kill.
3436 (vrp_finalize): Remove call to simplify_using_ranges.
3437 (simplify_stmt_using_ranges): New function extracted from
3438 simplify_using_ranges.
3439 (simplify_div_or_mod_using_ranges): Likewise.
3440 (simplify_abs_using_ranges): Likewise.
3441 (simplify_cond_using_ranges): New function.
3442 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
3443 * tree-ssa-propagate.c (substitute_and_fold): Call