1 2005-08-26 Jakub Jelinek <jakub@redhat.com>
4 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
5 array by one element, initialize the BT_LAST element with NULL.
7 2005-08-26 David Edelsohn <edelsohn@gnu.org>
9 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
12 (compare_plus_eqsi): Same.
13 (plus_eqsi_compare): Same.
14 (neg_eq0<mode>): Same.
17 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
20 2005-08-26 Nick Clifton <nickc@redhat.com>
22 * config/v850/v850.c (ep_memory_operand): Return FALSE if
23 TARGET_EP is not defined.
24 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
26 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
27 * config/v850/v850.md (save_all_interrupt): Only use the EP
28 register if TARGET_EP is defined.
29 (restore_all_interrupt): Likewise.
30 * config/v850/lib1funcs.asm: Update functions so that the EP
31 register is only used if __EP__ is defined.
33 2005-08-26 David Ung <davidu@mips.com>
35 * config/mips/mips.c (mips_expand_prologue): Handle case when
36 generating for MIPS16 and the outgoing argument area is more than
37 SMALL_OPERAND. Use the frame pointer as temporary to generate the
40 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
42 * config/crx/crx.md: Make doloop_end pattern usage controllable
43 via mloop-nesting=<max-nesting> command line switch. Make sure
44 the combiner cannot use doloop_end_<mode> in an illegal way.
45 * config/crx/crx.c: Use regs up to r6 for argument passing.
46 Refine crx_address_cost (non cst4 displacements are expensive).
47 * config/crx/crx.opt: Add switch for mloop-nesting=.
49 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
51 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
52 (UNSPEC_MVST): New constant.
54 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
56 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
57 Reject operands containing eliminable registers.
58 * testsuite/gcc.dg/20050825-1.c: New testcase.
60 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
61 Jan Hubicka <jh@suse.cz>
63 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
65 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
67 PR tree-optimization/23546
68 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
71 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
73 * params.def (PARAM_MIN_SPEC_PROB): New.
74 * sched-rgn.c (MIN_PROBABILITY): Delete.
75 (compute_trg_info): Convert to PARAM_VALUE.
76 * doc/invoke.texi (param): Document min-spec-prob.
78 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
80 * config/darwin.h: define __PIC__
81 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
82 TARGET_OS_CPP_BUILTINS macro.
84 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
86 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
89 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
91 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
93 * cfghooks.c (duplicate_block): Added position where to place
94 new block as argument.
95 * cfghooks.h (duplicate_block): Declaration changed.
96 * cfglayout.c (copy_bbs): Add argument after. Pass it to
98 * cfglayout.h (copy_bbs): Declaration changed.
99 * cfgloop.h (loop_version): Declaration changed.
100 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
101 position to copy_bbs.
102 (loop_version): Pass position to duplicate_loop_to_header_edge.
103 Add place_after argument and position new blocks according to
105 * modulo-sched.c (sms_schedule): Pass place_after argument
107 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
108 * tree-cfg.c (split_edge_bb_loc): New function.
109 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
110 to determine position of new blocks.
111 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
113 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
114 argument to duplicate_block.
115 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
116 Pass position to copy_bbs.
118 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
120 * fold-const.c (ptr_difference_const): Use
121 cst_and_fits_in_hwi instead of host_integerp.
123 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
125 * config/darwin.c (gen_pic_offset): New.
126 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
129 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
131 PR tree-optimization/23486
132 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
134 2005-08-23 Phil Edwards <phil@codesourcery.com>
136 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
138 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
140 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
141 configuration files to override the default value.
143 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
144 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
145 * config/vx-common.h: New file, split out from...
146 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
147 * config/vxworksae.h: New file, for VxWorks AE.
148 * config/vxworks.opt: New file.
149 * config/vxlib.c: Update for VxWorks 6.
151 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
152 other MULTILIB_* variables appropriately.
153 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
154 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
155 * config/rs6000/vxworks.h: Update for VxWorks 6.
156 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
158 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
161 * config/darwin.c (machopic_select_section): Remove the hack to
162 mark "::operator new" and "::operator delete" for coalescing
163 even though they are not weak.
165 2005-08-24 Alan Modra <amodra@bigpond.net.au>
167 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
168 * configure: Regenerate.
170 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
173 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
175 * convert.c (convert_to_integer, convert_to_vector): Likewise.
176 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
179 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
181 * config/rs6000/predicates.md (equality_operator): New.
182 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
183 comparison with a large constant.
185 2005-08-23 Mark Mitchell <mark@codesourcery.com>
187 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
189 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
191 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
192 registers is even, and we have a hardware double precision fp,
194 (sh_gimplify_va_arg_expr): For floating point arguments, consider
195 size of current argument when checking if argument was passed in
198 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
201 * stor-layout.c (finalize_type_size): Dont override
202 existing alignment with a smaller alignment from the mode.
204 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
206 * lambda-code.c (lambda_vector_lexico_pos): Moved...
207 * lambda.h (lambda_vector_lexico_pos): ... here.
208 * tree-data-ref.c (build_classic_dist_vector): Return false when
209 the distance vector is lexicographically negative.
211 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
213 PR tree-optimization/23511
214 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
215 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
217 2005-08-23 Jakub Jelinek <jakub@redhat.com>
219 PR tree-optimization/22043
220 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
221 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
222 If ALLOW_FLEXARR, handle types ending with flexible array member.
223 Pass false as second argument to recursive count_type_elements calls.
224 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
225 argument to count_type_elements call.
226 * tree-sra.c (decide_block_copy): Likewise.
227 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
228 for a constant-sized object, set cleared as well. Pass true as
229 second argument to count_type_elements call.
231 2005-08-23 Alan Modra <amodra@bigpond.net.au>
234 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
235 from legitimate_small_data_p, and make global. Update use.
236 Remove forward declaration.
237 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
239 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
241 2005-08-23 David Edelsohn <edelsohn@gnu.org>
243 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
244 of scratch intermediates.
245 (eq<mode>_compare): Same.
246 (neg_eq0<mode>): New.
247 (neg_eq<mode>): Convert to define_insn_and_split.
249 2005-08-23 Alan Modra <amodra@bigpond.net.au>
252 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
253 stdarg functions, set/clear the fp marker even when no variable
255 * config/rs6000/sysv4.opt (mprototype): Describe.
257 2005-08-22 Jakub Jelinek <jakub@redhat.com>
259 PR rtl-optimization/23478
260 * regs.h (reg_info): Add throw_calls_crossed.
261 (REG_N_THROWING_CALLS_CROSSED): Define.
262 * flow.c (allocate_reg_life_data): Initialize
263 REG_N_THROWING_CALLS_CROSSED.
264 (propagate_one_insn, attempt_auto_inc): Update
265 REG_N_THROWING_CALLS_CROSSED.
266 * global.c (global_alloc): Don't allocate pseudos across
267 calls that may throw.
269 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
272 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
273 value is inbetween the range if we did not find an exact match.
275 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
277 * doc/invoke.texi (Option Summary): Add ms1 options.
278 * doc/extend.texi: Document interrupt handler attribute for ms1.
279 * doc/md.texi: Document ms1 constraints.
280 * config.gcc: Add ms1-*-elf.
281 * config/ms1/ms1.h: New.
282 * config/ms1/ms1.c: New.
283 * config/ms1/ms1.md: New.
284 * config/ms1/ms1-protos.h: New.
285 * config/ms1/ABI.txt: New.
286 * config/ms1/crti.asm: New.
287 * config/ms1/crtn.asm: New.
288 * config/ms1/lib2extra-funcs.c: New.
289 * config/ms1/t-ms1: New.
290 * config/ms1/ms1.opt: New.
292 2005-08-22 Ira Rosen <irar@il.ibm.com>
294 * config/rs6000/altivec.md (xorv4sf3): New.
295 (negv4sf2, neg<mode>2): Likewise.
297 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
300 * config/ia64/ia64.md (divsi3): Check divide by zero.
305 2005-08-21 Jakub Jelinek <jakub@redhat.com>
307 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
308 up to elem_bitsize bits, not max_bitsize.
310 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
312 PR tree-optimization/23433
313 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
314 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
316 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
318 PR tree-optimization/23434
319 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
320 the iteration bound is not an INTEGER_CST.
322 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
324 * tree-vect-transform.c (get_initial_def_for_reduction): Set
325 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
326 NULL if need_epilog_adjust is false.
327 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
328 Case 3 always peels first itration, not just for PLUS case, and no need
329 to use scalar_initial_def here. Create an epilog adjustment only if
330 scalar_initial_def is not NULL.
332 (vectorizable_reduction): Remove assert.
334 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
337 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
338 (__moddi3): Likewise.
339 (__udivdi3): Likewise.
340 (__umoddi3): Likewise.
341 (__divsi3): Likewise.
342 (__modsi3): Likewise.
343 (__udivsi3): Likewise.
344 (__umodsi3): Likewise.
346 2005-08-20 Jakub Jelinek <jakub@redhat.com>
348 * tree-pass.h (TDF_GRAPH): Define.
349 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
350 * passes.c (finish_optimization_passes): Only call
351 finish_graph_dump_file if TDF_GRAPH is set.
352 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
353 NULL. Set TDF_GRAPH bit.
354 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
356 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
358 * arm.h (arm_stack_offsets): Add locals_base field.
359 * arm.c (arm_get_frame_offsets): Compute it.
360 (thumb_compute_initial_elimination offset): Make the Thumb frame
361 pointer point to the base of the local variables.
362 (thumb_expand_prologue): Update accordingly.
363 (thumb_expand_epilogue): Likewise.
365 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
366 mode of clobbered scratch to DImode. Handle a case that's known to
369 2005-08-19 David Edelsohn <edelsohn@gnu.org>
371 * config/rs6000/rs6000.md (gt0<mode>): Delete.
372 (gt0<mode>_compare): Delete.
373 (neg_gt0<mode>): Delete.
375 2005-08-19 Eric Christopher <echristo@apple.com>
377 * optabs.h: Change CTI_ to COI_.
380 2005-08-19 James E Wilson <wilson@specifix.com>
382 * builtins.c (expand_builtin_return_addr): Set
383 current_function_accesses_prior_frames when count != 0. Use
384 frame_pointer_rtx when count == 0.
385 * function.h (struct function): Add accesses_prior_frames field.
386 (current_function_accesses_prior_frames): Define.
387 * reload1.c (init_elim_table): Check
388 current_function_accesses_prior_frames.
389 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
391 2005-08-19 Diego Novillo <dnovillo@redhat.com>
393 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
394 indicator. Return true if the flowgraph changed during
397 2005-08-19 Diego Novillo <dnovillo@redhat.com>
400 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
401 conditional expression before testing its value.
403 2005-08-19 Diego Novillo <dnovillo@redhat.com>
405 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
407 2005-08-19 Devang Patel <dpatel@apple.com>
409 PR tree-optimization/23048
410 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
411 third parameter. Check whether latch is dominated by exit
413 (if_convertible_loop_p): Supply exit block itself to
416 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
419 * arm.md (arm_load_pic_register): Change argument to the mask of
420 saved registers. Call thumb_find_work_register if we need a
421 scratch register on Thumb.
422 (arm_expand_prologue): Pass empty register set to
423 arm_load_pic_register.
424 (thumb_expand_prologue): Pass live_regs_mask directly to
425 arm_load_pic_register.
426 * arm-protos.h (arm_load_pic_register): Update prototype.
428 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
430 * sh.c (find_sole_member): New function.
431 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
432 if the record's alignment is larger than the size of its only member.
434 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
437 * arm.c (thumb_legitimize_reload_address): New function.
438 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
439 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
441 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
443 * config/crx/crx.c: Implement crx_decompose_address. Reject
444 symbolic displacements since CRX register relative adressing
445 mode can't handle unsigned 32-bit values as displacements.
446 * config/crx/crx.h: Simplify definitions, remove redundant
447 parenthesis and obsolete macros.
448 * config/crx/crx.opt: Add new switch for debugging addresses.
449 * config/crx/crx-protos.h: Add new declarations for above.
451 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
454 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
457 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
459 * collect2.c (dup2): Delete.
460 * configure.ac: Don't check for dup2.
462 * config.in, configure: Regenerate.
464 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
466 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
467 record with the type of its only member.
469 2005-08-18 David Edelsohn <edelsohn@gnu.org>
471 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
472 define_insn_and_split.
473 (plus_ltu<mode>_compare): Same.
474 (gtu<mode>_compare): Same.
475 (plus_gtu<mode>_compare): Same.
477 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
479 PR tree-optimization/22228
480 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
482 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
483 are recorded in vect_vnames_to_rename for renaming.
484 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
485 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
486 in vect_vnames_to_rename.
487 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
488 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
490 2005-08-18 Jan Hubicka <jh@suse.cz>
493 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
494 info only for local statics, not for member variables.
496 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
498 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
500 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
502 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
504 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
507 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
509 2005-08-17 James E Wilson <wilson@specifix.com>
511 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
514 2005-08-17 David Edelsohn <edelsohn@gnu.org>
516 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
517 (leu<mode>_compare): Same.
518 (plus_leu<mode>): Same.
519 (neg_leu<mode>): Same.
520 (and_neg_leu<mode): Same.
521 (ltu<mode>_compare): Same.
522 (plus_ltu<mode>): Same.
524 (geu<mode>_compare): Same.
525 (plus_geu<mode>): Same.
526 (neg_geu<mode>): Same.
527 (and_neg_geu<mode>): Same.
528 (plus_gt<mode>): Same.
529 (gtu<mode>_compare): Same.
530 (plus_gtu<mode>): Same.
532 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
534 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
535 Move call_table_data to end. Delete spurious .text.
536 (callt_save_all_interrupt): Fix comment typo.
538 2005-08-17 James E Wilson <wilson@specifix.com>
539 Kevin Winchester <winchester@amirix.com>
542 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
544 2005-08-17 Uros Bizjak <uros@kss-loka.si>
547 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
548 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
550 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
552 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
553 record with the type of its only member if the modes don't match.
555 * varasm.c (decode_reg_name): Skip empty additional register names.
557 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
559 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
560 lsm_tmp_name_length): New.
561 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
562 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
564 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
565 Andreas Krebbel <krebbel1@de.ibm.com>
567 * config.gcc: Added z9-109 switch.
568 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
569 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
570 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
571 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
572 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
573 for "z9_109" cpu attribute.
574 * config/s390/s390.c (z9_109_cost): New processor cost structure.
575 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
576 (s390_handle_arch_option): Added z9-109 switch.
577 (override_options): Set respective cost function for z9-109.
578 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
579 (legitimate_reload_constant_p): Accept extended immediates.
580 (print_operand): Three new output modifiers added: k, m and o.
581 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
582 (s390_output_mi_thunk): Use extended immediate when possible.
583 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
584 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
585 (CONSTRAINT_LEN): Added length of O constraint.
586 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
587 * config/s390/s390.md ("cpu"): New value z9_109 added.
588 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
589 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
590 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
591 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
592 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
593 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
594 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
595 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
596 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
597 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
598 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
599 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
600 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
601 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
602 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
604 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
605 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
606 insns for TARGET_EXTIMM.
608 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
610 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
612 2005-08-17 Nick Clifton <nickc@redhat.com>
614 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
615 Call default_encode_section_info.
617 2005-08-17 Steven Bosscher <stevenb@suse.de>
619 PR tree-optimization/21574
620 * tree-ssa-ccp.c (likely_value): If the right hand side is a
621 constant, return CONSTANT.
622 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
623 (ccp_fold, visit_assignment): Likewise.
624 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
626 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
628 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
629 fold_buildN instead of buildN then fold_initializer or fold.
630 (build_unary_op): Likewise.
631 (build_binary_op): Likewise.
632 * fold-const.c (fold_initializer): Remove.
633 (fold_build1_initializer): New function.
634 (fold_build2_initializer): New function.
635 (fold_build3_initializer): New function.
636 * tree.h (fold_initializer): Remove.
637 (fold_build1_initializer): New function.
638 (fold_build2_initializer): New function.
639 (fold_build3_initializer): New function.
641 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
643 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
644 (try_move_mult_to_index): Call fold_build2 instead of build2.
645 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
646 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
647 fold_binary_to_constant.
648 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
650 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
651 check if A == gcd (A, B). Remove TYPE argument.
652 (analyze_offset) Use fold_build2 instead of fold (build.
653 (create_data_ref): Likewise.
654 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
655 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
658 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
660 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
661 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
663 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
666 * gimplify.c (zero_sized_type): New function.
667 (gimplify_modify_expr_rhs): If we have a zero sized type,
668 replace the statement with an empty statement.
670 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
672 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
675 2005-08-16 Ian Lance Taylor <ian@airs.com>
677 * doc/tm.texi (Label Output): Correct typo.
679 2005-08-16 Steven Bosscher <stevenb@suse.de>
682 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
683 force_operand will work later on using have_insn_for.
685 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
687 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
689 2005-08-16 Ian Lance Taylor <ian@airs.com>
692 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
693 vector type, don't try to construct it element by element. Add an
694 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
696 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
698 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
700 2005-08-16 Geoffrey Keating <geoffk@apple.com>
702 * doc/invoke.texi (Precompiled Headers): Document some more options
703 which are known to be safe.
705 2005-08-16 James E Wilson <wilson@specifix.com>
707 PR tree-optimization/21105
708 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
711 2005-08-16 David Edelsohn <edelsohn@gnu.org>
713 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
714 (neg_ltu<mode>): Same.
716 (neg_gtu<mode>): Same.
718 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
720 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
721 (fold_builtin_isdigit): Use fold_buildN.
722 (build_function_call_expr): Likewise.
723 * c-typeck.c (c_finish_loop): Likewise.
725 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
726 Richard Shann <rshann@superh.com>
729 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
731 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
733 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
735 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
738 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
739 arm_compure_save_reg0_reg12_mask to determine when the PIC register
742 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
745 * fold-const.c (build_range_check): Disable optimization for function
746 pointer expressions on targets that require function pointer
749 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
751 * simplify-rtx.c (simplify_const_relational_operation): When
752 extracting arguments of a COMPARE, recompute the mode as well.
754 2005-08-15 Ian Lance Taylor <ian@airs.com>
756 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
758 2005-08-15 DJ Delorie <dj@redhat.com>
760 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
762 (movsi_splittable): Allow, but split, moves to the stack.
763 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
766 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
768 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
769 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
770 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
772 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
773 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
774 Delete HOST_PTR_PRINTF.
776 * configure, config.in: Regenerate.
778 2005-08-15 David Edelsohn <edelsohn@gnu.org>
780 * config/rs6000/rs6000.md (QHSI): New mode macro.
781 (wd): Extend mode attr for QImode and HImode
782 (dbits): New mode attr.
783 (zero_extend<mode>di2): Convert to mode macro.
785 2005-08-15 Steve Ellcey <sje@cup.hp.com>
788 * doc/invoke.texi (-mgnu-ld): Update description.
791 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
794 * Makefile.in (tree-chrec.o): Depends on real.h.
795 * tree-chrec.c: Include real.h.
796 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
797 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
798 * tree-scalar-evolution.c (add_to_evolution_1,
799 interpret_rhs_modify_expr): Ditto.
801 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
804 * tree-data-ref.c (estimate_niter_from_size_of_data): When
805 step is negative compute the estimation from init downwards to zero.
807 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
809 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
811 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
813 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
815 (legitimate_reload_constant_p): Fix handling of lliXX operands.
816 Accept double-word constants that can be split.
817 * config/s390/s390.md ("movti"): Use 'P' constraint.
818 ("*movdi_31", "*movdf_31"): Likewise.
820 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
822 Fix PR tree-optimization/22615
824 * tree-ssa-structalias.c (solution_set_add): Handle
825 first_vi_for_offset returning NULL.
826 (do_da_constraint): Ditto.
827 (do_sd_constraint): Ditto.
828 (do_ds_constraint): Ditto
829 (find_func_aliases): Ditto.
830 (build_constraint_graph): RHS is allowed be ANYTHING.
831 (first_vi_for_offset): Return NULL if we couldn't find anything at
834 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
836 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
837 over memory as first operand.
839 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
842 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
843 available for setting it.
845 2005-08-14 Ira Rosen <irar@il.ibm.com>
847 PR tree-optimization/23320
848 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
849 data-refs' types instead of base object nullness. Add check for
850 pointer type data-refs before first location comparison. Remove
853 2005-08-14 Andreas Schwab <schwab@suse.de>
855 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
857 2005-08-13 James E Wilson <wilson@specifix.com>
859 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
860 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
861 -fstack-protector-all, --param ssp-buffer-size): Document.
862 (-Wvariadic-macros): Alphabetize.
863 (-fsched-stalled-insns-dep): Add missing 'f'.
865 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
868 2005-08-13 David Edelsohn <edelsohn@gnu.org>
870 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
871 or indirect address operand.
872 (EXTRA_ADDRESS_CONSTRAINT): New.
873 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
875 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
877 PR tree-optimization/22236
878 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
879 successors and predecessors.
880 * tree-chrec.c (chrec_convert): Before converting, check that
881 sequences don't wrap.
882 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
883 (analyze_array): Extern.
884 (find_data_references_in_loop): Remove call to
885 compute_estimated_nb_iterations.
886 * tree-data-ref.h (analyze_array): Declared.
887 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
888 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
889 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
890 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
892 * tree-ssa-loop-ivcanon.c: Fix documentation.
893 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
894 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
895 (infer_loop_bounds_from_undefined): New.
896 (estimate_numbers_of_iterations_loop): Use
897 infer_loop_bounds_from_undefined.
898 (used_in_pointer_arithmetic_p): New.
899 (scev_probably_wraps_p): Pass an extra parameter. Call
900 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
901 (convert_step): Fix documentation.
902 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
903 Use initial_condition_in_loop_num and evolution_part_in_loop_num
904 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
905 scev_probably_wraps_p.
907 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
909 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
910 (s390_register_info): Ignore clobbered_regs information for fixed
911 registers, and only fixed registers.
912 (s390_init_frame_layout): Remove redundant call.
914 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
916 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
917 description of -Wold-style-casts.
919 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
920 Jakub Jelinek <jakub@redhat.com>
922 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
923 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
924 * config/s390/s390.c (print_operand): New output modifier 'G' added.
925 (get_thread_pointer): Renamed to s390_get_thread_pointer.
926 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
927 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
928 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
929 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
930 ("stack_protect_set", "stack_protect_test"): New expanders.
931 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
932 "stack_protect_testdi"): New insn definitions.
934 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
936 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
938 2005-08-12 Paul Brook <paul@codesourcery.com>
940 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
942 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
944 * config/s390/predicates.md (setmem_operand): New predicate.
945 (shift_count_operand): Accept ANDs with special constants as
947 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
948 with special constants.
949 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
950 shift_count_operand with setmem_operand.
952 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
954 * config/s390/s390.c (s390_extract_part, s390_single_part):
956 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
957 (s390_output_mi_thunk): Don't use lg on 31 bit.
958 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
959 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
961 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
963 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
964 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
965 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
966 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
967 with one of the new macros.
969 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
971 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
972 Don't set save_return_addr_p.
973 (s390_register_info): Make clobbered_regs not depending on
976 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
978 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
979 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
981 2005-08-11 James E. Wilson <wilson@specifix.com>
983 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
985 2005-08-11 Jakub Jelinek <jakub@redhat.com>
987 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
988 locations gathered by var-tracking in single entry loc_list
989 over loc_descriptor_from_tree.
991 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
992 pass it down to loc_descriptor.
993 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
994 (containing_function_has_frame_base): Move earlier in the file.
995 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
996 instead of always assuming fbreg can't be used.
998 2005-08-11 David Edelsohn <edelsohn@gnu.org>
1000 * config/rs6000/altivec.md: Change constraint "m" to "Z".
1001 * config/rs6000/predicates.md (indexed_or_indirect_operand):
1002 Accept address wrapped in AND for Altivec.
1003 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
1004 Strip AND wrapping offset address for Altivec.
1006 2005-08-11 Richard Henderson <rth@redhat.com>
1009 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
1010 before using TYPE_IS_SIZETYPE.
1012 2005-08-11 Richard Henderson <rth@redhat.com>
1015 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
1016 insn types not present on ev4.
1017 (alphaev5_insn_pipe): Similarly.
1019 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
1022 * arm.c (arm_override_options): If the user has selected callee-super-
1023 interworking, then enable normal interworking.
1025 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1027 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
1030 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
1032 * doc/rtl.texi: Fix two typos.
1034 2005-08-11 Richard Guenther <rguenther@suse.de>
1037 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
1038 cases where we call to/from functions returning void.
1040 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
1043 * tree.c (build_pointer_type_for_mode): Robustify.
1045 2005-08-10 James E Wilson <wilson@specifix.com>
1047 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
1048 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
1050 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
1053 2005-08-10 Eric Christopher <echristo@apple.com>
1055 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
1056 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
1059 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
1062 * config/darwin.c (machopic_indirect_data_reference): Use a new register
1063 for the high part when generating dynamic-no-pic code.
1065 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
1067 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
1068 (x86_64-*-linux*): Likewise.
1070 * config/i386/crtfastmath.c: New file.
1071 * config/i386/t-crtfm: Likewise.
1073 * config/i386/linux.h (ENDFILE_SPEC): New.
1074 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
1076 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
1079 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
1081 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
1082 (vec_shl, vec_shr): Document new operations.
1083 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
1085 2005-08-10 David Edelsohn <edelsohn@gnu.org>
1087 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
1088 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
1089 change predicate to indexed_or_indirect_address.
1091 2005-08-10 Richard Sandiford <richard@codesourcery.com>
1093 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
1094 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
1095 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
1096 and __aeabi_uwrite8.
1097 * config/arm/unaligned-funcs.c: New file.
1098 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
1100 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
1102 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
1104 * cfglayout.c (pass_insn_locators_initialize): Add dump.
1105 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
1107 * except.c (pass_convert_to_eh_region_ranges): Add dump.
1108 * final.c (pass_shorten_branches): Add dump.
1109 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
1110 (pass_life): Rename dump.
1111 (rest_of_handle_flow2): Remove initial verify_flow_info.
1112 * function.c (pass_instantiate_virtual_regs): Add dump.
1113 * integrate.c (pass_initial_value_sets): Add dump.
1114 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
1115 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
1116 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
1117 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
1118 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
1119 gate_rtl_unrool_and_peel_loops): New.
1120 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
1121 rtl_doloop): Do not look at flags.
1122 * mode-switching.c (pass_mode_switching): Add dump.
1123 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
1124 pass_split_before_regstack): Add dump.
1125 * regmove.c (pass_stack_adjustments): Add dump.
1126 * tree-optimize.c (pass_fixup_cfg): Add dump.
1128 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1131 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
1132 deciding which instruction sequence to use.
1134 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
1136 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
1137 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
1139 2005-08-09 Richard Guenther <rguenther@suse.de>
1141 * c-common.c (builtin_function_2): Remove.
1142 (def_builtin_1): New function.
1143 (c_common_nodes_and_builtins): Use def_builtin_1 to
1144 build builtin functions.
1146 2005-08-09 Jie Zhang <jie.zhang@analog.com>
1148 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
1149 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
1150 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
1153 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
1155 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
1156 fold_binary instead of fold_build2 since we don't care about the
1158 (loop_niter_by_eval): Likewise.
1159 (compare_trees): Likewise.
1160 (proved_non_wrapping_p): Likewise.
1162 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
1166 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
1167 if the if is really empty.
1169 2005-08-09 Steven Bosscher <stevenb@suse.de>
1171 PR tree-optimization/23234
1172 * tree-ssa-math-opts.c (place_reciprocal): New enum.
1173 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
1174 argument of the new enum.
1175 (execute_cse_reciprocals): Add reciprocals for function arguments
1176 on the unique successor edge of the entry block. Update other calls
1177 to execute_cse_reciprocals_1.
1179 2005-08-08 Richard Henderson <rth@redhat.com>
1182 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
1184 2005-08-08 Bob Wilson <bob.wilson@acm.org>
1186 * expr.c (write_complex_part): Return after handling MEM.
1188 2005-08-08 Josh Conner <jconner@apple.com>
1190 PR rtl-optimization/23241
1191 * combine.c (simplify_comparison): Fix error in determining
1192 whether to lift a subreg from comparison.
1194 2005-08-08 David Edelsohn <edelsohn@gnu.org>
1197 * config/rs6000/altivec.md (vec_init<mode>): New.
1198 (vec_set<mode>): New.
1199 (vec_extract<mode>): New.
1200 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
1201 (rs6000_expand_vector_set): New.
1202 (rs6000_expand_vector_extract): New.
1203 (rs6000_legitimate_offset_address_p): Offset addresses are valid
1204 for Altivec modes before reload.
1205 (altivec_expand_vec_init_builtin): New.
1206 (get_element_number): New.
1207 (altivec_expand_vec_set_builtin): New.
1208 (altivec_expand_vec_ext_builtin): New.
1209 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
1211 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
1213 * config/rs6000/rs6000.h (rs6000_builtins): Add
1214 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
1215 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
1216 * config/rs6000/rs6000-protos.h: Declare new functions.
1218 2005-08-08 Jan Hubicka <jh@suse.cz>
1220 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
1221 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
1222 * i386.md (movdi*): Use pic_32bit_operand.
1223 * predicates.md (pic_32bit_operand): New.
1225 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
1228 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
1230 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
1232 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
1233 (test_for_singularity): Use fold_build2.
1235 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1237 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
1239 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
1241 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
1242 (COMMON_ASM_OP) Define.
1243 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
1244 (ix86_encode_section_info): Likewise.
1245 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
1246 SUBTARGET_ENCODE_SECTION_INFO.
1248 2005-08-06 Richard Henderson <rth@redhat.com>
1251 * tree-nested.c (convert_local_reference): Save and restore val_only
1252 around component_ref and friends. Clear walk_subtrees by default.
1254 2005-08-06 Peter O'Gorman <peter@pogma.com>
1257 * gcc.c (process_command): Check the argument to -b has a dash.
1258 * doc/invoke.texi: Update -b and -V docs.
1260 2005-08-06 James E Wilson <wilson@specifix.com>
1262 * config/mips/cross64.h, config/mips/t-cross64: Delete.
1264 2005-08-06 Michael Matz <matz@suse.de>
1266 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
1267 member only if only one insn is associated with the value.
1269 2005-08-06 Nick Clifton <nickc@redhat.com>
1271 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
1273 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
1274 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
1275 Check symbol flags instead of symbol name mangling.
1276 (xstormy16_asm_output_aligned_common): Likewise. Also
1277 simplify code since the bss100_section cass is the only case
1278 where the below100 code will be triggered.
1279 (xstormy16_encode_section_info): Encode below100 attribute
1280 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
1282 (xstormy16_strip_name_encoding): Delete - this function is no
1284 (TARGET_STRIP_NAME_ENCODING): Undefine.
1285 * config/stormy16/stormy16-protos.h: Delete prototype for
1286 xstormy16_strip_name_encoding.
1288 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
1290 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
1291 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
1292 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
1293 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
1294 config/alpha/predicates.md, config/arc/arc.h,
1295 config/arm/arm.h, config/arm/ieee754-df.S,
1296 config/arm/ieee754-sf.S, config/bfin/bfin.c,
1297 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
1298 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
1299 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
1300 config/m68hc11/m68hc11.h, config/mips/mips.c,
1301 config/mips/mips.h, config/mips/openbsd.h,
1302 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
1303 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
1304 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
1305 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
1306 config/sparc/linux.h, config/sparc/linux64.h,
1307 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
1308 doc/extend.texi, doc/gcov.texi, doc/install.texi,
1309 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
1310 typos. Follow spelling conventions.
1312 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
1315 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
1316 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
1317 specially. Check for side effects only for COND_EXPR.
1318 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
1319 return with TREE_NO_WARNING.
1321 2005-08-06 Richard Sandiford <richard@codesourcery.com>
1323 PR rtl-optimization/23233
1324 * loop.c (combine_movables): Require the modes to be the same.
1325 (move_movables): Remove handling of cases where the replacement
1326 had a different mode to the original.
1328 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
1330 PR tree-optimization/23128
1331 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
1332 subtraction wrap, and set TREE_OVERFLOW if they do.
1334 2005-08-05 Richard Henderson <rth@redhat.com>
1337 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
1338 FORCED_LABEL labels.
1340 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
1343 * reload.c (find_reloads_subreg_address): Pass down TYPE
1344 unchanged. Change all callers except find_reloads_toplev.
1346 2005-08-05 Michael Matz <matz@suse.de>
1348 * genattrtab.c (current_alternative_string): Remove.
1349 (SIMPLIFY_ALTERNATIVE): Ditto.
1350 (attr_alt_bit_p): Ditto.
1351 (alternative_name): Make const char *.
1352 (evaluate_eq_attr): Remove use of above things.
1353 (simplify_test_exp): Ditto.
1354 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
1355 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
1357 2005-08-04 James E Wilson <wilson@specifix.com>
1359 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
1360 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
1361 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
1362 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
1363 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
1365 2005-08-04 Richard Henderson <rth@redhat.com>
1368 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
1369 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
1370 * tree-sra.c (decide_block_copy): Use it. Disable element copy
1371 if we'd have to instantiate too many members.
1373 2005-08-04 Richard Henderson <rth@redhat.com>
1376 * tree-outof-ssa.c (coalesce_asm_operands): New.
1377 (coalesce_ssa_name): Use it. Split out ...
1378 (coalesce_phi_operands, coalesce_result_decls): ... these.
1380 2005-08-04 Paul Brook <paul@codesourcery.com>
1382 * read-rtl.c (read_quoted_string): Break if EOF.
1384 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
1386 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
1387 (fold_build2): Likewise.
1388 (fold_build3): Likewise.
1389 (fold_build1_stat): New function prototype.
1390 (fold_build2_stat): Likewise.
1391 (fold_build3_stat): Likewise.
1392 * fold-const.c (fold_build1): Rename to ..
1393 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1394 through to build1_stat.
1395 (fold_build2): Rename to ..
1396 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1397 through to build2_stat.
1398 (fold_build3): Rename to ..
1399 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
1400 through to build3_stat.
1402 2005-08-04 David Edelsohn <edelsohn@gnu.org>
1403 Ian Lance Taylor <ian@airs.com>
1405 * function.c (assign_stack_local_1): Do not correct stack slot
1406 address if allocation size is smaller than mode size.
1408 2005-08-04 Diego Novillo <dnovillo@redhat.com>
1411 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
1412 (tree_merge_blocks): Propagate anything allowed by
1414 Clarify documentation.
1415 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
1416 SSA form, schedule an update if necessary.
1418 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1420 * doc/install.texi (Binaries): Remove broken link to
1421 Sinix/Reliant Unix binaries.
1423 2005-08-03 Richard Henderson <rth@redhat.com>
1426 * function.c (stack_protect_epilogue): Export.
1427 * tree.h (stack_protect_epilogue): Declare.
1428 * calls.c (expand_call): Call it.
1430 2005-08-03 Eric Christopher <echristo@apple.com>
1432 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
1433 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
1436 2005-08-04 Jan Hubicka <jh@suse.cz>
1438 * profile.c (branch_prob): Split edges with goto locus on them
1439 to get proper line counts.
1440 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
1442 2005-08-03 Paul Brook <paul@codesourcery.com>
1444 * function.c (assign_parms): Round current_function_args_size
1445 to PARM_BOUNDARY, not STACK_BOUNDARY.
1447 2005-08-03 Geoffrey Keating <geoffk@apple.com>
1449 * config/i386/i386.c (x86_elf_aligned_common)
1450 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
1452 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
1454 PR tree-optimization/23157
1455 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
1456 before emitting them.
1458 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1460 PR tree-optimization/19899
1461 * Makefile.in (tree-scalar-evolution.o): Add real.h.
1462 * tree-scalar-evolution.c: Include real.h.
1463 (add_to_evolution): Build constant -1 of correct type.
1465 2005-08-03 Jan Hubicka <jh@suse.cz>
1467 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
1468 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
1469 profile updating for complette unrolling.
1470 * loop-unroll.c (peel_loop_completely): Use it.
1471 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1472 (tree_unroll_loops_completely): Disable code growing unrolling of cold
1475 2005-08-03 Paul Brook <paul@codesourcery.com>
1477 * combine.c (can_change_dest_mode): New function.
1478 (try_combine, simplify_set): Use it.
1480 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
1482 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
1485 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
1487 * doc/install.texi (Specific): Adjust link to openavr.org.
1488 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
1489 (Binaries): Adjust HP-UX Porting Center link.
1490 (Binaries): Adjust Free Software Foundation ordering link.
1492 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
1494 * convert.c (convert_to_integer): Use fold_build1 instead of
1495 build1 when converting an integer to an integer.
1497 2005-08-02 Richard Henderson <rth@redhat.com>
1499 * combine.c (combine_instructions): Don't use reg_equal/equiv
1500 results if the mode doesn't match.
1502 2005-08-02 Mark Mitchell <mark@codesourcery.com>
1504 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
1505 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
1507 2005-08-02 Richard Henderson <rth@redhat.com>
1510 * explow.c (memory_address): Remove special-case for
1511 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
1513 2005-08-02 Diego Novillo <dnovillo@redhat.com>
1516 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
1517 number of calls to cleanup_tree_cfg_1.
1519 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
1521 * doc/invoke.texi: document file extensions .F90 and .F95
1523 2005-08-02 Richard Guenther <rguenther@suse.de>
1525 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
1526 positive if its first argument is positive.
1528 2005-08-02 Richard Guenther <rguenther@suse.de>
1530 PR tree-optimization/23177
1531 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
1534 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
1536 PR tree-optimization/23129
1537 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
1538 varying for divisions with anti-ranges.
1540 2005-08-02 Jan Hubicka <jh@suse.cz>
1542 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
1543 * tree-ssa-threadupdate.c (thread_block): Add it here.
1545 2005-08-01 James E Wilson <wilson@specifix.com>
1547 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
1548 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
1549 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
1551 * config/mips/predicates.md (const_call_insn_operand): Add check for
1552 SYMBOL_REF_LONG_CALL_P.
1553 * doc/extend.texi (long_call): Document the new attribute.
1555 2005-08-01 Ian Lance Taylor <ian@airs.com>
1556 Richard Henderson <rth@redhat.com>
1558 * Makefile.in (RTL_BASE_H): Add real.h.
1559 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
1561 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
1563 * rtl.c (rtl_check_failed_code_mode): New.
1564 * rtl.h (struct rtx_def): Add u.rv.
1565 (XCMWINT, XCNMPRV): New.
1566 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
1567 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
1569 2005-08-01 Richard Henderson <rth@redhat.com>
1571 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
1572 with auto-inc codes.
1574 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
1576 2005-08-01 Jan Hubicka <jh@suse.cz>
1578 * i386-protos.h (asm_preferred_eh_data_format): Declare.
1579 * i386.c: Include dwarf2.h
1580 (asm_preferred_eh_data_format): New.
1581 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
1583 2005-08-01 Ian Lance Taylor <ian@airs.com>
1585 * config/host-linux.c (linux_gt_pch_get_address): Add new name
1586 randomize_va_space for virtual address randomization control.
1588 2005-08-01 Steven Bosscher <stevenb@suse.de>
1590 * common.opt (flag_ipa_cp): Put in right place to maintain
1593 2005-08-01 Jan Hubicka <jh@suse.cz>
1595 * profile.c (compute_value_histograms): Fix thinko.
1596 * value-prof.c: Include toplev.h
1597 (check_counter): New function.
1598 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
1599 tree_mod_subtract_transform): Add sanity check.
1601 2005-08-01 Richard Guenther <rguenther@suse.de>
1603 PR tree-optimization/23133
1604 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
1605 current functions parameter decls to find defs to cse
1608 2005-08-01 Richard Guenther <rguenther@suse.de>
1610 PR tree-optimization/23109
1611 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
1612 If trapping math is in effect, use post-dominator information
1613 to check if we'd in any case reach a trapping point before
1614 doing the reciprocal insertion.
1615 (execute_cse_reciprocals): Compute post-dominators, if necessary.
1616 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
1617 expressions are invariant only if trapping math is not in effect.
1619 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
1621 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
1622 cgraph_function_versioning): New declarations.
1623 * cgraphunit.c: Add include to ipa-prop.h.
1624 (update_call_expr, cgraph_copy_node_for_versioning,
1625 cgraph_function_versioning): New functions.
1626 * integrate.c (copy_decl_for_inlining): Remove.
1627 * ipa-prop.h (ipa_replace_map): New struct.
1628 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
1629 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
1630 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
1631 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
1632 ipcp_iterate_stage, ipcp_method_scale_print,
1633 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
1634 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
1635 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
1636 ipcp_update_bb_counts, ipcp_update_profiling,
1637 ipcp_update_edges_counts): New functions.
1638 (ipcp_method_cval_init): Remove restriction regarding local methods.
1639 (ipcp_init_stage): Add ipcp_method_compute_scale.
1640 (ipcp_insert_stage): Add versioning.
1641 (ipcp_structures_print): Add ipcp_method_scale_print.
1642 (ipcp_driver): Dump profiling info.
1643 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
1644 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
1645 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
1646 (struct inline_data): Add versioning_p, ipa_info, new fields.
1647 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
1648 declare_return_variable): Replace calls to copy_decl_for_inlining with
1650 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
1652 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
1653 Add argument VERSIONING.
1654 (copy_arguments_for_versioning, copy_static_chain,
1655 function_versionable_p, tree_versionable_function_p,
1656 tree_function_versioning, replace_ref_tree): New functions.
1657 * tree-inline.h: Include varray.h.
1658 (tree_versionable_function_p, tree_function_versioning,
1659 tree copy_decl_for_dup): New declarations.
1661 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
1663 * ipa-cp.c: New file. Contains IPCP specific functionality.
1664 * ipa-prop.h: New file. Contains structures/definitions that can be
1665 used by several interprocedural data flow optimizations (and also IPCP).
1666 * ipa-prop.c: New file.
1667 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
1668 * common.opt: Add ipa-cp flag.
1669 * timevar.def: Add IPCP optimization.
1670 * tree-optimize.c (init_tree_optimization_passes): Schedule
1672 * tree-pass.h (pass_ipa_cp): Declare.
1674 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
1676 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
1677 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
1678 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
1679 config/i386/i386.c, config/mips/mips.h,
1680 config/rs6000/rs6000.h, config/sh/sh.c,
1681 config/stormy16/stormy16.c: Fix comment typos.
1683 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
1686 * c-typeck.c (build_binary_op): Use common_type wrapper on
1688 (common_type): Update comment.
1690 2005-07-31 Steven Bosscher <stevenb@suse.de>
1693 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
1694 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
1695 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
1697 2005-07-31 Jan Hubicka <jh@suse.cz>
1699 * pretty-print.h (pp_widest_integer): New macro.
1700 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
1703 2005-07-31 Jan Hubicka <jh@suse.cz>
1705 * output.h (enum section_category): Export from varasm.c
1706 (categorize_decl_for_section): Likewise.
1707 * varasm.c (enum section_category): Kill.
1708 (categorize_decl_for_section): Make global.
1709 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
1711 * i386.c (ix86_section_threshold): New static variable.
1712 (ix86_in_large_data_p, ix86_encode_section_info,
1713 x86_64_elf_unique_section,
1714 x86_64_elf_select_section): New functions.
1715 (TARGET_ENCODE_SECTION_INFO): Define
1716 (override_options): Enable medium model for PIC.
1717 (ix86_expand_prologue): Expand gen_set_got_rex64.
1718 (legitimate_constant_p): Handle new UNSPECs.
1719 (legitimate_pic_address_disp_p): Likewise.
1720 (legitimize_pic_address): Lower MEDIUM model addressing.
1721 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
1722 (enum cmodel): Add MEDIUM_PIC.
1723 (SYMBOL_REF_FAR_ADDR_P): New macro.
1724 (SYMBOL_FLAG_FAR_ADDR): New flag.
1725 * i386.md (movdi): Support medium model.
1726 (set_got_rex64): New pattern.
1727 * i386.opt (mlarge-data-threshold): New flag.
1728 * predicates.md (zext_operand/sext_operand): Deal with medium model.
1729 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
1730 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
1731 TARGET_ASM_UNIQUE_SECTION): New.
1733 * invoke.texi (-mlarge_data_threshold): Document
1735 2005-07-31 Jan Hubicka <jh@suse.cz>
1737 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
1738 (coalesce_vars): Likewise.
1739 * tree-ssa-live.c (coalesce_cost): New.
1740 (build_tree_conflict_graph): Use coalesce_cost.
1741 * tree-ssa-live.h (coalesce_cost): Declare.
1743 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
1745 * arm.md (all peepholes for post-increment operations): Delete.
1746 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
1747 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
1748 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
1749 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
1750 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
1752 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
1754 * fold-const.c (tree_expr_nonnegative_p): Always return true for
1757 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
1760 * doc/invoke.texi: Document -rdynamic.
1762 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
1765 * c-parser.c (c_parser_parms_list_declarator): Call
1766 mark_forward_parm_decls.
1767 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
1768 decls with visibility structure.
1770 2005-07-30 Paul Brook <paul@codesourcery.com>
1772 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
1774 2005-07-30 Paul Brook <paul@codesourcery.com>
1776 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1778 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
1780 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
1782 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1785 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
1786 nested function declarators.
1787 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
1788 (grokparms): Call warn_if_shadowing for parameters used within the
1790 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
1791 not used within the parameter list.
1792 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
1794 2005-07-30 Jan Hubicka <jh@suse.cz>
1796 * expr.c (expand_expr_real_1): Do not load mem targets into register.
1797 * i386.c (ix86_fixup_binary_operands): Likewise.
1798 (ix86_expand_unary_operator): Likewise.
1799 (ix86_expand_fp_absneg_operator): Likewise.
1800 * optabs.c (expand_vec_cond_expr): Validate dest.
1802 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1805 * real.c (real_from_string): Also set last bit if there is a
1806 nonzero hex digit beyond GCC's internal precision after ".".
1808 2005-07-29 David Edelsohn <edelsohn@gnu.org>
1810 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
1811 define_constants. Change duplicate values to unassigned numbers.
1812 Change UNSPEC_SUBS to UNSPEC_VSUBS.
1813 (*altivec_vspltsf): New.
1814 (altivec_vperm_v4sf): Delete.
1815 (altivec_vperm_<mode>): Use mode macro V.
1816 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
1817 (altivec_predicate_v4sf): Delete.
1818 (altivec_predicate_<mode>): Use mode macro V.
1819 (*altivec_lvesfx): New.
1820 (*altivec_stvesfx): New.
1821 (vec_realign_load_v4sf): Delete.
1822 (vec_realign_load_<mode>): Use mode macro V.
1823 * config/rs6000/rs6000.c (generate_set_vrsave): Use
1826 2005-07-29 Mark Mitchell <mark@codesourcery.com>
1829 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
1831 * configure: Regenerated.
1833 2005-07-29 Paul Brook <paul@codesourcery.com>
1835 * doc/install.texi: Add link to GFortran binaries wiki page.
1837 2005-07-29 David Ung <davidu@mips.com>
1839 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
1840 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
1841 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
1842 * config/mips/mips.md (cpu): Add 5kf name.
1843 (includes): Includes 5k.md.
1844 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
1845 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
1848 2005-07-29 Diego Novillo <dnovillo@redhat.com>
1851 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
1852 (cleanup_tree_cfg): ... here.
1853 Call cleanup_tree_cfg_1 until there are no more cleanups to
1856 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
1858 * tree-vrp.c (compare_range_with_value): Return true or false
1859 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
1860 EQ_EXPR respectively.
1862 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
1864 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
1867 2005-07-29 Diego Novillo <dnovillo@redhat.com>
1869 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
1870 (tree_ssa_dominator_optimize): Increment it.
1871 (dump_dominator_optimization_stats): Print it.
1873 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
1874 Steven Bosscher <stevenb@suse.de>
1876 PR rtl-optimization/23117
1877 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
1878 when head == tail. Tidy comment.
1880 2005-07-28 Richard Henderson <rth@redhat.com>
1882 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
1883 * cselib.c (rtx_equal_for_cselib_p): Likewise.
1884 * jump.c (rtx_renumbered_equal_p): Likewise.
1885 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
1886 CONST_INT and CONST_DOUBLE.
1887 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
1888 * reload.c (operands_match_p): Special case CONST_INT and
1889 CONST_DOUBLE; check mode earlier.
1891 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1894 * c-typeck.c (convert_for_assignment): Do not check
1895 DECL_IN_SYSTEM_HEADER on NULL fundecl.
1897 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1900 * c-typeck.c (composite_type): Prefer constant size arrays to
1903 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
1906 * real.c (real_from_string): Set last bit if there is a nonzero
1907 hex digit beyond GCC's internal precision.
1909 2005-07-28 Richard Henderson <rth@redhat.com>
1912 * cfgcleanup.c (try_forward_edges): Watch out for end of
1915 2005-07-28 James E Wilson <wilson@specifixinc.com>
1918 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
1920 2005-07-28 Jan Hubicka <jh@suse.cz>
1922 * Makefile.in (rtl-profile.o): Kill all traces of it.
1923 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
1924 * coverage.h (rtl_coverage_counter_ref): Kill.
1925 * opts.c (flag_speculative_prefetching_set): Kill.
1926 (flag_loop_optimize_set): New.
1927 (common_handle_option): Disable loop optimizer when profiling;
1928 do not handle speculative prefetching.
1929 * passes.c (init_optimization_passes): Replace pass_profiling combo
1930 by branch_prob pass.
1931 * profile.c (compute_value_histograms): Update for simplified value
1933 (rtl_register_profile_hooks): Kill.
1934 (pass_profiling): Kill.
1935 (rest_of_handle_branch_prob): Do not profile.
1936 * toplev.c (process_options): Remove speculative prefetching.
1937 * toplev.h (flag_tree_based_profiling): Kill.
1938 * tree-profile.c (prepare_instrumented_value,
1939 tree_gen_interval_profiler, tree_gen_pow2_profiler,
1940 tree_gen_one_value_profiler, do_tree_profiling): Update for
1941 simplified datastructures.
1942 * value-prof.c: Add comment that speculative prefetching was dropped;
1943 update rest of file for simplified datastructures.
1944 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
1945 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
1946 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
1947 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
1948 rtl_mod_subtract, gen_speculative_prefetch,
1949 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
1950 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
1951 (gate_handle_value_profile_transformations,
1952 rest_of_handle_value_profile_transformations,
1953 pass_value_profile_transformations): Kill.
1954 * value-prof.h (histogram_value_t): Remove IL based unions.
1955 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
1956 rtl_profile_hooks): Remove hooks.
1958 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
1960 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
1961 (cgraph_clone_node): Likewise.
1962 * cgraph.h (cgraph_clone_edge): Update prototype.
1963 (cgraph_clone_node): Likewise.
1964 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
1966 (lookup_recursive_calls): Consider profile.
1967 (cgraph_decide_recursive_inlining): Fix updating; use new
1968 probability argument; use profile.
1969 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
1970 * tree-inline.c (copy_bb): Update clal of clone_edge.
1971 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
1973 * invoke.texi (min-inline-recursive-probability): Document.
1975 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1977 * doc/install.texi (Configuration): Update Valgrind homepage.
1979 2005-07-28 Richard Henderson <rth@redhat.com>
1982 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
1983 labels we want to delete.
1984 (cfg_layout_merge_blocks): Likewise.
1986 2005-07-28 Richard Henderson <rth@redhat.com>
1989 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
1990 when expanding to nothing.
1992 2005-07-28 Josh Conner <jconner@apple.com>
1994 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
1995 (cgraph_decide_inlining_of_small_functions): Likewise.
1997 2005-07-28 Josh Conner <jconner@apple.com>
1999 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
2000 direction of badness if negative.
2001 (cgraph_default_inline_p): Add reason to parameters, and assign it
2003 (cgraph_decide_inlining_of_small_functions): New parameter in call
2004 to cgraph_default_inline_p.
2005 (cgraph_decide_inlining_incrementally): Likewise.
2006 * cgraphunit.c (decide_is_function_needed): Likewise.
2007 * cgraph.h (cgraph_default_inline_p): Likewise.
2009 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2011 * builtins.c: Fix comment typo(s).
2012 * genautomata.c: Likewise.
2013 * gimplify.c: Likewise.
2014 * tree-dfa.c: Likewise.
2015 * tree-flow-inline.h: Likewise.
2016 * tree-into-ssa.c: Likewise.
2017 * tree-ssa-alias.c: Likewise.
2018 * tree-ssa-ccp.c: Likewise.
2019 * tree-ssa-copy.c: Likewise.
2020 * tree-ssa-dce.c: Likewise.
2021 * tree-ssa-dom.c: Likewise.
2022 * tree-ssa-operands.c: Likewise.
2023 * tree-tailcall.c: Likewise.
2024 * tree-vectorizer.c: Likewise.
2025 * tree-vrp.c: Likewise.
2028 2005-07-28 Jeff Law <law@redhat.com>
2030 * tree-vrp.c (test_for_singularity): Extracted from ...
2031 (simplify_cond_using_ranges): Attempt to simplify a relational
2032 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
2034 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
2036 PR tree-optimization/22506
2037 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
2038 phis whose argument is constant.
2040 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
2042 PR rtl-optimization/18992
2043 Back out this patch:
2044 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2045 PR optimization/12142
2046 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
2047 uses of the register in the SET_SRC. Remove unnecessary argument.
2049 Replace it with this:
2050 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
2051 if flag_non_call_exceptions is set and the insn may trap, pass
2052 pc_rtx as dest for recursion.
2053 In SET_SRC part of SET case, if dest is already set, pass it down
2056 2005-07-28 Jan Hubicka <jh@suse.cz>
2058 * cfg.c (update_bb_profile_for_threading): Use RDIV.
2059 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
2060 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
2062 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
2063 profile when available.
2065 2005-07-28 Jan Beulich <jbeulich@novell.com>
2067 * config/ia64/ia64.c (ia64_load_pair_ok): New.
2068 (ia64_print_operand): Describe and handle 'X'.
2069 (ia64_register_move_cost): Also handle FP_REGS.
2070 (ia64_preferred_reload_class): Likewise.
2071 (ia64_secondary_reload_class): Likewise.
2072 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
2073 it. Also check for ITANIUM_CLASS_FLDP.
2074 * config/ia64/ia64.h (FP_REGNO_P): New.
2075 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
2076 (reg_class): Add FP_REGS.
2077 (REG_CLASS_NAMES): Adjust for it.
2078 (REG_CLASS_CONTENTS): Likewise.
2079 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
2080 (REG_CLASS_FROM_LETTER): Handle 'x'.
2081 (CLASS_MAX_NREGS): Handle FP_REGS.
2082 (MEMORY_MOVE_COST): Likewise.
2083 * config/ia64/ia64.md (itanium_class): Add fldp.
2084 (type): Handle fldp.
2085 (movti_internal): More allowable operand combinations. Use ldfp8 when
2086 splitting unnecessary. Remove predicable attribute. Adjust
2087 itanium_class attribute.
2088 (smuldi3_highpart): Remove outdated comment.
2089 (mulditi3, umulditi3, rotlti3): New expanders.
2090 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
2091 (absti2): Disabled new insn for future reference.
2092 Respective new splitters.
2093 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
2094 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
2095 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
2097 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
2099 PR rtl-optimization/23047
2100 * simplify-rtx.c (simplify_const_relational_operation): Respect
2101 flag_wrapv for comparisons with ABS.
2103 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
2105 PR tree-optimization/22493
2106 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
2107 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
2109 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
2111 * config/frv/frv.opt (moptimize-membar): New.
2113 * doc/invoke.texi: Document -moptimize-membar and its inverse.
2115 * config/frv/frv.h: Remove machine_function definition.
2117 * config/frv/frv.c (struct frv_io): New.
2118 (struct machine_function): Moved from frv.h. Add has_membar_p.
2119 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
2120 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
2121 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
2122 (frv_optimize_membar_global, frv_optimize_membar): New functions.
2123 (frv_reorg): Call frv_optimize_membar when appropriate.
2124 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
2125 (frv_expand_builtin): Adjust calls accordingly.
2126 (frv_io_address_cookie): New function.
2127 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
2128 load or store rather than a special insn. Add ccnstant address and
2129 io-type operands to the membar.
2130 (frv_ifcvt_modify_tests): Unsign regno.
2131 (frv_ifcvt_modify_tests): Same.
2133 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
2134 UNSPEC_OPTIONAL_MEMBAR constant.
2135 (builtin_read_<mode>): Delete.
2136 (builtin_write_<mode>): Delete.
2137 ("optional_membar_<mode>"): Add operand.
2139 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
2140 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
2141 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
2142 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
2143 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
2144 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
2145 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
2146 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
2147 * testsuite/gcc.target/frv/all-read-write-1.c: New.
2149 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
2151 * df.c (df_uses_record): Handle SCRATCH.
2153 2005-07-28 Steven Bosscher <stevenb@suse.de>
2156 * passes.c (rest_of_decl_compilation): If decl is a type and
2157 we have encountered errors, don't emit debug information.
2159 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
2161 * params.def: Fixed comment.
2163 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
2166 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
2167 (TARGET_ASM_UNALIGNED_HI_OP): Add.
2168 (TARGET_ASM_UNALIGNED_SI_OP): Add.
2170 2005-07-27 Steven Bosscher <stevenb@suse.de>
2173 * varasm.c (assemble_start_function): Don't do anything that may
2174 require a CFG if the current function is a thunk.
2176 2005-07-25 Geoffrey Keating <geoffk@apple.com>
2178 * doc/install.texi (Prerequisites): Mention that perl is needed
2179 to do export control in libstdc++ targetting Darwin.
2181 2005-07-27 Steven Bosscher <stevenb@suse.de>
2183 PR rtl-optimization/17808
2184 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
2185 (sched_insns_conditions_mutex_p): Split out from...
2186 (add_dependence): ...here. But don't call it from here.
2187 (add_dependence_list): Check sched_insns_conditions_mutex_p
2188 before calling add_dependence.
2189 (add_dependence_list_and_free): Likewise.
2190 (fixup_sched_groups): Likewise.
2191 (sched_analyze_1): Likewise.
2192 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
2193 (sched_analyze): Likewise.
2194 (sched_analyze_insn): Likewise.
2195 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2196 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
2197 dependencies on all COND_EXEC insns to jumps ending basic blocks
2198 when doing intrablock scheduling.
2199 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
2201 2005-07-27 Jeff Law <law@redhat.com>
2203 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
2204 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
2205 equivalency sets, correctly handle the case were vr0 has an
2206 equivalency set, but vr1 does not.
2208 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
2210 PR tree-optimization/23073
2211 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
2212 vect_print_dump_info before fprintf.
2214 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2216 PR tree-optimize/22348
2217 * tree-ssa-loop-niter.c (number_of_iterations_cond):
2218 Fold the partial computation.
2220 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2222 PR tree-optimization/22325
2223 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
2225 * tree-scalar-evolution.c (scev_const_prop): Add generic final
2227 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
2228 (force_var_cost): ... this function.
2229 (compute_phi_arg_on_exit): Export.
2231 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
2233 PR tree-optimization/20773
2234 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
2237 2005-07-27 Richard Guenther <rguenther@suse.de>
2239 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
2240 Avoid pushing again if current struct contains only
2241 fields we decomposed.
2243 2005-07-27 Jan Hubicka <jh@suse.cz>
2245 PR tree-optimization/22574
2246 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
2249 * tree-tailcall.c (decrease_profile): New function.
2250 (eliminate_tail_call): Use it.
2252 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
2253 visibility flags correctly in whole program mode.
2255 2005-07-26 Steve Ellcey <sje@cup.hp.com>
2257 PR rtl-optimization/22472
2258 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
2260 2005-07-26 Steven Bosscher <stevenb@suse.de>
2262 PR tree-optimization/22504
2263 * tree-complex.c (expand_complex_addition): Use 'code' instead
2264 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
2266 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
2268 * config.gcc (cpu_type): Add frv case.
2269 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
2270 (supported_defaults): Add fr550 case.
2272 2005-07-26 Diego Novillo <dnovillo@redhat.com>
2275 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
2276 whether a pointer of type T * may point to objects of type T *.
2278 2005-07-26 DJ Delorie <dj@redhat.com>
2280 * configure: Regenerate.
2282 2005-07-26 Dale Johannesen <dalej@apple.com>
2284 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
2286 2005-07-26 Mark Mitchell <mark@codesourcery.com>
2288 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
2289 Clarify use of "build" in name.
2291 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
2293 * doc/extend.texi (Raw read/write Functions): New section.
2294 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
2295 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
2296 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
2297 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
2298 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
2299 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
2300 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
2301 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
2302 * config/frv/frv.c: Add bdesc_loads global.
2303 Add bdesc_stores global.
2304 (frv_init_builtins): Add support for __builtin_{read/write}*.
2305 (frv_volatile_memref): New.
2306 (frv_expand_load_builtin): New.
2307 (frv_expand_store_builtin): New.
2308 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
2309 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
2310 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
2311 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
2312 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
2313 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
2314 (builtin_read_<mode>): New.
2315 (builtin_write_<mode>): New.
2316 (builtin_write64): New.
2317 (optional_membar_<mode>): New.
2319 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
2321 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
2322 (rather than units) against HOST_BITS_PER_WIDE_INT.
2324 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
2326 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
2327 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
2328 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
2329 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
2332 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
2333 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
2334 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
2336 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
2338 2005-07-26 Richard Guenther <rguenther@suse.de>
2340 PR tree-optimization/22486
2341 * fold-const.c (fold_unary): Fold away useless component
2342 references of the form (T *)&T.x, if the address
2345 2005-07-25 James E Wilson <wilson@specifixinc.com>
2347 * dwarf2out.c (add_call_src_coords_attributes): New.
2348 (gen_inlined_subroutine_die): Call it.
2349 (maybe_emit_file, init_file_table): Add comments.
2350 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
2352 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
2353 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
2354 * tree.h (BLOCK_SOURCE_LOCATION): New.
2355 (struct tree_block): New field locus.
2357 2005-07-26 Andreas Schwab <schwab@suse.de>
2359 PR rtl-optimization/23043
2360 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
2361 when allocating a struct unoccr.
2363 2005-07-25 Richard Henderson <rth@redhat.com>
2366 * tree-complex.c (gate_no_optimization): True if errors.
2367 * Makefile.in (tree-complex.o): Update dependencies.
2369 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
2371 * config/frv/predicates.md (integer_register_operand): Use
2374 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
2377 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
2379 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
2381 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
2383 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
2384 types when flag_unsafe_math_optimizations is true.
2386 2005-07-25 Mark Mitchell <mark@codesourcery.com>
2388 * gcc.c (option_map): Add --sysroot.
2389 (process_command): Handle --sysroot.
2390 (display_help): Document it.
2391 * doc/cppopts.tex (-isysroot): Document.
2392 * doc/invoke.texi (--sysroot): Document.
2393 * doc/install.texi (--with-build-sysroot): Document.
2395 * Makefile.in (inhibit_libc): New variable.
2396 (INHIBIT_LIBC_CFLAGS): Likewise.
2397 (LIBGCC2_CFLAGS): Include
2398 $(INHIBIT_LIBC_CFLAGS).
2399 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
2400 ($(T)crtbegin.o): Do not use @inhibit_libc@.
2401 ($(T)crtend.o): Likewise.
2402 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
2403 ($(T)crtendS.o): Likewise.
2404 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
2405 ($(T)crtendT.o): Likewise.
2406 (stmp-fixinc): Do not complain about missing headers if
2408 * configure.ac (inhibit_libc): Set it to true/false.
2409 (--with-build-sysroot): New option. Use it to set
2411 * configure: Regenerated.
2413 2005-07-25 Manfred Hollstein <mh@suse.com>
2415 * calls.c (store_one_arg): Fix unsigned comparison warning.
2417 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2420 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
2421 (ggc_print_statistics): Initialize variable before use.
2423 2005-07-25 Richard Guenther <rguenther@suse.de>
2425 * tree-dfa.c (mark_new_vars_to_rename): Protect against
2426 calling with a PHI_NODE argument.
2428 * tree-flow-inline.h (overlap_subvar): Protect against
2431 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
2433 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
2434 * configure: Regenerate.
2436 2005-07-25 Ira Rosen <irar@il.ibm.com>
2438 * expr.c (highest_pow2_factor): Make extern.
2439 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
2440 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
2441 record_array_differ_p, array_ptr_differ_p): Likewise.
2442 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
2443 additional cases. Call the above functions.
2444 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
2445 base_object_differ_p when there are two base objects. Otherwise, compare
2446 base address and offset. Call may_alias_p.
2447 (dump_data_reference): Use a correct field name.
2448 (analyze_array): Make static. Initialize new data-ref fields.
2449 (analyze_indirect_ref): New function.
2450 (init_data_ref): Initialize new data-ref fields.
2451 (strip_conversion): Moved from tree-vect-analyze.c.
2452 (analyze_offset_expr, get_ptr_offset, address_analysis,
2453 object_analysis): Likewise.
2454 (analyze_offset): New function.
2455 (create_data_ref): Likewise.
2456 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
2457 dimensions for ARRAY_REFs only.
2458 (build_classic_dist_vector): Make static.
2459 (access_functions_are_affine_or_constant_p): Call macro to get the
2460 address of access functions.
2461 (compute_all_dependences): Add new parameter
2462 compute_self_and_read_read_dependences. Compute self and read-read
2463 dependences if it is true.
2464 (find_data_references_in_loop): Call create_data_ref. Initialize new
2466 (compute_data_dependences_for_loop): Add new parameter
2467 compute_self_and_read_read_dependences. Remove parameter nb_loops,
2468 compute nb_loops. Call compute_all_dependences,
2469 build_classic_dist_vector and build_classic_dir_vector with correct
2471 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
2472 with correct parameters. Compare dimensions for ARRAY_REFs only.
2473 (free_data_refs): Call macro to free access functions.
2474 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
2475 fields from stmt_vinfo.
2476 (struct base_object_info): New structure.
2477 (struct data_reference): Move fields to base_object_info. Add fields
2478 first_location and object_info for above structures. Move fields from
2479 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
2480 aligned_to. Add macros to access the new fields.
2481 Update functions declarations.
2482 * tree-flow.h (is_aliased_with): Declare.
2483 * tree-loop-linear.c (linear_transform_loops): Call
2484 compute_data_dependences_for_loop with correct parameters.
2485 * tree-ssa-alias.c (is_aliased_with): New function.
2486 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
2487 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
2488 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
2489 vect_base_addr_differ_p, compute_subscript_distance and
2490 build_classic_dist_vector. Add printings. Check absolute value of
2492 (vect_analyze_data_ref_dependences): Go through ddrs instead of
2494 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
2495 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
2496 to bytes. Add printing.
2497 (vect_compute_data_refs_alignment): Go through loads and stores in one
2499 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
2500 vect_analyze_data_ref_access): Likewise.
2501 (vect_analyze_pointer_ref_access): Remove.
2502 (vect_address_analysis, vect_object_analysis): Likewise.
2503 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
2504 and analyze data-refs in the loop.
2505 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
2506 fields of data-ref instead of stmt. Add init to the offset from the
2508 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
2509 (vect_update_init_of_dr): Likewise.
2510 (vect_update_inits_of_drs): Go through loads and stores in one loop.
2511 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
2513 (new_loop_vec_info): Initialize new fields.
2514 (destroy_loop_vec_info): Free new fields.
2515 (vect_strip_conversion): Remove.
2516 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
2517 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
2518 datarefs. Add new field ddrs.
2519 Add macros for the new fields access.
2520 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
2521 base_aligned_p, misalignment, memtag, ptr_info and subvars.
2522 Remove their macros.
2523 * tree.h (highest_pow2_factor): Declare.
2525 2005-07-25 Jakub Jelinek <jakub@redhat.com>
2527 * calls.c (store_one_arg): Check for sibling call MEM arguments
2528 from already clobbered incoming argument area.
2530 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2532 * c-common.c (check_missing_format_attribute): New.
2533 * c-common.h (check_missing_format_attribute): Likewise.
2534 * c-typeck.c (convert_for_assignment): Use it.
2536 2005-07-24 Andreas Schwab <schwab@suse.de>
2538 * config/m68k/m68k.md ("extendqidi2"): When source is an address
2539 register use a word move. Correct operand of ext.w in 68000 code.
2541 2005-07-23 Mark Mitchell <mark@codesourcery.com>
2543 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
2544 variables as declarations, rather than definitions.
2546 2005-07-24 Ira Rosen <irar@il.ibm.com>
2548 PR tree-optimization/22526
2549 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
2552 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2554 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
2555 that C99 reserve for future use. Use it to define clog10,
2556 clog10f and clog10l.
2558 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2560 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
2561 * configure.ac: Check for -Wmissing-format-attribute.
2563 * configure: Regenerate.
2565 2005-07-23 Richard Henderson <rth@redhat.com>
2567 PR tree-optimization/22623
2568 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
2570 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
2573 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
2575 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2577 * Makefile.in (C_TREE_H): Update dependencies.
2578 * c-tree.h: Include toplev.h.
2579 * diagnostic.h (diagnostic_set_info): Add format attribute.
2580 * rtl-error.c (diagnostic_for_asm): Likewise.
2582 2005-07-23 Chao-ying Fu <fu@mips.com>
2584 * config/mips/mips-dsp.md: New file.
2585 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
2586 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
2588 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
2589 MIPS_BUILTIN_BPOSGE32.
2590 (mips_expand_builtin_direct): Add one parameter to indicate that
2591 builtin functions need to return a value.
2592 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
2594 (mips_regno_to_class): Add classes for 12 new DSP registers.
2595 (mips_subword): Change to check four HI registers.
2596 (mips_output_move): Output move to and from 6 new DSP accumulators.
2597 (override_options): Make sure -mdsp and -mips16 are not used together.
2598 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
2600 (mips_conditional_register_usage): Disable 6 new DSP accumulators
2602 (print_operand): Add 'q' for printing DSP accumulators.
2603 (mips_cannot_change_mode_class): Check ACC_REGS.
2604 (mips_secondary_reload_class): Check ACC_REGS.
2605 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
2606 (mips_register_move_cost): Check ACC_REGS.
2607 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
2608 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
2609 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
2610 (dsp_bdesc): New array.
2611 (bdesc_arrays): Add DSP builtin function table.
2612 (mips_prepare_builtin_arg): Check predicate again after
2614 (mips_expand_builtin): Add one more parameter to
2615 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
2616 MIPS_BUILTIN_BPOSGE32.
2617 (mips_init_builtins): Initialize new function types.
2618 (mips_expand_builtin_direct): Check if builtin functions need to
2619 return a value and pass operands properly.
2620 (mips_expand_builtin_bposge): New function.
2621 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
2622 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
2623 (FIRST_PSEUDO_REGISTER): Increase to 188.
2624 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2625 Update for 12 new DSP registers.
2626 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
2627 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
2628 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
2629 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
2630 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
2631 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
2632 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
2633 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
2634 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
2635 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
2636 (REGISTER_NAMES): Add names for 12 new DSP registers.
2637 * config/mips/mips.md: Include mips-dsp.md.
2638 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2639 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2640 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2641 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2642 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2643 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2644 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2645 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2646 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2647 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2648 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2649 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2650 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2651 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2652 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2653 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2654 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2655 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2656 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2657 (UNSPEC_RDDSP): New constants.
2658 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
2659 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
2661 * config/mips/mips.opt (-mdsp): New option.
2662 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
2663 (reg_imm10_operand): New predicates.
2664 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
2665 * doc/invoke.texi (-mdsp): Document new option.
2667 2005-07-22 DJ Delorie <dj@redhat.com>
2669 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
2671 * tree-inline.c (inlinable_function_p): Likewise.
2673 2005-07-22 Mark Mitchell <mark@codesourcery.com>
2676 * toplev.c (check_global_declarations): Do not mark undefined
2677 variables as DECL_IGNORED_P.
2678 * varasm.c (first_global_object_name): GTY it.
2679 (weak_global_object_name): Likewise.
2680 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
2681 a string to go into {weak,first}_global_object_name.
2683 2005-07-22 DJ Delorie <dj@redhat.com>
2685 * c-format.c (check_function_format): Change warning control
2686 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
2688 2005-07-22 Diego Novillo <dnovillo@redhat.com>
2690 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
2691 &PTR->FLD a dereference of PTR.
2692 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
2693 a potential dereference of PTR.
2695 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
2697 PR rtl-optimization/20370
2698 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
2699 call allocate_reg_info if necessary.
2701 PR rtl-optimization/21848
2702 * calls.c (emit_library_call_value_1): For const functions, add
2703 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
2705 PR rtl-optimization/22445
2706 * cselib.c (target.h): Include.
2707 (rtx_equal_for_cselib_p): Allow commutative matches.
2708 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
2709 Remove MODE parameter. Changed all callers.
2711 PR rtl-optimization/22258
2712 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
2714 (try_combine): Use likely_spilled_retval_p.
2716 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
2718 * config.gcc: Add crx-elf support.
2720 * doc/contrib.texi: Mention crx.
2721 * doc/extend.texi: Document crx extensions.
2722 * doc/install.texi: Document crx install.
2723 * doc/invoke.texi: Document crx options.
2724 * doc/md.texi: Document crx constraints.
2726 * config/crx/crx-protos.h: New file.
2727 * config/crx/crx.c: New file.
2728 * config/crx/crx.h: New file.
2729 * config/crx/crx.md: New file.
2730 * config/crx/crx.opt: New file.
2731 * config/crx/t-crx: New file.
2733 2005-07-22 Manfred Hollstein <mh@suse.com>
2735 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
2737 (int_add_graph_edge): Likewise.
2738 (collapse_nodes): Likewise.
2739 (process_unification_queue): Likewise.
2741 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2742 Laurent GUERBY <laurent@guerby.net>
2744 PR tree-optimization/22336
2745 * function.c (record_block_change): Check for
2746 cfun->ib_boundaries_block.
2748 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
2750 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
2751 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
2753 2005-07-21 DJ Delorie <dj@redhat.com>
2755 * toplev.c (warn_deprecated_use): Add warning control to warning
2757 * c-typeck.c (parser_build_binary_op): Likewise.
2758 (c_finish_if_stmt): Likewise.
2759 * c-common.c (check_function_sentinel): Likewise.
2760 (check_nonnull_arg): Likewise.
2762 2005-07-21 Richard Henderson <rth@redhat.com>
2765 * tree-complex.c (complex_ssa_name_components): New.
2766 (cvc_lookup): Allow entry not found.
2767 (create_components): Remove.
2768 (create_one_component_var, get_component_var): New.
2769 (get_component_ssa_name, set_component_ssa_name): New.
2770 (extract_component): Use get_component_ssa_name.
2771 (update_complex_components): Use set_component_ssa_name.
2772 (update_complex_components_on_edge): Likewise.
2773 (update_phi_components): Create new PHI nodes directly, instead
2774 of adding insns to edges.
2775 (tree_lower_complex): Allocate and free complex_variable_components
2776 and complex_ssa_name_components here.
2778 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
2780 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
2781 revert to returning false.
2783 2005-07-21 Uros Bizjak <uros@kss-loka.si>
2786 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
2788 2005-07-21 Uros Bizjak <uros@kss-loka.si>
2791 * config/i386/i386.md (cmpxf): Change operand constraints
2792 to "nonmemory_operand".
2794 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2796 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
2798 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2801 * fold-const.c (fold_build1): Add checksum for the operands.
2802 (fold_build2): Likewise.
2803 (fold_build3): Likewise.
2805 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
2808 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
2810 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
2812 * common.opt (-fforward-propagate): Committed by mistake,
2815 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2817 * reg-stack.c: Fix comment typo(s).
2818 * tree-ssa-operands.c: Likewise.
2819 * tree-vectorizer: Likewise.
2821 2005-07-21 Nick Clifton <nickc@redhat.com>
2823 * config/sh/symbian.c: Replace C++ style line comments with C
2824 style line comments.
2825 (symbian_add_attribute): Do not use a ? operator on the LHS of
2827 (sh_symbian_handle_dll_attribute): Change the type of the
2828 method vector to "VEC(tree,gc)*" and use vector accessor
2829 macros to walk over the elements.
2830 (symbian_export_vtable_and_rtti_p): Likewise.
2831 (symbian_class_needs_attribute_p): Likewise.
2833 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
2836 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
2837 initialize targetm.resolve_overloaded_builtin here.
2838 (altivec_expand_overloaded_builtin): Make it non-static.
2839 * config/rs6000/rs6000-protos.h
2840 (altivec_expand_overloaded_builtin): New prototype.
2841 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
2842 targetm.resolve_overloaded_builtin here.
2843 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
2845 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
2846 Zdenek Dvorak <dvorakz@suse.cz>
2848 PR tree-optimization/19210
2849 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
2851 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
2852 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
2853 rely on unproven assumptions.
2854 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
2855 * tree-flow.h (number_of_iterations_exit): Add final parameter.
2856 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
2857 to number_of_iterations_exit.
2858 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
2859 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
2860 * tree-ssa-loop-niter.c (find_loop_niter,
2861 estimate_numbers_of_iterations_loop): Likewise.
2862 (number_of_iterations_exit): Honor the new options.
2863 * doc/invoke.texi (Wunsafe-loop-optimizations,
2864 funsafe-loop-optimizations): Document them.
2866 2005-07-21 Richard Sandiford <richard@codesourcery.com>
2868 PR rtl-optimization/22167
2869 * gcse.c (hoist_code): Fix hoist_exprs[] check.
2871 2005-07-20 Adam Nemet <anemet@lnxw.com>
2873 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
2874 __do_global_dtors_aux longcall.
2876 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
2878 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
2879 (old_special_pred_table): Don't reference
2880 SPECIAL_MODE_PREDICATES.
2881 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
2882 * config/arc/arc.h: Don't mention PREDICATE_CODES.
2883 * config/sh/predicates.h: Don't mention
2884 SPECIAL_MODE_PREDICATES.
2885 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
2888 2005-07-20 DJ Delorie <dj@redhat.com>
2890 * config.gcc: Add m32c-elf support.
2892 * doc/contrib.texi: Mention m32c.
2893 * doc/extend.texi: Document m32c extensions.
2894 * doc/install.texi: Mention m32c.
2895 * doc/invoke.texi: Document m32c options.
2896 * doc/md.texi: Document m32c constraints.
2898 * config/m32c/addsub.md: New file.
2899 * config/m32c/bitops.md: New file.
2900 * config/m32c/cond.md: New file.
2901 * config/m32c/jump.md: New file.
2902 * config/m32c/m32c-lib1.S: New file.
2903 * config/m32c/m32c-lib2.c: New file.
2904 * config/m32c/m32c-modes.def: New file.
2905 * config/m32c/m32c-pragma.c: New file.
2906 * config/m32c/m32c-protos.h: New file.
2907 * config/m32c/m32c.abi: New file.
2908 * config/m32c/m32c.c: New file.
2909 * config/m32c/m32c.h: New file.
2910 * config/m32c/m32c.md: New file.
2911 * config/m32c/m32c.opt: New file.
2912 * config/m32c/minmax.md: New file.
2913 * config/m32c/mov.md: New file.
2914 * config/m32c/muldiv.md: New file.
2915 * config/m32c/predicates.md: New file.
2916 * config/m32c/prologue.md: New file.
2917 * config/m32c/shift.md: New file.
2918 * config/m32c/t-m32c: New file.
2920 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
2922 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2923 (stack_protect_set, stack_protect_test): New expanders.
2924 (stack_protect_set_si, stack_protect_set_si_media,
2925 stack_protect_set_di_media, stack_protect_test_si,
2926 stack_protect_test_si_media, stack_protect_test_di_media):
2929 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
2931 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
2933 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
2935 * tree.h (tree_expr_nonzero_p): Export.
2936 * fold-const.c (tree_expr_nonzero_p): Likewise.
2937 Return true for CALL_EXPRs that are alloca calls.
2938 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
2940 * tree-flow.h (expr_computes_nonzero): Remove.
2941 * tree-vrp.c (expr_computes_nonzero): Remove.
2942 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
2943 (extract_range_from_unary_expr): Likewise.
2944 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
2945 tree_expr_nonzero_p.
2947 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
2949 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
2950 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
2951 extra arg "picreg" and use it instead of pic_offset_table_rtx.
2952 All callers changed.
2953 (frame_related_constant_load): New arg "related" which controls
2954 setting of RTX_FRAME_RELATED_P. All callers changed.
2955 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
2956 (bfin_expand_prologue): Add stack limit checking.
2957 * config/bfin/bfin.md (trapifcc): New pattern.
2959 * config/bfin/bfin.c: Include "langhooks.h".
2960 (def_builtin): Go through lang_hooks to call builtin_function.
2962 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
2963 * config/bfin/predicates.md (symbol_ref_operand): New.
2964 (call_insn_operand): Delete. All callers changed to use
2965 register_no_elim_operand.
2966 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
2968 (function_arg): Use it to generate the call's operand 2.
2969 (bfin_longcall_p): New function.
2970 (bfin_expand_call): Extra arg "cookie". All callers and declaration
2971 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
2972 determine if the address needs to be in a REG.
2973 (bfin_handle_longcall_attribute): New function.
2974 (bfin_attribute_table): Add "longcall" and "shortcall".
2975 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
2976 (CUMULATIVE_ARGS): New member call_cookie.
2977 (PREDICATE_CODES): Add symbol_ref_operand.
2978 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
2979 extra USE to the pattern.
2980 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
2981 New patterns, split off call_insn, sibcall_insn, call_value_insn and
2982 sibcall_value_insn; now the new patterns handle direct calls and the
2983 old ones indirect calls.
2984 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
2986 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
2988 * doc/trouble.texi: Update section on handling of empty loops.
2990 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
2992 * config.gcc: Remove support for sparc-*-openbsd*,
2993 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
2995 * config.host: Remove support for i860-*-sysv4* as a host.
2996 * config/i860/*, config/ip2k/*, config/ns32k/*,
2997 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
2998 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
2999 mention obsolete ports.
3001 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
3003 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
3005 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
3006 of frame_pointer_rtx.
3007 (sh_expand_epilogue): Likewise.
3008 (sh_set_return_address): Likewise.
3009 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
3010 instead of FRAME_POINTER_REGNUM if needed. Add elimination
3011 offsets from FRAME_POINTER_REGNUM.
3012 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
3013 (sh_register_names): Add initializer for sfp.
3014 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
3015 (VALID_REGISTER_P): Likewise.
3016 (FIRST_PSEUDO_REGISTER): Update.
3017 (DWARF_FRAME_REGISTERS): Define.
3018 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
3019 (HARD_FRAME_POINTER_REGNUM): Define.
3020 (FRAME_POINTER_REGNUM): Redefine.
3021 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
3022 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
3023 from FRAME_POINTER_REGNUM.
3024 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
3025 FRAME_POINTER_REGNUM.
3026 (REG_CLASS_CONTENTS): Add sfp.
3027 (REG_ALLOC_ORDER): Likewise.
3028 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
3029 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
3030 of frame_pointer_rtx.
3031 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
3033 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
3035 * fold-const.c (tree_expr_nonnegative_p): Only return true for
3036 ABS_EXPR when flag_wrapv is false because of INT_MIN.
3037 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
3039 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
3042 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
3044 Make CONSTRUCTOR use VEC to store initializers.
3045 * c-common.c (complete_array_type): Update to cope with VEC in
3047 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
3048 (pp_c_constructor_elts): New function.
3049 * c-pretty-print.h (pp_c_constructor_elts): Declare.
3050 * c-typeck.c (build_function_call, build_c_cast, digest_init,
3051 struct constructor_stack, struct initializer_stack,
3052 constructor_elements, push_init_level, pop_init_level,
3053 add_pending_init, find_init_member, output_init_element): Update to
3054 cope with VEC in CONSTRUCTOR_ELTS.
3055 * coverage.c (build_fn_info_value, build_ctr_info_value,
3056 build_gcov_info): Likewise.
3057 * expr.c (categorize_ctor_elements_1, store_constructor,
3058 expand_expr_real_1): Likewise.
3059 * fold-const.c (fold_ternary): Likewise.
3060 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
3061 gimplify_init_constructor, gimplify_expr): Likewise.
3062 * tree-dump.c (dequeue_and_dump): Likewise.
3063 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
3065 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
3067 * tree-sra.c (generate_element_init_1): Likewise.
3068 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3069 * tree-ssa-operands.c (get_expr_operands): Likewise.
3070 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3071 * tree-vect-transform.c (vect_get_vec_def_for_operand):
3072 (get_initial_def_for_reduction): Likewise.
3073 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
3074 value handle in annotations.
3075 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
3076 tree_node_structure): Add support for constr_kind.
3077 (build_vector_from_ctor, build_constructor_single,
3078 build_constructor_from_list): New functions.
3079 (build_constructor): Update to take a VEC instead of a TREE_LIST.
3080 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
3081 Update to cope with VEC in CONSTRUCTOR_ELTS.
3082 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
3083 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
3084 CONSTRUCTOR_APPEND_ELT): New macros.
3085 (struct constructor_elt, struct tree_constructor): New data types.
3086 (union tree_node): Add tree_constructor field.
3087 * treestruct.def: Define TS_CONSTRUCTOR.
3088 * varasm.c (const_hash_1, compare_constant, copy_constant,
3089 compute_reloc_for_constant, output_addressed_constants,
3090 initializer_constant_valid_p, output_constant,
3091 array_size_for_constructor, output_constructor): Update to cope with
3092 VEC in CONSTRUCTOR_ELTS.
3093 * vec.h (VEC_empty, VEC_copy): New macros.
3095 2005-07-19 Devang Patel <dpatel@apple.com>
3097 * dbxout.c (dbxout_type): Check Objective-C++ lang.
3099 2005-07-19 Richard Henderson <rth@redhat.com>
3102 * gimplify.c (gimplify_expr): Use main variant type for the temp
3103 destination for a discarded volatile read.
3104 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
3105 casts between non-void types that change volatility.
3107 2005-07-15 DJ Delorie <dj@redhat.com>
3109 * toplev.h: Add comment about the first parameter for warning().
3110 * errors.h: Likewise.
3112 * c.opt (Wpragmas): New.
3113 * doc/invoke.texi: Document it.
3115 * function.c (do_warn_unused_parameter): Add warning control to
3117 * c-decl.c (warn_if_shadowing): Likewise.
3118 * c-lex.c (cb_def_pragma): Likewise.
3119 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
3120 (pop_alignment): Likewise.
3121 (handle_pragma_pack): Likewise.
3122 (apply_pragma_weak): Likewise.
3123 (handle_pragma_weak): Likewise.
3124 (handle_pragma_redefine_extname): Likewise.
3125 (add_to_renaming_pragma_list): Likewise.
3126 (handle_pragma_extern_prefix): Likewise.
3127 (maybe_apply_renaming_pragma): Likewise.
3128 (handle_pragma_visibility): Likewise.
3130 * config/c4x/c4x-c.c (BAD): Likewise.
3131 (c4x_parse_pragma): Likewise.
3132 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
3133 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
3134 (rs6000_pragma_longcall): Likewise.
3135 * config/v850/v850-c.c (pop_data_area): Likewise.
3136 (ghs_pragma_section): Likewise.
3137 (ghs_pragma_section): Likewise.
3138 (ghs_pragma_interrupt): Likewise.
3139 (ghs_pragma_starttda): Likewise.
3140 (ghs_pragma_startsda): Likewise.
3141 (ghs_pragma_startzda): Likewise.
3142 (ghs_pragma_endtda): Likewise.
3143 (ghs_pragma_endsda): Likewise.
3144 (ghs_pragma_endzda): Likewise.
3146 2005-07-19 Danny Berlin <dberlin@dberlin.org>
3147 Kenneth Zadeck <zadeck@naturalbridge.com>
3149 * Makefile.in: Removed tree-promote-statics.c
3150 * tree-promote-statics.c: Removed.
3151 * common.opt: Removed flag-promote-statics.
3153 * passes.c: Removed tree-promote-statics pass.
3154 * tree-pass.h: Ditto.
3155 * timevar.def: Removed TV_PROMOTE_STATICS.
3158 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
3160 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
3162 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
3164 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3167 * c-common.c (check_function_arguments): Call
3168 'check_function_format' if either -Wformat or
3169 -Wmissing-format-attribute are specified.
3170 * c-format.c (check_function_format): Check -Wformat before
3171 calling 'check_format_info'.
3172 * c-opts.c (c_common_post_options): Don't warn for
3173 -Wmissing-format-attribute without -Wformat.
3174 * c-typeck.c (convert_for_assignment): Detect additional cases for
3175 -Wmissing-format-attribute.
3176 * doc/invoke.texi (-Wmissing-format-attribute): Document new
3179 2005-07-19 Richard Guenther <rguenther@suse.de>
3181 * config/i386/i386.md (lrint<mode>2): Use temporary
3182 instead of clobbering non-existent memory.
3184 2005-07-19 Nick Clifton <nickc@redhat.com>
3186 * config/avr/avr.c (legitimate_address_p): Fix debugging print
3187 statement to avoid displaying ASCII control characters.
3189 2005-07-19 Ben Elliston <bje@au.ibm.com>
3191 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
3192 * cfganal.c (find_edge_index): Ditto.
3193 * combine.c (combine_instructions): Ditto.
3194 * ddg.c (create_scc): Ditto.
3195 (find_successors): Ditto.
3196 (find_predecessors): Ditto.
3197 (find_nodes_on_paths): Ditto.
3198 (longest_simple_path): Ditto.
3199 * flow.c (update_life_info): Ditto.
3200 (count_or_remove_death_notes): Ditto.
3201 (clear_log_links): Ditto.
3202 * modulo-sched.c (generate_reg_moves): Ditto.
3203 (find_max_asap): Ditto.
3204 (find_max_hv_min_mob): Ditto.
3205 (find_max_dv_min_mob): Ditto.
3206 * sbitmap.c (sbitmap_first_set_bit): Ditto.
3207 * sched-rgn.c (extract_edgelst): Ditto.
3208 * tree-into-ssa.c (prepare_names_to_update): Ditto.
3209 (dump_update_ssa): Ditto.
3210 (ssa_names_to_replace) Ditto.
3211 (switch_virtuals_to_full_rewrite): Ditto.
3212 (update_ssa): Ditto.
3213 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
3215 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
3217 Fix PR tree-optimization/22483
3219 * tree-complex.c (create_components): Use
3220 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
3221 * tree-flow-inline.h (fill_referenced_var_vec): New function.
3222 * tree-flow.h (safe_referenced_var_iterator): New structure.
3223 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
3224 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
3225 safe_referenced_var iterator.
3226 (add_type_alias): Ditto.
3228 2005-07-19 Steven Bosscher <stevenb@suse.de>
3230 * loop-init.c (rest_of_handle_loop2): Remove.
3231 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
3232 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
3233 (pass_rtl_loop_init, pass_rtl_loop_done,
3234 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
3235 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
3236 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
3237 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
3238 pass_tree_loop_done, and pass_tree_unswitch.
3239 (gate_loop): Rename to gate_tree_loop.
3240 * passes.c (init_optimization_passes): Update for renamed tree
3241 loop passes. Add the new loop2 passes as subpasses of loop2.
3242 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
3243 Update for the renamed tree loop passes.
3245 2005-07-18 Ian Lance Taylor <ian@airs.com>
3248 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
3249 blocks when optimizing.
3251 2005-07-18 Steve Ellcey <sje@cup.hp.com>
3253 * common.opt (frename-registers): Initialize to 2.
3255 (fgcse-after-reload): Ditto.
3256 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
3257 (process_options): Only change flag_web, flag_rename_registers,
3258 and flag_rerun_cse_after_loop if not explicitly set by user.
3260 2005-07-18 Jan Beulich <jbeulich@novell.com>
3262 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
3263 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
3264 in 64-bit mode the same as DImode in 32-bit mode.
3265 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
3266 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
3267 mode. Add new mode parameter.
3268 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
3269 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
3270 x86_64_shift_adj): New expanders.
3271 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
3272 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
3274 Respective new splitters. Use renamed shift splitter helpers in 32-bit
3275 DImode shift splitters.
3276 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
3277 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
3280 2005-07-18 Jan Beulich <jbeulich@novell.com>
3282 * i386.md (movdi_extzv_1): New.
3283 (zero_extendhidi2): Combine alternatives and never force use of
3285 (zero_extendqidi2): Likewise. Don't restrict input selection.
3287 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
3289 Fix PR tree-optimization/22531
3290 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
3293 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
3295 * tree-promote-statics.c (pass_promote_statics): Change dump file
3298 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
3300 * tree-optimize.c (init_tree_optimization_passes): Add
3301 pass_eliminate_useless_stores pass.
3302 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
3303 * tree-ssa-pre.c (is_copy_stmt): New function.
3304 (follow_copies_till_vuse): Ditto.
3305 (do_eustores): Ditto.
3306 (gate_eustores): Ditto.
3308 2005-07-16 Richard Henderson <rth@redhat.com>
3310 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
3312 2005-07-16 Danny Berlin <dberlin@dberlin.org>
3313 Kenneth Zadeck <zadeck@naturalbridge.com>
3315 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
3316 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
3317 ipa-type-escape.h, tree-promote-statics.c
3318 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
3319 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
3320 tree-promote-statics.c: new files.
3321 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
3322 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
3323 int nonlocal_set_p, mark_constant_function): Deleted.
3324 (rest_of_handle_cfg): Removed call to mark_constant_function.
3325 (nonoverlapping_component_refs_p): Added calls to support
3326 type based aliasing.
3327 * tree-ssa-alias.c (may_alias_p,
3328 compute_flow_insensitive_aliasing): Ditto.
3329 * calls.c (flags_from_decl_or_type): Removed reference to
3331 * c-typeck.c (convert_arguments): Make builtins tolerant of having
3332 too many arguments. This is necessary for Spec 2000.
3333 * cgraph.h (const_function, pure_function): Removed.
3334 * common.opt: Added "fipa-pure-const", "fipa-reference",
3335 "fipa-type-escape", and "ftree-promote-static".
3337 * passes.c: Added ipa and tree-promote-statics passes.
3338 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
3339 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
3340 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
3341 * tree-flow.h: Added exposed sra calls and addition of
3342 reference_vars_info field for FUNCTION_DECLS.
3343 * tree-pass.h: Added passes.
3344 * tree-sra.c: (sra_init_cache): New function.
3345 (sra_insert_before, sra_insert_after) Made public.
3346 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
3348 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
3349 aliasing. (may_alias_p): Added code to use type escape analysis to
3351 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
3352 code to prune clobbers of static variables based on information
3353 produced in ipa-reference pass. Changed call clobbering so that
3354 statics are not marked as clobbered if the call does not clobber
3357 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
3359 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
3362 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
3364 * doc/install.texi (*-*-solaris2*): Document recommended version
3365 of GNU binutils and mention GNU linker problem on Solaris 10.
3367 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
3370 * c-decl.c (c_build_bitfield_integer_type): New function.
3371 (finish_struct): Call it.
3372 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
3374 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3376 * c-typeck.c (digest_init): Call 'convert_for_assignment'
3379 2005-07-16 Jan Hubicka <jh@suse.cz>
3381 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
3382 (scale_bbs_frequencies_int): Watch roundoff errors.
3383 * predict.c (return_prediction): Initialize return_stmt.
3385 2005-07-16 Jan Hubicka <jh@suse.cz>
3387 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
3388 after RTL profiling.
3390 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3393 * fold-const.c (build_range_check): Convert high/low to etype
3394 if we are only comparing against exp.
3396 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
3398 Fix PR tree-optimization/22376
3399 * tree-ssa-structalias.c (build_constraint_graph): We really meant
3401 (need_to_solve): New function.
3402 (compute_points_to_sets): Use it.
3404 2005-07-15 Jan Hubicka <jh@suse.cz>
3406 * cfg.c (update_bb_profile_for_threading): More diagnostic.
3407 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
3409 2005-07-15 Richard Guenther <rguenther@suse.de>
3411 * c-common.c (handle_flatten_attribute): New function.
3412 Add flatten function attribute.
3413 * doc/extend.texi: Document flatten function attribute.
3414 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
3415 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
3417 (cgraph_decide_inlining): Handle functions with flatten
3420 2005-07-14 David Edelsohn <edelsohn@gnu.org>
3422 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
3423 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
3424 UNSPEC_XCHG, UNSPEC_AND): New.
3425 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
3426 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
3427 * config/rs6000/sync.md (FETCHOP): New code macro.
3428 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
3430 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
3431 (sync_compare_and_swap<mode>): Same.
3432 (sync_lock_test_and_set<mode>): Same.
3433 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
3434 for QImode and HImode, and not PPC405.
3435 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
3436 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
3437 (sync_<fetchop>{si,di}_internal): New.
3438 (sync_nand{si,di}_internal): New.
3439 (sync_old_<fetchop>{si,di}_internal): New.
3440 (sync_old_nand{si,di}_internal): New
3441 (sync_new_<fetchop>{si,di}_internal): New.
3442 (sync_new_nand{si,di}_internal): New.
3443 (atomic_and{si,di}): New.
3444 (sync_new_nand{si,di}_internal): New.
3445 (atomic_and{si,di}): New.
3446 (sync_add<mode>_internal): Delete.
3447 (sync_addshort_internal): Use unspec instead of unspec_volatile.
3448 (sync_sub<mode>_internal): Delte.
3449 (sync_subshort_internal): New.
3450 (sync_andsi_internal): Use unspec instead of unspec_volatile.
3451 (sync_anddi_internal): Delete.
3452 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
3453 (sync_booldi_internal): Delete.
3454 (sync_boolc<mode>_internal): Delete.
3455 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
3456 (sync_boolc<mode>_internal2): Delete.
3457 (sync_boolcc<mode>_internal): Delete.
3458 (isync, lwsync): Use unspec instead of unspec_volatile.
3459 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.