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