1 2008-08-1 Vladimir Makarov <vmakarov@redhat.com>
3 * ira-conflicts.c (process_regs_for_copy): Don't add copy for
5 (propagate_allocno_copy_info, propagate_copy_info): Remove.
6 (propagate_copies): New.
7 (collected_conflict_allocnos): New.
8 (remove_conflict_allocno_copies): Remove.
9 (build_allocno_conflicts): Add parameter. Build conflicts only
10 for one allocno. Check cap too. Don't free conflict table row.
11 (build_conflicts): New.
12 (ira_build_conflicts): Build conflicts before adding copies. Free
13 conflict bit table rows.
15 * ira-color.c (color_pass): Check cap. Process caps only once.
16 Remove propagation code.
17 (move_spill_restore): Check caps and border allocnos.
19 * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
21 (ira_create_allocno_live_ranges): Don't propagate info of new
24 * ira-emit.c (not_modified_p, update_costs): Check caps.
26 * ira-build.c (allocnos_bitmap): Remove.
27 (create_cap_allocno): Set up all cap attributes.
28 (propagate_info_to_cap): Remove.
29 (create_loop_allocnos): Create allocnos in parent for border
30 allocnos if there is no one.
31 (propagate_allocno_info): New.
32 (create_allocnos): Don't propagate allocno info.
33 (remove_unnecessary_allocnos): Accumulate all allocno info.
34 (setup_min_max_allocno_live_range_point): Set up min/max for caps
36 (create_loop_tree_node_caps): Remove.
38 (propagate_info_to_loop_tree_node_caps): Remove.
39 (ira_flattening): Check cap. Stop decrease call info after
40 reaching allocno which is destination of removed store. Check
41 allocno nrefs and freq.
42 (calculate_high_pressure_loops): Remove.
43 (check_allocno_creation): New.
44 (ira_build): Call propagate_allocno_info, call_caps, and
45 check_allocno_creation. Move
46 ira_tune_allocno_costs_and_cover_classes before
47 setup_min_max_allocno_live_range_point.
49 * ira.c: Update comments about IRA.
50 (ira_print_disposition): Add comment.
52 * ira-costs.c (total_costs): Rename to allocno_costs.
54 (print_costs): Print accumulated costs too.
55 (find_allocno_class_costs): Check border allocnos for propagation
56 costs. Setup non-accumulated costs for allocnos.
57 (process_bb_node_for_hard_reg_moves): Don't propagate costs.
58 (ira_costs): Add allocation/freeing allocno_costs.
60 * common.opt (fira-propagate-cost): Remove.
62 * doc/invoke.texi (-fira-propagate-cost): Remove.
64 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
67 * caller-save.c (insert_restore): Replace
68 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
69 (insert_save): Likewise.
71 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
74 * dwarf2out.c (dwarf2out_args_size_adjust): New.
75 (dwarf2out_stack_adjust): Use it.
76 (dwarf2out_frame_debug_expr): Likewise.
78 2008-07-31 Richard Guenther <rguenther@suse.de>
80 PR tree-optimization/36978
81 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
82 the generated condition.
84 2008-07-31 Richard Guenther <rguenther@suse.de>
86 * passes.c (init_optimization_passes): Always call
87 pass_early_warn_uninitialized.
88 * opts.c (decode_options): Do not warn about -Wuninitialized
90 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
91 * doc/passes.texi (Warn for uninitialized variables): Adjust.
93 2008-07-31 Jakub Jelinek <jakub@redhat.com>
96 * builtins.c (maybe_emit_free_warning): New function.
97 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
98 maybe_emit_free_warning for BUILT_IN_FREE.
101 * dwarf2out.c (get_context_die): New function.
102 (force_decl_die, force_type_die): Use it.
103 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
104 returns NULL, force generation of DW_TAG_typedef and put that into
107 PR preprocessor/36649
108 * c-pch.c (c_common_read_pch): Save and restore
109 line_table->trace_includes across PCH restore.
111 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
114 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
116 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
119 * final.c (call_from_call_insn): Handle COND_EXEC.
121 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
123 * builtins.c (std_gimplify_va_arg_expr): Replace
124 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
125 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
127 2008-07-30 Joey Ye <joey.ye@intel.com>
128 H.J. Lu <hongjiu.lu@intel.com>
130 * builtins.c (expand_builtin_setjmp_receiver): Replace
131 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
132 (expand_builtin_apply_args_1): Likewise.
133 (expand_builtin_longjmp): Need DRAP for stack alignment.
134 (expand_builtin_apply): Likewise.
136 * caller-save.c (setup_save_areas): Call assign_stack_local_1
137 instead of assign_stack_local to allow alignment reduction.
139 * calls.c (emit_call_1): Need DRAP for stack alignment if
141 (expand_call): Replace virtual_incoming_args_rtx with
142 crtl->args.internal_arg_pointer.
143 * stmt.c (expand_nl_goto_receiver): Likewise.
145 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
146 alignment and store to stack_alignment_estimated and
147 max_used_stack_slot_alignment.
148 (expand_one_var): Likewise.
149 (expand_stack_alignment): New function.
150 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
151 and stack_alignment_estimated fields in rtl_data. Call
152 expand_stack_alignment at end.
154 * defaults.h (INCOMING_STACK_BOUNDARY): New.
155 (MAX_STACK_ALIGNMENT): Likewise.
156 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
157 (SUPPORTS_STACK_ALIGNMENT): Likewise.
159 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
160 stack alignment when generating virtual registers.
162 * function.c (assign_stack_local): Renamed to ...
163 (assign_stack_local_1): This. Add a parameter to indicate
164 if it is OK to reduce alignment.
165 (assign_stack_local): Use it.
166 (instantiate_new_reg): Instantiate virtual incoming args rtx
167 to vDRAP if stack realignment and DRAP is needed.
168 (assign_parms): Collect parameter/return type alignment and
169 contribute to stack_alignment_estimated.
170 (locate_and_pad_parm): Likewise.
171 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
172 with crtl->args.internal_arg_pointer.
174 * function.h (rtl_data): Add new field drap_reg,
175 max_used_stack_slot_alignment, stack_alignment_estimated,
176 stack_realign_needed, need_drap, stack_realign_processed and
177 stack_realign_finalized.
178 (stack_realign_fp): New macro.
179 (stack_realign_drap): Likewise.
181 * global.c (compute_regsets): Frame pointer is needed when
182 stack is realigned. Can eliminate frame pointer when stack is
183 realigned and dynamic realigned argument pointer isn't used.
185 * reload1.c (update_eliminables): Frame pointer is needed
186 when stack is realigned.
187 (init_elim_table): Can eliminate frame pointer when stack is
188 realigned and dynamic realigned argument pointer isn't used.
190 * rtl.h (assign_stack_local_1): Declare new funtion.
192 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
193 (TARGET_GET_DRAP_RTX): Likewise.
194 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
197 * target.h (gcc_target): Add update_stack_boundary and
200 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
201 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
203 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
204 H.J. Lu <hongjiu.lu@intel.com>
206 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
207 vdrap_reg, stack_realign and drap_reg_saved.
208 (add_cfi): Don't allow redefining CFA when DRAP is used.
209 (reg_save): Handle stack alignment.
210 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
211 alignment. Don't generate DWARF information for (set fp sp)
213 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
215 (int_loc_descriptor): Move prototype forward. Also define if
216 DWARF2_UNWIND_INFO is true.
217 (output_cfa_loc): Handle DW_CFA_expression.
218 (build_cfa_aligned_loc): New.
219 (based_loc_descr): Update assert for stack realign. For local
220 variables, use sp+offset when stack is aligned without drap and
221 fp+offset when stack is aligned with drap. For arguments, use
222 cfa+offset when drap is used to align stack.
224 2008-07-30 Joey Ye <joey.ye@intel.com>
225 H.J. Lu <hongjiu.lu@intel.com>
227 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
229 (ix86_gen_andsp): New.
230 (ix86_user_incoming_stack_boundary): Likewise.
231 (ix86_default_incoming_stack_boundary): Likewise.
232 (ix86_incoming_stack_boundary): Likewise.
233 (ix86_can_eliminate): Likewise.
234 (find_drap_reg): Likewise.
235 (ix86_update_stack_boundary): Likewise.
236 (ix86_get_drap_rtx): Likewise.
237 (ix86_finalize_stack_realign_flags): Likewise.
238 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
239 (TARGET_GET_DRAP_RTX): Likewise.
240 (override_options): Overide option value for new options.
241 (ix86_function_ok_for_sibcall): Remove check for
242 force_align_arg_pointer.
243 (ix86_handle_cconv_attribute): Likewise.
244 (ix86_function_regparm): Likewise.
245 (setup_incoming_varargs_64): Don't set stack_alignment_needed
247 (ix86_va_start): Replace virtual_incoming_args_rtx with
248 crtl->args.internal_arg_pointer.
249 (ix86_select_alt_pic_regnum): Check DRAP register.
250 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
251 (ix86_compute_frame_layout): Compute frame layout wrt stack
253 (ix86_internal_arg_pointer): Just return
254 virtual_incoming_args_rtx.
255 (ix86_expand_prologue): Decide if stack realignment is needed
256 and generate prologue code accordingly.
257 (ix86_expand_epilogue): Generate epilogue code wrt stack
258 realignment is really needed or not.
260 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
261 (ABI_STACK_BOUNDARY): Likewise.
262 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
263 (STACK_REALIGN_DEFAULT): Likewise.
264 (INCOMING_STACK_BOUNDARY): Likewise.
265 (MAX_STACK_ALIGNMENT): Likewise.
266 (ix86_incoming_stack_boundary): Likewise.
267 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
268 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
269 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
270 (machine_function): Remove force_align_arg_pointer.
272 * config/i386/i386.md (BX_REG): New.
275 * config/i386/i386.opt (mforce_drap): New.
276 (mincoming-stack-boundary): Likewise.
277 (mstackrealign): Add Init(-1).
279 * config/i386/i386-protos.h (ix86_can_eliminate): New
281 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
283 * doc/extend.texi: Update force_align_arg_pointer.
285 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
288 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
289 (INCOMING_STACK_BOUNDARY): Likewise.
290 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
291 (TARGET_GET_DRAP_RTX): Likewise.
293 2008-07-30 Andreas Schwab <schwab@suse.de>
295 PR rtl-optimization/36929
296 * dse.c (replace_inc_dec): Use emit_insn_before instead of
297 add_insn_before and fix argument order.
298 (replace_inc_dec_mem): Handle NULL rtx.
300 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
302 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
304 (arm_compute_initial_elimination_offset): Use it.
305 (arm_compute_save_reg_mask): Include static chain save slot when
306 calculating alignment.
307 (arm_get_frame_offsets): Ditto.
308 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
309 that we can use to decrement the stack when the stack decrement
310 could be too big for an immediate value in a single insn.
311 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
313 2008-07-30 Richard Guenther <rguenther@suse.de>
315 PR tree-optimization/36967
316 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
317 Release defs of statements we remove.
319 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
321 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
322 instead of NULL_RTVEC.
324 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
328 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
331 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
333 * final.c (call_from_call_insn): New.
334 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
336 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
338 * configure.ac: Substitute ADA_CFLAGS.
339 * configure: Regenerate.
340 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
341 * Makefile.in: Remove mention of X_* variables.
342 * config/pa/x-ada-hpux10: Remove.
343 * config/pa/x-ada: Remove.
345 * doc/fragments.texi: Update.
347 2008-07-30 Olivier Hainque <hainque@adacore.com>
349 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
350 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
351 __dso_handle explicitly here.
353 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
356 * c-typeck.c (build_binary_op): Encapsulate code into...
357 * c-common.c (shorten_binary_op): ...this new function.
358 (conversion_warning): Use the new function. Handle non-negative
359 constant in bitwise-and.
360 * c-common.h (shorten_binary_op): Declare.
362 2008-07-30 Olivier Hainque <hainque@adacore.com>
364 * scan.c (make_sstring_space): Add explicit conversions of
365 allocator's return value.
366 * fix-header.c (recognized_function): Likewise.
368 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
370 * doc/cpp.texi: Update to GFDL 1.2.
371 * doc/gcc.texi: Do not list GPL as Invariant Section.
372 * doc/gccint.texi: Likewise. Update copyright years.
373 * doc/install.texi: Update copyright years.
375 2008-07-30 Alan Modra <amodra@bigpond.net.au>
378 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
379 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
381 2008-07-29 Jan Hubicka <jh@suse.cz>
383 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
384 (grokdeclarator): Likewise.
385 * langhooks.c (lhd_warn_unused_global_decl): Use
386 DECL_DECLARED_INLINE_P.
387 * print-tree.c (print_node): Remove DECL_INLINE check.
389 2008-07-29 Richard Guenther <rguenther@suse.de>
391 PR tree-optimization/36945
392 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
393 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
394 Record invariant addresses un-decomposed.
395 (copy_reference_ops_from_call): Record reference call
396 arguments properly. Simplify.
397 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
398 helper split out from ...
399 (create_component_ref_by_pieces): ... here. Simplify.
400 Prepare for recursive invocation for call arguments.
401 (create_expression_by_pieces): Adjust call to
402 create_component_ref_by_pieces.
403 (compute_avail): Process operand 2 of reference ops.
405 2008-07-29 Richard Guenther <rguenther@suse.de>
407 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
410 2008-07-29 Jakub Jelinek <jakub@redhat.com>
412 * c-format.c (check_format_types): Revert unwanted checkin.
414 2008-07-29 Jan Hubicka <jh@suse.cz>
416 * flags.h (flag_really_no_inline): Remove.
417 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
418 * toplev.c (flag_really_no_inline): Remove.
419 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
420 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
421 (cgraph_decide_inlining_incrementally): Likewise.
422 (compute_inline_parameters): Likewise.
423 * opts.c (decode_options): Simplify.
424 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
425 * common.opt (finline): Initialize to 1.
426 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
428 2008-07-29 Jan Hubicka <jh@suse.cz>
430 * predict.c (always_optimize_for_size_p): New function.
431 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
432 optimize_edge_for_size_p, optimize_edge_for_speed_p,
433 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
435 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
436 * function.c (prepare_function_start): Set default profile.
437 * function.h (rtl_data): Add maybe_hot_insn_p.
438 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
439 (construct_exit_block): Likewise.
440 (tree_expand_cfg): Likewise.
442 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
443 optimize_edge_for_size_p, optimize_edge_for_speed_p,
444 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
445 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
448 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
451 * c-decl.c (merge_decls): Merge USED flags.
453 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
455 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
456 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
457 next_stack, lab_false and lab_over trees.
459 2008-07-28 Richard Guenther <rguenther@suse.de>
461 PR tree-optimization/36957
462 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
463 (useless_type_conversion_p): Remove.
464 (types_compatible_p): Remove.
465 * gimple.h (tree_ssa_useless_type_conversion): Declare.
466 (useless_type_conversion_p): Declare.
467 (types_compatible_p): Declare.
468 (gimple_expr_type): Return the base type only if it is
469 trivially convertible to the subtype.
471 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
473 * configure.ac: Use the m4_do macro to concatenate the warnings into
474 one string in ACX_PROG_CC_WARNING_OPTS,
475 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
476 * configure: Regenerate.
478 2008-07-28 Richard Guenther <rguenther@suse.de>
480 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
481 (insert_fake_stores): Remove.
482 (realify_fake_stores): Likewise.
483 (execute_pre): Remove dead code.
484 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
486 (find_func_aliases): Deal with it here instead.
487 Re-enable gcc_unreachable call.
489 2008-07-28 Richard Guenther <rguenther@suse.de>
491 Merge from gimple-tuples-branch.
493 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
494 * gimple.def: New file.
495 * gsstruct.def: Likewise.
496 * gimple-iterator.c: Likewise.
497 * gimple-pretty-print.c: Likewise.
498 * tree-gimple.c: Removed. Merged into ...
499 * gimple.c: ... here. New file.
500 * tree-gimple.h: Removed. Merged into ...
501 * gimple.h: ... here. New file.
503 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
504 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
505 --enable-checking=gimple flag.
506 * config.in: Likewise.
507 * configure: Regenerated.
509 * tree-ssa-operands.h: Tuplified.
510 * tree-vrp.c: Likewise.
511 * tree-loop-linear.c: Likewise.
512 * tree-into-ssa.c: Likewise.
513 * tree-ssa-loop-im.c: Likewise.
514 * tree-dump.c: Likewise.
515 * tree-complex.c: Likewise.
516 * cgraphbuild.c: Likewise.
517 * tree-ssa-threadupdate.c: Likewise.
518 * tree-ssa-loop-niter.c: Likewise.
519 * tree-pretty-print.c: Likewise.
520 * tracer.c: Likewise.
521 * gengtype.c: Likewise.
522 * tree-loop-distribution.c: Likewise.
523 * tree-ssa-loop-unswitch.c: Likewise.
524 * cgraph.c: Likewise.
525 * cgraph.h: Likewise.
526 * tree-ssa-loop-manip.c: Likewise.
527 * value-prof.c: Likewise.
528 * tree-ssa-loop-ch.c: Likewise.
529 * tree-tailcall.c: Likewise.
530 * value-prof.h: Likewise.
533 * tree-pass.h: Likewise.
534 * ipa-cp.c: Likewise.
535 * tree-scalar-evolution.c: Likewise.
536 * tree-scalar-evolution.h: Likewise.
537 * target.h: Likewise.
538 * lambda-mat.c: Likewise.
539 * tree-phinodes.c: Likewise.
540 * diagnostic.h: Likewise.
541 * builtins.c: Likewise.
542 * tree-ssa-alias-warnings.c: Likewise.
543 * cfghooks.c: Likewise.
544 * fold-const.c: Likewise.
545 * cfghooks.h: Likewise.
546 * omp-low.c: Likewise.
547 * tree-ssa-dse.c: Likewise.
548 * ipa-reference.c: Likewise.
549 * tree-ssa-uncprop.c: Likewise.
550 * toplev.c: Likewise.
551 * tree-gimple.c: Likewise.
552 * tree-gimple.h: Likewise.
553 * tree-chrec.c: Likewise.
554 * tree-chrec.h: Likewise.
555 * tree-ssa-sccvn.c: Likewise.
556 * tree-ssa-sccvn.h: Likewise.
557 * cgraphunit.c: Likewise.
558 * tree-ssa-copyrename.c: Likewise.
559 * tree-ssa-ccp.c: Likewise.
560 * tree-ssa-loop-ivopts.c: Likewise.
561 * tree-nomudflap.c: Likewise.
562 * tree-call-cdce.c: Likewise.
563 * ipa-pure-const.c: Likewise.
564 * c-format.c: Likewise.
565 * tree-stdarg.c: Likewise.
566 * tree-ssa-math-opts.c: Likewise.
567 * tree-ssa-dom.c: Likewise.
568 * tree-nrv.c: Likewise.
569 * tree-ssa-propagate.c: Likewise.
570 * ipa-utils.c: Likewise.
571 * tree-ssa-propagate.h: Likewise.
572 * tree-ssa-alias.c: Likewise.
573 * gimple-low.c: Likewise.
574 * tree-ssa-sink.c: Likewise.
575 * ipa-inline.c: Likewise.
576 * c-semantics.c: Likewise.
577 * dwarf2out.c: Likewise.
579 * tree-ssa-loop-ivcanon.c: Likewise.
580 * predict.c: Likewise.
581 * tree-ssa-loop.c: Likewise.
582 * tree-parloops.c: Likewise.
583 * tree-ssa-address.c: Likewise.
584 * tree-ssa-ifcombine.c: Likewise.
585 * matrix-reorg.c: Likewise.
586 * c-decl.c: Likewise.
587 * tree-eh.c: Likewise.
588 * c-pretty-print.c: Likewise.
589 * lambda-trans.c: Likewise.
590 * function.c: Likewise.
591 * langhooks.c: Likewise.
592 * ebitmap.h: Likewise.
593 * tree-vectorizer.c: Likewise.
594 * function.h: Likewise.
595 * langhooks.h: Likewise.
596 * tree-vectorizer.h: Likewise.
597 * ipa-type-escape.c: Likewise.
598 * ipa-type-escape.h: Likewise.
599 * domwalk.c: Likewise.
600 * tree-if-conv.c: Likewise.
601 * profile.c: Likewise.
602 * domwalk.h: Likewise.
603 * tree-data-ref.c: Likewise.
604 * tree-data-ref.h: Likewise.
605 * tree-flow-inline.h: Likewise.
606 * tree-affine.c: Likewise.
607 * tree-vect-analyze.c: Likewise.
608 * c-typeck.c: Likewise.
609 * gimplify.c: Likewise.
610 * coretypes.h: Likewise.
611 * tree-ssa-phiopt.c: Likewise.
613 * tree-ssa-coalesce.c: Likewise.
614 * tree.def: Likewise.
615 * tree-dfa.c: Likewise.
616 * except.c: Likewise.
617 * except.h: Likewise.
618 * cfgexpand.c: Likewise.
619 * tree-cfgcleanup.c: Likewise.
620 * tree-ssa-pre.c: Likewise.
621 * tree-ssa-live.c: Likewise.
622 * tree-sra.c: Likewise.
623 * tree-ssa-live.h: Likewise.
624 * tree-predcom.c: Likewise.
625 * lambda.h: Likewise.
626 * tree-mudflap.c: Likewise.
627 * ipa-prop.c: Likewise.
628 * print-tree.c: Likewise.
629 * tree-ssa-copy.c: Likewise.
630 * ipa-prop.h: Likewise.
631 * tree-ssa-forwprop.c: Likewise.
632 * ggc-page.c: Likewise.
634 * tree-ssa-dce.c: Likewise.
635 * tree-vect-patterns.c: Likewise.
636 * tree-ssa-ter.c: Likewise.
637 * tree-nested.c: Likewise.
638 * tree-ssa.c: Likewise.
639 * lambda-code.c: Likewise.
640 * tree-ssa-loop-prefetch.c: Likewise.
641 * tree-inline.c: Likewise.
642 * tree-inline.h: Likewise.
643 * tree-iterator.c: Likewise.
644 * tree-optimize.c: Likewise.
645 * tree-ssa-phiprop.c: Likewise.
646 * tree-vect-transform.c: Likewise.
647 * tree-object-size.c: Likewise.
648 * tree-outof-ssa.c: Likewise.
649 * cfgloop.c: Likewise.
650 * system.h: Likewise.
651 * tree-profile.c: Likewise.
652 * cfgloop.h: Likewise.
653 * c-gimplify.c: Likewise.
654 * c-common.c: Likewise.
655 * tree-vect-generic.c: Likewise.
656 * tree-flow.h: Likewise.
657 * c-common.h: Likewise.
658 * basic-block.h: Likewise.
659 * tree-ssa-structalias.c: Likewise.
660 * tree-switch-conversion.c: Likewise.
661 * tree-ssa-structalias.h: Likewise.
662 * tree-cfg.c: Likewise.
663 * passes.c: Likewise.
664 * ipa-struct-reorg.c: Likewise.
665 * ipa-struct-reorg.h: Likewise.
666 * tree-ssa-reassoc.c: Likewise.
667 * cfgrtl.c: Likewise.
668 * varpool.c: Likewise.
670 * tree-ssanames.c: Likewise.
671 * tree-ssa-threadedge.c: Likewise.
672 * langhooks-def.h: Likewise.
673 * tree-ssa-operands.c: Likewise.
674 * config/alpha/alpha.c: Likewise.
675 * config/frv/frv.c: Likewise.
676 * config/s390/s390.c: Likewise.
677 * config/m32c/m32c.c: Likewise.
678 * config/m32c/m32c-protos.h: Likewise.
679 * config/spu/spu.c: Likewise.
680 * config/sparc/sparc.c: Likewise.
681 * config/i386/i386.c: Likewise.
682 * config/sh/sh.c: Likewise.
683 * config/xtensa/xtensa.c: Likewise.
684 * config/stormy16/stormy16.c: Likewise.
685 * config/ia64/ia64.c: Likewise.
686 * config/rs6000/rs6000.c: Likewise.
687 * config/pa/pa.c: Likewise.
688 * config/mips/mips.c: Likewise.
690 2008-07-28 Simon Baldwin <simonb@google.com>
692 * c-pragma.c (handle_pragma_message): New function.
693 (init_pragma): Register handle_pragma_message.
694 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
697 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
699 PR tree-optimization/35252
700 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
701 REALPART_EXPR to be considered as same load operation.
703 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
705 PR tree-optimization/36830
706 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
707 (expressions_equal_p): Return false if only one operand is null.
709 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
711 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
712 version requirements.
714 2008-07-26 Olivier Hainque <hainque@adacore.com>
716 * collect2.c (symkind): New enum. Symbol kinds we care about.
717 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
718 code and head comment accordingly.
719 (scan_prog_file): Use symkind names instead of bare integers.
721 2008-07-25 Jan Hubicka <jh@suse.cz>
723 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
724 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
725 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
726 * dojump.c (clear_pending_stack_adjust): Likewise.
727 * print-tree.c (print_node): Ignore DECL_INLINE.
728 * tree-inline.c (inlinable_function_p): Likewise.
730 2008-07-25 Michael Meissner <gnu@the-meissners.org>
732 * doc/extend.texi (hot attribute): Document that the hot attribute
733 turns on -O3 for some ports.
734 (cold attribute): Document that the cold attribute turns on -Os
737 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
738 reflect function specific option support.
740 * target.h (struct target_option_hooks): Add fields to say whether
741 the cold attribute implies -Os and the hot attribute implies -O3.
743 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
744 By default, do not turn on -Os for cold functions.
745 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
746 not turn on -O3 for hot functions.
748 * c-common.c (handle_hot_attribute): Use target hook to determine
749 if hot functions should enable -O3.
750 (handle_cold_attribute): Use target hook to determine if cold
751 functions should enable -Os.
753 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
754 (override_options): Move disable scheduling to
755 optimization_options.
756 (optimization_options): Disable scheduling here, not
758 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
759 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
761 * config/ia64/ia64.c (ia64_override_options): Move setting
762 scheduling flags to ia64_optimization_options.
763 (ia64_optimization_options): Disable scheduling options here, and
764 not in ia64_override_options.
765 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
766 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
768 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
771 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
773 2008-07-25 Martin Jambor <mjambor@suse.cz>
775 PR tree-optimization/36926
776 * ipa-prop.c (ipa_analyze_call_uses): Call
777 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
779 2008-07-25 Joseph Myers <joseph@codesourcery.com>
781 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
782 movv2si_internal): Add mem = reg alternative.
784 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
787 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
788 DEFAULT_PCC_STRUCT_RETURN to 127.
790 2008-07-24 Jan Hubicka <jh@suse.cz>
792 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
793 (build_cgraph_edges): Likewise.
794 * cgraph.c (cgraph_node): Do not update assembler hash.
795 (cgraph_remove_node): Drop non-unit-at-a-time code.
796 * tree-pass.h (pass_O0_always_inline): Remove.
797 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
798 * toplev.c (process_options): Flag unit-at-a-time does not imply
800 * cgraphunit.c: Update comments.
801 (decide_is_function_needed): Drop non-unit-at-a-time mode.
802 (cgraph_assemble_pending_functions): Remove.
803 (cgraph_reset_node): Drop non-unit-at-a-time code.
804 (cgraph_finalize_function): Likewise.
805 (cgraph_analyze_function): Likewise.
806 (cgraph_finalize_compilation_unit): Likewise.
807 (cgraph_expand_function): Likewise.
808 (cgraph_optimize): Likesise.
809 (save_inline_function_body): Likewise.
810 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
811 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
812 * ipa-inline.c: Update comments.
813 (enum inlining_mode): remove INLINE_SPEED.
814 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
815 (cgraph_mark_inline_edge): Likewise.
816 (try_inline): Likewise.
817 (cgraph_decide_inlining_incrementally): Likewise.
818 (cgraph_gate_inlining): Remove.
819 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
820 (cgraph_gate_early_inlining): Likewise.
821 (gate_inline_passes): Remove.
822 (pass_inline_parameters, pass_ipa_inline): Remove gates.
823 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
824 pass_O0_always_inline): Remove.
825 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
826 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
827 * opts.c (no_unit_at_a_time_default): Remove.
828 (decode_options): Remove flag_unit_at_a_time reset and warning.
829 * opts.h (no_unit_at_a_time_default): Remove.
830 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
831 early in GNU dialect.
832 (merge_decls): Update comment; drop unit-at-a-time check.
833 (finish_decl): Likewise.
834 (grok_declaration): Remove flag_inline_trees code.
835 (finish_functions): Return on function returning non-void on all
837 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
838 * cfgexpand.c (expand_one_static_var): Remove.
839 (expand_one_var): Remove expand_one_static_var call.
840 (expand_used_vars_for_block): Remove flag_unit_a_time check.
841 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
842 and flag_unit_at_a-time compatibility checks.
843 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
844 * tree-inline.c (flag_inline_trees): Remove.
845 (inlinable_function_p): Don't check it.
846 (expand_call_inline): Remove non-unit-at-a-time code.
847 * tree-inline.h (flag_inline_trees): Remove.
848 * tree-optimize.c (execute_early_local_optimizations): Remove
849 unit-at-a-time checks.
850 (tree_rest_of_compilation): Likewise.
851 * combine.c (setup_incoming_promotions): Likewise.
852 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
853 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
854 * passes.c (pass_inline_parameters): Update comments; remove
855 O0_alwaysinline pass.
856 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
857 (execute_one_pass): Likewise.
858 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
859 (ix86_function_sseregparm): Likewise.
860 * arm.c (arm_function_in_section_p): Likewise.
861 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
862 * varpool.c: Update comments.
863 (decide_is_variable_needed): Remove unit-at-a-time checks.
864 (varpool_finalize_decl): Likewise.
866 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
868 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
870 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
873 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
875 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
876 imp symbol extension.
878 2008-07-23 Ian Lance Taylor <iant@google.com>
880 * tree-vrp.c (infer_value_range): Ignore asm statements when
881 looking for memory accesses for -fdelete-null-pointer-checks.
883 2008-07-24 Ben Elliston <bje@au.ibm.com>
885 * config/spu/spu-c.c (__vector_keyword): New variable.
886 (vector_keyword): Likewise.
887 (spu_categorize_keyword): New function.
888 (spu_macro_to_expand): Likewise.
889 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
890 compiling an ISO C dialect.
892 2008-07-24 Ben Elliston <bje@au.ibm.com>
894 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
897 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
899 * configure: Regenerate.
900 * configure.ac: Require texinfo 4.7.
901 * doc/install.texi: Document texinfo 4.7 requirement.
903 2008-07-23 Martin Jambor <mjambor@suse.cz>
905 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
906 rather than for DECL_SAVED_TREE.
907 * ipa-prop.c: Include diagnostic.h.
908 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
910 (ipa_detect_param_modifications): Function rewritten from scratch.
911 (ipa_compute_jump_functions): Changed accesses to modification flags.
912 (ipa_free_node_params_substructures): Update flags destruction.
913 (ipa_node_duplication_hook): Update flags duplication.
914 (ipa_print_all_params_modified): Updated flag access.
915 * ipa-prop.h (struct ipa_param_flags): New structure.
916 (struct ipa_node_params): New field modification_analysis_done,
917 modified_flags changed into param_flags.
918 (ipa_is_ith_param_modified): Changed to use new flags.
919 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
921 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
922 ipa-cp.c and split into two functions.
923 (ipa_print_node_jump_functions): New function.
924 (compute_scalar_jump_functions): New function.
925 (type_like_member_ptr_p): New function.
926 (compute_pass_through_member_ptrs): New function.
927 (fill_member_ptr_cst_jump_function): New function.
928 (determine_cst_member_ptr): New function.
929 (compute_cst_member_ptr_arguments): New function.
930 (ipa_compute_jump_functions): Complete rewrite.
931 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
932 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
933 (struct ipa_member_ptr_cst): New structure.
934 (union jump_func_value): New field member_cst.
935 * ipa-cp.c (ipcp_lat_is_insertable): New function.
936 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
938 (ipcp_print_all_lattices): Slight fprintf rearrangement.
939 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
940 instead of ipcp_print_all_jump_functions.
941 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
942 only for replacable scalars.
944 * doc/invoke.texi (Optimize options): Add description of
946 * common.opt (flag_indirect_inlining): New flag.
947 * opts.c (decode_options): Set flag_indirect_inlining when
950 * ipa-inline.c: Include ipa-prop.h.
951 (inline_indirect_intraprocedural_analysis): New function.
952 (inline_generate_summary): Allocate parameter and argument info
953 structures, call inline_indirect_intraprocedural_analysis on each
954 node when doing indirect inlining and deallocate indirect inlining
955 data structures in the end.
956 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
957 (free_all_ipa_structures_after_iinln): New function.
958 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
960 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
962 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
963 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
964 of computing the frequency separately.
965 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
966 of computing the frequency separately.
967 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
968 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
969 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
970 (ipa_get_stmt_member_ptr_load_param): New function.
971 (ipa_is_ssa_with_stmt_def): New function.
972 (ipa_note_param_call): New function.
973 (ipa_analyze_call_uses): New function.
974 (ipa_analyze_stmt_uses): New function.
975 (ipa_analyze_params_uses): New function.
976 (ipa_free_node_params_substructures): Also free the param_calls linked
978 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
979 (ipa_print_node_param_flags): New function.
980 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
981 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
982 * ipa-prop.h (struct ipa_param_flags): New field called.
983 (struct ipa_param_call_note): New structure.
984 (struct ipa_node_params): New fields param_calls and
986 (ipa_is_ith_param_called): New function.
987 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
988 ipa_analyze_params_uses and dump parameter flags.
990 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
991 ipa_propagate_indirect_call_infos if performing indirect inlining,
992 pass a new parameter new_edges to it.
993 (add_new_edges_to_heap): New fucntion.
994 (cgraph_decide_inlining_of_small_functions): New vector
995 new_indirect_edges for newly found indirect edges , call
996 ipa_propagate_indirect_call_infos after inlining.
997 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
998 inlining if performing indirect inlining. Call
999 free_all_ipa_structures_after_iinln when doing so too.
1000 (inline_generate_summary): Do not call
1001 free_all_ipa_structures_after_iinln here.
1002 * ipa-prop.c (update_jump_functions_after_inlining): New function.
1003 (print_edge_addition_message): New function.
1004 (update_call_notes_after_inlining): New function.
1005 (propagate_info_to_inlined_callees): New function.
1006 (ipa_propagate_indirect_call_infos): New function.
1007 * ipa-prop.h: Include cgraph.h
1008 (struct ipa_param_call_note): Fields reordered, new field processed.
1009 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1011 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1012 rediscovered call statements.
1013 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1014 (dump_cgraph_node): Dump also the indirect_call flag.
1015 (cgraph_clone_edge): Copy also the indirect_call flag.
1016 * tree-inline.c (copy_bb): Do not check for fndecls from call
1017 expressions, check for edge availability when moving clones.
1018 (get_indirect_callee_fndecl): New function.
1019 (expand_call_inline): If callee declaration is not apprent from
1020 the statement, try calling get_indirect_callee_fndecl. Do not
1021 issue warnings or call sorry when not inlinings an indirect edge.
1022 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1024 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1025 bit more frandly to matching.
1026 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1027 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1028 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1030 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1033 * opth-gen.awk: Suppress function specific features when building
1035 * optc-gen.awk: Ditto.
1037 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1040 * diagnostic.c (pedwarn): Add opt parameter.
1042 * c-tree.h (pedwarn_init): Add opt parameter.
1043 (pedwarn_c90): Likewise.
1044 (pedwarn_c99): Likewise.
1045 * c-errors.c (pedwarn_c99): Likewise.
1046 (pedwarn_c90): Likewise.
1047 * toplev.h (pedwarn): Update declaration.
1048 (pedwarn0): Declare.
1049 * c-lex.c: All calls to pedwarn changed.
1050 * builtins.c: All calls to pedwarn changed.
1051 * toplev.c: All calls to pedwarn changed.
1052 * c-decl.c: All calls to pedwarn changed.
1053 * c-typeck.c: All calls to pedwarn changed.
1054 * c-common.c: All calls to pedwarn changed.
1055 * c-parser.c: All calls to pedwarn changed.
1057 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1058 Karthik Kumar <karthikkumar@gmail.com>
1060 * attribs.c (file scope): Include c-common.h.
1061 (decl_attributes): Add support for #pragma GCC optimize and
1064 * targhooks.c (default_can_inline_p): New function that is the
1065 default for the TARGET_CAN_INLINE_P target hook.
1067 * targhooks.h (default_can_inline_p): Add declaration.
1069 * tree.c (cl_optimization_node): New static tree for building
1070 OPTIMIZATION_NODE tree.
1071 (cl_target_option_node): New static tree for building
1072 TARGET_OPTION_NODE tree.
1073 (cl_option_hash_table): New hash table for hashing
1074 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1075 (cl_option_hash_hash): New function to provide the hash value for
1076 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1077 (cl_option_hash_eq): New function to provide an equality test for
1078 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1079 (tree_code_size): Add support for OPTIMIZATION_NODE and
1080 TARGET_OPTION_NODE trees.
1081 (tree_code_structure): Add support for OPTIMIZATION_NODE and
1082 TARGET_OPTION_NODE trees.
1083 (build_optimization_node): Build a tree that has all of the
1084 current optimization options.
1085 (build_target_option_node): Build a tree that has the target
1086 options that might be changed on a per function basis.
1088 * tree.h (file scope): Include options.h.
1089 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1090 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1091 (TREE_OPTIMIZATION): Ditto.
1092 (TREE_TARGET_SPECIFIC): Ditto.
1093 (struct tree_function_decl): Add fields for remembering the
1094 current optimization options and target specific options.
1095 (struct tree_optimization_option): New tree variant that remembers
1096 the optimization options.
1097 (struct tree_target_option): New tree variant that remembers the
1098 target specific flags that might change for compiling a particular
1100 (union tree_node): Include tree_optimization_option and
1101 tree_target_option fields.
1102 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1103 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1104 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1105 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1106 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1107 optimization and target options.
1108 (optimization_default_node): New macro to refer to global_trees
1110 (optimization_current_node): Ditto.
1111 (optimization_cold_node): Ditto.
1112 (optimization_hot_node): Ditto.
1113 (target_option_default_node): Ditto.
1114 (target_option_current_node): Ditto.
1115 (current_option_pragma): Ditto.
1116 (current_optimize_pragma): Ditto.
1118 * target.h (struct gcc_target): Add valid_option_attribute_p,
1119 target_option_save, target_option_restore, target_option_print,
1120 target_option_pragma_parse, and can_inline_p hooks.
1122 * toplev.h (parse_optimize_options): Add declaration.
1123 (fast_math_flags_struct_set_p): Ditto.
1125 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1126 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1129 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1130 tree_can_inline_p hook to see if one function can inline another.
1131 (cgraph_decide_inlining): Ditto.
1132 (cgraph_decide_inlining_incrementally): Ditto.
1134 * opts.c (decode_options): Add support for running multiple times
1135 to allow functions with different target or optimization options
1136 than was specified on the command line.
1137 (fast_math_flags_struct_set_p): New function that is similar to
1138 fast_math_flags_set_p, except it uses the values in the
1139 cl_optimization structure instead of global variables.
1141 * optc-gen.awk: Add support for TargetSave to allow a back end to
1142 declare new fields that need to be saved when using function
1143 specific options. Include flags.h and target.h in the options.c
1144 source. Add support for Save to indicate which options can be set
1145 for individual functions. Generate cl_optimize_save,
1146 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1147 cl_target_option_restore, cl_target_option_print functions to
1148 allow functions to use different optimization or target options.
1150 * opt-functions.awk (var_type_struct): Return the type used for
1151 storing the field in a structure.
1153 * opth-gen.awk: Add support for TargetSave to allow a back end to
1154 declare new fields that need to be saved when using function
1155 specific options. Add support for Save to indicate which options
1156 can be set for individual functions. Only generate one extern for
1157 Mask fields. Generate cl_optimization and cl_target_option
1158 structures to remember optimization and target options.
1160 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1161 collecting new tree nodes.
1162 (TS_TARGET_OPTION): Ditto.
1164 * c-decl.c (merge_decls): Merge function specific target and
1165 optimization options.
1167 * function.c (invoke_set_current_function_hook): If the function
1168 uses different optimization options, change the global variables
1171 * coretypes.h (struct cl_optimization): Add forward reference.
1172 (struct cl_target_option): Ditto.
1174 * c-pragma.c (option_stack): New static vector to remember the
1175 current #pragma GCC option stack.
1176 (handle_pragma_option): New function to support #pragma GCC option
1177 to change target options.
1178 (optimize_stack): New static vector to remember the current
1179 #pragma GCC optimize stack.
1180 (handle_pragma_optimize): New function to support #pragma GCC
1181 optimize to change optimization options.
1182 (init_pragma): Add support for #pragma GCC optimize and #pragma
1185 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1186 optimization options.
1187 (TARGET_OPTION_NODE): New tree code for remembering certain target
1190 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1191 TARGET_OPTION_NODE trees.
1193 * common.opt (-O): Add Optimization flag.
1195 (-fmath-errno): Ditto.
1196 (-falign-functions): Add UInteger flag to make sure flag gets full
1197 int in cl_optimization structure.
1198 (-falign-jumps): Ditto.
1199 (-falign-labels): Ditto.
1200 (-falign-loops): Ditto.
1201 (-fsched-stalled-insns): Ditto.
1202 (-fsched-stalled-insns-dep): Ditto.
1204 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1206 (TARGET_OPTION_SAVE): Ditto.
1207 (TARGET_OPTION_RESTORE): Ditto.
1208 (TARGET_OPTION_PRINT): Ditto.
1209 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1210 (TARGET_CAN_INLINE_P): Ditto.
1211 (TARGET_INITIALIZER): Add new hooks.
1213 * tree-inline.c (tree_can_inline_p): New function to determine
1214 whether one function can inline another. Check if the functions
1215 use compatible optimization options, and also call the backend
1218 * tree-inline.h (tree_can_inline_p): Add declaration.
1220 * c-common.c (c_common_attribute): Add support for option and
1221 optimize attributes.
1222 (handle_option_attribute): Add support for the option attribute to
1223 allow the user to specify different target options for compiling a
1225 (handle_optimize_attribute): Add support for the optimize
1226 attribute to allow the user to specify different optimization
1227 options for compiling a specific function.
1228 (handle_hot_attribute): Turn on -O3 optimization for this one
1229 function if it isn't the default optimization level.
1230 (handle_cold_attribute): Turn on -Os optimization for this one
1231 function if it insn't the default optimization.
1232 (const_char_p): New const char * typedef.
1233 (optimize_args): New static vector to remember the optimization
1235 (parse_optimize_options): New function to set up the optimization
1236 arguments from either the optimize attribute or #pragma GCC
1239 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1240 (builtin_define_std): Ditto.
1242 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1243 Add t-i386 Makefile fragment to add i386-c.o and i386.o
1245 (x86_64-*-*): Ditto.
1247 * Makefile.in (TREE_H): Add options.h.
1248 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1250 * doc/extend.texi (option attribute): Document new attribute.
1251 (optimize attribute): Ditto.
1252 (hot attribute): Document hot attribute sets -O3.
1253 (cold attribute): Document cold attribute sets -Os.
1254 (#pragma GCC option): Document new pragma.
1255 (#pragma GCC optimize): Ditto.
1257 * doc/options.texi (TargetSave): Document TargetSave syntax.
1258 (UInteger): Document UInteger must be used for certain flags.
1259 (Save): Document Save option to create target specific options
1260 that can be saved/restored on a function specific context.
1262 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
1264 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1266 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
1268 (TARGET_OPTION_SAVE): Ditto.
1269 (TARGET_OPTION_RESTORE): Ditto.
1270 (TARGET_OPTION_PRINT): Ditto.
1271 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1272 (TARGET_CAN_INLINE_P): Ditto.
1274 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1276 (-mfpmath=both): Ditto.
1278 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1279 Karthik Kumar <karthikkumar@gmail.com>
1281 * config/i386/i386.h (TARGET_ABM): Move switch into
1283 (TARGET_POPCNT): Ditto.
1284 (TARGET_SAHF): Ditto.
1285 (TARGET_AES): Ditto.
1286 (TARGET_PCLMUL): Ditto.
1287 (TARGET_CMPXCHG16B): Ditto.
1288 (TARGET_RECIP): Move switch into target_flags.
1289 (TARGET_FUSED_MADD): Ditto.
1290 (ix86_arch_features): Make an unsigned char type.
1291 (ix86_tune_features): Ditto.
1292 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1293 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1294 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1296 * config/i386/i386.opt (arch): New TargetSave field to define
1297 fields that need to be saved for function specific option
1301 (branch_cost): Ditto.
1302 (ix86_isa_flags_explicit): Ditto.
1303 (tune_defaulted): Ditto.
1304 (arch_specified): Ditto.
1305 (-m128-long-double): Add Save flag to save option for target
1306 specific option support.
1308 (-maccumulate-outgoing-args): Ditto.
1309 (-malign-double): Ditto.
1310 (-malign-stringops): Ditto.
1311 (-mfancy-math-387): Ditto.
1312 (-mhard-float): Ditto.
1314 (-minline-all-stringops): Ditto.
1315 (-minline-stringops-dynamically): Ditto.
1316 (-mms-bitfields): Ditto.
1317 (-mno-align-stringops): Ditto.
1318 (-mno-fancy-math-387): Ditto.
1319 (-mno-push-args): Ditto.
1320 (-mno-red-zone): Ditto.
1321 (-mpush-args): Ditto.
1322 (-mred-zone): Ditto.
1324 (-msseregparm): Ditto.
1325 (-mstack-arg-probe): Ditto.
1340 (-mrecip): Move flag into target_flags.
1342 (-mno-fused-madd): Ditto.
1343 (-mfused-madd): Ditto.
1344 (-mabm): Move flag into ix86_isa_flags.
1351 * config/i386/i386-c.c: New file for #pragma support.
1352 (ix86_target_macros_internal): New function to #define or #undef
1353 target macros based when the user uses the #pragma GCC option to
1354 change target options.
1355 (ix86_pragma_option_parse): New function to add #pragma GCC option
1357 (ix86_target_macros): Move defining the target macros here from
1358 TARGET_CPU_CPP_BUILTINS in i386.h.
1359 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1360 defined, initialize any subtarget #pragmas.
1362 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1363 REGISTER_TARGET_PRAGMAS.
1365 * config/i386/t-i386: New file for x86 dependencies.
1366 (i386.o): Make dependencies mirror the include files used.
1367 (i386-c.o): New file, add dependencies.
1369 * config/i386/i386-protos.h (override_options): Add bool
1371 (ix86_valid_option_attribute_tree): Add declaration.
1372 (ix86_target_macros): Ditto.
1373 (ix86_register_macros): Ditto.
1375 * config/i386/i386.c (ix86_tune_features): Move initialization of
1376 the target masks to initial_ix86_tune_features to allow functions
1377 to have different target options. Make type unsigned char,
1378 instead of unsigned int.
1379 (initial_ix86_tune_features): New static vector to hold processor
1380 masks for the tune variables.
1381 (ix86_arch_features): Move initialization of the target masks to
1382 initial_ix86_arch_features to allow functions to have different
1383 target options. Make type unsigned char, instead of unsigned
1385 (initial_ix86_arch_features): New static vector to hold processor
1386 masks for the arch variables.
1387 (enum ix86_function_specific_strings): New enum to describe the
1388 string options used for attribute((option(...))).
1389 (ix86_target_string): New function to return a string that
1390 describes the target options.
1391 (ix86_debug_options): New function to print the current options in
1393 (ix86_function_specific_save): New function hook to save the
1394 function specific global variables in the cl_target_option
1396 (ix86_function_specific_restore): New function hook to restore the
1397 function specific variables from the cl_target_option structure to
1398 the global variables.
1399 (ix86_function_specific_print): New function hook to print the
1400 target specific options in the cl_target_option structure.
1401 (ix86_valid_option_attribute_p): New function hook to validate
1402 attribute((option(...))) arguments.
1403 (ix86_valid_option_attribute_tree): New function that is common
1404 code between attribute((option(...))) and #pragma GCC option
1405 support that parses the options and returns a tree holding the
1407 (ix86_valid_option_attribute_inner_p): New helper function for
1408 ix86_valid_option_attribute_tree.
1409 (ix86_can_inline_p): New function hook to decide if one function
1410 can inline another on a target specific basis.
1411 (ix86_set_current_function); New function hook to switch target
1412 options if the user used attribute((option(...))) or #pragma GCC
1414 (ix86_tune_defaulted): Move to static file scope from
1416 (ix86_arch_specified): Ditto.
1417 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1419 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1420 (OPTION_MASK_ISA_ABM_SET): Ditto.
1421 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1422 (OPTION_MASK_ISA_CX16_SET): Ditto.
1423 (OPTION_MASK_ISA_SAHF_SET): Ditto.
1424 (OPTION_MASK_ISA_AES_UNSET): Ditto.
1425 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1426 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1427 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1428 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1429 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1430 (struct ptt): Move to static file scope from override_options.
1431 (processor_target_table): Ditto.
1433 (ix86_handle_option): Add support for options that are now isa
1435 (override_options): Add support for declaring functions that
1436 support different target options than were specified on the
1437 command line. Move struct ptt, processor_target_table, cpu_names,
1438 ix86_tune_defaulted, ix86_arch_specified to static file scope.
1439 Add bool argument. Fix up error messages so the appropriate error
1440 is given for either command line or attribute.
1441 (ix86_previous_fndecl): New static to remember previous function
1442 declaration to see if we need to change target options.
1443 (ix86_builtins_isa): New array to record the ISA of each builtin
1445 (def_builtin): Always create the builtin function, even if the
1446 current ISA doesn't support it.
1447 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1448 tests for those builtins.
1449 (ix86_init_builtins): Remove TARGET_MMX test for calling
1450 ix86_init_mmx_sse_builtins.
1451 (ix86_expand_builtin): If the current ISA doesn't support a given
1452 builtin, signal an error.
1453 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1454 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1455 (TARGET_OPTION_SAVE): Ditto.
1456 (TARGET_OPTION_RESTORE): Ditto.
1457 (TARGET_OPTION_PRINT): Ditto.
1458 (TARGET_CAN_INLINE_P): Ditto.
1460 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1462 * c-typeck.c (build_external_ref): Don't call assemble_external.
1463 * final.c (output_operand): Call assemble_external.
1465 2008-07-21 DJ Delorie <dj@redhat.com>
1467 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1468 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1470 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1472 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1473 original insn and splitter contents into ...
1474 ("*div<mode>3_fast"): ... this new pattern. Enable only if
1475 flag_unsafe_math_optimizations. Add dummy scratch register.
1476 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
1477 !flag_unsafe_math_optimizations. Returns number with next
1478 highest magnitude if this is still less or equal to the true
1479 quotient in magnitude.
1481 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
1483 * Makefile.in: Replace toplev.h with TOPLEV_H.
1484 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1485 * c-lex.c (fe_file_change): Don't set in_system_header.
1486 * c-parser.c (c_token): Remove in_system_header.
1487 (c_lex_one_token): Don't set in_system_header.
1488 (c_parser_set_source_position_from_token): Don't set in_system_header.
1489 * diagnostic.c (diagnostic_report_diagnostic): Use location from
1492 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1493 * flags.h (in_system_header): Remove.
1494 * function.c (saved_in_system_header): Remove.
1495 (push_cfun): Don't set in_system_header.
1496 (pop_cfun): Don't set in_system_header.
1497 (push_struct_function): Don't set in_system_header.
1498 * input.h (expanded_location): Add sysp.
1499 (in_system_header_at): New.
1500 (in_system_header): New.
1501 * toplev.c (in_system_header): Remove.
1502 * toplev.h: Include input.h
1504 * tree-cfg.c (execute_warn_function_return): Call warning_at.
1505 * tree-ssa.c (warn_uninit): Call warning_at.
1506 (warn_uninitialized_var): Update calls to warn_uninit.
1507 (warn_uninitialized_phi): Update calls to warn_uninit.
1508 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1509 (expand_location): Initialize xloc.sysp.
1510 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1511 (tree_decl_with_vis): Remove in_system_header_flag.
1513 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1516 * recog.c (asm_operand_ok): Change the order of the extra
1517 memory constraint checks.
1519 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1522 * tree-switch-conversion.c (build_one_array): Call
1523 varpool_mark_needed_node and varpool_finalize_decl
1524 instead of assemble_variable.
1526 2008-07-19 Jan Hubicka <jh@suse.cz>
1528 * cgraph.c (cgraph_add_new_function): Do early local passes.
1529 * tree-nrv.c (gate_pass_return_slot): New gate.
1530 (pass_nrv): Add the gate.
1531 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1533 (coalesce_ssa_name): Coalesce SSA names.
1534 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1535 not optimizing so unused user vars remains visible.
1536 * common.opt (flag_tree_ter): Always enable by default.
1537 * tree-ssa-ter.c: Include flags.h
1538 (is_replaceable_p): Check that locations match; when aliasing is missing
1539 be conservative about loads.
1540 * tree-optimize.c (gate_init_datastructures): Remove.
1541 (pass_init_datastructures): New.
1542 * passes.c: Reorder passes so we always go into SSA.
1544 2008-07-19 Jan Hubicka <jh@suse.cz>
1546 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1547 * doc/invoke.texi (--combine): Likewise.
1548 (-finline-functions-called-once): Update levels when enabled.
1549 (-funit-at-a-time): Document new behaviour.
1550 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1551 -fno-section-anchors when disabled explicitly.
1552 (inline params): They are not ignored now.
1553 (precompiled headers): Remove unit-at-a-time as being incompatible.
1554 * opts.c (decode_options): Handle unit-at-a-time as alias;
1555 imply -fno-section-anchors when toplevel reorder is disabled
1557 * common.opt (ftoplevel-reorder): Set default value to 2.
1558 (funit-at-a-time): Set default value to 1.
1559 * config/rs6000/rs6000.c (optimization_options): Set section anchors
1562 2008-07-19 Jan Hubicka <jh@suse.cz>
1564 * builtins.c (expand_builtin_int_roundingfn,
1565 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1568 2008-07-19 Richard Guenther <rguenther@suse.de>
1571 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1572 * tree-ssa-sccvn.c (get_constant_value_id): New function.
1573 * tree-ssa-pre.c (get_expr_value_id): For newly created
1574 constant value-ids make sure to add the expression to its
1577 2008-07-19 Jakub Jelinek <jakub@redhat.com>
1580 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1581 return value of the builtin is ignored.
1583 2008-07-19 Olivier Hainque <hainque@adacore.com>
1585 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1586 bits, a C conformant malloc implementation has to provide.
1587 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1589 2008-07-19 Joseph Myers <joseph@codesourcery.com>
1593 * reload.c (find_reloads_subreg_address): Only reload address if
1594 reloaded == 0, not for reloaded != 1.
1597 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1598 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1599 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1600 m32c_legitimize_reload_address.
1602 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1603 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1604 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1606 2008-07-19 Olivier Hainque <hainque@adacore.com>
1608 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1609 argument, saying whether nested array are to be collapsed
1610 into a single array type DIE with multiple subscripts.
1611 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1612 issues, centralize the nested array types collapsing control and
1613 disable the transformation for Ada.
1615 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
1618 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1620 (x86_64_shift_adj_2): New expander.
1621 (x86_64_shift_adj_3): Ditto.
1622 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1623 to split TImode operands.
1624 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1625 (ix86_split_lshr): Ditto.
1627 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
1629 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1630 and __CHAR32_TYPE__.
1631 * c-typeck.c (digest_init): Support char16_t and char32_t.
1632 (set_nonincremental_init_from_string): Idem.
1634 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1637 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1638 PREFERRED_STACK_BOUNDARY.
1639 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1641 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1644 * function.c (locate_and_pad_parm): Cap boundary earlier.
1646 2008-07-17 Julian Brown <julian@codesourcery.com>
1648 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1649 no-op for targets which don't use DLLs.
1651 2008-07-17 Martin Jambor <mjambor@suse.cz>
1653 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1654 that nodes are relevant by examining the node->analyzed flag.
1655 (ipcp_init_stage): Check which nodes are relevant, assert that the
1656 relevant ones are also required.
1657 (ipcp_propagate_stage): Check on the side arrays are properly
1659 (ipcp_print_all_jump_functions): Make sure not to touch any node
1660 that is not analyzed or an edge that does not have a corresponding
1661 entry in the on-the-side vectors.
1662 (ipcp_function_scale_print): Likewise.
1663 (ipcp_update_callgraph): Check that the node is relevant.
1664 (ipcp_insert_stage): Check that the node is relevant. Check there is
1665 an info for every node and edge.
1666 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1667 (ipa_print_all_tree_maps): Likewise and a new variable info.
1668 (ipa_print_all_params_modified): Likewise.
1669 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1671 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
1674 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1676 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
1678 PR rtl-optimization/36753
1679 * fwprop.c (use_killed_between): Don't shortcut
1680 single-definition global registers.
1682 2008-07-16 Jan Hubicka <jh@suse.cz>
1684 * cgraph.h (varpool_empty_needed_queue): Declare.
1685 * cgraphunit.c (output_in_order): Mark all variables as needed;
1687 * varpool.c (varpool_assemble_node): Update debug queue.
1688 (varpool_assemble_pending_decls): Don't do it here.
1689 (varpool_empty_needed_queue): New function.
1691 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1693 * recog.c (peephole2_optimize): Fix formatting.
1695 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1697 * c-pch.c (get_ident): Avoid C++ keywords.
1698 * combine-stack-adj.c (single_set_for_csa): Likewise.
1699 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1700 output_asm_insn): Likewise.
1701 * reload.c (push_secondary_reload, find_reusable_reload,
1702 push_reload, combine_reloads, find_reloads,
1703 debug_reload_to_stream): Likewise.
1704 * reload.h (struct reload): Likewise.
1705 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1706 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1707 emit_output_reload_insns): Likewise.
1708 * targhooks.c (default_secondary_reload): Likewise.
1709 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1711 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1713 * recog.c (validate_change_1, validate_change,
1714 validate_unshare_change, validate_replace_rtx_1, struct
1715 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1717 * reload.c (push_secondary_reload, secondary_reload_class,
1718 scratch_reload_class, find_valid_class, find_reusable_reload,
1719 push_reload, find_dummy_reload, find_reloads_address_1,
1720 find_reloads_address_part, find_equiv_reg): Likewise.
1721 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1722 choose_reload_regs): Likewise.
1723 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1725 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1726 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1727 * sched-rgn.c (concat_INSN_LIST): Likewise.
1728 * stor-layout.c (mode_for_size, mode_for_size_tree,
1729 smallest_mode_for_size): Likewise.
1731 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1733 * cfg.c (dump_reg_info): Avoid C++ keywords.
1734 * dwarf2asm.c (dw2_force_const_mem,
1735 dw2_asm_output_encoded_addr_rtx): Likewise.
1736 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1737 * expmed.c (expand_shift): Likewise.
1738 * global.c (find_reg): Likewise.
1739 * graph.c (draw_edge): Likewise.
1740 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1741 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1742 widen_clz, widen_bswap, expand_parity, expand_unop,
1743 emit_cmp_and_jump_insn_1): Likewise.
1744 * postreload.c (reload_cse_simplify_operands): Likewise.
1745 * ra.h (add_neighbor): Likewise.
1746 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1747 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1748 record_reg_classes, copy_cost, record_address_regs,
1749 invalid_mode_change_p): Likewise.
1750 * regrename.c (regrename_optimize, scan_rtx_reg,
1751 dump_def_use_chain, find_oldest_value_reg,
1752 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1754 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1756 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1757 MASK_POWERPC64 for power4 in previous commit.
1759 2008-07-16 Olivier Hainque <hainque@adacore.com>
1761 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1762 instead of bare conversion to cast const-ness away.
1764 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1766 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1767 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1768 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1769 (TARGET_FUNCTION_VALUE): Define.
1771 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1773 * config/rs6000/rs6000.c (processor_target_table): Add
1774 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1776 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1779 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1780 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1781 m32c_legitimize_reload_address.
1783 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1785 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1786 DECL_IN_SYSTEM_HEADER in sync.
1788 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1790 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1791 * tree-ssa-pre.c (pre_expr_eq): Ditto
1792 (get_constant_for_value_id): Take a type as an argument.
1793 (fully_constant_expression): Pass in type.
1794 (find_or_generate_expression): Short circuit constant case.
1795 (create_expression_by_pieces): Remove special casing of
1797 (do_regular_insertion): Short circuit constant case.
1798 (do_partial_partial_insertion): Ditto.
1800 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1803 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1805 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1807 * config/xtensa/libgcc-xtensa.ver: New file.
1808 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1810 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1812 * df-problems.c (df_set_note): Avoid C++ keywords.
1813 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1814 * dse.c (record_store, remove_useless_values): Likewise.
1815 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1816 gen_reg_rtx_offset, operand_subword, change_address_1,
1817 change_address, adjust_address_1, offset_address,
1818 widen_memory_access, emit_copy_of_insn_after): Likewise.
1819 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1820 * fwprop.c (should_replace_address, propagate_rtx_1,
1821 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1823 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1824 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1825 * lcm.c (compute_insert_delete, pre_edge_lcm,
1826 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1827 * lower-subreg.c (resolve_reg_notes): Likewise.
1828 * mode-switching.c (optimize_mode_switching): Likewise.
1830 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1832 * bt-load.c (add_btr_def, migrate_btr_def,
1833 branch_target_load_optimize): Avoid C++ keywords.
1834 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1836 * combine.c (subst, simplify_set, make_extraction,
1837 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1838 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1839 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1841 2008-07-15 Richard Guenther <rguenther@suse.de>
1844 * c-common.c (strict_aliasing_warning): Do not warn for
1845 TYPE_REF_CAN_ALIAS_ALL pointers.
1846 (c_common_get_alias_set): may_alias types are not special.
1847 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1848 attribute and set can_ref_all accordingly.
1849 (build_reference_type_for_mode): Likewise.
1850 * doc/extend.texi (may_alias): Clarify.
1852 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1855 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1856 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1858 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1861 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1862 gcc_assert, instead call output_operand_lossage.
1864 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
1866 * builtins.c (std_canonical_va_list): Treat structure based
1869 2008-07-15 Ben Elliston <bje@au.ibm.com>
1871 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1873 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
1875 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1878 2008-07-14 Jan Hubicka <jh@suse.cz>
1880 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1881 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1882 fix predicates and constraints.
1883 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1884 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1886 2008-07-14 Doug Kwan <dougkwan@google.com>
1888 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1889 additional option file arm/eabi.opt.
1890 * config/arm/eabi.h (File): New configuration file for EABI targets.
1891 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1892 SUBSUBTARGET_EXTRA_SPECS.
1893 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1894 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1895 from STARTFILE_SPEC so that it can be referenced in an override.
1896 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1897 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1898 can be referenced in an override.
1899 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1900 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1901 so that it can be referenced in an override.
1902 (LINK_SPEC): Use BPABI_LINK_SPEC.
1903 * config/arm/eabi.opt (File): New.
1905 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1907 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1908 (FIXED_VALUE_H): New variable.
1909 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1910 input.h, fixed-value.h.
1911 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1912 (BASIC_BLOCK_H): Use $(BITMAP_H).
1913 (FUNCTION_H): Add varray.h.
1914 (IPA_REFERENCE_H): Use $(BITMAP_H).
1915 (CGRAPH_H): Add $(BASIC_BLOCK_H).
1916 (DF_H): Use $(BITMAP_H).
1917 (GGC_H): Add statistics.h.
1919 (INSN_ATTR_H): Use it.
1920 (SYSTEM_H): Add safe-ctype.h, filenames.h.
1922 (SYMTAB_H): Add $(OBSTACK_H).
1923 (CPP_INTERNAL_H): New.
1924 (TREE_DUMP_H): Add tree-pass.h.
1925 (TREE_FLOW_H): Use $(BITMAP_H)
1926 (PRETTY_PRINT_H): Use $(INPUT_H).
1927 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1930 (many object files): Fix lots of header dependencies throughout.
1932 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1934 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1936 (s-gtyp-input): Use them to write tmp-gi.list.
1937 (echo_to_gi.list): Remove.
1939 2008-07-14 Richard Guenther <rguenther@suse.de>
1941 * tree-ssa-sccvn.c (pre_info): Remove.
1942 (switch_to_PRE_table): Likewise.
1943 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
1944 (set_hashtable_value_ids): Do not create value-ids for the
1946 (run_scc_vn): Remove double test. Remove bogus special-case
1947 in value-number printing.
1948 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1949 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1951 * tree-flow-inline.h (get_value_handle): Remove.
1952 * tree-flow.h (get_value_handle): Remove.
1954 2008-07-14 Martin Jambor <mjambor@suse.cz>
1956 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1957 in which we generate arithmetics is not a subrange.
1959 2008-07-14 Martin Jambor <mjambor@suse.cz>
1961 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1963 2008-07-14 Richard Guenther <rguenther@suse.de>
1965 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1967 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
1970 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1971 reload for symbol refs moved to r0 with -fPIC.
1972 (legitimize_pic_address): Use the target register as temporary
1974 (emit_symbolic_move): Adjust comment.
1975 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1978 2008-07-14 Ben Elliston <bje@au.ibm.com>
1980 * c-common.h (C_CPP_HASHNODE): New macro.
1981 * coretypes.h (struct cpp_token): Forward declare.
1982 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1983 the context-sensitive keyword method.
1984 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1985 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1986 expand_bool_pixel): New.
1987 (altivec_categorize_keyword): New function.
1988 (init_vector_keywords): New function.
1989 (rs6000_macro_to_expand): Likewise.
1990 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1991 compiling an ISO C dialect.
1993 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
1995 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1996 (create_expression_by_pieces): Fix typo.
1997 (do_regular_insertion): Use debug counter here too.
1999 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
2002 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2003 CONST_OK_FOR_LETTER_P. All port-local users changed.
2004 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2005 implement Kp matching power-of-two.
2006 (CONSTRAINT_LEN): Define to match.
2007 * config/cris/cris.md: Replace all use of constraint K with Kc.
2008 ("*btst*): Use Kp for operand 0 of last alternative.
2010 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2013 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2016 2008-07-13 Jan Hubicka <jh@suse.cz>
2018 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2021 2008-07-13 Richard Guenther <rguenther@suse.de>
2024 * langhooks.c (lhd_print_error_function): Deal with recursive
2027 2008-07-12 Jan Hubicka <jh@suse.cz>
2029 * cgraph.c (assembler_name_hash): New static var.
2030 (hash_node_by_assembler_name, eq_assembler_name): New.
2031 (cgraph_node_for_asm): Use hashtable.
2032 (cgraph_remove_node): Maintain hashtable.
2033 (change_decl_assembler_name): Sanity check that names are not changing
2034 after aliasing was processed.
2035 * cgraph.h (varpoon_node): Add next GGC marker.
2036 * tree.c (decl_assembler_name_equal): Constify.
2037 (decl_assembler_name_hash): New.
2038 * tree.h (decl_assembler_name_equal): Constify.
2039 (decl_assembler_name_hash): Update.
2041 2008-07-12 David Daney <ddaney@avtrex.com>
2043 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2046 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2048 * doc/md.texi: Document the MIPS "v" constraint.
2049 * config/mips/mips.h (reg_class): Revert last change.
2050 (REG_CLASS_NAMES): Likewise.
2051 (REG_CLASS_CONTENTS): Likewise.
2052 * config/mips/mips.c (mips_regno_to_class): Likewise.
2053 * config/mips/constraints.md (v): Likewise, but add documentation.
2054 Add a comment to say that this constraint should not be used in
2057 2008-07-11 DJ Delorie <dj@redhat.com>
2059 * config/h8300/h8300.md (length): Fix branch offset limit.
2061 2008-07-11 Anatoly Sokolov <aesok@post.ru>
2063 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2064 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2065 (avr_hard_regno_scratch_ok): New function.
2066 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2067 * config/avr/avr.md (all peepholes that request a scratch register):
2068 Remove avr_peep2_scratch_safe use.
2070 2008-07-11 Tom Tromey <tromey@redhat.com>
2071 Ian Lance Taylor <iant@google.com>
2073 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2074 (struct c_common_resword): Define.
2075 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2076 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2077 (c_common_reswords, num_c_common_reswords): Declare.
2078 * c-common.c (c_common_reswords): New global const array.
2079 (num_c_common_reswords): New const int.
2080 * c-parser.c (struct resword, reswords): Don't define.
2081 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2082 (c_parse_init): Clarify mask code. Use c_common_reswords rather
2083 than reswords. If warning about C++ keywords, give them a special
2085 (c_lex_one_token): Warn about C++ keywords. Call
2086 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2087 (c_parser_external_declaration): Look for RID_xxx rather than
2088 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2089 (c_parser_statement_after_labels): Likewise.
2090 (c_parser_objc_class_instance_variables): Likewise.
2091 (c_parser_objc_class_declaration): Likewise.
2092 (c_parser_objc_try_catch_statement): Likewise.
2093 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2094 (declspecs_add_type): Likewise.
2096 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
2098 * ggc-page.c (alloc_page):
2099 Substituting xmalloc, xcalloc with
2100 XNEWVEC and XCNEWVAR macros which add the
2103 2008-07-11 Richard Guenther <rguenther@suse.de>
2105 PR tree-optimization/36765
2106 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2107 aliases from HEAP vars to SMTs.
2109 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2111 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2112 * configure.ac (loose_warn): Move -Wc++-compat from here...
2113 (strict_warn): ...to here.
2114 * configure: Regenerate.
2116 2008-07-10 Joseph Myers <joseph@codesourcery.com>
2118 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2119 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2120 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2121 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2122 excluding more specific h8300-*-* and sh-*-* targets.
2124 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
2126 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2128 (execute_pre): Call loop_optimizer_finalize in early exit.
2130 2008-07-10 Jakub Jelinek <jakub@redhat.com>
2133 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2134 uids in the bitmap, not just VAR_DECL uids.
2136 PR rtl-optimization/36419
2137 * combine-stack-adj.c (adjust_frame_related_expr): New function.
2138 (combine_stack_adjustments_for_block): Call it if needed. Delete
2140 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2141 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2142 prologue sp adjustment.
2144 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
2147 * opts.c (print_ignored_options): Report postponed diagnostics for
2148 unknown -Wno-* options as warnings, not errors.
2149 (postpone_unknown_option_error): Renamed to...
2150 (postpone_unknown_option_warning): ... this.
2152 2008-07-09 Doug Kwan <dougkwan@google.com>
2155 2008-07-08 Doug Kwan <dougkwan@google.com>
2157 * config/arm/arm.opt (mandroid): New option.
2158 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2159 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2161 (CC1PLUS_SPEC): Same.
2163 (STARTFILE_SPEC): Same.
2164 (ENDFILE_SPEC): Same.
2165 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2168 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
2171 * config/mips/mips.h (reg_class): Remove V1_REG.
2172 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2173 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2175 (mips_get_tp): New function.
2176 (mips_legitimize_tls_address): Use it.
2177 * config/mips/constraints.md (v): Delete.
2178 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2179 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2180 After reload, split into a move and ...
2181 (*tls_get_tp_<mode>_split): ...this new instruction.
2183 2008-07-09 David Daney <ddaney@avtrex.com>
2185 * config/mips/driver-native.c: Include coretypes.h and tm.h.
2187 2008-07-09 Jakub Jelinek <jakub@redhat.com>
2189 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2190 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2192 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2193 htab_delete should be called. Don't free c.
2194 (lookup_tmp_var): Create temp_htab lazily.
2195 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2196 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2198 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2199 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2200 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2201 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2202 * tree-sra.c (generate_element_init): Likewise.
2203 * tree-mudflap.c (execute_mudflap_function_ops,
2204 execute_mudflap_function_decls): Likewise.
2205 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2206 * tree-gimple.h (struct gimplify_ctx): New type.
2207 (push_gimplify_context): Adjust prototype.
2209 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
2211 * tree-ssa-pre.c (phi_translate_1): Update placement of
2214 2008-07-09 Anatoly Sokolov <aesok@post.ru>
2216 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2217 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2218 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2219 * targhooks.c (default_hard_regno_scratch_ok): New function.
2220 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2221 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2222 * recog.c: Include "target.h".
2223 (peep2_find_free_register): Add check for global regs. Add target
2225 * Makefile.in (recog.o): Depend on target.h.
2227 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
2229 * config/sh/sh.c (sh_canonical_va_list_type): New.
2230 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2232 2008-07-09 Raksit Ashok <raksit@google.com>
2234 * doc/invoke.texi (Option Summary): Mention new option
2235 -Wdisallowed-function-list=...
2236 (Warning Options): Document -Wdisallowed-function-list=...
2237 * common.opt (Wdisallowed-function-list=): New flag.
2238 * flags.h (warn_disallowed_functions): External definition of new
2239 boolean warning flag.
2240 (warn_if_disallowed_function_p): Declare new function.
2241 * opts.c (warning_disallowed_functions): New static variable.
2242 (warn_disallowed_functions): New boolean warning flag.
2243 (warn_if_disallowed_function_p): New function.
2244 (add_comma_separated_to_vector): Rename
2245 add_instrument_functions_exclude_list to this.
2246 (common_handle_option): Handle new option. Rename calls to
2247 add_instrument_functions_exclude_list into calls to
2248 add_comma_separated_to_vector.
2249 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2250 based on flag warn_disallowed_functions.
2252 2008-07-09 Christian Bruel <christian.bruel@st.com>
2254 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2255 instead of get_attr_length.
2257 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2259 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2261 * genemit.c (gen_insn): Likewise.
2262 * gengtype.c (note_def_vec): Likewise.
2263 * gengtype.h (note_def_vec): Likewise.
2264 * genoutput.c (struct data, output_insn_data, process_template,
2265 gen_expand, gen_split, note_constraint): Likewise.
2266 * genrecog.c (new_decision, add_to_sequence, factor_tests,
2267 make_insn_sequence): Likewise.
2268 * gensupport.c (record_insn_name): Likewise.
2270 2008-07-08 Doug Kwan <dougkwan@google.com>
2272 * config/arm/arm.opt (mandroid): New option.
2273 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2274 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2276 (CC1PLUS_SPEC): Same.
2278 (STARTFILE_SPEC): Same.
2279 (ENDFILE_SPEC): Same.
2280 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2283 2008-07-08 Raksit Ashok <raksit@google.com>
2285 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2286 (set_storage_via_setmem): Fix expected_align parameter.
2287 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2288 missing from the list.
2289 * doc/md.texi (movmem): Explicitly state that expected alignment is
2290 to be expressed in bytes.
2291 (setmem): Explicitly state that expected alignment is to be expressed
2294 2008-07-08 Joseph Myers <joseph@codesourcery.com>
2296 * reload.c (find_reloads_subreg_address): Do not require validity
2297 of address in original mode before reloading address.
2299 2008-07-07 Tianwei Sheng <tianweis@google.com>
2301 * df-core.c (df_remove_problem): Adjust the access to avoid out of
2302 bounds array access.
2304 2008-07-08 Jakub Jelinek <jakub@redhat.com>
2306 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2308 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
2310 Fix PR tree-optimization/23455
2311 Fix PR tree-optimization/35286
2312 Fix PR tree-optimization/35287
2313 * Makefile.in (OBJS-common): Remove tree-vn.o.
2314 (tree-vn.o): Remove.
2315 * dbgcnt.def: Add treepre_insert debug counter.
2316 * gcc/tree-flow.h (add_to_value): Updated for other changes.
2317 (debug_value_expressions): Ditto.
2318 (print_value_expressions): Ditto.
2319 * tree-pretty-print.c (dump_generic_node): Updated for
2320 VALUE_HANDLE removal.
2321 * tree-ssa-dom.c (record_equality): Ditto.
2322 (cprop_operand): Ditto.
2323 (lookup_avail_expr): Ditto.
2324 * tree-ssa-threadedge.c
2325 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2326 (simplify_control_stmt_condition): Ditto.
2327 * tree.c (tree_code_size): Ditto.
2328 (tree_node_structure): Ditto.
2329 (iterative_hash_expr): Ditto.
2331 * tree.h (VALUE_HANDLE_ID): Ditto.
2332 (VALUE_HANDLE_EXPR_SET): Ditto.
2333 (struct tree_value_handle): Ditto.
2334 (union tree_node): Ditto.
2335 * treestruct.def: Ditto.
2336 * tree-vn.c: Removed.
2337 * tree-ssa-pre.c: Rewritten entirely.
2338 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2339 (constant_value_ids): Ditto.
2340 (vn_nary_op_t): Moved to header.
2342 (vn_reference_op_t): Ditto
2343 (vn_reference_t): Ditto.
2344 (next_value_id): New variable.
2345 (VN_INFO): Add an assert.
2346 (vn_constant_eq): New function.
2347 (vn_constant_hash): Ditto.
2348 (get_or_alloc_constant_value_id): Ditto.
2349 (value_id_constant_p): Ditto.
2350 (vn_reference_compute_hash): De-staticify.
2351 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2352 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2353 (valueize_refs): Update opcode if it changes from ssa name to constant.
2354 (vn_reference_lookup_1): Add new argument.
2355 (vn_reference_lookup): Ditto.
2356 (vn_reference_lookup_pieces): New function.
2357 (vn_reference_insert): Add return type. Modify to deal with value ids.
2358 (vn_reference_insert_pieces): New function.
2359 (vn_nary_op_compute_hash): De-staticify.
2360 (vn_nary_op_eq): Ditto.
2361 (vn_nary_op_lookup_pieces): New function.
2362 (vn_nary_op_lookup): Add new argument.
2363 (vn_nary_op_insert_pieces): New function.
2364 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2365 (vn_phi_insert): Ditto.
2366 (visit_unary_op): Update for callee changes.
2367 (visit_binary_op): Ditto.
2368 (visit_reference_op_load): Ditto.
2369 (visit_reference_op_store): Ditto.
2370 (init_scc_vn): Init next_value_id, constant_to_value_id and
2372 (free_scc_vn): Free them.
2373 (set_hashtable_value_ids): New function.
2374 (run_scc_vn): Use it.
2375 (get_max_value_id): New function.
2376 (get_next_value_id): Ditto.
2377 (expressions_equal_p): Moved from tree-vn.c
2378 (sort_vuses): Ditto.
2379 (sort_vuses_heap): Ditto.
2380 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2382 * tree.c (iterative_hash_hashval_t): Made non-static
2383 * tree.h (iterative_hash_hashval_t): Declare it.
2385 2008-07-08 Martin Jambor <mjambor@suse.cz>
2387 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2388 instead of ipa_create_node_params.
2389 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2390 ipa_check_create_edge_args, free them with
2391 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2393 * ipa-prop.c: Include flags.h and tree-inline.h.
2394 (ipa_node_params_vector): New variable.
2395 (ipa_edge_args_vector): New variable.
2396 (edge_removal_hook_holder): New variable.
2397 (node_removal_hook_holder): New variable.
2398 (edge_duplication_hook_holder): New variable.
2399 (node_duplication_hook_holder): New variable.
2400 (ipa_detect_param_modifications): Check for presence of modified flags.
2401 (ipa_compute_jump_functions): Check for presence of jump functions.
2402 (ipa_free_edge_args_substructures): New function.
2403 (ipa_create_node_params): Removed.
2404 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2405 (ipa_free_node_params_substructures): New function.
2406 (ipa_free_all_node_params): Changed to deallocate the on-the-side
2408 (ipa_edge_removal_hook): New function.
2409 (ipa_node_removal_hook): New function.
2410 (duplicate_array): New function.
2411 (ipa_edge_duplication_hook): New function.
2412 (ipa_node_duplication_hook): New function.
2413 (ipa_register_cgraph_hooks): New function.
2414 (ipa_unregister_cgraph_hooks): New function.
2415 (free_all_ipa_structures_after_ipa_cp): New function.
2417 * ipa-prop.h: Include vec.h.
2418 (ipa_node_params_t): New typedef with vector types for it.
2419 (ipa_edge_args_t): New typedef with vector types for it.
2420 (IPA_NODE_REF): Changed to access an on-the-side vector.
2421 (IPA_EDGE_REF): Changed to access an on-the-side vector.
2422 (ipa_check_create_node_params): New function.
2423 (ipa_check_create_edge_args): New function.
2425 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
2428 2008-07-07 Tom Tromey <tromey@redhat.com>
2430 * configure, config.in: Rebuilt.
2431 * configure.ac: Don't check for scandir or alphasort.
2433 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2435 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2436 types immediately after creating them.
2438 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2440 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2442 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
2444 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2445 dump_constraint_graph.
2446 (dump_constraint_edge): New function.
2447 (dump_constraint_graph): New function.
2448 (debug_constraint_graph): New function.
2449 (dump_constraint): Removed useless comparison.
2450 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2451 (dump_constraint_graph): Declare.
2452 (debug_constraint_graph): Declare.
2453 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2455 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
2457 * config/i386/i386.c (is_va_list_char_pointer): New.
2458 (ix86_va_start): Replace compare with ms_va_list_type_node
2459 by is_va_list_char_pointer.
2460 (ix86_gimplify_va_arg): Likewise.
2462 2008-07-07 Martin Jambor <mjambor@suse.cz>
2464 * cgraph.c (cgraph_edge_max_uid): New variable.
2465 (struct cgraph_edge_hook_list): New type.
2466 (struct cgraph_node_hook_list): New type.
2467 (struct cgraph_2edge_hook_list): New type.
2468 (struct cgraph_2node_hook_list): New type.
2469 (first_cgraph_edge_removal_hook): New variable.
2470 (first_cgraph_node_removal_hook): New variable.
2471 (first_cgraph_edge_duplicated_hook): New variable.
2472 (first_cgraph_node_duplicated_hook): New variable.
2473 (cgraph_add_edge_removal_hook): New function.
2474 (cgraph_remove_edge_removal_hook): New function.
2475 (cgraph_call_edge_removal_hooks): New function.
2476 (cgraph_add_node_removal_hook): New function.
2477 (cgraph_remove_node_removal_hook): New function.
2478 (cgraph_call_node_removal_hooks): New function.
2479 (cgraph_add_edge_duplication_hook): New function.
2480 (cgraph_remove_edge_duplication_hook): New function.
2481 (cgraph_call_edge_duplication_hooks): New function.
2482 (cgraph_add_node_duplication_hook): New function.
2483 (cgraph_remove_node_duplication_hook): New function.
2484 (cgraph_call_node_duplication_hooks): New function.
2485 (cgraph_create_edge): Assign to edge uid.
2486 (cgraph_remove_edge): Call edge removal hooks.
2487 (cgraph_node_remove_callees): Call edge removal hooks.
2488 (cgraph_node_remove_callers): Call edge removal hooks.
2489 (cgraph_remove_node): Call node removal hooks.
2490 (cgraph_clone_edge): Call edge duplication hooks.
2491 (cgraph_clone_node): Call node duplication hooks.
2493 * cgraph.h (cgraph_edge): New field uid.
2494 (cgraph_edge_hook): New type.
2495 (cgraph_node_hook): New type.
2496 (cgraph_2edge_hook): New type.
2497 (cgraph_2node_hook): New type.
2499 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
2501 * config.in: Regenerate.
2503 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
2505 * gcc.c (print_sysroot): New.
2506 (option_map, display_help, process_command): Handle the
2507 -print-sysroot option.
2508 (main): Print the sysroot if requested.
2509 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2511 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2514 * unwind-pe.h (size_of_encoded_value): add attribute unused.
2516 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
2518 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2519 (assign_parm_setup_block_p): Also check mode of entry_parm.
2521 2008-07-07 Richard Guenther <rguenther@suse.de>
2523 * tree-ssa-structalias.h (set_used_smts): Remove.
2524 * tree-ssa-structalias.c (used_smts): Likewise.
2525 (set_used_smts): Likewise.
2526 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2527 call to set_used_smts.
2529 2008-07-07 Richard Guenther <rguenther@suse.de>
2531 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2532 (new_var_info): Set it to false.
2533 (solution_set_add): Correctly handle pointers outside a var and
2535 (type_safe): Treat variables with is_full_var properly.
2536 (do_sd_constraint): Likewise.
2537 (do_ds_constraint): Likewise.
2538 (process_constraint): Remove zeroing offset for !use_field_sensitive.
2539 (get_constraint_for_ptr_offset): New function.
2540 (get_constraint_for_component_ref): For addresses at least include
2541 the last field of the variable. Handle is_full_vars properly.
2542 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2543 (handle_ptr_arith): Remove.
2544 (find_func_aliases): Simplify assignment handling.
2545 (create_function_info_for): For parameter and result varinfos set
2547 (create_variable_info_for): Set is_full_var flag whenever we
2548 just created a single varinfo for a decl.
2549 (init_alias_vars): Initialize use_field_sensitive from
2550 max-fields-for-field-sensitive parameter.
2552 2008-07-07 Richard Guenther <rguenther@suse.de>
2554 PR tree-optimization/36713
2555 * tree-flow-inline.h (is_call_used): New function.
2556 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2557 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2558 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2560 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2562 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2564 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
2566 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2568 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2569 Nathan Sidwell <nathan@codesourcery.com>
2571 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
2572 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2574 * config/m68k/t-linux: New.
2575 * doc/install.texi: Document m68k-*-linux is now multilibbed by
2578 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
2580 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2581 * config/m68k/m68k-devices.def: Remove multilibs that only differ
2584 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2586 * gcc.c (execute): Fix -Wc++-compat warning.
2588 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
2591 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2592 constant for little endian.
2594 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
2596 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2597 mips_base_mips16 instead of TARGET_MIPS16.
2598 (mips_base_mips16): Declare.
2599 * config/mips/mips.c (mips_base_mips16): Make global.
2600 (was_mips16_p): Remove GTY marker.
2601 (was_mips16_pch_p): New variable.
2602 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2603 (mips_override_options): Force to non-MIPS16 mode initially.
2604 Do not complain about MIPS16 PIC incompatibilities here.
2605 Only allow -mgpopt if -mexplicit-relocs is in force for
2608 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
2610 * configure.ac: Check for caddr_t, define to char * if not defined.
2611 * configure: Regenerate.
2612 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2613 (mmap_gt_pch_use_address): Likewise.
2614 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2616 2008-07-06 Richard Guenther <rguenther@suse.de>
2618 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2619 (new_var_info): Deal with it.
2620 (solution_set_add): Likewise.
2621 (bitpos_of_field): Make signed, fix.
2622 (struct fieldoff): Remove type and decl fields. Make size field
2623 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
2625 (fieldoff_compare): Deal with it.
2626 (push_fields_onto_fieldstack): Remove has_union argument, glob
2627 adjacent non-pointer fields together.
2628 (create_function_info_for): Do not set has_union.
2629 (create_variable_info_for): Simplify.
2631 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
2633 * config.gcc (extra_headers): Add cross-stdarg.h for target
2634 x86_64-*-* and i?86-*-*.
2635 * config/i386/cross-stdarg.h: New.
2636 * builtins.c (std_fn_abi_va_list): New.
2637 (std_canonical_va_list_type): New.
2638 (stabilize_va_list): Replace va_list_type_node use by
2639 mtarget.canonical_va_list_type.
2640 (gimplify_va_arg_expr): Likewise.
2641 (expand_builtin_va_copy): Replace va_list_type_node use by
2642 mtarget.fn_abi_va_list.
2643 * tree-sra.c (is_va_list_type): New helper.
2644 (decl_can_be_decomposed_p): Replace
2645 va_list_type_node use by is_va_list_type.
2646 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2647 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2648 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2649 * config/i386/i386-protos.h (ix86_get_valist_type): New.
2650 (ix86_enum_va_list): New.
2651 * config/i386/i386.c (sysv_va_list_type_node): New.
2652 (ms_va_list_type_node): New.
2653 (ix86_function_type_abi): Remove sorry.
2654 (ix86_build_builtin_va_list_abi): New.
2655 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2657 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2658 (ix86_init_builtins_va_builtins_abi): New.
2659 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2661 (ix86_handle_abi_attribute): New.
2662 (attribute_spec): Add sysv_abi and ms_abi.
2663 (ix86_fn_abi_va_list): New.
2664 (ix86_canonical_va_list_type): New.
2665 (ix86_enum_va_list): New.
2666 (TARGET_FN_ABI_VA_LIST): New.
2667 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2668 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2669 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2670 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2671 (TARGET_ENUM_VA_LIST): New.
2672 * expr.h (std_fn_abi_va_list): New.
2673 (std_canonical_va_list_type): New.
2674 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2675 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2676 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2677 TARGET_CANONICAL_VA_LIST_TYPE.
2678 * target.h (struct gcc_target): Add fn_abi_va_list hook
2679 and canonical_va_list_type hook.
2681 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2683 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2684 integral and pointer types.
2686 2008-07-04 Roger Sayle <roger@eyesopen.com>
2688 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2689 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2691 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2694 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2696 2008-07-04 Jakub Jelinek <jakub@redhat.com>
2698 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2699 build_gimple_modify_stmt.
2700 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
2701 gimple operand. Use fold_build* instead of build*.
2703 2008-07-04 Richard Guenther <rguenther@suse.de>
2705 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2706 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2707 properly to compute the reachability set if we do field-sensitive PTA.
2708 * invoke.texi (max-fields-for-field-sensitive): Document default.
2709 * opts.c (decode_options): Set max-fields-for-field-sensitive to
2710 100 for optimize >= 2.
2712 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2714 * ggc-zone.c (lookup_page_table_if_allocated,
2715 set_page_table_entry, zone_find_object_size, alloc_small_page,
2716 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2717 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2718 -Wc++-compat and/or -Wcast-qual warnings.
2720 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2723 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2724 pic_offset_table_rtx to be marked as used here.
2725 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2726 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2727 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2728 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2731 2008-07-15 Vladimir Makarov <vmakarov@redhat.com>
2733 * caller-save.c (calculate_local_save_info): Clear save_in,
2734 restore_out, free_in.
2736 2008-07-14 Vladimir Makarov <vmakarov@redhat.com>
2738 * reload.h (struct insn): Add comment for live_throughout.
2740 * global.c (pseudo_for_reload_consideration_p): New function.
2741 (build_insn_chain): Use it.
2743 2008-07-14 Vladimir Makarov <vmakarov@redhat.com>
2745 * ira-conflicts.c (propagate_modified_regnos): Move to
2747 (ira_build_conflicts): Don't call propagate_modified_regnos.
2749 * ira-int.h (ira_allocno): Remove calls_crossed_start.
2750 (ALLOCNO_CALLS_CROSSED_START, ira_regno_calls,
2751 ira_add_regno_call): Remove.
2752 (ira_allocate_and_accumulate_costs): New function.
2754 * ira-lives.c (process_bb_node_lives): Don't call
2755 ira_add_regno_call. Do't use ALLOCNO_CALLS_CROSSED_START.
2757 * ira-build.c (more_one_region_p): New function.
2758 (ira_regno_calls, regno_calls_num, initiate_calls, expand_calls,
2759 compress_calls, ira_add_regno_call, finish_calls): Remove.
2760 (ira_create_allocno, propagate_info_to_cap): Don't set up
2761 ALLOCNO_CALLS_CROSSED_START.
2762 (propagate_modified_regnos): Move from ira-conflicts.c.
2763 (create_allocnos): Call propagate_modified_regnos.
2764 (merge_ranges, change_allocno_in_range_list): Move before
2765 low_pressure_loop_node_p.
2766 (low_pressure_loop_node_p, loop_node_to_be_removed_p,
2767 removed_loop_vec, children_vec,
2768 remove_uneccesary_loop_nodes_from_loop_tree,
2769 remove_unnecessary_allocnos, remove_unnecessary_regions): New.
2770 (ira_flattening): Don't process allocno calls.
2771 (ira_build): Don't call initiate_calls and finish_calls. Call
2772 remove_unnecessary_regions. Use more_one_region_p.
2774 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Split
2775 SPEC_OR_GEN_REGS onto GENERAL_REGS and SPECIAL_REGS.
2777 2008-07-08 Vladimir Makarov <vmakarov@redhat.com>
2779 * ira-build.c (ira_flattening): Rename
2780 new_allocnos_p to new_pseudos_p. Remove renamed_p. Use
2781 new_pseudos_p instead of renamed_p.
2783 * ira-lives.c (max_point): Fix a typo in the comment.
2785 * ira-int.h (max_point): Ditto.
2787 2008-07-07 Vladimir Makarov <vmakarov@redhat.com>
2789 * ira-color.c, ira-conflics.c, ira-lives.c, ira-emit.c,
2790 ira-build.c (IRA_ALLOCNO_TOTAL_CONFLICT_HARD_REGS,
2791 IRA_ALLOCNO_TOTAL_NO_STACK_REG_P): Rename to
2792 IRA_ALLOCNO_TOTAL_CONFLICT_HARD_REGS,
2793 IRA_ALLOCNO_TOTAL_NO_STACK_REG_P.
2795 * ira-int.h: Ditto. Fix comment for max_point.
2797 * reload1.c (reload): Add comment for ira_sort_insn_chain.
2799 2008-07-07 Vladimir Makarov <vmakarov@redhat.com>
2802 * caller-saves.c (free_con_fun_n): Use liveness info.
2804 2008-07-07 Vladimir Makarov <vmakarov@redhat.com>
2807 * caller-saves.c (restore_con_fun_n, save_con_fun_n): Clear the
2808 result if mode or pseudo is different.
2810 2008-07-07 Vladimir Makarov <vmakarov@redhat.com>
2813 * ira.c (chain_insn_order): New variable.
2814 (chain_freq_compare, chain_bb_compare): Use it.
2815 (ira_sort_insn_chain): Set it up.
2817 2008-07-03 Vladimir Makarov <vmakarov@redhat.com>
2819 * doc/invoke.texi (-fira-ipra): Remove.
2821 * regrename.c (copyprop_hardreg_forward_1): Remove
2822 get_call_invalidated_used_regs.
2824 * postreload-gcse.c (record_opr_changes): Ditto.
2826 * postreload.c (reload_combine, reload_cse_move2add): Ditto.
2828 * rtlanal.c (reg_set_between_p): Ditto.
2830 * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
2832 * cselib.c (cselib_process_insn): Ditto.
2834 * loop-iv.c (simplify_using_assignment): Ditto.
2836 * sched-deps.c (sched_analyze): Ditto.
2838 * combine.c (record_dead_and_set_regs): Ditto.
2840 * resource.c (mark_set_resources, mark_target_live_regs): Ditto.
2842 * var-tracking.c (compute_bb_dataflow, emit_notes_in_bb): Ditto.
2844 * reload1.c (reload): Ditto.
2846 * caller-save.c (setup_save_areas, calculate_local_save_info,
2847 save_call_clobbered_regs): Ditto.
2849 * cse.c (invalidate_for_call): Remove parameter. Remove
2850 get_call_invalidated_used_regs.
2851 (cse_insn): Don't pass insn to invalidate_for_call.
2853 * ira-lives.c (process_bb_node_lives): Remove updating
2856 * function.c (cgraph.h): Remove #include.
2857 (get_call, get_call_invalidated_used_regs): Remove.
2859 * final.c (update_regs_ever_live): Remove.
2860 (rest_of_handle_final): Remove updating call_used_regs.
2862 * toplev.h (flag_ira_ipra): Remove.
2864 * common.opt (fira-ipra): Remove.
2866 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Remove
2869 * ira-color.c (ira_collect_pseudo_call_clobbered_regs): Remove.
2871 * ira.h (ira_collect_pseudo_call_clobbered_regs): Ditto.
2873 * function.h (hard-reg-set.h): Remove.
2874 (struct emit_status): Remove call_used_regs.
2875 (get_call_invalidated_used_regs): Remove.
2877 * Makefile.in (FUNCTION_H): Remove hard-reg-set.h.
2879 * gengtype.c (main): Remove HARD_REG_SET.
2881 * cgraph.c (cgraph_create_node): Remove setting
2884 * cgraph.h (struct cgraph_node): Remove function_used_regs.
2886 * ira-build.c (ira_build): Remove resetting call_used_regs.
2888 2008-07-03 Vladimir Makarov <vmakarov@redhat.com>
2890 * ira.h, ira-int.h, ira-conflicts.c, ira-color.c, ira-lives.c,
2891 ira-emit.c, ira-build.c, ira.c, ira-costs.c: Add prefix ira_ to
2892 external variables, functions, common types, and macros.
2894 * toplev.c (init_ira_once, init_ira, finish_ira_once): Rename to
2895 ira_init_once, ira_init, ira_finish_once.
2897 * caller-save.c: Add prefix ira_ to
2898 collect_pseudo_call_clobbered_regs.
2900 * reload1.c: Add prefix ira_ to sort_insn_chain,
2901 mark_memory_move_deletion, better_spill_reload_regno_p,
2902 reuse_stack_slot, mark_new_stack_slot, mark_allocation_change,
2903 reassign_pseudos, mark_allocation_change.
2905 2008-07-03 Vladimir Makarov <vmakarov@redhat.com>
2907 * ira-color.c (reassign_conflict_allocnos): Check nrefs first.
2909 * ira.c (ira.c): Exclude unprofitable allocno from reassigning.
2911 * reload1.c (find_reg): Move dump file check from
2912 EXECUTE_IF_SET_IN_REG_SET.
2914 2008-06-26 Vladimir Makarov <vmakarov@redhat.com>
2916 * caller-save.c (make_global_save_analysis): Add entry and exit
2917 blocks to all_blocks.
2918 (save_call_clobbered_regs): Initialize bb_info for entry/exit
2921 2008-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
2923 * ira-conflicts.c ira-color.c ira-lives.c ira-emit.c ira-build.c
2924 ira.c ira-costs.c : Fix comments.
2926 2008-06-11 Vladimir Makarov <vmakarov@redhat.com>
2928 * caller-save.c (restore_con_fun_n, save_con_fun_n): Use loop
2929 mentioned_regs instead of clearing all result.
2931 2008-06-11 Vladimir Makarov <vmakarov@redhat.com>
2933 * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER,
2934 IRA_COVER_CLASSES): Fix macro descriptions.
2936 * doc/invoke.texi (fira): Fix the description.
2938 * flags.h (ira_algorithm): Fix formatting.
2940 * ira-conflicts.c: Remove all forward prototypes of static
2941 functions. Use type bool and true and false for boolean values.
2942 Change father to parent.
2943 (get_dup_num): Remove equiv_const. More comments.
2944 (process_regs_for_copy, process_reg_shuffles): New functions.
2945 (add_insn_allocno_copies): Use them.
2947 * ira-int.h: Use type bool and true and false for boolean values.
2948 Change father to parent.
2950 * ira-color.c: Remove all forward prototypes of static
2951 functions. Use type bool and true and false for boolean values.
2952 Change father to parent.
2954 * ira-lives.c: Remove all forward prototypes of static
2955 functions. Use type bool and true and false for boolean values.
2956 Change father to parent.
2958 * ira-emit.c: Ditto.
2962 * ira-costs.c: Remove all forward prototypes of static
2963 functions. Use type bool and true and false for boolean values.
2964 Change father to parent.
2967 * ira-build.c: Remove all forward prototypes of static functions
2968 except for find_allocno_copy. Use type bool and true and false
2969 for boolean values. Change father to parent.
2971 * ira.h: Use type bool for boolean values.
2973 * reload1.c (reload): Pass false instead of FALSE.
2975 2008-06-10 Vladimir Makarov <vmakarov@redhat.com>
2977 * caller-save.c (insert_restore, insert_save): Don't require
2978 alignment more than PREFERRED_STACK_BOUNDARY in asserts.
2980 2008-06-10 Vladimir Makarov <vmakarov@redhat.com>
2982 * ira-int.h (allocno_copy): Change comments.
2984 * ira-conflicts.c (build_conflict_bit_table): Use cast in printf
2987 2008-06-10 Vladimir Makarov <vmakarov@redhat.com>
2989 * common.opt (fira-move-spills): Remove.
2991 * caller-save.c: Add more comments.
2992 (save_call_clobbered_regs): Remove flag_ira_move_spills.
2994 * doc/invoke.texi (-fno-ira-move-spills): Remove.
2996 2008-06-06 Vladimir Makarov <vmakarov@redhat.com>
2998 * ira-build.c (ira_flattening): Check first info propagation.
3000 * config/alpha/alpha.h (IRA_COVER_CLASSES): New.
3002 2008-06-03 Vladimir Makarov <vmakarov@redhat.com>
3004 * caller-saves.c (mark_referenced_regs): Add new parameter.
3005 Process increments/decrements.
3006 (set_regs): Rename to modified_regs.
3007 (calculate_local_save_info, save_call_clobbered_regs): Pass the
3008 new parameter value to mark_referenced_regs.
3010 * ira-costs.c (find_allocno_class_costs): Always use important
3013 * reload1.c (reload): Clear changed_allocation_pseudos at the end
3016 2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3018 * ira-build.c (allocno_range_compare_func): Stabilize sort.
3020 2008-05-30 Vladimir Makarov <vmakarov@redhat.com>
3021 Merge 132243:136204 from trunk
3022 * ira.c (setup_eliminable_regset): Use cfun.
3023 (ira): Set up DF_VERIFY_SCHEDULED.
3025 * ira-lives.c (process_bb_node_lives): Use cfun.
3027 * ira_build (ira_build): Use crtl.
3029 * local-alloc.c (update_equiv_regs): Rescan equivalent insn.
3031 * final (rest_of_handle_final): Use crtl.
3033 * caller-save.c (save_call_clobbered_regs): Initialize save.
3035 2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3037 * config/avr/avr.h (IRA_COVER_CLASSES): New macro
3039 * reload1.c (find_reg): Process registers in register allocation
3042 2008-05-29 Vladimir Makarov <vmakarov@redhat.com>
3044 * Makefile.in (caller-save.o): Add CFGLOOP_H.
3046 * ira.c (ira): Call flow_loops_find after the allocation before
3049 * global.c (print_insn_chain): Print bitmap saved.
3051 * reload.h (insn_chain): Add members saved and saved_pseudo_regno.
3053 * reload1.c (changed_allocation_pseudos): New bitmap.
3054 (init_reload): Initiate the bitmap.
3055 (new_insn_chain): Initiate bitmap saved.
3056 (order_regs_for_reload): Check bitmap saved.
3057 (find_reg): Check bitmap saved to find register.
3058 (delete_caller_save_insns): Print about removing caller-save insn.
3059 Invalidate reload register taken from saved registers.
3060 Recalculate used_spill_regs.
3061 (finish_spills): Check bitmap saved. Set up
3062 changed_allocation_pseudos. Remove sanity check.
3064 * caller-save.c (cfgloop.h): Add the header.
3065 (set_regs): New variable.
3066 (bb_info): Remove members empty_save_in_p, kill, gen. Add members
3067 empty_save_out_p, empty_restore_in_p, save_kill, save_gen,
3068 restore_kill, restore_gen, free_gen, restore_in, restore_out,
3069 free_in, free_out, live_at_end, restore_here, restore_in_mode,
3070 restore_out_mode, save_in_pseudo, save_out_pseudo,
3071 restore_in_pseudo, restore_out_pseudo.
3072 (loop_info): New structure.
3073 (LOOP_INFO): New macro.
3074 (calculate_local_save_info): Add calculation of new bb_info
3075 members for local info.
3076 (restore_trans_fun, restore_con_fun_0, restore_con_fun_n,
3077 calculate_restore_in_out, calculate_restore_here, free_trans_fun,
3078 free_con_fun_0, free_con_fun_n, calculate_free_in_out): New
3080 (make_global_save_analysis): Add calculation of new bb_info
3081 members for global info.
3082 (print_hard_reg_set_and_mode): Rename to
3083 print_annotated_hard_reg_set. Print pseudo regnos too.
3084 (print_save_data): Add printing new bb_info members.
3085 (set_hard_reg_saved): New parameters from_saved_pseudo,
3086 save_pseudo. Set them up.
3087 (save_call_clobbered_regs): Rewrite.
3088 (mark_referenced_regs): Set up set_regs.
3089 (insert_restore, insert_save): New parameter save_pseudo. Use it
3090 for setting save_pseudo_regno and for debugging output.
3092 * ira-conflicts.c (build_conflict_bit_table): Check min/max.
3094 * ira-build.c (conflict_vector_profitable_p): Ditto.
3095 (clear_allocno_conflicts): Check that conflict allocno array size.
3097 2008-05-21 Vladimir Makarov <vmakarov@redhat.com>
3099 * ira.c (setup_preferred_alternate_classes): Remove.
3100 (setup_preferred_alternate_classes_for_new_pseudos): New.
3101 (setup_preferred_alternate_classes): Set memory cost for NO_REGS
3103 (ira): Remove setup_preferred_alternate_classes. Call
3104 setup_preferred_alternate_classes_for_new_pseudos.
3106 * ira-costs.c (record_reg_classes): Don't decrease frequency for
3108 (record_operand_costs): Use memcpy instead of memmove.
3109 (print_costs): Use regno instead of allocno number in
3110 invalid_mode_change_p.
3111 (find_allocno_class_costs): Set up preferred and alternative
3114 2008-05-18 Vladimir Makarov <vmakarov@redhat.com>
3115 PR tree-optimization/26854
3117 * timevar.def (TV_RELOAD): New timer.
3119 * ira.c (ira): Use TV_IRA and TV_RELOAD.
3120 (pass_ira): Remove TV_IRA.
3122 * Makefile.in (ira-color.o): Add SPLAY_TREE_H.
3124 * ira-conflicts.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
3126 * ira-int.h (DEF_VEC_P, DEF_ALLOCC_P): Move from ira-conflicts.c and
3128 (struct allocno): New bitfield splay_removed_p.
3129 (ALLOCNO_MAY_BE_SPILLED_P): New macro.
3131 * ira-color.c (splay-tree.h): Add the header.
3132 (allocno_spill_priority_compare, splay_tree_allocate,
3133 splay_tree_free): New functions.
3134 (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
3135 (sorted_allocnos_for_spilling): Rename to allocnos_for_spilling.
3136 (splay_tree_node_pool, removed_splay_allocno_vec,
3137 uncolorable_allocnos_num, uncolorable_allocnos_splay_tree): New
3139 (add_allocno_to_bucket, add_allocno_to_ordered_bucket,
3140 delete_allocno_from_bucket): Update uncolorable_allocnos_num.
3141 (USE_SPLAY_P): New macro.
3142 (push_allocno_to_stack): Remove allocno from the splay tree.
3143 (push_allocnos_to_stack): Use the splay trees.
3144 (do_coloring): Create and finish splay_tree_node_pool.
3145 Move allocation/deallocation of allocnos_for_spilling to here...
3146 (initiate_ira_assign, finish_ira_assign): Move
3147 allocnos_for_spilling from here...
3148 (ira_color): Allocate/deallocate removed_splay_allocno_vec.
3150 * ira-build.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
3151 (create_allocno): Initiate ALLOCNO_SPLAY_REMOVED_P.
3153 2008-05-12 Vladimir Makarov <vmakarov@redhat.com>
3155 * Makefile.in (ira-build.o): Add sparseset.h.
3157 * ira-build.c (sparseset.h): Add.
3158 (remove_wrong_conflicts, change_allocno_conflicts,
3159 check_and_add_conflicts, add_conflict_with_underlying_allocnos):
3161 (finish_loop_tree_node, clear_allocno_conflicts,
3162 change_allocno_in_range_list): New functions.
3163 (allocnos_bitmap): New variable.
3164 (finish_loop_tree_nodes): Use finish_loop_tree_node.
3165 (initiate_allocnos): Initiate allocno conflict id by its allocno
3167 (conflict_vector_profitable_p): Use allocno min/max attributes.
3168 (temp_change_bit_vec): Remove.
3169 (finish_allocno): Nullify the corresponding element in allocnos
3170 and conflict_id_allocno_map.
3171 (local_allocnos_bitmap): Remove.
3172 (create_loop_tree_node_caps): Use local_allocnos_bitmap instead of
3173 local_allocnos_bitmap.
3174 (regno_top_level_allocno_map): Move to ira_flattening.
3175 (ira_flattening): Rewriting conflict rebuilding.
3176 (ira_build): Allocate/free allocnos_bitmap. Move
3177 create_allocno_live_ranges before creation of allocno caps.
3179 * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
3181 (create_allocno_live_ranges): Call propagate_new_info.
3183 * ira-color.c (ira_fast_allocation): Collect allocnos for sorting.
3185 * ira-conflicts.c (propagate_allocno_info): Rename to
3186 propagate_allocno_copy_info. Propagate only copies.
3187 (propagate_info): Rename to propagate_copy_info.
3189 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3191 * toplev.c (backend_init_target): Move init_ira call from here...
3192 (lang_dependent_init_target): ...to here.
3194 2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3196 * ira.c (setup_class_subset_and_memory_move_costs): Don't calculate
3197 memory move costs for NO_REGS.
3199 2008-05-08 Vladimir Makarov <vmakarov@redhat.com>
3201 * ira-int.h (loop_tree_node): New members subloops and
3204 * ira-conflicts.c (propagate_modified_regnos): Check that it is a
3206 (ira_build_conflicts): Use TRUE for traverse_loop_tree.
3208 * ira-color.c (color_pass): Check that it is a
3209 loop node. Use subloops and subloop_next for traversing.
3210 (move_spill_restore): Ditto.
3211 (coalesced_pseudo_reg_freq_compare,
3212 coalesced_pseudo_reg_slot_compare, pseudo_reg_compare): Don't
3215 * ira-lives.c (create_allocno_live_ranges): Use TRUE for
3218 * ira-emit.c (ira_emit): Ditto.
3220 * ira-build.c (add_loop_to_tree): Set up subloops and
3222 (setup_loop_tree_level): Use subloops and subloop_next for
3224 (form_loop_tree): Initialize subloops and subloop_next.
3225 (traverse_loop_tree): Change 1st parameter semantics. Rewrite the
3227 (create_loop_tree_node_caps): Check that it is a loop node.
3228 (check_and_add_conflicts): Check allocno loop nodes.
3229 (add_conflict_with_underlying_allocnos): Use subloops and
3230 subloop_next for traversing.
3232 * ira.c (chain_freq_compare, chain_bb_compare): Don't discard
3234 (ira): Call regstat functions second time only if new pseudos are
3237 * ira-costs.c (find_allocno_class_costs): Use TRUE for
3239 (setup_allocno_cover_class_and_costs): Ditto.
3241 2008-05-06 Vladimir Makarov <vmakarov@redhat.com>
3243 PR rtl-optimization/36028
3244 * caller-save.c (setup_save_areas): Adjust reused stack slot.
3246 2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3248 * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3249 STACK_REGS is defined.
3251 2008-05-05 Vladimir Makarov <vmakarov@redhat.com>
3253 * ira-color.c (allocno_assign_compare_func): Remove.
3254 (ira_fast_allocation): Rewrite.
3256 2008-05-02 Vladimir Makarov <vmakarov@redhat.com>
3258 * ira-conflicts.c (print_conflicts): Exclude non-allocatable hard
3259 regs and hard regs from different cover classes.
3260 (ira_build_conflicts): Build conflicts only for optimization mode.
3262 * cfgloopanal.c (estimate_reg_pressure_cost): Decrease cost only
3263 for optimization mode.
3265 * caller-save.c (caller-save.c, calculate_local_save_info,
3266 save_call_clobbered_regs): Do save/restore placement optimization
3267 and sharing stack slots only for optimization mode.
3269 * ira-int.h (set_allocno_cover_class, ira_fast_allocation): New
3272 * ira-color.c (assign_hard_reg): Clear conflicting_regs.
3273 (allocno_assign_compare_func, allocno_assign_compare_func): New
3276 * global.c (build_insn_chain): Add spilled pseudos only in
3279 * ira-emit.c (modify_move_list): Use set_allocno_cover_class.
3281 * alias.c (nonoverlapping_memrefs_p): Check addresses only in
3284 * ira-build.c (create_allocno): Initialize
3285 ALLOCNO_CONFLICT_HARD_REGS and ALLOCNO_TOTAL_CONFLICT_HARD_REGS by
3286 non-allocatable hard reg set.
3287 (set_allocno_cover_class): New function.
3288 (create_cap_allocno): Use set_allocno_cover_class.
3289 (ira_build): Call create_loop_tree_node_caps,
3290 propagate_info_to_loop_tree_node_caps, and
3291 propagate_info_to_loop_tree_node_caps only in optimization mode.
3292 * ira.c (setup_reg_renumber): Add optimize to ira_assert.
3293 (ira): Call find_reg_equiv_invariant_const, ira_color,
3294 sort_insn_chain, and fix_reg_equiv_init only in optimization mode.
3295 Call ira_fast_allocation for -O0. Use right argument for reload.
3297 * ira-costs.c (find_allocno_class_costs): Use important_classes
3298 only for optimization mode.
3299 (setup_allocno_cover_class_and_costs): Use
3300 set_allocno_cover_class. Initialize cost vectors only in
3301 optimization mode. Call process_bb_node_for_hard_reg_moves only
3302 in optimization mode.
3304 * reload1.c (compute_use_by_pseudos): Add optimize to ira_assert.
3305 (reload): Sort pseudo-registers only optimization mode. Restore
3306 original order for insn chain only in optimization mode.
3307 (calculate_needs_all_insns): Call mark_memory_move_deletion only
3308 in optimization mode.
3309 (count_pseudo, count_spilled_pseudo): Check spilled pseudos only
3310 in optimization mode.
3311 (alter_reg): Share stack slots only in optimization mode.
3312 (finish_spills): Check spilled pseudos only in optimization mode.
3313 (emit_input_reload_insns, delete_output_reload): Call
3314 mark_allocation_change only in optimization mode.
3316 2008-05-01 Vladimir Makarov <vmakarov@redhat.com>
3318 * ira-int.h (IRA_BB_NODE_BY_INDEX, IRA_LOOP_NODE_BY_INDEX): Use
3319 gcc_unreachable instead of exit.
3320 (struct allocno): New members min, max, and conflict_id.
3321 (ALLOCNO_MIN, ALLOCNO_MAX, ALLOCNO_CONFLICT_ID): New macros.
3322 (conflict_id_allocno_map):
3323 (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
3324 TEST_ALLOCNO_SET_BIT): Add two new parameters. Add versions for
3326 (allocno_set_iterator): Add new member start_val.
3327 (allocno_set_iter_init): Add two new parameters. Set up
3329 (allocno_set_iter_cond): Use start_val.
3330 (FOR_EACH_ALLOCNO_IN_SET): Add two new parameters.
3331 (allocno_set_words): Remove.
3332 (allocno_conflict_iterator): Add new member base_conflict_id.
3333 (allocno_conflict_iter_init): Set up base_conflict_id. Use
3334 ALLOCNO_MIN and ALLOCNO_MAX.
3335 (allocno_conflict_iter_cond): Use conflict_id_allocno_map and
3338 * ira-lives.c: Include sparseset.h.
3339 (allocno_set_words, SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE,
3340 TEST_ALLOCNO_LIVE, allocnos_live_bitmap): Remove.
3341 (allocnos_live): Define as sparseset.
3342 (make_regno_born, clear_allocno_live, mark_reg_store,
3343 mark_reg_death, process_single_reg_class_operands,
3344 process_bb_node_lives, create_allocno_live_ranges): Don't use
3345 allocnos_live_bitmap. Use allocnos_live as sparseset.
3347 * Makefile.in (ira-conflicts.o, ira-lives.o): Add sparseset.h
3349 * ira-conflicts.c: Add sparseset.h header.
3350 (mirror_conflicts): Remove.
3351 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE): Remove.
3352 (allocnos_live): Remove.
3353 (CONFLICT_P): Remove
3354 (CONFLICT_ALLOCNO_P): New.
3355 (build_conflict_bit_table): Use sparseset. Use FOR_EACH_ALLOCNO.
3356 Allocate bits for [min..max] range. Report conflict bit table
3357 sizes. Setup conflicts for both allocnos.
3358 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
3359 (remove_conflict_allocno_copies): Use CONFLICT_ALLOCNO_P. Rename
3360 conflict_allocno_copy_varray to conflict_allocno_copy_vec and make
3362 (build_allocno_conflicts): Use two new arguments for
3363 FOR_EACH_ALLOCNO_IN_SET. Use conflict_id_allocno_map. Modify
3364 calculation of ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE. Use two new
3365 arguments for SET_ALLOCNO_SET_BIT.
3366 (ira_build_conflicts): Don't call mirror_conflicts.
3368 * ira-color.c (varray.h): Remove.
3369 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for
3371 (allocno_stack_varray): Rename to allocno_stack_vec. Make it a
3373 (assign_hard_reg, push_allocno_to_stack, pop_allocnos_from_stack,
3374 ira_color): Use allocno_stack_vec as VEC.
3376 * ira-build.c (setup_min_max_allocno_live_range_point,
3377 allocno_range_compare_func, sort_conflict_id_allocno_map,
3378 setup_min_max_conflict_allocno_ids): New function.
3379 (conflict_id_allocno_map, conflict_id_allocno_map_vec): New global
3381 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for allocno vectors.
3382 (allocno_varray): Rename to allocno_vec and make it a VEC.
3383 (initiate_allocnos): Initiate conflict_id_allocno_map_vec. Use
3384 allocno_vec as a VEC.
3385 (create_allocno): Initiate min, max, and conflict_id_allocno.
3386 Update conflict_id_allocno_map. Use allocno_vec as a VEC.
3387 (allocate_allocno_conflict_bit_vec): Use ALLOCNO_MIN and
3389 (add_to_allocno_conflicts): Ditto.
3390 (remove_wrong_conflicts): Ditto. Use conflict_id_allocno_map.
3391 (change_allocno_conflicts): Ditto. Use add_to_allocno_conflicts
3392 instead of SET_ALLOCNO_SET_BIT.
3393 (finish_allocnos): Free conflict_id_allocno_map_vec. Use
3394 allocno_vec as a VEC.
3395 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
3396 (copy_varray): Rename to copy_vec and make it a VEC.
3397 (initiate_copies, create_copy, finish_copies): Use copy_vec as
3399 (ira_build): Call setup_min_max_allocno_live_range_point,
3400 sort_conflict_id_allocno_map, and
3401 setup_min_max_conflict_allocno_ids.
3403 * ira-emit.c (move_t): New typedef.
3404 (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for move vectors.
3405 (move_varray): Rename it to move_vec and make it a VEC.
3406 (emit_move_list, add_range_and_copies_from_move_list): Use move_t.
3407 (traverse_moves, ira_emit): Ditto. Use move_vec as a VEC.
3408 (modify_move_list): Ditto. Set up conflict_id, min, and max for
3411 2008-04-10 Vladimir Makarov <vmakarov@redhat.com>
3413 * reload1.c (substitute, gen_reload_chain_without_interm_reg_p):
3415 (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3417 2008-04-09 Vladimir Makarov <vmakarov@redhat.com>
3419 * ira.c (ira): Move allocate_initial_values after initializing reg
3422 2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3424 * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3426 2008-04-08 Vladimir Makarov <vmakarov@redhat.com>
3428 * ira-color.c (assign_hard_reg): Add debug printing.
3430 * ira-lives.c (mark_reg_store, mark_reg_death,
3431 process_bb_node_lives): Ignore hard regno of class NO_REGS.
3433 * ira.c: Fix typos in comments.
3435 2008-04-07 Vladimir Makarov <vmakarov@redhat.com>
3437 * cfgloopanal.c (estimate_reg_pressure_cost): Decrease register
3438 pressure cost for IRA regional allocation.
3440 * ira.c: Add IRA overview.
3442 2008-04-06 Vladimir Makarov <vmakarov@redhat.com>
3444 * ira-int.h (reg_class_intersect, reg_class_union): Add comments.
3446 * hard-reg-set.h (reg_class_subclasses): New external definition.
3448 * ira.c (setup_reg_class_intersect_union): Define for classes
3449 containing no hard registers available for allocation.
3451 * regclass.c (reg_class_subclasses): Make it external.
3453 * config/sh/sh.h (IRA_COVER_CLASSES): Add TARGET_REGS.
3455 2008-04-05 Vladimir Makarov <vmakarov@redhat.com>
3457 * toplev.c (backend_init_target): Move init_ira after
3458 init_fake_stack_mems.
3460 * config/sh/sh.c (sh_secondary_reload): Remove check of x on null.
3462 2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3464 * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3466 2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3468 * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3469 * config/sh/sh.c (sh_secondary_reload): Return NO_REGS for
3471 * config/sh/sh.md (movsicc_true+3): Check if emit returns
3473 * final.c (update_regs_ever_live): Check null rtl.
3475 2008-04-04 Vladimir Makarov <vmakarov@redhat.com>
3477 * reload1.c: Remove spaces before [.
3479 * ira-conflicts.c, ira-int.h, ira-color.c, ira-lives.c,
3480 ira-emit.c, ira-build.c, ira.c, ira.h, ira-costs.c: Ditto. Use
3483 * caller-save.c: Ditto.
3484 (set_up_bb_rts_numbers, rpost_cmp): Remove.
3485 (save_trans_fun, save_con_fun_0, save_con_fun_n): New functions.
3486 (struct bb_info): Remove member rts_number.
3487 (calculate_local_save_info): Setup empty_save_in_p for abnormal
3489 (all_blocks): New variable.
3490 (calculate_save_in_out): Use df_simple_dataflow.
3491 (make_global_save_analysis): Allocate/setup/free all_blocks.
3493 2008-04-04 Vladimir Makarov <vmakarov@redhat.com>
3495 * ira-costs.c: Use GPL3 in the header.
3496 (find_allocno_class_costs): Use all important
3497 classes on the 1st iteration.
3499 2008-04-03 Vladimir Makarov <vmakarov@redhat.com>
3501 PR rtl-optimization/35817
3502 * ira-costs.c (ira-costs.c): Check have_regs_of_mode.
3504 2008-04-02 Vladimir Makarov <vmakarov@redhat.com>
3506 * ira-color.c (start_allocno_priorities): Permit zero allocno
3509 2008-03-31 Vladimir Makarov <vmakarov@redhat.com>
3511 * ira-color.c (push_allocnos_to_stack): Don't use double. Use
3512 const as the secondary heuristic.
3514 * ira-emit.c (set_allocno_reg): Change cap reg too. Process all
3517 * doc/invoke.texi (-fira-coalescing): Change to -fira-coalesce.
3519 * toplev.h (flag_lower_subreg): Remove.
3521 * global.c (build_insn_chain): Remove the prototype.
3523 * alias.c (value_addr_p): Change comment.
3525 * emit-rtl.c (gen_lowpart_common): Remove CONCATN.
3527 * simplify-rtx.c (simplify_subreg): Ditto.
3529 * common.opt (flower-subreg): Remove.
3531 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Fix last
3534 2008-03-29 Vladimir Makarov <vmakarov@redhat.com>
3536 * ira-lives (process_single_reg_class_operands): Fix typo in
3537 setting up cover_class.
3539 2008-03-28 Vladimir Makarov <vmakarov@redhat.com>
3541 * ira-conflicts.c, global.c, regmove.c, function.c,
3542 ira-emit.c, alias.c, reload1.c: Add comments, fix comments.
3544 * reload.h: Add 2008 to the Copyright.
3546 * caller-save.c: Add comments.
3547 (reg_save_code, reg_restore_code, initiate_saved_hard_regs,
3548 new_saved_hard_reg, finish_saved_hard_regs,
3549 saved_hard_reg_compare_func, calculate_local_save_info,
3550 set_up_bb_rts_numbers, rpost_cmp, calculate_save_in_out,
3551 calculate_save_here, make_global_save_analysis,
3552 print_hard_reg_set_and_mode, print_hard_reg_set, print_save_data,
3553 set_hard_reg_saved, add_stored_regs): Add prototypes.
3555 * df-scan.c (df_get_call_refs): Use
3556 get_call_invalidated_used_regs.
3558 * ira-int.h: Add comments.
3559 (loop_tree_node): Rename inner to children.
3560 (ira_allocate_regset, ira_free_regset): Remove.
3561 (reassign_conflict_allocnos): Remove one parameter.
3563 * ira-color.c: Add comments.
3564 (setup_curr_costs): Rename to update_curr_costs.
3565 (allocno_cost_compare_func, print_coalesced_allocno,
3566 allocno_reload_assign): Add prototypes.
3567 (reassign_conflict_allocnos): Remove one parameter.
3569 * ira-lives.c: Add comments.
3570 (make_regno_dead, make_regno_born_and_dead,
3571 create_start_finish_chains, print_allocno_live_ranges,
3572 print_live_ranges): Add protoypes.
3574 * ira-build.c: Add comments.
3575 (copy_allocno_live_range_list): Make it static.
3577 * ira.c: Add comments.
3578 (setup_cover_classes): Rename to
3579 setup_cover_and_important_classes.
3580 (free_register_move_costs, chain_freq_compare, chain_bb_compare,
3581 ira): New prototypes.
3582 (mode_inner_mode, setup_inner_mode, ira_allocate_regset,
3583 ira_free_regset): Remove.
3585 * ira.h: Add comments.
3586 (SECONDARY_INPUT_RELOAD_CLASS,
3587 SECONDARY_OUTPUT_RELOAD_CLASS, HAVE_SECONDARY_RELOADS,
3588 MEMORY_MOVE_COST, reg_equiv_memory_loc_varray, reg_equiv_constant,
3589 reg_equiv_memory_loc, reg_equiv_address, reg_equiv_mem, ira):
3592 * ira-costs.c: Add comments.
3593 (find_allocno_class_costs): Make common class a cover class.
3595 2008-03-20 Vladimir Makarov <vmakarov@redhat.com>
3597 * ira-int.h (allocno): Rename conflict_allocno_vec and
3598 conflict_allocno_vec_size into conflict_allocno_array and
3599 conflict_allocno_array_size. Remove conflict_allocnos_num.
3600 Rename total_conflict_allocnos_num into conflict_allocnos_num New
3601 members child_renamed_p and conflict_vec_p.
3602 (ALLOCNO_CONFLICT_ALLOCNO_VEC): Rename to
3603 ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
3604 (ALLOCNO_CONFLICT_ALLOCNO_VEC_SIZE): Rename to
3605 ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.
3606 (ALLOCNO_CHILD_RENAMED_P, ALLOCNO_CONFLICT_VEC_P): New macros.
3607 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Change to
3608 FOR_EACH_ALLOCNO_IN_SET.
3609 (allocno_set_iterator): New typedef.
3610 (allocno_set_iter_init, allocno_set_iter_cond,
3611 allocno_set_iter_next): New functions.
3612 (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
3614 (allocno_iterator): New typedef.
3615 (allocno_iter_init, allocno_iter_cond): New functions.
3616 (FOR_EACH_ALLOCNO): New macro.
3617 (copy_iterator): New typedef.
3618 (copy_iter_init, copy_iter_cond): New functions.
3619 (FOR_EACH_COPY): New macro.
3620 (allocno_conflict_iterator): New typedef.
3621 (allocno_conflict_iter_init, allocno_conflict_iter_cond,
3622 allocno_conflict_iter_next): New functions.
3623 (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
3625 (FOR_EACH_ALLOCNO_CONFLICT): New macro.
3627 * ira-conflicts.c (conflicts): Change type.
3628 (CONFLICT_P): Use one more index for conflicts.
3629 (build_conflict_bit_table): Change allocation and initialization
3631 (mirror_conflicts): Rewrite.
3632 (remove_conflict_allocno_copies): Use FOR_EACH_ALLOCNO.
3633 (build_allocno_conflict_vects): Rename to build_allocno_conflicts.
3635 (print_conflicts): Use FOR_EACH_ALLOCNO, don't print star.
3636 (ira_build_conflicts): Use FOR_EACH_ALLOCNO.
3638 * ira-color.c (assign_hard_reg): Use FOR_EACH_ALLOCNO_CONFLICT.
3639 Use min_full_cost for finding register profitability.
3640 (push_allocno_to_stack): Use FOR_EACH_ALLOCNO_CONFLICT.
3641 (setup_allocno_left_conflicts_num, coalesced_allocno_conflict_p):
3643 (move_spill_restore): Use FOR_EACH_ALLOCNO.
3644 (reassign_conflict_allocnos): Ditto. Use
3645 FOR_EACH_ALLOCNO_CONFLICT.
3646 (sort_regnos_for_alter_reg): Use FOR_EACH_ALLOCNO.
3647 (reassign_pseudos): Use FOR_EACH_ALLOCNO_CONFLICT.
3649 * ira-lives.c (make_regno_born, clear_allocno_live,
3650 mark_reg_death, process_single_reg_class_operands,
3651 process_bb_node_lives): Use FOR_EACH_ALLOCNO_IN_SET.
3652 (create_start_finish_chains, print_live_ranges): Use
3655 * ira-emit.c (set_allocno_reg): Set up ALLOCNO_CHILD_RENAMED_P.
3656 (set_allocno_somewhere_renamed_p): Use
3657 ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
3658 (ira_emit): Use FOR_EACH_ALLOCNO.
3660 * ira.c (setup_reg_renumber, setup_allocno_assignment_flags,
3661 calculate_allocation_cost, check_allocation,
3662 print_redundant_copies, setup_preferred_alternate_classes): Use
3665 * ira-costs.c (print_costs, setup_allocno_cover_class_and_costs,
3666 ira_costs, tune_allocno_costs_and_cover_classes): Use
3669 * ira-build.c (check_allocno_conflict_vec): Remove.
3670 (add_to_allocno_conflict_vec): Rename to
3671 allocate_allocno_conflicts. Rewrite.
3672 (allocate_allocno_conflict_bit_vec, allocate_allocno_conflicts,
3673 remove_wrong_conflicts, change_allocno_conflicts): New functions.
3674 (rebuild_regno_allocno_maps): Use FOR_EACH_ALLOCNO.
3675 (create_allocno): Initialize ALLOCNO_CHILD_RENAMED_P and
3676 ALLOCNO_CONFLICT_VEC_P.
3677 (conflict_vector_profitable_p): New function.
3678 (compress_allocno_conflict_vec): Use
3679 ALLOCNO_CONFLICT_ALLOCNO_ARRAY and don't use
3680 ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM.
3681 (compress_conflict_vecs): Use FOR_EACH_ALLOCNO. Check
3682 ALLOCNO_CONFLICT_VEC_P.
3683 (propagate_info_to_cap): Use FOR_EACH_ALLOCNO_CONFLICT.
3684 (finish_allocnos): Use FOR_EACH_ALLOCNO.
3685 (finish_copies): Use FOR_EACH_COPY.
3686 (check_and_add_conflicts): Change second parameter. Use
3687 add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
3688 (temp_change_bit_vec): New variable.
3689 (ira_flattening): Use FOR_EACH_ALLOCNO and FOR_EACH_COPY. Use
3690 remove_wrong_conflicts, change_allocno_conflicts. Allocate and
3691 free temp_change_bit_vec. Nullify `allocnos' elements for removed
3692 allocnos. Check ALLOCNO_CHILD_RENAMED_P for removing obsolete
3693 conflicts. Don't compress and enumerate allocnos and copies.
3694 Nullify `copies' elements for removed copies. Use
3695 add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
3696 (ira_build): Use FOR_EACH_ALLOCNO.
3698 2008-03-18 Vladimir Makarov <vmakarov@redhat.com>
3700 * common.opt (fira-algorithm): Fix description
3702 * ira-int.h (allocno): Remove best_class.
3703 (ALLOCNO_BEST_CLASS): Remove.
3704 (strict_class_subset_p): Remove.
3706 * ira-color.c (get_coalesced_allocnos_best_class_and_freq): Rename
3707 to get_coalesced_allocnos_attributes. Change prototype.
3708 Calculate available regs.
3709 (bucket_allocno_compare_func, sort_bucket): New functions.
3710 (sorted_allocnos_for_spilling): New variable.
3711 (assign_hard_reg): Don't add prohibited_class_mode_regs to
3712 conflicting_regs. Use it in loop for finding the best hard
3714 (add_allocno_to_ordered_bucket): Use bucket_allocno_compare_func.
3715 (push_only_colorable): Call sort_bucket.
3716 (push_allocnos_to_stack): Use sorted_allocnos_for_spilling instead
3718 (put_allocno_into_bucket): Use add_allocno_to_bucket instead of
3719 add_allocno_to_ordered_bucket.
3720 (initiate_ira_assign): Allocate sorted_allocnos_for_spilling.
3721 (finish_ira_assign): Free sorted_allocnos_for_spilling.
3723 * ira-emit.c (modify_move_list): Remove setting ALLOCNO_BEST_CLASS
3726 * ira-build.c (create_allocno, create_cap_allocno): Ditto.
3728 * ira.c (strict_class_subset_p): Remove.
3729 (setup_class_subset_and_memory_move_costs): Remove setting
3730 strict_class_subset_p up.
3732 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove
3733 setting ALLOCNO_BEST_CLASS up.
3735 2008-03-12 Vladimir Makarov <vmakarov@redhat.com>
3737 * ira-int.h (allocno_pool, copy_pool, allocno_live_range_pool):
3738 Remove external definitions.
3739 (free_allocno_updated_costs, allocate_cost_vector,
3740 free_cost_vector): New prototypes.
3741 (allocate_and_set_costs, allocate_and_copy_costs,
3742 allocate_and_set_or_copy_costs): Change prototypes. Use
3743 allocate_cost_vector instead of ira_allocate.
3745 * ira-conflicts.c (add_insn_allocno_copies): Pass register class
3746 to allocate_and_set_costs.
3748 * ira-color.c (update_copy_costs_1): Pass register class to
3749 allocate_and_set_or_copy_costs.
3750 (assign_hard_reg): Pass register class to allocate_and_copy_costs.
3752 (pop_allocnos_from_stack, color_allocnos): Check updated costs.
3753 (color_pass): Pass register class to allocate_and_set_costs. Free
3755 (move_spill_restore): Check reg equivalences.
3756 (setup_curr_costs): Pass register class to
3757 allocate_and_set_or_copy_costs.
3758 (reassign_conflict_allocnos, allocno_reload_assign): Check updated
3760 (calculate_spill_cost): Use REG_N_REFS after checking regno.
3762 * ira-lives.c (process_single_reg_class_operands): Pass register
3763 class to allocate_and_set_costs.
3765 * ira-build.c (allocno_pool, allocno_live_range_pool): New
3767 (initiate_allocnos): Initiate the pools.
3768 (free_allocno_updated_costs): New function.
3769 (finish_allocno): Use free_cost_vector. Free the pools.
3770 (copy_pool): New variable.
3771 (initiate_copies): Initiate the pool.
3772 (cost_vector_pool): New variable.
3773 (initiate_cost_vectors, allocate_cost_vector, free_cost_vector,
3774 finish_cost_vectors): New functions.
3775 (ira_flattening): Call free_allocno_updated_costs. Check updated
3777 (ira_build): Call initiate_cost_vectors.
3778 (ira_destroy): Call finish_cost_vectors.
3780 * ira.c (find_reg_equiv_invariant_const): Check read only memory.
3781 (setup_reg_renumber, setup_allocno_assignment_flags): Call
3782 free_allocno_updated_costs.
3783 (ira): Remove initializations and freeing allocno_pool, copy_pool,
3784 and allocno_live_range_pool. Call generate_setjmp_warnings.
3786 * ira-costs.c (process_bb_node_for_hard_reg_moves,
3787 tune_allocno_costs_and_cover_classes): Pass register class to
3788 allocate_and_set_costs.
3790 * caller-save.c (save_slots_num, save_slots): New variables.
3791 (init_save_areas): Initiate save_slots_num.
3792 (setup_save_areas): Use stack slots from the previous reload
3793 iteration independetly what slot was used on the previous pass.
3795 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
3797 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3798 Remove commutativity hint.
3800 2008-03-06 Vladimir Makarov <vmakarov@redhat.com>
3802 * ira.h (sort_regnos_for_alter_reg): Add parameter.
3804 * reload1.c (reload): Pass additional argument to
3805 sort_regnos_for_alter_reg.
3807 * ira-int.h (reg_equiv_len): New global variable.
3809 * ira-emit.c (change_loop): Add assertion.
3811 * ira.c (reg_equiv_len): New global variable.
3812 (setup_reg_renumber): Use reg_equiv_len in assertion.
3813 (ira): Initialize reg_equiv_len and spilled_reg_stack_slots.
3815 * ira-color.c (coalesced_pseudo_reg_compare): Rename to
3816 coalesced_pseudo_reg_freq_compare.
3817 (coalesced_pseudo_reg_slot_compare,
3818 setup_coalesced_allocno_costs_and_nums,
3819 collect_spilled_coalesced_allocnos, coalesce_spill_slots): New
3821 (coalesced_allocno_conflict_p): Add new parameter. Use live
3822 ranges to find conflicts for the reload.
3823 (coalesce_allocnos): Don't coalesce allocnos with equivalences.
3824 (color_pass): Check reg_quiv_len.
3825 (regno_max_ref_width): New variable.
3826 (sort_regnos_for_alter_reg): Add secondary coalescing spilled
3827 allocnos. Assign stack slot numbers. Use costs instead of
3829 (mark_allocation_change): Set up allocno hard regno.
3830 (allocno_reload_assign): Ditto.
3831 (reuse_stack_slot): Use stack slot numbers.
3832 (mark_new_stack_slot): Set up allocno slot number.
3834 * doc/passes.texi: Add more info about IRA.
3836 2008-03-03 Vladimir Makarov <vmakarov@redhat.com>
3838 * ira-conflicts.c (allocno_conflict_p): Rename to
3839 allocno_live_ranges_intersect_p.
3840 (allocno_reg_conflict_p): Rename to
3841 pseudo_live_ranges_intersect_p.
3843 * ira-lives.c (high_pressure_start_point): New variable.
3844 (update_allocno_pressure_excess_length): New function.
3845 (make_regno_dead): Call it.
3846 (set_allocno_live): Udpate high_pressure_start_point.
3847 (clear_allocno_live, mark_reg_store, mark_reg_death): Ditto.
3848 (process_bb_node_lives): Initialize high_pressure_start_point.
3849 Consider only allocatable hard regs for liveness.
3851 * ira-costs.c (record_reg_classes): Multiply cost by frequency.
3852 Use half frequency when memory is allowed. Remove check for
3853 prefferred small register classes of pseudo-registers.
3854 (scan_one_insn): Continue processing operands for moves of
3855 pseudo-registers with equivalence. Don't multiply cost by
3857 (init_ira_costs): Use bigger initial cost value.
3860 (allocno): New members somewhere_renamed_p and
3861 excess_pressure_points_num.
3862 (ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_EXCESS_PRESSURE_POINTS_NUM):
3864 (allocno_reg_conflict_p): Rename to
3865 pseudo_live_ranges_intersect_p.
3866 (allocno_conflict_p): Rename to allocno_live_ranges_intersect_p.
3868 * ira.h (sort_regnos_for_alter_reg, better_spill_reload_regno_p):
3869 New function prototypes.
3871 * ira-color.c (merge_allocnos): Remove mode check.
3872 (coalesce_allocnos): Add parameter and modify to use it for
3873 coalescing spilled allocnos.
3874 (color_allocnos): Pass parameter to coalesce_allocnos.
3875 (regno_coalesced_allocno_freq, regno_coalesced_allocno_num): New
3877 (coalesced_pseudo_reg_compare, calculate_spill_cost,
3878 sort_regnos_for_alter_reg, better_spill_reload_regno_p): New
3880 (mark_allocation_change, allocno_reload_assign, reassign_pseudos
3881 ): Use ALLOCNO_MEMORY_COST instead of ALLOCNO_UPDATED_MEMORY_COST.
3882 (reuse_stack_slot): Use pseudo_live_ranges_intersect_p instead of
3883 allocno_reg_conflict_p.
3885 * ira-emit.c (set_allocno_somewhere_renamed_p): New function.
3886 (renamed_regno_bitmap): New static variable.
3887 (change_loop): Check register pressure for creating new pseudo.
3888 Set up ALLOCNO_SOMEWHERE_RENAMED_P and renamed_regno_bitmap.
3889 (ira_emit): Allocate/deallocate renamed_regno_bitmap.
3890 Call set_allocno_somewhere_renamed_p.
3892 * ira-build.c (ira_loops): Move to ira.c.
3893 (create_allocno): Initialize ALLOCNO_SOMEWHERE_RENAMED_P and
3894 ALLOCNO_MEMORY_COST.
3895 (create_cap_allocno): Set up ALLOCNO_MEMORY_COST.
3896 (check_and_add_conflicts): Use allocno_live_ranges_intersect_p
3897 instead of allocno_conflict_p.
3898 (ira_flattening): Check conflicts of allocno renamed somewhere
3899 locally. Update ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
3900 (ira_build): Move code for finding loops to ira.c.
3901 (ira_destroy): Move code for freeing loops to ira.c.
3903 * ira.c (setup_reg_class_intersect_union): Fix calculation of
3905 (calculate_allocation_cost): Use ALLOCNO_MEMORY_COST instead of
3906 ALLOCNO_UPDATED_MEMORY_COST.
3907 (ira_loops): Move from ira-build.c.
3908 (ira): Move code for finding and freeing loops from ira-build.c.
3909 Don't use regional RA when there are too many loops.
3911 * reload1.c (pseudo_reg_compare): Remove.
3912 (reload): Use sort_regnos_for_alter_reg.
3913 (hard_regno_to_pseudo_regno): New variable.
3914 (count_pseudo): Set up hard_regno_to_pseudo_regno.
3915 (order_regs_for_reload): Initialize hard_regno_to_pseudo_regno.
3916 (count_spilled_pseudo): Update hard_regno_to_pseudo_regno.
3917 (find_reg): Use better_spill_reload_regno_p. Check
3918 hard_regno_to_pseudo_regno.
3920 * cfgloopanal.c: Include params.h.
3921 (estimate_reg_pressure_cost): Check number of loops.
3923 * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3925 * params.h (IRA_MAX_LOOPS_NUM): New macro.
3927 * Makefile.in (cfgloopanal.o): Add PARAMS_H.
3929 * doc/invoke.texi (ira-max-loops-num): Describe.
3931 2008-02-20 Vladimir Makarov <vmakarov@redhat.com>
3933 * ira.h, ira-emit.c: Add year 2008 to the copyright.
3936 (struct copy): Rename move_insn to insn.
3937 (initiate_ira_assign, finish_ira_assign, debug_allocno_copies):
3938 New function prototypes.
3940 * ira-build.c: Add year 2008 to the copyright. Rename member
3941 move_insn of the copies to insn.
3942 (find_allocno_copy): New function.
3943 (propagate_info_to_cap, add_allocno_copy): Use it.
3944 (print_allocno_copies, debug_allocno_copies): New functions.
3946 * ira-conflicts.c: Add year 2008 to the copyright. Rename member
3947 move_insn of the copies to insn.
3950 (setup_reg_class_intersect_union): Fix reg_class_union for cover
3952 (ira): Call initiate_ira_assign and finish_ira_assign. Remove
3953 setting reload_completed up.
3955 * ira-costs.c: Add year 2008 to the copyright.
3956 (ira_costs): Check modes of registers.
3958 * ira-lives.c: Add year 2008 to the copyright.
3959 (mark_reg_store, mark_reg_death, process_bb_node_lives): Don't use
3961 (process_single_reg_class_operands): Check that the hard reg
3962 belongs to the cover class.
3964 * ira-color.c: Add year 2008 to the copyright. Rename member
3965 move_insn of the copies to insn.
3966 (initiate_cost_update, finish_cost_update, update_copy_costs_1):
3968 (allocno_update_cost_check, update_cost_check): New static
3970 (update_copy_costs): Increment update_cost_check. Call
3971 update_copy_costs_1.
3972 (coalesce_allocnos): Don't coalesce already assigned allocnos or
3973 copies with null insn.
3974 (color_pass): Check loop tree node of the subloop allocno.
3975 (finish_allocno_priorities): Remove.
3976 (do_coloring): Move allocation/deallocation of
3977 consideration_allocno_bitmap into initiate_cost_update and
3979 (reassign_conflict_allocnos): Remove allocation/deallocation of
3980 sorted_allocnos. Remove call of finish_allocno_priorities.
3981 (reassign_pseudos): Remove allocation/deallocation of
3982 consideration_allocno_bitmap and sorted_allocnos. Remove call of
3983 finish_allocno_priorities.
3984 (initiate_ira_assign, finish_ira_assign): New fucntions.
3985 (ira_color): Remove allocation/deallocation of sorted_allocnos.
3986 Call initiate_ira_assign and finish_ira_assign.
3988 * postreload.c (gate_handle_postreload): Don't do post reload
3989 optimizations unless the reload is completed.
3991 * cfgloopanal.c (estimate_reg_pressure_cost): Return zero if we
3994 * recog.c (peep2_free_reg_search_ofs): New static variable.
3995 (peep2_find_free_register): Remove search_ofs. Use
3996 peep2_free_reg_search_ofs instead of it.
3997 (peephole2_optimize): Reset peep2_free_reg_search_ofs.
3999 2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
4001 * reload1.c (compute_use_by_pseudos): Permits spilled registers in
4003 (temp_pseudo_reg_arr): New variable.
4004 (reload): Use instead temp_pseudo_reg_arr of pseudo_regs. Move
4005 freeing to the function end. Don't clear spilled_pseudos for IRA.
4006 Restore original insn chain for IRA.
4007 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
4008 (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
4009 (alter_reg): Set up spilled_pseudos.
4010 (finish_spills): Set up pseudo_previous_regs only for spilled
4011 pseudos. Call reassign_pseudos once for all spilled pseudos,
4012 pass more arguments. Don't clear live_throughout and dead_or_set
4013 for spilled pseudos.
4015 2008-01-10 Vladimir Makarov <vmakarov@redhat.com>
4017 * reload1.c (compute_use_by_pseudos): Permits spilled registers in
4019 (temp_pseudo_reg_arr): New variable.
4020 (reload): Use instead temp_pseudo_reg_arr of pseudo_regs. Move
4021 freeing to the function end. Don't clear spilled_pseudos for IRA.
4022 Restore original insn chain for IRA.
4023 (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
4024 (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
4025 (alter_reg): Set up spilled_pseudos.
4026 (finish_spills): Set up pseudo_previous_regs only for spilled
4027 pseudos. Call reassign_pseudos once for all spilled pseudos,
4028 pass more arguments. Don't clear live_throughout and dead_or_set
4029 for spilled pseudos.
4031 * global.c (reg_becomes_live, build_insn_chain): Don't ignore
4032 spilled pseudos for IRA.
4034 * caller-save.c (calculate_local_save_info,
4035 save_call_clobbered_regs): Ignore spilled pseudos for IRA.
4037 * toplev.c (backend_init_target): Call init_ira.
4038 (backend_init): Move call of init_ira_once before
4039 backend_init_target.
4041 * ira.h (init_ira, sort_insn_chain, mark_memory_move_deletion):
4042 New function prototypes.
4043 (retry_ira_color): Rename to reassign_pseudos. Change
4046 * ira-int.h (allocno): New member dont_reassign_p.
4047 (ALLOCNO_DONT_REASSIGN_P): New macro.
4048 (memory_move_cost): Change element type.
4049 (register_move_cost): Change type.
4050 (register_may_move_in_cost, register_may_move_out_cost,
4051 reg_class_intersect): New arrays.
4052 (important_class_nums): Fix element type.
4053 (hard_reg_not_in_set_p): Make it static inline.
4054 (init_register_move_cost, init_ira_costs): New function
4056 (allocno_conflict_index): Remove.
4057 (allocate_and_set_costs, allocate_and_copy_costs,
4058 allocate_and_set_or_copy_costs): New static inline functions.
4060 * ira-build.c (compress_allocno_conflict_vec,
4061 compress_conflict_vecs): New functions.
4062 (allocno_conflict_index): Remove.
4063 (allocno_conflict_check, curr_allocno_conflict_check_tick): New
4065 (propagate_info_to_cap): Use allocate_and_copy_costs.
4066 (check_and_add_conflicts): Don't call allocno_conflict_index.
4067 (ira_flattening): Add some assertions. Check that cost vectors
4068 have been allocated. Don't call allocno_conflict_index. Call
4069 compress_conflict_vecs.
4071 * ira.c (memory_move_cost, register_move_cost): Change types.
4072 (register_may_move_in_cost, register_may_move_out_cost,
4073 strict_class_subset_p): New variables.
4074 (setup_class_subset_and_move_costs): Rename to
4075 setup_class_subset_and_memory_move_costs. Remove
4076 register_move_cost setup. Don't consider no_unit_alloc_regs. Add
4077 strict_class_subset_p setup.
4078 (setup_reg_class_intersect): Rename to
4079 setup_reg_class_intersect_union. Don't consider
4080 no_unit_alloc_regs. Add reg_class_union setup.
4081 (hard_reg_not_in_set_p): Move to ira-int.h.
4082 (setup_reg_subclasses): Use no_unit_alloc_regs instead of
4083 fixed_reg_set. Don't consider no_unit_alloc_regs.
4084 (important_class_nums): Fix element type.
4085 (setup_cover_classes): Use no_unit_alloc_regs instead of
4086 fixed_reg_set. Don't consider no_unit_alloc_regs.
4087 (setup_class_translate): Ditto.
4088 (reg_class_union): New variable.
4089 (init_register_move_cost, free_register_move_costs): New
4091 (init_ira_once): Initialize register_move_cost,
4092 register_may_move_in_cost, register_may_move_out_cost. Move some
4094 (init_ira): New function. Move some code from init_ira_once.
4095 Call free_register_move_costs and init_ira_costs.
4096 (calculate_allocation_cost): Check allocation of allocno hard reg
4098 (basic_block_order_nums): New variable.
4099 (chain_freq_compare, chain_bb_compare, sort_insn_chain): New
4101 (ira): Call sort_insn_chain.
4103 * ira-color.c (allocno_coalesced_p): New variable.
4104 (update_copy_costs): Use allocate_and_set_or_copy_costs.
4105 (assign_hard_reg): Clear and use
4106 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
4107 Use allocate_and_copy_costs. Use allocno cover class cost if the
4108 hard register cost vector is not allocated.
4109 (get_coalesced_allocnos_best_class_and_freq): Use
4110 reg_class_intersect instead of reg_class_subintersect.
4111 (add_allocno_to_ordered_bucket): Use strict_class_subset_p.
4112 (push_allocno_to_stack): Clear and use
4113 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
4114 (setup_allocno_left_conflicts_num): Don't setup
4115 ALLOCNO_UPDATED_HARD_REG_COSTS and
4116 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS. Clear and use
4117 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
4118 (put_allocno_into_bucket): Don't setup
4119 ALLOCNO_UPDATED_HARD_REG_COSTS and
4120 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
4121 (coalesced_allocno_conflict_p): Clear and use
4122 processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
4123 (coalesce_allocnos): Setup allocno_coalesced_p.
4124 (color_allocnos): Add processing reg class NO_REGS.
4125 (color_pass): Propagate assignment of spilled allocno not
4126 mentioned in the subregion for the mixed algorithm. Use
4127 allocate_and_set_costs.
4128 (move_spill_restore, mark_allocation_change): Check unallocated
4129 hard reg cost vectors.
4130 (setup_curr_costs): Don't setup ALLOCNO_UPDATED_HARD_REG_COSTS and
4131 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS. Use
4132 allocate_and_set_or_copy_costs.
4133 (mark_memory_move_deletion, allocno_reload_assign,
4134 pseudo_reg_compare, reassign_pseudos): New functions.
4135 (retry_ira_color): Remove.
4137 * ira-conflicts.c (add_insn_allocno_copies): Use
4138 allocate_and_set_costs.
4139 (allocno_conflict_p): Simplify the code.
4141 * ira-costs.c: Rename reg_class_subunion to reg_class_union
4143 (cost_classes, cost_classes_num, cost_class_nums,
4144 max_struct_costs_size): New variables.
4145 (copy_cost): Use init_register_move_cost instead of
4147 (record_reg_classes): Ditto. Use cost_classes and
4148 cost_classes_num instead of important_classes and
4149 important_classes_num. Use register_may_move_{in,out}_cost
4150 instead of may_move_{in,out}_cost. Check reg class intersection
4152 (record_address_regs): Use init_register_move_cost instead of
4153 init_move_cost. Use cost_classes and cost_classes_num instead of
4154 important_classes and important_classes_num. Use
4155 register_may_move_in_cost instead of may_move_in_cost.
4156 (scan_one_insn): Use cost_classes_num instead of
4157 important_classes_num.
4158 (print_costs): Use cost_classes and cost_classes_num instead of
4159 important_classes and important_classes_num.
4160 (find_allocno_class_costs): Initialize cost_classes and
4161 cost_class_nums. Use cost_classes and cost_classes_num instead of
4162 important_classes and important_classes_num.
4163 (process_bb_node_for_hard_reg_moves): Use allocate_and_set_costs.
4164 (setup_allocno_cover_class_and_costs): Use cost_classes and
4165 cost_classes_num instead of important_classes and
4166 important_classes_num.
4167 (init_ira_costs_once): Move some code to init_ira_costs. Initiate
4169 (free_ira_costs: New function. Move some code from
4170 finish_ira_costs_once.
4171 (init_ira_costs): New function. Move some code from
4172 init_ira_costs_once. Use max_struct_costs_size instead of
4173 struct_costs_size. Call free_ira_costs. Allocate cost_classes.
4174 (finish_ira_costs_once): Move some code to finish_ira_costs. Call
4176 (ira_costs): Use max_struct_costs_size instead of
4177 struct_costs_size. Use allocate_and_set_costs.
4179 * ira-emit.c (modify_move_list): Remove allocation of hard reg
4182 * ira-lives.c (process_single_reg_class_operands): Add new
4183 parameter freq. Calculate costs basing on the frequency.
4184 (process_bb_node_lives): Pass the frequency to
4185 process_single_reg_class_operands.
4187 2007-12-17 Vladimir Makarov <vmakarov@redhat.com>
4189 * doc/invoke.texi (fira-algoirthm): Remove prioirity coloring.
4190 Make mixed the default.
4192 * flags.h (ira_algorithm): Remove IRA_ALGORITHM_PRIORITY.
4194 * ira-color.c (priority_coloring): Remove.
4195 (do_coloring): Don't call priority_coloring.
4197 * opts.c (common_handle_option): Remove priority coloring option.
4199 * toplev.c (flag_ira_algorithm): Assign IRA_ALGORITHM_MIXED.
4201 * ira-build.c (check_and_add_conflicts, ira_flattening): Increase
4202 threshold for internal_flag_ira_verbose.
4204 2007-12-17 Vladimir Makarov <vmakarov@redhat.com>
4206 * common.opt (fira-assign-after-call-split, fira-biased-coloring,
4207 fira-split-around-calls): Remove.
4208 (fdump-simple-rtl, fira-verbose): New options.
4209 (fira, fira-coalesce): Initiate by 0.
4211 * opts.c (common_handle_option): Process flag_ira_verbose.
4213 * flags.h (flag_ira_verbose): New external definition.
4215 * toplev.h (flag_ira_assign_after_call_split,
4216 flag_ira_biased_coloring, flag_ira_split_around_calls): Remove.
4218 * toplev.c (flag_ira_verbose): New external declaration.
4219 (finalize): Call finish_ira_once.
4221 * print-rtl.c (flag_simple): Rename to flag_dump_simple_rtl.
4223 * doc/invoke.texi (-fno-ira-assign-after-call-split,
4224 -fira-biased-coloring, -fno-ira-split-around-calls): Remove.
4225 (-fdump-simple-rtl, -fira-verbose): New options.
4227 * caller-save.c (insert_restore, insert_save): Use
4228 adjust_address_nv instead of adjust_address. Check the mode by
4231 * ira-call.c: Remove file.
4233 * ira-lives.c: New file.
4235 * Makefile.in (ira-live.o): Add
4236 (ira-call.o): Remove.
4237 (IRA_INT_H): Add alloc-pool.h.
4239 * ira.h (finish_ira_once): New external definition.
4241 * ira-int.h (internal_flag_ira_verbose, alloc_pool allocno_pool,
4242 copy_pool, allocno_live_range_pool, ira_loop_tree_height,
4243 max_point, start_point_ranges, finish_point_ranges,
4244 prohibited_mode_move_regs, important_class_nums,
4245 ira_curr_regno_allocno_map, allocno_set_words): New external
4247 (loop_tree_node_t, allocno_live_range_t): New typedefs. Use them
4249 (ira_loop_tree_node): Rename to loop_tree_node.
4250 (loop_tree_node): New member level.
4251 (allocno_live_range): New structure.
4252 (allocno): New members nrefs, live_ranges,
4253 total_conflict_hard_regs, conflict_allocnos_num,
4254 total_conflict_allocnos_num, mem_optimized_dest,
4255 mem_optimized_dest_p, total_no_stack_reg_p. Remove members
4256 conflict_allocno_vec_active_size and original_memory_cost. Rename
4257 member curr_hard_reg_costs to updated_hard_reg_costs.
4258 (ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
4259 ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_CONFLICT_ALLOCNOS_NUM,
4260 ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM, ALLOCNO_NREFS,
4261 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4262 ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_LIVE_RANGES): New access
4264 (ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
4265 ALLOCNO_ORIGINAL_MEMORY_COST): Remove.
4266 (ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS): Rename to
4267 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
4268 (allocno_copy): New member loop_tree_node.
4269 (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move from
4271 (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
4272 TEST_ALLOCNO_SET_BIT): New macros.
4273 (ira_reallocate, allocno_conflict_index, add_allocno_conflict,
4274 create_allocno_live_range, finish_allocno_live_range,
4275 add_allocno_copy_to_list, swap_allocno_copy_ends_if_necessary,
4276 remove_allocno_copy_from_list, add_allocno_copy, ira_flattening,
4277 finish_ira_costs_once, rebuild_start_finish_chains,
4278 print_live_range_list, debug_live_range_list,
4279 debug_allocno_live_ranges, debug_live_ranges,
4280 create_allocno_live_ranges, finish_allocno_live_ranges,
4281 allocno_conflict_p, loop_edge_freq): New external function
4283 (hard_reg_in_set_p, original_regno_call_crossed_p,
4284 ira_max_regno_before, ira_max_regno_call_before): Remove.
4285 (traverse_loop_tree): Add new parameter type.
4286 (create_copy): Ditto.
4287 (debug_conflicts, ira_emit, add_allocno_copy): Add parameter.
4288 (debug_ira_call_data, split_around_calls, get_around_calls_regno):
4291 * ira.c (setup_prohibited_mode_move_regs): New function.
4292 (internal_flag_ira_verbose, allocno_pool, copy_pool,
4293 allocno_live_range_pool, important_class_nums): New external
4295 (IRA_NO_OBSTACK): Uncomment it.
4296 (ira_reallocate): New function.
4297 (setup_cover_classes): Set up important_class_nums.
4298 (finish_ira_once): New function.
4299 (prohibited_mode_move_regs,
4300 prohibited_mode_move_regs_initialized_p): New global variables.
4301 (setup_prohibited_mode_move_regs): New function.
4302 (setup_reg_renumber): Remove parameters.
4303 (setup_allocno_assignment_from_reg_renumber): Rename to
4304 setup_allocno_assignment_flags. Set up ALLOCNO_ASSIGNED_P.
4305 (calculate_allocation_cost): Use ALLOCNO_UPDATED_MEMORY_COST.
4306 (ira_max_regno_before, ira_max_regno_call_before): Remove.
4307 (ira): Set up internal_flag_ira_verbose. Call
4308 setup_prohibited_mode_move_regs. Create and destroy allocno,
4309 copy, and live range pools. Remove original_regno_call_crossed_p.
4310 Report major passes. Use argument for ira_emit. Call
4311 ira_flattening and df_analyze. Remove live range splitting around
4314 * ira-build.c (setup_loop_tree_level, rebuild_regno_allocno_maps,
4315 expand_calls, compress_calls, allocno_conflict_index,
4316 add_to_allocno_conflict_vec, propagate_info_to_cap,
4317 copy_allocno_live_range, copy_allocno_live_range_list,
4318 finish_allocno, finish_copy,
4319 propagate_info_to_loop_tree_node_caps, merge_ranges,
4320 common_loop_tree_node_dominator, check_and_add_conflicts,
4321 add_conflict_with_underlying_allocnos, ira_flattening): New
4323 (check_coalesced_allocnos): Remove.
4324 (ira_loop_tree_height): New external variable.
4325 (form_loop_tree): Call setup_loop_tree_level.
4326 (initiate_calls): Allocate a bit more. (create_allocno): Use
4327 pool_alloc. Set up ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
4328 ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_NREFS,
4329 ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4330 ALLOCNO_MEM_OPTIMIZED_DEST_P, ALLOCNO_UPDATED_MEMORY_COST, and
4331 ALLOCNO_LIVE_RANGES. Rename
4332 ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
4333 ALLOCNO_CURR_HARD_REG_COSTS, and
4334 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS to
4335 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_UPDATED_HARD_REG_COSTS, and
4336 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
4337 (add_allocno_conflict): Make it external. Use
4338 add_to_allocno_conflict_vec.
4339 (create_cap_allocno): Move part of code to propagate_info_to_cap.
4340 (finish_allocnos): Use finish_allocno.
4341 (add_allocno_copy_to_list, remove_allocno_copy_from_list,
4342 swap_allocno_copy_ends_if_necessary, add_allocno_copy): Move from
4343 ira-conflicts.c. Make them external.
4344 (create_copy): Use pool_alloc. Add parameter loop_tree_node.
4345 (finish_copies): Use finish_copy.
4346 (ira_curr_regno_allocno_map): New external variable.
4347 (traverse_loop_tree): Add parameter bb_first_p.
4348 (create_insn_allocnos): Update ALLOCNO_NREFS.
4349 (create_loop_tree_node_allocnos): Traverse loop tree nodes with
4350 BBs first. Update ALLOCNO_NREFS.
4351 (create_loop_tree_node_caps): Move part of code to
4352 propagate_info_to_loop_tree_node_cap.
4353 (regno_top_level_allocno_map): New global variable.
4354 (ira_build): Create caps before build conflicts. Call
4355 create_allocno_live_ranges. Propagate info to caps. Report
4357 (ira_destroy): Call finish_allocno_live_ranges.
4359 * ira-conflicts.c (set_allocno_live, clear_allocno_live,
4360 record_regno_conflict, mark_reg_store, mark_reg_clobber,
4361 mark_reg_conflicts, mark_reg_death): Remove.
4362 (add_insn_allocno_copies, add_copies): New functions.
4363 (add_allocno_copy_to_list, remove_allocno_copy_from_list,
4364 swap_allocno_copy_ends_if_necessary, add_allocno_copy): Remove.
4365 (add_allocno_copies): Rename to add_insn_allocno_copies. Use
4366 ira_curr_regno_allocno_map and add_insn_allocno_copies.
4367 (single_reg_class, single_reg_operand_class,
4368 process_single_reg_class_operands, process_bb_node_for_conflicts):
4370 (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move to
4372 (allocnos_live_bitmap, SET_ALLOCNO_CONFLICT_ROW,
4373 CLEAR_ALLOCNO_CONFLICT_ROW, TEST_ALLOCNO_CONFLICT_ROW): Remove.
4374 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE):
4375 Use {SET, CLEAR, TEST}_ALLOCNO_SET_BIT.
4376 (allocno_row_words, hard_regs_live, curr_bb_node,
4377 curr_regno_allocno_map, curr_reg_pressure): Remove.
4378 (CONFLICTP): Rename to CONFLICT_P.
4380 (propagate_allocno_info): Use ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
4381 Set up ALLOCNO_CALLS_CROSSED_START.
4382 (allocno_conflict_p): New function.
4383 (allocno_reg_conflict_p): Use allocno_conflict_p.
4384 (build_allocno_conflict_vects): Divide original and propagated
4386 (print_hard_reg_set): New function.
4387 (print_conflicts): Use print_hard_reg_set. Set up mark for the
4388 start of propagated conflicts.
4389 (debug_conflicts): Add parameter.
4390 (ira_build_conflicts): Call add_copies. Set up
4391 ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
4393 * ira-costs.c (struct costs): Make cost allocated dynamically.
4394 (struct_costs_size, temp_cots, op_costs, this_op_costs): New
4396 (costs): Rename to total_costs.
4397 (COSTS_OF_ALLOCNO): New macro.
4398 (curr_regno_allocno_map): Remove. Use ira_curr_regno_allocno_map
4400 (record_reg_classes): Check NO_REGS in allocno_pref.
4401 (record_address_regs): Use COSTS_OF_ALLOCNO.
4402 (scan_one_insn): Ditto.
4403 (print_costs): Ditto.
4404 (find_allocno_class_costs): Ditto. Pass additional argument to
4405 traverse_loop_tree. Set up NO_REGS if memory is cheaper.
4406 (setup_allocno_cover_class_and_costs): Use
4407 ALLOCNO_UPDATED_MEMORY_COST instead of
4408 ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
4409 instead of ALLOCNO_CURR_HARD_REG_COSTS, and
4410 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
4411 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS. Pass additional argument to
4413 (init_ira_costs_once): Allocate init_cost, op_costs,
4414 this_op_costs, temp_costs.
4415 (finish_ira_costs_once): New function.
4417 * ira-color.c: Use ALLOCNO_UPDATED_MEMORY_COST instead of
4418 ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
4419 instead of ALLOCNO_CURR_HARD_REG_COSTS, and
4420 ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
4421 ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS. Use
4422 ALLOCNO_TOTAL_CONFLICT_HARD_REGS instead of
4423 ALLOCNO_CONFLICT_HARD_REGS.
4424 (processed_allocno_bitmap): Rename into
4425 processed_coalesced_allocno_bitmap.
4426 (allocno_cost_compare_func): Use ALLOCNO_UPDATED_MEMORY_COST
4427 instead of ALLOCNO_MEMORY_COST.
4428 (assign_hard_reg): Remove biased coloring.
4429 (add_allocno_to_ordered_bucket): Check cover class first.
4430 (loop_edge_freq): Make it external.
4431 (setup_allocno_left_conflicts_num): Check that conflicting
4432 allocnos of one class.
4433 (allocno_conflict_p): Rename to coalesced_allocno_conflict_p.
4434 (color_pass): Check pressure in the loop (not in subloops) for
4436 (allocno_priorities): New variable.
4437 (start_allocno_priorities, finish_allocno_priorities): New
4439 (allocno_priority_compare_func): Use allocno_priorities.
4440 (priority_coloring): Call start_allocno_priorities and
4441 finish_allocno_priorities.
4442 (do_coloring): Pass additional argument to traverse_loop_tree.
4444 * ira-emit.c (struct move): Add member insn.
4445 (create_move): Initialize member insn.
4446 (generate_edge_moves): Set up ALLOCNO_MEM_OPTIMIZED_DEST and
4447 ALLOCNO_MEM_OPTIMIZED_DEST_P.
4448 (change_loop): Check prohibited_mode_move_regs.
4449 (curr_jump_map, can_move_through_p): Remove.
4450 (unify_moves): Don't move through jump.
4451 (modify_move_list): Set up attributes for new allocno used for
4452 breaking dependency loops.
4453 (emit_move_list): Set up insn codes.
4454 (update_costs, add_range_and_copies_from_move_list,
4455 add_ranges_and_copies): New functions.
4456 (ira_emit): Add a parameter. Call add_ranges_and_copies.
4458 2007-10-09 Vladimir Makarov <vmakarov@redhat.com>
4460 * toplev.h (flag_ira_coalesce): New external variable.
4462 * ira-int.h (allocno): New members first_coalesced_allocno,
4463 next_coalesced_allocno.
4464 (ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO):
4466 (reg_class_subintersect): New external variable.
4468 * ira-color.c (processed_allocno_bitmap): New variable.
4469 (allocno_cost_compare_func, print_coalesced_allocno): New
4471 (assign_hard_reg): Process coalesced allocnos.
4472 (get_coalesced_allocnos_best_class_and_freq): New function.
4473 (add_allocno_to_ordered_bucket): Use the function.
4474 (push_allocno_to_stack, push_allocnos_to_stack): Process coalesced
4476 (remove_allocno_from_bucket_and_push, pop_allocnos_from_stack):
4477 Use print_coalesced_allocno.
4478 (setup_allocno_available_regs_num,
4479 setup_allocno_left_conflicts_num): Process coalesced allocnos.
4480 (copy_freq_compare_func, allocno_conflict_p, coalesce_allocnos):
4482 (color_allocnos): Allocate/free processed_allocno_bitmap. Call
4484 (priority_coloring): Allocate/free processed_allocno_bitmap.
4486 * ira-build.c (check_coalesced_allocnos): New function.
4487 (create_allocno): Initiate next_coalesced_allocno,
4488 first_coalesced_allocno.
4489 (create_cap_allocno): Check next_coalesced_allocno,
4490 first_coalesced_allocno.
4492 * common.opt (fira-coalesce): New option.
4494 * ira.c (setup_reg_class_intersect): New function.
4495 (reg_class_subintersect): New global variable.
4496 (init_ira_once): Call setup_reg_class_intersect.
4498 * doc/invoke.texi (-fira-coalescing): New option.
4500 2007-09-20 Vladimir Makarov <vmakarov@redhat.com>
4502 * ira-build.c (create_allocno): Initialize ALLOCNO_BEST_CLASS.
4504 * ira-color.c (add_allocno_to_ordered_bucket): Use
4507 * ira-costs.c (setup_allocno_cover_class_and_costs): Initialize
4510 * ira-int.h (allocno): New member best_class.
4511 (ALLOCNO_BEST_CLASS): New macro.
4513 2007-09-19 Vladimir Makarov <vmakarov@redhat.com>
4515 * ira-int.h (allocno): Remove calls_crosed. Add
4516 calls_crossed_start.
4517 (ALLOCNO_CALLS_CROSSED): Remove.
4518 (ALLOCNO_CALLS_CROSSED_START): Add.
4520 (regno_calls, add_regno_call): New.
4522 * ira-build.c (initiate_calls, finish_calls, add_regno_call): New
4524 (regno_calls, regno_calls_num): New globals.
4526 (add_loop_to_tree): Use loop_outer.
4527 (form_loop_tree): Ditto.
4528 (initiate_allocnos, create_cap_allocno): Remove
4529 ALLOCNO_CALLS_CROSSED. Add ALLOCNO_CALLS_CROSSED_START.
4530 (finish_allocnos): Remove ALLOCNO_CALLS_CROSSED.
4531 (create_bb_allocnos, create_loop_allocnos): Use DF_LR_{IN,OUT}
4532 instead of DF_UPWARD_LIVE_{IN,OUT}.
4533 (ira_build): Remove adding df problems and call of
4534 free_dominance_info. Call initiate_calls.
4535 (ira_destroy): Add free_dominance_info and finish_calls. Remove
4538 * ira-emit.c (change_regs): Return the result.
4539 (generate_edge_moves): Use DF_LR_{IN,OUT} instead of
4540 DF_UPWARD_LIVE_{IN,OUT}.
4541 (change_loop): Call df_insn_rescan and df_note_rescan if there is
4543 (can_move_through_p): Use hard_reg_set_equal_p instead of
4544 GO_IF_HARD_REG_EQUAL.
4546 * ira-costs.c (copy_cost, record_reg_classes,
4547 record_address_regs): Call init_move_cost if it is necessary.
4548 (tune_allocno_costs_and_cover_classes): Use regno_calls and
4549 ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
4551 * ira-conflicts.c (n_regs_set): Remove.
4552 (regs_set): Make it a vector.
4553 (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
4554 (process_bb_node_for_conflicts): Use DF_LR_IN instead of
4555 DF_UPWARD_LIVE_IN. Call add_regno_call. Initialize
4556 ALLOCNO_CALLS_CROSSED_START. Remove ALLOCNO_CALLS_CROSSED.
4557 (build_conflict_bit_table): Initialize and finalize regs_set.
4558 (propagate_allocno_info): Remove ALLOCNO_CALLS_CROSSED.
4559 Initialzie ALLOCNO_CALLS_CROSSED_START.
4561 * ira-color.c (setup_allocno_available_regs_num,
4562 setup_allocno_left_conflicts_num): New functions.
4563 (update_allocno_avaialable_regs): Remove.
4564 (sorted_allocnos, allocno_stack_varray): Move upper.
4565 (assign_hard_reg): Use hard_reg_set_subset_p instead of
4566 GO_IF_HARD_REG_SUBSET.
4567 (loop_edge_freq): Use DF_LR_{IN,OUT} instead of
4568 DF_UPWARD_LIVE_{IN,OUT}.
4569 (put_allocno_into_bucket): Call setup_allocno_available_regs_num
4570 and setup_allocno_left_conflicts_num.
4571 (print_loop_title): Use loop_depth.
4572 (allocno_priority_compare_func): Remove REG_N_REFS and
4574 (retry_ira_color): Use SET_REGNO. Use ALLOCNO_CALLS_CROSSED_NUM
4575 instead of ALLOCNO_CALLS_CROSSED.
4576 (collect_pseudo_call_clobbered_regs): Use regno_calls and
4577 ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
4579 * ira-call.c (init_ira_call_data): Add argument to
4581 (n_regs_set): Remove.
4582 (regs_set): Make it a vector.
4583 (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
4584 (mark_referenced_regs): Check null x.
4585 (put_save_restore_and_calculate_local_info): Initialize and
4586 finalize regs_set. Use DF_LR_{IN,OUT} instead of
4587 DF_UPWARD_LIVE_{IN,OUT}. Use loop_outer.
4588 (do_init_nothing): Remove.
4589 (save_trans_fun, save_con_fun_0, restore_trans_fun,
4590 restore_con_fun_0): Remove 1st parameter.
4591 (save_con_fun_n, restore_con_fun_n): Ditto. Use
4592 df_simple_dataflow instead of df_analyze_problem.
4593 (put_save_restore): Use DF_LR_IN instead of DF_UPWARD_LIVE_IN.
4594 Call mark_all_referenced_regs for all insn. Use bitmap progress.
4595 (get_move_insn): New function.
4596 (put_save_restore_and_calculate_local_info, put_save_restore): Use
4599 * ira.c (insn_contains_asm_1, insn_contains_asm,
4600 compute_regs_asm_clobbered, expand_reg_info): New functions.
4601 (setup_class_subset_and_move_costs): Use hard_reg_set_subset_p
4602 instead of GO_IF_HARD_REG_SUBSET.
4603 (setup_reg_subclasses, setup_class_translate): Ditto. Use
4604 hard_reg_set_equal_p instead of GO_IF_HARD_REG_EQUAL.
4605 (setup_eliminable_regset): Call compute_regs_asm_clobbered. Use
4606 df_set_regs_ever_live instead of regs_ever_live.
4607 (setup_reg_renumber): Check reg_equiv_const and
4608 reg_equiv_invariant_p.
4609 (ira): Remove no_new_pseudos. Add df-problems and analyze. Call
4610 regstat_init_n_sets_and_refs and regstat_compute_ri. Remove
4611 delete_unreachable_blocks. Use expand_reg_info. Move
4612 setup_preferred_alternate_classes upper. Remove life_analysis.
4613 Prepare df-insfrastructure for reload.
4615 * regclass.c (setup_reg_classes): Don't use reg_pref_buffer.
4617 * function.[ch] (get_call_invalidated_used_regs): Change 1st
4620 * gengtype.c (main): Add HARD_REG_SET.
4622 * alias.c (value_addr_p): New function.
4623 (nonoverlapping_memrefs_p): Use it.
4625 * caller-save.c (init_caller_save): Use DF_LR_TOP for IRA instead
4626 of global_live_at_start.
4628 2007-05-04 Vladimir Makarov <vmakarov@redhat.com>
4630 * ira-conflicts.c: Change pseudo to allocno.
4631 * ira-color.c: Ditto.
4632 * ira-emit.c: Ditto.
4633 * ira-build.c: Ditto.
4635 (important_classes_num, important_classes): New variables.
4636 (setup_cover_classes): Set up the variable values.
4637 * ira-costs.c: Ditto.
4638 (record_reg_classes, record_address_regs, scan_one_insn,
4639 find_pseudo_class_costs): Process only important classes.
4640 * ira-call.c: Ditto. Add comments about placement optimization.
4642 (allocno) Use one bit field for boolean members.
4643 (important_classes_num, important_classes): New external
4646 2007-03-16 Vladimir Makarov <vmakarov@redhat.com>
4648 * flags.h (ira_algorithm): Add IRA_ALGORITHM_MIXED.
4650 * opts.c (common_handle_option): Set up IRA_ALGORITHM_MIXED from
4651 the option argument.
4653 * common.opt (fira-assign-after-call-split, fira-propagate-cost,
4654 fira-split-around-calls): New options.
4655 (fira-ipra): Switch off by default.
4657 * doc/invoke.texi (-fira-algorithm): Add mixed algorithm.
4658 (-fno-ira-ipra): Rename to -fira-ipra.
4659 (-fno-ira-assign-after-call-split, -fira-propagate-cost,
4660 -fno-ira-split-around-calls): Add new options.
4662 * ira-conflicts.c (curr_reg_pressure): New variable.
4663 (set_pseudo_live, clear_pseudo_live, mark_reg_store,
4664 mark_reg_death): Update reg pressure.
4665 (add_pseudo_copies): Decrease cost for copy with dead pseudo.
4666 (process_bb_node_for_conflicts): Propagate reg pressure.
4667 (build_conflict_bit_table): Call process_bb_node_for_conflicts in
4669 (ira_build_conflicts): Add new coloring algorithm.
4670 (ira_build_conflicts): Add flag_ira_split_around_calls.
4672 * ira-emit.c (change_loop): Print allocation on the region
4673 borders. Use pseudo_cap_member instead of regno.
4674 (modify_move_list): Add parameter to create pseudo.
4675 (ira_emit): Use pseudo_cap_member instead of regno.
4677 * ira-build.c (create_loop_tree_nodes): Set up initial reg
4679 (create_pseudo): Add parameter. Use the parameter value instead
4681 (print_expanded_pseudo): Use pseudo_cap_member instead of regno.
4682 (create_cap_pseudo, create_insn_pseudos, create_bb_pseudos,
4683 create_loop_pseudos): Add argument to create_pseudo call.
4684 (create_pseudos, ira_build): Process IRA_ALGORITHM_MIXED.
4685 (create_loop_tree_node_caps): Create cap pseudo for all pseudos
4686 not having father pseudo.
4688 * final.c (rest_of_handle_final): Process INCOMING_REGNO.
4690 * toplev.h (flag_ira_assign_after_call_split,
4691 flag_ira_propagate_cost, flag_ira_split_around_calls): New flags.
4693 * caller-save.c (save_call_clobbered_regs): Move declaration
4694 this_insn_sets to the function start.
4696 * ira-int.h (ira_loop_tree_node): Add reg_pressure.
4697 (pseudo): More comments for regno and cap_member
4698 (original_regno_call_crossed_p, ira_max_regno_before,
4699 ira_max_regno_call_before): New external variables.
4700 (create_pseudo): Add parameter.
4701 (reassign_conflict_pseudos, debug_ira_call_data,
4702 split_around_calls, get_around_calls_regno): New function
4705 * ira-color.c (assign_hard_reg): Set best_hard_regno and
4706 conflict_regs earlier. Check register availability earlier.
4707 Ignore conflict and copy cost for PSEUDO_MAY_BE_SPILLED_P.
4708 (calculate_pseudo_spill_cost): Use pseudo_cap instead of regno.
4709 Check father pseudo instead of subloop pseudos.
4710 (pop_pseudos_from_stack): Set up PSEUDO_ASSIGNED_P for NO_REGS
4712 (print_loop_title): Print reg pressure.
4713 (color_pass): Use PSEUDO_CAP_MEMBER instead of regno. Add mixed
4715 (move_spill_restore): Use PSEUDO_CAP_MEMBER instead of regno. Use
4716 subloop pseudos instead of father pseudo for cost calculation.
4717 (setup_curr_costs, reassign_conflict_pseudos): New functions.
4718 (retry_ira_color): Don't allocate call used registers when
4719 flag_caller_saves or flag_ira_split_around_calls. Call
4720 setup_curr_cost. Print about spilling pseudo split around calls.
4721 (reuse_stack_slot): Choose the slot with minimal memory-memory
4724 * ira.c (setup_reg_renumber): Add 2 parameters. Use cap_number
4725 instead of regno. Initialize caller_save_needed. Make assertion
4727 (setup_pseudo_assignment_from_reg_renumber): New function.
4728 (calculate_allocation_cost): Add assertion.
4729 (print_redundant_copies): Use cap_number instead of regno.
4730 (original_regno_call_crossed_p, ira_max_regno_before,
4731 ira_max_regno_call_before): New global variables.
4732 (ira): Process IRA_ALGORITHM_MIXED. Set up
4733 ira_max_regno_call_before and ira_max_regno_before. New arguments
4734 for setup_reg_renumber. Reassign if pseudo changed its class.
4735 Split pseudos around the call if necessary. Reassign if a pseudo
4738 * ira.h: New year for Copyright.
4740 * ira-costs.c (reg_pref): Rename to pseudo_pref.
4741 (reg_pref_buffer): rename to pseudo_pref_buffer.
4742 (find_pseudo_class_costs): Initialize best_cost and best_class.
4743 Process IRA_ALGORITHM_MIXED. Find best cover class for regno.
4744 (process_bb_node_for_hard_reg_moves): Process IRA_ALGORITHM_MIXED.
4746 * Makefile.in (ira-call.o): Add new file.
4748 * reload1.c (calculate_needs_all_insns): Remove unnecessary
4751 * ira-call.c: New file.
4753 2007-02-09 Vladimir Makarov <vmakarov@redhat.com>
4755 * common.opt (fipra): Rename to fira-ipra. Make it default.
4756 (fira-move-spills, fira-share-save-slots, fira-share-spill-slots):
4758 * toplev.h (flag_ipra): Rename to flag_ira_ipra.
4759 (flag_ira_move_spills, flag_ira_share_save_slots,
4760 flag_ira_share_spill_slots): New external definitions.
4761 * doc/invoke.texi (-fipra): Rename to -fno-ira-ipra.
4762 (-fno-ira-move-spills, -fno-ira-share-save-slots,
4763 -fno-ira-share-spill-slots): New options.
4764 * function.c (get_call_invalidated_used_regs): Rename flag_ipra to
4766 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Ditto.
4767 * caller-save.c (setup_save_areas): Use flag_ira_share_save_slots.
4768 Rename flag_ipra to flag_ira_ipra.
4769 (flag_ira_share_save_slots): Use flag_ira_move_spills.
4770 * ira-color.c (assign_hard_reg): Skip pseudos with different cover
4772 (reuse_stack_slot): Use flag_ira_share_spill_slots.
4773 * config/arm/arm.h (IRA_COVER_CLASSES): New macro.
4775 2007-02-31 Vladimir Makarov <vmakarov@redhat.com>
4777 * reload.h (debug_save_data): New definition.
4779 * caller-save.c (struct bb_info): New.
4780 (BB_INFO, BB_INFO_BY_INDEX): New macros.
4781 (calculate_local_save_info, set_up_bb_rts_numbers, rpost_cmp,
4782 calculate_save_in_out, calculate_save_here,
4783 make_global_save_analysis, print_hard_reg_set_and_mode,
4784 print_hard_reg_set, print_save_data, debug_save_data,
4785 set_hard_reg_saved): New functions.
4786 (save_call_clobbered_regs): Make global save analysis and use it
4787 to put save/restore code.
4788 (insert_one_insn): Check CODE_LABEL.
4790 2007-01-19 Vladimir Makarov <vmakarov@redhat.com>
4792 * toplev.h (flag_ipra): New external definition.
4794 * common.opt (fipra): New option.
4796 * doc/invoke.texi (-fipra); Document the option.
4798 * cgraph.h (cgraph_node): New member function_used_regs.
4800 * cgraph.c (cgraph_create_node): Initialize function_used_regs.
4802 * final.c (update_regs_ever_live): New function.
4803 (rest_of_handle_final): Set up function_used_regs and
4806 * ira-build.c (ira_build): Clear function call_used_regs.
4808 * function.h: Add hard-reg-set.h header.
4809 (emit_status): New member call_used_regs.
4810 (get_call_invalidated_used_regs): New definition.
4812 * function.c (get_call, get_call_invalidated_used_regs): New
4815 * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
4816 (caller-save.o): Add dependence on output.h and ira.h
4818 * regrename.c (copyprop_hardreg_forward_1): Use function
4819 get_call_invalidated_used_regs.
4821 * ira-conflicts.c (process_bb_node_for_conflicts): Ditto.
4823 * postreload-gcse.c (record_opr_changes,
4824 reg_set_between_after_reload_p, reg_used_between_after_reload_p):
4827 * postreload.c (reload_combine, reload_cse_move2add): Ditto.
4829 * rtlanal.c (reg_set_between_p): Ditto.
4831 * flow.c (propagate_one_insn): Ditto.
4833 * df-scan.c (df_insn_refs_record): Ditto.
4835 * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
4837 * cselib.c (cselib_process_insn): Ditto.
4839 * loop-iv.c (simplify_using_assignment): Ditto.
4841 * sched-deps.c (sched_analyze): Ditto.
4843 * combine.c (record_dead_and_set_regs): Ditto.
4845 * resource.c (mark_set_resources, mark_set_resources): Ditto.
4847 * var-tracking.c (var-tracking.c): Ditto.
4849 * reload1.c (reload): Ditto.
4851 * cse.c (invalidate_for_call): Ditto. Add parameter.
4852 (cse_insn): Pass the parameter.
4854 * ira.h (try_to_migrate): Remove the definition.
4855 (collect_pseudo_call_clobbered_regs): New external definition.
4857 * ira-color.c (collect_pseudo_call_clobbered_regs): New function.
4859 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Add cost
4860 calculation when IPRA is used.
4862 * caller-save.c: Include headers output.h and ira.h.
4863 (saved_hard_reg): New structure.
4864 (hard_reg_map, hard_reg_map, all_saved_regs): New variables.
4865 (all_saved_regs, new_saved_hard_reg, finish_saved_hard_regs,
4866 saved_hard_reg_compare_func): New functions.
4867 (setup_save_areas): Add code for sharing stack slots.
4868 (save_call_clobbered_regs): Use function
4869 get_call_invalidated_used_regs.
4871 2007-01-12 Vladimir Makarov <vmakarov@redhat.com>
4873 * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER): New macro.
4875 * ira-conflicts.c (add_pseudo_copies): Add copy between output and
4876 died operand pseudos.
4878 * ira.c (setup_cover_classes, setup_class_translate): Define and
4879 call only when IRA_COVER_CLASSES is defined.
4880 (no_alloc_regs): Rename to no_unit_alloc_regs.
4881 (setup_eliminable_regset): Set up no_alloc_regs.
4883 * ira-costs.c (tune_pseudo_costs_and_cover_classes): Modify cost
4884 if IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined.
4886 * config/s390/s390.h (IRA_COVER_CLASSES,
4887 IRA_HARD_REGNO_ADD_COST_MULTIPLIER(regno)): Define.
4889 2006-12-22 Vladimir Makarov <vmakarov@redhat.com>
4891 * rtl.h (setup_reg_classes): New function prototype.
4893 * regclass.c (setup_reg_classes): New function.
4895 * global.c (global_alloc): Dump information about register
4898 * ira-int.h (ira_build): Change prototype signature.
4900 * ira-color.c (pseudo_compare_func): Rename to
4901 pseudo_priority_compare_func.
4902 (priority_coloring): Dump information about register
4905 * ira-build.c (ira_build): Return true if we have loops for the
4908 * ira.c (setup_preferred_alternate_classes): New function.
4909 (ira): Use it instead of regclass. Rebuild only if we have loops.
4911 2006-12-15 Vladimir Makarov <vmakarov@redhat.com>
4913 * ira.h, ira-int.h, ira.c, ira-build.c, ira-costs.c
4914 ira-conflicts.c, ira-color.c, ira-emit.c: New files.
4916 * flags.h (ira_algorithm): New enumeration.
4917 (flag_ira_algorithm): New external variable declaration.
4919 * tree-pass.h (pass_ira): New external variable declaration.
4921 * toplev.c (ira.h): New include.
4922 (flag_ira_algorithm): New global variable.
4923 (backend_init): Call init_ira_once.
4925 * toplev.h (flag_ira, flag_ira_biased_coloring): New external
4926 variable declarations.
4928 * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
4929 may_move_out_cost): New external variable declarations.
4931 * caller-save.c (no_caller_save_reg_set): New global variable.
4932 (init_caller_save): Set up no_caller_save_reg_set.
4934 * global.c (eliminable_regset): Make it external.
4935 (gate_handle_global_alloc): New function.
4936 (pass_global_alloc): Add the gate function.
4938 * opts.c (decode_options): Print the warning for -fira.
4939 (common_handle_option): Process -fira-algorithm option.
4941 * timevar.def (TV_IRA): New pass.
4943 * hard-reg-set.h (no_caller_save_reg_set): New external variable
4946 * regmove.c (regmove_optimize): Don't do replacement of output
4947 operands by input operands.
4948 (rest_of_handle_regmove): Don't do CFG cleanup for IRA.
4950 * local-alloc.c (update_equiv_regs): Make it external. Return
4951 true if jump label rebuilding should be done.
4952 (gate_handle_local_alloc): New function.
4953 (pass_local_alloc): Add the gate function.
4955 * alias.c (stack_addr_p): New function.
4956 (nonoverlapping_memrefs_p): Add code for IRA.
4958 * common.opt (fira, fira-algorithm, fira-biased-coloring): New
4961 * regclass.c (contains_reg_of_mode, move_cost, may_move_in_cost,
4962 may_move_out_cost): Make the variables external.
4964 * rtl.h (eliminable_regset): New external variable declaration.
4965 (update_equiv_regs): New external function definition.
4967 * Makefile.in (IRA_INT_H): New definition.
4968 (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
4969 ira-conflicts.o, ira-color.o, and ira-emit.o.
4970 (reload1.o, toplev.o): Add dependence on ira.h.
4971 (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
4972 ira-emit.o): New entries.
4974 * passes.c (pass_ira): New pass.
4976 * reload1.c (alter_reg): Add a new parameter.
4977 (pseudo_reg_compare): New function.
4978 (reload): Sort pseudos for IRA. Call alter_reg with the
4979 additional parameter.
4980 (count_spilled_pseudo): New variable freq. Use it.
4981 (alter_reg): Add code for IRA.
4982 (eliminate_regs_1, finish_spills, emit_input_reload_insns,
4983 delete_output_reload): Use additional parameter for alter_reg.
4984 (finish_spills, emit_input_reload_insns, delete_output_reload):
4985 Call mark_allocation_change.
4986 (finish_spills): Call retry_ira_color.
4988 * doc/invoke.texi: Describe new options -fira,
4989 -fira-biased-coloring, and -fira-algorithm.
4991 * doc/passes.texi: Decribe IRA.
4993 * doc/tm.texi: Decribe macro IRA_COVER_CLASSES.
4995 * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
4997 * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
4999 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
5001 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
5003 Richard Henderson <rth@redhat.com>
5005 * tree-pass.h (pass_lower_subreg): New external definition.
5006 * toplev.h (flag_lower_subreg): New external definition.
5007 * rtl.def (CONCATN): New rtl expression.
5008 * dwarf2out.c (concatn_loc_descriptor): New function.
5009 (loc_descriptor): Process CONCATN.
5010 * timevar.def (TV_LOWER_SUBREG): New definition.
5011 * emit-rtl.c (gen_reg_rtx_offset): New function.
5012 (gen_lowpart_common): Process CONCATN.
5013 * simplify-rtx.c (simplify_subreg): Process CONCATN.
5014 * common.opt (flower-subreg): New options.
5015 * rtl.h (gen_reg_rtx_offset): New external definition.
5016 * Makefile.in (OBJS-common): Add lower-subreg.o.
5017 (lower-subreg.o): New entry.
5018 * passes.c (pass_lower_subreg): Add new pass.
5019 * lower-subreg.c: New file.
5021 2008-03-28 Rafael Espindola <espindola@google.com>
5023 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
5024 (tree_binary_nonnegative_warnv_p): Make it public.
5025 (tree_single_nonnegative_warnv_p): Make it public.
5026 (tree_invalid_nonnegative_warnv_p): Make it public.
5027 (tree_unary_nonzero_warnv_p): Make it public.
5028 (tree_binary_nonzero_warnv_p): Make it public
5029 (tree_single_nonzero_warnv_p): Make it public.
5030 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
5031 (extract_range_from_binary_expr): Split the expr argument.
5032 (extract_range_from_unary_expr): Split the expr argument.
5033 (extract_range_from_comparison): Split the expr argument.
5034 (extract_range_from_expr): Use the new aux functions.
5035 (vrp_evaluate_conditional_warnv): Use
5036 vrp_evaluate_conditional_warnv_with_ops.
5037 * tree.h (tree_unary_nonzero_warnv_p): Declare.
5038 (tree_binary_nonzero_warnv_p): Declare.
5039 (tree_single_nonzero_warnv_p): Declare.
5040 (tree_expr_nonzero_warnv_p): Declare.
5041 (tree_unary_nonnegative_warnv_p): Declare.
5042 (tree_binary_nonnegative_warnv_p): Declare.
5043 (tree_single_nonnegative_warnv_p): Declare.
5044 (tree_invalid_nonnegative_warnv_p): Declare.
5046 2008-03-28 Richard Guenther <rguenther@suse.de>
5048 PR tree-optimization/30317
5049 PR tree-optimization/30911
5050 PR tree-optimization/34793
5051 * tree-vrp.c (set_and_canonicalize_value_range): New function.
5052 (struct assert_locus_d): New member EXPR.
5053 (register_new_assert_for): Add EXPR parameter to support
5054 ASSERT_EXPR <name, expr OP limit>.
5055 (register_edge_assert_for_1): Adjust callers.
5056 (find_assert_locations): Likewise.
5057 (process_assert_insertions_for): Build condition from
5059 (extract_range_from_assert): Handle ASSERT_EXPRs
5060 of the form ASSERT_EXPR <name, expr OP limit>.
5061 (register_edge_assert_for_2): New helper registering
5062 asserts for comparisons. Recognize range tests of the form
5063 (unsigned)i - CST1 OP CST2.
5064 (register_edge_assert_for_1): Use it.
5065 (register_edge_assert_for): Likewise.
5066 (needs_overflow_infinity): Integer sub-types
5067 do not need overflow infinities.
5068 (vrp_val_is_max): The extreme values of integer sub-types
5069 are those of the base type.
5070 (vrp_val_is_min): Likewise.
5071 * tree.def (ASSERT_EXPR): Document extra allowed conditional
5074 2008-03-28 Nick Clifton <nickc@redhat.com>
5076 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5077 Return GENERAL_REGS for stack adjustment reloads.
5079 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
5082 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
5083 const_vector when all the vectors are constant.
5085 2008-03-27 Bob Wilson <bob.wilson@acm.org>
5087 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
5089 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
5090 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
5092 (s<code>_sf): Use new scc_sf attribute for opcode names.
5094 2008-03-27 Tom Tromey <tromey@redhat.com>
5096 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
5097 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
5098 config/spu/t-spu-elf, config/i386/t-interix,
5099 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
5100 config/i386/x-darwin, config/i386/x-mingw32,
5101 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
5102 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
5103 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
5104 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
5105 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
5106 config/rs6000/x-darwin, config/rs6000/t-rs6000,
5107 config/score/t-score-elf, config/arm/t-strongarm-pe,
5108 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
5109 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
5110 Revert automatic dependency patch.
5112 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
5115 * config/i386/i386.c (ix86_function_arg_boundary): Align
5116 decimal floating point to its natural boundary.
5118 2008-03-27 Richard Guenther <rguenther@suse.de>
5121 * fold-const.c (fold_comparison): Restrict distinct decl
5122 comparison folding to VAR_DECLs and PARM_DECLs. Do not
5123 solely rely on operand_equal_p.
5125 2008-03-27 Richard Guenther <rguenther@suse.de>
5128 * c-common.c (handle_weak_attribute): Reject combination of
5131 2008-03-27 Richard Guenther <rguenther@suse.de>
5133 PR tree-optimization/32810
5134 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
5135 conversions from DECL_INITIAL.
5136 (fold_const_aggregate_ref): Likewise from constructor elements.
5138 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
5140 * tree-affine.h (aff_combination_expand): Declare.
5141 (get_inner_reference_aff): Likewise.
5142 * tree-affine.c (aff_combination_expand): Split out from
5143 tree_to_aff_combination_expand.
5144 (get_inner_reference_aff): New function.
5145 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
5146 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
5147 (struct lim_aux_data): sm_done field removed.
5148 (mem_ref_loc_p, mem_ref_locs_p): New types.
5149 (struct mem_ref): Added id, stored, accesses_in_loop,
5150 indep_loop, dep_loop, indep_ref, dep_ref fields.
5151 Removed is_stored, locs and next fields.
5152 (memory_accesses): New variable.
5153 (movement_possibility): Do not allow moving statements
5154 that store to memory.
5155 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
5157 (determine_max_movement): For statements with memory references,
5158 find the outermost loop in that the reference is independent.
5159 (move_computations_stmt): Mark the virtual operands for
5161 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
5162 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
5163 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
5164 add_vop_ref_mapping, create_vop_ref_mapping_loop,
5165 create_vop_ref_mapping, analyze_memory_references,
5166 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
5167 get_all_locs_in_loop, ref_always_accessed_p,
5168 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
5169 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
5170 store_motion_loop, store_motion): New functions.
5171 (struct vop_to_refs_elt): New type.
5172 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
5173 memref_hash, memref_eq, hoist_memory_references): Rewritten.
5174 (schedule_sm): Replaced by...
5175 (execute_sm): ... this.
5176 (determine_lsm_ref, hoist_memory_references,
5177 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
5178 find_more_ref_vops, free_mem_ref, free_mem_refs,
5179 determine_lsm_loop, determine_lsm): Removed.
5180 (tree_ssa_lim_finalize): Free data structures used by store
5182 (tree_ssa_lim): Call analyze_memory_references. Use
5183 store_motion instead of determine_lsm.
5185 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
5187 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
5188 rename tmake_file to m68hc11/t-m68hc11.
5189 (mcore): Set inhibit_libc to true.
5190 * config.host (alpha*-dec-*vms*): Set extra_programs.
5191 (interix3*): Don't use host_xmake_file.
5192 * configure.ac: Let config.gcc override inhibit_libc.
5193 * configure: Regenerate.
5195 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
5196 * config/t-openbsd-thread: Remove commented out lines.
5198 * config/x-interix: Remove.
5200 * config/m68hc11/t-m68hc11-gas: Rename to...
5201 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
5203 * config/mcore/t-mcore: Remove T_CFLAGS.
5204 * config/mcore/t-mcore-pe: Likewise.
5206 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
5208 * configure.ac: Replace custom __GNU_SOURCE test with
5209 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
5210 * aclocal.m4: Regenerate.
5211 * configure: Regenerate.
5212 * config.in: Regenerate.
5214 2008-03-27 Richard Guenther <rguenther@suse.de>
5216 * fold-const.c (target.h): Include.
5217 (fold_comparison): Fold comparison of addresses of decls
5218 that bind locally or of constants. Consolidate address folding code.
5219 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
5220 results from fold_binary_to_constant.
5221 (compare_values_warnv): Likewise.
5223 2008-03-27 Andrew Pinski <pinskia@gmail.com>
5226 * fold-const.c (fold_truthop): Check for integeral types when folding
5227 a == 0 && b == 0 and a != 0 || b != 0 .
5229 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
5231 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
5233 2008-03-26 Andreas Schwab <schwab@suse.de>
5235 * doc/invoke.texi: Fix use of @item vs. @itemx.
5237 2008-03-26 Tom Tromey <tromey@redhat.com>
5239 * Makefile.in (build/gensupport.o, build/print-rtl.o,
5240 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
5241 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
5242 build/gencodes.o, build/genconditions.o, build/genconfig.o,
5243 build/genconstants.o, build/genemit.o, build/genextract.o,
5244 build/genflags.o, build/genmddeps.o, build/genopinit.o,
5245 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
5248 2008-03-26 Richard Guenther <rguenther@suse.de>
5251 2008-03-26 Richard Guenther <rguenther@suse.de>
5253 * fold-const.c (target.h): Include.
5254 (fold_comparison): Fold comparison of addresses of two decls
5255 that bind locally. Consolidate address folding code.
5257 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5259 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
5260 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
5261 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
5262 dconstsqrt2, dconstthird, dconste and/or dconst10.
5263 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
5264 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
5265 dconstsqrt2, dconste): Delete.
5266 (init_emit_once): Likewise. Simplify initializing dconstm1.
5268 * real.c (get_real_const): New.
5269 * real.h (dconst3, dconst10, dconstm2, dconstthird,
5270 dconstsqrt2, dconste): Delete.
5271 (real_value_const, get_real_const): New.
5273 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
5275 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
5277 * config/i386/i386.c (ix86_function_arg_boundary): Check
5278 BIGGEST_ALIGNMENT instead of 128.
5279 (setup_incoming_varargs_64): Likewise.
5281 2008-03-26 Tom Tromey <tromey@redhat.com>
5283 * Makefile.in (DEPFILES): Add missing '/'.
5285 2008-03-26 Richard Guenther <rguenther@suse.de>
5287 * fold-const.c (target.h): Include.
5288 (fold_comparison): Fold comparison of addresses of two decls
5289 that bind locally. Consolidate address folding code.
5291 2008-03-26 Nick Clifton <nickc@redhat.com>
5294 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
5295 not allow INT+INT as a legitimate addressing mode.
5297 2008-03-26 Richard Guenther <rguenther@suse.de>
5299 * tree-flow.h (widen_bitfield): Remove declaration.
5300 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
5301 (widen_bitfield): Remove function.
5302 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
5305 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
5308 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
5311 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
5313 PR rtl-optimization/35232
5314 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
5315 (forget_old_reloads_1, forget_marked_reloads): Don't clear
5316 reg_reloaded_call_part_clobbered here.
5317 (reload_regs_reach_end_p): New function.
5318 (reload_reg_rtx_for_input): New variable.
5319 (reload_reg_rtx_for_output): Likewise.
5320 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
5321 when reassigning a pseudo register. Load reloadreg from
5322 reload_reg_rtx_for_input, moving the mode and register
5324 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
5325 instead of the original when deciding whether an input reload
5326 would be a no-op or whether an output reload can be deleted.
5327 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
5328 when setting up new_spill_reg_store. Load it from
5329 reload_reg_rtx_for_output, moving the mode and register
5331 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
5332 instead of the original when deciding whether an output reload
5333 would be a no-op. Do the same when modifying insn notes.
5334 Use rtx_equal_p instead of == to compare the registers.
5335 (inherit_piecemeal_p): Take a mode and two register numbers
5337 (emit_reload_insns): Clear new_spill_reg_store for every hard
5338 register in the reload register. Remove spill registers
5339 from reg_reloaded_valid before considering whether to record
5340 inheritance information for them. Use reload_reg_rtx_for_output
5341 instead of reg_rtx when recording output reloads. Use
5342 reload_reg_rtx_for_input instead of reg_rtx when recording
5343 input reloads. Set or clear reg_reloaded_call_part_clobbered
5344 at the same time as setting reg_reloaded_valid.
5345 (delete_output_reload): Add a new_reload_reg parameter and use it
5346 instead of rld[j].reg_rtx.
5347 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
5350 2008-03-25 Tom Tromey <tromey@redhat.com>
5352 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
5353 (build/genattr.o): Likewise.
5354 (build/genattrtab.o): Likewise.
5355 (build/gencodes.o): Likewise.
5356 (build/genconfig.o): Likewise.
5357 (build/genconstants.o): Likewise.
5358 (build/genemit.o): Likewise.
5359 (build/genextract.o): Likewise.
5360 (build/genflags.o): Likewise.
5362 2008-03-25 Bob Wilson <bob.wilson@acm.org>
5364 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
5365 instead of size_int for integer types.
5366 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
5367 to match type of MINUS_EXPR.
5369 2008-03-25 Tom Tromey <tromey@redhat.com>
5371 * configure: Rebuilt.
5372 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
5375 2008-03-25 Tom Tromey <tromey@redhat.com>
5377 * config/x-solaris (host-solaris.o): Update.
5378 * config/x-linux (host-linux.o): Update.
5379 * config/x-hpux (host-hpux.o): Update.
5380 * config/x-darwin (host-darwin.o): Update.
5381 * config/v850/t-v850e (v850-c.o): Update.
5382 * config/v850/t-v850 (v850-c.o): Update.
5383 * config/t-vxworks (vxworks.o): Update.
5384 * config/t-sol2 (sol2-c.o, sol2.o): Update.
5385 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
5386 * config/spu/t-spu-elf (spu-c.o): Update.
5388 * config/sh/t-symbian (sh-c.o): Update.
5389 (symbian.o): Update.
5390 * config/sh/t-sh (sh-c.o): Update.
5391 * config/score/t-score-elf (score7.o, score3.o): Update.
5392 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
5393 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
5394 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
5395 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
5397 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5398 * config/m32c/t-m32c (m32c-pragma.o): Update.
5399 * config/ia64/t-ia64 (ia64-c.o): Update.
5400 * config/i386/x-mingw32 (host-mingw32.o): Update.
5401 * config/i386/x-i386 (driver-i386.o): Update.
5402 * config/i386/x-darwin (host-i386-darwin.o): Update.
5403 * config/i386/x-cygwin (host-cygwin.o): Update.
5404 * config/i386/t-nwld (nwld.o): Update.
5405 * config/i386/t-netware (netware.o): Update.
5406 * config/i386/t-interix (winnt.o): Update.
5407 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
5408 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
5409 msformat-c.o): Update.
5410 * config/bfin/t-bfin-linux (generated_files): Add
5411 linux-sysroot-suffix.h.
5412 * config/arm/t-wince-pe (pe.o): Update.
5413 * config/arm/t-strongarm-pe (pe.o): Update.
5414 * config/arm/t-pe (pe.o): Update.
5415 * config/arm/t-arm (arm-c.o): Update.
5416 * doc/install.texi (Prerequisites): Require make 3.80.
5417 * Makefile.in: Remove .o targets.
5418 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
5419 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
5420 (simple_generated_h, simple_generated_c): Move earlier.
5421 (generated_files): New variable.
5422 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
5423 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
5424 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
5425 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
5426 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
5427 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
5428 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
5429 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
5430 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
5431 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
5432 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
5433 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
5435 (COMPILE.base, COMPILE): New variables.
5436 (%.o): New pattern rule.
5437 (ALL_HOST_OBJS): New variable.
5438 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
5439 (dummy-checksum.o, cc1-checksum.o): Remove.
5440 (DRIVER_SHLIB): New variable.
5441 (DRIVER_DEFINES): Use it.
5442 (gencondmd.c): Move out of build/.
5443 (s-conditions): Update.
5444 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
5445 (ALL_BUILD_OBJS): Likewise.
5446 (build/%.o): Use BUILDCOMPILE.
5447 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
5448 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
5449 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
5450 build/gencheck.o, build/gencodes.o, build/genconditions.o,
5451 build/genconfig.o, build/genconstants.o, build/genemit.o,
5452 build/genextract.o, build/genflags.o, build/genmddeps.o,
5453 build/genopinit.o, build/genoutput.o, build/genpeep.o,
5454 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
5455 build/gen-protos.o, build/scan.o, build/fix-header.o,
5456 build/scan-decls.o): Simplify.
5457 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
5458 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
5459 prefix.o, toplev.o): Reduce to variable setting.
5460 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
5461 ($(out_object_file), gcc-options.o): New targets.
5462 ($(ALL_HOST_OBJS)): New target. Include dependency files.
5463 * configure: Rebuilt.
5464 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
5465 * doc/sourcebuild.texi (Front End Directory): Document new variable.
5467 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
5469 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
5470 complain when we hit an error, return ERROR_MARK_NODE.
5472 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
5474 * config/sh/constraints.md (Pso, Psz): New constraints.
5475 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
5476 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
5478 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
5480 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
5481 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
5483 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
5485 * config/sh/sh.md (prefetch): Add condition for SH2A target.
5486 (prefetch_sh2a): New.
5488 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
5489 Naveen.H.S <naveen.hs@kpitcummins.com>
5491 * config/sh/constraints.md (I28): New constraint.
5492 * config/sh/sh.c (broken_move): Add support for movi20s.
5493 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
5495 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
5496 Jayant Sonar <Jayant.sonar@kpitcummins.com>
5497 Naveen.H.S <naveen.hs@kpitcummins.com>
5499 * config/sh/sh.c (SH_ATTRIBUTES): Define.
5500 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
5501 (print_operand): Handle resbank in %@ operand code.
5502 (sh_encode_section_info): New.
5503 (push_regs): Add conditions for resbank.
5504 (sh_expand_epilogue): Likewise.
5505 (sh_insert_attributes): Likewise.
5506 (sh_attribute_table): Likewise.
5507 (sh_handle_resbank_handler_attribute): New.
5508 (sh2a_handle_function_vector_handler_attribute): New.
5509 (sh2a_is_function_vector_call): New.
5510 (sh2a_get_function_vector_number): New.
5511 (sh2a_function_vector_p): New.
5512 (sh_cfun_resbank_handler_p): New.
5513 * config/sh/sh.md (calli): Emit jsr/n if possible.
5514 (calli_tbr_rel): New.
5515 (calli_pcrel): Emit jsr/n if possible.
5516 (return_i): Emit rts/n if possible.
5517 (call_valuei_tbr_rel): New.
5518 (call_valuei_pcrel): Add condition for SH2A target.
5519 (call_value): Likewise.
5520 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
5521 (sh2a_get_function_vector_number): Likewise.
5522 (sh2a_is_function_vector_call): Likewise.
5523 * doc/extend.texi: Document TBR relative addressing of SH2A.
5524 (resbank): Add description for SH2A.
5526 2008-03-24 Richard Guenther <rguenther@suse.de>
5529 * gimplify.c (gimplify_modify_expr): For frontend type-correct
5530 pointer assignments change conversions according to middle-end rules.
5531 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
5532 * configure.ac: Include type checking in yes.
5533 * configure: Regenerate.
5535 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5537 * diagnostic.c (diagnostic_count_diagnostic): Delete.
5538 (diagnostic_report_diagnostic): Update. Handle ICEs here.
5540 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
5542 * gthr-vxworks.h (UNUSED): Define.
5544 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
5546 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
5549 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
5551 * doc/extend.texi (Function Attributes): Add missing comma in the
5552 example of the "alloc_size" attribute.
5554 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
5557 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
5559 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5562 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
5565 * stor-layout.c (update_alignment_for_field): Set minimum alignment
5566 of the underlying type of a MS bitfield layout to the natural
5567 alignment of the type.
5569 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
5571 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5572 to their natural alignment to avoid store forwarding stalls.
5574 2008-03-22 Richard Guenther <rguenther@suse.de>
5576 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
5577 For PHI nodes verify the address is invariant.
5578 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
5579 (get_symbol_constant_value): Use is_gimple_min_invariant.
5580 (maybe_fold_stmt_indirect): Likewise.
5582 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
5584 PR rtl-optimization/33927
5585 * Makefile.in (dse.o): Depend on $(TM_P_H).
5586 * expr.h (extract_low_bits): Declare.
5587 * expmed.c (extract_low_bits): New function.
5588 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
5589 * dse.c: Include tm_p.h.
5590 (find_shift_sequence): Remove the read_reg argument and return the
5591 read value. Emit the instructions instead of returning them.
5592 Iterate on new_mode rather than calculating it each time.
5593 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
5594 source to NEW_MODE and extract_low_bits to convert the shifted
5596 (replace_read): Allow the load and store to have different mode
5597 classes. Use extract_low_bits when SHIFT == 0. Create the shift
5598 or extraction instructions before trying the replacement. Update
5599 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
5601 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
5603 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5604 to their natural alignment to avoid store forwarding stalls.
5606 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
5609 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
5610 encouraging but not allowing gprs for input;
5611 change the input constraint to !f#r.
5612 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
5614 change the output constraint to !f#r.
5616 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
5619 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
5620 corresponding post-reload splitters.
5621 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
5622 when x87 FP math is selected.
5623 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
5624 New function prototype.
5625 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
5626 unreachable function to ease macroization of insn patterns.
5628 2008-03-21 Martin Jambor <mjambor@suse.cz>
5630 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
5631 reference dumps if ddr is NULL or dependence is unknown.
5633 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
5635 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
5636 unsigned extension into account.
5637 (ATOMIC_COMPARE_AND_SWAP): Likewise.
5638 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
5639 Do computations on a scratch register.
5641 2008-03-21 Richard Guenther <rguenther@suse.de>
5643 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5644 Use is_gimple_min_invariant instead of TREE_INVARIANT.
5645 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5646 * tree-ssa-dom.c (record_equality): Likewise.
5647 * tree-inline.c (copy_body_r): Likewise.
5648 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
5651 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
5653 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
5654 as 'delete_unused' argument.
5656 2008-03-20 Richard Guenther <rguenther@suse.de>
5658 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
5659 special casing of constant qualifiers.
5660 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
5661 care about them in general.
5662 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
5663 regardless of their type.
5664 (fold_stmt_r): Forcefully fold *& if we end up with that.
5666 2008-03-20 Paul Brook <paul@codesourcery.com>
5668 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
5669 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
5671 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
5673 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
5674 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
5676 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
5678 * common.opt (Wmudflap): New option.
5679 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
5680 (mx_register_decls): Likewise.
5681 (mudflap_finish_file): Likewise.
5682 * doc/invoke.texi: Document -Wno-mudflap.
5684 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
5686 * c-format.c (replace_format_name_to_system_name): New.
5688 (convert_format_name_to_system_name): New.
5689 (decode_format_attr): Add use of convert_format_name_to_system_name.
5690 (format_types_orig): Add gnu_ prefix to names.
5691 (check_format_info_main): Special treating of \0 escaped names for
5692 supporting multi-character format specifiers as I32, I64.
5693 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
5694 (gnu_target_overrides_format_attributes): New.
5695 * c-format.h: Add structure target_ovr_attr to hold
5696 system specific formatter names.
5697 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
5698 msformat-c.o file to c_target_objs and cxx_target_objs.
5699 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5700 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
5701 (TARGET_N_FORMAT_TYPES): New.
5702 * config/i386/msformat-c.c: New.
5703 * config/i386/t-cygming: Add build rule for msformat-c.o.
5704 * doc/extend.texi: Add new format names gnu_* and ms_* and
5706 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5708 2008-03-20 Ira Rosen <irar@il.ibm.com>
5710 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
5711 optimizations turned on under -O3.
5712 (ftree-vectorize): Add that the flag is turned on with -O3.
5714 2008-03-20 Ben Elliston <bje@au.ibm.com>
5716 * regmove.c (try_auto_increment): Fix spelling error in comment.
5717 * final.c (final_scan_insn): Likewise.
5719 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
5722 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
5723 allocator preferences for "y" and "r" class registers.
5724 ("*mov<mode>_internal"): Ditto.
5725 ("*movv2sf_internal_rex64"): Ditto.
5726 ("*movv2sf_internal"): Ditto.
5728 2008-03-19 Michael Matz <matz@suse.de>
5731 * calls.c (expand_call): Check overlap of arguments with call
5732 address for sibcalls.
5734 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
5737 * stor-layout.c (update_alignment_for_field): Set minimum alignment
5738 of the underlying type of a MS bitfield layout to the natural
5739 alignment of the type.
5741 2008-03-19 Jan Hubicka <jh@suse.cz>
5744 * toplev.c (decode_d_option): Handle all CPP flags.
5745 * tree-vrp.c: Update tree_pass descriptors.
5746 * regrename.c: Update tree_pass descriptors.
5747 * fwprop.c: Update tree_pass descriptors.
5748 * doc/invoke.texi: Remove documentation of dropped -d? flags.
5749 * tree-into-ssa.c: Update tree_pass descriptors.
5750 * tree-dump.c: Update tree_pass descriptors.
5751 * tree-complex.c: Update tree_pass descriptors.
5752 * tree-dump.h: Update tree_pass descriptors.
5753 * see.c: Update tree_pass descriptors.
5754 * cgraphbuild.c: Update tree_pass descriptors.
5755 * tracer.c: Update tree_pass descriptors.
5756 * tree-loop-distribution.c: Update tree_pass descriptors.
5757 * cgraph.c: Update tree_pass descriptors.
5758 * postreload-gcse.c: Update tree_pass descriptors.
5759 * postreload.c: Update tree_pass descriptors.
5760 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
5761 * tree-tailcall.c: Update tree_pass descriptors.
5762 * tree-pass.h (tree_opt_pass): Rename to ...
5763 (opt_pass) ... this one; add "type" field and remove letter field.
5764 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
5765 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
5766 all_lowering_passes): Update declaration.
5767 * ipa-cp.c: Update tree_pass descriptors.
5768 * final.c: Update tree_pass descriptors.
5769 * omp-low.c: Update tree_pass descriptors.
5770 * tree-ssa-dse.c: Update tree_pass descriptors.
5771 * ipa-reference.c: Update tree_pass descriptors.
5772 * tree-ssa-uncprop.c: Update tree_pass descriptors.
5773 * auto-inc-dec.c: Update tree_pass descriptors.
5774 * reorg.c: Update tree_pass descriptors.
5775 * cgraphunit.c: Update tree_pass descriptors.
5776 * tree-ssa-copyrename.c: Update tree_pass descriptors.
5777 * tree-ssa-ccp.c: Update tree_pass descriptors.
5778 * df-core.c: Update tree_pass descriptors.
5779 * mode-switching.c: Update tree_pass descriptors.
5780 * tree-nomudflap.c: Update tree_pass descriptors.
5781 * modulo-sched.c: Update tree_pass descriptors.
5782 * ipa-pure-const.c: Update tree_pass descriptors.
5783 * cse.c: Update tree_pass descriptors.
5784 * web.c: Update tree_pass descriptors.
5785 * tree-stdarg.c: Update tree_pass descriptors.
5786 * tree-ssa-math-opts.c: Update tree_pass descriptors.
5787 * tree-ssa-dom.c: Update tree_pass descriptors.
5788 * tree-nrv.c: Update tree_pass descriptors.
5789 * tree-ssa-alias.c: Update tree_pass descriptors.
5790 * loop-init.c: Update tree_pass descriptors.
5791 * gimple-low.c: Update tree_pass descriptors.
5792 * ipa-inline.c: Update tree_pass descriptors.
5793 * tree-ssa-sink.c: Update tree_pass descriptors.
5794 * global.c: Update tree_pass descriptors.
5795 * ifcvt.c: Update tree_pass descriptors.
5796 * jump.c: Update tree_pass descriptors.
5797 * predict.c: Update tree_pass descriptors.
5798 * tree-ssa-loop.c: Update tree_pass descriptors.
5799 * recog.c: Update tree_pass descriptors.
5800 * dse.c: Update tree_pass descriptors.
5801 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
5802 * tree-eh.c: Update tree_pass descriptors.
5803 * regmove.c: Update tree_pass descriptors.
5805 * function.c: Update tree_pass descriptors.
5806 * tree-vectorizer.c: Update tree_pass descriptors.
5807 * gcse.c: Update tree_pass descriptors.
5808 * ipa-type-escape.c: Update tree_pass descriptors.
5809 * tree-if-conv.c: Update tree_pass descriptors.
5810 * init-regs.c: Update tree_pass descriptors.
5811 * ipa.c: Update tree_pass descriptors.
5812 * tree-ssa-phiopt.c: Update tree_pass descriptors.
5813 * rtl-factoring.c: Update tree_pass descriptors.
5814 * lower-subreg.c: Update tree_pass descriptors.
5815 * bt-load.c: Update tree_pass descriptors.
5816 * tree-dfa.c: Update tree_pass descriptors.
5817 * except.c: Update tree_pass descriptors.
5818 * emit-rtl.c: Update tree_pass descriptors.
5819 * cfgexpand.c: Update tree_pass descriptors.
5820 * tree-cfgcleanup.c: Update tree_pass descriptors.
5821 * cfgcleanup.c: Update tree_pass descriptors.
5822 * tree-ssa-pre.c: Update tree_pass descriptors.
5823 * tree-sra.c: Update tree_pass descriptors.
5824 * tree-mudflap.c: Update tree_pass descriptors.
5825 * tree-ssa-copy.c: Update tree_pass descriptors.
5826 * cfglayout.c: Update tree_pass descriptors.
5827 * tree-ssa-forwprop.c: Update tree_pass descriptors.
5828 * tree-ssa-dce.c: Update tree_pass descriptors.
5829 * tree-ssa.c: Update tree_pass descriptors.
5830 * regclass.c: Update tree_pass descriptors.
5831 * integrate.c: Update tree_pass descriptors.
5832 * tree-optimize.c: Update tree_pass descriptors.
5833 * tree-ssa-phiprop.c: Update tree_pass descriptors.
5834 * tree-object-size.c: Update tree_pass descriptors.
5835 * combine.c: Update tree_pass descriptors.
5836 * tree-outof-ssa.c: Update tree_pass descriptors.
5837 * bb-reorder.c: Update tree_pass descriptors.
5838 * stack-ptr-mod.c: Update tree_pass descriptors.
5839 * var-tracking.c: Update tree_pass descriptors.
5840 * tree-profile.c: Update tree_pass descriptors.
5841 * tree-vect-generic.c: Update tree_pass descriptors.
5842 * reg-stack.c: Update tree_pass descriptors.
5843 * sched-rgn.c: Update tree_pass descriptors.
5844 * tree-ssa-structalias.c: Update tree_pass descriptors.
5845 * tree-cfg.c: Update tree_pass descriptors.
5846 * passes.c (current_pass): Update declaration.
5847 (finish_optimization_passes): Update.
5848 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
5849 (register_one_dump_file, register_dump_files_1, next_pass_1):
5851 (init_optimization_passes): Update handling of new types.
5852 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
5853 * ipa-struct-reorg.c: Update tree_pass descriptors.
5854 * tree-ssa-reassoc.c: Update tree_pass descriptors.
5855 * combine-stack-adj.c: Update tree_pass descriptors.
5856 * cfgrtl.c: Update tree_pass descriptors.
5857 * dce.c: Update tree_pass descriptors.
5858 * tree-ssanames.c: Update tree_pass descriptors.
5860 2008-03-19 Richard Guenther <rguenther@suse.de>
5863 * tree-ssa.c (walk_data): New structure.
5864 (warn_uninitialized_var): If not always_executed warn with "maybe"
5866 (execute_early_warn_uninitialized): Compute post-dominators.
5867 Initialize always_executed before processing each basic block.
5869 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
5872 * config/i386/i386.c (x86_this_parameter): Calculate correct location
5873 of "this" pointer when "regparm = N" or "fastcall" is in effect.
5875 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5877 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
5879 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
5881 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
5883 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
5884 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
5885 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
5886 target after ignore has been set, and move there also the commputation
5887 of subtarget and original_target.
5888 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5889 (LANG_HOOKS_INITIALIZER): Remove it.
5890 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
5892 2008-03-18 Richard Guenther <rguenther@suse.de>
5894 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
5895 found an expression with constants, note that in the VN for the lhs.
5896 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
5897 fold them to constants if possible. Run cleanup_cfg if done so.
5898 (execute_pre): Return todo.
5900 (execute_fre): Likewise.
5901 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
5903 (get_prop_source_stmt): Look through pointer conversions.
5905 2008-03-18 Jan Hubicka <jh@suse.cz>
5907 * tree-pretty-print.c: Include predict.h.
5908 (dump_generic_node): Dump predictor.
5909 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
5910 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
5911 * gimple-low.c (lower_stmt): Likewise.
5912 * expr.c (expand_expr_real): Likewise.
5913 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
5915 (build_predict_expr, build_predict_expr): New.
5916 * predict.h (predictor_name, build_predict_expr): Update.
5917 * c-typeck.c (c_finish_bc_stmt): Add prediction.
5918 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
5919 * predict.def (PRED_CONTINUE): Update hitrate.
5920 * tree.def (PREDICT_EXPR): Define.
5921 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
5922 do not handle BIND_EXPR.
5923 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
5924 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
5925 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
5928 2008-03-18 Michael Matz <matz@suse.de>
5930 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
5932 2008-03-18 Richard Guenther <rguenther@suse.de>
5934 * tree-gimple.h (is_gimple_invariant_address): Declare.
5935 (is_gimple_constant): Likewise.
5936 * tree-gimple.c (is_gimple_constant): New function.
5937 (is_gimple_invariant_address): Likewise.
5938 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
5939 and is_gimple_invariant_address.
5940 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5942 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5943 an addressable base.
5945 2008-03-18 Jakub Jelinek <jakub@redhat.com>
5948 * gimplify.c (gimplify_expr): Gimplify second operand of
5951 2008-03-17 Richard Guenther <rguenther@suse.de>
5953 PR tree-optimization/19637
5954 * fold-const.c (fold_unary): Remove restrictions of removing
5955 intermediate pointer-conversions (P2)(P1)P0.
5956 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5957 conversion to void pointer.
5958 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5960 2008-03-16 James E. Wilson <wilson@tuliptree.org>
5963 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5964 emulated thread local variables.
5966 2008-03-16 Richard Guenther <rguenther@suse.de>
5969 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5970 expand TREE_INVARIANT operations that are not gimple invariant.
5972 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
5974 * doc/extend.texi (Alignment): Say that the ABI controls
5975 the __alignof__ for non-strict-alignment targets rather
5976 than being a recommendation.
5978 2008-03-15 Paul Brook <paul@codesourcery.com>
5980 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5982 (arm_output_fn_unwind): Mark functions that can not be unwound.
5984 2008-03-15 Paul Brook <paul@codesourcery.com>
5986 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5987 extension instructions.
5989 2008-03-15 Richard Guenther <rguenther@suse.de>
5991 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5992 and fold constant aggregate refs.
5993 (fold_const_aggregate_ref): Handle string constants
5994 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
5995 (evaluate_stmt): Simplify now that ccp_fold folds constant
5998 2008-03-15 Paul Brook <paul@codesourcery.com>
6000 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
6001 (extzv): Use gen_extzv_t2.
6002 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
6004 2008-03-15 Richard Guenther <rguenther@suse.de>
6006 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
6007 (fold_const_aggregate_ref): Likewise.
6008 (get_value): Return NULL if we don't have any values.
6009 (ccp_finalize): Set const_val to NULL after freeing it.
6010 * tree-flow.h (get_symbol_constant_value): Declare.
6011 (fold_const_aggregate_ref): Likewise.
6012 * tree-ssa-sccvn.c (try_to_simplify): Use them.
6014 2008-03-15 Richard Guenther <rguenther@suse.de>
6017 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
6018 to not produce negative array indices if not allowed. Add
6019 parameter to indicate that.
6020 (maybe_fold_offset_to_component_ref): Allow negative array
6021 indices only for the first member of a structure.
6022 (maybe_fold_offset_to_reference): Allow negative array indices.
6023 (maybe_fold_stmt_addition): Likewise.
6025 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
6026 Anatoly Sokolov <aesok@post.ru>
6028 * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
6029 (avr_arch): Add ARCH_AVR6.
6030 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
6031 (initial_elimination_offset): Initialize and use 'avr_pc_size'
6032 instead of fixed value 2.
6033 (print_operand_address): Use gs() asm specifier instead of pm().
6034 (avr_assemble_integer): (Ditto.).
6035 (avr_output_addr_vec_elt): (Ditto.).
6036 (print_operand): Handle "!" code.
6037 * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
6038 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
6039 (AVR_HAVE_EIJMP_EICALL): Define.
6040 (AVR_3_BYTE_PC): Redefine.
6041 (AVR_2_BYTE_PC): (Ditto.).
6042 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
6043 (LINK_SPEC): Add atmega2560 and atmega2561.
6044 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
6046 * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall
6047 for 3 byte PC devices.
6048 (call_value_insn): (Ditto.).
6049 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
6050 (indirect_jump): Use only for for 2 byte PC devices.
6051 (*tablejump): (Ditto.).
6052 (*indirect_jump_avr6): Add insn.
6053 (*tablejump_rjmp): Don't use for 3 byte PC devices.
6054 * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp
6055 instead of ijmp for 3 byte PC devices.
6056 (__tablejump2__): (Ditto.).
6057 * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
6058 (MULITLIB_DIRNAMES): (Ditto.).
6059 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
6061 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
6063 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
6064 "sse2_umulsidi3". Use V1DI mode for operand 0.
6065 ("mmx_psadbw"): Use V1DI mode for operand 0.
6066 * config/i386/i386-modes.def (V1SI): New vector mode.
6067 * config/i386/i386.c (struct builtin_description)
6068 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
6069 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
6070 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
6071 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
6072 v1di_ftype_v8qi_v8qi type.
6073 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
6075 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
6076 __builtin_ia32_pmuludq]: Fix the mode of return value.
6078 2008-03-15 Richard Guenther <rguenther@suse.de>
6081 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
6084 2008-03-14 Bob Wilson <bob.wilson@acm.org>
6086 * doc/invoke.texi (Option Summary, Xtensa Options): Document
6087 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
6088 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
6089 unless TARGET_SERIALIZE_VOLATILE is enabled.
6090 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6091 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
6092 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
6094 2008-03-14 Richard Guenther <rguenther@suse.de>
6096 PR tree-optimization/34172
6097 * tree-flow.h (refs_may_alias_p): Declare.
6098 (get_single_def_stmt): Likewise.
6099 (get_single_def_stmt_from_phi): Likewise.
6100 (get_single_def_stmt_with_phi): Likewise.
6101 * tree-dfa.c (refs_may_alias_p): New function.
6102 (get_single_def_stmt): Likewise.
6103 (get_single_def_stmt_from_phi): Likewise.
6104 (get_single_def_stmt_with_phi): Likewise.
6105 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
6106 (vn_reference_lookup_1): New helper function.
6107 (vn_reference_lookup): Walk the virtual use-def chain to
6108 continue searching for a match if the def does not alias the
6109 reference we are looking for.
6111 2008-03-14 David Edelsohn <edelsohn@gnu.org>
6113 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
6114 archive and Perzl. Update The Written Word listing.
6116 2008-03-14 Richard Guenther <rguenther@suse.de>
6118 PR tree-optimization/34043
6119 PR tree-optimization/33989
6120 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
6122 (bitmap_find_leader): Use extra argument to verify dominance
6123 relationship inside a basic-block.
6124 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
6125 (find_leader_in_sets): Adjust.
6126 (create_component_ref_by_pieces): Take extra argument for
6127 dominance check, handle lookup failures.
6128 (find_or_generate_expression): Likewise.
6129 (create_expression_by_pieces): Likewise.
6130 (insert_into_preds_of_block): Adjust.
6131 (create_value_expr_from): If asked for, verify all operands
6132 are in the blocks AVAIL_OUT set.
6133 (make_values_for_stmt): Check for SSA_NAMEs that are life
6134 over an abnormal edge.
6135 (compute_avail): Remove such check.
6136 (do_SCCVN_insertion): New function.
6137 (eliminate): If we do not find a leader suitable for replacement
6138 insert a replacement expression from SCCVN if available.
6139 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
6140 (struct vn_ssa_aux): Add needs_insertion flag.
6141 * tree-ssa-sccvn.c (may_insert): New global flag.
6142 (copy_reference_ops_from_ref): Value-number union member access
6143 based on its size, not type and member if insertion is allowed.
6144 (visit_reference_op_load): For a weak match from union type
6145 punning lookup a view-converted value and insert a SSA_NAME
6146 for that value if that is not found.
6147 (visit_use): Make dumps shorter. Do not disallow value numbering
6148 SSA_NAMEs that are life over an abnormal edge to constants.
6149 (free_scc_vn): Release inserted SSA_NAMEs.
6150 (run_scc_vn): New flag to specify whether insertion is allowed.
6151 Process SSA_NAMEs in forward order.
6152 * tree-ssa-loop-im.c (for_each_index): Handle invariant
6153 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
6154 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
6155 pointer type to/from integral types that do not change the
6156 precision to regular conversions.
6158 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
6160 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6161 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6162 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
6163 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
6164 input arguments and the mode of return value. Built-in functions
6165 that operate on whole 64-bit MMX register now use V1DI mode.
6167 2008-03-13 Alon Dayan <alond@il.ibm.com>
6168 Olga Golovanevsky <olga@il.ibm.com>
6170 PR tree-optimization/35041
6171 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
6172 to locate the right position in a statement.
6174 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
6178 * config/i386/xmmintrin.h: Change all static inline functions to
6179 extern inline and add __gnu_inline__ attribute.
6180 * config/i386/bmintrin.h: Ditto.
6181 * config/i386/smmintrin.h: Ditto.
6182 * config/i386/tmmintrin.h: Ditto.
6183 * config/i386/mmintrin-common.h: Ditto.
6184 * config/i386/ammintrin.h: Ditto.
6185 * config/i386/emmintrin.h: Ditto.
6186 * config/i386/pmmintrin.h: Ditto.
6187 * config/i386/mmintrin.h: Ditto.
6188 * config/i386/mm3dnow.h: Ditto.
6190 2008-03-13 Jakub Jelinek <jakub@redhat.com>
6193 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
6194 (lower_omp_2): New function.
6195 (lower_omp_1, lower_omp): Rewritten.
6197 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
6200 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
6201 with the phrase "Microsoft Windows compilers".
6202 (Push/Pop Macro Pragmas): New subsection. Document
6203 #pragma push_macro and pragma pop_macro.
6205 2008-03-12 Paul Brook <paul@codesourcery.com>
6207 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
6209 2008-03-12 Paul Brook <paul@codesourcery.com>
6211 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
6212 (thumb2_alusi3_short): Exclude PLUS and MINUS.
6213 (thumb2_addsi_shortim): Rename ...
6214 (thumb2_addsi_short): ... to this. Allow register operands.
6215 (thumb2_subsi_short): New pattern.
6216 (thumb2_one_cmplsi2_short,
6217 thumb2_negsi2_short): New patterns and peepholes.
6219 2008-03-12 Paul Brook <paul@codesourcery.com>
6221 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
6223 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
6225 * config/i386/i386.md (int_cond): New code iterator.
6227 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
6228 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
6229 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
6230 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
6231 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
6232 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
6233 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
6234 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
6236 2008-03-12 Paul Brook <paul@codesourcery.com>
6238 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
6239 instead of {arm,thumb}_compute_save_reg_mask.
6240 (output_return_instruction): Ditto.
6241 (thumb_unexpanded_epilogue): Ditto.
6242 (thumb1_expand_prologue): Ditto.
6243 (thumb1_output_function_prologue): Ditto.
6244 (arm_set_return_address): Ditto.
6245 (thumb_set_return_address): Ditto.
6246 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
6247 regs to achieve stack alignment.
6248 (thumb1_compute_save_reg_mask): Fix compiler warning.
6249 (arm_output_epilogue): Use offsets->saved_regs_mask.
6250 Adjust stack pointer by poping call clobered registers.
6251 (arm_expand_prologue): Use offsets->saved_regs_mask.
6252 Adjust stack pointer by pushing extra registers.
6253 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
6255 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
6258 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
6259 conversion to the operands of a multiplication.
6261 2008-03-12 Richard Guenther <rguenther@suse.de>
6263 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
6264 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
6265 * timevar.def (TV_TREE_PHIPROP): Add.
6266 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
6267 pass description. Use TV_TREE_PHIPROP.
6268 * tree-ssa-forwprop.c: Remove phiprop code.
6270 2008-03-12 Jakub Jelinek <jakub@redhat.com>
6273 * omp-low.c (maybe_lookup_decl): Constify first argument.
6274 (use_pointer_for_field): Change last argument from bool to
6275 omp_context *. Disallow shared copy-in/out in nested
6276 parallel if decl is shared in outer parallel too.
6277 (build_outer_var_ref, scan_sharing_clauses,
6278 lower_rec_input_clauses, lower_copyprivate_clauses,
6279 lower_send_clauses, lower_send_shared_vars): Adjust callers.
6281 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
6282 Ira Rosen <irar@il.ibm.com>
6284 * tree-vectorizer.c (free_stmt_vec_info): New function.
6285 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
6286 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
6287 * tree-vectorizer.h (free_stmt_vec_info): Declare.
6288 * tree-vect-transform.c (vectorizable_conversion): Free
6289 vec_oprnds0 if it was allocated.
6290 (vect_permute_store_chain): Remove unused VECs.
6291 (vectorizable_store): Free VECs that are allocated in the..
6293 (vect_transform_strided_load, vectorizable_load): Likewise.
6294 (vect_remove_stores): Simplify the code.
6295 (vect_transform_loop): Move code to vect_remove_stores().
6296 Call vect_remove_stores() and free_stmt_vec_info().
6298 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6300 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
6301 TARGET_HPUX. Revise comment.
6302 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
6303 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
6304 Use sr4 variant of `be' instruction when not generating PIC code.
6305 (attr_length_call): Adjust for above change.
6307 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
6309 * ipa-reference.c (static_execute): Remove module_statics_const and
6310 associated setting code.
6312 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
6315 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
6316 predicate for operand 1.
6317 (paritysi2_cmp): Use register_operand predicate for operand 2.
6318 Use earlyclobber modifier for operand 1. Remove support for
6320 (paritydi2_cmp): Use register_operand predicate for operand 3.
6321 Use earlyclobber modifier for operand 1. Remove support for
6324 2008-03-11 Paul Brook <paul@codesourcery.com>
6325 Vladimir Prus <vladimir@codesourcery.com>
6327 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
6328 (arm_compute_save_reg0_reg12_mask): Always
6329 check if register 11 must be saved. Always safe hard frame pointer
6330 when frame_pointer_needeed.
6331 (arm_compute_save_reg_mask): Save IP and PC
6332 only with apcs frames.
6333 (arm_output_epilogue): Adjust Thumb2 codepath to
6334 be also invoked and work for ARM non-apcs frames.
6335 (arm_expand_prologue): Don't bother saving IP
6336 for non-apcs frame, since it's not clobbered by
6337 prologue code. Implement non-apcs frame
6340 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
6342 PR rtl-optimization/35281
6343 * expr.c (convert_move): Use a new pseudo for the intermediate
6344 from_mode->word_mode result.
6346 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
6348 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
6349 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
6350 * toplev.c (compile_file): Don't call it.
6352 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
6355 * expr.c (store_expr): Call emit_block_move if the mode
6356 of "temp" RTX is BLKmode.
6358 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
6359 Richard Guenther <rguenther@suse.de>
6361 PR tree-optimization/31358
6362 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
6363 the step with a NULL_TREE.
6364 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
6365 to sizetype if type is a pointer type.
6366 (add_candidate_1): Don't convert the base and step to
6367 the generic type if the orginal type is a pointer type.
6368 (add_iv_value_candidates): Use sizetype for the step
6369 if type is a pointer type.
6370 (cand_value_at): Likewise.
6371 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
6373 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
6374 Don't convert the tem affine to the type.
6375 (add_elt_to_tree): Use sizetype for the step if a pointer.
6376 Use POINTER_PLUS_EXPR for pointers.
6377 (aff_combination_to_tree): Use sizetype for the step if a
6380 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
6382 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
6383 Remove commutativity hint.
6385 2008-03-10 Jakub Jelinek <jakub@redhat.com>
6389 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
6390 errorneous type. Check that v is a VAR_DECL.
6393 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
6395 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
6397 PR tree-optimization/35494
6398 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
6399 may be overriden at link and run time.
6401 2008-03-10 Richard Guenther <rguenther@suse.de>
6403 PR tree-optimization/34677
6404 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
6405 (poolify_tree): Likewise.
6406 (modify_expr_template): Likewise.
6407 (poolify_modify_stmt): Likewise.
6408 (insert_fake_stores): Handle all component-ref style stores
6409 in addition to INDIRECT_REF. Also handle complex types.
6410 Do not poolify the inserted load.
6411 (realify_fake_stores): Do not rebuild the tree but only
6412 make it a SSA_NAME copy.
6413 (init_pre): Remove initialzation of modify_expr_template.
6414 Do not allocate modify_expr_node_pool.
6415 (fini_pre): Do not free modify_expr_node_pool.
6417 2008-03-10 Paul Brook <paul@codesourcery.com>
6419 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
6422 2008-03-10 Paul Brook <paul@codesourcery.com>
6423 Mark Shinwell <shinwell@codesourcery.com>
6425 * config/arm/cortex-r4.md: New.
6426 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
6428 * config/arm/arm.md: Include cortex-r4.md.
6429 (insn): Add smmls, sdiv and udiv values.
6430 (generic_sched): Don't use generic scheduling for Cortex-R4.
6431 (arm_issue_rate): New function.
6432 (TARGET_SCHED_ISSUE_RATE): Define.
6434 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
6436 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
6438 2008-03-10 Richard Guenther <rguenther@suse.de>
6440 * tree-ssa-pre.c (get_sccvn_value): Simplify.
6441 (compute_avail): Do not add stmt uses to AVAIL_OUT.
6443 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
6445 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
6446 Set default to true.
6448 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6450 * c.opt (Wsynth): Deprecate.
6451 * doc/invoke.texi (Option Summary, Warning Options): Document
6452 -Wno-format-contains-nul.
6454 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
6457 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
6458 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
6460 2008-03-09 Ira Rosen <irar@il.ibm.com>
6462 * config/rs6000/rs6000.c (builtin_description): Rename vector
6463 left shift operations.
6464 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
6465 (altivec_vsl<VI_char>): Rename to ...
6466 (ashl<mode>3): ... new name.
6467 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
6469 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
6471 2008-03-08 Richard Guenther <rguenther@suse.de>
6473 * coverage.h (tree_coverage_counter_addr): Declare.
6474 * coverage.c (tree_coverage_counter_addr): New function.
6475 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
6477 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
6478 (tree_gen_one_value_profiler): Likewise.
6479 (tree_gen_ic_profiler): Likewise.
6480 (tree_gen_average_profiler): Likewise.
6481 (tree_gen_ior_profiler): Likewise.
6483 2008-03-08 Richard Guenther <rguenther@suse.de>
6485 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
6486 (vn_binary_op_insert): Likewise.
6487 (vn_unary_op_lookup): Likewise.
6488 (vn_unary_op_insert): Likewise.
6489 (vn_nary_op_lookup): Declare.
6490 (vn_nary_op_insert): Likewise.
6491 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
6492 and binary hashes, use a single obstack for unary_op_pool
6494 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
6495 a single struct vn_nary_op_s. Store tree code length and
6496 a variable number of operands.
6497 (struct vn_reference_op_struct): Remove unused op2.
6498 (vn_reference_op_eq): Do not compare op2.
6499 (vn_reference_op_compute_hash): Do not compute hash of op2.
6500 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
6501 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
6502 with vn_nary_op_compute_hash.
6503 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
6504 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
6506 (vn_unary_op_insert, vn_binary_op_insert): Replace with
6508 (visit_unary_op): Call nary functions.
6509 (visit_binary_op): Likewise.
6510 (process_scc): Adjust for struct vn_tables_s changes.
6511 (allocate_vn_table): Likewise.
6512 (free_vn_table): Likewise.
6513 * tree-vn.c (vn_add): Call nary functions.
6514 (vn_lookup): Likewise.
6516 2008-03-08 Jakub Jelinek <jakub@redhat.com>
6519 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
6520 wdst back after sync_compare_and_swapqhi_internal.
6522 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
6525 * config/i386/i386-modes.def (V1DI): New vector mode.
6526 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
6527 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
6528 (MMXMODE248): Ditto.
6529 (MMXMODE): Add V1DI mode.
6530 (mmxvecsize): Change DI mode to V1DI mode.
6531 ("mov<mode>): Use MMXMODEI8 mode iterator.
6532 ("*mov<mode>_internal_rex64"): Ditto.
6533 ("*mov<mode>_internal"): Ditto.
6534 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
6535 ("mmx_sub<mode>3"): Ditto.
6536 ("mmx_adddi3"): Remove insn pattern.
6537 ("mmx_subdi3"): Ditto.
6538 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
6539 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
6540 ("mmx_ashl<mode>3"): Ditto.
6541 ("mmx_lshrdi3"): Remove insn pattern.
6542 ("mmx_ashldi3"): Ditto.
6543 * config/i386/i386.c (classify_argument): Handle V1DImode.
6544 (function_arg_advance_32): Ditto.
6545 (function_arg_32): Ditto.
6546 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
6547 mmx_addv1di3 insn pattern.
6548 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
6549 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
6550 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
6551 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
6552 Remove definitions of built-in functions.
6553 (V1DI_type_node): New node.
6554 (v1di_ftype_v1di_int): Ditto.
6555 (v1di_ftype_v1di_v1di): Ditto.
6556 (v2si_ftype_v2si_si): Ditto.
6557 (v4hi_ftype_v4hi_di): Remove node.
6558 (v2si_ftype_v2si_di): Ditto.
6559 (ix86_init_mmx_sse_builtins): Handle V1DImode.
6560 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
6561 Redefine builtins using def_builtin_const with *_ftype_*_int node.
6562 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
6563 Add new builtins using def_builtin_const.
6564 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
6565 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
6566 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
6567 * config/i386/mmintrin.h (__v1di): New typedef.
6568 (_mm_add_si64): Cast arguments to __v1di type.
6569 (_mm_sub_si64): Ditto.
6570 (_mm_sll_pi16): Cast __count to __v4hi type.
6571 (_mm_sll_pi32): Cast __count to __v2si type.
6572 (_mm_sll_si64): Cast arguments to __v1di type.
6573 (_mm_srl_pi16): Cast __count to __v4hi type.
6574 (_mm_srl_pi32): Cast __count to __v2si type.
6575 (_mm_srl_si64): Cast arguments to __v1di type.
6576 (_mm_sra_pi16): Cast __count to __v4hi type.
6577 (_mm_sra_pi32): Cast __count to __v2si type.
6578 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
6579 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
6580 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
6581 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
6582 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
6583 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
6584 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
6585 (_mm_srai_pi32): Use __builtin_ia32_psradi.
6586 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
6587 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6588 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6589 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
6591 2008-03-07 Joseph Myers <joseph@codesourcery.com>
6593 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
6595 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
6598 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
6599 reg+const addressing for Altivec modes. Don't generate reg+reg
6600 addressing for TFmode or TDmode quantities.
6602 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
6604 * c-common.c (vector_types_convertible_p): Call langhook
6605 instead of comptypes.
6607 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
6610 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
6611 integral and scalar float variables which have a
6614 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
6616 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
6617 dwarf_register_span hook when emitting unwind information for
6618 register-to-memory saves.
6619 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
6620 (rs6000_frame_related): Remove call to spe_synthesize_frame.
6622 2008-03-06 Jakub Jelinek <jakub@redhat.com>
6624 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
6625 for the same VAR_DECL.
6627 2008-03-06 Tom Tromey <tromey@redhat.com>
6630 * doc/standards.texi (Standards): Don't mention treelang.
6631 * doc/invoke.texi (Overall Options): Don't mention treelang.
6632 * doc/install.texi (Prerequisites): Don't mention bison or
6634 (Configuration): Don't mention treelang.
6635 (Building): Likewise.
6636 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
6638 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
6640 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
6641 word-extractions out of a multi-word object.
6643 2008-03-06 Richard Guenther <rguenther@suse.de>
6645 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
6646 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
6647 result type and precision.
6648 * expr.c (get_inner_reference): Set unsignedp based on the result
6649 type of BIT_FIELD_REF.
6650 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
6651 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
6652 (try_instantiate_multiple_fields): Likewise. Use the correct type
6654 (sra_build_assignment): Likewise.
6655 (sra_build_elt_assignment): Likewise.
6656 (sra_explode_bitfield_assignment): Likewise.
6657 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
6658 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
6659 set BIT_FIELD_REF_UNSIGNED.
6660 (vectorizable_load): Likewise.
6662 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
6664 * cse.c (cse_extended_basic_block): Invalidate artificial defs
6667 2008-03-06 Richard Guenther <rguenther@suse.de>
6669 * alias.c (struct alias_set_entry): Move has_zero_child field
6670 to pack with alias_set.
6672 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
6674 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6677 2008-03-05 Ian Lance Taylor <iant@google.com>
6679 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
6681 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
6683 * fwprop.c (update_df): Support width and offset parameters of
6685 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
6686 global_conflicts): Change DF_REF_EXTRACT to either
6687 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
6688 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6689 * df-scan.c (df_ref_record, df_defs_record,
6690 df_ref_create_structure, df_def_record_1, df_uses_record,
6691 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
6692 df_bb_refs_collect, df_entry_block_defs_collect,
6693 df_exit_block_uses_collect): Support new width and offset fields.
6694 (ref_extract_pool): New storage pool.
6695 (df_free_ref): New function.
6696 (df_reg_chain_unlink, df_free_collection_rec,
6697 df_sort_and_compress_refs): Call df_free_ref.
6698 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
6700 (df_ref_create_structure): Allocate df_ref_extract if offset and
6701 width fields are used.
6702 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
6703 (df_uses_record): Get offset and width from ZERO_EXTRACT
6705 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
6706 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
6707 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6708 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
6709 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
6710 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6711 (df_ref_extract): New structure.
6712 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
6713 (df_ref_create): Add width and offset parameters.
6715 2008-03-05 Richard Guenther <rguenther@suse.de>
6717 * tree-ssa-structalias.c (get_constraint_for_component_ref):
6718 Use ranges_overlap_p.
6719 (offset_overlaps_with_access): Rename
6720 to ranges_overlap_p and move ...
6721 * tree-flow-inline.h (ranges_overlap_p): ... here.
6723 * tree.h (get_inner_reference, handled_component_p): Update
6726 * tree.h (record_component_aliases, get_alias_set,
6727 alias_sets_conflict_p, alias_sets_must_conflict_p,
6728 objects_must_conflict_p): Move declarations ...
6729 * alias.h (record_component_aliases, get_alias_set,
6730 alias_sets_conflict_p, alias_sets_must_conflict_p,
6731 objects_must_conflict_p): ... here.
6732 Include coretypes.h.
6733 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
6735 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
6737 * cfg.c: Include tree-flow.h.
6738 (remove_edge_raw): Call redirect_edge_var_map_clear.
6739 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
6740 * tree-flow-inline.h (redirect_edge_var_map_def): New.
6741 (redirect_edge_var_map_result): New.
6742 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
6743 PENDING_STMT use with redirect_edge_var_map_*.
6744 * tree-ssa.c (edge_var_maps): New definition.
6745 (redirect_edge_var_map_add): New.
6746 (redirect_edge_var_map_clear): New.
6747 (redirect_edge_var_map_dup): New.
6748 (redirect_edge_var_map_vector): New.
6749 (redirect_edge_var_map_destroy): New.
6750 (ssa_redirect_edge): Replace PENDING_STMT use with
6751 redirect_edge_var_map_*.
6752 (flush_pending_stmts): Same.
6753 (delete_tree_ssa): Destroy edge var map.
6754 * tree-flow.h (struct _edge_var_map): New.
6755 Define edge_var_map vector type.
6756 Declare redirect_edge_var_map_* prototypes.
6757 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
6758 * tree-cfg.c (reinstall_phi_args): Replace
6759 PENDING_STMT use with redirect_edge_var_map_*.
6761 2008-03-05 Richard Guenther <rguenther@suse.de>
6763 PR tree-optimization/35472
6764 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
6765 whose single use_stmt has a overlapping set of loaded and
6766 stored symbols as that use_stmt might be a noop assignment then.
6768 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
6770 * gthr-rtems.h: Implement __gthread_mutex_destroy.
6772 2008-03-05 Richard Guenther <rguenther@suse.de>
6775 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
6776 should be constants.
6777 * tree-cfg.c (verify_expr): Verify it.
6778 * fold-const.c (fold_truthop): Remove code generating
6779 BIT_FIELD_REFs of structure bases.
6780 (fold_binary): Likewise.
6781 (fold_ternary): Position and size of BIT_FIELD_REFs are
6782 always host integers.
6783 (make_bit_field_ref): Remove.
6784 (optimize_bit_field_compare): Remove.
6785 (all_ones_mask_p): Remove.
6787 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
6790 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
6791 (split_block_and_df_analyze): New. Split basic block and rebuild
6793 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
6795 (split_pattern_seq): Likewise.
6796 (erase_matching_seqs): Likewise.
6797 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
6799 2008-03-04 Geoff Keating <geoffk@apple.com>
6801 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
6802 declaration and code.
6803 (tree_invalid_nonnegative_warnv_p): Likewise.
6805 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
6807 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
6808 examples. Truncate option-names then causing overfull hbox.
6810 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6813 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
6815 * configure: Rebuilt.
6817 2008-03-04 Rafael Espindola <espindola@google.com>
6819 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
6820 (tree_unary_nonnegative_warnv_p): New.
6821 (tree_binary_nonnegative_warnv_p): New.
6822 (tree_single_nonnegative_warnv_p): New.
6823 (tree_invalid_nonnegative_warnv_p): New.
6824 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
6826 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6829 * opts.c (handle_option): Postpone 'unknown option' errors only for
6832 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
6835 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
6838 2008-03-04 Rafael Espindola <espindola@google.com>
6840 * fold-const.c (tree_unary_nonzero_warnv_p): New.
6841 (tree_binary_nonzero_warnv_p): New.
6842 (tree_single_nonzero_warnv_p): New.
6843 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
6845 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
6848 * fold-const.c (fold_cond_expr_with_comparison): Prevent
6849 transformations for modes that have signed zeros.
6850 * ifcvt.c (noce_try_abs): Ditto.
6852 2008-03-04 Joseph Myers <joseph@codesourcery.com>
6854 * config/i386/i386.c (override_options): Force
6855 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
6857 2008-03-04 Jan Hubicka <jh@suse.cz>
6860 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
6863 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
6865 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
6866 label to probe the stack.
6868 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
6870 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
6871 (__gthr_win32_mutex_destroy): Declare.
6872 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
6873 __gthr_win32_mutex_destroy.
6874 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
6876 2008-03-03 Jan Hubicka <jh@suse.cz>
6879 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
6880 aggressive on inlining cold calls.
6882 2008-03-03 Richard Guenther <rguenther@suse.de>
6884 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
6885 struct copies into the expression table.
6886 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
6887 (try_to_simplify): Likewise.
6888 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
6889 integral and pointer arguments which do not change the
6890 precision to NOP_EXPRs.
6891 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
6892 VIEW_CONVERT_EXPR case.
6894 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
6896 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6897 defined in a loop at depth 0 is invariant.
6898 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6899 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6900 be called at loop depth 0.
6902 2008-03-02 Jakub Jelinek <jakub@redhat.com>
6905 * gcc.c (process_command): Update copyright notice dates.
6906 * gcov.c (print_version): Likewise.
6907 * gcov-dump.c (print_version): Likewise.
6908 * mips-tfile.c (main): Likewise.
6909 * mips-tdump.c (main): Likewise.
6911 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6914 * c-common.c (flag_permissive): Delete.
6915 (constant_expression_warnings): Check flags first.
6916 (constant_expression_error): New.
6917 * c-common.h (flag_permissive): Delete.
6918 (constant_expression_error): Declare.
6919 * flags.h (flag_permissive): Declare. Update description.
6920 * diagnostic.c (pedwarn): Update.
6922 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
6923 (permissive_error_kind): New.
6924 * toplev.c (flag_permissive): Define. Update description.
6925 * toplev.h (permissive_error_kind): Declare.
6926 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
6927 (pedwarn_c90): Use pedantic_warning_kind.
6928 * c-opts.c (c_common_post_options): flag_permissive does not affect
6929 flag_pedantic_errors.
6931 2008-03-02 Joseph Myers <joseph@codesourcery.com>
6933 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
6934 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
6935 __absvsi2, __absvDI2): Use unsigned arithmetic.
6937 2008-03-02 Andi Kleen <ak@suse.de>
6938 Richard Guenther <rguenther@suse.de>
6940 * struct-equiv.c: Remove file.
6941 * cfg_cleanup.c (condjump_equiv_p): Remove.
6942 * Makefile.in (OBJS-common): Remove struct-equiv.o.
6943 (struct-equiv.o): Remove rule.
6944 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6945 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
6946 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6948 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6950 * ifcvt.c (noce_process_if_block): Try to handle only the then
6951 block if the else block exists but isn't suitable.
6953 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
6956 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6957 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6958 regression from previous patch.
6960 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
6963 * gthr.h: Add __gthread_mutex_destroy as a function that must be
6965 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6966 * gthr-single.h (__gthread_mutex_destroy): Likewise.
6967 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6968 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6969 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6970 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6971 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6972 (__gthread_mutex_destroy_function): Rename to
6973 __gthread_mutex_destroy.
6974 * gthr-dce.h (__gthread_mutex_destroy): Call
6975 pthread_mutex_destroy.
6976 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6977 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6978 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6980 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6982 * df-scan.c (df_ref_chain_change_bb): Simplify.
6983 (df_insn_change_bb): Add new_bb argument. Simplify. Call
6984 set_block_for_insn if there's any change.
6985 * df.h ((df_insn_change_bb): Fix prototype.
6986 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6987 df_insn_change_bb, don't call set_block_for_insn.
6988 * emit-rtl.c (reorder_insns): Likewise.
6989 * haifa-sched.c (move_insn): Likewise.
6991 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6993 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6995 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
6997 * tree-flow-inline.h (next_readonly_imm_use): Return
6998 NULL_USE_OPERAND_P after the end.
7000 2008-03-01 Richard Guenther <rguenther@suse.de>
7002 PR tree-optimization/35411
7003 * tree-sra.c (sra_build_assignment): Split conversion to
7004 final type to a separate statement if we are not assigning
7007 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7009 * fold-const.c (fold_convertible_p): Correct the logic to follow
7010 that in fold_convert().
7012 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
7015 * tree-inline.c (build_duplicate_type): When we make a
7016 duplicate type, make it unique in the canonical types system.
7018 2008-02-29 Tom Tromey <tromey@redhat.com>
7020 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
7021 input_file_stack_history, input_file_stack_restored): Remove.
7022 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7023 * input.h (struct file_stack): Remove.
7024 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7025 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
7027 * diagnostic.h (struct diagnostic_context) <last_module>: Change
7029 (diagnostic_last_module_changed): Add 'map' argument.
7030 (diagnostic_set_last_function): Likewise.
7031 * diagnostic.c (undiagnostic_report_current_module): Iterate using
7032 line map, not input_file_stack.
7033 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
7035 2008-02-29 Paul Brook <paul@codesourcery.com>
7037 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
7039 2008-02-29 Paul Brook <paul@codesourcery.com>
7041 * config/arm/ieee754-df.S (muldf3): Use RET macros.
7043 2008-02-29 Richard Guenther <rguenther@suse.de>
7045 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
7047 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
7048 value for comparing for a store match.
7049 (simplify_unary_expression): Do nothing for SSA_NAMEs.
7050 (try_to_simplify): Do not do a full-blown reference lookup.
7052 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
7054 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
7055 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
7057 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
7059 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
7061 * tree-loop-linear.c (try_interchange_loops): Compare memory access
7062 strides against cache sizes.
7064 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
7066 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
7069 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
7071 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
7072 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
7073 is smaller than the original promoted value.
7074 (simplify_subreg): If OP is a SUBREG, try to preserve its
7075 SUBREG_PROMOTED_VAR_P information.
7077 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
7079 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
7080 (VN_INFO_GET): Allocate new objects on the obstack.
7081 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
7082 for rpo_numbers_temp, for consistency.
7083 (free_scc_vn): Free the obstack.
7085 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
7087 * doc/invoke.texi: Document -ftree-loop-distribution.
7088 * tree-loop-distribution.c: New.
7089 * tree-pass.h (pass_loop_distribution): New.
7090 * graphds.h (struct graph): Add htab_t indices.
7091 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7092 * tree-vectorizer.c (rename_variables_in_loop): Extern.
7093 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
7094 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7095 * tree-data-ref.c (debug_data_dependence_relations): New.
7096 (dump_data_dependence_relation): Also print data references.
7097 (free_data_ref): Extern.
7098 (same_access_functions): Moved...
7099 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7100 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7101 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7102 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
7103 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
7104 (stmts_from_loop): Skip LABEL_EXPR.
7105 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
7107 (build_rdg): Initialize rdg->indices htab.
7108 (free_rdg, stores_from_loop, ref_base_address,
7109 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7110 have_similar_memory_accesses_1, ref_base_address_1,
7111 remove_similar_memory_refs): New.
7112 * tree-data-ref.h: Depend on tree-chrec.h.
7113 (debug_data_dependence_relations, free_data_ref): Declared.
7114 (same_access_functions): ... here.
7115 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
7117 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
7118 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
7119 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
7120 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7121 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7122 rdg_vertex_for_stmt): Declared.
7123 (struct rdg_edge): Add level.
7125 (free_rdg, stores_from_loop, remove_similar_memory_refs,
7126 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
7128 (rdg_has_similar_memory_accesses): New.
7129 * tree-vect-analyze.c: Remove unused static decls.
7130 * lambda.h (dependence_level): New.
7131 * common.opt (ftree-loop-distribution): New.
7132 * tree-flow.h (mark_virtual_ops_in_bb,
7133 slpeel_tree_duplicate_loop_to_edge_cfg,
7134 rename_variables_in_loop): Declared.
7135 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
7136 (OBJS-common): Add tree-loop-distribution.o.
7137 (tree-loop-distribution.o): New rule.
7138 * tree-cfg.c (mark_virtual_ops_in_bb): New.
7139 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7140 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
7142 2008-02-28 Joseph Myers <joseph@codesourcery.com>
7145 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
7146 other than structures and unions.
7148 2008-02-28 Richard Guenther <rguenther@suse.de>
7151 2008-02-26 Richard Guenther <rguenther@suse.de>
7153 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7154 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7155 (lookup_decl_from_uid): Declare.
7156 (remove_decl_from_map): Likewise.
7157 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7158 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7159 (decl_for_uid_map): New global hashtable mapping DECL_UID
7161 (init_ttree): Allocate it.
7162 (insert_decl_to_uid_decl_map): New helper function.
7163 (make_node_stat): Insert new decls into the map.
7164 (copy_node_stat): Likewise.
7165 (lookup_decl_from_uid): New function.
7166 (remove_decl_from_map): Likewise.
7167 (print_decl_for_uid_map_statistics): New helper.
7168 (dump_tree_statistics): Call it.
7170 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7171 (referenced_var_iterator): Adjust.
7172 (FOR_EACH_REFERENCED_VAR): Adjust.
7173 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7174 (num_referenced_vars): Adjust.
7175 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7176 (first_referenced_var): Remove.
7177 (end_referenced_vars_p): Likewise.
7178 (next_referenced_var): Likewise.
7179 (referenced_var_iterator_set): New helper function.
7180 * tree-dfa.c (referenced_var_lookup): Adjust.
7181 (referenced_var_check_and_insert): Likewise.
7182 (remove_referenced_var): Likewise.
7183 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7184 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7185 (verify_call_clobbering): Likewise.
7186 (verify_memory_partitions): Likewise.
7187 (init_tree_ssa): Allocate bitmap instead of hashtable for
7189 (delete_tree_ssa): Adjust.
7190 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7191 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7192 (compute_tag_properties): Likewise.
7193 (set_initial_properties): Likewise.
7194 (find_partition_for): Likewise.
7195 (update_reference_counts): Likewise.
7196 (dump_may_aliases_for): Likewise.
7197 * tree-ssa-operands.c (add_virtual_operand): Likewise.
7198 (add_call_clobber_ops): Likewise.
7199 (add_call_read_ops): Likewise.
7200 (get_asm_expr_operands): Likewise.
7201 * tree-into-ssa.c (dump_decl_set): Likewise.
7202 (update_ssa): Likewise.
7203 * tree-sra.c (scan_function): Likewise.
7204 (decide_instantiations): Likewise.
7205 (scalarize_parms): Likewise.
7206 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7207 (dsa_named_for): Likewise.
7208 * tree-ssa-structalias.c (update_alias_info): Likewise.
7209 (merge_smts_into): Likewise.
7211 2008-02-27 David Daney <ddaney@avtrex.com>
7214 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
7215 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
7216 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
7217 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
7218 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
7220 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
7223 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
7224 (BUILT_IN_NEXTTOWARD): Remove.
7225 (BUILT_IN_NEXTTOWARDF): Ditto.
7226 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
7227 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
7229 2008-02-27 Tom Tromey <tromey@redhat.com>
7231 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
7232 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
7234 2008-02-27 Jan Beulich <jbeulich@novell.com>
7236 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
7237 update the respective field on newdecl.
7239 2008-02-27 Revital Eres <eres@il.ibm.com>
7241 PR rtl-optimization/34999
7242 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
7243 crossing edges that ends with a call insn.
7244 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
7245 call insn and clear the EDGE_CROSSING flag of the crossing edge
7246 when fixing fallthru edges.
7248 2008-02-27 Richard Guenther <rguenther@suse.de>
7251 * fold-const.c (fold_unary): Return the correct argument,
7252 converted to the result type.
7254 2008-02-27 Richard Guenther <rguenther@suse.de>
7257 * expr.c (expand_expr_real_1): Assert on rotates that operate
7259 * fold-const.c (fold_binary): Use the types precision, not the
7260 bitsize of the mode if folding rotate expressions. Build rotates
7261 only for full modes.
7263 2008-02-27 Jakub Jelinek <jakub@redhat.com>
7265 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
7267 * c-pragma.c (pragma_ns_name): New typedef.
7268 (registered_pp_pragmas): New variable.
7269 (c_pp_lookup_pragma): New function.
7270 (c_register_pragma_1): If flag_preprocess_only, do nothing
7271 for non-expanded pragmas, for expanded ones push pragma's
7272 namespace and name into registered_pp_pragmas vector.
7273 (c_invoke_pragma_handler): Register OpenMP pragmas even when
7274 flag_preprocess_only, don't register GCC pch_preprocess
7275 pragma if flag_preprocess_only.
7276 * c-opts.c (c_common_init): Call init_pragma even if
7277 flag_preprocess_only.
7278 * c-pragma.c (c_pp_lookup_pragma): New prototype.
7279 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
7280 cpp_register_pragma if flag_preprocess_only.
7282 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7285 * c-parser.c (c_parser_translation_unit): Warn for empty
7286 translation unit, not empty source file.
7288 2008-02-26 Paul Brook <paul@codesourcery.com>
7290 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
7291 operand for Thumb-2.
7292 * config/arm/arm.h (reg_class): Add CORE_REGS.
7293 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
7294 (BASE_REG_CLASS): Use CORE_REGS.
7295 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
7296 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
7297 (REGNO_OK_FOR_INDEX_P): Exclude SP.
7298 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
7299 ARM_REGNO_OK_FOR_INDEX_P.
7300 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
7301 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
7302 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
7303 (ldm/stm peepholes): Ditto.
7304 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
7305 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
7306 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
7307 * config/arm/constraints.md: Enable "k" constraint on ARM.
7309 2008-02-27 Ben Elliston <bje@au.ibm.com>
7311 * config/rs6000/rs6000.c: Annotate cache line size field in all
7312 instances of struct processor_costs.
7314 2008-02-26 David Edelsohn <edelsohn@gnu.org>
7316 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
7317 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
7318 jump_bypass): New counters.
7319 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
7320 * dce.c (gate_ud_dce): Same.
7321 (gate_fast_dce): Same.
7322 * dse.c (gate_dse1): New function.
7323 (gate_dse2): New function.
7324 (gate_dse): Merge results of new gate functions.
7325 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
7326 (gate_handle_jump_bypass): Add dbg_cnt.
7327 (gate_handle_gcse): Add dbg_cnt.
7328 * ifcvt.c (gate_handle_if_conversion): Same.
7329 (gate_handle_if_after_combine): Same.
7330 (gate_handle_if_after_reload): Same.
7331 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
7333 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
7335 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
7337 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
7339 2008-02-26 Jason Merrill <jason@redhat.com>
7342 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
7343 alone if it's the naming decl for the type's main variant.
7345 2008-02-26 Tom Tromey <tromey@redhat.com>
7347 * system.h (USE_MAPPED_LOCATION): Poison.
7348 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
7349 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
7350 (make_goto_expr_edges): Likewise.
7351 (remove_bb): Likewise.
7352 (execute_warn_function_return): Likewise.
7353 * basic-block.h (struct edge_def) <goto_locus>: Change type to
7355 * c-common.c (fname_decl): Remove old location code.
7356 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
7358 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
7360 (ASM_INPUT_SOURCE_LOCATION): Likewise.
7361 (gen_rtx_ASM_INPUT): Likewise.
7362 (gen_rtx_ASM_INPUT_loc): Likewise.
7363 (get_rtx_asm_OPERANDS): Remove.
7364 * cfglayout.c (insn_locators_alloc): Remove old location code.
7365 (set_curr_insn_source_location): Likewise.
7366 (curr_insn_locator): Likewise.
7367 * print-tree.c (print_node): Remove old location code.
7368 * tree-mudflap.c (mf_varname_tree): Remove old location code.
7369 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
7370 * cfgexpand.c (expand_gimple_cond_expr): Don't use
7371 location_from_locus.
7372 (construct_exit_block): Remove old location code.
7373 * emit-rtl.c (force_next_line_note): Remove old location code.
7374 * profile.c (branch_prob): Remove old location code.
7375 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
7376 LOC_LINE): Remove old-location variants.
7377 * langhooks.c (lhd_print_error_function): Remove old location
7379 * configure, config.in: Rebuilt.
7380 * configure.ac (--enable-mapped-location): Remove.
7381 * c-decl.c (c_init_decl_processing): Remove old location code.
7382 (finish_function): Likewise.
7383 * recog.c (decode_asm_operands): Remove old location code.
7384 * c-pch.c (c_common_read_pch): Remove old location code.
7385 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
7387 * gimple-low.c (lower_function_body): Remove old location code.
7388 * toplev.c (unknown_location): Remove.
7389 (push_srcloc): Remove old-location variant.
7390 (process_options): Remove old location code.
7391 (lang_dependent_init): Likewise.
7392 * input.h (UNKNOWN_LOCATION): Move definition.
7393 (location_t): Undeprecate.
7394 (source_locus): Remove.
7395 (location_from_locus): Remove.
7396 (struct location_s): Remove.
7397 Remove all old-location code.
7398 (input_line, input_filename): Remove.
7399 * final.c (final_scan_insn): Remove old location code.
7400 * diagnostic.c (diagnostic_build_prefix): Remove
7401 USE_MAPPED_LOCATION test.
7402 * tree.h (gimple_stmt) <locus>: Now a location_t.
7403 (tree_exp) <locus>: Likewise.
7404 (DECL_IS_BUILTIN): Remove old-location variant.
7405 (annotate_with_file_line, annotate_with_locus): Likewise.
7406 (expr_locus, set_expr_locus): Update.
7407 * tree.c (build1_stat): Remove old location code.
7408 (last_annotated_node): Remove.
7409 (annotate_with_file_line): Remove old-location variant.
7410 (annotate_with_locus): Likewise.
7411 (expr_location): Remove old location code.
7412 (set_expr_location): Likewise.
7413 (expr_has_location): Likewise.
7414 (expr_locus): Likewise.
7415 (set_expr_locus): Likewise.
7416 (expr_filename): Don't use location_from_locus.
7417 (expr_lineno): Likewise.
7418 * rtl-error.c (location_for_asm): Remove old location code.
7419 * c-lex.c (cb_line_change): Remove old location code.
7420 (fe_file_change): Likewise.
7421 (cb_def_pragma): Likewise.
7422 (c_lex_with_flags): Likewise.
7423 * gengtype.c (do_typedef): Don't special-case location types.
7424 (define_location_structures): Remove.
7425 (main): Don't call define_location_structures.
7426 * tree-pretty-print.c (dump_implicit_edges): Remove old location
7429 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7432 * builtins.def (BUILT_IN_STDARG_START): Remove.
7433 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
7434 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
7435 * tree-inline.c (inline_forbidden_p_1): Likewise.
7437 2008-02-26 Richard Guenther <rguenther@suse.de>
7439 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7440 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7441 (lookup_decl_from_uid): Declare.
7442 (remove_decl_from_map): Likewise.
7443 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7444 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7445 (decl_for_uid_map): New global hashtable mapping DECL_UID
7447 (init_ttree): Allocate it.
7448 (insert_decl_to_uid_decl_map): New helper function.
7449 (make_node_stat): Insert new decls into the map.
7450 (copy_node_stat): Likewise.
7451 (lookup_decl_from_uid): New function.
7452 (remove_decl_from_map): Likewise.
7453 (print_decl_for_uid_map_statistics): New helper.
7454 (dump_tree_statistics): Call it.
7456 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7457 (referenced_var_iterator): Adjust.
7458 (FOR_EACH_REFERENCED_VAR): Adjust.
7459 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7460 (num_referenced_vars): Adjust.
7461 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7462 (first_referenced_var): Remove.
7463 (end_referenced_vars_p): Likewise.
7464 (next_referenced_var): Likewise.
7465 (referenced_var_iterator_set): New helper function.
7466 * tree-dfa.c (referenced_var_lookup): Adjust.
7467 (referenced_var_check_and_insert): Likewise.
7468 (remove_referenced_var): Likewise.
7469 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7470 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7471 (verify_call_clobbering): Likewise.
7472 (verify_memory_partitions): Likewise.
7473 (init_tree_ssa): Allocate bitmap instead of hashtable for
7475 (delete_tree_ssa): Adjust.
7476 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7477 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7478 (compute_tag_properties): Likewise.
7479 (set_initial_properties): Likewise.
7480 (find_partition_for): Likewise.
7481 (update_reference_counts): Likewise.
7482 (dump_may_aliases_for): Likewise.
7483 * tree-ssa-operands.c (add_virtual_operand): Likewise.
7484 (add_call_clobber_ops): Likewise.
7485 (add_call_read_ops): Likewise.
7486 (get_asm_expr_operands): Likewise.
7487 * tree-into-ssa.c (dump_decl_set): Likewise.
7488 (update_ssa): Likewise.
7489 * tree-sra.c (scan_function): Likewise.
7490 (decide_instantiations): Likewise.
7491 (scalarize_parms): Likewise.
7492 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7493 (dsa_named_for): Likewise.
7494 * tree-ssa-structalias.c (update_alias_info): Likewise.
7495 (merge_smts_into): Likewise.
7497 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7500 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
7501 * c-opts.c (c_common_handle_option): Wall enables
7502 Wvolatile-register-var.
7503 * common.opt: Move Wvolatile-register-var to...
7506 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7508 * common.opt (Wlarger-than=): New.
7509 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
7511 * opts.c (common_handle_option): Handle -Wlarger-than=.
7512 * optc-gen.awk: Likewise.
7513 * opth-gen.awk: Likewise.
7514 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
7515 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7517 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7519 * c-common.c (match_case_to_enum_1): Add appropriate
7520 OPT_W* parameter to warning.
7521 (c_do_switch_warnings): Likewise.
7522 * c-typeck.c (warning_init): Add one more parameter following
7524 (push_init_level): Update call to warning_init.
7525 (pop_init_level): Likewise.
7526 (add_pending_init): Likewise.
7527 (output_init_element: Likewise.
7529 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7532 * toplev.c (toplev_main): If there are warnings or error, print
7533 errors for ignored options.
7534 * opts.c (ignored_options): New static variable.
7535 (postpone_unknown_option_error): New.
7536 (print_ignored_options): New.
7537 (handle_option): Postpone errors for unknown -Wno-* options.
7538 * opts.h (print_ignored_options): Declare.
7540 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
7542 * config/mips/mips.md (loadgp_blockage, blockage): Change type
7545 2008-02-25 Richard Guenther <rguenther@suse.de>
7548 2008-02-25 Richard Guenther <rguenther@suse.de>
7550 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7551 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7552 (lookup_decl_from_uid): Declare.
7553 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7554 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7555 (decl_for_uid_map): New global hashtable mapping DECL_UID
7557 (init_ttree): Allocate it.
7558 (insert_decl_to_uid_decl_map): New helper function.
7559 (make_node_stat): Insert new decls into the map.
7560 (copy_node_stat): Likewise.
7561 (lookup_decl_from_uid): New function.
7562 (print_decl_for_uid_map_statistics): New helper.
7563 (dump_tree_statistics): Call it.
7565 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7566 (referenced_var_iterator): Adjust.
7567 (FOR_EACH_REFERENCED_VAR): Adjust.
7568 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7569 (num_referenced_vars): Adjust.
7570 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7571 (first_referenced_var): Remove.
7572 (end_referenced_vars_p): Likewise.
7573 (next_referenced_var): Likewise.
7574 (referenced_var_iterator_set): New helper function.
7575 * tree-dfa.c (referenced_var_lookup): Adjust.
7576 (referenced_var_check_and_insert): Likewise.
7577 (remove_referenced_var): Likewise.
7578 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7579 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7580 (verify_call_clobbering): Likewise.
7581 (verify_memory_partitions): Likewise.
7582 (init_tree_ssa): Allocate bitmap instead of hashtable for
7584 (delete_tree_ssa): Adjust.
7585 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7586 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7587 (compute_tag_properties): Likewise.
7588 (set_initial_properties): Likewise.
7589 (find_partition_for): Likewise.
7590 (update_reference_counts): Likewise.
7591 (dump_may_aliases_for): Likewise.
7592 * tree-ssa-operands.c (add_virtual_operand): Likewise.
7593 (add_call_clobber_ops): Likewise.
7594 (add_call_read_ops): Likewise.
7595 (get_asm_expr_operands): Likewise.
7596 * tree-into-ssa.c (dump_decl_set): Likewise.
7597 (update_ssa): Likewise.
7598 * tree-sra.c (scan_function): Likewise.
7599 (decide_instantiations): Likewise.
7600 (scalarize_parms): Likewise.
7601 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7602 (dsa_named_for): Likewise.
7603 * tree-ssa-structalias.c (update_alias_info): Likewise.
7604 (merge_smts_into): Likewise.
7606 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
7609 * doc/invoke.texi (-fcx-limited-range): Document new option.
7610 * toplev.c (process_options): Handle -fcx-fortran-rules.
7611 * common.opt: Add documentation for -fcx-fortran-rules.
7613 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
7616 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
7617 actual behaviour and C99.
7619 2008-02-26 Ben Elliston <bje@au.ibm.com>
7621 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
7622 (ASM_CPU_POWER6_SPEC): Likewise.
7623 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
7624 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
7625 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
7627 2008-02-25 Richard Guenther <rguenther@suse.de>
7629 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7630 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7631 (lookup_decl_from_uid): Declare.
7632 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7633 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7634 (decl_for_uid_map): New global hashtable mapping DECL_UID
7636 (init_ttree): Allocate it.
7637 (insert_decl_to_uid_decl_map): New helper function.
7638 (make_node_stat): Insert new decls into the map.
7639 (copy_node_stat): Likewise.
7640 (lookup_decl_from_uid): New function.
7641 (print_decl_for_uid_map_statistics): New helper.
7642 (dump_tree_statistics): Call it.
7644 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7645 (referenced_var_iterator): Adjust.
7646 (FOR_EACH_REFERENCED_VAR): Adjust.
7647 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7648 (num_referenced_vars): Adjust.
7649 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7650 (first_referenced_var): Remove.
7651 (end_referenced_vars_p): Likewise.
7652 (next_referenced_var): Likewise.
7653 (referenced_var_iterator_set): New helper function.
7654 * tree-dfa.c (referenced_var_lookup): Adjust.
7655 (referenced_var_check_and_insert): Likewise.
7656 (remove_referenced_var): Likewise.
7657 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7658 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7659 (verify_call_clobbering): Likewise.
7660 (verify_memory_partitions): Likewise.
7661 (init_tree_ssa): Allocate bitmap instead of hashtable for
7663 (delete_tree_ssa): Adjust.
7664 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7665 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7666 (compute_tag_properties): Likewise.
7667 (set_initial_properties): Likewise.
7668 (find_partition_for): Likewise.
7669 (update_reference_counts): Likewise.
7670 (dump_may_aliases_for): Likewise.
7671 * tree-ssa-operands.c (add_virtual_operand): Likewise.
7672 (add_call_clobber_ops): Likewise.
7673 (add_call_read_ops): Likewise.
7674 (get_asm_expr_operands): Likewise.
7675 * tree-into-ssa.c (dump_decl_set): Likewise.
7676 (update_ssa): Likewise.
7677 * tree-sra.c (scan_function): Likewise.
7678 (decide_instantiations): Likewise.
7679 (scalarize_parms): Likewise.
7680 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7681 (dsa_named_for): Likewise.
7682 * tree-ssa-structalias.c (update_alias_info): Likewise.
7683 (merge_smts_into): Likewise.
7685 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
7688 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
7689 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
7690 * alias.h (nonoverlapping_memrefs_p): Likewise.
7692 2008-02-25 Jan Beulich <jbeulich@novell.com>
7694 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
7695 * config/i386/netware-libgcc.exp: Add __bswap?i2,
7696 __emultls_get_address, __emultls_register_common,
7697 __floatundi?f, and _Unwind_GetIPInfo.
7698 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
7699 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
7700 (gen_regparm_prefix): Likewise.
7701 (i386_nlm_encode_section_info): Sync with
7702 config/i386/winnt.c:i386_pe_encode_section_info().
7703 (i386_nlm_maybe_mangle_decl_assembler_name): New.
7704 i386_nlm_mangle_decl_assembler_name): New.
7705 (netware_override_options): New.
7706 * config/i386/netware.h (netware_override_options): Declare.
7707 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
7708 (i386_nlm_mangle_decl_assembler_name): Declare.
7709 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
7711 2008-02-25 Ben Elliston <bje@au.ibm.com>
7714 * c-decl.c (grokdeclarator): Remove unused local variables
7715 `typedef_type' and `type_as_written'.
7717 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
7718 unused local variable `has_hot_blocks'.
7719 (fix_crossing_conditional_branches): Remove unused local variable
7722 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
7725 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
7726 using DEF_C99_BUILTIN.
7727 (BUILT_IN_NANF): Ditto.
7728 (BUILT_IN_NANL): Ditto.
7730 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
7731 Revital Eres <eres@il.ibm.com>
7733 * modulo-sched.c (calculate_must_precede_follow): Address TODO
7734 regarding the order of two dependent insns in the same row.
7736 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
7738 * stor-layout.c (layout_decl): Do not bump the alignment of a
7739 bit-field to more than byte alignment if it is packed.
7741 2008-02-24 David Edelsohn <edelsohn@gnu.org>
7743 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
7746 2008-02-24 Diego Novillo <dnovillo@google.com>
7748 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
7751 * tree-vrp.c (vrp_evaluate_conditional): With
7752 -Wtype-limits, emit a warning when comparing against a
7753 constant outside the natural range of OP0's type.
7754 * c.opt (Wtype-limits): Move ...
7755 * common.opt (Wtype-limits): ... here.
7757 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
7759 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
7760 * config/rs6000/e300c2c3.md: New file.
7761 * config/rs6000/rs6000.c (processor_costs): Add new costs for
7763 (rs6000_override_options): Add e300c2 and e300c3 cases to
7764 processor_target_table. Do not allow usage of Altivec or Spe
7765 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
7766 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
7767 * config/rs6000/rs6000.h (processor_type): Add
7768 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
7769 (ASM_CPU_SPEC): Add e300c2 and e300c3.
7770 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
7771 and ppce300c3. Include e300c2c3.md.
7773 2008-02-23 David Edelsohn <edelsohn@gnu.org>
7775 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
7776 instead of TARGET_STRICT_ALIGN.
7778 2008-02-23 Joseph Myers <joseph@codesourcery.com>
7780 * explow.c (memory_address): Assert that the generated address is
7783 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7786 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
7787 * config/darwin-ppc-ldouble-patch.def: New file.
7788 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
7789 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
7790 SUBTARGET_INIT_BUILTINS if defined.
7791 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
7794 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
7797 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
7798 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
7800 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
7803 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
7804 file" warning condtional on -Winvalid-PCH.
7806 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
7808 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
7810 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
7814 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
7815 prevent reload from using MMX registers.
7816 (*mov<mode>_internal): Ditto.
7817 (*movv2sf_internal_rex64): Ditto.
7818 (*movv2sf_internal): Ditto.
7820 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7822 PR documentation/31569
7823 * doc/install.texi2html: Use makeinfo --no-number-sections.
7825 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
7827 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
7828 ensure that we can address an entire entity > 8 bytes. Don't
7829 generate reg+reg addressing for such data.
7831 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
7833 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
7834 strings when optimizing for size, unless the target cares about
7837 2008-02-22 Tom Tromey <tromey@redhat.com>
7839 * regclass.c (current_pass): Remove declaration.
7841 2008-02-22 Anatoly Sokolov <aesok@post.ru>
7843 * config/avr/libgcc.S (__RAMPZ__): Define.
7844 (__do_copy_data): Add for devices with 128KB code memory.
7846 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
7848 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
7850 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7852 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
7854 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
7857 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7860 * c-typeck.c (build_binary_op): Warn about floating point
7861 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
7863 2008-02-21 Janis Johnson <janis187@us.ibm.com>
7866 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
7867 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
7869 (rs6000_override_options): Set altivec_abi as default, not override,
7870 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
7871 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
7872 is used; use new member spe_abi.
7873 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
7874 spe_abi and altivec_abi.
7876 2008-02-22 Tomas Bily <tbily@suse.cz>
7878 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
7880 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7883 * config.build (build_file_translate): Set to `CMD //c' only if
7885 * Makefile.in (build_file_translate): Improve comment.
7887 2008-02-21 Jan Hubicka <jh@suse.cz>
7889 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
7890 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
7891 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
7893 2008-02-21 Michael Matz <matz@suse.de>
7896 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
7898 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
7900 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
7901 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
7903 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
7904 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
7905 SSE_VEC_FLOAT_MODE_P as insn constraint.
7906 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
7907 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
7908 sse4a_movntdf using MODEF mode iterator.
7909 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
7910 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
7911 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
7912 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
7913 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
7914 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
7915 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
7917 2008-02-21 Richard Guenther <rguenther@suse.de>
7919 * tree.def (PAREN_EXPR): New tree code.
7920 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
7922 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
7923 * expr.c (expand_expr_real_1): Likewise.
7924 * tree-inline.c (estimate_num_insns_1): Likewise.
7925 * tree-complex.c (expand_complex_move): Likewise.
7926 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
7929 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
7932 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
7934 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
7937 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
7939 * config/sh/sh.c (find_barrier): Don't go past
7940 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7942 2008-02-20 DJ Delorie <dj@redhat.com>
7944 * config/h8300/h8300.md (insv): Force source operand to be a register.
7946 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7947 as a jump, not as a plain insn.
7949 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
7951 * doc/invoke.texi (Warning Options): Add new option
7952 -Wframe-larger-than=.
7953 (-Wframe-larger-than): Document.
7955 * flags.h (warn_frame_larger_than, frame_larger_than_size):
7956 Add declarations for new option variables.
7958 * final.c (final_start_function): Check the frame size
7959 before emission and issue a Wframe-larger-than warning.
7961 * opts.c (warn_frame_larger_than, frame_larger_than_size):
7962 Add definitions for new option variables.
7963 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7965 * common.opt (Wframe-larger-than=): New option.
7967 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
7969 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7970 (<sse>_div<mode>3): Ditto.
7971 (<sse>_vmdiv<mode>3): Ditto.
7972 (<sse>_vmsqrt<mode>2): Ditto.
7973 (*smax<mode>3): Ditto.
7974 (sse5_frcz<mode>2): Ditto.
7975 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
7978 2008-02-20 Richard Guenther <rguenther@suse.de>
7981 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7982 be happy with INTEGRAL_TYPE_P.
7984 2008-02-20 Richard Guenther <rguenther@suse.de>
7986 * fold-const.c (split_tree): Associate floatig-point expressions
7987 if flag_associative_math is set.
7989 2008-02-20 Richard Guenther <rguenther@suse.de>
7991 * tree.h (fold_real_zero_addition_p): Declare.
7992 * fold-const.c (fold_real_zero_addition_p): Export.
7993 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7994 floating-point operations with zero and one.
7996 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
7998 * doc/install.texi: Correct references to CFLAGS, replacing them
7999 with BOOT_CFLAGS. Document flags used during bootstrap for
8002 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
8004 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
8005 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
8006 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
8008 (smin<mode>3): Ditto from similar patterns.
8009 (smax<mode>3): Ditto.
8010 (*ieee_smin<mode>3): Ditto.
8011 (*ieee_smax<mode>3): Ditto.
8012 * config/i386/sse.md (sse): New mode attribute.
8013 (mov<mode>): Macroize expander from movv4sf and movv2df using
8014 SSEMODEF2P mode iterator.
8015 (<sse>_movnt<mode>): Ditto from similar patterns. Use
8016 SSE_VEC_FLOAT_MODE_P as insn constraint.
8017 (storent<mode>): Ditto.
8018 (storent<mode>): Macroize expander from storentsf and storentdf using
8019 MODEF mode iterator.
8020 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
8021 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
8022 (abs<mode>2): Ditto from similar patterns.
8023 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
8024 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
8025 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
8026 (<sse>_vmsqrt<mode>2): Ditto.
8027 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
8028 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
8029 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
8030 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
8031 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
8032 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
8033 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
8035 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
8036 iterator and SSE_FLOAT_MODE_P as insn constraint.
8037 (<sse>_ucomi): Ditto from similar patterns.
8038 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
8039 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
8040 SSE_VEC_FLOAT_MODE_P as insn constraint.
8041 (vcond<mode>): Ditto from similar patterns.
8042 (and<mode>3, *and<mode>3): Ditto.
8043 (<sse>_nand<mode>3): Ditto.
8044 (ior<mode>3, *ior<mode>3): Ditto.
8045 (xor<mode>3, *xor<mode>3): Ditto.
8046 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
8047 iterator and SSE_FLOAT_MODE_P as insn constraint.
8048 (*nand<mode>3): Ditto from similar patterns.
8049 (*ior<mode>3): Ditto.
8050 (*xor<mode>3): Ditto.
8052 2008-02-20 Ira Rosen <irar@il.ibm.com>
8054 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
8055 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
8056 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
8058 2008-02-19 Jan Hubicka <jh@suse.cz>
8060 * predict.c (tree_bb_level_predictions): Remove variable next
8061 mistakely introduced by previous commit.
8063 2008-02-19 Jan Hubicka <jh@suse.cz>
8065 * predict.c (predict_paths_leading_to): Rewrite.
8066 (predict_paths_for_bb): New.
8067 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
8069 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8072 * Makefile.in (build_file_translate): New.
8073 (gcc-vers.texi): Use it for translating $(abs_srcdir).
8074 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
8075 * configure.ac (build_file_translate): Substitute it.
8076 * configure: Regenerate.
8078 2008-02-19 Jan Hubicka <jh@suse.cz>
8080 PR rtl-optimization/34408
8081 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
8084 2008-02-19 Jan Hubicka <jh@suse.cz>
8087 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
8090 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
8093 * config/i386/i386-modes.def: Revert the last DI alignment
8094 change until Ada people can look into it.
8096 2008-02-19 Nick Clifton <nickc@redhat.com>
8098 * opts.c (print_specific_help): Fix typo in --help text.
8100 2008-02-19 Jakub Jelinek <jakub@redhat.com>
8103 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
8104 32-bit inline asm without asm alternatives for host GCC < 3.0.
8106 2008-02-19 Richard Guenther <rguenther@suse.de>
8108 PR tree-optimization/34989
8109 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
8110 Allow propagation to INDIRECT_REF if we can simplify only.
8112 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8114 * c-common.c (warn_for_collisions_1): Use appropriate option when
8117 2008-02-19 Nick Clifton <nickc@redhat.com>
8120 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
8121 (handle_options): Fix indentation.
8122 (print_filtered_help): If no language-specific options were
8123 displayed tell the user how to list all the options supported by
8124 the language's front-end.
8125 (print_specific_help): Fix indentation and remove duplicate line.
8126 (common_handle_option): Handle the -v option.
8127 For --help enable the display of undocumented options if the -v
8128 switch has been included on the command line.
8129 For --help= check for overlaps in the arguments between the option
8130 classes and the language names and issue a warning when they
8131 cannot be disambiguated.
8132 * c.opt (v): Pass on to the common option handler.
8134 2008-02-19 Revital Eres <eres@il.ibm.com>
8136 * modulo-sched.c (sms_schedule): Change dump message when
8137 create_ddg function fails.
8138 (try_scheduling_node_in_cycle): Rename row to cycle.
8139 (print_partial_schedule): Rename CYCLE to ROW.
8141 2008-02-19 Christian Bruel <christian.bruel@st.com>
8142 Zdenek Dvorak <ook@ucw.cz>
8144 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
8146 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
8149 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
8150 (*x86_movdicc_0_m1_se): Ditto.
8152 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
8154 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
8155 (CMPtype): Define as __gcc_CMPtype.
8156 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
8157 (CMPtype): Define as __gcc_CMPtype.
8159 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
8161 Support valgrind 3.3 for --enable-checking=valgrind.
8162 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
8164 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
8165 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
8166 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
8167 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
8168 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
8169 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
8170 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
8172 * ggc-zone.c: Similar.
8173 * ggc-page.c: Similar.
8175 2008-02-19 Paul Brook <paul@codesourcery.com>
8178 * config/arm/ieee754-df.S: Fix do_it typo.
8179 * config/arm/ieee754-sf.S: Fix do_it typo.
8181 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
8184 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
8185 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
8186 (OPTION_MASK_ISA_SSE_SET): Likewise.
8187 (OPTION_MASK_ISA_SSE2_SET): Likewise.
8188 (OPTION_MASK_ISA_SSE3_SET): Likewise.
8189 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
8190 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
8191 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
8192 (OPTION_MASK_ISA_SSE4_SET): Likewise.
8193 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
8194 (OPTION_MASK_ISA_SSE5_SET): Likewise.
8195 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
8196 (OPTION_MASK_ISA_MMX_UNSET): Updated.
8197 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
8198 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
8199 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
8200 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
8201 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
8202 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
8203 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
8204 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
8205 (OPTION_MASK_ISA_SSE4): Removed.
8206 (ix86_handle_option): Turn on bits in ix86_isa_flags and
8207 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
8208 (override_options): Don't turn on implied SSE/MMX bits in
8211 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
8213 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8216 2008-02-18 Joey Ye <joey.ye@intel.com>
8219 * tree-nested.c (insert_field_into_struct): Set type alignment
8220 to field alignment if the former is less than the latter.
8222 2008-02-18 Jakub Jelinek <jakub@redhat.com>
8224 * BASE-VER: Set to 4.4.0.
8226 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8228 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
8229 * doc/cfg.texi: Likewise.
8230 * doc/extend.texi: Likewise.
8231 * doc/gty.texi: Likewise.
8232 * doc/invoke.texi: Likewise.
8233 * doc/loop.texi: Likewise.
8234 * doc/md.texi: Likewise.
8235 * doc/passes.texi: Likewise.
8236 * doc/rtl.texi: Likewise.
8237 * doc/sourcebuild.texi: Likewise.
8238 * doc/tm.texi: Likewise.
8239 * doc/tree-ssa.texi: Likewise.
8241 2008-02-17 Richard Guenther <rguenther@suse.de>
8244 * tree-complex.c (init_parameter_lattice_values): Handle parameters
8245 without default definition.
8247 2008-02-17 Richard Guenther <rguenther@suse.de>
8249 PR tree-optimization/35231
8250 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
8253 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
8256 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
8257 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
8258 libgcc_cmp_return mode.
8260 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8263 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
8265 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
8267 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
8270 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8272 * doc/c-tree.texi: Use `@.' where appropriate.
8273 * doc/extend.texi: Likewise.
8274 * doc/install.texi: Likewise.
8275 * doc/invoke.texi: Likewise.
8276 * doc/loop.texi: Likewise.
8277 * doc/makefile.texi: Likewise.
8278 * doc/md.texi: Likewise.
8279 * doc/passes.texi: Likewise.
8280 * doc/standards.texi: Likewise.
8281 * doc/tm.texi: Likewise.
8283 2008-02-15 Jakub Jelinek <jakub@redhat.com>
8286 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
8288 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
8289 rather than in entry_bb.
8291 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
8293 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
8294 libgcc_cmp_return mode.
8296 2008-02-15 Jakub Jelinek <jakub@redhat.com>
8299 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
8300 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
8302 2008-02-15 Richard Guenther <rguenther@suse.de>
8303 Zdenek Dvorak <ook@ucw.cz>
8305 PR tree-optimization/35164
8306 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
8307 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
8308 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
8309 Only propagate addresses which do not have abnormal SSA_NAMEs
8312 2008-02-15 Joseph Myers <joseph@codesourcery.com>
8315 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
8317 2008-02-15 Jan Hubicka <jh@suse.cz>
8320 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
8322 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
8325 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
8326 when calculating alignment_pad.
8328 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
8330 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
8331 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
8332 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
8333 and STACK_BOUNDARY define.
8335 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
8337 PR preprocessor/35061
8338 * c-pragma.c (handle_pragma_pop_macro): Check that
8339 pushed_macro_table has been allocated.
8341 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
8344 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
8345 (force_gimple_operand): Likewise.
8346 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
8347 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
8348 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
8349 (find_interesting_uses_address): Check addressability and alignment
8350 of the base expression only after substituting bases of IVs into it.
8352 2008-02-14 Michael Matz <matz@suse.de>
8355 * function.c (instantiate_virtual_regs_in_insn): Reload address
8356 before falling back to reloading the whole operand.
8358 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
8360 * config/s390/s390.c (s390_mainpool_start): Emit the pool
8361 before the first section switch note.
8363 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8365 * doc/bugreport.texi: Update copyright years.
8366 * doc/c-tree.texi: Likewise.
8367 * doc/cfg.texi: Likewise.
8368 * doc/cpp.texi: Likewise.
8369 * doc/cppinternals.texi: Likewise.
8370 * doc/fragments.texi: Likewise.
8371 * doc/frontends.texi: Likewise.
8372 * doc/gcc.texi: Likewise.
8373 * doc/gty.texi: Likewise.
8374 * doc/hostconfig.texi: Likewise.
8375 * doc/implement-c.texi: Likewise.
8376 * doc/libgcc.texi: Likewise.
8377 * doc/loop.texi: Likewise.
8378 * doc/makefile.texi: Likewise.
8379 * doc/options.texi: Likewise.
8380 * doc/passes.texi: Likewise.
8381 * doc/rtl.texi: Likewise.
8382 * doc/sourcebuild.texi: Likewise.
8383 * doc/standards.texi: Likewise.
8384 * doc/tree-ssa.texi: Likewise.
8385 * doc/trouble.texi: Likewise.
8387 * doc/extend.texi: Use @: or add comma where appropriate.
8388 * doc/invoke.texi: Likewise.
8389 * doc/tm.texi: Likewise.
8391 2008-02-14 Alan Modra <amodra@bigpond.net.au>
8394 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
8397 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
8399 * doc/md.texi (clz, ctz): Add reference.
8400 * doc/rtl.texi (clz, ctz): Likewise.
8402 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8405 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
8408 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
8410 * config/s390/s390.c (struct constant_pool): New field
8411 emit_pool_after added.
8412 (s390_mainpool_start): Set the emit_pool_after flag according
8413 to the section switch notes.
8414 (s390_mainpool_finish): Consider emit_pool_after when emitting
8415 the literal pool at the end of the function.
8416 (s390_chunkify_start): Force literal pool splits at section
8419 2008-02-13 Michael Matz <matz@suse.de>
8422 * var-tracking.c (clobber_variable_part): Correctly traverse the
8425 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8428 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
8429 Add -fdump-ipa-inline.
8430 * tree-dump.c (dump_files): Remove tree-inlined dump.
8431 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
8433 2008-02-12 Richard Guenther <rguenther@suse.de>
8435 PR tree-optimization/35171
8436 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
8439 2008-02-12 Richard Guenther <rguenther@suse.de>
8442 * fold-const.c (fold_widened_comparison): Use get_unwidened in
8443 value-preserving mode. Disallow final truncation.
8445 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
8448 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
8449 code from here to...
8450 (force_gimple_operand): ...here.
8452 2008-02-12 Jakub Jelinek <jakub@redhat.com>
8455 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
8456 non-compatible pointers.
8457 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
8458 different FIELD_DECLs, try harder by comparing field offsets, sizes
8462 * function.c (match_asm_constraints_1): Don't replace the same input
8465 2008-02-12 Anatoly Sokolov <aesok@post.ru>
8467 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
8468 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
8469 (expand_epilogue): Restore RAMPZ register.
8470 * config/avr/avr.md (RAMPZ_ADDR): New constant.
8472 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8474 * alloc-pool.c (hash_descriptor, eq_descriptor,
8475 alloc_pool_descriptor): Fix -Wc++-compat warnings.
8476 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8478 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8479 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8480 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8481 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8484 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
8486 * tree-flow.h (loop_only_exit_p): Declare.
8487 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8488 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8489 the number of iterations if it is constant. Otherwise, if this is the
8490 only possible exit of the loop, use the conservative estimate on the
8491 number of iterations of the entire loop if available.
8493 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
8495 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8496 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8497 Add synchronization functions.
8498 * config/sync.c: New file.
8499 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8500 (LIBGCC_SYNC_CFLAGS): Likewise.
8502 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
8505 * config/i386/i386.md (mode): Add TF to "mode" attribute.
8506 (*pushtf_sse): New insn pattern.
8507 (pushtf splitters): New splitters.
8509 2008-07-03 Michael Meissner <gnu@the-meissners.org>
8512 * predict.c (build_predict_expr): Use void_type_node for the tree
8513 type, instead of NULL_TREE.
8515 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
8517 * config/i386/i386.c (contains_aligned_value_p): Return true
8519 (ix86_data_alignment): Align TCmode to 128bits.
8520 (ix86_local_alignment): Likewise.
8522 2008-07-03 Andrew Haley <aph@redhat.com>
8525 * vec.h (VEC_TA): New.
8526 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8527 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8528 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8529 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8530 (C_COMMON_FIXED_TYPES): Remove first arg.
8531 (C_COMMON_FIXED_MODE_TYPES): Likewise.
8532 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8533 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8534 not to use empty macro arguments.
8536 2008-07-02 Joseph Myers <joseph@codesourcery.com>
8538 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8539 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8540 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8541 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8542 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8543 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8544 config/ia64/crtn.asm, config/m68hc11/larith.asm,
8545 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8546 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8547 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8548 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8549 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8550 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8551 config/rs6000/e500crtres64gpr.asm,
8552 config/rs6000/e500crtres64gprctr.asm,
8553 config/rs6000/e500crtrest32gpr.asm,
8554 config/rs6000/e500crtrest64gpr.asm,
8555 config/rs6000/e500crtresx32gpr.asm,
8556 config/rs6000/e500crtresx64gpr.asm,
8557 config/rs6000/e500crtsav32gpr.asm,
8558 config/rs6000/e500crtsav64gpr.asm,
8559 config/rs6000/e500crtsav64gprctr.asm,
8560 config/rs6000/e500crtsavg32gpr.asm,
8561 config/rs6000/e500crtsavg64gpr.asm,
8562 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8563 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8564 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8565 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8566 config/sparc/sol2-cn.asm: Remove .file directives.
8568 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
8570 * resource.c (mark_referenced_resources): Look inside
8571 UNSPEC_VOLATILEs and ASM_INPUTs.
8573 2008-07-02 Ian Lance Taylor <iant@google.com>
8575 * rtlanal.c (add_reg_note): New function.
8576 * rtl.h (add_reg_note): Declare.
8577 * auto-inc-dec.c (attempt_change): Use add_reg_note.
8578 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8579 * builtins.c (expand_builtin_longjmp): Likewise.
8580 (expand_builtin_nonlocal_goto): Likewise.
8581 * calls.c (emit_call_1, expand_call): Likewise.
8582 * cfgexpand.c (add_reg_br_prob_note): Likewise.
8583 * cfglayout.c (fixup_reorder_chain): Likewise.
8584 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8585 (commit_one_edge_insertion): Likewise.
8586 * combine.c (move_deaths, distribute_notes): Likewise.
8587 * df-problems.c (df_set_note): Likewise.
8588 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8589 (set_unique_reg_note): Likewise.
8590 (emit_copy_of_insn_after): Likewise.
8591 * expr.c (expand_expr_real): Likewise.
8592 * gcse.c (add_label_notes): Likewise.
8593 * haifa-sched.c (create_check_block_twin): Likewise.
8594 * jump.c (mark_jump_label_1): Likewise.
8595 * loop-doloop.c (add_test, doloop_modify): Likewise.
8596 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8597 * lower-subreg.c (move_eh_region_note): Likewise.
8598 * optabs.c (emit_libcall_block): Likewise.
8599 * predict.c (predict_insn): Likewise.
8600 (combine_predictions_for_insn): Likewise.
8601 * recog.c (peephole2_optimize): Likewise.
8602 * regmove.c (try_auto_increment): Likewise.
8603 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8604 * reload.c (find_reloads): Likewise.
8605 * reload1.c (fixup_eh_region_note): Likewise.
8606 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8607 * reorg.c (delete_prior_computation): Likewise.
8608 (delete_computation, dbr_schedule): Likewise.
8609 * config/pa/pa.c (legitimize_pic_address): Likewise.
8610 * config/sh/sh.c (sh_reorg): Likewise.
8612 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8615 * config/libgcc-glibc.ver: Add %exclude.
8616 * config/m32r/libgcc-glibc.ver: Likwise.
8617 * config/s390/libgcc-glibc.ver: Likwise.
8618 * config/sh/libgcc-glibc.ver: Likwise.
8619 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8621 * config/i386/libgcc-glibc.ver: New.
8623 * config/i386/libgcc-x86_64-glibc.ver: Removed.
8625 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
8627 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8628 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8629 i[34567]86-*-linux*, x86_64-*-linux*. Add
8630 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8631 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8632 x86_64-*-linux*. Add i386/t-linux to tmake_file for
8633 i[34567]86-*-linux*, x86_64-*-linux*.
8635 * libgcc-std.ver: Add empty GCC_4.4.0.
8637 * mkmap-symver.awk: Support multiple versions per symbol.
8639 * config/i386/i386.c (ix86_init_builtins): Always define
8640 __builtin_fabsq and __builtin_copysignq with fallbacks.
8641 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8642 and __builtin_copysignq if SSE2 isn't available.
8644 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8645 (LIBGCC2_TF_CEXT): Likwise.
8648 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8650 * config/i386/sfp-machine.h: Moved to libgcc.
8652 * config/i386/sfp-machine.h: New.
8653 * config/i386/t-linux: Likwise.
8655 * config/i386/t-darwin: Remove softfp_wrap_start and
8657 * config/i386/t-darwin64: Likewise.
8659 * config/i386/t-fprules-softfp64: Renamed to ...
8660 * config/i386/t-fprules-softfp: This.
8662 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8663 and softfp_wrap_end.
8665 2008-07-02 Jason Merrill <jason@redhat.com>
8667 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8669 * tree.c (ctor_to_list): New fn.
8670 * tree.h: Declare it.
8671 (CONSTRUCTOR_ELT): New macro.
8672 (CONSTRUCTOR_NELTS): New macro.
8674 2008-07-02 Richard Guenther <rguenther@suse.de>
8676 * tree-ssa-structalias.c (struct variable_info): Reorder
8677 to fill padding on 64bit hosts. Make collapsed_to an int.
8678 (get_varinfo_fc): Deal with that.
8679 (new_var_info): Likewise.
8680 (collapse_rest_of_var): Likewise.
8682 2008-07-02 Joshua Sumali <jsumali@redhat.com>
8684 * doc/install.texi (--enable-java-home): Document.
8685 (--enable-aot-compile-rpm): Likewise.
8686 (--with-arch-directory): Likewise.
8687 (--with-os-directory): Likewise.
8688 (--with-origin-name): Likewise.
8689 (--with-arch-suffix): Likewise.
8690 (--with-jvm-root-dir): Likewise.
8691 (--with-jvm-jar-dir): Likewise.
8692 (--with-python-dir): Likewise.
8694 2008-07-02 Richard Guenther <rguenther@suse.de>
8696 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8697 from decls explicitly. Merge operand checking from tuples.
8699 2008-07-02 Martin Jambor <mjambor@suse.cz>
8701 * tree-switch-conversion.c: Included timevar.h which I forgot before.
8703 2008-07-02 Martin Jambor <mjambor@suse.cz>
8705 * tree-switch-conversion.c: Included timevar.h
8706 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8708 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8710 2008-07-02 Martin Jambor <mjambor@suse.cz>
8712 * tree-switch-conversion.c: Corrected various comments and
8714 (build_constructors): Fixed minor formatting mistakes.
8716 * invoke.texi (Optimize Options): Corrected the
8717 switch-conversion-max-branch-ratio parameter.
8719 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
8721 * final.c (asm_insn_count): Return zero for an empty asm body.
8723 2008-07-02 Richard Guenther <rguenther@suse.de>
8725 * bitmap.h (bitmap_set_bit): Return bool.
8726 (bitmap_clear_bit): Likewise.
8727 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
8728 write to the bitmap if it would.
8729 (bitmap_clear_bit): Likewise.
8730 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8731 bitmap_set_bit return value.
8732 (add_pred_graph_edge): Likewise.
8733 (add_graph_edge): Likewise.
8734 (do_sd_constraint): Likewise.
8735 (do_ds_constraint): Likewise.
8737 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8739 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8740 Fix -Wc++-compat and/or -Wcast-qual warnings.
8741 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8742 gen_regparm_prefix): Likewise.
8743 * vmsdbgout.c (write_modbeg, lookup_filename,
8744 vmsdbgout_source_line, vmsdbgout_init): Likewise.
8746 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
8748 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8749 defaults.h definition apply.
8751 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
8753 * function.c (assign_parm_remove_parallels): New.
8754 (assign_parm_setup_block_p): Do not return true for non-BLKmode
8756 (assign_parm_setup_block): Do not handle them.
8757 (assign_parm_setup_reg, assign_parm_setup_stack): Call
8758 assign_parm_remove_parallels.
8760 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
8762 * c-typeck.c (convert_for_assignment): Use
8763 vector_targets_convertible_p.
8764 * c-common.c (vector_targets_convertible_p): New.
8765 * c-common.h (vector_targets_convertible_p): New prototype.
8766 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8767 opaque_p_V2SI_type_node.
8769 2008-07-01 Steve Ellcey <sje@cup.hp.com>
8771 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8774 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
8776 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8777 TFmode constants via two element DImode vector for hosts with
8778 HOST_BITS_PER_WIDE_INT < 64.
8779 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8780 also for HOST_BITS_PER_WIDE_INT < 64.
8782 2008-07-01 Richard Guenther <rguenther@suse.de>
8784 PR tree-optimization/36666
8785 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8786 (get_constraint_exp_from_ssa_var): Split into ...
8787 (get_constraint_exp_for_temp): ... this ...
8788 (get_constraint_for_ssa_var): ... and that.
8789 Return constraint expressions for all touched sub-fields
8790 if the results address is not taken.
8791 (process_constraint): Remove assertion that aggregate
8792 assignments do not happen at this place.
8793 (get_constraint_for_component_ref): Add address_p argument.
8794 Return constraint expressions for all touched sub-fields
8795 if the results address is not taken.
8796 (do_deref): Use get_constraint_exp_for_temp.
8797 (get_constraint_for_1): Rename from ...
8798 (get_constraint_for): ... this. Add the old function as wrapper.
8799 (do_structure_copy): Use get_constraint_for_1.
8801 2008-07-01 Martin Jambor <mjambor@suse.cz>
8803 * Makefile.in (tree-switch-conversion.o): Add.
8804 (OBJS-common): Add tree-swtch-conversion.o.
8805 * passes.c (init_optimization_passes): Add pass_convert_switch.
8806 * tree-pass.h: (pass_convert_switch): Add.
8807 * tree-switch-conversion.c: New file.
8808 * gcc.dg/tree-ssa/cswtch.c: New testcase.
8809 * common.opt (ftree-cswtch): New option.
8810 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8811 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8812 * opts.c (decode_options): Set flag_tree_switch_conversion when
8813 optimization level is >= 2.
8814 * doc/invoke.texi (Optimize Options): Added description of
8815 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8817 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8819 * config/darwin-driver.c (darwin_default_min_version): Fix
8820 -Wc++-compat warnings.
8822 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
8824 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8827 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
8829 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8831 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
8833 PR rtl-optimization/34744
8834 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8835 (df_scan_free_internal): Free data structures not
8836 allocated in storage pools.
8837 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8838 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8839 df_scan_free_mws_vec.
8840 * dse.c (dse_step6): Free offset_map_p and offset_map_n
8843 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
8845 * config/i386/i386.c (contains_aligned_value_p): Return true
8847 (ix86_function_arg_boundary): Return its natural boundary
8849 (return_in_memory_32): Don't check TDmode.
8850 (ix86_split_to_parts): Support splitting into 4 parts and
8851 support TFmode for 32bit target.
8852 (ix86_split_long_move): Support splitting into 4 parts.
8853 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8855 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8856 (ix86_init_builtins): Here.
8857 (ix86_scalar_mode_supported_p): Always return true for TFmode.
8858 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8859 'q' and 'w', respectively.
8861 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8863 (movtf_internal): Likewise.
8864 (<code>tf2): Likewise.
8865 (*absnegtf2_sse): Likewise.
8866 (copysign<mode>3): Likewise.
8867 (copysign<mode>3_const): Likewise.
8868 (copysign<mode>3_var): Likewise.
8869 (define_split UNSPEC_COPYSIGN): Likewise.
8870 * config/i386/sse.md (*nandtf3): Likewise.
8871 (<code>tf3): Likewise.
8872 (*<code>tf3): Likewise.
8874 2008-06-30 Joey Ye <joey.ye@intel.com>
8875 H.J. Lu <hongjiu.lu@intel.com>
8877 * global.c (compute_regsets): Set frame_pointer_needed here.
8878 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8880 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8882 * doc/install.texi (specific): Expand Windows build notes.
8884 2008-06-30 Ira Rosen <irar@il.ibm.com>
8886 PR tree-optimization/36648
8887 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8888 number of prolog iterations by step. Fix the comment.
8890 2008-06-30 Richard Guenther <rguenther@suse.de>
8893 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8894 handle calls from ECF_MALLOC functions.
8895 (handle_pure_call): ECF_MALLOC functions do not return
8897 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8899 2008-06-29 Andreas Schwab <schwab@suse.de>
8901 * config/m68k/m68k.c (print_operand): Always print a float
8903 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8904 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8907 * config/rs6000/x-linux64: Remove never used file.
8909 2008-06-29 Richard Guenther <rguenther@suse.de>
8911 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8913 (struct alias_info): Move ...
8914 * tree-ssa-alias.c: ... here.
8915 (update_alias_info): Declare.
8916 (compute_may_aliases): Call it.
8917 (update_alias_info): New function.
8918 * tree-ssa-structalias.c (update_alias_info): Move ...
8919 * tree-ssa-alias.c (update_alias_info_1): ... here.
8920 * tree-ssa-structalias.c (process_constraint_1): Remove
8921 unused from_call argument. Rename to ...
8922 (process_constraint): ... this. Delete old wrapper.
8923 (make_constraint_to): Adjust callers.
8924 (handle_const_call): Likewise.
8925 (handle_pure_call): Likewise.
8926 (init_base_vars): Likewise.
8927 (handle_lhs_call): Likewise. Remove unnecessary constraint.
8928 (find_func_aliases): We don't need structure copies for
8930 (make_constraint_from_anything): Remove.
8931 (create_variable_info_for): For globals make constraints
8932 from escaped, not from anything.
8933 (compute_points_to_sets): Do not call update_alias_info.
8934 (ipa_pta_execute): Use make_constraint_from.
8936 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8938 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8939 (bitmap.o-warn, dominance.o-warn): New.
8940 * configure.ac (cxx_compat_warn): Delete.
8941 (loose_warn): Add -Wcast-qual and -Wc++-compat.
8942 * system.h: Remove #pragma diagnostic for -Wcast-qual and
8944 * configure: Regenerate.
8946 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8949 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8951 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8952 * df-scan.c (df_notes_rescan): Likewise.
8953 * ggc-page.c (set_page_table_entry): Likewise.
8954 * intl.c (gcc_gettext_width): Likewise.
8955 * varasm.c (get_unnamed_section, get_noswitch_section,
8956 get_section): Likewise.
8958 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
8960 * regrename.c (build_def_use): Don't copy RTX.
8962 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
8964 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8965 (Type Attributes): Fix nesting of @table and @subsection. Adjust
8966 punctuation. Use @ref instead of @xref.
8967 (Function Names): Remove stray @display/@end display.
8968 (C++ Attributes): Use @ref instead of @xref.
8969 (Deprecated Features): Fix punctuation around @xref.
8970 (Backwards Compatibility): Likewise.
8971 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8973 2008-06-28 Joseph Myers <joseph@codesourcery.com>
8975 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8976 constants for E500 double.
8978 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8980 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8981 element type of const_vector.
8983 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
8985 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8986 Remove FLAGS_REG clobber from expander pattern.
8987 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8988 (anddi3, andsi3, andhi3, andqi3): Ditto.
8989 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8990 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8991 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8992 (ashlsi3, ashlhi3, ashlqi3): Ditto.
8993 (ashrsi3, ashrhi3, ashrqi3): Ditto.
8994 (lshrsi3, lshrhi3, lshrqi3): Ditto.
8995 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8996 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8998 2008-06-28 Richard Guenther <rguenther@suse.de>
9000 * tree-ssa-structalias.c (callused_id, var_callused,
9001 callused_tree): Add.
9002 (handle_pure_call): New function.
9003 (find_func_aliases): Call it.
9004 (find_what_p_points_to): Handle the call-used set.
9005 (clobber_what_escaped): Likewise.
9006 (compute_call_used_vars): New function.
9007 (init_base_vars): Init the call-used variable.
9008 (do_sd_constraint): Do not propagate the solution from CALLUSED
9009 but use CALLUSED as a placeholder.
9010 (solve_graph): Likewise.
9011 * tree-flow-inline.h (gimple_call_used_vars): New function.
9012 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9013 (compute_call_used_vars): Declare.
9014 * tree-ssa-alias.c (set_initial_properties): Call
9015 compute_call_used_vars.
9016 (reset_alias_info): Clear call-used variables.
9017 (add_call_clobber_ops): Assert we are not called for const/pure
9018 functions. Remove handling of them.
9019 (add_call_read_ops): Handle pure functions by adding the
9020 call-used set of variables as VUSEs.
9021 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9022 (delete_tree_ssa): Free it.
9023 * tree-dfa.c (remove_referenced_var): Clear the var from the
9026 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
9028 * tree.c (build_varargs_function_type_list): New.
9029 (build_function_type_list_1): New.
9030 (build_function_type_list): Use build_function_type_list_1.
9031 * tree.h (build_varargs_function_type_list): New.
9033 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9036 * config/spu/spu.c (spu_builtin_splats): Do not generate
9037 invalid CONST_VECTOR expressions.
9038 (spu_expand_vector_init): Likewise.
9040 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
9042 * optabs.c (libfunc_decls): New variable.
9043 (libfunc_decl_hash, libfunc_decl_eq): New functions.
9044 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9045 for the same function twice.
9047 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
9049 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9050 ix86_expand_binary_operator directly.
9051 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
9053 (*ashrti3_1): Ditto.
9054 (*lshrti3_1): Ditto.
9055 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9056 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9057 using only one splitter. Conditionaly execute splitter before or
9058 after peephole2 pass.
9059 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9060 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
9061 Use only one alternative in asm template.
9062 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9064 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9065 "J" operand constraint for operand 2.
9066 (*ashldi3_cconly_rex64): Ditto.
9067 (*ashrdi3_cmp_rex64): Ditto.
9068 (*ashrdi3_cconly_rex64): Ditto.
9069 (*lshrdi3_cmp_rex64): Ditto.
9070 (*lshrdi3_cconly_rex64): Ditto.
9071 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9072 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9073 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9076 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9078 * gimplify.c (omp_is_private): Don't return true if decl is not
9079 already private on #pragma omp for or #pragma omp parallel for.
9082 * tree-cfg.c (struct move_stmt_d): Replace block field with
9083 orig_block and new_block fields.
9084 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9085 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9086 (move_block_to_fn): Replace vars_map and new_label_map arguments
9087 with struct move_stmt_d pointer.
9088 (replace_block_vars_by_duplicates): New function.
9089 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
9090 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
9091 all subblocks of ORIG_BLOCK to the new function. Call
9092 replace_block_vars_by_duplicates.
9093 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9094 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9095 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
9096 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9097 (expand_omp): Temporarily set input_location to the location of
9098 region's controlling stmt.
9099 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9100 BIND_EXPR, push ctx->block_vars and gimplification vars into
9101 the BIND_EXPR and its block's BLOCK_VARS instead of directly
9103 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9104 there are any BLOCK_VARS.
9105 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9106 OMP_PARALLEL or OMP_TASK stmt.
9107 (lower_omp): Save and restore input_location around the lower_omp_1
9110 2008-06-27 Richard Guenther <rguenther@suse.de>
9112 PR tree-optimization/36400
9113 PR tree-optimization/36373
9114 PR tree-optimization/36344
9115 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9116 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9117 (update_alias_info): Remove call clobbering code.
9118 (make_constraint_to): New helper function.
9119 (make_escape_constraint): Likewise.
9120 (handle_rhs_call): Use it on all pointer containing arguments.
9121 Also mark the static chain escaped.
9122 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9123 instead of ANYTHING.
9124 (make_constraint_from): New helper split out from ...
9125 (make_constraint_from_anything): ... here.
9126 (find_func_aliases): Add constraints for escape sites.
9127 (intra_create_variable_infos): Make constraints from NONLOCAL
9129 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9131 (clobber_what_p_points_to): Remove.
9132 (clobber_what_escaped): New function.
9133 (init_base_vars): Init NONLOCAL and ESCAPED.
9134 (do_sd_constraint): Do not propagate the solution from ESCAPED
9135 but use ESCAPED as a placeholder.
9136 (solve_graph): Likewise.
9137 * tree-flow.h (clobber_what_p_points_to): Remove.
9138 (clobber_what_escaped): Declare.
9139 * tree-ssa-alias.c (set_initial_properties): Call it.
9140 Remove code clobbering escaped pointers.
9142 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
9144 * function.c (allocate_struct_function): Only allocate a unique
9145 funcdef_no if the decl is nonzero.
9147 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
9149 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9150 * config/mips/mips.c (mips_split_const_insns): New function.
9151 * config/mips/mips.md (move_type): New attribute.
9152 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
9153 (dword_mode): New attribute.
9154 (type): Avoid long line. Map "move_type"s to "type"s,
9155 choosing "multi" for doubleword moves if appropriate.
9156 Swap MTC/MFC comments to match their declaration order.
9157 (extended_mips16): Default to "yes" if "move_type" is "sll0",
9158 "type" is "branch" or "jal" is "direct".
9159 (length): Handle "extended_mips16" first. Make the default
9160 "0" for "ghost" instructions. Set the length from "move_type".
9161 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9162 of "type", with "sll0" for the register alternative. Remove the
9163 "extended_mips16" attribute.
9164 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9165 of "type", with "shift_shift" for the register alternative.
9166 Remove the "length" attribute.
9167 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9168 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9169 of "type", with "andi" for the register alternative.
9170 (*zero_extendqihi2): Likewise.
9171 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9172 of "andi" instead of a "type" of "arith".
9173 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9175 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9176 (mov_<store>r, *mov<mode>_ra): Likewise.
9177 (extendsidi2): Use "move_type" instead of "type", with "move"
9178 for the register alternative.
9179 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9180 of "type", with "signext" for the register alternative.
9181 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9182 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9183 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9184 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9185 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9186 (unnamed branch insn): Likewise.
9187 (*movdi_gp32_fp64): Fold into...
9188 (*movdi_32bit): ...here.
9189 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9190 (*movdf_hardfloat): ...this new pattern.
9191 (*movdf_softfloat): Remove redundant FPR alternatives.
9192 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9193 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9194 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
9195 the "move" attribute.
9196 (*movdi_32bit): Use "move_type" instead of "type" and remove the
9197 "length" attribute. Use "fpload" and "fpstore" instead of "load"
9198 and "store" for COP loads and stores.
9199 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9200 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9201 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9202 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9203 (*movtf_mips16, *movv2sf): Likewise.
9204 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9205 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9206 (mfhc1<mode>): Use "move_type" instead of "move".
9207 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9208 (loadgp_blockage): Remove the "length" attribute.
9209 (blockage, set_got_version, update_got_version): Likewise.
9210 (call_internal): Remove the "extended_mips16" attribute.
9211 (call_value_internal, call_value_multiple_internal): Likewise.
9212 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9214 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9215 the "length" attribute.
9217 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9219 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9220 -Wcast-qual warnings.
9221 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9222 handle_pragma_pop_macro): Likewise.
9223 * collect2.c (resolve_lib_name): Likewise.
9224 * config/arc/arc.c (arc_init): Likewise.
9225 * config/arm/arm.c (neon_builtin_compare,
9226 locate_neon_builtin_icode): Likewise.
9227 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9228 * config/bfin/bfin.c (bfin_init_machine_status,
9229 bfin_optimize_loop): Likewise.
9230 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9231 * config/cris/cris.c (cris_init_expanders): Likewise.
9232 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9233 * config/darwin.c (machopic_indirection_eq,
9234 machopic_indirection_name, machopic_output_indirection): Likewise.
9235 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9236 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9237 frv_optimize_membar): Likewise.
9238 * config/i386/cygwin.h (mingw_scan,
9239 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9240 * config/i386/cygwin1.c (mingw_scan): Likewise.
9241 * config/i386/i386.c (machopic_output_stub): Likewise.
9242 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9243 i386_pe_unique_section): Likewise.
9244 * config/ia64/ia64.c (ia64_init_machine_status,
9245 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9247 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9248 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9249 * config/m68k/m68k.c (m68k_handle_option,
9250 m68k_sched_md_init_global): Likewise.
9251 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9252 mcore_unique_section): Likewise.
9253 * config/mips/mips.c (mips_block_move_straight,
9254 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9256 * config/mmix/mmix.c (mmix_init_machine_status,
9257 mmix_encode_section_info): Likewise.
9258 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9259 * config/rs6000/rs6000.c (rs6000_init_machine_status,
9260 print_operand_address, output_toc, redefine_groups,
9261 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9262 * config/s390/s390.c (s390_init_machine_status): Likewise.
9263 * config/score/score.c (score_block_move_straight,
9264 score_block_move_loop_body): Likewise.
9265 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9266 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9267 * emit-rtl.c (find_auto_inc): Likewise.
9268 * gcc.c (translate_options, process_command): Likewise.
9269 * reorg.c (dbr_schedule): Likewise.
9270 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9271 * xcoffout.c (xcoffout_declare_function): Likewise.
9273 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
9275 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9276 ipa-pta working again.
9278 2008-06-27 David Edelsohn <edelsohn@gnu.org>
9280 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9283 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
9285 * config.gcc (powerpc*-*-*): Add new core e500mc.
9286 * config/rs6000/e500mc.md: New file.
9287 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9289 (rs6000_override_options): Add e500mc case to
9290 processor_target_table. Altivec and Spe options not allowed
9291 with e500mc. Add isel instruction to e500mc by
9292 default. Initialize rs6000_cost for e500mc.
9293 (rs6000_issue_rate): Set issue rate for e500mc.
9294 * config/rs6000/rs6000.h (processor_type): Add
9295 PROCESSOR_PPCE500MC.
9296 (ASM_CPU_SPEC): Add e500mc.
9297 Set TARGET_ISEL to rs6000_isel.
9298 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9299 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9300 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9302 * doc/invoke.texi: Add e500mc to list of cpus.
9304 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9307 * c-lex.c (lex_charconst): Initialize unsignedp.
9309 2008-06-27 Olivier Hainque <hainque@adacore.com>
9311 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9312 documented assumptions.
9314 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
9316 * dwarf2out.c: Remove trailing white spaces. Break long line
9319 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
9321 * libfuncs.h (LTI_synchronize): New libfunc_index.
9322 (synchronize_libfunc): Declare.
9323 * builtins.c (expand_builtin_synchronize): Consider using
9324 synchronize_libfunc before falling back on an asm blockage.
9325 * config/mips/mips.c: Include libfuncs.h
9326 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9328 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
9330 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9331 parameter. Copy stack_reg to r11 where appropriate.
9332 (no_global_regs_above): Add gpr parameter.
9333 (rs6000_stack_info): Only add padding for SPE save area if we
9334 are saving SPE GPRs and CR.
9335 (saveres_routine_syms): New variable.
9336 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9338 (rs6000_savres_routine_sym): New function.
9339 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9341 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
9342 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
9343 Tweak FPR out-of-line saving.
9344 (rs6000_make_savres_rtx): New function.
9345 (rs6000_use_multiple_p): New function.
9346 (rs6000_savres_strategy): New function.
9347 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
9348 out-of-line if appropriate.
9349 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9350 if we are optimizing for size.
9351 (GP_SAVE_INLINE): Define.
9352 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9353 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9354 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9355 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9356 (*save_fpregs_<mode>): Add use of r11.
9357 (*restore_gpregs_<mode>): New insn.
9358 (*return_and_restore_gpregs_<mode>): New insn.
9359 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9361 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9362 (*restore_gpregs_spe): New insn.
9363 (*return_and_restore_gpregs_spe): New insn.
9364 * config/rs6000/predicates.md (save_world_operation): Fix check.
9366 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9368 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9369 this point, so assert that.
9371 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
9373 * cfganal.c: Include vec.h and vecprim.h.
9374 (compute_idf): Import from...
9375 * tree-into-ssa (compute_idf): ...here.
9376 * basic-block.h (compute_idf): Export.
9378 2008-06-26 Joseph Myers <joseph@codesourcery.com>
9380 * c-decl.c (merge_decls): Use !current_function_decl to check for
9381 extern declaration of C99 inline function being at file scope.
9383 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
9385 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9387 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9389 * alias.c (record_alias_subset, init_alias_analysis): Fix
9390 -Wc++-compat and/or -Wcast-qual warnings.
9391 * attribs.c (lookup_attribute_spec): Likewise.
9392 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9393 copy_bb, connect_traces,
9394 find_rarely_executed_basic_blocks_and_cr): Likewise.
9395 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9396 note_btr_set, migrate_btr_defs): Likewise.
9397 * builtins.c (result_vector, expand_builtin_memcpy,
9398 expand_builtin_mempcpy_args, expand_builtin_strncpy,
9399 builtin_memset_read_str, expand_builtin_printf,
9400 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9402 * caller-save.c (mark_set_regs): Likewise.
9403 * calls.c (expand_call, emit_library_call_value_1): Likewise.
9404 * cgraph.c (cgraph_edge): Likewise.
9405 * combine.c (likely_spilled_retval_1): Likewise.
9406 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9407 htab_counts_entry_del, get_coverage_counts): Likewise.
9408 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9409 new_cselib_val): Likewise.
9410 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9411 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9413 * df-core.c (df_compact_blocks): Likewise.
9414 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9415 * df-scan.c (df_grow_reg_info, df_ref_create,
9416 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9417 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9418 df_record_entry_block_defs, df_record_exit_block_uses,
9419 df_bb_verify): Likewise.
9420 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9421 DF_REF_EXTRACT_MODE_CONST): New.
9422 * dominance.c (get_immediate_dominator, get_dominated_by,
9423 nearest_common_dominator, root_of_dom_tree,
9424 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9425 -Wc++-compat and/or -Wcast-qual warnings.
9426 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9427 record_store, replace_read, check_mem_read_rtx, scan_insn,
9428 dse_step1, dse_record_singleton_alias_set): Likewise.
9429 * dwarf2asm.c (dw2_force_const_mem): Likewise.
9431 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9433 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9434 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9435 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9436 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9437 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9438 add_ranges_num, add_ranges_by_labels, file_info_cmp,
9439 file_name_acquire, output_file_names, add_const_value_attribute,
9440 premark_used_types_helper, file_table_eq, file_table_hash,
9441 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9442 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9443 -Wcast-qual warnings.
9444 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9445 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9446 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9447 gen_reg_rtx, start_sequence, init_emit): Likewise.
9448 * et-forest.c (et_new_occ, et_new_tree): Likewise.
9449 * except.c (init_eh_for_function, gen_eh_region,
9450 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9451 arh_to_landing_pad, arh_to_label, add_action_record,
9452 add_call_site, switch_to_exception_section): Likewise.
9453 * expmed.c (synth_mult): Likewise.
9454 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9455 store_expr): Likewise.
9456 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9458 * function.c (assign_stack_temp_for_type,
9459 allocate_struct_function, match_asm_constraints_1): Likewise.
9460 * gcov-io.c (gcov_allocate): Likewise.
9461 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9462 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9463 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9464 record_one_set, insert_expr_in_table, insert_set_in_table,
9465 dump_hash_table, compute_hash_table_work, alloc_hash_table,
9466 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9467 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9468 -Wcast-qual warnings.
9470 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9472 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9473 -Wcast-qual warnings.
9474 * gcc.c (process_command): Likewise.
9475 * genattrtab.c (oballoc): Use XOBNEW.
9476 (oballocvec): Define.
9477 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9478 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9479 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9480 -Wc++-compat and/or -Wcast-qual warnings.
9481 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9482 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9483 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9484 gen_presence_absence_set, gen_automaton, gen_regexp_el,
9485 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9486 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9487 add_excls, process_presence_absence_names,
9488 process_presence_absence_patterns, add_presence_absence,
9489 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9490 get_free_state, add_arc, get_free_automata_list_el,
9491 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9492 transform_3, cache_presence, create_ainsns, create_automata,
9493 create_state_ainsn_table, dfa_insn_code_enlarge,
9494 output_trans_func, output_min_issue_delay_func,
9495 output_dead_lock_func, output_reset_func,
9496 output_get_cpu_unit_code_func, output_dfa_start_func,
9497 expand_automata): Likewise.
9498 * genextract.c (gen_insn): Likewise.
9499 * gengtype-lex.l: Likewise.
9500 * gengtype.c (read_input_list, adjust_field_type,
9501 process_gc_options): Likewise.
9502 * genoutput.c (note_constraint): Likewise.
9503 * genpreds.c (mangle, add_constraint): Likewise.
9504 * genrecog.c (process_define_predicate, new_decision,
9505 add_to_sequence): Likewise.
9506 * gensupport.c (record_insn_name): Likewise.
9508 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9510 * config/i386/driver-i386.c (detect_caches_amd,
9511 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9512 and/or -Wcast-qual warnings.
9513 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9514 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9515 gt_pch_save): Likewise.
9516 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9517 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9518 * global.c (compute_regsets): Likewise.
9519 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9520 finish_graph_dump_file): Likewise.
9521 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9522 unlink_bb_notes): Likewise.
9523 * integrate.c (get_hard_reg_initial_val): Likewise.
9524 * ipa-prop.c (ipa_push_func_to_list): Likewise.
9525 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9526 * local-alloc.c (update_equiv_regs): Likewise.
9527 * loop-invariant.c (check_invariant_table_size,
9528 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9530 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9531 altered_reg_used, mark_altered): Likewise.
9532 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9533 insert_var_expansion_initialization,
9534 combine_var_copies_in_loop_exit, apply_opt_in_copies,
9535 release_var_copies): Likewise.
9536 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9537 analyze_matrix_decl, add_allocation_site, analyze_transpose,
9538 analyze_accesses_for_phi_node, check_var_notmodified_p,
9539 check_allocation_function, find_sites_in_func,
9540 record_all_accesses_in_func, transform_access_sites,
9541 transform_allocation_sites): Likewise.
9542 * omp-low.c (new_omp_region, create_omp_child_function_name,
9543 check_omp_nesting_restrictions, check_combined_parallel,
9544 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9545 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9546 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9547 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9549 * opts-common.c (prune_options): Likewise.
9550 * opts.c (add_input_filename, print_filtered_help,
9551 get_option_state): Likewise.
9552 * params.c (add_params): Likewise.
9553 * passes.c (set_pass_for_id, next_pass_1,
9554 do_per_function_toporder, pass_fini_dump_file): Likewise.
9555 * postreload.c (reload_cse_simplify_operands): Likewise.
9556 * predict.c (tree_predicted_by_p, tree_predict_edge,
9557 clear_bb_predictions, combine_predictions_for_bb): Likewise.
9559 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9561 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9563 * recog.c (check_asm_operands, validate_change_1): Likewise.
9564 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9565 subst_asm_stack_regs): Likewise.
9566 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9567 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9568 * regmove.c (reg_is_remote_constant_p): Likewise.
9569 * regrename.c (regrename_optimize, scan_rtx_reg,
9570 kill_clobbered_value, kill_set_value, kill_autoinc_value):
9572 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9573 regstat_compute_calls_crossed): Likewise.
9574 * reload1.c (init_reload, new_insn_chain,
9575 has_nonexceptional_receiver, reload, copy_reloads,
9576 calculate_needs_all_insns, init_elim_table): Likewise.
9577 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9578 * rtl.c (shallow_copy_rtx_stat): Likewise.
9579 * rtlanal.c (parms_set): Likewise.
9580 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9581 sbitmap_resize, sbitmap_vector_alloc): Likewise.
9582 * sched-ebb.c (earliest_block_with_similiar_load,
9583 add_deps_for_risky_insns): Likewise.
9584 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9585 schedule_region): Likewise.
9586 * see.c (eq_descriptor_pre_extension,
9587 hash_descriptor_pre_extension, hash_del_pre_extension,
9588 eq_descriptor_properties, hash_descriptor_properties,
9589 hash_del_properties, see_seek_pre_extension_expr,
9590 see_initialize_data_structures, see_print_register_properties,
9591 see_print_pre_extension_expr, see_delete_merged_def_extension,
9592 see_delete_unmerged_def_extension, see_emit_use_extension,
9593 see_pre_delete_extension, see_map_extension, see_commit_changes,
9594 see_analyze_merged_def_local_prop,
9595 see_analyze_merged_def_local_prop,
9596 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9597 see_set_prop_merged_def, see_set_prop_unmerged_def,
9598 see_set_prop_unmerged_use, see_print_one_extension,
9599 see_merge_one_use_extension, see_merge_one_def_extension,
9600 see_store_reference_and_extension, see_update_uses_relevancy,
9601 see_update_defs_relevancy): Likewise.
9602 * statistics.c (hash_statistics_hash, hash_statistics_eq,
9603 hash_statistics_free, curr_statistics_hash): Likewise.
9604 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9605 expand_asm_operands, expand_return, case_bit_test_cmp,
9606 expand_case): Likewise.
9607 * stor-layout.c (start_record_layout): Likewise.
9608 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9609 gt_pch_save_stringpool): Likewise.
9610 * tree-data-ref.c (hash_stmt_vertex_info,
9611 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9612 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9614 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
9617 * config/i386/i386.md : Change constraints of HImode and QImode
9618 immediate operands from "i" to "n". Change SImode "ni" constraint to
9619 "i" and SImode "rmi" constraint to "g". Remove all constraints
9620 from const0_operand and const1_operand predicated operands.
9621 (i): Change QImode and HImode attribute from "i" to "n".
9622 (*subqi_2): Change HImode operands to QImode.
9625 2008-06-25 Olivier Hainque <hainque@adacore.com>
9627 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9630 2008-06-25 Richard Guenther <rguenther@suse.de>
9632 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9633 not overflow the result type.
9635 2008-06-25 Richard Guenther <rguenther@suse.de>
9637 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9638 (vn_lookup): Likewise.
9640 2008-06-25 Richard Guenther <rguenther@suse.de>
9642 PR tree-optimization/35518
9643 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9644 * tree-sra.c (instantiate_element): Use fold_build3 to build
9646 (try_instantiate_multiple_fields): Likewise.
9648 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9650 * config/rs6000/rs6000.md: Change all string instruction's clobber to
9653 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9655 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9656 use_backchain_to_restore_sp to true
9657 if the offset of the link register save area would go over the 32k - 1
9658 offset limit of the load
9661 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
9663 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9664 anchor for the type-punning blurb. Cross-reference "Structures
9665 unions enumerations and bit-fields implementation". Provide a
9666 cast-through-pointer example. Make final sentence self-contained.
9667 * doc/implement-c.texi (Structures unions enumerations and
9668 bit-fields implementation): Cross-reference the type-punning blurb
9669 in the -fstrict-aliasing documentation.
9671 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9674 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9675 the memory instead of the memory itself for the save area.
9677 2008-06-24 Olivier Hainque <hainque@adacore.com>
9678 Nicolas Roche <roche@adacore.com>
9680 * gengtype.c (srcdir_len): size_t instead of int.
9681 (get_file_realbasename): New function. For F a filename, the real
9682 basename of F, with all the path components stripped.
9683 (get_file_srcdir_relative_path): New function. For F a filename, the
9684 relative path to F from $(srcdir).
9685 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9686 get_file_realbasename. Adjust the head comment.
9687 (get_prefix_langdir_index): New function. For F a filename, return the
9688 lang_dir_names[] relative index of the language directory that is
9690 (get_file_langdir): For F a filename, return the name of the language
9691 directory where F is located.
9692 (get_file_gtfilename): New function. The gt- output file name for an
9694 (get_output_file_with_visibility): Replace in-line computations with
9695 uses of get_file_gtfilename and get_prefix_langdir_index.
9696 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9698 2008-06-24 Jakub Jelinek <jakub@redhat.com>
9700 PR tree-optimization/36504
9701 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9702 references without base address.
9704 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9707 * calls.c (expand_call): Increase alignment for recursive functions.
9709 2008-06-23 Anatoly Sokolov <aesok@post.ru>
9711 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9712 (TARGET_FUNCTION_VALUE): New define.
9713 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9714 * config/avr/avr.h (FUNCTION_VALUE): Remove.
9716 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9718 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9719 (fmod<mode>3): Ditto.
9720 (remainderxf3): Ditto.
9721 (remainder<mode>3): Ditto.
9723 2008-06-23 Jakub Jelinek <jakub@redhat.com>
9726 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9727 REG is a hard register.
9729 PR tree-optimization/36508
9730 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9731 499, don't check it at all in release compilers.
9733 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
9735 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9736 together with SSE_TARGET_MATH to disable insn pattern.
9737 (*fop_<MODEF:mode>_2_i387): Ditto.
9738 (*fop_<MODEF:mode>_3_i387): Ditto.
9740 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
9742 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9744 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9747 * gimplify.c (gimplify_asm_expr): Check the return code of
9748 parse_output_constraint call, set function return and is_inout
9751 2008-06-22 Ian Lance Taylor <iant@google.com>
9753 * c-lex.c (narrowest_unsigned_type): Change itk to int.
9754 (narrowest_signed_type): Likewise.
9755 * c-typeck.c (c_common_type): Change local variable mclass to enum
9757 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9758 tcc_comparison, not the tree code itself.
9759 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9760 (c_expand_expr): Cast modifier to enum expand_modifier.
9761 * c-common.h (C_RID_CODE): Add casts.
9762 (C_SET_RID_CODE): Define.
9763 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9764 (c_lex_one_token): Add cast to avoid warning.
9765 (c_parser_objc_type_name): Rename local typename to type_name.
9766 (check_no_duplicate_clause): Change code parameter to enum
9768 (c_parser_omp_var_list_parens): Change kind parameter to enum
9770 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9771 c_parser_omp_list_var_parens.
9772 (c_parser_omp_threadprivate): Likewise.
9773 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9774 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9775 * c-format.c (NO_FMT): Define.
9776 (printf_length_specs): Use NO_FMT.
9777 (asm_fprintf_length_specs): Likewise.
9778 (gcc_diag_length_specs): Likewise.
9779 (scanf_length_specs): Likewise.
9780 (strfmon_length_specs): Likewise.
9781 (gcc_gfc_length_specs): Likewise.
9782 (printf_flag_specs): Change 0 to STD_C89.
9783 (asm_fprintf_flag_specs): Likewise.
9784 (gcc_diag_flag_specs): Likewise.
9785 (gcc_cxxdiag_flag_specs): Likewise.
9786 (scanf_flag_specs): Likewise.
9787 (strftime_flag_specs): Likewise.
9788 (strfmon_flag_specs): Likewise.
9789 (print_char_table): Likewise.
9790 (asm_fprintf_char_table): Likewise.
9791 (gcc_diag_char_table): Likewise.
9792 (gcc_tdiag_char_table): Likewise.
9793 (gcc_cdiag_char_table): Likewise.
9794 (gcc_cxxdiag_char_table): Likewise.
9795 (gcc_gfc_char_table): Likewise.
9796 (scan_char_table): Likewise.
9797 (time_char_table): Likewis.
9798 (monetary_char_table): Likewise.
9799 * c-format.h (BADLEN): Likewise.
9801 2008-06-21 Ian Lance Taylor <iant@google.com>
9803 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9804 Define END_OF_BASE_TREE_CODES around inclusion.
9805 * tree.c (tree_code_type): New global array.
9806 (tree_code_length, tree_code_name): Likewise.
9807 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9809 (all-tree.def, s-alltree): New targets.
9810 (gencheck.h, s-gencheck): Remove.
9811 (tree.o): Depend upon all-tree.def.
9812 (build/gencheck.o): Remove gencheck.h dependency.
9813 (mostlyclean): Don't remove gencheck.h.
9814 * c-common.h (enum c_tree_code): Remove.
9815 * c-lang.c (tree_code_type): Remove.
9816 (tree_code_length, tree_code_name): Remove.
9817 * gencheck.c (tree_codes): Include all-tree.def, rather than
9818 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
9820 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9822 * cp/cp-tree.h (enum cplus_tree_code): Remove.
9823 (operator_name_info): Size to MAX_TREE_CODES.
9824 (assignment_operator_name_info): Likewise.
9825 * cp/cp-lang.c (tree_code_type): Remove.
9826 (tree_code_length, tree_code_name): Remove.
9827 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9828 (assignment_operator_name_info): Likewise.
9829 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9831 * cp/mangle.c (write_expression): Likewise.
9832 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9833 * fortran/f95-lang.c (tree_code_type): Remove.
9834 (tree_code_length, tree_code_name): Remove.
9835 * java/java-tree.h (enum java_tree_code): Remove.
9836 * java/lang.c (tree_code_type): Remove.
9837 (tree_code_length, tree_code_name): Remove.
9838 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9839 * objc/objc-act.h (enum objc_tree_code): Remove.
9840 * objc/objc-lang.c (tree_code_type): Remove.
9841 (tree_code_length, tree_code_name): Remove.
9842 * objcp/objcp-lang.c (tree_code_type): Remove.
9843 (tree_code_length, tree_code_name): Remove.
9844 * ada/ada-tree.h (enum gnat_tree_code): Remove.
9845 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9846 * ada/misc.c (tree_code_type): Remove.
9847 (tree_code_length, tree_code_name): Remove.
9849 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
9851 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9852 the grand_bitmap_obstack.
9854 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9856 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9857 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9858 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9859 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9860 move_stmt_r, new_label_mapper): Likewise.
9861 * tree-complex.c (cvc_lookup): Likewise.
9862 * tree-dfa.c (create_function_ann): Likewise.
9863 * tree-dump.c (dump_register): Likewise.
9864 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9865 find_phi_replacement_condition): Likewise.
9866 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9867 tree_function_versioning): Likewise.
9868 * tree-into-ssa.c (cmp_dfsnum): Likewise.
9869 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9870 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9871 get_nonlocal_debug_decl, convert_nonlocal_reference,
9872 convert_nonlocal_omp_clauses, get_local_debug_decl,
9873 convert_local_reference, convert_local_omp_clauses,
9874 convert_nl_goto_reference, convert_nl_goto_receiver,
9875 convert_tramp_reference, convert_call_expr): Likewise.
9876 * tree-outof-ssa.c (contains_tree_r): Likewise.
9877 * tree-parloops.c (reduction_phi, initialize_reductions,
9878 eliminate_local_variables_1, add_field_for_reduction,
9879 add_field_for_name, create_phi_for_local_result,
9880 create_call_for_reduction_1, create_loads_for_reductions,
9881 create_stores_for_reduction, create_loads_and_stores_for_name):
9883 * tree-phinodes.c (allocate_phi_node): Likewise.
9884 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9885 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9886 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9887 * tree-ssa-coalesce.c (compare_pairs): Likewise.
9888 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9889 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9890 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9891 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9892 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9893 vn_nary_op_insert): Likewise.
9894 * tree-ssa.c (redirect_edge_var_map_add,
9895 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9896 * tree-vectorizer.c (vectorize_loops): Likewise.
9897 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9898 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9899 tree_cons_stat, build1_stat, build_variant_type_copy,
9900 decl_init_priority_lookup, decl_fini_priority_lookup,
9901 decl_priority_info, decl_restrict_base_lookup,
9902 decl_restrict_base_insert, decl_debug_expr_lookup,
9903 decl_debug_expr_insert, decl_value_expr_lookup,
9904 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9905 type_hash_add, get_file_function_name, tree_check_failed,
9906 tree_not_check_failed, tree_range_check_failed,
9907 omp_clause_range_check_failed, build_omp_clause,
9908 build_vl_exp_stat): Likewise.
9909 * value-prof.c (gimple_histogram_value,
9910 gimple_duplicate_stmt_histograms): Likewise.
9911 * var-tracking.c (attrs_list_insert, attrs_list_copy,
9912 unshare_variable, variable_union_info_cmp_pos, variable_union,
9913 dataflow_set_different_1, dataflow_set_different_2,
9914 vt_find_locations, variable_was_changed, set_variable_part,
9915 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9916 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9917 section_entry_hash, object_block_entry_eq,
9918 object_block_entry_hash, create_block_symbol,
9919 initialize_cold_section_name, default_function_rodata_section,
9920 strip_reg_name, set_user_assembler_name, const_desc_eq,
9921 build_constant_desc, output_constant_def, lookup_constant_def,
9922 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9923 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9924 default_internal_label): Likewise.
9925 * varray.c (varray_init, varray_grow): Likewise.
9926 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9928 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
9930 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9931 operators for "test" insn. Macroize insn using SWI mode macro.
9932 (*jcc_fused_2): Ditto.
9933 (*jcc_fused_3): Macroize insn using SWI mode macro.
9934 (*jcc_fused_4): Ditto.
9936 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
9938 * tree-ssa-pre.c: Fix typo in comment.
9939 (init_antic, fini_antic): Add explicit funtions for
9940 initializing and deinitializing ANTIC and AVAIL sets.
9941 (create_expression_by_pieces): Fix typo in comment.
9942 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9943 (execute_pre): Eventually dump details about ANTIC_IN.
9945 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9947 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9948 * gcc.c (translate_options, init_spec, store_arg, read_specs,
9949 add_to_obstack, file_at_path, find_a_file, execute,
9950 add_preprocessor_option, add_assembler_option, add_linker_option,
9951 process_command, insert_wrapper, do_option_spec, do_self_spec,
9952 spec_path, do_spec_1, is_directory, main, used_arg,
9953 getenv_spec_function): Likewise.
9954 * tlink.c (symbol_hash_lookup, file_hash_lookup,
9955 demangled_hash_lookup, symbol_push, file_push, frob_extension):
9958 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
9960 * doc/rtl.texi: Updated subreg section.
9962 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9965 * cgraphunit.c (cgraph_process_new_functions): Don't clear
9966 node->needed and node->reachable.
9967 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9968 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9969 (expand_task_call): Don't call expand_task_copyfn.
9970 (expand_task_copyfn): Renamed to...
9971 (finalize_task_copyfn): ... this.
9973 2008-06-19 Jan Hubicka <jh@suse.cz>
9975 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9976 clobbering framepointer.
9978 2008-06-19 Jan Hubicka <jh@suse.cz>
9980 * tree-optimize.c (execute_early_local_optimizations): Set
9981 cgraph_state only at first invocation.
9983 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9985 * system.h (-Wc++-compat): Activate as a warning, no an error.
9987 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
9989 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9990 instead of "#" in insn asm template.
9991 (*jcc_fused_2): Ditto.
9993 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
9995 * config/i386/i386.h (ix86_tune_indices)
9996 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9997 (TARGET_FUSE_CMP_AND_BRANCH): New define.
9998 * config/i386/i386.md (*jcc_fused_1): New insn pattern
9999 (*jcc_fused_2): Ditto.
10000 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10001 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10002 (print operand): Handle 'E' and 'e' code.
10004 2008-06-19 Anatoly Sokolov <aesok@post.ru>
10006 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10007 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10008 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10010 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
10012 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10014 (cgraph_expand_function): Use local copy of decl.
10015 (cgraph_expand_all_functions): Remove redundant initialization of
10017 (cgraph_optimize): Reword internal_error message.
10019 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
10021 * arm-protos.h (arm_return_in_memory): Remove public
10022 arm_return_in_memory() prototype.
10023 * arm.c (arm_return_in_memory): Add static prototype, add target
10024 hook macro, change definition and comments.
10025 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10027 2008-06-19 Ben Elliston <bje@au.ibm.com>
10029 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10030 real.c: Remove references to IEEE 754R.
10031 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10032 * doc/libgcc.texi (Decimal float library routines): Likewise.
10034 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10036 * targhooks.h (struct gcc_target): New member unwind_word_mode.
10037 (default_unwind_word_mode): Add prototype.
10038 * targhooks.c (default_unwind_word_mode): New function.
10039 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10040 instead of word_mode.
10041 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10042 (TARGET_INITIALIZER): Use it.
10044 * c-common.c (handle_mode_attribute): Support "unwind_word"
10046 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10048 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10049 word_mode to access SjLj_Function_Context member "data".
10050 (sjlj_emit_dispatch_table): Likewise. Also, perform type
10051 conversion from targetm.eh_return_filter_mode () to
10052 targetm.unwind_word_mode () if they differ.
10054 * builtin-types.def (BT_UNWINDWORD): New primitive type.
10055 (BT_FN_UNWINDWORD_PTR): New function type.
10056 (BT_FN_WORD_PTR): Remove.
10057 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10058 * except.c (expand_builtin_extend_pointer): Convert pointer to
10059 targetm.unwind_word_mode () instead of word_mode.
10061 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10062 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10063 (spu_unwind_word_mode): New function.
10064 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10065 (TARGET_UNWIND_WORD_MODE): Define.
10066 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10068 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10070 * config/spu/spu.c (reg_align): Remove.
10071 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10072 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10073 (spu_split_store): Likewise.
10075 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
10077 * gcc/tree-vn.c: Fix typo in comment.
10079 2008-06-18 Jan Hubicka <jh@suse.cz>
10081 * cgraphunit.c (cgraph_optimize): Output debug info when doing
10082 toplevel reorder too.
10084 2008-06-18 Jan Hubicka <jh@suse.cz>
10086 * c-opts.c (c_common_post_options): PCH is not compatible with
10088 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10089 -fno-toplevel-reorder by default now.
10091 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10093 PR documentation/30739
10094 * doc/install.texi (Prerequisites): Document dependency on awk.
10096 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
10097 Ian Lance Taylor <iant@google.com>
10099 PR rtl-optimization/35604
10100 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10101 only want to change jump destinations, not eventual label comparisons.
10103 2008-06-16 Jan Hubicka <jh@suse.cz>
10105 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10107 (cgraph_analyze_function): Likewise.
10109 2008-06-16 Jan Hubicka <jh@suse.cz>
10111 * cgraph.h (cgraph_mark_if_needed): New function.
10112 * cgraphunit.c (cgraph_mark_if_needed): New function.
10113 * c-decl.c (duplicate_decl): Use it.
10115 2008-06-16 Jan Hubicka <jh@suse.cz>
10117 * cgraph.c (cgraph_add_new_function): When in expansion state, do
10120 2008-06-16 Jan Hubicka <jh@suse.cz>
10122 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10124 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
10125 Kazu Hirata <kazu@codesourcery.com>
10126 Maxim Kuvyrkov <maxim@codesourcery.com
10128 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10129 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10130 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10131 EXTRA_SPEC_FUNCTIONS.
10132 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10133 (DRIVER_SELF_SPECS): Adjust.
10134 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10135 * config/mips/st.h, config/mips/t-st: New.
10136 * config/mips/driver-native.c, config/mips/x-native: New.
10137 * doc/invoke.texi (MIPS): Document 'native' value for -march and
10140 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10142 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10144 (ISA_HAS_FP_CONDMOVE): New macro.
10145 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10146 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10147 (ISA_HAS_NMADD3_NMSUB3): New macro.
10148 * config/mips/mips.c (mips_rtx_costs): Update.
10149 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10150 compiling for ST Loongson 2E/2F.
10151 (madd<mode>): Rename to madd4<mode>. Update.
10152 (madd3<mode>): New pattern.
10153 (msub<mode>): Rename to msub4<mode>. Update.
10154 (msub3<mode>): New pattern.
10155 (nmadd<mode>): Rename to nmadd4<mode>. Update.
10156 (nmadd3<mode>): New pattern.
10157 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
10158 (nmadd3<mode>_fastmath): New pattern.
10159 (nmsub<mode>): Rename to nmsub4<mode>. Update.
10160 (nmsub3<mode>): New pattern.
10161 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
10162 (nmsub3<mode>_fastmath): New pattern.
10163 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10165 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
10167 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10168 (DF_REF_INSN_INFO): New.
10169 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10170 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10171 with a NULL DF_REF_INSN_INFO.
10172 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10174 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10175 DF_INSN_INFO_EQ_USES): New.
10176 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10177 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10178 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10179 * df-core.c: Update comment for above changes.
10180 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10181 DF_INSN_UID_* macros.
10182 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10183 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10184 insn rtx. Update all callers.
10185 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10186 df_ref_create_structure, df_insn_refs_collect): Likewise.
10187 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10188 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10189 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10190 macros to access the insn refs.
10191 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10192 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10193 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10194 for accessing the refs.
10195 (try_fwprop_subst): Likewise.
10196 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10197 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10198 for accessing the refs.
10199 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10200 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10201 to look at the insn refs.
10202 (record_uses): Likewise.
10203 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10205 (mark_artificial_uses): Don't mark_insn for artificial refs.
10206 (mark_reg_rependencies): Likewise.
10208 * doc/rtl.texi: Remove documentation of ADDRESSOF.
10210 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10212 * configure: Regenerate.
10214 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10216 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10217 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10218 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10220 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10222 * config/avr/avr.c (avr_mcu_t): Add attiny167.
10223 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10224 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10226 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
10228 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10229 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10230 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10232 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
10234 * tree-ssa-sccvn.c: Fix format of comments.
10236 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
10238 * cgraph.c: Remove unneeded forward declarations of eq_node()
10241 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
10243 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10245 (see_update_relevancy): Likewise.
10246 * fwprop.c (try_fwprop_subst): Likewise.
10247 * rtlanal.c (noop_move_p): Likewise.
10248 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10249 notes to non-existing libcall blocks.
10250 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
10252 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10253 (dead_libcall_p): Remove.
10254 (delete_trivially_dead_insns): Don't use it.
10255 * web.c (union_defs): Remove comment about keeping nops.
10256 * gcse.c (hash_scan_insn): Don't take libcall pointers.
10257 (compute_hash_table_work): Don't track libcall notes.
10258 (do_local_cprop): Don't take libcall pointers. Don't update
10260 (adjust_libcall_notes): Deleted.
10261 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10262 ever have existed in the first place).
10263 (replace_store_insn): Don't try to remove libcall notes.
10264 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10265 (resolve_reg_notes): Don't call them.
10266 (resolve_simple_move): Likewise.
10267 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10268 Don't remove REG_RETVAL notes.
10269 * emit-rtl.c (try_split): Don't update libcall notes.
10270 (emit_copy_of_insn_after): Dito.
10271 * cselib.c (cselib_current_insn_in_libcall): Remove.
10272 (cselib_process_insn): Don't set/clear it.
10273 (new_elt_loc_list): Don't record it.
10274 (cselib_init): Don't initialize it.
10275 * cselib.c (struct elt_loc_list): Remove in_libcall field.
10276 * loop-invariant.c (find_invariant_insn): Don't look for libcall
10278 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10279 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10280 (init_deps): Don't initialize it.
10281 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10282 * combine.c (delete_noop_moves): Don't update libcall notes.
10283 (can_combine_p): Remove now pointless #if 0 block.
10284 (try_combine): Remove another obsolete #if 0 block.
10285 (distribute_notes): Don't distribute libcall notes.
10286 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10287 * dce.c (libcall_dead_p): Remove.
10288 (delete_unmarked_insns): Don't handle libcall blocks.
10289 (preserve_libcall_for_dce): Remove.
10290 (prescan_insns_for_dce): Don't special-case libcall block insns.
10291 * reload1 (reload): Don't handle libcall notes.
10292 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10295 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10297 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10298 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10299 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10301 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
10303 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10304 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10305 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10307 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10309 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10311 2008-06-16 Ira Rosen <irar@il.ibm.com>
10313 PR tree-optimization/36493
10314 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10315 the arguments list. Use VECTYPE to create vector pointer.
10316 (vectorizable_store): Fail if accesses through a pointer to vectype
10317 do not alias the original memory reference operands.
10318 Call vect_create_data_ref_ptr without the removed argument.
10319 (vectorizable_load): Likewise.
10320 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10323 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
10326 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10327 reg_equiv_constant.
10329 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10331 * config/mips/loongson2ef.md: New file.
10332 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10333 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10334 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10335 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10336 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10338 (loongson2ef.md): New include.
10339 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10340 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10341 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10342 (loongson_gt_<mode>, loongson_extract_halfword)
10343 (loongson_insert_halfword_0, loongson_insert_halfword_2)
10344 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10345 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10346 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10347 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10348 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10349 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10350 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10351 (vec_interleave_low<mode>): Define type attribute.
10352 * config/mips/mips.c (mips_ls2): New static variable.
10353 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10354 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10355 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10356 Implement target scheduling hooks.
10357 (mips_multipass_dfa_lookahead): Update to handle tuning for
10359 (mips_sched_init): Initialize data for Loongson scheduling.
10360 (mips_ls2_variable_issue): New static function.
10361 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10363 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10364 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10365 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10366 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10367 Handle ST Loongson 2E/2F cores.
10368 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10370 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10372 * omp-low.c (extract_omp_for_data): Fix comment typo.
10375 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10377 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10378 FIXME note about gcc/config.guess.
10379 * doc/options.texi (Option file format): Remove non-ASCII bytes.
10380 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10381 * doc/cppopts.texi: Likewise.
10382 * doc/extend.texi: Likewise.
10383 * doc/gcc.texi: Likewise.
10384 * doc/gccint.texi: Likewise.
10385 * doc/gcov.texi: Likewise.
10386 * doc/gty.texi: Likewise.
10387 * doc/hostconfig.texi: Likewise.
10388 * doc/install.texi: Likewise.
10389 * doc/invoke.texi: Likewise.
10390 * doc/loop.texi: Likewise.
10391 * doc/makefile.texi: Likewise.
10392 * doc/md.texi: Likewise.
10393 * doc/passes.texi: Likewise.
10394 * doc/tm.texi: Likewise.
10395 * doc/tree-ssa.texi: Likewise.
10396 * doc/trouble.texi: Likewise.
10398 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
10399 Nathan Sidwell <nathan@codesourcery.com>
10400 Maxim Kuvyrkov <maxim@codesourcery.com>
10401 Richard Sandiford <rdsandiford@googlemail.com>
10403 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10404 * config/mips/mips-protos.h (mips_expand_vector_init): New.
10405 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10407 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10408 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10409 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10411 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10412 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10413 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10414 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10415 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10416 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10417 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10418 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10419 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10420 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10421 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10422 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10423 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10424 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10425 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10426 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10427 (mips_builtins): Add Loongson builtins.
10428 (mips_loongson_2ef_bdesc): New.
10429 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10430 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10431 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10432 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10434 (mips_expand_vector_init): New.
10435 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10436 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10438 * config/mips/mips.md: Add unspec numbers for Loongson
10439 builtins. Include loongson.md.
10440 (MOVE64): Include Loongson vector modes.
10441 (SPLITF): Include Loongson vector modes.
10442 (HALFMODE): Handle Loongson vector modes.
10443 * config/mips/loongson.md: New.
10444 * config/mips/loongson.h: New.
10445 * config.gcc: Add loongson.h header for mips*-*-* targets.
10446 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10448 2008-06-14 Joseph Myers <joseph@codesourcery.com>
10450 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10451 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10452 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10453 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10454 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10455 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10456 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10457 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10458 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10459 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10460 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10461 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10462 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10463 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10464 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10465 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10466 Remove use_fixproto=yes.
10467 (ia64*-*-hpux*): Remove comment about using fixproto.
10468 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10470 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10472 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10474 * configure: Regenerate.
10476 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
10478 PR middle-end/36520
10479 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10480 before evaluating it.
10482 2008-06-13 Jakub Jelinek <jakub@redhat.com>
10485 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10486 nested inline functions.
10487 (start_decl, start_function): Don't invert DECL_EXTERNAL
10488 for nested inline functions.
10490 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10492 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10493 splits that must be made for correctness.
10495 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10497 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10498 (AVAIL_NON_MIPS16): Likewise.
10499 (mips_builtin_description): Replace target_flags with a predicate.
10500 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10501 (dspr2_32): New availability predicates.
10502 (MIPS_BUILTIN): New macro.
10503 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10504 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10505 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10506 Replace the TARGET_FLAGS parameters with AVAIL parameters.
10507 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10508 (mips_dsp_32only_bdesc): Merge into...
10509 (mips_builtins): ...this new array.
10510 (mips_bdesc_map, mips_bdesc_arrays): Delete.
10511 (mips_init_builtins): Update after above changes.
10512 (mips_expand_builtin_1): Merge into...
10513 (mips_expand_builtin): ...here and update after above changes.
10515 2008-06-12 Paul Brook <paul@codesourcery.com>
10517 * longlong.h (__arm__): Define count_leading_zeros.
10518 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10519 (clzsi2, clzdi2): New functions.
10520 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10521 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10522 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10523 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10524 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10525 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10526 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10527 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10528 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10529 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10531 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
10533 * config/m68k/m68k.c (m68k_tune_flags): New.
10534 (override_options): Compute m68k_tune_flags.
10535 (MULL_COST, MULW_COST): Update for various variants of CFV2.
10536 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10538 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10540 PR middle-end/36506
10541 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10543 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10545 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10546 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10548 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
10550 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10551 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10553 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10555 PR middle-end/36506
10556 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10559 2008-06-12 Richard Guenther <rguenther@suse.de>
10561 PR tree-optimization/36345
10562 * tree-flow.h (struct ptr_info_def): Align escape_mask,
10563 add memory_tag_needed flag.
10564 (may_alias_p): Declare.
10565 * tree-ssa-alias.c (may_alias_p): Export.
10566 (set_initial_properties): Use memory_tag_needed flag.
10567 (update_reference_counts): Likewise.
10568 (reset_alias_info): Reset memory_tag_needed flag.
10569 (create_name_tags): Check memory_tag_needed flag.
10570 (dump_points_to_info_for): Dump it.
10571 * tree-ssa-structalias.c (struct variable_info): Remove
10572 directly_dereferenced flag.
10573 (new_var_info): Do not initialize it.
10574 (process_constraint_1): Do not set it.
10575 (update_alias_info): Set is_dereferenced flag.
10576 (set_uids_in_ptset): Use may_alias_p.
10577 (set_used_smts): Check memory_tag_needed flag.
10578 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
10579 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10580 memory_tag_needed flag.
10581 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10582 from broken design.
10584 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
10586 * config/i386/i386.c (ix86_compute_frame_layout): Disable
10587 red zone for w64 abi.
10588 (ix86_expand_prologue): Likewise.
10589 (ix86_force_to_memory): Likewise.
10590 (ix86_free_from_memory): Likewise.
10592 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
10595 * config/rs6000/rs6000.c (rs6000_override_options): Set
10596 rs6000_isel conditionally to the absence of comand line override.
10597 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10598 Remove duplicate rs6000_isel setting.
10599 * config/rs6000/eabispe.h: Ditto.
10601 2008-06-11 Richard Guenther <rguenther@suse.de>
10603 * alias.c (get_alias_set): Use the element alias-set for arrays.
10604 (record_component_aliases): For arrays and vectors do nothing.
10605 * c-common.c (strict_aliasing_warning): Handle the cases
10606 of alias set zero explicitly.
10607 * Makefile.in (dfp.o-warn): Add -Wno-error.
10609 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10611 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10613 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10614 tune_32 tune_64 to supported_defaults. Allow values not
10615 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10616 x86_64. Do not override cpu_32 or cpu_64 values from target name.
10617 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10618 with_cpu_64 to generic for 64-bit-supporting configurations, not
10619 with_cpu. Remove FIXMEs.
10620 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10621 --with-arch-64, --with-tune-32, --with-tune-64): Document.
10622 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10623 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10624 arch_32 and arch_64.
10626 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
10627 Olivier Hainque <hainque@adacore.com>
10629 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10630 Use DECL_SIZE_UNIT to retrieve the size of the field.
10632 2008-06-11 Joseph Myers <joseph@codesourcery.com>
10634 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10635 with function calls after declarations. Lay out
10636 neon_float_type_node before further use.
10638 2008-06-11 Richard Guenther <rguenther@suse.de>
10640 * tree-flow.h (may_point_to_global_var): Declare.
10641 * tree-ssa-alias.c (may_point_to_global_var): New function.
10642 * tree-ssa-sink.c (is_hidden_global_store): Use it.
10644 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
10646 * configure.ac: Teach that fido supports .debug_line.
10647 * configure: Regenerate.
10649 2008-06-10 Tom Tromey <tromey@redhat.com>
10651 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10654 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10656 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10657 (encode_decimal64, decode_decimal64, encode_decimal128,
10658 decode_decimal128): Reverse order of 32-bit parts of value if host
10659 and target endianness differ.
10661 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
10663 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10664 Avoid division by 0.
10665 (tree_mod_pow2_value_transform): Likewise.
10666 (tree_ic_transform): Likewise.
10667 (tree_stringops_transform): Likewise.
10668 (tree_mod_subtract_transform): Likewise.
10669 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10670 (copy_edges_for_bb): Likewise.
10671 (initialize_cfun): Likewise.
10673 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10675 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10676 nonmemory_operand. Add "N" operand constraint.
10678 (*jcc_btdi_mask_rex64): New instruction and split pattern.
10679 (*jcc_btsi_mask): Ditto.
10680 (*jcc_btsi_mask_1): Ditto.
10682 2008-06-10 Joseph Myers <joseph@codesourcery.com>
10684 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10685 TYPE_CANONICAL for copied element type.
10687 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
10690 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10691 Add m_CORE2 and m_GENERIC.
10692 * config/i386/predicates.md (bt_comparison_operator): New predicate.
10693 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10695 (*jcc_btdi_rex64): New instruction and split pattern.
10696 (*jcc_btsi): Ditto.
10697 (*jcc_btsi_1): Ditto.
10698 (*btsq): Fix Intel asm dialect operand order.
10702 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
10704 PR middle-end/36447
10705 * simplify-rtx.c (simplify_subreg): Add check for shift count
10708 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
10710 * doc/md.texi: Synchronize with later constraints.md change.
10711 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10712 with a C implementation.
10713 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10715 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10716 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10717 when moving to and from MD_REGNUM.
10718 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10719 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10720 Handle byte and halfword moves.
10721 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10723 * config/mips/constraints.md (h): Turn into NO_REGS.
10724 (l, x): Update documentation.
10725 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10726 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10727 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10728 (HILO): New mode iterator.
10730 (any_div): New code iterator.
10731 (u): Extend code attribute to div and udiv.
10732 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10733 d_operand in the splitters. Remove redundant CONST_INT checks.
10734 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10735 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10736 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
10737 accordingly, using normal moves instead of unspecs to move LO into
10738 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
10739 (<u>mulsidi3): Handle expansion in C code.
10740 (<u>mulsidi3_32bit_internal): Rename to...
10741 (<u>mulsidi3_32bit): ...this.
10742 (<u>mulsidi3_32bit_r4000): Fix insn separator.
10743 (*<u>mulsidi3_64bit): Rename to...
10744 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
10745 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
10746 to set LO and HI to the multiplication result. Use a normal move
10747 for MFLO and an unspec for MFHI.
10748 (*<u>mulsidi3_64bit_parts): Replace with...
10749 (<u>mulsidi3_64bit_hilo): ...this new instruction.
10750 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10751 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10752 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
10753 instead of HI. Split the instruction into a separate multiplication
10754 and MFHI if !TARGET_FIX_R4000.
10755 (<su>muldi3_highpart): Likewise.
10756 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10757 and the "=h" clobber.
10758 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10759 (<u>mulditi3): New expander.
10760 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10761 (madsi): Remove "=h" clobber.
10762 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10763 Force the modulus result to be a GPR and split the instruction into
10764 a division followed by an MFHI after reload.
10765 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10766 (*lea_high64): Use d_operand in the define_peephole2. Likewise
10767 the MIPS16 HIGH define_split.
10768 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10769 of acc<->gpr moves to "multi".
10770 (*movdi_64bit): Replace the single "x" alternative with
10771 alternatives for moving into and out of "a".
10772 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
10773 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10774 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10775 Use d_operand in the splitters. Remove redundant CONST_INT checks.
10776 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
10777 (movti): New expander.
10778 (*movti, *movti_mips16): New insns.
10779 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10780 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10781 (mthi<GPR:mode>_<HILO:mode>): Likewise.
10782 * config/mips/predicates.md (fpr_operand): Delete.
10783 (d_operand): New predicate.
10785 2008-06-09 Michael Meissner <michael.meissner@amd.com>
10787 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10788 failure on some Bourne shells.
10789 (x86_64-*-*): Ditto.
10791 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
10793 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10795 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
10797 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10798 (sparc-sun-solaris2*): Likewise.
10800 2008-06-09 Arnaud Charlet <charlet@adacore.com
10802 * doc/install.texi: Update requirements to build the Ada compiler.
10804 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
10806 * df-scan.c (struct df_scan_problem_data): Remove the
10807 mw_link_pool alloc pool.
10808 (df_scan_free_internal): Don't free it.
10809 (df_scan_alloc): Don't allocate it.
10810 * df.h (struct df_link): Update comment.
10812 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
10814 * except.h: Correct checks for when SJLJ exceptions must be used.
10816 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10818 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10821 2008-06-08 Joseph Myers <joseph@codesourcery.com>
10823 PR tree-optimization/36218
10824 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10825 configure for the build system.
10826 (BUILD_LDFLAGS): Define.
10827 * configure: Regenerate.
10828 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10830 2008-07-08 Anatoly Sokolov <aesok@post.ru>
10833 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10834 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10835 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10837 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
10839 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10841 2008-06-07 Joseph Myers <joseph@codesourcery.com>
10843 * config.gcc (Obsolete configurations): Remove list of
10845 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10846 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
10847 targets matched by those patterns.
10848 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10849 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10850 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10851 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10852 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10853 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10854 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10855 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10856 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10857 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10858 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10859 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10860 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10861 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10862 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10863 Make code for Solaris 7 and greater unconditional for Solaris.
10864 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10865 Remove --with-* handling.
10866 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10867 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10868 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10869 LINK_OS_WINDISS_SPEC): Remove.
10870 * config/rs6000/sysv4.opt (mwindiss): Remove.
10871 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10872 * configure: Regenerate.
10873 * doc/cpp.texi: Don't mention BeOS.
10874 * doc/extend.texi (interrupt): Don't mention MS1.
10875 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10876 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10877 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10878 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10879 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10881 * doc/invoke.texi (MT Options): Remove.
10882 (-mwindiss): Remove.
10883 (CRIS Options): Remove cris-axis-aout references.
10884 (HPPA Options): Don't mention hppa1.1-*-pro.
10885 * doc/md.texi: (MorphoTech family): Remove.
10886 * libgcc2.c: Don't handle UWIN.
10887 * config/alpha/t-unicosmk: Remove.
10888 * config/alpha/unicosmk.h: Remove.
10889 * config/arm/kaos-arm.h: Remove.
10890 * config/arm/kaos-strongarm.h: Remove.
10891 * config/arm/strongarm-coff.h: Remove.
10892 * config/arm/strongarm-elf.h: Remove.
10893 * config/arm/strongarm-pe.h: Remove.
10894 * config/arm/t-strongarm-pe: Remove.
10895 * config/arm/t-xscale-coff: Remove.
10896 * config/arm/t-xscale-elf: Remove.
10897 * config/arm/xscale-coff.h: Remove.
10898 * config/arm/xscale-elf.h: Remove.
10899 * config/chorus.h: Remove.
10900 * config/cris/aout.h: Remove.
10901 * config/cris/aout.opt: Remove.
10902 * config/cris/t-aout: Remove.
10903 * config/i386/beos-elf.h: Remove.
10904 * config/i386/kaos-i386.h: Remove.
10905 * config/i386/ptx4-i.h: Remove.
10906 * config/i386/sco5.h: Remove.
10907 * config/i386/sco5.opt: Remove.
10908 * config/i386/sysv4-cpp.h: Remove.
10909 * config/i386/sysv5.h: Remove.
10910 * config/i386/t-beos: Remove.
10911 * config/i386/t-sco5: Remove.
10912 * config/i386/t-uwin: Remove.
10913 * config/i386/uwin.asm: Remove.
10914 * config/i386/uwin.h: Remove.
10915 * config/kaos.h: Remove.
10916 * config/mips/windiss.h: Remove.
10917 * config/mt: Remove directory.
10918 * config/pa/pa-osf.h: Remove.
10919 * config/pa/pa-pro-end.h: Remove.
10920 * config/pa/t-pro: Remove.
10921 * config/ptx4.h: Remove.
10922 * config/rs6000/beos.h: Remove.
10923 * config/rs6000/kaos-ppc.h: Remove.
10924 * config/rs6000/t-beos: Remove.
10925 * config/rs6000/windiss.h: Remove.
10926 * config/sh/kaos-sh.h: Remove.
10927 * config/sol2-6.h: Remove.
10928 * config/sparc/sol26-sld.h: Remove.
10929 * config/sparc/sysv4-only.h: Remove.
10930 * config/vax/bsd.h: Remove.
10931 * config/vax/t-memfuncs: Remove.
10932 * config/vax/ultrix.h: Remove.
10933 * config/vax/vaxv.h: Remove.
10934 * config/windiss.h: Remove.
10936 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
10938 PR rtl-optimization/36438
10939 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10940 for vector shifts with constant scalar shift operands.
10942 2008-06-06 Sandip Matte <sandip@rmicorp.com>
10944 * doc/invoke.texi: Document -march=xlr.
10945 * config/mips/xlr.md: New file.
10946 * config/mips/mips.md: Include it.
10948 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10949 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10950 (mips_rtx_cost_data): Likewise.
10952 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
10954 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10955 PRE_INC and PRE_DEC cases.
10957 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10959 PR rtl-optimization/36419
10960 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10961 the emitting jump insn.
10964 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10965 is not bool, boolify the whole *expr_p and convert to the desired type.
10967 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10969 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10970 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10971 Add omp_private_outer_ref hook, add another argument to
10972 omp_clause_default_ctor hook.
10973 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10974 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10975 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10976 hook_tree_tree_tree_tree_null.
10977 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10978 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10979 * hooks.c (hook_tree_tree_tree_tree_null): New function.
10980 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10981 * tree.def (OMP_TASK): New tree code.
10982 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10983 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10984 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10985 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10986 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10987 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10988 OMP_CLAUSE_COLLAPSE_EXPR): Define.
10989 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10990 (OMP_DIRECTIVE_P): Add OMP_TASK.
10991 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10992 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10993 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10994 and OMP_CLAUSE_UNTIED entries.
10995 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
10997 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10998 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10999 * tree-pretty-print.c (dump_omp_clause): Handle
11000 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11001 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11002 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11003 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
11004 warning about unsigned iterators. Change decl/init/cond/incr
11005 arguments to TREE_VECs, check arguments for all collapsed loops.
11006 (c_finish_omp_taskwait): New function.
11007 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11009 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
11010 default_function_array_conversion on init. Add par_clauses argument.
11011 If decl is present in parallel's lastprivate clause, change it to
11012 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11013 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
11014 collapse count in clauses.
11015 (c_parser_omp_for, c_parser_omp_parallel): Adjust
11016 c_parser_omp_for_loop callers.
11017 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11018 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11019 (c_parser_omp_clause_name): Handle collapse and untied clauses.
11020 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11022 (c_parser_omp_clause_schedule): Handle schedule(auto).
11023 Include correct location in the error message.
11024 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11025 and PRAGMA_OMP_CLAUSE_UNTIED.
11026 (OMP_TASK_CLAUSE_MASK): Define.
11027 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11028 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11029 * tree-nested.c (convert_nonlocal_omp_clauses,
11030 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11031 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11032 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11033 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11035 (conver_nonlocal_reference, convert_local_reference,
11036 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
11037 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11038 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11039 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11040 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11041 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11042 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11043 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11044 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11046 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11047 * c-common.h (c_finish_omp_taskwait): New prototype.
11048 * gimple-low.c (lower_stmt): Handle OMP_TASK.
11049 * tree-parloops.c (create_parallel_loop): Create 1 entry
11050 vectors for OMP_FOR_{INIT,COND,INCR}.
11051 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11052 (make_edges): Handle OMP_TASK.
11053 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11054 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11055 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11056 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11057 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11058 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11059 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11060 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11061 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11062 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11063 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11064 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11065 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11066 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11067 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11068 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11069 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11070 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11071 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11072 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11073 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11074 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11075 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11076 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11077 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11078 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11079 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
11080 original iterator is present in lastprivate clause or if
11081 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
11082 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11083 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11084 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11085 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11086 if it is set, lookup var in outer contexts too. Handle
11087 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
11088 to be implicitly determined firstprivate for task regions.
11089 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11090 if it is set, lookup var in outer contexts too. Set
11091 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11092 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11093 OMP_CLAUSE_UNTIED. Take region_type as last argument
11094 instead of in_parallel and in_combined_parallel.
11095 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11097 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11098 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
11099 (new_omp_context): Set default_kind to
11100 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11101 (omp_region_type): New enum.
11102 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11103 fields, add region_type.
11104 (new_omp_context): Take region_type as argument instead of is_parallel
11105 and is_combined_parallel.
11106 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11107 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11108 ctx->is_combined_parallel checks.
11109 (gimplify_omp_task): New function.
11110 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11112 * omp-low.c (extract_omp_for_data): Use schedule(static)
11113 for schedule(auto). Handle pointer and unsigned iterators.
11114 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
11115 Add loops argument. Extract data for collapsed OMP_FOR loops.
11116 (expand_parallel_call): Assert sched_kind isn't auto,
11117 map runtime schedule to index 3.
11118 (struct omp_for_data_loop): New type.
11119 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11120 Add loop, loops, collapse and iter_type fields.
11121 (workshare_safe_to_combine_p): Disallow combined for if
11122 iter_type is unsigned long long. Don't combine collapse > 1 loops
11123 unless all bounds and steps are constant. Adjust extract_omp_for_data
11125 (expand_omp_for_generic): Handle pointer, unsigned and long long
11126 iterators. Handle collapsed OMP_FOR loops. Adjust
11127 for struct omp_for_data changes. If libgomp function doesn't return
11128 boolean_type_node, add comparison of the return value with 0.
11129 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11130 pointer, unsigned and long long iterators. Adjust for struct
11131 omp_for_data changes.
11132 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11133 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
11134 unsigned long long. Allocate loops array, pass it to
11135 extract_omp_for_data. For collapse > 1 loops use always
11136 expand_omp_for_generic.
11137 (omp_context): Add sfield_map and srecord_type fields.
11138 (is_task_ctx, lookup_sfield): New functions.
11139 (use_pointer_for_field): Use is_task_ctx helper. Change first
11140 argument's type from const_tree to tree. Clarify comment.
11141 In OMP_TASK disallow copy-in/out sharing.
11142 (build_sender_ref): Call lookup_sfield instead of lookup_field.
11143 (install_var_field): Add mask argument. Populate both record_type
11144 and srecord_type if needed.
11145 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11147 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11148 and DECL_FIELD_OFFSET.
11149 (scan_sharing_clauses): Adjust install_var_field callers. For
11150 firstprivate clauses on explicit tasks allocate the var by value in
11151 record_type unconditionally, rather than by reference.
11152 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11153 Use is_taskreg_ctx instead of is_parallel_ctx.
11154 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11155 (create_omp_child_function_name): Add task_copy argument, use
11156 *_omp_cpyfn* names if it is true.
11157 (create_omp_child_function): Add task_copy argument, if true create
11158 *_omp_cpyfn* helper function.
11159 (scan_omp_parallel): Adjust create_omp_child_function callers.
11160 Rename parallel_nesting_level to taskreg_nesting_level.
11161 (scan_omp_task): New function.
11162 (lower_rec_input_clauses): Don't run constructors for firstprivate
11163 explicit task vars which are initialized by *_omp_cpyfn*.
11164 Pass outer var ref to omp_clause_default_ctor hook if
11165 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11166 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11167 OMP_CLAUSE_REDUCTION_INIT.
11168 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11169 avoid duplicate setting of fields. Handle
11170 OMP_CLAUSE_PRIVATE_OUTER_REF.
11171 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
11172 copy-out if TREE_READONLY, only copy-in.
11173 (expand_task_copyfn): New function.
11174 (expand_task_call): New function.
11175 (struct omp_taskcopy_context): New type.
11176 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11178 (lower_omp_parallel): Rename to...
11179 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
11180 Call create_task_copyfn if srecord_type is needed. Adjust
11182 (task_shared_vars): New variable.
11183 (check_omp_nesting_restrictions): Warn if work-sharing,
11184 barrier, master or ordered region is closely nested inside OMP_TASK.
11185 Add warnings for barrier if closely nested inside of work-sharing,
11186 ordered, or master region.
11187 (scan_omp_1): Call check_omp_nesting_restrictions even for
11188 GOMP_barrier calls. Rename parallel_nesting_level to
11189 taskreg_nesting_level. Handle OMP_TASK.
11190 (lower_lastprivate_clauses): Even if some lastprivate is found on a
11191 work-sharing construct, continue looking for them on parent parallel
11193 (lower_omp_for_lastprivate): Add lastprivate clauses
11194 to the beginning of dlist rather than end. Adjust for struct
11195 omp_for_data changes.
11196 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11197 not after it. Handle collapsed OMP_FOR loops, adjust for
11198 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11199 (get_ws_args_for): Adjust extract_omp_for_data caller.
11200 (scan_omp_for): Handle collapsed OMP_FOR
11201 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11202 (lower_omp_single_simple): If libgomp function doesn't return
11203 boolean_type_node, add comparison of the return value with 0.
11204 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11205 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
11206 (parallel_nesting_level): Rename to...
11207 (taskreg_nesting_level): ... this.
11208 (is_taskreg_ctx): New function.
11209 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11210 of is_parallel_ctx.
11211 (execute_lower_omp): Rename parallel_nesting_level to
11212 taskreg_nesting_level.
11213 (expand_omp_parallel): Rename to...
11214 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
11215 Call omp_task_call for OMP_TASK regions.
11216 (expand_omp): Adjust caller, handle OMP_TASK.
11217 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11219 * bitmap.c (bitmap_default_obstack_depth): New variable.
11220 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11221 if argument is NULL and bitmap_default_obstack is already initialized.
11222 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11224 * matrix-reorg.c (matrix_reorg): Likewise.
11226 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
11228 * config/i386/i386.md (*indirect_jump): Macroize using P
11229 mode iterator. Remove !TARGET_64BIT from insn constraints.
11230 (*tablejump_1): Ditto.
11231 (*indirect_jump_rex64): Remove insn pattern.
11232 (*tablejump_1_rex64): Ditto.
11233 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11234 and eh_return_si insn patterns.
11236 2008-06-06 Richard Guenther <rguenther@suse.de>
11238 * tree-ssa-structalias.c (merge_smts_into): Remove.
11239 (find_what_p_points_to): Do not bother to compute the
11240 points-to set for pt_anything pointers.
11241 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11242 for pt_anything pointers is ok.
11244 2008-06-06 Jan Hubicka <jh@suse.cz>
11246 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11248 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11250 * cgraph.c: Fix typos in comments.
11251 (cgraph_availability_names): Fix string typo.
11252 * fold-const.c: Fix typos in comments.
11253 (fold_binary): Fix typo in warning.
11254 * genautomata.c: Fix typos in comments.
11255 (check_presence_pattern_sets): Fix typo in local variable.
11256 (output_description): Fix typo in output.
11257 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11258 * hwint.h: Likewise.
11259 * matrix-reorg.c (check_allocation_function): Likewise.
11260 * omega.c (smooth_weird_equations): Likewise.
11261 * auto-inc-dec.c: Fix typos in comments.
11262 * bb-reorder.c: Likewise.
11263 * builtins.c: Likewise.
11264 * c-common.c: Likewise.
11265 * c-cppbuiltin.c: Likewise.
11266 * c-parser.c: Likewise.
11267 * c-pretty-print.c: Likewise.
11268 * cfgcleanup.c: Likewise.
11269 * cfgexpand.c: Likewise.
11270 * cfghooks.c: Likewise.
11271 * cfglayout.c: Likewise.
11272 * cfgloopmanip.c: Likewise.
11273 * cgraphunit.c: Likewise.
11274 * coverage.c: Likewise.
11275 * dbxout.c: Likewise.
11276 * df-byte-scan.c: Likewise.
11277 * df-core.c: Likewise.
11278 * df-problems.c: Likewise.
11279 * df-scan.c: Likewise.
11281 * dominance.c: Likewise.
11282 * domwalk.c: Likewise.
11284 * dwarf2out.c: Likewise.
11285 * emit-rtl.c: Likewise.
11286 * et-forest.c: Likewise.
11287 * function.c: Likewise.
11288 * function.h: Likewise.
11290 * gcov-io.c: Likewise.
11291 * gcov.c: Likewise.
11292 * gcse.c: Likewise.
11293 * genattrtab.c: Likewise.
11294 * ggc-page.c: Likewise.
11295 * gimplify.c: Likewise.
11296 * gthr-lynx.h: Likewise.
11297 * haifa-sched.c: Likewise.
11298 * ipa-cp.c: Likewise.
11299 * ipa-inline.c: Likewise.
11300 * ipa-prop.h: Likewise.
11301 * ipa-pure-const.c: Likewise.
11302 * ipa-struct-reorg.c: Likewise.
11303 * ipa-struct-reorg.h: Likewise.
11304 * ipa-type-escape.c: Likewise.
11306 * loop-doloop.c: Likewise.
11307 * mips-tfile.c: Likewise.
11308 * mkmap-flat.awk: Likewise.
11309 * mkmap-symver.awk: Likewise.
11310 * modulo-sched.c: Likewise.
11311 * omp-low.c: Likewise.
11312 * optabs.c: Likewise.
11313 * optabs.h: Likewise.
11314 * opts.c: Likewise.
11315 * passes.c: Likewise.
11316 * postreload-gcse.c: Likewise.
11317 * postreload.c: Likewise.
11318 * predict.c: Likewise.
11319 * pretty-print.h: Likewise.
11320 * profile.c: Likewise.
11321 * protoize.c: Likewise.
11322 * ra-conflict.c: Likewise.
11323 * real.c: Likewise.
11324 * recog.c: Likewise.
11325 * regclass.c: Likewise.
11326 * regs.h: Likewise.
11327 * reload.c: Likewise.
11328 * rtl-error.c: Likewise.
11329 * rtlanal.c: Likewise.
11330 * scan.h: Likewise.
11331 * sched-rgn.c: Likewise.
11333 * stmt.c: Likewise.
11334 * target.h: Likewise.
11335 * tree-dfa.c: Likewise.
11336 * tree-eh.c: Likewise.
11337 * tree-flow-inline.h: Likewise.
11338 * tree-inline.c: Likewise.
11339 * tree-into-ssa.c: Likewise.
11340 * tree-loop-distribution.c: Likewise.
11341 * tree-nested.c: Likewise.
11342 * tree-parloops.c: Likewise.
11343 * tree-pass.h: Likewise.
11344 * tree-pretty-print.c: Likewise.
11345 * tree-profile.c: Likewise.
11346 * tree-scalar-evolution.c: Likewise.
11347 * tree-sra.c: Likewise.
11348 * tree-ssa-alias-warnings.c: Likewise.
11349 * tree-ssa-ccp.c: Likewise.
11350 * tree-ssa-coalesce.c: Likewise.
11351 * tree-ssa-dom.c: Likewise.
11352 * tree-ssa-dse.c: Likewise.
11353 * tree-ssa-forwprop.c: Likewise.
11354 * tree-ssa-live.c: Likewise.
11355 * tree-ssa-live.h: Likewise.
11356 * tree-ssa-loop-im.c: Likewise.
11357 * tree-ssa-loop-ivopts.c: Likewise.
11358 * tree-ssa-loop-niter.c: Likewise.
11359 * tree-ssa-loop-prefetch.c: Likewise.
11360 * tree-ssa-phiopt.c: Likewise.
11361 * tree-ssa-phiprop.c: Likewise.
11362 * tree-ssa-sccvn.c: Likewise.
11363 * tree-ssa-ter.c: Likewise.
11364 * tree-ssa-threadupdate.c: Likewise.
11365 * tree-ssa.c: Likewise.
11366 * tree-vect-analyze.c: Likewise.
11367 * tree-vect-transform.c: Likewise.
11368 * tree-vectorizer.c: Likewise.
11369 * tree-vn.c: Likewise.
11370 * tree-vrp.c: Likewise.
11371 * tree.c: Likewise.
11372 * tree.def: Likewise.
11373 * tree.h: Likewise.
11374 * unwind-dw2-fde.c: Likewise.
11375 * unwind.inc: Likewise.
11376 * value-prof.c: Likewise.
11377 * vmsdbgout.c: Likewise.
11379 2008-06-05 David Edelsohn <edelsohn@gnu.org>
11381 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11382 always place FP constants in the TOC for TARGET_POWERPC64.
11383 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11385 2008-06-05 Joseph Myers <joseph@codesourcery.com>
11387 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11388 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11389 enable for TARGET_E500_DOUBLE.
11390 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11391 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11392 floating-point modes like integer modes for E500 double.
11393 (rs6000_legitimate_offset_address_p): Likewise.
11394 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
11395 addressing for DDmode for E500 double.
11396 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11397 modes as using 64-bits of registers for E500 double.
11398 (spe_build_register_parallel): Do not handle DDmode or TDmode.
11399 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11400 specially for E500 double.
11401 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11402 TDmode for E500 double.
11403 (rs6000_gimplify_va_arg): Only handle SDmode in registers
11404 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11405 (rs6000_split_multireg_move): Do not handle TDmode specially for
11407 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11408 using 64-bit registers for E500 double.
11409 (emit_frame_save): Do not handle DDmode specially for E500 double.
11410 (gen_frame_mem_offset): Likewise.
11411 (rs6000_function_value): Do not call spe_build_register_parallel
11412 for DDmode or TDmode.
11413 (rs6000_libcall_value): Likewise.
11414 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11415 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11418 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
11420 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11423 2008-06-04 Junjie Gu <jgu@tensilica.com>
11425 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11426 comparison for frame pointers.
11428 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11431 * config/avr/avr.h (PUSH_ROUNDING): Remove.
11433 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
11436 * builtins.c (expand_builtin_signbit): Don't take lowpart when
11437 register is already smaller or equal to required mode.
11439 2008-06-04 Xinliang David Li <davidxl@google.com>
11441 * tree-call-cdce.c: New file.
11442 (cond_dead_built_in_calls): New static variable.
11443 (input_domain): New struct.
11444 (check_pow): New function.
11445 (check_builtin_call): Ditto.
11446 (check_target_format): Ditto.
11447 (is_call_dce_candidate): Ditto.
11448 (gen_one_condition): Ditto.
11449 (gen_conditions_for_domain): Ditto.
11450 (get_domain): Ditto.
11451 (gen_conditions_for_pow_cst_base): Ditto.
11452 (gen_conditions_for_pow_int_base): Ditto.
11453 (gen_conditions_for_pow): Ditto.
11454 (get_no_error_domain): Ditto.
11455 (gen_shrink_wrap_conditions): Ditto.
11456 (shrink_wrap_one_built_in_call): Ditto.
11457 (shink_wrap_conditional_dead_built_in_calls): Ditto.
11458 (tree_call_cdce): Ditto.
11459 (gate_call_cdce): Ditto.
11460 (pass_call_cdce): New gimple pass.
11461 * passes.c: (init_optimization_passes): New pass.
11462 * tree-pass.h: New pass declaration.
11463 * opts.c (decode_options): New flag setting.
11464 * common.opt: Add -ftree-builtin-call-dce flag.
11465 * Makefile.in: Add new source file.
11466 * tempvar.def: New tv_id.
11467 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11469 2008-06-04 Richard Guenther <rguenther@suse.de>
11471 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11472 (is_call_clobbered): Always check var_ann->call_clobbered.
11473 (mark_call_clobbered): Always set var_ann->call_clobbered.
11474 (clear_call_clobbered): Always clear var_ann->call_clobbered.
11475 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11476 (reset_alias_info): Clear call clobbering info on MTAGs and
11478 (set_pt_anything): Set pt_global_mem.
11479 (create_tag_raw): Adjust comment.
11480 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11482 2008-06-04 Joseph Myers <joseph@codesourcery.com>
11483 Maxim Kuvyrkov <maxim@codesourcery.com>
11485 * config/m68k/m68k.opt (mxgot): New option.
11486 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11487 (m68k_output_addr_const_extra): New.
11488 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11489 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11490 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11491 * doc/invoke.texi (M680x0 Options): Document -mxgot.
11493 2008-06-04 Richard Guenther <rguenther@suse.de>
11495 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11496 negative or non-representable offsets.
11498 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
11500 * config/i386/i386.c (ix86_gen_leave): New.
11501 (ix86_gen_pop1): Likewise.
11502 (ix86_gen_add3): Likewise.
11503 (ix86_gen_sub3): Likewise.
11504 (ix86_gen_sub3_carry): Likewise.
11505 (ix86_gen_one_cmpl2): Likewise.
11506 (ix86_gen_monitor): Likewise.
11507 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11508 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11509 ix86_gen_one_cmpl2 and ix86_gen_monitor.
11510 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11511 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11512 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11513 (ix86_expand_epilogue): Updated.
11514 (print_operand): Handle integer register operand for 'z'.
11515 (ix86_expand_strlensi_unroll_1): Likewise.
11516 (ix86_expand_strlen): Likewise.
11517 (ix86_expand_builtin): Likewise.
11518 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11519 mov{q}/mov{l} and add{q}/add{l}.
11521 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11523 * config/i386/i386.md (P): New mode iterator.
11524 (SFmode push_operand splitter): Macroize DImode and SImode pushes
11525 using P mode iterator.
11526 (DFmode push_operand splitter): Ditto.
11527 (XFmode push_operand splitter): Ditto.
11528 (DFmode float_extend SFmode push_operand splitter): Ditto.
11529 (XFmode float_extend SFmode push_operand splitter): Do not generate
11530 SImode pushes for 64bit target. Macroize Dimode and SImode
11531 pushes using P mode iterator.
11532 (XFmode float_extend DFmode push_operand splitter): Ditto.
11534 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11536 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11537 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11538 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11539 return type to int.
11540 (ix86_call_abi_override): Remove check for call_used_regs.
11542 2008-06-03 Richard Guenther <rguenther@suse.de>
11544 * tree-ssa-structalias.c (find_func_aliases): Add constraints
11545 for the lhs of calls if the return type contains pointers.
11547 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
11549 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11550 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11551 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11552 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11553 of cfun and DEFAULT_ABI to deceide abi mode.
11554 (DEFAULT_ABI): New.
11555 (REG_PARM_STACK_SPACE): Removed.
11556 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11557 (STACK_BOUNDARY): Use default target to deceide stack boundary.
11558 * config/i386/i386-protos.h (ix86_cfun_abi): New.
11559 (ix86_function_abi): Likewise.
11560 (ix86_function_type_abi): Likewise.
11561 (ix86_call_abi_override): Likewise.
11562 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11563 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11564 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11565 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11567 (X86_64_REGPARM_MAX): New.
11568 (X86_64_SSE_REGPARM_MAX): New.
11569 (X64_REGPARM_MAX): New.
11570 (X64_SSE_REGPARM_MAX): New.
11571 (X86_32_REGPARM_MAX): New.
11572 (X86_32_SSE_REGPARM_MAX): New.
11573 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11574 (ix86_function_regparm): Handle user calling abi.
11575 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11576 by DEFAULT_ABI versus SYSV_ABI check.
11577 (ix86_reg_parm_stack_space): New.
11578 (ix86_function_type_abi): New.
11579 (ix86_call_abi_override): New.
11580 (ix86_function_abi): New.
11581 (ix86_cfun_abi): New.
11582 (init_cumulative_args): Call abi specific initialization.
11583 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11584 (function_arg_64): Extend SSE_REGPARM_MAX check.
11585 (function_arg (): Remove TARGET_64BIT_MS_ABI.
11586 (ix86_pass_by_reference): Likewise.
11587 (ix86_function_value_regno_p): Likewise.
11588 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11589 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11590 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11591 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11592 (setup_incoming_varargs_64): Adjust regparm for call abi.
11593 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11594 (ix86_va_start): Likewise.
11595 (ix86_gimplify_va_arg): Likewise.
11596 (ix86_expand_prologue): Likewise.
11597 (output_pic_addr_const): Likewise.
11598 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11599 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11600 (x86_output_mi_thunk): Likewise.
11601 (x86_function_profiler): Likewise.
11602 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11603 (SYSV_ABI, MS_ABI): New constants.
11604 (DEFAULT_ABI): New.
11605 (init_regs): Add prototype of function in regclass.c file.
11606 (OVERRIDE_ABI_FORMAT): New.
11607 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11608 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11609 (OUTGOING_REG_PARM_STACK_SPACE): New.
11610 (ix86_reg_parm_stack_space): New prototype.
11611 (CUMULATIVE_ARGS): Add call_abi member.
11612 (machine_function): Add call_abi member.
11613 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11614 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11616 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
11619 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11620 (avr_builtin_setjmp_frame_value): New function.
11621 * config/avr/avr.md (nonlocal_goto_receiver): Define.
11622 (nonlocal_goto): Define.
11624 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
11626 * config/mips/mips.c (mips_emit_loadgp): Return early if
11627 there is nothing do to, otherwise emit a blockage if
11628 !TARGET_EXPLICIT_RELOCS || crtl->profile.
11629 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11631 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11633 * configure.ac: Drop unneeded backslash ending up in config.in.
11634 * acinclude.m4: Likewise.
11635 * config.in: Regenerate.
11637 2008-05-26 Jan Hubicka <jh@suse.cz>
11639 * predict.c (maybe_hot_frequency_p): Break out of...
11640 (maybe_hot_bb_p): ... here.
11641 (maybe_hot_edge_p): New.
11642 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11643 * basic-block.h (maybe_hot_edge_p): Declare.
11645 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
11647 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11648 (*cmpfp_<mode>_cc): Ditto.
11649 (*fp_jcc_8<mode>_387): Ditto.
11650 (*fop_<MODEF:mode>_2_i387): Ditto.
11651 (*fop_<MODEF:mode>_3_i387): Ditto.
11652 (*fop_xf_2_i387): Ditto.
11653 (*fop_xf_3_i387): Ditto.
11655 2008-06-02 Tomas Bily <tbily@suse.cz>
11657 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11659 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11661 * config/mips/mips.c (mips_valid_offset_p): New function.
11662 (mips_valid_lo_sum_p): Likewise.
11663 (mips_classify_address): Use them.
11664 (mips_force_address): New function.
11665 (mips_legitimize_address): Use it.
11666 * config/mips/mips.md (MOVE128): New mode iterator.
11667 (movtf): Require TARGET_64BIT. Remove empty strings.
11668 (*movtf_internal): Rename to...
11669 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
11670 of "R" and use {,fp}{load,store} attributes instead of "multi".
11671 Use a separate define_split.
11672 (*movtf_mips16): New pattern.
11674 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11676 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11677 * config/mips/mips.c (mips_expand_before_return): New function.
11678 (mips_expand_epilogue): Call it.
11679 * config/mips/mips.md (return): Turn into a define_expand.
11680 (*return): New insn.
11682 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
11684 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11685 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11686 functions. Do not emit uses and clobbers of CONCATs; individually
11687 use and clobber their operands.
11688 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11689 gen_clobber, emit_use and gen_use.
11690 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11691 (expand_builtin_return): Likewise.
11692 * cfgbuild.c (count_basic_blocks): Likewise.
11693 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11694 * explow.c (emit_stack_restore): Likewise.
11695 * expmed.c (extract_bit_field_1): Likewise.
11696 * expr.c (convert_move, emit_move_complex_parts): Likewise.
11697 (emit_move_multi_word, store_constructor): Likewise.
11698 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11699 (thread_prologue_and_epilogue_insns): Likewise.
11700 * lower-subreg.c (resolve_simple_move): Likewise.
11701 * optabs.c (widen_operand, expand_binop): Likewise.
11702 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11703 * reload.c (find_reloads): Likewise.
11704 * reload1.c (eliminate_regs_in_insn): Likewise.
11705 * stmt.c (expand_nl_goto_receiver): Likewise.
11706 * config/alpha/alpha.md (builtin_longjmp): Likewise.
11707 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11708 * config/arm/arm.c (arm_load_pic_register): Likewise.
11709 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11710 * config/arm/arm.md (untyped_return): Likewise.
11711 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11712 * config/avr/avr.c (expand_prologue): Likewise.
11713 * config/bfin/bfin.c (do_unlink): Likewise.
11714 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11715 * config/cris/cris.c (cris_expand_prologue): Likewise.
11716 * config/darwin.c (machopic_indirect_data_reference): Likewise.
11717 (machopic_legitimize_pic_address): Likewise.
11718 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11719 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11720 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11721 (ix86_expand_convert_uns_didf_sse): Likewise.
11722 (ix86_expand_vector_init_general): Likewise.
11723 * config/ia64/ia64.md (eh_epilogue): Likewise.
11724 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11725 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11726 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11727 (config/iq2000/iq2000.c): Likewise.
11728 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11729 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11730 (builtin_longjmp): Likewise.
11731 * config/mn10300/mn10300.md (call, call_value): Likewise.
11732 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11733 * config/pdp11/pdp11.md (abshi2): Likewise.
11734 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11735 * config/s390/s390.c (s390_emit_prologue): Likewise.
11736 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11737 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11738 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11739 * config/sh/sh.c (prepare_move_operands): Likewise.
11740 (output_stack_adjust, sh_expand_epilogue): Likewise.
11741 (sh_set_return_address, sh_expand_t_scc): Likewise.
11742 * config/sparc/sparc.c (load_pic_register): Likewise.
11743 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11744 * config/spu/spu.c (spu_expand_epilogue): Likewise.
11745 * config/v850/v850.c (expand_epilogue): Likewise.
11747 2008-05-31 Anatoly Sokolov <aesok@post.ru>
11749 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11750 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11751 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11752 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11753 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11754 stack pointer register.
11755 (output_movhi): Remove code for interrupt specific writing to the
11756 stack pointer register.
11758 2008-05-31 Richard Guenther <rguenther@suse.de>
11760 PR tree-optimization/34244
11761 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11762 (tree_expr_nonzero_warnv_p): Likewise.
11763 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11764 ssa_name_nonnegative_p.
11765 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11766 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11767 not tree_expr_nonzero_warnv_p.
11769 PR tree-optimization/36262
11771 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
11773 PR tree-optimization/34244
11774 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11775 (record_numbers_of_iterations): New function.
11776 (execute_vrp): Cache the numbers of iterations of loops.
11777 * tree-scalar-evolution.c (scev_reset_except_niters):
11779 (scev_reset): Use scev_reset_except_niters.
11780 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11782 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
11784 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11785 __WORKAROUND_RETS when appropriate.
11787 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
11789 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11790 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11792 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11793 *fop_df_comm_sse insn patterns using MODEF mode iterator.
11794 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11795 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11796 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11797 *fop_df_1_mixed insn patterns using MODEF mode iterator.
11798 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11799 *fop_df_1_sse insn patterns using MODEF mode iterator.
11800 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11801 *fop_df_1_i387 insn patterns using MODEF mode iterator.
11802 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11803 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11804 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11805 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11806 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11807 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11808 (*fop_xf_4_i387): Use <MODE> for mode attribute.
11809 (*fop_xf_5_i387): Ditto.
11810 (*fop_xf_6_i387): Ditto.
11812 2008-05-30 Richard Guenther <rguenther@suse.de>
11814 * builtins.c (build_string_literal): Avoid generating
11815 a non-gimple_val result.
11817 2008-05-30 DJ Delorie <dj@redhat.com>
11819 * exec-tool.in: Use an environment variable (private) instead of a
11820 file (shared) as a semaphore, so as to not break parallel builds.
11822 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
11824 * optabs.c (maybe_encapsulate_block): Remove.
11825 (emit_libcall_block): Adjust accordingly.
11826 * optabs.h (maybe_encapsulate_block): Remove prototype.
11828 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11829 Don't use maybe_encapsulate_block.
11831 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
11833 * config/rs6000/rs6000.c (rs6000_legitimize_address,
11834 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11835 rtx is a SYMBOL_REF before calling get_pool_constant.
11837 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
11839 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11841 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
11843 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11844 rather than OS names to choose INO_T_EQ definition.
11845 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11846 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11848 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
11851 * config/darwin-f.c: New.
11852 * config/t-darwin: Added rule to build darwin-f.o.
11853 * config.gcc: Defined new variable, fortran_target_objs.
11854 (*-*-darwin*): Set fortran_target_objs.
11855 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11856 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11857 * configure: Regenerated.
11859 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
11862 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11863 canonical type if needed.
11865 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
11867 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11869 2008-05-29 Richard Guenther <rguenther@suse.de>
11871 PR tree-optimization/36343
11872 PR tree-optimization/36346
11873 PR tree-optimization/36347
11874 * tree-flow.h (clobber_what_p_points_to): Declare.
11875 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11876 pointed-to variable is dereferenced is irrelevant to whether
11877 the pointer can access the pointed-to variable.
11878 (clobber_what_p_points_to): New function.
11879 * tree-ssa-alias.c (set_initial_properties): Use it.
11880 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11881 call clobber check for NMTs.
11883 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
11885 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11886 for printing gcov_type.
11888 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
11890 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11891 and the eh region information.
11892 * value-prof.c (gimple_move_stmt_histograms): New function.
11893 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11895 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
11897 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11899 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
11901 * value-prof.c (tree_ic_transform): Print counts.
11902 * tree-profile.c (tree_gen_ic_func_profiler):
11903 Clear __gcov_indreict_call_callee variable to avoid misattribution
11906 2008-05-28 Rafael Espindola <espindola@google.com>
11908 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11911 2008-05-28 Richard Guenther <rguenther@suse.de>
11913 PR tree-optimization/36339
11914 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11915 and clobbering code out of the loop.
11917 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
11919 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11922 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11923 s390_contiguous_bitmask_p, s390_symref_operand_p,
11924 s390_check_symref_alignment, s390_reload_larl_operand,
11925 s390_reload_symref_address): New functions.
11926 (s390_branch_condition_mnemonic): Support compare and branch
11928 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11929 and 'W' constraints.
11930 (s390_secondary_reload): Add secondary reloads for unaligned
11931 symbol refs or symbol refs to floating point or QI/TI mode
11933 (legitimate_address_p): Accept symbol references as addresses.
11934 (s390_expand_insv): Use rotate and insert selected bits
11935 instruction for insv when building for z10.
11936 (print_operand_address): Handle symbol ref addresses.
11937 (print_operand): Output modifier 'c' added for signed byte values.
11938 (s390_encode_section_info): Mark symbol refs with
11939 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11941 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11942 (length attribute): RRF, RRR have 4 byte length.
11943 (FPALL, INTALL): New mode iterators added.
11944 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11945 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11946 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11947 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11948 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11949 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11950 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11951 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11953 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11954 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11955 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11956 reload<INTALL:mode><P:mode>_toreg_z10,
11957 reload<FPALL:mode><P:mode>_tomem_z10,
11958 reload<FPALL:mode><P:mode>_toreg_z10,
11959 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11960 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11961 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11962 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11964 (movmem, clrmem, cmpmem): New splitters added.
11966 * config/s390/predicates.md (larl_operand): Use
11967 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11968 SYMBOL_REF_ALIGN1_P.
11969 (s390_signed_integer_comparison,
11970 s390_unsigned_integer_comparison): New predicates.
11972 * config/s390/s390-protos.h (s390_check_symref_alignment,
11973 s390_contiguous_bitmask_p, s390_reload_larl_operand,
11974 s390_reload_symref_address,
11975 s390_compare_and_branch_condition_mask): Prototypes added.
11977 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11978 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11979 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11981 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
11983 * config/s390/s390.c (z10_cost): New cost function for z10.
11984 (s390_handle_arch_option, override_options): Support -march=z10 switch.
11985 (s390_issue_rate): Adjust issue rate for z10.
11986 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11987 (processor_flags): Add PF_Z10.
11988 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11989 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11990 * gcc/config.gcc: Add z10.
11992 2008-05-28 Richard Guenther <rguenther@suse.de>
11994 PR tree-optimization/36291
11995 * tree-flow. h (struct gimple_df): Remove var_anns member.
11996 * tree-flow-inline.h (gimple_var_anns): Remove.
11997 (var_ann): Simplify.
11998 * tree-dfa.c (create_var_ann): Simplify.
11999 (remove_referenced_var): Clear alias info from var_anns of globals.
12000 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12001 (delete_tree_ssa): Clear alias info from var_anns of globals.
12002 Do not free var_anns.
12003 (var_ann_eq): Remove.
12004 (var_ann_hash): Likewise.
12006 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
12008 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12009 and loongson2f entries.
12010 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12011 * config/mips/mips.h (processor_type): Add Loongson-2E
12012 and Loongson-2F entries.
12013 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12014 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12015 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12016 * doc/invoke.texi (MIPS Options): Document loongson2e
12017 and loongson2f processor names.
12019 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
12023 * config/i386/i386.c (ix86_function_arg_boundary): Use
12024 alignment of canonical type.
12025 (ix86_expand_vector_move): Check unaligned memory access for
12028 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
12030 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12031 Moved to the front of file.
12033 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
12034 H.J. Lu <hongjiu.lu@intel.com>
12036 * dwarf2out.c (current_fde): New.
12038 (lookup_cfa:): Likewise.
12039 (dwarf2out_end_epilogue): Likewise.
12040 (dwarf2out_note_section_used): Likewise.
12042 2008-05-27 Michael Matz <matz@suse.de>
12045 * c.opt (Wenum-compare): New warning option.
12046 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
12048 2008-05-27 Michael Matz <matz@suse.de>
12050 PR middle-end/36326
12051 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12053 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12054 into memory as tail calls.
12056 2008-05-27 Richard Guenther <rguenther@suse.de>
12058 PR tree-optimization/36339
12059 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12060 pointers cause all addressable variables to be call clobbered.
12062 2008-05-27 Richard Guenther <rguenther@suse.de>
12064 PR tree-optimization/36245
12065 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12067 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12069 * config/s390/s390.md: Replace all occurences of the 'm'
12070 constraint with 'RT'.
12072 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12074 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12076 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12078 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12079 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12080 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12082 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12084 * reload.c: (find_reloads): Skip alternatives according to the
12085 "enabled" attribute. Constify the constraint variable.
12086 * recog.c (get_attr_enabled): Add default implementation.
12087 (extract_insn): Set the alternative_enabled_p array
12088 in the recog_data struct.
12089 (preprocess_constraints, constrain_operands): Skip
12090 alternatives according to the "enabled" attribute
12091 * recog.h (struct recog_data): New field alternative_enabled_p.
12092 (skip_alternative): New inline function.
12093 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12094 (record_reg_classes): Skip alternative according to the
12095 "enabled" attribute.
12097 * doc/md.texi: Add documention for the "enabled" attribute.
12099 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
12101 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12102 * postreload.c (reload_cse_simplify_operands): Replace 'm'
12103 constraint with TARGET_MEM_CONSTRAINT.
12104 * recog.c (asm_operand_ok, preprocess_constraints,
12105 constrain_operands): Likewise.
12106 * regclass.c (record_reg_classes): Likewise.
12107 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12108 * reload1.c (maybe_fix_stack_asms): Likewise.
12109 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12110 * recog.h: Adjust comment.
12111 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12112 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12113 * doc/md.texi: Add a note to description of 'm' constraint.
12114 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12116 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
12118 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12119 that the bitfield is of integral type before testing its precision.
12121 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12122 Sa Liu <saliu@de.ibm.com>
12124 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12125 __modti3, __udivti3, __umodti3 and __udivmodti4.
12126 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12127 that implement TImode mul and div functions.
12128 * config/spu/multi3.c: New. Implement __multi3.
12129 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12130 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12133 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
12135 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12136 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12137 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12138 tls_sysv_suffix): New mode and mode attribute iterators.
12139 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12140 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12141 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12142 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12143 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12146 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
12148 PR tree-optimization/36329
12149 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12150 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12151 * cgraphbuild.c (initialize_inline_failed): Use the latter
12152 macro in lieu of the former.
12153 * ipa-inline.c (cgraph_mark_inline): Likewise.
12154 (cgraph_decide_inlining_of_small_function): Likewise.
12155 (cgraph_decide_inlining): Likewise.
12156 (cgraph_decide_inlining_incrementally): Likewise.
12158 2008-05-26 Tristan Gingold <gingold@adacore.com>
12159 Anatoly Sokolov <aesok@post.ru>
12161 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12162 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12163 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12164 optimization for 'avr6' architecture.
12166 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
12169 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12171 2008-05-26 Richard Guenther <rguenther@suse.de>
12173 * tree-ssa-sccvn.c (expr_has_constants): Declare.
12174 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12176 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
12178 PR middle-end/36253
12179 * caller-save.c (insert_restore): Verify alignment of spill space.
12180 (insert_save): Likewise.
12181 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12182 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12183 (STACK_SLOT_ALIGNMENT): Likewise.
12184 * function.c (LOCAL_ALIGNMENT): Removed.
12185 (get_stack_local_alignment): New.
12186 (assign_stack_local): Use it. Set alignment on stack slot.
12187 (assign_stack_temp_for_type): Use get_stack_local_alignment.
12188 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12189 (STACK_SLOT_ALIGNMENT): New.
12190 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12191 stack slot in XFmode.
12193 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12195 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
12198 * config/i386/i386.md (allocate_stack_worker_64): Make sure
12199 argument operand in rax isn't removed.
12201 2008-05-26 Richard Guenther <rguenther@suse.de>
12203 PR middle-end/36300
12204 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12205 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
12207 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12210 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12212 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
12214 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12215 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12217 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
12219 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12220 build a trampoline if we don't want one.
12221 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12222 return zero for nested functions if we don't want a trampoline.
12224 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12226 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12228 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
12231 * c.opt: Removed undocumented option '-lang-fortran'.
12232 * c-common.h: Removed global variable 'lang_fortran'.
12233 * c-opts.c (c_common_handle_option): Removed code to handle
12234 option '-lang-fortran'. Updated includes.
12235 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12236 definition of '__GFORTRAN__'.
12237 (define__GNUC__): Reimplemented to use BASEVER and
12238 cpp_define_formatted.
12239 (builtin_define_with_value_n): Removed.
12240 * c-incpath.h: Renamed to ...
12241 * incpath.h: ... this.
12242 * c-incpath.c: Renamed to ...
12243 * incpath.c: ... this. Updated includes.
12244 * fix-header.c: Updated includes.
12245 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12246 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12247 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12249 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
12251 * tree.h: Update the table of flags used on tree nodes.
12252 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12253 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12254 (FORCED_LABEL): Add access check.
12255 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12256 (ASM_INPUT_P): Likewise.
12257 (ASM_VOLATILE_P): Likewise.
12258 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12259 (OMP_SECTION_LAST): Access private_flag directly.
12260 (OMP_RETURN_NOWAIT): Likewise.
12261 (OMP_PARALLEL_COMBINED): Likewise.
12262 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12263 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12264 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12265 deprecated_flag directly.
12267 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
12269 * final.c (frame_pointer_needed): Removed.
12270 * flags.h (frame_pointer_needed): Likewise.
12272 * function.h (rtl_data): Add frame_pointer_needed.
12273 (frame_pointer_needed): New.
12275 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
12277 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12279 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
12281 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12284 2008-05-25 Alan Modra <amodra@bigpond.net.au>
12286 * c-common.c (strip_array_types): Move function to..
12288 (get_inner_array_type): Delete.
12289 * c-common.h (strip_array_types): Move declaration to..
12291 (get_inner_array_type): Delete.
12292 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12293 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12294 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12295 * config/pa/pa.c (emit_move_sequence): Likewise.
12297 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
12299 * config/i386/i386.md (*sse_prologue_save_insn): Set length
12302 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
12304 * function.c: Include target hook for nonlocal_goto frame value.
12306 2008-05-24 Richard Guenther <rguenther@suse.de>
12308 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12309 variable can be only accessed through a pointer or a union.
12311 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12313 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12314 * doc/extend.texi: Likewise.
12316 2008-05-23 DJ Delorie <dj@redhat.com>
12318 * config/m32c/jump.md (untyped_call): Add.
12320 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12321 for A24 to PSImode.
12322 (m32c_address_cost): Detail costs for indirect offsets.
12324 2008-05-23 Rafael Espindola <espindola@google.com>
12326 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12327 if a node is a SUBREG.
12328 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12331 2008-05-23 Paul Brook <paul@codesourcery.com>
12332 Carlos O'Donell <carlos@codesourcery.com>
12334 * doc/extend.texi: Clarify use of __attribute__((naked)).
12335 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12336 * target.h (gcc_target): Add allocate_stack_slots_for_args.
12337 * function.c (use_register_for_decl): Use
12338 targetm.calls.allocate_stack_slots_for_args.
12339 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12340 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12341 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12343 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
12345 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12347 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
12349 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12350 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12351 is only rounded once.
12353 2008-05-23 Richard Guenther <rguenther@suse.de>
12355 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12357 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
12358 Jakub Jelinek <jakub@redhat.com>
12361 * configure.ac: Handle --enable-cld.
12362 * configure: Regenerated.
12363 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12364 * config/i386/i386.h (struct machine_function): Add needs_cld field.
12365 (ix86_current_function_needs_cld): New define.
12366 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12367 (cld): New isns pattern.
12368 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12369 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12370 * config/i386/i386.opt (mcld): New option.
12371 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12372 TARGET_CLD and ix86_current_function_needs_cld.
12373 (override_options): Use -mcld by default for 32-bit code if
12376 * doc/install.texi (Options specification): Document --enable-cld.
12377 * doc/invoke.texi (Machine Dependent Options)
12378 [i386 and x86-64 Options]: Add -mcld option.
12379 (Intel 386 and AMD x86-64 Options): Document -mcld option.
12381 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
12382 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12383 (return_in_memory_64): Likewise.
12384 (return_in_memory_ms_64): Likewise.
12386 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12388 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12389 * builtins.c (fold_builtin_fpclassify): New.
12390 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12391 * builtins.def (BUILT_IN_FPCLASSIFY): New.
12392 * c-common.c (handle_type_generic_attribute): Adjust to accept
12393 fixed arguments before an elipsis.
12394 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12395 * doc/extend.texi: Document __builtin_fpclassify.
12397 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
12399 * omp-low.c (gate_expand_omp_ssa): Remove.
12400 (pass_expand_omp_ssa): Remove.
12401 (gate_expand_omp): Do not check for flag_openmp_ssa.
12402 * common.opt (-fopenmp-ssa): Remove.
12403 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12405 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
12407 * config/sh/sh.opt (mfixed-range): New option.
12408 * config/sh/sh-protos.h (sh_fix_range): Declare.
12409 * config/sh/sh.c (sh_fix_range): New function.
12410 * config/sh/sh.h (sh_fixed_range_str): Declare.
12411 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12413 * doc/invoke.texi (SH Options): Document -mfixed-range.
12415 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
12417 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12418 it before the redeclaration.
12420 2008-05-22 Anatoly Sokolov <aesok@post.ru>
12422 * config/avr/avr.c (get_sequence_length): Add new function.
12423 (expand_prologue, expand_epilogue): Remove duplicate code.
12425 2008-05-22 Rafael Espindola <espindola@google.com>
12427 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12430 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
12432 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12433 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12435 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12436 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12437 (vect_update_misalignment_for_peel): Likewise.
12438 (vector_alignment_reachable_p): Likewise.
12439 * tree-vect-transform.c (vectorizable_load): Likewise.
12440 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12441 (get_vectype_for_scalar_type): Pass mode of scalar_type
12442 to UNITS_PER_SIMD_WORD.
12444 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12445 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12446 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12447 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12448 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12450 2008-05-22 Ira Rosen <irar@il.ibm.com>
12452 PR tree-optimization/36293
12453 * tree-vect-transform.c (vect_transform_strided_load): Don't check
12454 if the first load must be skipped because of a gap.
12456 2008-05-22 Richard Guenther <rguenther@suse.de>
12458 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
12459 more cases of offset disambiguation that is possible if
12460 strict-aliasing rules apply.
12461 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12462 for basic offset and type-based disambiguation.
12464 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12466 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12467 ix86_expand_vector_set on V16QImode for SSE4.1.
12469 2008-05-21 Tom Tromey <tromey@redhat.com>
12471 * c.opt (Wimport): Mark as undocumented.
12472 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12474 (Warning Options): Likewise.
12475 * doc/cppopts.texi: Don't mention -Wimport.
12477 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
12479 PR tree-optimization/36287
12480 PR tree-optimization/36286
12481 * lambda-code.c (build_access_matrix): Do not use the loop->num
12482 for computing the number of induction variables: use the loop depth
12485 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
12488 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12489 option -f(no-)leading-underscore.
12491 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12493 * config/i386/i386.c (ix86_expand_vector_init_general): Use
12494 GET_MODE_NUNITS (mode).
12496 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
12498 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12499 (-mmulhw): Add 464 to description.
12500 (-mdlmzb): Likewise.
12501 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12502 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12504 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12505 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12506 * config/rs6000/rs6000.md: Update comments for 464.
12508 2008-05-21 Janis Johnson <janis187@us.ibm.com>
12510 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12512 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12514 * config/i386/sse.md (vec_extractv4sf): Removed.
12515 (vec_extractv2df): Likewise.
12516 (vec_extractv2di): Likewise.
12517 (vec_extractv4si): Likewise.
12518 (vec_extractv8hi): Likewise.
12519 (vec_extractv16qi): Likewise.
12520 (vec_extract<mode>): New.
12522 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12524 * config/i386/sse.md (vec_setv4sf): Removed.
12525 (vec_setv2df): Likewise.
12526 (vec_setv2di): Likewise.
12527 (vec_setv4si): Likewise.
12528 (vec_setv8hi): Likewise.
12529 (vec_setv16qi): Likewise.
12530 (vec_set<mode>): New.
12532 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12534 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12535 goto for vec_concat and vec_interleave.
12537 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
12539 * config/i386/sse.md (vec_initv4sf): Removed.
12540 (vec_initv2df): Likewise.
12541 (vec_initv2di): Likewise.
12542 (vec_initv4si): Likewise.
12543 (vec_initv8hi): Likewise.
12544 (vec_initv16qi): Likewise.
12545 (vec_init<mode>): New.
12547 2008-05-21 Joseph Myers <joseph@codesourcery.com>
12549 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12551 2008-05-21 Tom Tromey <tromey@redhat.com>
12553 * ggc-zone.c (lookup_page_table_if_allocated): New function.
12554 (zone_find_object_offset): Likewise.
12555 (gt_ggc_m_S): Likewise.
12556 (highest_bit): Likewise.
12557 * ggc-page.c (gt_ggc_m_S): New function.
12558 * stringpool.c (string_stack): Remove.
12559 (init_stringpool): Update.
12560 (ggc_alloc_string): Use ggc_alloc.
12561 (maybe_delete_ident): New function.
12562 (ggc_purge_stringpool): Likewise.
12563 (gt_ggc_m_S): Remove.
12564 * ggc-common.c (ggc_protect_identifiers): New global.
12565 (ggc_mark_roots): Call ggc_purge_stringpool. Use
12566 ggc_protect_identifiers.
12567 * ggc.h (ggc_protect_identifiers): Declare.
12568 (gt_ggc_m_S): Update.
12569 (ggc_purge_stringpool): Declare.
12570 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12571 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12573 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12575 2008-05-21 David S. Miller <davem@davemloft.net>
12577 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12580 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
12582 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12585 2008-05-20 David Daney <ddaney@avtrex.com>
12587 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12588 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12589 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12590 UNSPEC_UPDATE_GOT_VERSION): Renumber.
12591 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12592 (atomic_hiqi_op): New define_code_iterator.
12593 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12594 mips_expand_compare_and_swap_12.
12595 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12596 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
12597 (sync_<optab><mode>, sync_old_<optab><mode>,
12598 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12599 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12600 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12601 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12602 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12603 (test_and_set_12): New insn.
12604 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12605 sync_new_<optab><mode>, sync_old_nand<mode>,
12606 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
12607 clobber to operand 0 for SI and DI mode insns.
12608 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12609 mips_gen_fn_4): New typedefs.
12610 (mips_gen_fn_ptrs): Define new union type.
12611 (mips_expand_compare_and_swap_12): Remove declaration.
12612 (mips_expand_atomic_qihi): Declare function.
12613 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12614 (mips_expand_atomic_qihi): ... this. Use new generator function
12616 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12617 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12618 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12619 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12620 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12621 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12622 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12623 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12624 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12625 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12628 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
12630 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12633 2008-05-20 Anatoly Sokolov <aesok@post.ru>
12635 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12636 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12637 (avr_attribute_table): Add 'OS_main' function attribute.
12638 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12639 functions with 'OS_main' attribute.
12641 2008-05-20 Richard Guenther <rguenther@suse.de>
12643 PR tree-optimization/35204
12644 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12645 helper, split out from ...
12646 (DFS): ... here. Make the DFS walk non-recursive.
12648 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
12649 Jan Sjodin <jan.sjodin@amd.com>
12651 PR tree-optimization/36181
12652 * tree-parloops.c (loop_has_vector_phi_nodes): New.
12653 (parallelize_loops): Don't parallelize when the loop has vector
12656 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12657 Sebastian Pop <sebastian.pop@amd.com>
12659 * tree-loop-linear.c (gather_interchange_stats): Look in the access
12660 matrix, and never look at the tree representation of the memory
12662 (linear_transform_loops): Computes parameters and access matrices.
12663 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12665 (access_matrix_get_index_for_parameter): New.
12666 * tree-data-ref.h (struct access_matrix): New.
12667 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12668 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12669 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12670 am_vector_index_for_loop): New.
12671 (struct data_reference): Add field access_matrix.
12672 (DR_ACCESS_MATRIX): New.
12673 (compute_data_dependences_for_loop): Update declaration.
12674 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12675 * lambda.h (lambda_vector_vec_p): Declared.
12676 * lambda-code.c: Depend on pointer-set.h.
12677 (lambda_collect_parameters_from_af, lambda_collect_parameters,
12678 av_for_af_base, av_for_af, build_access_matrix,
12679 lambda_compute_access_matrices): New.
12680 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12682 2008-05-20 Joseph Myers <joseph@codesourcery.com>
12684 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12685 $SOURCEDIR/include.
12687 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12688 Sebastian Pop <sebastian.pop@amd.com>
12690 PR tree-optimization/36206
12691 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12693 (instantiate_scev_1): Rename flags to fold_conversions.
12694 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12695 outeside instantiation_loop.
12696 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12697 (evolution_function_is_affine_or_constant_p): Removed.
12698 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12700 (analyze_siv_subscript): Pass in the loop nest number.
12701 Call evolution_function_is_affine_in_loop instead of
12702 evolution_function_is_affine_p.
12703 (analyze_overlapping_iterations): Pass in the loop nest number.
12705 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
12706 Sebastian Pop <sebastian.pop@amd.com>
12708 PR tree-optimization/36206
12709 * tree-chrec.h (chrec_fold_op): New.
12710 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12713 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
12715 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12717 (remove_duplicates): Do not set inode on non-inode systems.
12720 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
12722 * config.gcc (tm_file): Update comments about relative pathnames.
12724 2008-05-20 Richard Guenther <rguenther@suse.de>
12726 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12727 * tree-ssa-sccvn.c (process_scc): Likewise.
12728 * tree-ssa-sink.c (execute_sink_code): Likewise.
12729 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12730 * tree-vrp.c (process_assert_insertions): Likewise.
12731 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12732 (perform_tree_ssa_dce): Likewise.
12733 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12734 (dump_dominator_optimization_stats): Likewise.
12735 * tree-vectorizer.c (vectorize_loops): Likewise.
12737 2008-05-20 Richard Guenther <rguenther@suse.de>
12739 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12741 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
12743 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12744 (ix86_i386elf_return_in_memory): Likewise.
12745 (ix86_i386interix_return_in_memory): Likewise.
12746 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12747 (SUBTARGET_RETURN_IN_MEMORY): New.
12748 * config/i386/i386elf.h: Likewise.
12749 * config/i386/ptx4-i.h: Likewise.
12750 * config/i386/sol2-10.h: Likewise.
12751 * config/i386/sysv4.h: Likewise.
12752 * config/i386/vx-common.h: Likewise.
12753 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12754 * config/i386/i386.c (ix86_return_in_memory): Made static and
12755 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12756 (ix86_i386elf_return_in_memory): Removed.
12757 (ix86_i386interix_return_in_memory): Removed.
12758 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12759 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12761 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
12763 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12765 2008-05-19 Xinliang David Li <davidxl@google.com>
12767 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12769 * common.opt: Ditto.
12770 * doc/invoke.texi: Ditto.
12772 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
12774 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12775 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12777 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
12779 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12780 sizes of operand array from 8/4 to 4/2.
12781 (ix86_expand_vector_init_general): Change size of operand array
12782 from 32 to 16. Remove op0, op1 and half_mode.
12784 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
12786 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12787 (ix86_expand_vector_init_interleave): Likewise.
12788 (ix86_expand_vector_init_general): Use them. Assert
12789 word_mode == SImode when n_words == 4.
12791 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
12793 * config/i386/i386.c (ix86_secondary_reload): New static function.
12794 (TARGET_SECONDARY_RELOAD): New define.
12795 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12796 * config/i386/i386.md (reload_outqi): Remove.
12798 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12800 PR middle-end/35509
12801 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12802 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
12803 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12804 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12805 (fold_builtin_1): Likewise.
12806 * builtins.def (BUILT_IN_ISINF_SIGN): New.
12807 c-common.c (check_builtin_function_arguments): Handle
12808 BUILT_IN_ISINF_SIGN.
12809 * doc/extend.texi: Document __builtin_isinf_sign.
12810 * fold-const.c (operand_equal_p): Handle COND_EXPR.
12812 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
12814 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12815 EH cleanup at the end of the pass, search for those that have been
12816 turned into forwarder blocks and do the cleanup on their successor.
12818 2008-05-18 Richard Guenther <rguenther@suse.de>
12820 * tree-cfg.c (verify_gimple_expr): Allow conversions from
12821 pointers to sizetype and vice versa.
12823 2008-05-18 Xinliang David Li <davidxl@google.com>
12825 * gcc/tree-ssa-dce.c: Coding style fix.
12826 (check_pow): Documentation comment.
12827 (check_log): Documenation comment. Coding style fix.
12828 (is_unnecessary_except_errno_call): Ditto.
12829 (gen_conditions_for_pow): Ditto.
12830 (gen_conditions_for_log): Ditto.
12831 (gen_shrink_wrap_conditions): Ditto.
12832 (shrink_wrap_one_built_in_calls): Ditto.
12833 * gcc/doc/invoke.texi: Better documentation string.
12834 * ChangeLog: Fix wrong change log entries from
12835 May 17 checkin on function call DCE.
12837 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
12839 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12841 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
12843 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12844 * df-problems.c (simulation routines): Fixed block comment to
12845 properly say how to add forwards scanning functions.
12847 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
12849 * tree-inline.c (setup_one_parameter): Remove dead code.
12851 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
12853 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12854 a BIT_AND_EXPR only for an INTEGER_TYPE.
12856 2008-05-17 Xinliang David Li <davidxl@google.com>
12858 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12859 (check_pow, check_log, is_unnecessary_except_errno_call): New
12860 functions to check for eliminating math functions that are pure
12861 except for setting errno.
12862 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12863 general condition expressions for shrink-wrapping pow/log calls.
12864 (gen_shrink_wrap_conditions): Ditto.
12865 (shrink_wrap_one_built_in_call): Ditto.
12866 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12867 (mark_operand_necessary): If debugging, output if OP is necessary.
12868 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12870 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12872 * gcc/common.opt: New user flag -ftree-builtin-dce.
12873 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12875 2008-05-16 David S. Miller <davem@davemloft.net>
12877 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12878 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12880 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
12883 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12885 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12887 * ifcvt.c (dead_or_predicable): Rename
12888 df_simulate_one_insn_backwards to df_simulate_one_insn.
12889 * recog.c (peephole2_optimize): Ditto.
12890 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12892 * df.h: Rename df_simulate_one_insn_backwards to
12893 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
12894 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12895 scanning of defs and uses.
12896 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12897 (df_simulate_one_insn_forwards): Removed.
12899 2008-05-16 Doug Kwan <dougkwan@google.com>
12901 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12903 (real_from_string): Handle NaNs and Inf as approriate.
12905 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
12907 * doc/gty.texi (Source Files Containing Type Information): Note
12908 that headers should appear first in the gtfiles list.
12910 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12912 * tree.def (COND_EXEC): Properly documented this code.
12914 2008-05-16 Diego Novillo <dnovillo@google.com>
12916 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12917 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12920 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12922 * tree-ssa-dse (max_stmt_uid): Removed.
12923 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12924 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12925 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12926 * function.h (cfun.last_stmt_uid): New field.
12927 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12928 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12930 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12931 (create_stmt_ann): Initialize the ann->uid field.
12932 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12934 * tree-flow.h (renumber_gimple_stmt_uids): New function.
12936 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
12938 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12939 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12940 (init_empty_tree_cfg): Call it.
12942 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12944 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
12947 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
12949 * doc/invoke.text (-fdump-tree-*-verbose): New option.
12950 * tree-dump.c (dump_options): New verbose option.
12951 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12953 * tree-pass.h (TDF_VERBOSE): New dump flag.
12954 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12955 (tree-flow.h): Added include.
12956 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
12958 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
12960 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12962 From Jie Zhang <jie.zhang@analog.com>
12963 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12964 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12965 mcpu=bf561-none and mcpu=bf561-0.2.
12966 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12967 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12968 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12969 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12970 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12971 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12972 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
12974 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12975 (cputype_selected): Remove.
12976 (bfin_handle_option): Don't use cputype_selected.
12977 (override_options): When no mcpu option, enable all workarounds.
12978 Don't use bfin_workarounds.
12979 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12981 (DEFAULT_CPU_TYPE): Don't define.
12983 2008-05-16 Richard Guenther <rguenther@suse.de>
12985 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12986 on deletion of the last stmt.
12988 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
12990 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12991 V8HImode for SSE2 and V16QImode for SSE4.1.
12993 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
12995 * cgraph.h (compute_inline_parameters): Made public.
12996 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12997 variable_generate_summary, function_write_summary,
12998 variable_write_summary, variable_read_summary. Added generate_summary,
12999 write_summary, read_summary.
13000 * cgraphunit.c (cgraph_process_new_functions): Changed call from
13001 pass_ipa_inline.function_generate_summary, to
13002 compute_inline_parameters.
13003 * ipa-inline.c (compute_inline_parameters): Made public and added
13005 (compute_inline_parameters_for_current): New function.
13006 (pass_inline_param): Now calls compute_inline_parameters_for_current.
13007 (inline_generate_summary): Removed parameter and made to loop over
13009 (pass_ipa_inline): Updated for new IPA_PASS structure.
13010 * passes.c (execute_ipa_summary_passes): Now is called once per
13011 pass rather than once per node*pass.
13013 2008-05-15 Anatoly Sokolov <aesok@post.ru>
13015 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13016 avr_have_mul_p, avr_asm_only_p): Remove variables.
13017 (avr_override_options): Remove initialization of removed variables.
13018 (avr_file_start): Convert removed variables to fields of
13019 'struct base_arch_s *avr_current_arch'.
13020 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13021 (AVR_HAVE_MUL): (Ditto.).
13022 (AVR_HAVE_MOVW): (Ditto.).
13023 (AVR_HAVE_LPMX): (Ditto.).
13024 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13025 avr_asm_only_p): Remove declaration.
13027 2008-05-15 Diego Novillo <dnovillo@google.com>
13029 * config/arm/arm.c (arm_return_in_memory): Fix return type.
13030 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13032 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
13034 PR middle-end/36194
13035 * combine.c (check_conversion): Rename back to check_promoted_subreg.
13036 Don't call record_truncated_value from here.
13037 (record_truncated_value): Turn it into a for_each_rtx callback.
13038 (record_truncated_values): New function.
13039 (combine_instructions): Call note_uses with record_truncated_values.
13040 Change name of check_conversion to check_promoted_subreg.
13042 2008-05-15 Janis Johnson <janis187@us.ibm.com>
13044 * doc/sourcebuild.texi: Document support for torture tests.
13046 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
13048 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13049 to alternative 4 of operand 2.
13051 2008-05-15 Richard Guenther <rguenther@suse.de>
13053 * tree-pass.h (current_pass): Declare.
13054 (get_pass_for_id): Likewise.
13055 * passes.c (passes_by_id, passes_by_id_size): New globals.
13056 (set_pass_for_id): New function.
13057 (get_pass_for_id): Likewise.
13058 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13059 (execute_function_todo): Flush per function statistics.
13060 * toplev.c (compile_file): Init statistics.
13061 (general_init): Do early statistics initialization.
13062 (finalize): Finish statistics.
13063 * statistics.h (statistics_early_init): Declare.
13064 (statistics_init): Likewise.
13065 (statistics_fini): Likewise.
13066 (statistics_fini_pass): Likewise.
13067 (statistics_counter_event): Likewise.
13068 (statistics_histogram_event): Likewise.
13069 * statistics.c: New file.
13070 * Makefile.in (OBJS-common): Add statistics.o.
13071 (statistics.o): Add dependencies.
13072 * doc/invoke.texi (-fdump-statistics): Document.
13074 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13075 (insert): Likewise.
13076 (execute_pre): Use statistics_counter_event.
13077 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13078 (substitute_and_fold): Increment it. Use statistics_counter_event.
13080 2008-05-15 Diego Novillo <dnovillo@google.com>
13082 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13084 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13085 * tree-ssa-alias.c (new_type_alias): Remove references to
13086 sub-variables from comment.
13087 * tree-ssa-operands.c (swap_tree_operands): Likewise.
13089 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
13091 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13092 attribute to 1 only for insertps alternative.
13094 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
13096 * config/bfin/bfin.md (loadbytes): New pattern.
13097 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13098 (bfin_init_builtins): Initialize it.
13099 (bdesc_1arg): Add it.
13101 2008-05-15 Sa Liu <saliu@de.ibm.com>
13103 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13104 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13105 * testsuite/lib/target-supports.exp: Add
13106 check_effective_target_fortran_integer_16.
13108 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
13110 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13111 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13112 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
13113 (TARGET_RETURN_IN_MEMORY): Define.
13115 2008-05-15 Richard Guenther <rguenther@suse.de>
13117 PR middle-end/36244
13118 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13119 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13120 represent unmodifiable vars.
13122 2008-05-15 Richard Guenther <rguenther@suse.de>
13124 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13125 INDIRECT_REF and TARGET_MEM_REF.
13126 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13129 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
13130 H.J. Lu <hongjiu.lu@intel.com>
13132 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13133 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13134 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
13135 insn alternatives. Add missing alternatives.
13136 (*vec_concatv2di_rex64_sse4_1): Likewise.
13137 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13138 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13139 Require TARGET_SSE.
13141 2008-05-15 Richard Guenther <rguenther@suse.de>
13143 PR tree-optimization/36009
13144 PR tree-optimization/36204
13145 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13146 (determine_invariantness_stmt): Record the loop a store is
13147 always executed in.
13148 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13151 2008-05-15 Richard Guenther <rguenther@suse.de>
13153 PR tree-optimization/34330
13154 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13155 through the pointer will alias the SMT.
13157 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
13159 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13161 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
13163 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13165 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13166 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13168 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13169 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13170 (vashl_optab): New optab for vector/vector shifts.
13171 (vashr_optab): Ditto.
13172 (vlshr_optab): Ditto.
13173 (vrotl_optab): Ditto.
13174 (vrotr_optab): Ditto.
13175 (optab_subtype): New enum for optab_for_tree_code call.
13176 (optab_for_tree_code): Add enum optab_subtype argument.
13178 * optabs.c (optab_for_tree_code): Take an additional argument to
13179 distinguish between a vector shift by a scalar and vector shift by
13180 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
13181 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
13182 vector shift by a vector.
13183 (expand_widen_pattern_expr): Pass additional argument to
13184 optab_for_tree_code.
13186 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13187 vrotl_optab, vrotr_optab.
13189 * expr.c (expand_expr_real_1): Update calls to
13190 optab_for_tree_code to distinguish between vector shifted by a
13191 scalar and vector shifted by a vector.
13192 * tree-vectorizer.c (supportable_widening_operation): Ditto.
13193 (supportable_narrowing_operation): Ditto.
13194 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13195 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13196 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13197 (vect_create_epilog_for_reduction): Ditto.
13198 (vectorizable_reduction): Ditto.
13199 (vectorizable_operation): Ditto.
13200 (vect_strided_store_supported): Ditto.
13201 (vect_strided_load_supported): Ditto.
13202 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13203 * expmed.c (expand_shift): Ditto.
13205 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13207 (ashr@var{m}3): Ditto.
13208 (vashl@var{m}3): Document new vector/vector shift standard name.
13209 (vashr@var{m}3): Ditto.
13210 (vlshr@var{m}3): Ditto.
13211 (vrotl@var{m}3): Ditto.
13212 (vrotr@var{m}3): Ditto.
13214 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13215 (PPERM_INVERT): Ditto.
13216 (PPERM_REVERSE): Ditto.
13217 (PPERM_REV_INV): Ditto.
13218 (PPERM_ZERO): Ditto.
13219 (PPERM_ONES): Ditto.
13220 (PPERM_SIGN): Ditto.
13221 (PPERM_INV_SIGN): Ditto.
13222 (PPERM_SRC1): Ditto.
13223 (PPERM_SRC2): Ditto.
13225 * config/i386/sse.md (mulv2di3): Add SSE5 support.
13226 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13227 allows a memory operand to be the value being added, and split it
13228 to improve vectorization.
13229 (sse5_pmacsdqh_mem): Ditto.
13230 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13231 (sse5_mulv2div2di3_high): Ditto.
13232 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13233 (vec_pack_trunc_v4si): Ditto.
13234 (vec_pack_trunc_v2di): Ditto.
13235 (sse5_pcmov_<mode>): Remove code that tried to use use
13236 andps/andnps instead of pcmov.
13237 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13238 pmacsdqh instructions.
13239 (vec_widen_smult_lo_v4si): Ditto.
13241 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13242 (PPERM_INVERT): Ditto.
13243 (PPERM_REVERSE): Ditto.
13244 (PPERM_REV_INV): Ditto.
13245 (PPERM_ZERO): Ditto.
13246 (PPERM_ONES): Ditto.
13247 (PPERM_SIGN): Ditto.
13248 (PPERM_INV_SIGN): Ditto.
13249 (PPERM_SRC1): Ditto.
13250 (PPERM_SRC2): Ditto.
13251 (ix86_expand_sse_movcc): Move the SSE5 test after the if
13253 (ix86_expand_int_vcond): If SSE5 generate all possible integer
13255 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13256 says ignore whether the last reference is a memory operand.
13258 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13259 Paolo Bonzini <bonzini at gnu dot org>
13261 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13264 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13265 (vlshr<mode>3): Rename from vlshr<mode>3.
13266 (vashr<mode>3): Rename from vashr<mode>3.
13267 (mulv4sf3): Change the names of vector shift patterns.
13271 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13274 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13299 * config/spu/spu.md (v): New iterator macro to add v for vector types.
13300 (floatunssidf2_internal): Change vector/vector shift names.
13301 (floatunsdidf2_internal): Ditto.
13308 (vashl<mode>3): Rename from ashl<mode>3.
13309 (vashr<mode>3): Rename from ashr<mode>3.
13310 (vlshr<mode>3): Rename from lshr<mode>3.
13311 (vrotl<mode>3): Rename from rotl<mode>3.
13313 2008-05-14 Michael Meissner <michael.meissner@amd.com>
13316 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13317 multiply gives the wrong value when doing widening multiplies.
13318 (vec_widen_smult_lo_v4si): Ditto.
13320 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13322 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13323 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13324 emit_library_call_value.
13325 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13326 * tree.h (ECF_LIBCALL_BLOCK): Removed.
13327 * calls.c (initialize_argument_information, precompute_arguments,
13328 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13329 (precompute_arguments): Removed flags parameter.
13330 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13332 2008-05-14 Richard Guenther <rguenther@suse.de>
13334 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13335 Make sure to register the store if the use is a PHI_NODE.
13337 2008-05-14 Olivier Hainque <hainque@adacore.com>
13339 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13340 memory if the component is to be referenced in BLKmode according
13341 to get_inner_reference.
13343 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
13345 * calls.c (emit_library_call_value_1): Restore code clearing
13346 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13348 2008-05-14 Olivier Hainque <hainque@adacore.com>
13349 Nicolas Roche <roche@adacore.com>
13351 * configure.ac: Add support for a "gcc_subdir" variable in
13352 config-lang.in, to denote a subdirectory where the language/GCC
13353 integration files are to be found.
13354 * configure: Regenerate.
13356 2008-05-14 Ira Rosen <irar@il.ibm.com>
13358 PR tree-optimization/36098
13359 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13360 value for the first load in the group in case of a gap.
13361 (vect_build_slp_tree): Check that there are no gaps in loads.
13363 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
13365 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13366 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13367 expand_copysign_bit, ): Change call to emit_no_conflict_block to
13368 emit_insn and remove unneeded code to construct extra args.
13369 (emit_no_conflict_block): Removed.
13370 * optabls.h: (emit_no_conflict_block): Removed.
13371 * cse.c (cse_extended_basic_block): Remove search for
13372 REG_NO_CONFLICT note.
13373 * global.c: Removed incorrect comment added in revision 117.
13374 * expr.c (convert_move): Change call to emit_no_conflict_block to
13376 * recog.c: Change comments so that they do not mention
13378 * local_alloc.c (combine_regs): Removed last parameter.
13379 (no_conflict_p): Removed.
13380 (block_alloc): Removed note, no_conflict_combined_regno and set
13381 local vars. Removed all code to process REG_NO_CONFLICT blocks.
13382 (combine_regs): Removed already_dead and code to look for
13383 REG_NO_CONFLICT notes.
13384 * lower_subreg (remove_retval_note): Removed code to look for
13385 REG_NO_CONFLICT block.
13386 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13387 (resolve_clobber): Remove code to process libcalls that have
13388 REG_NO_CONFLICT notes.
13389 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13391 * combine.c (can_combine_p, distribute_notes): Removed
13392 REG_NO_CONFLICT case.
13393 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13395 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13396 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13398 * reg-notes.def (NO_CONFLICT): Removed.
13400 2008-05-14 David S. Miller <davem@davemloft.net>
13402 * config/sparc/sparc.c (sparc_profile_hook): If
13403 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13404 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13405 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13407 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
13409 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13411 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
13414 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13415 and op1 expansion before vector concat to have less live pseudos.
13417 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
13419 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13420 ix86_expand_vector_set if supported.
13422 2008-05-13 Diego Novillo <dnovillo@google.com>
13423 Kenneth Zadeck <zadeck@naturalbridge.com>
13425 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13427 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13428 phinodes_print_statistics, init_ssanames, fini_ssanames,
13429 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13430 release_ssa_name, release_defs, replace_ssa_name_symbol,
13431 ssanames_print_statistics): Move ...
13432 * tree-flow.h: ... here.
13433 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13434 Use FN instead of cfun.
13435 (make_ssa_name_fn): Rename from make_ssa_name.
13436 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13437 * tree-flow-inline.h (make_ssa_name): Move from
13438 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
13439 * omp-low.c (expand_omp_parallel):
13440 * tree-flow-inline.h (redirect_edge_var_map_result):
13441 * tree-ssa.c (init_tree_ssa): Add argument FN.
13442 Use it instead of cfun. Update all users.
13444 2008-05-13 Tom Tromey <tromey@redhat.com>
13446 PR preprocessor/22168:
13447 * doc/cpp.texi (Top): Update menu.
13448 (Alternatives to Wrapper #ifndef): New node.
13449 (Other Directives): Document deprecation.
13450 (Obsolete Features): Remove menu.
13451 (Assertions): Merge node into Obsolete Features.
13452 (Obsolete once-only headers): Move earlier; rename to Alternatives
13453 to Wrapper #ifndef.
13454 * doc/cppopts.texi: Update.
13455 * c.opt (Wdeprecated): Enable for C and ObjC.
13456 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13457 (C++ Dialect Options): Move -Wno-deprecated from here to...
13458 (Warning Options): ... here.
13460 2008-05-13 Richard Guenther <rguenther@suse.de>
13462 PR middle-end/36227
13463 * fold-const.c (fold_sign_changed_comparison): Do not allow
13464 changes in pointer-ness.
13466 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
13469 * config/sh/sh.c (sh_expand_prologue): Don't clear
13470 RTX_FRAME_RELATED_P for push insns.
13472 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
13474 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13476 2008-05-12 Anatoly Sokolov <aesok@post.ru>
13478 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13479 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13480 Use 'machine->is_leaf' instead of 'leaf_func_p'.
13482 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
13484 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13485 (*vec_concatv4sf_sse): This.
13486 (*sse2_concatv2si): Renamed to ...
13487 (*vec_concatv2si_sse2): This.
13488 (*sse1_concatv2si): Renamed to ...
13489 (*vec_concatv2si_sse): This.
13490 (*vec_concatv2di_rex): Renamed to ...
13491 (*vec_concatv2di_rex64): This.
13492 (*vec_concatv2si_sse4_1): New.
13493 (*vec_concatv2di_rex64_sse4_1): Likewise.
13495 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
13497 PR rtl-optimization/36111
13498 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13499 that was created for swappable operands.
13501 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
13504 * Makefile.in: Substitute GNATMAKE and GNATBIND.
13505 * configure.ac: Add call to ACX_PROG_GNAT.
13507 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
13509 * optc-gen.awk: Fix comment typo.
13511 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13513 * pretty-print.c (pp_integer_with_precision): Use
13514 HOST_LONG_LONG_FORMAT.
13516 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
13518 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13520 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
13522 * config/i386/i386.c (bdesc_ptest): Removed.
13523 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13524 (bdesc_args): Add __builtin_ia32_ptestz128,
13525 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13526 (ix86_init_mmx_sse_builtins): Updated.
13527 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13528 (ix86_expand_builtin): Updated.
13530 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
13532 * tree-cfg.c (valid_fixed_convert_types_p): New function.
13533 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13535 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
13537 * value-prof.c (interesting_stringop_to_profile): Do not
13538 return early for BUILT_IN_MEMPCPY.
13540 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
13542 * calls.c (expand_call): Don't use callgraph to increase
13543 preferred_stack_boundary.
13545 * cgraph.h (cgraph_rtl_info): Use unsigned on
13546 preferred_incoming_stack_boundary.
13548 * final.c (rest_of_clean_state): Use unsigned on
13549 preferred_stack_boundary.
13551 2008-05-09 Tom Tromey <tromey@redhat.com>
13553 PR preprocessor/22231:
13554 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13557 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
13559 PR tree-optimization/36129
13560 * tree-ssa-ccp.c: Include value-prof.h.
13561 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13562 built-in function was folded to a constant.
13563 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13565 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
13566 Sebastian Pop <sebastian.pop@amd.com>
13568 * tree-scalar-evolution.c: Document instantiate_scev.
13569 (instantiate_parameters_1): Renamed instantiate_scev_1.
13570 Don't use the same loop for instantiation_loop and evolution_loop.
13571 (instantiate_scev): New.
13572 (instantiate_parameters): Moved...
13573 (resolve_mixers): Update call to instantiate_scev_1 to pass the
13574 same loop twice. Maintains the semantics for this function.
13575 * tree-scalar-evolution.h (instantiate_scev): Declare.
13576 (instantiate_parameters): ...here. Now static inline.
13577 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13578 instead of resolve_mixers.
13580 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
13582 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13584 2008-05-09 Tomas Bily <tbily@suse.cz>
13586 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13587 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13588 * tree-ssa-structalias.c (get_constraint_for): Likewise.
13589 * c-common.c (c_common_truthvalue_conversion): Likewise.
13590 * tree-object-size.c (compute_object_offset): Likewise.
13591 * tree-inline.c (estimate_num_insns_1): Likewise.
13592 * varasm.c (const_hash_1, compare_constant, copy_constant)
13593 (compute_reloc_for_constant, output_addressed_constants)
13594 (initializer_constant_valid_p): Likewise.
13595 * c-omp.c (check_omp_for_incr_expr): Likewise.
13596 * gimplify.c (gimplify_expr): Likewise.
13597 * c-typeck.c (c_finish_return): Likewise.
13598 * tree-vectorizer.c (supportable_widening_operation)
13599 (supportable_narrowing_operation): Likewise.
13600 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13601 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13602 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13603 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13604 (descr_info_loc): Likewise.
13605 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13606 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13607 (fold_unary): Likewise.
13608 * builtins.c (get_pointer_alignment): Likewise.
13609 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13610 (instantiate_parameters_1): Likewise.
13611 * tree.c (expr_align, stabilize_reference): Likewise.
13612 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13613 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13614 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13615 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13616 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13617 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13619 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13620 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13621 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13622 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13623 (forward_propagate_comparison)
13624 (tree_ssa_forward_propagate_single_use_vars): Likewise.
13625 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13626 * emit-rtl.c (component_ref_for_mem_expr)
13627 (set_mem_attributes_minus_bitpos): Likewise.
13628 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13629 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13631 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13632 (build_function_call, pointer_diff, build_compound_expr)
13633 (c_finish_return): Likewise.
13634 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13635 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13637 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13638 * expr.c (is_aligning_offset): Likewise.
13639 * tree-ssa-alias.c (is_escape_site): Likewise.
13640 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13641 (check_all_va_list_escapes): Likewise.
13642 * tree-ssa-loop-ivopts.c (determine_base_object)
13643 (determine_common_wider_type): Likewise.
13644 * dojump.c (do_jump): Likewise.
13645 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13646 * tree-gimple.c (is_gimple_cast): Likewise.
13647 * fold-const.c (decode_field_reference, )
13648 (fold_sign_changed_comparison, fold_unary, fold_comparison)
13649 (fold_binary): Likewise.
13650 * tree-ssa-alias-warnings.c (find_alias_site_helper)
13651 (already_warned_in_frontend_p): Likewise.
13652 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13653 * tree.c (really_constant_p, get_unwidened): Likewise.
13654 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13655 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13656 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13658 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13660 (CONVERT_EXPR_P): Define.
13661 (CASE_CONVERT): Define.
13663 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
13665 PR middle-end/36117
13666 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13667 (delete_unmarked_insns): When deleting a call, call
13668 delete_unreachable_blocks.
13669 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13670 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13672 2008-05-08 Richard Guenther <rguenther@suse.de>
13674 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13675 (-ftree-salias): Likewise.
13676 (salias-max-implicit-fields): Remove param documentation.
13677 (salias-max-array-elements): Likewise.
13678 * tree-pass.h (pass_create_structure_vars): Remove.
13679 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13680 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13681 * tree-ssa-alias.c (create_structure_vars): Remove.
13682 (gate_structure_vars): Likewise.
13683 (pass_create_structure_vars): Likewise.
13684 (gate_build_alias): Likewise.
13685 (pass_build_alias): Adjust to run always and dump the function.
13686 * common.opt (ftree-salias): Hide.
13687 * passes.c (init_optimization_passes): Remove
13688 pass_create_structure_vars, adjust comment.
13689 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13690 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13691 * opts.c (decode_options): Do not set flag_tree_salias.
13692 (common_handle_option): Add OPT_ftree_salias to the backward
13693 compatibility section.
13695 2008-05-08 Richard Guenther <rguenther@suse.de>
13697 * tree-flow-inline.h (var_can_have_subvars): Move ...
13698 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13699 * tree-flow.h (var_can_have_subvars): Remove.
13700 (push_fields_onto_fieldstack): Remove.
13701 (sort_fieldstack): Likewise.
13702 (struct fieldoff): Move ...
13703 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
13704 alias_set and base_for_components fields.
13705 (sort_fieldstack): Make static.
13706 (push_fields_onto_fieldstack): Likewise. Remove code that
13707 handles anything but RECORD_TYPEs. Remove alias_set and
13708 base_for_components handling.
13709 (create_variable_info_for): Adjust.
13711 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
13713 * common.opt (Wframe-larger-than=): Shorten the help message
13715 * doc/invoke.texi (Wframe-larger-than=): Add more description.
13717 2008-05-08 Rafael Espindola <espindola@google.com>
13719 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13721 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13722 trap and that both operands are gimple values.
13723 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13724 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13727 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
13729 * read-rtl.c (join_c_conditions): Return the first string if the
13730 two strings are equal.
13732 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
13734 * gensupport.h (pred_data): Add a "num_codes" field.
13735 (add_predicate_code): Declare.
13736 * gensupport.c (add_predicate_code): New function.
13737 (std_pred_table): Add an "allows_const_p" field.
13738 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13739 Remove the (incomplete) list of such codes from the codes field.
13740 (init_predicate_table): Use add_predicate_code. Add all
13741 RTX_CONST_OBJs if allows_const_p is true.
13742 * genrecog.c (process_define_predicate): Use add_predicate_code.
13744 2008-05-08 David Daney <ddaney@avtrex.com>
13745 Richard Sandiford <rsandifo@nildram.co.uk>
13747 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13748 special case of constant zero operands.
13749 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13750 old and new values. Special case constant zero values.
13751 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13753 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13754 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13756 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
13759 * simplify-rtx.c (simplify_plus_minus): Create CONST of
13760 similar RTX_CONST_OBJ before CONST_INT.
13762 2008-05-08 Steve Ellcey <sje@cup.hp.com>
13764 * stmt.c (expand_stack_restore): Change sa mode if needed.
13766 2008-05-08 Richard Guenther <rguenther@suse.de>
13768 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13769 return type to bool.
13770 (ix86_sol10_return_in_memory): Likewise.
13771 (ix86_i386elf_return_in_memory): Likewise.
13772 (ix86_i386interix_return_in_memory): Likewise.
13773 * config/i386/i386.c (ix86_return_in_memory): Likewise.
13774 (ix86_sol10_return_in_memory): Likewise.
13775 (ix86_i386elf_return_in_memory): Likewise.
13776 (ix86_i386interix_return_in_memory): Likewise.
13778 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
13781 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13783 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13784 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13787 2008-05-08 Richard Guenther <rguenther@suse.de>
13789 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13790 * tree-data-ref.h (struct dr_alias): Remove subvars field.
13791 (DR_SUBVARS): Remove.
13792 * tree-dfa.c (dump_subvars_for): Remove.
13793 (debug_subvars_for): Likewise.
13794 (dump_variable): Do not dump subvars.
13795 (remove_referenced_var): Do not remove subvars.
13796 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13797 (lookup_subvars_for_var): Remove.
13798 (get_subvars_for_var): Likewise.
13799 (get_subvars_at): Likewise.
13800 (get_first_overlapping_subvar): Likewise.
13801 (overlap_subvar): Likewise.
13802 * tree-flow.h (subvar_t): Remove.
13803 (struct var_ann_d): Remove subvars field.
13804 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13805 argument. Remove special handling of SFTs.
13806 (compute_tag_properties): Likewise.
13807 (set_initial_properties): Likewise.
13808 (compute_call_clobbered): Likewise.
13809 (count_mem_refs): Likewise.
13810 (compute_memory_partitions): Likewise.
13811 (compute_flow_insensitive_aliasing): Likewise.
13812 (setup_pointers_and_addressables): Likewise.
13813 (new_type_alias): Likewise.
13814 (struct used_part): Remove.
13815 (used_portions): Likewise.
13816 (struct used_part_map): Likewise.
13817 (used_part_map_eq): Likewise.
13818 (used_part_map_hash): Likewise.
13819 (free_used_part_map): Likewise.
13820 (up_lookup): Likewise.
13821 (up_insert): Likewise.
13822 (get_or_create_used_part_for): Likewise.
13823 (create_sft): Likewise.
13824 (create_overlap_variables_for): Likewise.
13825 (find_used_portions): Likewise.
13826 (create_structure_vars): Likewise.
13827 * tree.def (STRUCT_FIELD_TAG): Remove.
13828 * tree.h (MTAG_P): Adjust.
13829 (struct tree_memory_tag): Remove base_for_components and
13830 unpartitionable flags.
13831 (struct tree_struct_field_tag): Remove.
13832 (SFT_PARENT_VAR): Likewise.
13833 (SFT_OFFSET): Likewise.
13834 (SFT_SIZE): Likewise.
13835 (SFT_NONADDRESSABLE_P): Likewise.
13836 (SFT_ALIAS_SET): Likewise.
13837 (SFT_UNPARTITIONABLE_P): Likewise.
13838 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13839 (union tree_node): Remove sft field.
13840 * alias.c (get_alias_set): Remove special handling of SFTs.
13841 * print-tree.c (print_node): Remove handling of SFTs.
13842 * tree-dump.c (dequeue_and_dump): Likewise.
13843 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13844 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13845 * tree-predcom.c (set_alias_info): Do not set subvars.
13846 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13847 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13848 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13849 (add_vars_for_offset): Remove.
13850 (add_virtual_operand): Remove special handling of SFTs.
13851 (add_call_clobber_ops): Likewise.
13852 (add_call_read_ops): Likewise.
13853 (get_asm_expr_operands): Likewise.
13854 (get_modify_stmt_operands): Likewise.
13855 (get_expr_operands): Likewise.
13856 (add_to_addressable_set): Likewise.
13857 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13858 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13859 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13860 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13861 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13862 (tree_node_structure): Likewise.
13863 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13865 (find_what_p_points_to): Likewise.
13867 2008-05-08 Sa Liu <saliu@de.ibm.com>
13869 * config/spu/spu.md: Fixed subti3 pattern.
13871 2008-05-08 Richard Guenther <rguenther@suse.de>
13873 PR middle-end/36154
13874 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13875 sure to create a representative for trailing arrays for PTA.
13877 2008-05-08 Richard Guenther <rguenther@suse.de>
13879 PR middle-end/36172
13880 * fold-const.c (operand_equal_p): Two objects which types
13881 differ in pointerness are not equal.
13883 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
13885 * calls.c (compute_argument_block_size): Add argument tree fndecl.
13886 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13887 (emit_library_call_value_1): Add new variable fndecl initialized by
13888 NULL_TREE. It should be the decl type of orgfun, but this information
13889 seems not to be available here, so it uses the default calling abi.
13890 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13891 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13892 by TARGET_RETURN_IN_MEMORY.
13893 * config/i386/i386-interix.h: Likewise.
13894 * config/i386/i386.h: Likewise.
13895 * config/i386/i386elf.h: Likewise.
13896 * config/i386/ptx4-i.h: Likewise.
13897 * config/i386/sol2-10.h: Likewise.
13898 * config/i386/sysv4.h: Likewise.
13899 * config/i386/vx-common.h: Likewise.
13900 * config/cris/cris.h: Removed #if 0 clause.
13901 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13902 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13904 (ix86_sol10_return_in_memory): Likewise.
13905 (ix86_i386elf_return_in_memory): New.
13906 (ix86_i386interix_return_in_memory): New.
13907 * config/mt/mt-protos.h (mt_return_in_memory): New.
13908 * config/mt/mt.c: Likewise.
13909 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13910 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
13911 * config/bfin/bfin.h: Likewise.
13912 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13914 * config/bfin/bfin.c: Likewise.
13915 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13916 * config/alpha/unicosmk.h: Likewise.
13917 * config/i386/cygming.h: Likewise.
13918 * config/iq2000/iq2000.h: Likewise.
13919 * config/mips/mips.h: Likewise.
13920 * config/mn10300/mn10300.h: Likewise.
13921 * config/rs6000/rs6000.h: Likewise.
13922 * config/score/score.h: Likewise.
13923 * config/spu/spu.h: Likewise.
13924 * config/v850/v850.h: Likewise.
13925 * defaults.h: Likewise.
13926 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13927 * expr.c (emit_block_move): Adjust use of
13928 OUTGOING_REG_PARM_STACK_SPACE.
13929 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13930 OUTGOING_REG_PARM_STACK_SPACE.
13931 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13933 2008-05-08 Jakub Jelinek <jakub@redhat.com>
13935 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13936 on OMP_RETURN for OMP_FOR.
13939 * dwarf2out.c (dw_expand_expr, common_check): Removed.
13940 (fortran_common): New function.
13941 (gen_variable_die): Call fortran_common instead of common_check,
13942 adjust for it returning tree instead of rtx. Formatting.
13944 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
13948 * see.c (see_copy_insn): Copy new pure const attributes for new call.
13949 * c-decl.c (merge_decls): Ditto.
13950 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13951 to RTL_CONST_OR_PURE_CALL_P.
13952 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13953 Initialized DECL_LOOPING_CONST_PURE.
13954 (process_call_operands): Set tree_side_effects properly.
13955 * tree.h (TREE_READONLY_DECL_P): Removed.
13956 (DECL_IS_PURE): Renamed to DECL_PURE_P.
13957 (DECL_LOOPING_OR_CONST_P): New macro.
13958 (struct tree_function_decl): Added looping_const_or_pure_p.
13959 (ECF_*) Renumbered.
13960 (ECF_LOOPING_OR_CONST_P): New macro.
13961 * rtlanal.c (pure_const_p): Removed.
13962 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13963 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13964 to RTL_CONST_CALL_P.
13965 * ipa-pure-const.c (pure_const_state_e): Added looping field.
13966 (check_decl, check_tree, check_call, scan_function): Initialize
13968 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13969 (static_execute): Set looping true for recursive functions.
13970 Undo setting state to IPA_NEITHER for recursive functions.
13971 * cse.c (cse_insn):
13972 * ifcvt.c (noce_can_store_speculate_p): Changed
13973 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13974 RTL_CONST_OR_PURE_CALL_P.
13975 * dse.c (scan_insn): Ditto.
13976 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13977 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13978 RTL_CONST_OR_PURE_CALL_P.
13979 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13980 pure_call_p to RTL_CONST_CALL_P.
13981 * gimplify.c (gimplify_call_expr): Clear side effects for
13982 non-looping pure and constant calls.
13983 * calls.c (emit_call_1): Set rtl flags from ecf flags.
13984 (flags_from_decl_or_type): Set ecf flags from decl flags.
13985 (initialize_argument_information): Turn off
13986 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13987 Change const to pure if callee_copies is true rather than just
13989 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13990 way of marking pure calls.
13991 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13992 Remove hack that was supposed to fix pr7335 and remove old
13993 way of marking pure calls.
13994 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13995 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13996 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13997 RTL_CONST_OR_PURE_CALL_P.
13998 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13999 * loop-invariant.c (find_exits, find_invariant_bb): Changed
14000 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14001 * sched-deps.c (schedule_analyze): Ditto.
14002 * rtl.h (struct rtx_def): Use call field, unchanging field, and
14003 return_val field of calls to represent pure and const function info.
14004 (CONST_OR_PURE_CALL_P): Deleted macro.
14005 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14006 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14007 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14009 * tree-optimize.c (execute_fixup_cfg): Added test for
14010 ECF_LOOPING_CONST_OR_PURE.
14011 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14013 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14014 effects for looping pure or const calls.
14015 (verify_gimple_expr): Added verification code.
14016 * config/alpha/alpha.c (alpha_legitimize_address,
14017 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14019 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14020 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14021 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14022 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14023 RTL_CONST_OR_PURE_CALL_P.
14024 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14025 and const calls to be deleted.
14027 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
14030 * config/i386/mmx.md (mmx_subv2sf3): New expander.
14031 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14032 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14033 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14034 to handle nonimmediate operands.
14035 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14036 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
14037 to handle nonimmediate operands.
14038 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14039 (mmx_pmulhrwv4hi3): New expander. Use
14040 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14041 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14042 (sse2_umulv1siv1di3): New expander. Use
14043 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14044 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14045 (mmx_eq<mode>3): New expander. Use
14046 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14047 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14048 (mmx_uavgv8qi3): New expander. Use
14049 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14050 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14051 (mmx_uavgv4hi3): New expander. Use
14052 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14054 * config/i386/sse.md
14055 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
14056 to handle nonimmediate operands.
14057 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
14058 to handle nonimmediate operands.
14059 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
14060 to handle nonimmediate operands.
14061 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
14062 to handle nonimmediate operands.
14063 (sse2_unpckhpd_exp): New expander. Use
14064 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14065 (sse2_unpcklpd_exp): New expander. Use
14066 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14067 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
14068 to handle nonimmediate operands.
14069 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
14070 to handle nonimmediate operands.
14071 (*sse2_<plusminus_insn><mode>3): Rename from
14072 sse2_<plusminus_insn><mode>3 insn pattern.
14073 (sse2_<plusminus_insn><mode>3): New expander. Use
14074 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14075 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14076 (sse2_umulv2siv2di3): New expander. Use
14077 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14078 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14079 (sse4_1_mulv2siv2di3): New expander. Use
14080 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14081 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14082 (sse2_pmaddwd): New expander. Use
14083 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14084 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14085 (sse2_eq<mode>3): New expander. Use
14086 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14087 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14088 (sse4_1_eqv2di3): New expander. Use
14089 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14090 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14091 (sse2_uavgv16qi3): New expander. Use
14092 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14093 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14094 (sse2_uavgv16qi3): New expander. Use
14095 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14096 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14097 (sse2_uavgv8hi3): New expander. Use
14098 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14099 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14100 (ssse3_pmulhrswv8hi3): New expander. Use
14101 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14102 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14103 (ssse3_pmulhrswv4hi3): New expander. Use
14104 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14106 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14107 (<sse>_vmmul<mode>3): Ditto.
14108 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14110 (ssse3_pmaddubsw128): Use register_operand for operand 1.
14111 (ssse3_pmaddubsw): Ditto.
14113 * config/i386/i386.c (struct_builtin_description)
14114 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14115 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14116 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14117 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14118 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14119 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14120 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14121 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14122 (ix86_fixup_binary_operands): Assert that src1
14123 and src2 must have the same mode when swapped.
14124 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14125 and ix86_binary_operator_ok. Do not force operands in registers
14128 2008-05-07 Jan Hubicka <jh@suse.cz>
14130 * cgraph.c (dump_cgraph_node): Update.
14131 * cgraph.h (cgraph_local_info): Break out inline summary.
14132 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14134 * ipa-inline (inline_summary): New accestor function.
14135 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14136 cgraph_decide_inlining, compute_inline_parameters): Update.
14137 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14139 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
14141 Cleanup ColdFire scheduling support and add V4 pipeline model.
14143 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14144 (define_attr cpu): Add cfv4 value.
14145 (define_attr type, define_attr type1): Merge into a single 'type'
14146 attribute. Update all uses.
14147 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14148 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
14150 (define_attr opx_mem, define_attr opy_mem): Remove.
14151 (define_attr op_mem): Clean up, update comment.
14152 (define_attr size): Use specific values instead of general int.
14153 (define_attr guess, define_attr split): Remove. Update all uses.
14154 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14155 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14156 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14157 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14158 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14159 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14160 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14161 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14162 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14163 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14164 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14165 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14166 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14167 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14168 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14169 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14170 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14171 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14172 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14173 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14174 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14175 Update or set attributes.
14176 (stack_tie): New fake instruction.
14178 * config/m68k/m68k.h (TUNE_CFV4): New macro.
14179 (m68k_sched_attr_size): Update declaration.
14180 (m68k_sched_attr_type2): Remove.
14181 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14182 Declare new bypass predicates.
14184 * config/m68k/m68k.c (m68k_sched_issue_rate,
14185 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14187 (TARGET_SCHED_ISSUE_RATE,
14188 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14189 (override_options): Handle scheduling for ColdFire V4 core.
14190 (m68k_expand_prologue): Emit stack_tie.
14191 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14192 'OP_TYPE_FPN'. Update all uses.
14193 (sched_guess_p): Remove.
14194 (sched_address_type): Handle symbolic addresses.
14195 (sched_get_operand): New static function.
14196 (sched_operand_type): Merge into sched_attr_op_type.
14197 (sched_attr_op_type): Handle FP registers, handle quick constants,
14199 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14200 (m68k_sched_attr_size): Update. Move logic to ...
14201 (sched_get_attr_size_int): New static function.
14202 (sched_get_opxy_mem_type): New static function.
14203 (m68k_sched_attr_op_mem): Update.
14204 (m68k_sched_attr_type2): Remove.
14205 (sched_cfv4_bypass_data): New static variable.
14206 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14207 (m68k_sched_issue_rate): Implement scheduler hook.
14208 (struct _sched_ib: enabled_p): New field.
14209 (m68k_sched_variable_issue): Update. Handle V4.
14210 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14211 sched_dump_class_func_t, sched_dump_split_class,
14212 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14213 sched_dump_dfa_class, m68k_sched_dump): Remove.
14214 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14216 (m68k_sched_init_global): Remove statisctics dumping, introduce
14217 sanity check that all instructions have pipeline reservations. Handle
14219 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14220 Handle ColdFire V4 core.
14221 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14222 New static functions.
14223 (m68k_sched_address_bypass_p): New bypass predicate.
14224 (sched_get_indexed_address_scale): New static function.
14225 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14227 * cf.md: Update comments.
14228 (define_attr type2): Remove. Use 'type' attribute instead.
14230 (cf_ib): Rename to cfv123_ib. Update all uses.
14231 (cf_oep): Rename to cfv123_oep. Update all uses.
14232 (cf_chr): Rename to cfv123_chr. Update all uses.
14233 (cf_mem): Rename to cfv123_mem. Update all uses.
14234 (cf_mac): Move to more appropriate place.
14235 (cfv123_guess): New automaton and cpu_unit.
14236 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14237 Update uses of 'size' attribute. Handle before reload scheduling.
14238 (cfv123_guess): New dummy reservation for unhandled instructions.
14239 (cfv4_*): Pipeline description of ColdFire V4 core.
14240 (ignore): New reservation to handle 'ignore' type.
14242 2008-05-07 Ian Lance Taylor <iant@google.com>
14244 PR middle-end/36013
14245 * gimplify.c (find_single_pointer_decl_1): Don't look through
14247 (find_single_pointer_decl): Adjust comments.
14249 2008-05-07 Jakub Jelinek <jakub@redhat.com>
14251 PR middle-end/36137
14252 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14253 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14255 PR middle-end/36106
14256 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14257 integral type rather than floating point, then VIEW_CONVERT_EXPR
14258 to the floating point type.
14260 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
14262 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14263 TFmode op0 to register.
14265 2008-05-07 Alan Modra <amodra@bigpond.net.au>
14267 * c-decl.c (grokdeclarator): Comment typo.
14269 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
14271 * tree-flow.h: Remove prototype for computed_goto_p.
14272 * tree-cfg.c (computed_goto_p): Make static.
14274 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
14277 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14278 (contains_aligned_value_p): This. Handle _Decimal128.
14279 (ix86_function_arg_boundary): Only align _Decimal128 to its
14280 natural boundary and handle it properly.
14282 2008-05-06 Martin Jambor <mjambor@suse.cz>
14284 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14285 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14286 (ipcp_method_set_orig_node): Removed.
14287 (ipcp_cval_get_cvalue_type): Removed.
14288 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14289 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14290 (ipcp_cval_set_cvalue_type): Removed.
14291 (ipcp_cval_get_cvalue): Removed.
14292 (ipcp_cval_set_cvalue): Removed.
14293 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14294 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14295 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14296 (ipcp_cval_meet): Renamed to ipa_lattice_meet
14297 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14298 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14299 (ipcp_get_ith_lattice): Changed parameters.
14300 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14301 (ipcp_lattice_from_jfunc): Changed parameters.
14302 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14303 (ipcp_method_cval_print): Added temporary variable info.
14304 (ipcp_redirect): Removed already unused local variable caller.
14305 (ipcp_redirect): New temporary variable orig_callee_info
14306 (ipcp_redirect): Removed newly unused local variable callee.
14307 (ipcp_redirect): Removed (a bit confusing) local variable type.
14308 (ipcp_insert_stage): Added local variable info.
14309 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14311 (ipcp_formal_create): Removed.
14312 (ipcp_method_cval_set): Removed.
14313 (ipcp_propagate_stage): Renamed lattice variables.
14314 (ipcp_method_cval_set_cvalue_type): Removed.
14315 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14316 (ipcp_print_all_lattices): Changed printed strings to refer to
14317 lattices rather than cvals.
14318 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14319 (ipcp_propagate_const): Changed formal parameters.
14320 (build_const_val): Changed formal parameters.
14321 (ipcp_insert_stage): Removed useless variable cvalue
14322 (build_const_val): Changed formal parameters.
14323 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14324 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14325 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14326 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14327 (ipcp_print_func_profile_counts): Changed string from "method" to
14329 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14330 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14331 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14332 (ipcp_structures_print): Renamed to ipcp_print_all_structures
14333 (ipcp_profile_print): Renamed to ipcp_print_profile_data
14334 (ipcp_lat_is_const): Changed parameters and made inline.
14335 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14336 (ipcp_redirect): Renamed to ipcp_need_redirect_p
14337 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14338 the predicate condition directly
14339 (ipcp_propagate_stage): Added local variable args. Removed local
14340 variable callee. (Both are mere code simplifications.)
14341 (ipcp_method_dont_insert_const): Renamed to
14342 ipcp_node_not_modifiable_p.
14343 (ipcp_node_not_modifiable_p): Made inline.
14344 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14345 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14346 (ipcp_print_all_lattices): Removed variable cvalue
14347 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14350 2008-05-06 Olivier Hainque <hainque@adacore.com>
14352 * tree-sra.c (try_instantiate_multiple_fields): Early return
14353 if field has POINTER_TYPE.
14355 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
14357 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14358 by using 'q' specifier for instruction.
14359 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14361 2008-05-06 Anatoly Sokolov <aesok@post.ru>
14363 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14364 Change mode of zero_extract from QImode to HImode.
14365 (sign bit tests peepholes): (Ditto.).
14367 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
14369 * config/i386/mmx.md: Remove double backslashes from asm templates.
14370 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14371 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14372 to handle nonimmediate operands.
14373 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14374 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
14375 to handle nonimmediate operands.
14376 (*mmx_<code>v2sf3_finite): New insn pattern.
14377 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14378 (mmx_<code>v2sf3): New expander. Use
14379 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14380 (mmx_<plusminus_insn><mode>3): New expander. Use
14381 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14382 (*mmx_<plusminus_insn><mode>3): New insn pattern.
14383 (mmx_add<mode>3): Removed.
14384 (mmx_ssadd<mode>3): Ditto.
14385 (mmx_usadd<mode>3): Ditto.
14386 (mmx_sub<mode>3): Ditto.
14387 (mmx_sssub<mode>3): Ditto.
14388 (mmx_ussub<mode>3): Ditto.
14389 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14390 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
14391 to handle nonimmediate operands.
14392 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14394 (mmx_smulv4hi3_highpart): New expander. Use
14395 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14396 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14398 (mmx_umulv4hi3_highpart): New expander. Use
14399 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14400 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14401 (mmx_<code>v4hi3): New expander. Use
14402 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14403 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14404 (mmx_<code>v8qi3): New expander. Use
14405 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14406 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14407 (mmx_<code><mode>3): New expander. Use
14408 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14410 2008-05-05 Jan Hubicka <jh@suse.cz>
14412 PR tree-optimization/36118
14413 * passes.c (pass_init_dump_file): Fix dump header.
14415 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
14417 PR middle-end/36141
14418 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14419 VCE for function decls.
14421 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14423 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14425 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
14427 * config/i386/i386.md (sat_plusminus): New.
14428 (plusminus_insn): Likewise.
14429 (plusminus_mnemonic): Likewise.
14431 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14432 (*<addsub><mode>3_cc_overflow): Renamed to ...
14433 (*<plusminus_insn><mode>3_cc_overflow): This.
14434 (*<addsub>si3_zext_cc_overflow): Renamed to ...
14435 (*<plusminus_insn>si3_zext_cc_overflow): This.
14437 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14438 (<plusminus_insn><mode>3): This.
14439 (*<addsub><mode>3): Renamed to ...
14440 (*<plusminus_insn><mode>3): This.
14441 (<sse>_vm<addsub><mode>3): Renamed to ...
14442 (<sse>_vm<plusminus_insn><mode>3): This.
14443 (sse3_h<addsub>v4sf3): Renamed to ...
14444 (sse3_h<plusminus_insn>v4sf3): This.
14445 (sse3_h<addsub>v2df3): Renamed to ...
14446 (sse3_h<plusminus_insn>v2df3): This.
14447 (<plusminus_insn><mode>3): New.
14448 (*<plusminus_insn><mode>3): Likewise.
14449 (sse2_<plusminus_insn><mode>3): Likewise.
14450 (add<mode>): Removed.
14451 (*add<mode>3): Likewise.
14452 (sse2_ssadd<mode>3): Likewise.
14453 (sse2_usadd<mode>3): Likewise.
14454 (sub<mode>3): Likewise.
14455 (*sub<mode>3): Likewise.
14456 (sse2_sssub<mode>3): Likewise.
14457 (sse2_ussub<mode>3): Likewise.
14459 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
14461 * gthr-single.h: Add in required interface elements as per gthr.h.
14462 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14463 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14464 Generalize UNUSED macro.
14465 (__gthread_once): Add.
14466 (__gthread_key_create): Add.
14467 (__gthread_key_delete): Add.
14468 (__gthread_getspecific): Add.
14469 (__gthread_setspecific): Add.
14471 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
14473 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14474 the same size types for the indirect reference on the rhs, then
14477 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
14479 * config/i386/i386.md
14480 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14481 one insn template instead of template series.
14482 (*xordi_1_rex64): Ditto.
14483 (*xordi_2_rex64): Ditto.
14485 2008-05-05 Ira Rosen <irar@il.ibm.com>
14487 PR tree-optimization/36119
14488 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14491 2008-06-04 Jan Hubicka <jh@suse.cz>
14493 tree-optimization/36100
14494 * tree-pass.h (pass_O0_always_inline): Declare.
14495 * ipa-inline.c (inline_transform): Remove dead code.
14496 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14497 pass_O0_always_inline): New.
14498 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14500 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
14502 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14503 mnemonic in this_param move for TARGET_64BIT.
14505 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
14507 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14508 (*strmovsi_rex_1): Ditto.
14509 (*strsetsi_1): Ditto.
14510 (*strsetsi_rex_1): Ditto.
14512 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14513 adddicc expanders using SWI mode iterator.
14515 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
14518 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14521 2008-05-04 David S. Miller <davem@davemloft.net>
14523 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14524 (sparc*-*-linux*): Use linux.h in tm_file.
14525 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14526 compiler defaulting to 32-bit.
14527 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14529 * config/sparc/linux.h: Remove definitions now obtained
14530 properly from linux.h
14531 * config/sparc/linux64.h: Likewise.
14532 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14533 don't want this setting for 32-bit builds in a biarch compiler.
14534 * doc/install.texi: Add sparc-linux to list of targets
14535 supporting --enable-targets=all.
14537 2008-05-03 Andrew Pinski <pinskia@gmail.com>
14539 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14541 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
14543 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14544 after V4SI_FTYPE_V8HI.
14545 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14546 case V4SI_FTYPE_V2DF.
14548 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
14550 * doc/invoke.texi (max-flow-memory-locations): Removed.
14551 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14553 2008-05-03 Richard Guenther <rguenther@suse.de>
14555 PR middle-end/34973
14556 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14558 2008-05-02 David S. Miller <davem@davemloft.net>
14560 * config.gcc (need_64bit_hwint): Document libcpp dependency.
14562 2008-05-02 Simon Baldwin <simonb@google.com>
14565 * c-common.h (warn_array_subscript_range): Removed.
14566 * c-common.c (warn_array_subscript_range): Ditto.
14567 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14568 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14570 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14572 * config/i386/i386.c (ix86_special_builtin_type): New.
14573 (bdesc_special_args): Likewise.
14574 (ix86_expand_special_args_builtin): Likewise.
14575 (ix86_init_mmx_sse_builtins): Updated.
14576 (ix86_expand_builtin): Updated.
14577 (ix86_expand_store_builtin): Removed.
14578 (ix86_expand_unop_builtin): Likewise.
14580 * config/i386/mm3dnow.h (__v2sf): Moved to ...
14581 * config/i386/mmintrin.h (__v2sf): Here.
14583 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14585 (_mm_loadl_pi): Likewise.
14586 (_mm_storeh_pi): Replace __v2si with __v2sf.
14587 (_mm_storel_pi): Likewise.
14589 * doc/extend.texi: Correct __builtin_ia32_loadhps,
14590 __builtin_ia32_loadlps, __builtin_ia32_storehps,
14591 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14592 __builtin_ia32_loadlpd.
14594 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
14596 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14597 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14598 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
14599 (ix86_init_mmx_sse_builtins): Updated.
14600 (ix86_expand_args_builtin): Likewise.
14601 (ix86_expand_builtin): Likewise.
14602 (ix86_expand_unop1_builtin): Renamed to ...
14603 (ix86_expand_unop_vec_merge_builtin): This.
14605 2008-05-01 Jan Hubicka <jh@suse.cz>
14608 * ipa-inline.c (inline_generate_summary): Make static.
14609 (inline_transform): Do not call inlining at -O0; make static.
14610 * passes.c (execute_todo): Add sanity check.
14611 (execute_one_ipa_transform_pass): Execute proper flags.
14613 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
14615 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14616 (DECL_NONADDRESSABLE_P): Likewise.
14617 * alias.c (record_component_aliases): Fix comment.
14619 2008-05-01 Simon Baldwin <simonb@google.com>
14621 * c-common.h (warn_array_subscript_range): New function.
14622 * c-common.c (warn_array_subscript_range): Ditto.
14623 * tree-vrp.c (check_array_ref): Corrected code to agree with
14624 comment, ignoring only arrays of size 0 or size 1.
14625 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14627 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14629 * config/i386/i386.c (ix86_builtin_type): Replace
14630 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14631 (bdesc_args): Updated.
14632 (ix86_init_mmx_sse_builtins): Likewise.
14633 (ix86_expand_args_builtin): Likewise.
14635 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14638 * doc/extend.texi: Correct __builtin_ia32_palignr.
14640 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14643 * config/i386/i386.c (bdesc_crc32): Removed.
14644 (ix86_expand_crc32): Likewise.
14645 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14646 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14647 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
14648 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14649 UINT_FTYPE_UINT_UCHAR.
14650 (bdesc_args): Updated. Add crc32 builtins.
14651 (ix86_init_mmx_sse_builtins): Updated.
14652 (ix86_expand_args_builtin): Updated to support subreg.
14654 * doc/extend.texi: Correct __builtin_ia32_crc32di.
14656 2008-05-01 Jan Hubicka <jh@suse.cz>
14658 * tree-pass.h (opt_pass): Add IPA_PASS.
14659 (varpool_node, cgraph_node): Forward declare.
14660 (ipa_opt_pass): Define.
14661 (pass_ipa_inline): Turn into ipa_opt_pass.
14662 (pass_apply_inline): Remove.
14663 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14664 (apply_inline): Turn into ....
14665 (inline_transform): ... this one.
14666 (inline_generate_summary): New function.
14667 (pass_apply_inline): Remove.
14668 * function.h (ipa_opt_pass): Forward declare structure; typedef;
14670 (struct function): Add ipa_transforms_to_apply.
14671 * passes.c (register_one_dump_file): Work on IPA_PASS.
14672 (init_optimization_passes): Remove pass_inline_parameters and
14674 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14675 (execute_one_pass) ... here; apply transforms when possible.
14676 (add_ipa_transform_pass, execute_ipa_summary_asses,
14677 execute_one_ipa_transform_pass): New.
14678 (execute_ipa_pass_list): Update for IPA_PASS type.
14680 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14682 * config/i386/i386.c (ix86_builtin_type): Add
14683 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14684 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14685 (bdesc_args): Add SSE4a builtins.
14686 (ix86_init_mmx_sse_builtins): Updated.
14687 (ix86_expand_args_builtin): Likewise.
14688 (ix86_expand_builtin): Likewise.
14690 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
14692 * config/i386/i386.c (ix86_builtin_type): Add
14693 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14694 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14695 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14696 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14697 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14698 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14699 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14700 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14701 and DI_FTYPE_DI_DI_INT.
14702 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14703 (ix86_init_mmx_sse_builtins): Updated.
14704 (ix86_expand_args_builtin): Likewise.
14705 (ix86_expand_builtin): Likewise.
14706 (ix86_expand_binop_imm_builtin): Removed.
14708 * doc/extend.texi: Correct __builtin_ia32_palignr128.
14710 2008-04-30 Richard Guenther <rguenther@suse.de>
14712 PR tree-optimization/32921
14713 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14715 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
14717 * config/arm/arm.c (arm_unwind_emit): Use
14718 crtl->all_throwers_are_sibcalls instead of
14719 cfun->all_throwers_are_sibcalls.
14720 (arm_output_fn_unwind): Likewise.
14721 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14722 instead of cfun->uses_pic_offset_table.
14723 (frv_expand_prologue): Likewise.
14724 (frv_frame_pointer_required): Likewise.
14725 (frv_expand_fdpic_call): Likewise.
14726 (frv_emit_movsi): Likewise.
14727 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14728 cfun->returns_pcc_struct instead of
14729 current_function_returns_pcc_struct.
14730 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14731 instead of cfun->calls_eh_return.
14732 (m32c_pushm_popm): Likewise.
14733 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14734 "extern" declaration.
14736 2008-04-30 Richard Guenther <rguenther@suse.de>
14738 PR tree-optimization/21636
14739 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14741 (evaluate_stmt): Print the likely value.
14742 (ccp_visit_stmt): Avoid excessive vertical spacing.
14744 2008-04-30 Rafael Espindola <espindola@google.com>
14746 * builtins.c (fold_call_expr): Return realret.
14747 * tree-ssa-threadedge.c
14748 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14749 __builtin_object_size.
14751 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
14753 * gcc.c (wrapper_string): New variable.
14754 (insert_wrapper): New function.
14755 (execute): New option -wrapper.
14756 * doc/invoke.texi (Overall Options): New driver option -wrapper.
14758 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
14760 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14761 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14762 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14764 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
14765 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14766 config/rs6000/e500crtres64gprctr.asm,
14767 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14768 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14769 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14770 config/rs6000/e500crtsav64gprctr.asm,
14771 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14772 config/rs6000/e500crtsavg64gprctr.asm: New files.
14773 * config/rs6000/t-ppccomm: Add build rules for new files.
14774 (LIB2FUNCS_STATIC_EXTRA): Add new files.
14775 * config/rs6000/t-netbsd: Add build rules for new files.
14776 (LIB2FUNCS_STATIC_EXTRA): New variable.
14777 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14778 (CRTSAVRES_DEFAULT_SPEC): Likewise.
14779 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14781 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
14783 * config/i386/i386.c (ix86_builtin_type): Add
14784 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14785 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14786 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14787 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14788 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14789 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14790 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14791 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14792 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14793 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14794 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14795 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14796 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14797 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14798 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14799 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14800 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14801 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14802 V1DI_FTYPE_V2SI_V2SI.
14803 (bdesc_2arg): Moved to ...
14804 (bdesc_args): Here.
14805 (ix86_init_mmx_sse_builtins): Updated.
14806 (ix86_expand_args_builtin): Updated. Take a pointer
14807 to const struct builtin_description. Handle comparison
14809 (ix86_expand_sse_compare): Take a new argument for swapping operands.
14810 (ix86_expand_builtin): Updated.
14812 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14813 (ssse3_pmaddubsw128): This.
14814 (ssse3_pmaddubswv4hi3): Renamed to ...
14815 (ssse3_pmaddubsw): This.
14817 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14818 (__builtin_ia32_packssdw128): Likewise.
14819 (__builtin_ia32_packuswb128): Likewise.
14820 (__builtin_ia32_pmaddubsw): Likewise.
14821 (__builtin_ia32_pmaddubsw128): Likewise.
14823 2008-04-30 Richard Guenther <rguenther@suse.de>
14825 PR tree-optimization/14847
14826 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14827 (recognize_bits_test): Use it.
14828 (recognize_single_bit_test): Likewise.
14830 2008-04-30 Martin Jambor <mjambor@suse.cz>
14832 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14833 instead of setting number of formal parameters to zero.
14834 (ipcp_init_stage): Do not set the number of actual parameters to zero
14836 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14837 which are called with variable number of arguments.
14838 (ipcp_insert_stage): Explicitely skipping all nodes which are
14839 called with variable number of arguments.
14840 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14841 number of parameters.
14843 * ipa-prop.h (struct ipa_node_params): Added flag
14844 called_with_var_arguments
14845 (ipa_set_param_count): Added. Changed sole setter to use it.
14846 (ipa_get_param_count): Added. All readers of param_count
14847 converted to use it instead.
14848 (ipa_set_called_with_variable_arg): Added.
14849 (ipa_is_called_with_var_arguments): Added.
14850 (ipa_get_ith_param): Added. All readers of param_decls converted
14852 (ipa_set_cs_argument_count): Added, sole writer to argument_count
14854 (ipa_get_cs_argument_count): Added, all readers of argument_count
14856 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14859 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14860 (struct ipcp_lattice): Renamed cval_type to type
14861 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14863 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14864 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14865 (ipcp_insert_stage): Changed the type of variable cvalue to tree
14866 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14867 (build_const_val): Changed the type of parameter cvalue to tree
14868 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14869 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14871 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14874 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14875 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14876 (ipa_add_method): Renamed to ipa_push_func_to_list
14877 (ipa_remove_method): Renamed to ipa_pop_func_from_list
14878 (ipa_callsite_param_count): Removed.
14879 (ipa_callsite_param_count_set): Removed.
14880 (ipa_callsite_param): Removed.
14881 (ipa_callsite_callee): Removed.
14882 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14883 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14884 (ipa_method_formal_count): Removed.
14885 (ipa_method_formal_count_set): Removed.
14886 (ipa_method_get_tree): Removed.
14887 (ipa_method_tree_map_create): Removed.
14888 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14889 (ipa_create_param_decls_array): Creates the array itself
14890 (ipa_create_param_decls_array): Temporary variable info instead of
14891 a few dereferences.
14892 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14893 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14894 (get_type): Removed.
14895 (ipa_jf_get_info_type): Removed.
14896 (ipa_node_create): Renamed to ipa_create_node_params
14897 (ipa_free): Renamed to ipa_free_all_node_params
14898 (ipa_nodes_create): Renamed to ipa_create_all_node_params
14899 (ipa_edges_create): Renamed to ipa_create_all_edge_args
14900 (ipa_edges_free): Renamed to ipa_free_all_edge_args
14901 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14902 (ipa_free_all_node_params): Deallocation to jump_functions moved to
14903 ipa_free_all_edge_args
14904 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14905 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14906 (ipa_create_methodlist_node): Removed.
14907 (ipa_methodlist_method): Removed.
14908 (ipa_methodlist_method_set): Removed.
14909 (ipa_methodlist_next_method): Removed.
14910 (ipa_methodlist_next_method_set): Removed.
14911 (ipa_method_is_modified): Removed.
14912 (ipa_method_modify_create): Removed.
14913 (ipa_method_modify_init): Temporary variable info instead of a few
14915 (ipa_detect_param_modifications): Temporary variable info instead of
14916 a few dereferences.
14917 (ipa_compute_jump_functions): Temporary variable info instead of
14918 a few dereferences.
14919 (ipa_method_modify_set): Removed.
14920 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14921 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14922 than craph_node as the first parameter.
14923 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14924 (ipa_method_modify_init): Removed.
14925 (ipa_compute_jump_functions): Added a temp variable instead of
14926 repeatadly dereferencing the cgraph_edge.aux pointer
14927 (ipa_callsite_param_set_type): Removed.
14928 (ipa_compute_jump_functions): i renamed to index and moved to
14930 (ipa_callsite_param_set_info_type_formal): Removed.
14931 (ipa_callsite_param_set_info_type): Removed.
14932 (ipa_callsite_param_map_create): Removed.
14933 (ipa_callsite_tree): Removed.
14934 (ipa_callsite_caller): Removed.
14935 (ipa_pop_func_from_list): return_method removed to return_func
14937 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14938 prefixed all values with IPA_. Changed all users.
14939 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14940 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14941 and FORMAL_IPATYPE IPA_PASS_THROUGH.
14942 (union parameter_info): Renamed to jump_func_value.
14943 (union jump_func_value): Renamed value to constant
14944 (struct ipa_jump_func): Renamed info_type to value
14945 (struct ipa_node): Renamed to ipa_node_params
14946 (struct ipa_node_params): Renamed ipa_arg_num to param_count
14947 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14948 (struct ipa_node_params): Renamed ipa_mod to modified_flags
14949 (struct ipa_edge): Renamed to ipa_edge_args
14950 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14951 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14952 (struct ipa_methodlist): Renamed to ipa_func_list
14953 (struct ipa_func_list): method_p renamed to node, next_method
14955 (ipa_methodlist_p): Removed, switched all users to struct pointer
14956 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14958 2008-04-30 Alan Modra <amodra@bigpond.net.au>
14960 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14961 (rs6000_emit_epilogue): Use backchain to restore only when we
14962 have a large frame. Make use of frame pointer to restore if we
14963 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14965 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
14967 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14968 Add mode to zero_extract.
14969 (sign bit tests peepholes): (Ditto.).
14971 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
14973 * config/i386/i386.c (ix86_builtins): Replace Prescott New
14974 Instructions in comments with SSE3.
14975 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
14976 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14977 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14978 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14979 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14980 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14981 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14982 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14983 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14984 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14985 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14986 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14987 (bdesc_sse_args): Renamed to ...
14988 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14989 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14990 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14991 IX86_BUILTIN_FABSQ.
14992 (bdesc_1arg): Moved to ...
14993 (bdesc_args): Here.
14994 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
14995 Instructions in comments with SSE3.
14996 (ix86_expand_sse_operands_builtin): Renamed to ...
14997 (ix86_expand_args_builtin): This. Updated.
14998 (ix86_expand_unop1_builtin): Update comments.
14999 (ix86_expand_builtin): Updated.
15001 2008-04-29 Richard Guenther <rguenther@suse.de>
15003 PR tree-optimization/36078
15004 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15005 Update virtual SSA form after cleaning up the CFG.
15007 2008-04-29 Richard Guenther <rguenther@suse.de>
15009 PR middle-end/15255
15010 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15012 2008-04-29 Richard Guenther <rguenther@suse.de>
15014 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15015 (compute_may_aliases): Do not call finalize_ref_all_pointers.
15016 (compute_flow_insensitive_aliasing): Do not treat
15017 PTR_IS_REF_ALL pointers special.
15018 (get_smt_for): Likewise.
15019 (may_alias_p): Re-structure.
15020 (is_escape_site): A ref-all pointer conversion is not an escape site.
15021 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15022 PTR_IS_REF_ALL pointers special.
15023 * tree-ssa-structalias.h (struct alias_info): Remove
15024 ref_all_symbol_mem_tag field.
15025 (PTR_IS_REF_ALL): Remove.
15027 2008-04-29 Richard Guenther <rguenther@suse.de>
15029 PR middle-end/36077
15030 * fold-const.c (extract_muldiv_1): In combining division constants
15031 make sure to never overflow.
15033 2008-04-29 Nick Clifton <nickc@redhat.com>
15035 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15037 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15040 * optc-gen.awk: Work around HP-UX/IA awk bug.
15042 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
15044 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15047 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
15050 * config/i386/i386.md
15051 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15052 Change operand 1 predicate to nonimmediate_operand.
15054 2008-04-28 Jakub Jelinek <jakub@redhat.com>
15057 * dwarf2out.c (struct die_struct): Mark as chain_circular through
15059 * gengtype.c (walk_type, write_func_for_structure): Handle
15061 * doc/gty.texi: Document chain_circular.
15063 2008-04-28 Richard Guenther <rguenther@suse.de>
15065 PR tree-optimization/36066
15066 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15069 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
15072 * config/i386/i386.md
15073 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15074 Use match_scratch instead of match_operand for operands 3 and 4.
15076 2008-04-27 Richard Guenther <rguenther@suse.de>
15078 PR tree-optimization/18754
15079 PR tree-optimization/34223
15080 * tree-pass.h (pass_complete_unrolli): Declare.
15081 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15082 loop size before and after unconditionally of UL_NO_GROWTH in effect.
15083 Rewrite loop into loop closed SSA form if it is not already.
15084 (tree_unroll_loops_completely): Re-structure to iterate over
15085 innermost loops with intermediate CFG cleanups.
15086 Unroll outermost loops only if requested or the code does not grow
15088 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15089 loops are available.
15090 (tree_vectorize): Instead do so here.
15091 (tree_complete_unroll): Also unroll outermost loops.
15092 (tree_complete_unroll_inner): New function.
15093 (gate_tree_complete_unroll_inner): Likewise.
15094 (pass_complete_unrolli): New pass.
15095 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15096 uses outside of the loop.
15097 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15098 form if it is available.
15099 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15100 * passes.c (init_optimization_passes): Schedule complete inner
15101 loop unrolling pass before the first CCP pass after final inlining.
15103 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
15105 * targhooks.h (default_emutls_var_fields,
15106 default_emutls_var_init): Declare.
15107 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15108 * target.h (struct gcc_target): Add struct emutls member.
15109 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15110 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15111 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15112 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15113 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15114 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15115 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15116 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15117 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15118 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15119 emit debug information.
15120 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15121 * varasm.c: Include targhooks.h.
15122 (emutls_object_section, emutls_tmpl_section): New.
15123 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15124 (EMUTLS_SEPARATOR): New.
15125 (prefix_name): New.
15126 (get_emutls_object_name): New.
15127 (default_emutls_var_fields): New, broken out of ...
15128 (get_emutls_object_type): ... here. Adjust to use target hooks.
15129 (get_emutls_init_templ_addr): Adjust to use target hooks.
15130 (emutls_decl): Adjust to use target hooks.
15131 (emutls_finish): Likewise.
15132 (default_emutls_var_init): New, broken out of ...
15133 (assemble_variable): ... here. Adjust to use target hooks.
15134 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15135 SECCAT_EMUTLS_TMPL.
15136 * c-common.c (handle_section_attribute): Prevent overriding
15137 sections for emulated tls with special sections.
15138 * config/i386/i386.c (x86_64_elf_select_section): Add
15139 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15140 (x86_64_elf_unique_section): Likewise.
15141 * config/vxworks.c: Include tree.h.
15142 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15143 (vxworks_override_options): Set TLS scheme.
15144 * doc/tm.texi (Emulated TLS): New node.
15146 2008-04-26 Simon Baldwin <simonb@google.com>
15149 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15150 with propagated string constants.
15152 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
15154 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15155 constraint for operand 2 when operand 0 is memory operand.
15156 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15157 operand 0 is memory operand.
15158 (fix_trunc<mode>_i387_with_temp): Ditto.
15159 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15160 operand 2 when operand 1 is memory operand.
15161 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15162 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15163 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15164 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15165 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15166 operands 2,3 and 4 when operand 1 is memory operand.
15167 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15169 (fistdi2_floor_with_temp): Ditto.
15170 (fist<mode>2_floor_with_temp): Ditto.
15171 (fistdi2_ceil_with_temp): Ditto.
15172 (fist<mode>2_ceil_with_temp): Ditto.
15173 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15175 2008-04-26 David Daney <ddaney@avtrex.com>
15177 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15179 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15180 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15181 UNSPEC_UPDATE_GOT_VERSION): Renumber.
15182 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15183 (compare_and_swap_12): New insn.
15184 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15185 * config/mips/mips.c (mips_force_binary): New function.
15186 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15187 (mips_expand_compare_and_swap_12): New function.
15188 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15190 2008-04-25 Jan Hubicka <jh@suse.cz>
15193 * cfgexpand.c (pass_expand): Turn into RTL pass.
15194 * passes.c (execute_one_pass): Do pass typechecking after execution.
15195 * tree-pass.h (pass_expand): Turn into RTL pass.
15197 * function.h (struct rtl_data): Move here fields
15198 accesses_prior_frames, calls_eh_return, saves_all_registers,
15199 has_nonlocal_goto, has_asm_statement, is_thunk,
15200 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15201 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15202 arg_pointer_save_area_init from struct function; turn into bool.
15203 (struct function): Move
15204 calls_eh_return, saves_all_registers, has_nonlocal_goto,
15205 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15206 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15207 tail_call_emit, arg_pointer_save_area_init
15208 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
15209 (current_function_returns_struct, current_function_returns_pcc_struct,
15210 current_function_calls_setjmp, current_function_calls_alloca,
15211 current_function_accesses_prior_frames,
15212 current_function_calls_eh_return, current_function_is_thunk,
15213 current_function_stdarg, current_function_profile,
15214 current_function_limit_stack, current_function_uses_pic_offset_table,
15215 current_function_uses_const_pool, current_function_has_nonlocal_label,
15216 current_function_saves_all_registers,
15217 current_function_has_nonlocal_goto,
15218 current_function_has_asm_statement): Remove accesor macros.
15219 * ra-conflict.c (global_conflicts): Update.
15220 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15221 (suitable_for_tail_call_opt_p): Update.
15222 * builtins.c (expand_builtin_return_addr): Update.
15223 (expand_builtin_setjmp_setup): Update.
15224 (expand_builtin_nonlocal_goto): Update.
15225 * final.c (final_start_function): Update.
15226 (profile_function): Update.
15227 (leaf_function_p): Update.
15228 (only_leaf_regs_used): Update.
15229 * df-scan.c (df_get_exit_block_use_set): Update.
15230 * dojump.c (clear_pending_stack_adjust): Update.
15231 * tree-stdarg.c (gate_optimize_stdarg): Update.
15232 * gimple-low.c (lower_function_body): Update.
15233 * global.c (compute_regsets): Update.
15234 (global_alloc): Update.
15235 * dwarf2out.c (dwarf2out_begin_prologue): Update.
15236 * expr.c (expand_assignment): Update.
15237 * dse.c (dse_step0): Update.
15238 (dse_step1): Update.
15239 * c-decl.c (store_parm_decls): Update.
15240 * local-alloc.c (combine_regs): Update.
15241 (find_free_reg): Update.
15242 * function.c (assign_parms_augmented_arg_list): Update.
15243 (assign_parm_find_data_types): Update.
15244 (assign_parms): Update.
15245 (allocate_struct_function): Update.
15246 (expand_function_start): Update.
15247 (expand_function_end): Update.
15248 (get_arg_pointer_save_area): Update.
15249 (thread_prologue_and_epilogue_insns): Update.
15250 (rest_of_match_asm_constraints): Update.
15251 * stor-layout.c (variable_size): Update.
15252 * gcse.c (gcse_main): Update.
15253 (bypass_jumps): Update.
15254 * gimplify.c (gimplify_function_tree): Update.
15255 * calls.c (emit_call_1): Update.
15256 (expand_call): Update.
15257 * bt-load.c (compute_defs_uses_and_gen): Update.
15258 * except.c (sjlj_assign_call_site_values): Update.
15259 (sjlj_emit_function_enter): Update.
15260 (can_throw_external): Update.
15261 (set_nothrow_function_flags): Update.
15262 (expand_builtin_unwind_init): Update.
15263 (expand_eh_return): Update.
15264 (convert_to_eh_region_ranges): Update.
15265 (output_function_exception_table): Update.
15266 * emit-rtl.c (gen_tmp_stack_mem): Update.
15267 * cfgexpand.c (expand_used_vars): Update.
15268 (tree_expand_cfg): Update.
15269 * cfgcleanup.c (rest_of_handle_jump): Update.
15270 * explow.c (allocate_dynamic_stack_space): Update.
15271 * varasm.c (assemble_start_function): Update.
15272 (force_const_mem): Update.
15273 (mark_constant_pool): Update.
15274 * tree-optimize.c (tree_rest_of_compilation): Update.
15275 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15276 * tree-cfg.c (notice_special_calls): Update.
15277 (is_ctrl_altering_stmt): Update.
15278 (tree_can_make_abnormal_goto): Update.
15279 (tree_purge_dead_abnormal_call_edges): Update.
15280 * config/alpha/predicates.md: Update.
15281 * config/alpha/alpha.c (alpha_sa_mask): Update.
15282 (alpha_sa_size): Update.
15283 (alpha_does_function_need_gp): Update.
15284 (alpha_expand_prologue): Update.
15285 (alpha_start_function): Update.
15286 (alpha_output_function_end_prologue): Update.
15287 (alpha_expand_epilogue): Update.
15288 * config/frv/frv.c (frv_stack_info): Update.
15289 (frv_expand_epilogue): Update.
15290 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15291 (s390_register_info): Update.
15292 (s390_frame_info): Update.
15293 (s390_init_frame_layout): Update.
15294 (s390_can_eliminate): Update.
15295 (save_gprs): Update.
15296 * config/spu/spu.c (spu_split_immediate): Update.
15297 (need_to_save_reg): Update.
15298 (spu_expand_prologue): Update.
15299 (spu_expand_epilogue): Update.
15300 * config/sparc/sparc.md: Update.
15301 * config/sparc/sparc.c (eligible_for_return_delay): Update.
15302 (sparc_tls_got): Update.
15303 (legitimize_pic_address): Update.
15304 (sparc_emit_call_insn): Update.
15305 (sparc_expand_prologue): Update.
15306 (output_return): Update.
15307 (print_operand): Update.
15308 (sparc_function_ok_for_sibcall): Update.
15309 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15310 * config/m32r/m32r.md: Update.
15311 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15312 (m32r_compute_frame_size): Update.
15313 (m32r_expand_prologue): Update.
15314 (m32r_expand_epilogue): Update.
15315 (m32r_legitimize_pic_address): Update.
15316 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15317 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15318 * config/i386/i386.c (ix86_frame_pointer_required): Update.
15319 (gen_push): Update.
15320 (ix86_save_reg): Update.
15321 (ix86_compute_frame_layout): Update.
15322 (ix86_expand_prologue): Update.
15323 (ix86_expand_epilogue): Update.
15324 * config/sh/sh.c (output_stack_adjust): Update.
15325 (calc_live_regs): Update.
15326 (sh5_schedule_saves): Update.
15327 (sh_expand_prologue): Update.
15328 (sh_expand_epilogue): Update.
15329 (sh_setup_incoming_varargs): Update.
15330 (sh_allocate_initial_value): Update.
15331 (sh_get_pr_initial_val): Update.
15332 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15333 * config/sh/sh.md (label:): Update.
15334 * config/avr/avr.c (out_movhi_mr_r): Update.
15335 * config/crx/crx.h (enum): Update.
15336 * config/xtensa/xtensa.h (along): Update.
15337 * config/stormy16/stormy16.c Update.
15338 (xstormy16_compute_stack_layout): Update.
15339 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15340 (fr30_expand_prologue): Update.
15341 * config/cris/cris.c (cris_conditional_register_usage): Update.
15342 (cris_reg_saved_in_regsave_area): Update.
15343 (cris_initial_frame_pointer_offset): Update.
15344 (cris_simple_epilogue): Update.
15345 (cris_expand_prologue): Update.
15346 (cris_expand_epilogue): Update.
15347 (cris_expand_pic_call_address): Update.
15348 (cris_asm_output_symbol_ref): Update.
15349 (cris_asm_output_label_ref): Update.
15350 * config/cris/cris.md Update.
15351 * config/iq2000/iq2000.c (compute_frame_size): Update.
15352 (iq2000_expand_epilogue): Update.
15353 * config/mt/mt.h (save_direction): Update.
15354 * config/mn10300/mn10300.c (mn10300_function_value): Update.
15355 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15356 (ia64_secondary_reload_class): Update.
15357 * config/m68k/m68k.c (m68k_save_reg): Update.
15358 (m68k_expand_prologue): Update.
15359 (m68k_expand_epilogue): Update.
15360 (legitimize_pic_address): Update.
15361 * config/rs6000/rs6000.c (rs6000_got_register): Update.
15362 (first_reg_to_save): Update.
15363 (first_altivec_reg_to_save): Update.
15364 (compute_vrsave_mask): Update.
15365 (compute_save_world_info): Update.
15366 (rs6000_stack_info): Update.
15367 (spe_func_has_64bit_regs_p): Update.
15368 (rs6000_ra_ever_killed): Update.
15369 (rs6000_emit_eh_reg_restore): Update.
15370 (rs6000_emit_allocate_stack): Update.
15371 (rs6000_emit_prologue): Update.
15372 (rs6000_emit_epilogue): Update.
15373 (rs6000_output_function_epilogue): Update.
15374 (output_profile_hook): Update.
15375 (rs6000_elf_declare_function_name): Update.
15376 * config/rs6000/rs6000.h (rs6000_args): Update.
15377 * config/rs6000/rs6000.md: Update.
15378 * config/mcore/mcore.c (mcore_expand_prolog): Update.
15379 * config/arc/arc.c (arc_output_function_epilogue): Update.
15380 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15381 * config/darwin.c (machopic_function_base_name): Update.
15382 * config/score/score3.c (score3_compute_frame_size): Update.
15385 (score3_epilogue): Update.
15386 * config/score/score7.c (score7_compute_frame_size): Update.
15387 (score7_prologue): Update.
15388 (score7_epilogue): Update.
15389 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15390 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15391 * config/arm/arm.c (use_return_insn): Update.
15392 (require_pic_register): Update.
15393 (arm_load_pic_register): Update.
15394 (arm_compute_save_reg0_reg12_mask): Update.
15395 (arm_compute_save_reg_mask): Update.
15396 (thumb1_compute_save_reg_mask): Update.
15397 (output_return_instruction): Update.
15398 (arm_output_function_prologue): Update.
15399 (arm_output_epilogue): Update.
15400 (arm_get_frame_offsets): Update.
15401 (arm_expand_prologue): Update.
15402 (thumb_pushpop): Update.
15403 (thumb_exit): Update.
15404 (thumb1_expand_prologue): Update.
15405 (thumb1_expand_epilogue): Update.
15406 (arm_unwind_emit): Update.
15407 (arm_output_fn_unwind): Update.
15408 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15409 * config/arm/arm.md: Update.
15410 * config/pa/pa.md: Update.
15411 * config/pa/pa.c (legitimize_pic_address): Update.
15412 (compute_frame_size): Update.
15413 (hppa_expand_prologue): Update.
15414 (hppa_expand_epilogue): Update.
15415 (borx_reg_operand): Update.
15416 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15417 (HARD_REGNO_RENAME_OK): Update.
15418 * config/mips/mips.c (mips_global_pointer): Update.
15419 (mips_save_reg_p): Update.
15420 (mips_compute_frame_info): Update.
15421 (mips_frame_pointer_required): Update.
15422 (mips_expand_prologue): Update.
15423 (mips_expand_epilogue): Update.
15424 (mips_can_use_return_insn): Update.
15425 (mips_reorg_process_insns): Update.
15426 * config/v850/v850.c (compute_register_save_size): Update.
15427 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15428 * config/mmix/mmix.c (along): Update.
15429 (mmix_expand_epilogue): Update.
15430 * config/bfin/bfin.c (legitimize_pic_address): Update.
15431 (must_save_p): Update.
15432 (stack_frame_needed_p): Update.
15433 (add_to_reg): Update.
15434 (bfin_expand_prologue): Update.
15435 * stmt.c (expand_asm_operands): Update.
15436 * reload1.c (reload): Update.
15437 (init_elim_table): Update.
15439 2008-04-25 Bob Wilson <bob.wilson@acm.org>
15441 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15443 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
15445 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15446 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
15447 (mov<mode>): Removed.
15448 (*movv4sf_internal): Likewise.
15449 (*movv2df_internal): Likewise.
15451 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15453 * config.gcc (crx-*-elf): Remove deprecation.
15455 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
15457 * config/i386/cygming-crtend.c (register_frame_ctor): Register
15458 __gcc_deregister_frame with atexit.
15459 (deregister_frame_dtor): Remove.
15461 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
15462 Nathan Sidwell <nathan@codesourcery.com>
15464 * config/rs6000/rs6000.opt (mspe): Remove Var property.
15466 * config/rs6000/rs6000.h (rs6000_spe): Declare.
15467 (rs6000_isel): Likewise.
15468 * config/rs6000/rs6000.c (rs6000_spe): New variable.
15469 (rs6000_isel): New variable.
15470 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15472 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15475 * c-common.c (handle_vector_size_attribute): Call
15476 lang_hooks.types.reconstruct_complex_type instead of
15477 reconstruct_complex_type.
15478 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15479 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15480 * langhooks.h (struct lang_hooks_for_types): Add
15481 reconstruct_complex_type hook.
15482 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15483 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15485 2008-04-24 Richard Guenther <rguenther@suse.de>
15487 * c-common.h (check_builtin_function_arguments): Declare.
15488 * c-common.c (validate_nargs): New function.
15489 (check_builtin_function_arguments): Likewise.
15490 * c-typeck.c (build_function_call): Call
15491 check_builtin_function_arguments.
15492 * builtins.c (fold_builtin_classify): Remove error reporting code.
15493 (fold_builtin_unordered_cmp): Likewise.
15494 (fold_builtin_1): Likewise.
15495 (fold_builtin_n): Likewise.
15497 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15499 PR tree-optimization/36008
15500 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15501 the original op1, rather than delta by step.
15503 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
15504 Sebastian Pop <sebastian.pop@amd.com>
15506 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15507 eliminate_local_variables_stmt, eliminate_local_variables,
15508 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15509 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15510 of code delimited by two edges in the CFG.
15511 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15512 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15513 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
15514 the case of parallelisation of reductions.
15515 (expr_invariant_in_region_p): New.
15517 * tree-flow.h (gather_blocks_in_sese_region): Declared.
15518 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15520 2008-04-24 Ira Rosen <irar@il.ibm.com>
15521 Richard Guenther <rguenther@suse.de>
15523 PR tree-optimization/36034
15524 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15525 incapable of dealing with loads with gaps.
15527 2008-04-24 Rafael Espindola <espindola@google.com>
15529 * tree-flow.h (vrp_evaluate_conditional): Change signature.
15530 * tree-ssa-propagate.c (fold_predicate_in): Update call to
15531 vrp_evaluate_conditional.
15532 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15533 (vrp_evaluate_conditional): Split the cond argument.
15534 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15535 (simplify_stmt_for_jump_threading): Update call to
15536 vrp_evaluate_conditional.
15538 2008-04-24 Ira Rosen <irar@il.ibm.com>
15540 PR tree-optimization/35982
15541 * tree-vect-analyze.c (vect_check_interleaving): Check that the
15542 interleaved data-refs are of the same type.
15544 2008-04-24 Danny Smith <dannysmith@users.net>
15546 * c-format.c (check_format_info_main): Use strncmp rather than a
15547 magic prefix to handle multichar length specs.
15548 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15549 Don't prefix "I64" and "I32" with '\0'.
15551 2008-04-24 Jakub Jelinek <jakub@redhat.com>
15554 * config/i386/i386.c (init_cumulative_args): Don't pass anything
15555 in registers for -m32 only if stdarg_p (fntype).
15557 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
15559 PR rtl-optimization/36006
15560 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15561 temp to op0 in order to avoid invalid rtx sharing.
15563 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
15565 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
15566 check TREE_INVARIANT.
15567 * tree-gimple.c (is_gimple_address): New.
15568 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15569 * tree-gimple.h (is_gimple_address): New.
15570 * tree.h (decl_address_invariant_p): New.
15571 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15572 (build_string): Likewise.
15573 (decl_address_invariant_p): New, from is_gimple_invariant_address.
15574 (tree_invariant_p_1): Likewise.
15575 (save_expr): Use it.
15576 (tree_invariant_p): New.
15577 (skip_simple_arithmetic): Use it.
15578 (stabilize_reference_1): Use it.
15579 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15581 (build1_stat): Drop code to compute TREE_INVARIANT.
15582 (build2_stat): Drop code to compute TREE_INVARIANT.
15583 (build3_stat): Drop code to compute TREE_INVARIANT.
15584 (build4_stat): Drop code to compute TREE_INVARIANT.
15585 (build5_stat): Drop code to compute TREE_INVARIANT.
15586 (build7_stat): Drop code to compute TREE_INVARIANT.
15587 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15588 * tree.h (struct tree_base): Remove invariant_flag.
15589 (TREE_INVARIANT): Remove.
15590 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15591 (fold_builtin_expect): Check TREE_CONSTANT.
15592 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15593 * c-tree.h (c_expr_to_decl): Drop third parameter.
15594 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15595 (build_c_cast): Don't set TREE_INVARIANT.
15596 (pop_init_level): Don't set TREE_INVARIANT.
15597 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15598 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15600 (gimplify_init_constructor): Don't set TREE_INVARIANT.
15601 (gimplify_addr_expr): Adjust comment.
15602 * tree-mudflap.c (mf_build_string):
15603 * print-tree.c (print_node): Don't print TREE_INVARIANT.
15604 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15605 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15606 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15607 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15608 * langhooks.h (struct lang_hooks): Drop third parameter from
15611 2008-04-23 Richard Guenther <rguenther@suse.de>
15613 PR tree-optimization/27799
15614 PR tree-optimization/32921
15615 PR tree-optimization/32624
15616 * tree-ssa-structalias.c (merge_smts_into): Only merge the
15617 SMTs aliases and the tag itself into the solution.
15618 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15619 merge the points-to solution back into the SMT aliases.
15620 (may_alias_p): Use alias_set_subset_of instead of
15621 aliases_conflict_p. A pointer which points to
15622 memory with alias set zero may access any variable.
15624 2008-04-23 Richard Guenther <rguenther@suse.de>
15626 * alias.c (alias_set_subset_of): Correctly handle asking
15627 if zero is a subset of an alias set with zero child.
15628 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15629 (compute_flow_insensitive_aliasing): Correctly walk all
15630 pointers. Do not unnecessarily union sets.
15632 2008-04-23 Richard Guenther <rguenther@suse.de>
15634 PR middle-end/36021
15635 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15637 2008-04-22 Tomas Bily <tbily@suse.cz>
15639 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15641 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15643 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15644 * tree-ssa-structalias.c (get_constraint_for): Likewise.
15645 * tree-inline.c (estimate_num_insns_1): Likewise.
15646 * varasm.c (const_hash_1, compare_constant, copy_constant)
15647 (compute_reloc_for_constant, output_addressed_constants): Likewise.
15648 * emit-rtl.c (component_ref_for_mem_expr)
15649 (set_mem_attributes_minus_bitpos): Likewise.
15650 * expr.c (highest_pow2_factor, expand_expr_real_1, )
15651 (is_aligning_offset): Likewise.
15652 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15653 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15654 * dojump.c (do_jump): Likewise.
15655 * builtins.c (get_pointer_alignment, get_memory_rtx)
15656 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15657 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15659 2008-04-23 Jakub Jelinek <jakub@redhat.com>
15661 PR rtl-optimization/36017
15662 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15663 expanding the library call.
15665 2008-04-22 Ian Lance Taylor <iant@google.com>
15667 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15668 than size_in_bytes.
15670 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
15672 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15673 of LR/CTR moves for Power6.
15675 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
15677 PR middle-end/36003
15678 * passes.c (init_optimization_passes): Remove
15679 pass_fast_rtl_byte_dce.
15681 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
15684 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15685 builtin functions to generate faster code.
15686 (_mm_cvtpu16_ps): Ditto.
15687 (_mm_cvtpi32x2_ps): Ditto.
15689 2008-04-22 Nick Clifton <nickc@redhat.com>
15691 * common.opt (ftree-loop-distribution): Add Optimization
15694 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15695 (frv_expand_builtin_va_start): Likewise.
15697 * config/arm/arm.c (thumb_find_work_register): Fix location of
15698 argument register count.
15700 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15702 Support scheduling for ColdFire V1 and V3 microarchitecture.
15703 Improve scheduling of multiplication instructions.
15705 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
15706 (mac): New instruction attribute.
15707 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15708 (m68k_sched_mac): New variable.
15709 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15710 Handle cfv1 and cfv3.
15711 (max_insn_size): New static variable.
15712 (struct _sched_ib): New type.
15713 (sched_ib): New static variable.
15714 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15715 to fields of 'struct _sched_ib sched_ib'. Update all uses.
15716 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15718 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15719 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
15720 new variables. Update.
15721 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15722 Add modeling of cfv3 instruction buffer. Update.
15723 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15724 * config/m68k/m68k.h (TUNE_CFV3): New macro.
15725 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15726 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15727 a particular reservation applies to.
15728 (type2): Reorganize attribute values. Rename alu to alu_reg,
15729 alu_l to alu, move_l to omove. Join move to alu. Split mul
15730 to mul_l and mul_w.
15731 (cf_ib_*): Simplify description of instruction buffer.
15732 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15733 (cf_mem): Split into cf_mem1 and cf_mem2.
15734 (cf_v2_move_??): Rename to cfv12_alu_??.
15735 (cf_v2_move_l_??): Rename to cfv12_omove_??.
15736 (cf_v2_mul_??): Remove reservations.
15737 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15738 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15739 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15741 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15742 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15743 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15744 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15745 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15746 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15747 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15748 expansions of the above reservations for instructions of sizes
15751 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
15753 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15755 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
15757 * coverage.c: Include tree-pass.h.
15758 (coverage_counter_alloc): Print da_file_name to the dump file.
15760 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
15762 * sbitmap.c (sbitmap_range_empty_p): New function.
15763 * sbitmap.h (sbitmap_range_empty_p): New function.
15764 * bitmap.h: Now includes obstack.h.
15766 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
15767 Kenneth Zadeck <zadeck@naturalbridge.com>
15769 * dbgcnt.def (ra_byte_scan): Added.
15770 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15771 when the last hit happens for a counter.
15772 * timevar.def (TV_DF_BYTE_LR): New variable.
15773 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15774 * passes.c (pass_fast_rtl_byte_dce): New pass.
15775 * fwprop.c (update_df): Added mode to call df_ref_create.
15776 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15777 DF_REF_EXTRACT_OFFSET.
15778 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15779 DF_BYTE_LR_OUT, df_byte_lr): New macro.
15781 (df_ref_extract): Added mode field.
15782 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15783 DF_REF_EXTRACT_OFFSET.
15784 (DF_REF_EXTRACT_MODE): New macro.
15785 (df_byte_lr_bb_info): New structure.
15786 (df_print_byte_regset, df_compute_accessed_bytes,
15787 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15788 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15789 df_byte_lr_simulate_uses,
15790 df_byte_lr_simulate_artificial_refs_at_top,
15791 df_byte_lr_simulate_artificial_refs_at_end,
15792 df_compute_accessed_bytes): New function.
15793 (df_ref_create): Add parameter.
15794 (df_byte_lr_get_bb_info): New inline function.
15795 * df-scan.c (df_ref_record, df_uses_record,
15796 df_ref_create_structure): Added mode parameter.
15797 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15798 df_defs_record, df_uses_record, df_get_conditional_uses,
15799 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15800 df_entry_block_defs_collect, df_exit_block_uses_collect):
15801 Added mode parameter to calls to df_ref_record, df_uses_record,
15802 df_ref_create_structure.
15803 (df_ref_equal_p, df_ref_compare): Added test for modes.
15804 (df_ref_create_structure): Added code to set mode. Renamed
15805 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15806 DF_REF_EXTRACT_OFFSET.
15807 * df-core.c (df_print_byte_regset): New function.
15808 * df-byte-scan.c: New file.
15809 * df-problems.c (df_rd_transfer_function): Removed unnecessary
15810 calls to BITMAP_FREE.
15811 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15812 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15813 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15814 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15815 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15816 df_byte_lr_local_compute, df_byte_lr_init,
15817 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15818 df_byte_lr_transfer_function, df_byte_lr_free,
15819 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15820 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15821 df_byte_lr_simulate_uses,
15822 df_byte_lr_simulate_artificial_refs_at_top,
15823 df_byte_lr_simulate_artificial_refs_at_end): New function.
15824 * dce.c (byte_dce_process_block): New function.
15825 (dce_process_block): au is now passed in rather than computed
15826 locally. Changed loops that look at artificial defs to not look
15827 for conditional or partial ones, because there never are any.
15828 (fast_dce): Now is able to drive byte_dce_process_block or
15829 dce_process_block depending on the kind of dce being done.
15830 (rest_of_handle_fast_dce): Add parameter to fast_dce.
15831 (rest_of_handle_fast_byte_dce): New function.
15832 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15833 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15835 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
15838 * gcc.h: Added fortran options that take arguments to
15839 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15842 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
15844 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15845 scalarization if on the LHS and not a full access.
15847 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15849 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15851 2008-04-18 Rafael Espindola <espindola@google.com>
15853 * tree-vrp.c (find_case_label_index): Fix the binary search.
15854 (find_case_label_range): New.
15855 (vrp_visit_switch_stmt): Use find_case_label_range.
15856 (simplify_switch_using_ranges): Use find_case_label_range.
15858 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
15860 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15861 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15863 2008-04-18 Tom Tromey <tromey@redhat.com>
15866 * doc/cpp.texi (Implementation-defined behavior): Mention
15869 2008-04-18 Ian Lance Taylor <iant@google.com>
15871 * fold-const.c (pointer_may_wrap_p): New static function.
15872 (fold_comparison): Add another test for pointer overflow. Use
15873 pointer_may_wrap_p to disable some false positives.
15875 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
15877 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15878 (fname_as_string): Match updated cpp_interpret_string prototype.
15879 (fix_string_type): Support char16_t* and char32_t*.
15880 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15881 derivative) nodes. Register as builtin if C++0x.
15882 (c_parse_error): Support CPP_CHAR{16,32}.
15883 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15884 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15885 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15886 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15887 CTI_CHAR32_ARRAY_TYPE>: New elements.
15888 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15889 char32_type_node, signed_char32_type_node, char16_array_type_node,
15890 char32_array_type_node): New defines.
15891 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15892 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15893 (lex_string): Support CPP_STRING{16,32}, match updated
15894 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15895 (lex_charconst): Support CPP_CHAR{16,32}.
15896 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15897 and CPP_STRING{16,32}.
15899 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
15902 * aclocal.m4: Regenerate.
15903 * configure: Regenerate.
15905 2008-04-18 Jan Hubicka <jh@suse.cz>
15907 * except.c (dw2_size_of_call_site_table,
15908 sjlj_size_of_call_site_table): Use vector API for call_site_record.
15910 * cgraphbuild.c (build_cgraph_edges): Update.
15911 * tree-pass.h: Update comment.
15912 * final.c (leaf_function_p): Update.
15913 (leaf_renumber_regs): Update.
15914 (rest_of_clean_state): Update.
15915 * omp-low.c (expand_omp_parallel): Update.
15916 * ipa-reference.c (analyze_function): Update.
15917 * reorg.c (find_end_label): Update.
15918 (optimize_skip): Update.
15919 (fill_simple_delay_slots): Update.
15920 (fill_simple_delay_slots): Update.
15921 (make_return_insns): Update.
15922 (dbr_schedule): Update.
15923 * gimple-low.c (record_vars_into): Update.
15924 * cfgbuild.c (make_edges): Update.
15925 * function.c (assign_stack_local): Update.
15926 (assign_parm_adjust_stack_rtl): Update.
15927 (locate_and_pad_parm): Update.
15928 (allocate_struct_function): Do not initialize stack_alignment_needed
15929 and preferred_stack_boundary here.
15930 (stack_protect_prologue): Update.
15931 (stack_protect_epilogue): Update.
15932 (expand_function_start): Initialize stack_alignment_needed,
15933 preferred_stack_boundary and max_jumptable_ents.
15934 (expand_function_end): Update.
15935 (free_after_compilation): Do not NULLify epilogue_delay_list.
15936 * function.h (struct rtl_data): Add stack_protect_guard,
15937 stack_alignment_needed,
15938 preferred_stack_boundary, epilogue_delay_list.
15939 (struct function): Remove value_histograms, stack_alignment_needed,
15940 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15942 unexpanded_var_list, stack_protect_guard.
15943 (current_function_epilogue_delay_list): Remove.
15944 * ipa-type-escape.c (analyze_function): Update.
15945 * gimplify.c (pop_gimplify_context): Update comment.
15946 * calls.c (expand_call): Update.
15947 (emit_library_call_value_1): Update.
15948 * except.c (set_nothrow_function_flags): Update.
15949 * cfgexpand.c (get_decl_align_unit): Update.
15950 (create_stack_guard): Update.
15951 (estimated_stack_frame_size): Update.
15952 (expand_used_vars): Update.
15953 (tree_expand_cfg): Free histogram earliers, init expansion variables.
15954 * explow.c (allocate_dynamic_stack_space): Update.
15955 * tree-ssa-live.c (remove_unused_locals): Update.
15956 * varasm.c (mark_constant_pool): Update.
15957 * tree-inline.c (remap_decls): Update.
15958 (initialize_cfun): Update.
15959 (declare_return_variable): Update.
15960 (inline_forbidden_p): Update.
15961 (expand_call_inline): Update.
15962 (declare_inline_vars): Update.
15963 (tree_function_versioning): Update.
15964 * tree-flow.h (value_histograms): New.
15965 (VALUE_HISTOGRAMS): New macro.
15966 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15968 * tree-cfg.c (set_bb_for_stmt): Update.
15969 (replace_by_duplicate_decl): Update.
15970 (move_block_to_fn): Update.
15971 (new_label_mapper): Update.
15972 (dump_function_to_file): Update.
15973 * ipa-struct-reorg.c (build_data_structure): Update.
15974 * cfgrtl.c (print_rtl_with_bb): Update.
15975 * reload1.c (reload): Update.
15977 * config/i386/i386.c (setup_incoming_varargs_64,
15978 ix86_compute_frame_layout): Update.
15979 * config/arc/arc.c (arc_output_function_epilogue): Update.
15981 2008-04-18 Marius Strobl <marius@FreeBSD.org>
15983 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15984 for FreeBSD as well.
15985 * gthr-posix95.h: Likewise.
15987 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
15989 PR rtl-optimization/35838
15990 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15991 out the byte offset of the first subreg.
15993 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
15995 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15996 to split_ti instead of three separate calls with single member arrays.
15997 (subti3 splitter): Ditto.
15998 (adddi3 splitter): Ditto with split_di.
15999 (subdi3 splitter): Ditto.
16000 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16001 two separate calls with single member arrays. Swap match_dup
16002 operands 1 and 2 to better fit into the array.
16003 (negdi2 splitter): Ditto with split_di.
16004 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
16005 two separate calls with single member arrays. Swap match_dup operands
16006 6 and 7 to better fit into the array.
16008 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
16010 * config/i386/i386.c (sse_builtin_type): New.
16011 (bdesc_sse_args): Likewise.
16012 (bdesc_sse_3arg): Removed.
16013 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16014 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16015 IX86_BUILTIN_ROUNDPS.
16016 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
16017 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
16018 IX86_BUILTIN_ROUNDPS.
16019 (ix86_expand_sse_4_operands_builtin): Removed.
16020 (ix86_expand_sse_operands_builtin): New.
16021 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16022 and CODE_FOR_sse4_1_roundps.
16023 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16024 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
16026 2008-04-17 Alan Modra <amodra@bigpond.net.au>
16029 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16030 regs before frame pop when needed. If use_backchain_to_restore_sp
16031 then load backchain into a temp reg to restore vr and vrsave. Add
16032 code to restore vr after frame pop if possible.
16034 2008-04-17 Richard Guenther <rguenther@suse.de>
16036 * tree-vn.c (expressions_equal_p): Do not check type
16037 equality or compatibility before calling operand_equal_p.
16038 * fold-const.c (operand_equal_p): Check equivalence of
16039 integer constants before bailing out due to signedness or
16040 precision differences.
16041 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16042 spurious differences in type qualification. Ignore types
16043 for COMPONENT_REFs at all.
16045 2008-04-17 Christian Bruel <christian.bruel@st.com>
16047 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16048 msw_skip comparison.
16050 2008-04-16 Jakub Jelinek <jakub@redhat.com>
16053 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16056 PR tree-optimization/35899
16057 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16058 rather than TREE_OPERAND.
16060 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
16063 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16064 temporary registers. Change operand predicate to general_operand.
16065 (remainderxf3): Ditto.
16067 2008-04-16 Richard Guenther <rguenther@suse.de>
16069 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16070 * tree-affine.c (aff_combination_expand): Look through some
16073 2008-04-15 Doug Kwan <dougkwan@google.com>
16075 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16077 * tree-pretty-print.c (dump_generic_node): Ditto.
16078 * final.c (output_addr_const): Ditto.
16079 * dwarf2out.c (output_cfi): Ditto.
16080 * c-pretty-print.c (pp_c_integer_constant): Ditto.
16081 * print-rtl.c (print_rtx): Ditto.
16082 * print-tree.c (print_node_brief, print_node): Ditto.
16083 * c-common.c (match_case_to_enum_1): Ditto.
16084 * sched-vis.c (print_value): Ditto.
16085 * config/i386/i386.c (print_operand): Cast to long unsigned int
16088 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
16089 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
16090 MS Windows VirtualProtect function.
16092 2008-04-15 Jan Hubicka <jh@suse.cz>
16094 * gengtype.c (write_root): Param_is argument is OK.
16095 * expr.c (expand_expr_real_1): Update call of get_exception_*.
16096 * function.h: Include varray.h
16097 (rtl_eh): New stucture based on except.c one.
16098 (call_site_record): New forward declaration and vector type.
16099 * calls.c (emit_call_1): Do not call
16100 note_current_region_may_contain_throw.
16101 * except.c (eh_status): Remove cur_region, try_region since they are
16103 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16104 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16105 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16106 Remove call_site_data_used, call_site_data_size.
16107 Turn call_site_record into vector in function.h.
16108 (note_current_region_may_contain_throw): Remove.
16109 (get_exception_pointer, get_exception_filter): Do not take struct
16110 function argument; update.
16111 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16112 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16113 build_post_landing_pads, dw2_build_landing_pads,
16114 sjlj_assign_call_site_values, sjlj_mark_call_sites,
16115 sjlj_emit_function_enter, sjlj_emit_function_enter,
16116 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16117 sjlj_build_landing_pads, finish_eh_generation,
16118 remove_exception_handler_label, remove_eh_handler,
16119 maybe_remove_eh_handler, add_reachable_handler,
16120 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16121 add_action_record, collect_one_action_chain, add_call_site,
16122 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16123 sjlj_output_call_site_table, output_function_exception_table,
16124 * except.h (note_current_region_may_contain_throw): Remove
16125 (get_exception_pointer, get_exception_filter): Do not take struct
16127 * Makefile.in (GTFILES): Put varargs before struct function.
16129 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
16131 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16132 punt for STRING_CST.
16133 (get_constraint_for): Deal with STRING_CST here instead.
16135 2008-04-15 Richard Guenther <rguenther@suse.de>
16137 * tree-ssa-propagate.c (substitute_and_fold): Substitute
16138 statements in a basic-block with a backward walk. Do not
16139 substitute into dead statements but instead remove those.
16141 2008-04-15 Richard Guenther <rguenther@suse.de>
16143 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16144 to zero, thus disable creation of SFTs.
16146 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
16148 * tree-predcom.c (suitable_reference_p): Return false if the
16149 reference can throw.
16151 2008-04-15 Jakub Jelinek <jakub@redhat.com>
16154 * c-decl.c (finish_decl): If extern or static var has variable
16155 size, set TREE_TYPE (decl) to error_mark_node.
16157 2008-04-15 Rafael Espindola <espindola@google.com>
16159 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16162 2008-04-15 Richard Guenther <rguenther@suse.de>
16164 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16165 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16166 (visit_reference_op_load): Do walk vuse-vdef chains on
16167 vn_reference_lookup.
16168 (visit_reference_op_store): But do not here.
16169 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16170 vn_reference_lookup.
16171 (vn_lookup_with_vuses): But do so here.
16173 2008-04-14 Ian Lance Taylor <iant@google.com>
16175 * fold-const.c (fold_overflow_warning): Remove assertion.
16177 2008-04-15 Ben Elliston <bje@au.ibm.com>
16179 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16180 temp1 local variables.
16182 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
16185 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16186 ".text.unlikely" section as executable.
16188 2008-04-14 James E. Wilson <wilson@tuliptree.org>
16190 * config/ia64/ia64.c (rtx_needs_barrier): Handle
16191 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16192 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16193 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16194 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16195 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16196 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16198 2008-04-14 Ian Lance Taylor <iant@google.com>
16200 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16201 * fold-const.c (fold_comparison): If appropriate, test
16202 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16203 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16204 reassociating a pointer type.
16205 * doc/invoke.texi (Optimize Options): Document that
16206 -fstrict-overflow applies to pointer wraparound.
16208 2008-04-13 Jan Hubicka <jh@suse.cz>
16210 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16212 2008-04-12 Andrew Pinski <pinskia@gmail.com>
16214 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16215 we are going to "save the world".
16217 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
16219 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16220 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16221 operand 0 constraint, not "=".
16223 2008-04-11 James E. Wilson <wilson@tuliptree.org>
16225 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16227 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
16229 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16230 of size of positions_needed * CHAR_BIT.
16232 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
16234 PR middle-end/35897
16235 * dse.c (store_info): Change positions_needed to unsigned
16237 (lowpart_bitmask): New.
16238 (record_store): Cast to unsigned HOST_WIDE_INT for
16239 positions_needed. Assert width <= size of positions_needed *
16240 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
16241 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
16242 lowpart_bitmask to set mask.
16244 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
16246 * config/bfin/constraints.md: New file.
16247 * config/bfin/bfin.md: Include it.
16248 (adddi3): Use satisfies_constraint functions instead of the old macros.
16249 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16250 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16251 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16252 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16253 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16254 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16255 EXTRA_CONSTRAINT): Delete.
16256 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16257 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16259 * config/bfin/bfin.c: Include "tm-constrs.h".
16260 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16261 Use satisfies_constraint functions instead of the old macros.
16262 * doc/md.texi (Blackfin Constraints): Update file name reference.
16264 2008-04-11 Richard Guenther <rguenther@suse.de>
16266 PR tree-optimization/35869
16267 * tree-vrp.c (execute_vrp): Move switch statement update after
16268 jump threading. Schedule another cfg cleanup run.
16270 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
16273 * attribs.c (decl_attributes): Return early on errorneous node.
16275 2008-04-10 Oleg Ryjkov <olegr@google.com>
16277 * tree.h (struct tree_base): Added a new flag default_def_flag.
16278 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16280 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
16282 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16284 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16287 * pa.md: Define mode iterator P. Define mode attribute dwc.
16288 (dcacheflush): Update pattern to use iterator P and attribute dwc.
16289 (icacheflush): Likewise.
16290 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16291 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16293 2008-04-11 Ben Elliston <bje@au.ibm.com>
16295 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16297 2008-04-10 Rafael Espindola <espindola@google.com>
16299 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16300 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16301 (extract_range_from_expr): The same.
16303 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16305 * config/mips/mips.md (GPR2): New mode iterator.
16306 (seq): Add comment.
16307 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16308 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16309 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16310 Rewrite these to take two modes, the mode of comparison and the
16311 mode of the destination.
16312 * config/mips/mips.c (mips_expand_scc): Instead of having
16313 paradoxical subreg as destination, expand "narrowing" scc if mode
16314 of comparison is SI and target is requested in DI mode.
16315 (mips_emit_int_order_test): Update comment. Make mode of
16316 comparison match CMP0 rather than TARGET. When creating inverse
16317 target use mode of TARGET.
16319 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
16321 * gcov-dump.c (tag_summary): Only print summaries for the first
16322 GCOV_COUNTERS_SUMMABLE counters.
16324 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
16326 * config/i386/i386.md (absneg): New code iterator.
16327 (absnegprefix): New code attribute.
16328 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16329 patterns using absneg code iterator.
16330 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16331 using absneg code iterator.
16332 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16333 *neg<mode>2 patterns using absneg code iterator.
16334 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16335 *negextendsfdf2 patterns using absneg code iterator.
16336 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16337 *negextendsfxf2 patterns using absneg code iterator.
16338 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16339 *negextendsfdf2 patterns using absneg code iterator.
16340 * config/i386/sse.md (<code><mode>2): Macroize expander from
16341 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16343 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
16345 * config/s390/s390.h: Remove the remains of the recent search
16346 & replace action of current_function_outgoing_args_size.
16348 2008-04-10 Ira Rosen <irar@il.ibm.com>
16350 PR tree-optimization/35821
16351 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16352 NEW_STMT_LIST is not NULL.
16354 2008-04-09 David Edelsohn <edelsohn@gnu.org>
16357 * toplev.c (process_options): Remove -ffunction-sections debugging
16360 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
16362 PR middle-end/PR28690
16363 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16364 than gen_rtx_fmt_ee to perform more canonicalizations.
16366 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16369 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16371 2008-04-09 Richard Guenther <rguenther@suse.de>
16373 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16374 (dump_function_to_file): Dump function arguments with types.
16376 2008-04-08 Richard Guenther <rguenther@suse.de>
16378 * fold-const.c (fold_widened_comparison): Do not allow
16379 sign-changes that change the result.
16381 2008-04-08 Janis Johnson <janis187@us.ibm.com>
16384 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16385 kinds of indirect references.
16387 2008-04-08 David Edelsohn <edelsohn@gnu.org>
16389 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16390 GNU Fortran language string.
16392 2008-04-08 Rafael Espindola <espindola@google.com>
16394 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16395 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16396 * tree.h (tree_call_nonnegative_warnv_p): New.
16398 2008-04-08 Jan Hubicka <jh@suse.cz>
16400 * function.c (free_after_compilation): Clear out regno_reg_rtx
16403 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
16406 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16408 PR middle-end/PR28690
16409 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16410 same precedence as REG_POINTER and MEM_POINTER operands.
16412 2008-04-08 Richard Guenther <rguenther@suse.de>
16414 PR middle-end/35834
16415 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16416 for adding index to base.
16418 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
16420 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16421 (MINGW_ENABLE_EXECUTE_STACK): New.
16422 (IN_LIBGCC2): For libgcc include windows.h file for
16423 function declarations.
16425 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
16427 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16428 and tem2 if tem1 is not a REG or MULT.
16430 2008-04-08 Jan Hubicka <jh@suse.cz>
16432 * function.h (incomming_args): Break out of struct function.
16433 (function_subsections): Break out of struct function.
16434 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16435 return_rtx and hard_reg_initial_vals from struct function.
16436 Kill inl_max_label_num.
16437 (current_function_pops_args, current_function_args_info,
16438 current_function_args_size, current_function_args_size,
16439 current_function_pretend_args_size,
16440 current_function_outgoing_args_size,
16441 current_function_internal_arg_pointer, current_function_return_rtx):
16442 Kill compatibility accestor macros.
16443 * builtins.c (expand_builtin_apply_args_1): Update.
16444 (expand_builtin_next_arg): Update.
16445 * df-scan.c (df_get_call_refs): Update.
16446 * dbxout.c (dbxout_function_end): Update.
16447 * dwarf2out.c (dwarf2out_switch_text_section): Update.
16448 (output_line_info): Update.
16449 (secname_for_decl): Update.
16450 (dwarf2out_var_location): Update.
16451 * function.c (free_after_compilation): Update.
16452 (assign_parm_find_stack_rtl): Update.
16453 (assign_parms): Update.
16454 (expand_dummy_function_end): Update.
16455 (expand_function_end): Update.
16456 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16457 (expand_call): Update.
16458 (emit_library_call_value_1): Update.
16459 (store_one_arg): Update.
16460 * varasm.c (initialize_cold_section_name): Update.
16461 (unlikely_text_section): Update.
16462 (unlikely_text_section_p): Update.
16463 (assemble_start_function): Update.
16464 (assemble_end_function): Update.
16465 (default_section_type_flags): Update.
16466 (switch_to_section): Update.
16467 * integrate.c (set_decl_abstract_flags): Update.
16468 (get_hard_reg_initial_val): Update.
16469 (has_hard_reg_initial_val): Update.
16470 (allocate_initial_values): Update.
16471 * resource.c (init_resource_info): Update.
16472 * config/alpha/alpha.c (NUM_ARGS): Update.
16473 (direct_return): Update.
16474 (alpha_va_start): Update.
16475 (alpha_sa_size): Update.
16476 (alpha_initial_elimination_offset): Update.
16477 (alpha_expand_prologue): Update.
16478 (alpha_start_function): Update.
16479 (alpha_expand_epilogue): Update.
16480 (unicosmk_initial_elimination_offset):
16481 * config/alpha/alpha.md (call expander): Update.
16482 * config/s390/s390.c (s390_register_info): Update.
16483 (s390_register_info): Update.
16484 (s390_frame_info): Update.
16485 (s390_initial_elimination_offset): Update.
16486 (s390_build_builtin_va_list): Update.
16487 (s390_va_start): Update.
16488 * config/spu/spu.c (direct_return): Update.
16489 (spu_expand_prologue): Update.
16490 (spu_initial_elimination_offset): Update.
16491 (spu_build_builtin_va_list): Update.
16492 (spu_va_start): Update.
16493 * config/sparc/sparc.c (sparc_init_modes): Update.
16494 (sparc_compute_frame_size): Update.
16495 (function_value): Update.
16496 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16497 * config/i386/i386.md (return expander): Update.
16498 * config/i386/i386.c (ix86_va_start): Update.
16499 (ix86_can_use_return_insn_p): Update.
16500 (ix86_compute_frame_layout): Update.
16501 (ix86_expand_epilogue): Update.
16502 * config/sh/sh.c (output_stack_adjust): Update.
16503 (calc_live_regs): Update.
16504 (sh_expand_prologue): Update.
16505 (sh_builtin_saveregs): Update.
16506 (sh_va_start): Update.
16507 (initial_elimination_offset): Update.
16508 (sh_allocate_initial_value): Update.
16509 (sh_function_ok_for_sibcall): Update.
16510 (sh_get_pr_initial_val): Update.
16511 * config/sh/sh.md (return expander): Update.
16512 * config/avr/avr.c (frame_pointer_required_p): UPdate.
16513 * config/crx/crx.c (crx_compute_frame): UPdate.
16514 (crx_initial_elimination_offset): UPdate.
16515 * config/xtensa/xtensa.c (compute_frame_size): Update
16516 (xtensa_builtin_saveregs): Update.
16517 (xtensa_va_start): Update.
16518 (order_regs_for_local_alloc): Update.
16519 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16520 (xstormy16_expand_builtin_va_start): Update.
16521 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16522 * config/m68hc11/m68hc11.md (return expanders): Update.
16523 * config/m68hc11/m68hc11.c (expand_prologue): Update.
16524 (expand_epilogue): Update.
16525 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16526 (cris_simple_epilogue): Update.
16527 (cris_expand_prologue): Update.
16528 (cris_expand_epilogue): Update.
16529 * config/iq2000/iq2000.c (iq2000_va_start): Update.
16530 (compute_frame_size): Update.
16531 * config/mt/mt.c (mt_compute_frame_size): Update.
16532 * config/mn10300/mn10300.c (expand_prologue): Update.
16533 (expand_epilogue): Update.
16534 (initial_offset): Update.
16535 (mn10300_builtin_saveregs):
16536 * config/mn10300/mn10300.md (return expander): Update.
16537 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16538 (ia64_initial_elimination_offset): Update.
16539 (ia64_initial_elimination_offset): Update.
16540 (ia64_expand_prologue): Update.
16541 * config/m68k/m68k.md (return expander): Update.
16542 * config/rs6000/rs6000.c (rs6000_va_start): Update.
16543 (rs6000_stack_info): Update.
16544 * config/mcore/mcore.c (layout_mcore_frame): Update.
16545 (mcore_expand_prolog): Update.
16546 * config/arc/arc.c (arc_compute_frame_size): Update.
16547 * config/score/score3.c (score3_compute_frame_size): Update.
16548 * config/score/score7.c (score7_compute_frame_size): Update.
16549 * config/arm/arm.c (use_return_insn): Update.
16550 (thumb_find_work_register): Update.
16551 (arm_compute_save_reg_mask): Update.
16552 (arm_output_function_prologue): Update.
16553 (arm_output_epilogue): Update.
16554 (arm_size_return_regs): Update.
16555 (arm_get_frame_offsets): Update.
16556 (arm_expand_prologue): Update.
16557 (thumb_exit): Update.
16558 (thumb_unexpanded_epilogue): Update.
16559 (thumb1_output_function_prologue): Update.
16560 * config/pa/pa.md (return expander): Update.
16561 * config/pa/pa.c (compute_frame_size): Update.
16562 (hppa_builtin_saveregs): Update.
16563 * config/mips/mips.c (mips_va_start): Update.
16564 (mips16_build_function_stub): Update.
16565 (mips_compute_frame_info): Update.
16566 (mips_restore_gp): Update.
16567 (mips_output_function_prologue): Update.
16568 (mips_expand_prologue): Update.
16569 * config/v850/v850.c (compute_frame_size): Update.
16570 (expand_prologue): * config/mmix/mmix.c (along): update.
16571 (mmix_initial_elimination_offset): update.
16572 (mmix_reorg): update.
16573 (mmix_use_simple_return): update.
16574 (mmix_expand_prologue): update.
16575 (mmix_expand_epilogue): Update.
16576 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16577 (emit_link_insn): Update.
16579 2008-04-08 Anatoly Sokolov <aesok@post.ru>
16581 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16582 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16584 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16587 2008-04-07 Jan Hubicka <jh@suse.cz>
16589 * function.h (rtl): Rename to x_rtl.
16590 (crtl): New define.
16591 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16592 frame_offset, stack_check_probe_note, arg_pointer_save_area,
16593 used_temp_slots avail_temp_slots, temp_slot_level,
16594 nonlocal_goto_handler_labels): Update accesstors.
16595 (rtl): New global variable.
16596 (struct function): Move some fileds to rtl_data.
16597 (get_arg_pointer_save_area): Update prototype.
16598 * builtins.c (expand_builtin_setjmp_receiver): Update call of
16599 get_arg_pointer_save_area.
16600 * expr.c (init_expr): Update
16601 * function.c (get_frame_size): Update
16602 (assign_stack_local): Update
16603 (expand_function_end): Update.
16604 (get_art_pointer_save_area): Update
16606 * emit-rtl.c (rtl): Declare.
16607 (regno_reg_rtx): Declare.
16608 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16610 (gen_reg_rtx): Update.
16611 * varasm.c (n_deferred_constatns): Update accestor.
16612 (init_varasm_status): Do not allocate varasm_status.
16613 (force_const_mem, get_pool_size, output_constant_pool): Update.
16614 * stmt.c (force_label_rtx): Do not use x_ prefixes.
16615 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16616 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16617 * sparc/sparc.h (INIT_EXPANDERS): Update.
16618 * ia64/ia64.h (INIT_EXPANDERS): Update.
16620 2008-04-07 James E. Wilson <wilson@tuliptree.org>
16622 * reload.c (push_secondary_reload): Add missing break to for loop.
16624 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
16626 PR middle-end/PR28690
16627 * rtlanal.c: Update copyright years.
16628 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16629 as REG_POINTER and MEM_POINTER operands.
16630 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16631 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16632 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16633 * gcse.c: Update copyright years.
16634 (pre_delete): Call gen_reg_rtx_and_attrs.
16635 (hoist_code): Likewise.
16636 (build_store_vectors): Likewise.
16637 (delete_store): Likewise.
16638 * loop-invariant.c (move_invariant_reg): Likewise.
16639 Update copyright years.
16641 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
16643 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16644 control string instead of quoted.
16646 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
16648 * doc/rtl.texi: Rewrite of subreg section.
16650 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
16653 * config/i386/i386.c (legitimize_pic_address): Add treating
16654 of dllimport SYM_REF's.
16655 (legitimize_dllimport_symbol): Add prototype.
16657 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16659 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
16660 reference in constructor with non self-referential type.
16662 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
16664 Removal of Return with Depressed Stack Pointer support
16665 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16666 (ECF_SP_DEPRESSED): Likewise.
16667 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16668 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16669 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16670 (expand_call): Do not test ECF_SP_DEPRESSED.
16671 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16672 * function.c (keep_stack_depressed): Delete.
16673 (handle_epilogue_set): Likewise.
16674 (update_epilogue_consts): Likewise.
16675 (emit_equiv_load): Likewise.
16676 (thread_prologue_and_epilogue_insns): Remove support for Return with
16677 Depressed Stack Pointer.
16678 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16680 2008-04-06 Richard Guenther <rguenther@suse.de>
16682 PR tree-optimization/35400
16683 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16684 information from SSA_NAMEs.
16686 2008-04-06 Anatoly Sokolov <aesok@post.ru>
16688 * config/avr/avr.h (avr_mega_p): Remove declaration.
16689 (AVR_MEGA): Remove macro.
16690 * config/avr/avr.c (avr_mega_p): Remove variable.
16691 (avr_override_options): Remove inicializion of avr_mega_p.
16692 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16693 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16694 (avr_jump_mode): (Ditto.).
16695 (avr_output_progmem_section_asm_op): (Ditto.).
16696 (avr_asm_init_sections): (Ditto.).
16697 (avr_asm_init_sections): (Ditto.).
16698 (avr_rtx_costs): (Ditto.).
16699 * config/avr/avr.md: (Ditto.).
16700 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16703 2008-04-06 Richard Guenther <rguenther@suse.de>
16705 PR tree-optimization/35842
16706 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16707 is_gimple_invariant_address.
16709 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16711 * gcc.c (default_compilers): Sync Fortran extensions list with
16712 that in fortran/lang-specs.h.
16713 * doc/invoke.texi: Likewise.
16714 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16715 * dwarf2out.c (gen_compile_unit_die): Likewise.
16717 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
16719 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16721 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
16724 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16725 attribute is used for nested functions.
16727 2008-04-05 Jan Hubicka <jh@suse.cz>
16729 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16731 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16733 (dump_files): Update.
16734 (enable_rtl_dump_file): Do not accept letter argument.
16735 * tree-pass.h (dump_file_info): Remove letter argument.
16736 * toplev.c (decode_d_option): Update -da handling.
16737 * toplev.h (enable_rtl_dump_file): Update prototype.
16738 * passes.c (register_one_dump_file): Do not accept IPA argument; work
16739 it out based on pass type.
16740 (register_dump_files_1): Likewise.
16741 (init_optimization_passes): Update register_one_dump_file calls.
16742 (execute_one_pass): Sanity check that IPA passes are called at IPA
16743 level and RTL passes at RTL level.
16744 (execute_pass_list): IPA pass can not be after or subpass of
16746 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16747 disallov RTL subpasses of IPA subpasses.
16749 2008-04-05 Ben Elliston <bje@au.ibm.com>
16751 * tree-cfg.c (need_fake_edge_p): Return false for calls to
16752 builtins that return exactly once and do not throw. Cache call to
16755 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16757 PR rtl-optimization/34916
16758 PR middle-end/35519
16759 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16760 between instruction pairs.
16762 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
16764 * doc/invoke.texi: Document -mbitops for SH.
16765 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16766 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16767 * config/sh/sh.c (print_operand): Add %t operand code.
16768 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16769 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16770 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16771 (extendqihi2): Likewise.
16772 (movqi_i): Likewise.
16773 (insv): Use bset, bclr and bst instructions for SH2A if possible.
16774 (extv): Use bld instruction for SH2A if possible.
16776 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16777 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16778 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16779 (bset.b, bclr.b): Define peepholes.
16780 * config/sh/sh.opt (mbitops): New option.
16782 2008-04-04 Janis Johnson <janis187@us.ibm.com>
16785 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16786 and view convert expression.
16788 2008-04-04 Jakub Jelinek <jakub@redhat.com>
16791 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16793 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
16795 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16797 * config/i386/cpuid.h (bit_AES): New.
16798 (bit_PCLMUL): Likewise.
16800 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16801 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
16802 SSE2 if AES or PCLMUL is enabled.
16803 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16804 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16805 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16806 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16807 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16808 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16809 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16810 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16811 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16812 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16813 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16814 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16815 __builtin_ia32_aeskeygenassist128 and
16816 __builtin_ia32_pclmulqdq128.
16817 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16818 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16819 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
16821 * config/i386/i386.h (TARGET_AES): New.
16822 (TARGET_PCLMUL): Likewise.
16823 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16825 * config/i386/i386.md (UNSPEC_AESENC): New.
16826 (UNSPEC_AESENCLAST): Likewise.
16827 (UNSPEC_AESDEC): Likewise.
16828 (UNSPEC_AESDECLAST): Likewise.
16829 (UNSPEC_AESIMC): Likewise.
16830 (UNSPEC_AESKEYGENASSIST): Likewise.
16831 (UNSPEC_PCLMUL): Likewise.
16833 * config/i386/i386.opt (maes): New.
16834 (mpclmul): Likewise.
16836 * config/i386/sse.md (aesenc): New pattern.
16837 (aesenclast): Likewise.
16838 (aesdec): Likewise.
16839 (aesdeclast): Likewise.
16840 (aesimc): Likewise.
16841 (aeskeygenassist): Likewise.
16842 (pclmulqdq): Likewise.
16844 * config/i386/wmmintrin.h: New.
16846 * doc/extend.texi: Document AES and PCLMUL built-in function.
16848 * doc/invoke.texi: Document -maes and -mpclmul.
16850 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
16852 * function.c (free_after_parsing): Replace with
16853 cxx_push_function_context from C++ front-end.
16854 (allocate_struct_function): Don't call langhook.
16855 * langhooks.h (struct lang_hooks_for_functions): Delete.
16856 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16858 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16859 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16860 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16861 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16862 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16863 remove LANG_HOOKS_FUNCTION_INITIALIZER.
16864 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16866 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16867 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16869 2008-04-04 Jakub Jelinek <jakub@redhat.com>
16872 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16875 2008-04-04 Richard Guenther <rguenther@suse.de>
16877 PR middle-end/35823
16878 * fold-const.c (optimize_minmax_comparison): Use the correct
16879 type for the constant in the simplified comparison.
16881 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
16883 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16884 Pass L2 size as "--param l2-cache-size" to the compiler.
16885 (decode_l2_cache): New function to decode L2 cache parameters using
16886 0x8000006 extended cpuid function.
16887 (detect_caches_amd): Determine parameters of L2 cache using
16888 decode_l2_caches function.
16889 (decode_caches_intel): Decode L2 cache parameters.
16890 (detect_caches_intel): Determine L2 cache parameters using
16891 decode_caches_intel and decode_l2_caches functions.
16893 2008-04-03 Bob Wilson <bob.wilson@acm.org>
16895 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16896 secondary input reload for subword loads from the constant pool.
16898 2008-04-03 Janis Johnson <janis187@us.ibm.com>
16901 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16902 constants of the appropriate size for runtime calculations.
16905 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16906 decimal-float literal constant zero.
16908 2008-04-03 Jakub Jelinek <jakub@redhat.com>
16911 * c-parser.c (c_parser_omp_atomic): Call
16912 default_function_array_conversion on the RHS.
16914 PR middle-end/35818
16915 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16916 call is_variable_sized if decl has incomplete type.
16918 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
16920 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16922 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
16924 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16926 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16927 (sgt<u>): Merge sgt and sgtu into new expander.
16928 (sgt, sgtu): Remove expanders.
16929 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16930 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16931 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16932 *sgtu_<mode>_mips16 into new pattern.
16933 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16934 (sge<u>): Merge sge and sgeu into new expander.
16935 (sge, sgeu): Remove expanders.
16936 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16938 (*sge_<mode>, second *sge_<mode>): Remove patterns.
16939 (slt<u>): Merge slt and sltu into new expander.
16940 (slt, sltu): Remove expanders.
16941 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16942 (*slt_<mode>, *sltu_<mode>): Remove patterns.
16943 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16944 *sltu_<mode>_mips16 into new pattern.
16945 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16946 (sle<u>): Merge sle and sleu into new expander.
16947 (sle, sleu): Remove expanders.
16948 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16949 (*sle_<mode>, *sleu_<mode>): Remove patterns.
16950 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16951 *sleu_<mode>_mips16 into new pattern.
16952 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16954 2008-04-03 Jan Hubicka <jh@suse.cz>
16956 PR tree-optimization/35795
16957 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16958 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16959 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16960 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16961 * score/score3.c (score3_output_mi_thunk): Likewise.
16962 * score/score7.c (score7_output_mi_thunk): Likewise.
16963 * mips/mips.c (mips_output_mi_thunk): Likewise.
16965 2008-04-03 Richard Guenther <rguenther@suse.de>
16967 * tree-vrp.c (extract_range_from_unary_expr): Handle all
16968 conversions. Simplify code.
16970 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
16972 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16974 2008-04-03 Tom Tromey <tromey@redhat.com>
16975 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16977 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16978 * config/bfin/t-bfin-linux (generated_files): Add
16979 linux-sysroot-suffix.h.
16980 * doc/install.texi (Prerequisites): Require make 3.80.
16981 * doc/sourcebuild.texi (Front End Directory): Document new
16983 * Makefile.in (generated_files): New variable.
16984 (ALL_HOST_OBJS): New variable.
16985 ($(ALL_HOST_OBJS)): New target.
16987 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
16989 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16990 (remap_block): Call id->transform_lang_insert_block instead
16992 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16993 Set id.transform_lang_insert_block to NULL.
16994 (clone_body): Move to cp/optimize.c
16995 * tree-inline.h (struct copy_body_data): Change
16996 transform_lang_insert_block to function pointer.
16997 (copy_generic_body, copy_decl_no_change): Export.
16998 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16999 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17000 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17002 * c-tree.h (insert_block): Kill.
17003 * c-decl.c (insert_block): Kill.
17005 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
17007 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17008 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17009 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17011 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17012 argument, call {push,pop}_function_context from here.
17013 * c-parser.c: Use c_{push,pop}_function_context.
17015 * function.c (push_function_context_to): Move meat ...
17016 (push_function_context): ... here. Simplify.
17017 * function.c (pop_function_context_from): Move meat ...
17018 (pop_function_context): ... here. Simplify.
17019 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17021 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17022 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17023 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17024 * tree.h (push_function_context_to, pop_function_context_from): Remove.
17026 2008-04-03 Ben Elliston <bje@au.ibm.com>
17028 * expmed.c (extract_force_align_mem_bit_field): Remove.
17030 2008-04-03 Richard Guenther <rguenther@suse.de>
17032 PR middle-end/35800
17033 * expr.h (try_casesi): Adjust prototype.
17034 * expr.c (try_casesi): Take fallback label as extra parameter.
17035 Use that for gen_casesi if default_label is NULL.
17036 * stmt.c (expand_case): Pass fallback label to try_casesi,
17037 make sure to fill gaps with a fallback label if default_label
17040 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
17043 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17045 2008-04-03 Ben Elliston <bje@au.ibm.com>
17047 * expmed.c (extract_split_bit_field): Remove if (0) code.
17048 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17049 (do_ds_constraint): Likewise.
17051 2008-04-02 Joseph Myers <joseph@codesourcery.com>
17053 * doc/cppopts.texi (-dU): Document.
17054 * c-common.h (flag_dump_macros): Update comment.
17055 * c-opts.c (handle_OPT_d): Handle -dU.
17056 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17057 dump_queued_macros, cb_used_define, cb_used_undef): New.
17058 (init_pp_output): Handle -dU.
17059 (cb_line_change): Call dump_queued_macros.
17060 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17062 2008-04-02 Anatoly Sokolov <aesok@post.ru>
17064 * config/avr/predicates.md (io_address_operand): New predicate.
17065 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17066 * config/avr/avr.c (avr_io_address_p): Remove function.
17067 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17068 'avr_io_address_p' function.
17069 (out_movhi_r_mr): (Ditto.).
17070 (out_movqi_mr_r): (Ditto.).
17071 (out_movhi_mr_r): (Ditto.).
17072 (avr_address_cost): (Ditto.).
17074 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
17076 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17077 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17078 in 32bit mode when XMM registers are available to avoid store
17080 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17081 corresponding post-reload splitters.
17083 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
17085 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17086 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
17087 __builtin_ia32_roundss.
17088 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17089 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17090 __builtin_ia32_roundss.
17091 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17092 IX86_BUILTIN_SHUFPD here.
17094 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
17096 * config/i386/i386.md (plogic): New.
17097 (plogicprefix): Likewise.
17099 * config/i386/mmx.md (mmx_<code><mode>3): New.
17100 (mmx_and<mode>3): Removed.
17101 (mmx_ior<mode>3): Likewise.
17102 (mmx_xor<mode>3): Likewise.
17104 * config/i386/sse.md (<code><mode>3): New.
17105 (*<code><mode>3): Likewise.
17106 (*<code><mode>3): Likewise.
17107 (<code><mode>3): Likewise.
17108 (*sse_<code><mode>3): Likewise.
17109 (*sse2_<code><mode>3): Likewise.
17110 (<code>tf3): Likewise.
17111 (*<code>tf3): Likewise.
17112 (and<mode>3): Likewise.
17113 (*and<mode>3): Likewise.
17114 (ior<mode>3): Removed.
17115 (*ior<mode>3): Likewise.
17116 (xor<mode>3): Likewise.
17117 (*xor<mode>3): Likewise.
17118 (*and<mode>3): Likewise.
17119 (*ior<mode>3): Likewise.
17120 (*xor<mode>3): Likewise.
17121 (and<mode>3): Likewise.
17122 (*sse_and<mode>3): Likewise.
17123 (*sse2_and<mode>3): Likewise.
17124 (andtf3): Likewise.
17125 (*andtf3): Likewise.
17126 (ior<mode>3): Likewise.
17127 (*sse_ior<mode>3): Likewise.
17128 (*sse2_ior<mode>3): Likewise.
17129 (iortf3): Likewise.
17130 (*iortf3): Likewise.
17131 (xor<mode>3): Likewise.
17132 (*sse_xor<mode>3): Likewise.
17133 (*sse2_xor<mode>3): Likewise.
17134 (xortf3): Likewise.
17135 (*xortf3): Likewise.
17137 2008-04-02 Richard Guenther <rguenther@suse.de>
17139 PR tree-optimization/14495
17140 PR tree-optimization/34793
17141 * tree-vrp.c (struct switch_update): New structure.
17142 (to_remove_edges, to_update_switch_stmts): New VECs.
17143 (simplify_switch_using_ranges): New function. Remove not taken
17144 case labels and edges.
17145 (simplify_stmt_using_ranges): Call it.
17146 (identify_jump_threads): Mark edges we have queued for removal
17147 so we don't thread them.
17148 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17150 * tree-cfg.c (group_case_labels): Deal with missing default label.
17151 (tree_verify_flow_info): Allow missing default label.
17152 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17153 (emit_case_nodes): Likewise.
17154 (expand_case): Do not rely on the default label to be present.
17155 * expr.c (try_casesi): Deal with NULL default_label.
17156 (do_tablejump): Likewise.
17158 2008-04-02 Richard Guenther <rguenther@suse.de>
17160 PR tree-optimization/14495
17161 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17162 SWITCH_EXPR here ...
17163 (vrp_visit_switch_stmt): ... but here (new function).
17164 (find_case_label_index): New helper function.
17165 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17167 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17169 * fwprop.c: Fix ISO-C99ism.
17171 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17174 * Makefile.in (objdir): Set it here.
17175 * configure.ac: Not here. Find dynamic linker characteristics.
17176 * exec-tool.in: Use them.
17177 * aclocal.m4: Regenerate.
17178 * configure: Regenerate.
17180 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17182 * expr.c (expand_var): Delete it.
17183 * expr.h (expand_var): Delete prototype.
17184 * function.c (expand_function_start): Use expand_decl instead.
17185 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17188 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
17190 PR rtl-optimization/35542
17191 * fwprop.c (forward_propagate_and_simplify): Replace
17192 loc_reg_mentioned_in_p with reg_mentioned_p.
17194 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
17196 PR rtl-optimization/35281
17197 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17198 (propagate_rtx_1): Handle PR_HANDLE_MEM.
17199 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17200 (varying_mem_p): Move above propagate_rtx.
17201 (all_uses_available_at): Do not check MEMs.
17203 2008-04-02 Rafael Espindola <espindola@google.com>
17205 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17206 (register_edge_assert_for_2): Split the cond argument.
17207 (register_edge_assert_for_1): Adjust for the change in
17208 register_edge_assert_for_2.
17209 (register_edge_assert_for): Split the cond argument.
17210 (find_switch_asserts): Adjust for the change in
17211 register_edge_assert_for.
17213 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
17215 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17216 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17217 offsets for 64-bit mingw.
17218 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17219 abi for x86_64-pc-mingw.
17221 2008-04-02 Richard Guenther <rguenther@suse.de>
17223 * tree-vrp.c (extract_range_from_assert): Make sure to not
17224 produce range min/max with TREE_OVERFOW set.
17225 If merging a anti-range and a range keep the anti-range if
17226 the range covers all values of the type.
17227 (register_edge_assert_for_2): Only allow sign-changing
17228 conversions in detecting canonical range checks. Also
17229 register an assert for the unsigned name if useful.
17231 PR tree-optimization/35787
17232 * tree-vrp.c (vrp_val_max): New function.
17233 (vrp_val_min): Likewise.
17234 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17235 (vrp_val_is_min): Likewise.
17236 (supports_overflow_infinity): Use vrp_val_{min,max}.
17237 (negative_overflow_infinity): Likewise.
17238 (positive_overflow_infinity): Likewise.
17239 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17240 (is_positive_overflow_infinity): Likewise.
17241 (is_overflow_infinity): Likewise.
17242 (avoid_overflow_infinity): Use vrp_val_{min,max} and
17243 vrp_val_is_{min,max}.
17244 (set_and_canonicalize_value_range): Canonicalize anti-ranges
17245 to ranges if possible. Avoid empty ranges.
17247 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17249 PR middle-end/35705
17250 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17251 the expression is a function address.
17253 2008-04-01 George Helffrich <george@gcc.gnu.org>
17255 PR fortran/35154, fortran/23057
17256 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17257 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17258 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17259 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17261 (dbxout_syms): Check for COMMON-based symbol and wrap in
17262 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17263 in bracket for efficiency.
17265 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17266 using DW_TAG_common_block + member offset.
17267 (add_pubname_string): New function.
17268 (dw_expand_expr): New function to find block name and offset for
17270 (common_check): New function to check whether symbol in Fortran COMMON.
17271 (gen_variable_die): If COMMON, use DW_TAG_common_block.
17273 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
17276 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17278 2008-04-02 Ben Elliston <bje@au.ibm.com>
17280 * config/v850/v850.md (casesi): Remove if (0) code.
17281 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17282 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17284 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
17286 * config/i386/i386.md (rex64suffix): New mode attribute.
17287 (floathi<mode>2): Disable expander for SSE math.
17288 (*floathi<mode>2_1): New insn insn_and_split pattern.
17289 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17290 corresponding post-reload splitters.
17291 (*floathi<mode>2_i387): New macroized insn pattern.
17292 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17293 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17294 insn_and_split pattern.
17295 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17296 New macroized instruction patterns and corresponding post-reload
17298 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17299 and corresponding post-reload splitters.
17300 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17301 New macroized instruction patterns.
17302 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17303 macroized instruction patterns and corresponding post-reload splitters.
17304 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17305 corresponding post-reload splitters.
17306 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17307 New macroized instruction patterns.
17308 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17309 corresponding post-reload splitters.
17310 (*floatsi<mode>2_i387): New macroized instruction patterns.
17312 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
17314 * config/i386/i386.md (smaxmin): New.
17315 (umaxmin): Likewise.
17316 (maxminiprefix): Likewise.
17317 (maxminfprefix): Likewise.
17318 (<code><mode>3): Likewise.
17319 (smin<mode>3): Removed.
17320 (smax<mode>3): Likewise.
17322 * config/i386/mmx.md (mmx_<code>v2sf3): New.
17323 (mmx_<code>v4hi3): Likewise.
17324 (mmx_<code>v8qi3): Likewise.
17325 (mmx_smaxv2sf3): Removed.
17326 (mmx_sminv2sf3): Likewise.
17327 (mmx_umaxv8qi3): Likewise.
17328 (mmx_smaxv4hi3): Likewise.
17329 (mmx_uminv8qi3): Likewise.
17330 (mmx_sminv4hi3): Likewise.
17332 * config/i386/sse.md (<addsub><mode>3): New.
17333 (*<addsub><mode>3): Likewise.
17334 (<sse>_vm<addsub><mode>3): Likewise.
17335 (<maxmin><mode>3): Likewise.
17336 (*<maxmin><mode>3_finite): Likewise.
17337 (*<maxmin><mode>3): Likewise.
17338 (<sse>_vm<maxmin><mode>3): Likewise.
17339 (sse3_h<addsub>v4sf3): Likewise.
17340 (sse3_h<addsub>v2df3): Likewise.
17341 (<maxmin>v16qi3): Likewise.
17342 (*<maxmin>v16qi3): Likewise.
17343 (<maxmin>v8hi3): Likewise.
17344 (*<maxmin>v8hi3): Likewise.
17345 (*sse4_1_<maxmin><mode>3): Likewise.
17346 (*sse4_1_<maxmin><mode>3): Likewise.
17347 (add<mode>3): Removed.
17348 (*add<mode>3): Likewise.
17349 (<sse>_vmadd<mode>3): Likewise.
17350 (sub<mode>3): Likewise.
17351 (*sub<mode>3): Likewise.
17352 (<sse>_vmsub<mode>3): Likewise.
17353 (smin<mode>3): Likewise.
17354 (*smin<mode>3_finite): Likewise.
17355 (*smin<mode>3): Likewise.
17356 (<sse>_vmsmin<mode>3): Likewise.
17357 (smax<mode>3): Likewise.
17358 (*smax<mode>3_finite): Likewise.
17359 (*smax<mode>3): Likewise.
17360 (<sse>_vmsmax<mode>3): Likewise.
17361 (sse3_haddv4sf3): Likewise.
17362 (sse3_haddv2df3): Likewise.
17363 (sse3_hsubv4sf3): Likewise.
17364 (sse3_hsubv2df3): Likewise.
17365 (umaxv16qi3): Likewise.
17366 (*umaxv16qi3): Likewise.
17367 (smaxv8hi3): Likewise.
17368 (*smaxv8hi3): Likewise.
17369 (*sse4_1_smax<mode>3): Likewise.
17370 (*sse4_1_umax<mode>3): Likewise.
17371 (uminv16qi3): Likewise.
17372 (*uminv16qi3): Likewise.
17373 (sminv8hi3): Likewise.
17374 (*sminv8hi3): Likewise.
17375 (*sse4_1_smin<mode>3): Likewise.
17376 (*sse4_1_umin<mode>3): Likewise.
17378 2008-04-01 Rafael Espindola <espindola@google.com>
17380 * tree-cfg.c (verify_expr): remove in_phi.
17381 (verify_stmt): Don't call walk_tree with verify_expr. Use
17382 is_gimple_min_invariant instead of is_gimple_val.
17384 2008-04-01 Joseph Myers <joseph@codesourcery.com>
17386 * doc/include/gpl_v3.texi: Update for manpage generation.
17387 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17389 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17390 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17391 gpl_v3.texi instead of gpl.texi.
17394 2008-04-01 Jakub Jelinek <jakub@redhat.com>
17397 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17399 2008-04-01 Rafael Espindola <espindola@google.com>
17401 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17402 (extract_code_and_val_from_cond): Use
17403 extract_code_and_val_from_cond_with_ops.
17405 2008-04-01 Jan Hubicka <jh@suse.cz>
17407 * function.c (free_after_compilation): Free epilogue_delay_list.
17408 (prepare_function_start): Assert that previous compilation was freed.
17410 2008-04-01 Jan Hubicka <jh@suse.cz>
17411 Jim Wilson <wilson@tuliptree.org>
17412 Andreas Tobler <andreast@gcc.gnu.org>
17414 PR middle-end/35781
17415 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17416 rtl.emit instead cfun->emit.
17417 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17418 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17420 2008-04-01 Ben Elliston <bje@au.ibm.com>
17422 * doc/c-tree.texi (Function Basics): Fix grammatical error.
17424 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
17426 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17428 (fprofile-use): Add var flag_profile_use
17429 * coverage.c (coverage_begin_output): Do not open a gcno file for
17430 output only if -ftest-coverage is set.
17431 Do not add getpwd() to gcda file path.
17432 (build_gcov_info): Check the new flag
17433 flag_profile_datafile_relative_path.
17434 (coverage_init): Use profile_data_prefix.
17435 Read profile counter only if flag_profile_use is set.
17436 * opts.c (common_handle_option): New option fprofile-use=,
17437 fprofile-dir=, fprofile-generate=.
17438 * toplev.c (profile_data_prefix): New variable definition.
17439 * toplev.h (profile_data_prefix): New declaration.
17440 * doc/invoke.tex (Option Summary, Optimization Options):
17443 2008-03-31 James E. Wilson <wilson@tuliptree.org>
17445 * varasm.c (output_constant_pool_1): In LABEL_REF check,
17446 use tmp consistently.
17449 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17450 * config/ia64/ia64.c (rtx_needs_barrier): Handle
17451 UNSPEC_FR_RECIP_APPROX_RES.
17452 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17454 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
17457 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17459 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
17461 PR middle-end/30186
17462 * fold-const.c (fold_indirect_ref_1): Support accessing non first
17463 element of the vector via a pointer.
17465 2008-03-31 Ian Lance Taylor <iant@google.com>
17467 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17469 2008-03-31 Jan Hubicka <jh@suse.cz>
17471 * builtins.c (expand_builtin_setjmp_receiver): Update call of
17472 get_arg_pointer_save_area.
17473 * expr.c (init_expr): Just clear out rtl.expr.
17474 * function.c (free_after_compilation): Clear out whole RTL structure.
17475 (get_func_frame_size): Merge into ...
17476 (get_frame_size): ... this one.
17477 (assign_stack_local_1): Merge into ...
17478 (assign_stack_local): ... this one.
17479 (expand_function_end): Update call of get_arg_pointer_save_area.
17480 (get_art_pointer_save_area): Remove cfun argument.
17481 * function.h (emit_status): regno_pointer_align does not need length
17482 attribute. Move x_regno_reg_rtx to ...
17483 (regno_reg_rtx): ... new global array.
17484 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17485 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17486 apply_args_value, forced_labels, stack_pointer_delta):
17488 (struct varasm_status): Move here from varasm.c
17489 (struct rtl_data): New. Move here some fields from struct function.
17490 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17491 frame_offset, stack_check_probe_note, arg_pointer_save_area,
17492 used_temp_slots avail_temp_slots, temp_slot_level,
17493 nonlocal_goto_handler_labels): Update accesstors.
17494 (rtl): New global variable.
17495 (struct function): Move some fileds to rtl_data.
17496 (get_arg_pointer_save_area): Update prototype.
17497 * emit-rtl.c (rtl): Declare.
17498 (regno_reg_rtx): Declare.
17499 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17501 (gen_reg_rtx): Update.
17502 (init_virtual_regs): Do not tate emit_status argument.
17503 (init_emit): Do not allocate emit.
17504 * varasm.c (varasm_statuc): Move to function.h.
17505 (n_deferred_constatns): Update accestor.
17506 (init_varasm_status): Do not allocate varasm_status.
17507 (force_const_mem, get_pool_size, output_constant_pool): Update.
17508 * stmt.c (force_label_rtx): Do not use x_ prefixes.
17509 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17511 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
17513 PR rtl-optimization/35729
17514 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17517 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
17520 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17521 load/store if memory is unaligned.
17522 (*movti_rex64): Likewise.
17524 * config/i386/predicates.md (misaligned_operand): New.
17526 2008-03-31 Andrew Pinski <pinskia@gmail.com>
17529 * tree-ssa-phiopt.c (conditional_replacement): Return early for
17532 2008-03-31 Jan Beulich <jbeulich@novell.com>
17534 * config/ia64/constraints.md: Add 'j' constraint.
17535 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17536 (movdi_internal): Likewise.
17538 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
17541 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17543 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
17546 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17547 proper error message for the third argument on blendpd and
17550 * config/i386/sse.md (blendbits): New.
17551 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17553 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
17555 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17557 2008-03-30 Richard Guenther <rguenther@suse.de>
17559 PR middle-end/31023
17560 * fold-const.c (fold_sign_changed_comparison): Do leave
17561 conversions to base-types alone.
17563 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
17565 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17566 the link register if one altivec register is be saved.
17568 2008-03-30 Ben Elliston <bje@au.ibm.com>
17570 * final.c (final_scan_insn): Remove if (0) code.
17572 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
17574 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17576 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
17578 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17579 of V4SFmode to ix86_binary_operator_ok.
17581 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
17583 * config/i386/i386.c (override_options): Initialize
17584 ix86_veclib_handler to ix86_veclibabi_svml when
17585 -mveclibabi=svml is used.
17586 (ix86_veclibabi_svml): New function for SVML ABI style
17587 vectorization support.
17588 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17590 2008-03-28 Rafael Espindola <espindola@google.com>
17592 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17593 (tree_binary_nonnegative_warnv_p): Make it public.
17594 (tree_single_nonnegative_warnv_p): Make it public.
17595 (tree_invalid_nonnegative_warnv_p): Make it public.
17596 (tree_unary_nonzero_warnv_p): Make it public.
17597 (tree_binary_nonzero_warnv_p): Make it public
17598 (tree_single_nonzero_warnv_p): Make it public.
17599 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17600 (extract_range_from_binary_expr): Split the expr argument.
17601 (extract_range_from_unary_expr): Split the expr argument.
17602 (extract_range_from_comparison): Split the expr argument.
17603 (extract_range_from_expr): Use the new aux functions.
17604 (vrp_evaluate_conditional_warnv): Use
17605 vrp_evaluate_conditional_warnv_with_ops.
17606 * tree.h (tree_unary_nonzero_warnv_p): Declare.
17607 (tree_binary_nonzero_warnv_p): Declare.
17608 (tree_single_nonzero_warnv_p): Declare.
17609 (tree_expr_nonzero_warnv_p): Declare.
17610 (tree_unary_nonnegative_warnv_p): Declare.
17611 (tree_binary_nonnegative_warnv_p): Declare.
17612 (tree_single_nonnegative_warnv_p): Declare.
17613 (tree_invalid_nonnegative_warnv_p): Declare.
17615 2008-03-28 Richard Guenther <rguenther@suse.de>
17617 PR tree-optimization/30317
17618 PR tree-optimization/30911
17619 PR tree-optimization/34793
17620 * tree-vrp.c (set_and_canonicalize_value_range): New function.
17621 (struct assert_locus_d): New member EXPR.
17622 (register_new_assert_for): Add EXPR parameter to support
17623 ASSERT_EXPR <name, expr OP limit>.
17624 (register_edge_assert_for_1): Adjust callers.
17625 (find_assert_locations): Likewise.
17626 (process_assert_insertions_for): Build condition from expression.
17627 (extract_range_from_assert): Handle ASSERT_EXPRs
17628 of the form ASSERT_EXPR <name, expr OP limit>.
17629 (register_edge_assert_for_2): New helper registering
17630 asserts for comparisons. Recognize range tests of the form
17631 (unsigned)i - CST1 OP CST2.
17632 (register_edge_assert_for_1): Use it.
17633 (register_edge_assert_for): Likewise.
17634 (needs_overflow_infinity): Integer sub-types
17635 do not need overflow infinities.
17636 (vrp_val_is_max): The extreme values of integer sub-types
17637 are those of the base type.
17638 (vrp_val_is_min): Likewise.
17639 * tree.def (ASSERT_EXPR): Document extra allowed conditional
17642 2008-03-28 Nick Clifton <nickc@redhat.com>
17645 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17646 Return GENERAL_REGS for stack adjustment reloads.
17648 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
17651 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17652 const_vector when all the vectors are constant.
17654 2008-03-27 Bob Wilson <bob.wilson@acm.org>
17656 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17658 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17659 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17661 (s<code>_sf): Use new scc_sf attribute for opcode names.
17663 2008-03-27 Tom Tromey <tromey@redhat.com>
17665 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17666 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17667 config/spu/t-spu-elf, config/i386/t-interix,
17668 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17669 config/i386/x-darwin, config/i386/x-mingw32,
17670 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17671 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17672 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17673 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17674 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17675 config/rs6000/x-darwin, config/rs6000/t-rs6000,
17676 config/score/t-score-elf, config/arm/t-strongarm-pe,
17677 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17678 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17679 Revert automatic dependency patch.
17681 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
17684 * config/i386/i386.c (ix86_function_arg_boundary): Align
17685 decimal floating point to its natural boundary.
17687 2008-03-27 Richard Guenther <rguenther@suse.de>
17689 PR middle-end/35716
17690 * fold-const.c (fold_comparison): Restrict distinct decl
17691 comparison folding to VAR_DECLs and PARM_DECLs. Do not
17692 solely rely on operand_equal_p.
17694 2008-03-27 Richard Guenther <rguenther@suse.de>
17697 * c-common.c (handle_weak_attribute): Reject combination of
17700 2008-03-27 Richard Guenther <rguenther@suse.de>
17702 PR tree-optimization/32810
17703 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17704 conversions from DECL_INITIAL.
17705 (fold_const_aggregate_ref): Likewise from constructor elements.
17707 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
17709 * tree-affine.h (aff_combination_expand): Declare.
17710 (get_inner_reference_aff): Likewise.
17711 * tree-affine.c (aff_combination_expand): Split out from
17712 tree_to_aff_combination_expand.
17713 (get_inner_reference_aff): New function.
17714 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17715 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17716 (struct lim_aux_data): sm_done field removed.
17717 (mem_ref_loc_p, mem_ref_locs_p): New types.
17718 (struct mem_ref): Added id, stored, accesses_in_loop,
17719 indep_loop, dep_loop, indep_ref, dep_ref fields.
17720 Removed is_stored, locs and next fields.
17721 (memory_accesses): New variable.
17722 (movement_possibility): Do not allow moving statements
17723 that store to memory.
17724 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17726 (determine_max_movement): For statements with memory references,
17727 find the outermost loop in that the reference is independent.
17728 (move_computations_stmt): Mark the virtual operands for renaming.
17729 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17730 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17731 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17732 add_vop_ref_mapping, create_vop_ref_mapping_loop,
17733 create_vop_ref_mapping, analyze_memory_references,
17734 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17735 get_all_locs_in_loop, ref_always_accessed_p,
17736 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17737 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17738 store_motion_loop, store_motion): New functions.
17739 (struct vop_to_refs_elt): New type.
17740 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17741 memref_hash, memref_eq, hoist_memory_references): Rewritten.
17742 (schedule_sm): Replaced by...
17743 (execute_sm): ... this.
17744 (determine_lsm_ref, hoist_memory_references,
17745 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17746 find_more_ref_vops, free_mem_ref, free_mem_refs,
17747 determine_lsm_loop, determine_lsm): Removed.
17748 (tree_ssa_lim_finalize): Free data structures used by store motion.
17749 (tree_ssa_lim): Call analyze_memory_references. Use
17750 store_motion instead of determine_lsm.
17752 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
17754 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17755 rename tmake_file to m68hc11/t-m68hc11.
17756 (mcore): Set inhibit_libc to true.
17757 * config.host (alpha*-dec-*vms*): Set extra_programs.
17758 (interix3*): Don't use host_xmake_file.
17759 * configure.ac: Let config.gcc override inhibit_libc.
17760 * configure: Regenerate.
17762 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17763 * config/t-openbsd-thread: Remove commented out lines.
17765 * config/x-interix: Remove.
17767 * config/m68hc11/t-m68hc11-gas: Rename to...
17768 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
17770 * config/mcore/t-mcore: Remove T_CFLAGS.
17771 * config/mcore/t-mcore-pe: Likewise.
17773 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
17775 * configure.ac: Replace custom __GNU_SOURCE test with
17776 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
17777 * aclocal.m4: Regenerate.
17778 * configure: Regenerate.
17779 * config.in: Regenerate.
17781 2008-03-27 Richard Guenther <rguenther@suse.de>
17783 * fold-const.c (target.h): Include.
17784 (fold_comparison): Fold comparison of addresses of decls
17785 that bind locally or of constants. Consolidate address folding code.
17786 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17787 results from fold_binary_to_constant.
17788 (compare_values_warnv): Likewise.
17790 2008-03-27 Andrew Pinski <pinskia@gmail.com>
17792 PR middle-end/35429
17793 * fold-const.c (fold_truthop): Check for integeral types when folding
17794 a == 0 && b == 0 and a != 0 || b != 0 .
17796 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
17798 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17800 2008-03-26 Andreas Schwab <schwab@suse.de>
17802 * doc/invoke.texi: Fix use of @item vs. @itemx.
17804 2008-03-26 Tom Tromey <tromey@redhat.com>
17806 * Makefile.in (build/gensupport.o, build/print-rtl.o,
17807 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17808 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17809 build/gencodes.o, build/genconditions.o, build/genconfig.o,
17810 build/genconstants.o, build/genemit.o, build/genextract.o,
17811 build/genflags.o, build/genmddeps.o, build/genopinit.o,
17812 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17815 2008-03-26 Richard Guenther <rguenther@suse.de>
17818 2008-03-26 Richard Guenther <rguenther@suse.de>
17820 * fold-const.c (target.h): Include.
17821 (fold_comparison): Fold comparison of addresses of two decls
17822 that bind locally. Consolidate address folding code.
17824 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17826 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17827 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17828 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17829 dconstsqrt2, dconstthird, dconste and/or dconst10.
17830 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17831 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17832 dconstsqrt2, dconste): Delete.
17833 (init_emit_once): Likewise. Simplify initializing dconstm1.
17835 * real.c (get_real_const): New.
17836 * real.h (dconst3, dconst10, dconstm2, dconstthird,
17837 dconstsqrt2, dconste): Delete.
17838 (real_value_const, get_real_const): New.
17840 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
17842 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17844 * config/i386/i386.c (ix86_function_arg_boundary): Check
17845 BIGGEST_ALIGNMENT instead of 128.
17846 (setup_incoming_varargs_64): Likewise.
17848 2008-03-26 Tom Tromey <tromey@redhat.com>
17850 * Makefile.in (DEPFILES): Add missing '/'.
17852 2008-03-26 Richard Guenther <rguenther@suse.de>
17854 * fold-const.c (target.h): Include.
17855 (fold_comparison): Fold comparison of addresses of two decls
17856 that bind locally. Consolidate address folding code.
17858 2008-03-26 Nick Clifton <nickc@redhat.com>
17861 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17862 not allow INT+INT as a legitimate addressing mode.
17864 2008-03-26 Richard Guenther <rguenther@suse.de>
17866 * tree-flow.h (widen_bitfield): Remove declaration.
17867 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17868 (widen_bitfield): Remove function.
17869 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17872 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
17875 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17878 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
17880 PR rtl-optimization/35232
17881 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17882 (forget_old_reloads_1, forget_marked_reloads): Don't clear
17883 reg_reloaded_call_part_clobbered here.
17884 (reload_regs_reach_end_p): New function.
17885 (reload_reg_rtx_for_input): New variable.
17886 (reload_reg_rtx_for_output): Likewise.
17887 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17888 when reassigning a pseudo register. Load reloadreg from
17889 reload_reg_rtx_for_input, moving the mode and register
17891 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
17892 instead of the original when deciding whether an input reload
17893 would be a no-op or whether an output reload can be deleted.
17894 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17895 when setting up new_spill_reg_store. Load it from
17896 reload_reg_rtx_for_output, moving the mode and register
17898 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
17899 instead of the original when deciding whether an output reload
17900 would be a no-op. Do the same when modifying insn notes.
17901 Use rtx_equal_p instead of == to compare the registers.
17902 (inherit_piecemeal_p): Take a mode and two register numbers
17904 (emit_reload_insns): Clear new_spill_reg_store for every hard
17905 register in the reload register. Remove spill registers
17906 from reg_reloaded_valid before considering whether to record
17907 inheritance information for them. Use reload_reg_rtx_for_output
17908 instead of reg_rtx when recording output reloads. Use
17909 reload_reg_rtx_for_input instead of reg_rtx when recording
17910 input reloads. Set or clear reg_reloaded_call_part_clobbered
17911 at the same time as setting reg_reloaded_valid.
17912 (delete_output_reload): Add a new_reload_reg parameter and use it
17913 instead of rld[j].reg_rtx.
17914 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17917 2008-03-25 Tom Tromey <tromey@redhat.com>
17919 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17920 (build/genattr.o): Likewise.
17921 (build/genattrtab.o): Likewise.
17922 (build/gencodes.o): Likewise.
17923 (build/genconfig.o): Likewise.
17924 (build/genconstants.o): Likewise.
17925 (build/genemit.o): Likewise.
17926 (build/genextract.o): Likewise.
17927 (build/genflags.o): Likewise.
17929 2008-03-25 Bob Wilson <bob.wilson@acm.org>
17931 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17932 instead of size_int for integer types.
17933 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
17934 to match type of MINUS_EXPR.
17936 2008-03-25 Tom Tromey <tromey@redhat.com>
17938 * configure: Rebuilt.
17939 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17942 2008-03-25 Tom Tromey <tromey@redhat.com>
17944 * config/x-solaris (host-solaris.o): Update.
17945 * config/x-linux (host-linux.o): Update.
17946 * config/x-hpux (host-hpux.o): Update.
17947 * config/x-darwin (host-darwin.o): Update.
17948 * config/v850/t-v850e (v850-c.o): Update.
17949 * config/v850/t-v850 (v850-c.o): Update.
17950 * config/t-vxworks (vxworks.o): Update.
17951 * config/t-sol2 (sol2-c.o, sol2.o): Update.
17952 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17953 * config/spu/t-spu-elf (spu-c.o): Update.
17955 * config/sh/t-symbian (sh-c.o): Update.
17956 (symbian.o): Update.
17957 * config/sh/t-sh (sh-c.o): Update.
17958 * config/score/t-score-elf (score7.o, score3.o): Update.
17959 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17960 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17961 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17962 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17963 (rs6000.o): Remove.
17964 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17965 * config/m32c/t-m32c (m32c-pragma.o): Update.
17966 * config/ia64/t-ia64 (ia64-c.o): Update.
17967 * config/i386/x-mingw32 (host-mingw32.o): Update.
17968 * config/i386/x-i386 (driver-i386.o): Update.
17969 * config/i386/x-darwin (host-i386-darwin.o): Update.
17970 * config/i386/x-cygwin (host-cygwin.o): Update.
17971 * config/i386/t-nwld (nwld.o): Update.
17972 * config/i386/t-netware (netware.o): Update.
17973 * config/i386/t-interix (winnt.o): Update.
17974 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17975 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17976 msformat-c.o): Update.
17977 * config/bfin/t-bfin-linux (generated_files): Add
17978 linux-sysroot-suffix.h.
17979 * config/arm/t-wince-pe (pe.o): Update.
17980 * config/arm/t-strongarm-pe (pe.o): Update.
17981 * config/arm/t-pe (pe.o): Update.
17982 * config/arm/t-arm (arm-c.o): Update.
17983 * doc/install.texi (Prerequisites): Require make 3.80.
17984 * Makefile.in: Remove .o targets.
17985 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17986 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17987 (simple_generated_h, simple_generated_c): Move earlier.
17988 (generated_files): New variable.
17989 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17990 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17991 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17992 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17993 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17994 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17995 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17996 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17997 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17998 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17999 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18000 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18002 (COMPILE.base, COMPILE): New variables.
18003 (%.o): New pattern rule.
18004 (ALL_HOST_OBJS): New variable.
18005 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18006 (dummy-checksum.o, cc1-checksum.o): Remove.
18007 (DRIVER_SHLIB): New variable.
18008 (DRIVER_DEFINES): Use it.
18009 (gencondmd.c): Move out of build/.
18010 (s-conditions): Update.
18011 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18012 (ALL_BUILD_OBJS): Likewise.
18013 (build/%.o): Use BUILDCOMPILE.
18014 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18015 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18016 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18017 build/gencheck.o, build/gencodes.o, build/genconditions.o,
18018 build/genconfig.o, build/genconstants.o, build/genemit.o,
18019 build/genextract.o, build/genflags.o, build/genmddeps.o,
18020 build/genopinit.o, build/genoutput.o, build/genpeep.o,
18021 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18022 build/gen-protos.o, build/scan.o, build/fix-header.o,
18023 build/scan-decls.o): Simplify.
18024 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18025 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18026 prefix.o, toplev.o): Reduce to variable setting.
18027 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
18028 ($(out_object_file), gcc-options.o): New targets.
18029 ($(ALL_HOST_OBJS)): New target. Include dependency files.
18030 * configure: Rebuilt.
18031 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18032 * doc/sourcebuild.texi (Front End Directory): Document new variable.
18034 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
18036 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18037 complain when we hit an error, return ERROR_MARK_NODE.
18039 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18041 * config/sh/constraints.md (Pso, Psz): New constraints.
18042 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18043 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18045 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18047 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18048 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18050 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
18052 * config/sh/sh.md (prefetch): Add condition for SH2A target.
18053 (prefetch_sh2a): New.
18055 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
18056 Naveen.H.S <naveen.hs@kpitcummins.com>
18058 * config/sh/constraints.md (I28): New constraint.
18059 * config/sh/sh.c (broken_move): Add support for movi20s.
18060 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18062 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
18063 Jayant Sonar <Jayant.sonar@kpitcummins.com>
18064 Naveen.H.S <naveen.hs@kpitcummins.com>
18066 * config/sh/sh.c (SH_ATTRIBUTES): Define.
18067 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18068 (print_operand): Handle resbank in %@ operand code.
18069 (sh_encode_section_info): New.
18070 (push_regs): Add conditions for resbank.
18071 (sh_expand_epilogue): Likewise.
18072 (sh_insert_attributes): Likewise.
18073 (sh_attribute_table): Likewise.
18074 (sh_handle_resbank_handler_attribute): New.
18075 (sh2a_handle_function_vector_handler_attribute): New.
18076 (sh2a_is_function_vector_call): New.
18077 (sh2a_get_function_vector_number): New.
18078 (sh2a_function_vector_p): New.
18079 (sh_cfun_resbank_handler_p): New.
18080 * config/sh/sh.md (calli): Emit jsr/n if possible.
18081 (calli_tbr_rel): New.
18082 (calli_pcrel): Emit jsr/n if possible.
18083 (return_i): Emit rts/n if possible.
18084 (call_valuei_tbr_rel): New.
18085 (call_valuei_pcrel): Add condition for SH2A target.
18086 (call_value): Likewise.
18087 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18088 (sh2a_get_function_vector_number): Likewise.
18089 (sh2a_is_function_vector_call): Likewise.
18090 * doc/extend.texi: Document TBR relative addressing of SH2A.
18091 (resbank): Add description for SH2A.
18093 2008-03-24 Richard Guenther <rguenther@suse.de>
18096 * gimplify.c (gimplify_modify_expr): For frontend type-correct
18097 pointer assignments change conversions according to middle-end rules.
18098 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18099 * configure.ac: Include type checking in yes.
18100 * configure: Regenerate.
18102 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18104 * diagnostic.c (diagnostic_count_diagnostic): Delete.
18105 (diagnostic_report_diagnostic): Update. Handle ICEs here.
18107 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
18109 * gthr-vxworks.h (UNUSED): Define.
18111 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
18113 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18115 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
18117 * doc/extend.texi (Function Attributes): Add missing comma in the
18118 example of the "alloc_size" attribute.
18120 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
18123 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
18125 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18128 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18131 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18132 of the underlying type of a MS bitfield layout to the natural
18133 alignment of the type.
18135 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
18137 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18138 to their natural alignment to avoid store forwarding stalls.
18140 2008-03-22 Richard Guenther <rguenther@suse.de>
18142 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18143 For PHI nodes verify the address is invariant.
18144 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18145 (get_symbol_constant_value): Use is_gimple_min_invariant.
18146 (maybe_fold_stmt_indirect): Likewise.
18148 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
18150 PR rtl-optimization/33927
18151 * Makefile.in (dse.o): Depend on $(TM_P_H).
18152 * expr.h (extract_low_bits): Declare.
18153 * expmed.c (extract_low_bits): New function.
18154 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18155 * dse.c: Include tm_p.h.
18156 (find_shift_sequence): Remove the read_reg argument and return the
18157 read value. Emit the instructions instead of returning them.
18158 Iterate on new_mode rather than calculating it each time.
18159 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
18160 source to NEW_MODE and extract_low_bits to convert the shifted
18161 value to READ_MODE.
18162 (replace_read): Allow the load and store to have different mode
18163 classes. Use extract_low_bits when SHIFT == 0. Create the shift
18164 or extraction instructions before trying the replacement. Update
18165 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18167 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
18169 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18170 to their natural alignment to avoid store forwarding stalls.
18172 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18175 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18176 encouraging but not allowing gprs for input;
18177 change the input constraint to !f#r.
18178 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18180 change the output constraint to !f#r.
18182 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
18185 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18186 corresponding post-reload splitters.
18187 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18188 when x87 FP math is selected.
18189 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18190 New function prototype.
18191 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18192 unreachable function to ease macroization of insn patterns.
18194 2008-03-21 Martin Jambor <mjambor@suse.cz>
18196 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18197 reference dumps if ddr is NULL or dependence is unknown.
18199 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
18201 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18202 unsigned extension into account.
18203 (ATOMIC_COMPARE_AND_SWAP): Likewise.
18204 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18205 Do computations on a scratch register.
18207 2008-03-21 Richard Guenther <rguenther@suse.de>
18209 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18210 Use is_gimple_min_invariant instead of TREE_INVARIANT.
18211 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18212 * tree-ssa-dom.c (record_equality): Likewise.
18213 * tree-inline.c (copy_body_r): Likewise.
18214 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18217 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
18219 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18220 as 'delete_unused' argument.
18222 2008-03-20 Richard Guenther <rguenther@suse.de>
18224 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18225 special casing of constant qualifiers.
18226 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18227 care about them in general.
18228 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18229 regardless of their type.
18230 (fold_stmt_r): Forcefully fold *& if we end up with that.
18232 2008-03-20 Paul Brook <paul@codesourcery.com>
18234 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18235 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18237 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18239 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18240 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18242 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
18244 * common.opt (Wmudflap): New option.
18245 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18246 (mx_register_decls): Likewise.
18247 (mudflap_finish_file): Likewise.
18248 * doc/invoke.texi: Document -Wno-mudflap.
18250 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
18252 * c-format.c (replace_format_name_to_system_name): New.
18253 (cmp_attribs): New.
18254 (convert_format_name_to_system_name): New.
18255 (decode_format_attr): Add use of convert_format_name_to_system_name.
18256 (format_types_orig): Add gnu_ prefix to names.
18257 (check_format_info_main): Special treating of \0 escaped names for
18258 supporting multi-character format specifiers as I32, I64.
18259 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18260 (gnu_target_overrides_format_attributes): New.
18261 * c-format.h: Add structure target_ovr_attr to hold
18262 system specific formatter names.
18263 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18264 msformat-c.o file to c_target_objs and cxx_target_objs.
18265 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18266 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18267 (TARGET_N_FORMAT_TYPES): New.
18268 * config/i386/msformat-c.c: New.
18269 * config/i386/t-cygming: Add build rule for msformat-c.o.
18270 * doc/extend.texi: Add new format names gnu_* and ms_* and
18272 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18274 2008-03-20 Ira Rosen <irar@il.ibm.com>
18276 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18277 optimizations turned on under -O3.
18278 (ftree-vectorize): Add that the flag is turned on with -O3.
18280 2008-03-20 Ben Elliston <bje@au.ibm.com>
18282 * regmove.c (try_auto_increment): Fix spelling error in comment.
18283 * final.c (final_scan_insn): Likewise.
18285 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
18288 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18289 allocator preferences for "y" and "r" class registers.
18290 ("*mov<mode>_internal"): Ditto.
18291 ("*movv2sf_internal_rex64"): Ditto.
18292 ("*movv2sf_internal"): Ditto.
18294 2008-03-19 Michael Matz <matz@suse.de>
18296 PR middle-end/35616
18297 * calls.c (expand_call): Check overlap of arguments with call
18298 address for sibcalls.
18300 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
18303 * stor-layout.c (update_alignment_for_field): Set minimum alignment
18304 of the underlying type of a MS bitfield layout to the natural
18305 alignment of the type.
18307 2008-03-19 Jan Hubicka <jh@suse.cz>
18310 * toplev.c (decode_d_option): Handle all CPP flags.
18311 * tree-vrp.c: Update tree_pass descriptors.
18312 * regrename.c: Update tree_pass descriptors.
18313 * fwprop.c: Update tree_pass descriptors.
18314 * doc/invoke.texi: Remove documentation of dropped -d? flags.
18315 * tree-into-ssa.c: Update tree_pass descriptors.
18316 * tree-dump.c: Update tree_pass descriptors.
18317 * tree-complex.c: Update tree_pass descriptors.
18318 * tree-dump.h: Update tree_pass descriptors.
18319 * see.c: Update tree_pass descriptors.
18320 * cgraphbuild.c: Update tree_pass descriptors.
18321 * tracer.c: Update tree_pass descriptors.
18322 * tree-loop-distribution.c: Update tree_pass descriptors.
18323 * cgraph.c: Update tree_pass descriptors.
18324 * postreload-gcse.c: Update tree_pass descriptors.
18325 * postreload.c: Update tree_pass descriptors.
18326 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18327 * tree-tailcall.c: Update tree_pass descriptors.
18328 * tree-pass.h (tree_opt_pass): Rename to ...
18329 (opt_pass) ... this one; add "type" field and remove letter field.
18330 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18331 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18332 all_lowering_passes): Update declaration.
18333 * ipa-cp.c: Update tree_pass descriptors.
18334 * final.c: Update tree_pass descriptors.
18335 * omp-low.c: Update tree_pass descriptors.
18336 * tree-ssa-dse.c: Update tree_pass descriptors.
18337 * ipa-reference.c: Update tree_pass descriptors.
18338 * tree-ssa-uncprop.c: Update tree_pass descriptors.
18339 * auto-inc-dec.c: Update tree_pass descriptors.
18340 * reorg.c: Update tree_pass descriptors.
18341 * cgraphunit.c: Update tree_pass descriptors.
18342 * tree-ssa-copyrename.c: Update tree_pass descriptors.
18343 * tree-ssa-ccp.c: Update tree_pass descriptors.
18344 * df-core.c: Update tree_pass descriptors.
18345 * mode-switching.c: Update tree_pass descriptors.
18346 * tree-nomudflap.c: Update tree_pass descriptors.
18347 * modulo-sched.c: Update tree_pass descriptors.
18348 * ipa-pure-const.c: Update tree_pass descriptors.
18349 * cse.c: Update tree_pass descriptors.
18350 * web.c: Update tree_pass descriptors.
18351 * tree-stdarg.c: Update tree_pass descriptors.
18352 * tree-ssa-math-opts.c: Update tree_pass descriptors.
18353 * tree-ssa-dom.c: Update tree_pass descriptors.
18354 * tree-nrv.c: Update tree_pass descriptors.
18355 * tree-ssa-alias.c: Update tree_pass descriptors.
18356 * loop-init.c: Update tree_pass descriptors.
18357 * gimple-low.c: Update tree_pass descriptors.
18358 * ipa-inline.c: Update tree_pass descriptors.
18359 * tree-ssa-sink.c: Update tree_pass descriptors.
18360 * global.c: Update tree_pass descriptors.
18361 * ifcvt.c: Update tree_pass descriptors.
18362 * jump.c: Update tree_pass descriptors.
18363 * predict.c: Update tree_pass descriptors.
18364 * tree-ssa-loop.c: Update tree_pass descriptors.
18365 * recog.c: Update tree_pass descriptors.
18366 * dse.c: Update tree_pass descriptors.
18367 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18368 * tree-eh.c: Update tree_pass descriptors.
18369 * regmove.c: Update tree_pass descriptors.
18371 * function.c: Update tree_pass descriptors.
18372 * tree-vectorizer.c: Update tree_pass descriptors.
18373 * gcse.c: Update tree_pass descriptors.
18374 * ipa-type-escape.c: Update tree_pass descriptors.
18375 * tree-if-conv.c: Update tree_pass descriptors.
18376 * init-regs.c: Update tree_pass descriptors.
18377 * ipa.c: Update tree_pass descriptors.
18378 * tree-ssa-phiopt.c: Update tree_pass descriptors.
18379 * rtl-factoring.c: Update tree_pass descriptors.
18380 * lower-subreg.c: Update tree_pass descriptors.
18381 * bt-load.c: Update tree_pass descriptors.
18382 * tree-dfa.c: Update tree_pass descriptors.
18383 * except.c: Update tree_pass descriptors.
18384 * emit-rtl.c: Update tree_pass descriptors.
18385 * cfgexpand.c: Update tree_pass descriptors.
18386 * tree-cfgcleanup.c: Update tree_pass descriptors.
18387 * cfgcleanup.c: Update tree_pass descriptors.
18388 * tree-ssa-pre.c: Update tree_pass descriptors.
18389 * tree-sra.c: Update tree_pass descriptors.
18390 * tree-mudflap.c: Update tree_pass descriptors.
18391 * tree-ssa-copy.c: Update tree_pass descriptors.
18392 * cfglayout.c: Update tree_pass descriptors.
18393 * tree-ssa-forwprop.c: Update tree_pass descriptors.
18394 * tree-ssa-dce.c: Update tree_pass descriptors.
18395 * tree-ssa.c: Update tree_pass descriptors.
18396 * regclass.c: Update tree_pass descriptors.
18397 * integrate.c: Update tree_pass descriptors.
18398 * tree-optimize.c: Update tree_pass descriptors.
18399 * tree-ssa-phiprop.c: Update tree_pass descriptors.
18400 * tree-object-size.c: Update tree_pass descriptors.
18401 * combine.c: Update tree_pass descriptors.
18402 * tree-outof-ssa.c: Update tree_pass descriptors.
18403 * bb-reorder.c: Update tree_pass descriptors.
18404 * stack-ptr-mod.c: Update tree_pass descriptors.
18405 * var-tracking.c: Update tree_pass descriptors.
18406 * tree-profile.c: Update tree_pass descriptors.
18407 * tree-vect-generic.c: Update tree_pass descriptors.
18408 * reg-stack.c: Update tree_pass descriptors.
18409 * sched-rgn.c: Update tree_pass descriptors.
18410 * tree-ssa-structalias.c: Update tree_pass descriptors.
18411 * tree-cfg.c: Update tree_pass descriptors.
18412 * passes.c (current_pass): Update declaration.
18413 (finish_optimization_passes): Update.
18414 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18415 (register_one_dump_file, register_dump_files_1, next_pass_1):
18417 (init_optimization_passes): Update handling of new types.
18418 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18419 * ipa-struct-reorg.c: Update tree_pass descriptors.
18420 * tree-ssa-reassoc.c: Update tree_pass descriptors.
18421 * combine-stack-adj.c: Update tree_pass descriptors.
18422 * cfgrtl.c: Update tree_pass descriptors.
18423 * dce.c: Update tree_pass descriptors.
18424 * tree-ssanames.c: Update tree_pass descriptors.
18426 2008-03-19 Richard Guenther <rguenther@suse.de>
18428 PR middle-end/35609
18429 * tree-ssa.c (walk_data): New structure.
18430 (warn_uninitialized_var): If not always_executed warn with "maybe"
18432 (execute_early_warn_uninitialized): Compute post-dominators.
18433 Initialize always_executed before processing each basic block.
18435 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
18438 * config/i386/i386.c (x86_this_parameter): Calculate correct location
18439 of "this" pointer when "regparm = N" or "fastcall" is in effect.
18441 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18443 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18445 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
18447 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18449 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18450 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18451 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
18452 target after ignore has been set, and move there also the commputation
18453 of subtarget and original_target.
18454 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18455 (LANG_HOOKS_INITIALIZER): Remove it.
18456 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18458 2008-03-18 Richard Guenther <rguenther@suse.de>
18460 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18461 found an expression with constants, note that in the VN for the lhs.
18462 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18463 fold them to constants if possible. Run cleanup_cfg if done so.
18464 (execute_pre): Return todo.
18465 (do_pre): Likewise.
18466 (execute_fre): Likewise.
18467 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18469 (get_prop_source_stmt): Look through pointer conversions.
18471 2008-03-18 Jan Hubicka <jh@suse.cz>
18473 * tree-pretty-print.c: Include predict.h.
18474 (dump_generic_node): Dump predictor.
18475 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18476 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18477 * gimple-low.c (lower_stmt): Likewise.
18478 * expr.c (expand_expr_real): Likewise.
18479 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18481 (build_predict_expr, build_predict_expr): New.
18482 * predict.h (predictor_name, build_predict_expr): Update.
18483 * c-typeck.c (c_finish_bc_stmt): Add prediction.
18484 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18485 * predict.def (PRED_CONTINUE): Update hitrate.
18486 * tree.def (PREDICT_EXPR): Define.
18487 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18488 do not handle BIND_EXPR.
18489 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18490 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18491 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18494 2008-03-18 Michael Matz <matz@suse.de>
18496 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18498 2008-03-18 Richard Guenther <rguenther@suse.de>
18500 * tree-gimple.h (is_gimple_invariant_address): Declare.
18501 (is_gimple_constant): Likewise.
18502 * tree-gimple.c (is_gimple_constant): New function.
18503 (is_gimple_invariant_address): Likewise.
18504 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18505 and is_gimple_invariant_address.
18506 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18508 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18509 an addressable base.
18511 2008-03-18 Jakub Jelinek <jakub@redhat.com>
18513 PR middle-end/35611
18514 * gimplify.c (gimplify_expr): Gimplify second operand of
18517 2008-03-17 Richard Guenther <rguenther@suse.de>
18519 PR tree-optimization/19637
18520 * fold-const.c (fold_unary): Remove restrictions of removing
18521 intermediate pointer-conversions (P2)(P1)P0.
18522 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18523 conversion to void pointer.
18524 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18526 2008-03-16 James E. Wilson <wilson@tuliptree.org>
18529 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18530 emulated thread local variables.
18532 2008-03-16 Richard Guenther <rguenther@suse.de>
18534 PR middle-end/35607
18535 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18536 expand TREE_INVARIANT operations that are not gimple invariant.
18538 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
18540 * doc/extend.texi (Alignment): Say that the ABI controls
18541 the __alignof__ for non-strict-alignment targets rather
18542 than being a recommendation.
18544 2008-03-15 Paul Brook <paul@codesourcery.com>
18546 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18548 (arm_output_fn_unwind): Mark functions that can not be unwound.
18550 2008-03-15 Paul Brook <paul@codesourcery.com>
18552 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18553 extension instructions.
18555 2008-03-15 Richard Guenther <rguenther@suse.de>
18557 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18558 and fold constant aggregate refs.
18559 (fold_const_aggregate_ref): Handle string constants
18560 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
18561 (evaluate_stmt): Simplify now that ccp_fold folds constant
18564 2008-03-15 Paul Brook <paul@codesourcery.com>
18566 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18567 (extzv): Use gen_extzv_t2.
18568 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18570 2008-03-15 Richard Guenther <rguenther@suse.de>
18572 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18573 (fold_const_aggregate_ref): Likewise.
18574 (get_value): Return NULL if we don't have any values.
18575 (ccp_finalize): Set const_val to NULL after freeing it.
18576 * tree-flow.h (get_symbol_constant_value): Declare.
18577 (fold_const_aggregate_ref): Likewise.
18578 * tree-ssa-sccvn.c (try_to_simplify): Use them.
18580 2008-03-15 Richard Guenther <rguenther@suse.de>
18582 PR middle-end/35593
18583 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18584 to not produce negative array indices if not allowed. Add
18585 parameter to indicate that.
18586 (maybe_fold_offset_to_component_ref): Allow negative array
18587 indices only for the first member of a structure.
18588 (maybe_fold_offset_to_reference): Allow negative array indices.
18589 (maybe_fold_stmt_addition): Likewise.
18591 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
18592 Anatoly Sokolov <aesok@post.ru>
18594 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18595 (avr_arch): Add ARCH_AVR6.
18596 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18597 (initial_elimination_offset): Initialize and use 'avr_pc_size'
18598 instead of fixed value 2.
18599 (print_operand_address): Use gs() asm specifier instead of pm().
18600 (avr_assemble_integer): (Ditto.).
18601 (avr_output_addr_vec_elt): (Ditto.).
18602 (print_operand): Handle "!" code.
18603 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18604 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18605 (AVR_HAVE_EIJMP_EICALL): Define.
18606 (AVR_3_BYTE_PC): Redefine.
18607 (AVR_2_BYTE_PC): (Ditto.).
18608 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18609 (LINK_SPEC): Add atmega2560 and atmega2561.
18610 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18612 * config/avr/avr.md (call_insn): Use eicall instead of icall
18613 for 3 byte PC devices.
18614 (call_value_insn): (Ditto.).
18615 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18616 (indirect_jump): Use only for for 2 byte PC devices.
18617 (*tablejump): (Ditto.).
18618 (*indirect_jump_avr6): Add insn.
18619 (*tablejump_rjmp): Don't use for 3 byte PC devices.
18620 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18621 instead of ijmp for 3 byte PC devices.
18622 (__tablejump2__): (Ditto.).
18623 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18624 (MULITLIB_DIRNAMES): (Ditto.).
18625 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18627 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
18629 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18630 "sse2_umulsidi3". Use V1DI mode for operand 0.
18631 ("mmx_psadbw"): Use V1DI mode for operand 0.
18632 * config/i386/i386-modes.def (V1SI): New vector mode.
18633 * config/i386/i386.c (struct builtin_description)
18634 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18635 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18636 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18637 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18638 v1di_ftype_v8qi_v8qi type.
18639 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18641 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18642 __builtin_ia32_pmuludq]: Fix the mode of return value.
18644 2008-03-15 Richard Guenther <rguenther@suse.de>
18646 PR middle-end/35595
18647 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18650 2008-03-14 Bob Wilson <bob.wilson@acm.org>
18652 * doc/invoke.texi (Option Summary, Xtensa Options): Document
18653 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18654 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18655 unless TARGET_SERIALIZE_VOLATILE is enabled.
18656 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18657 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18658 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18660 2008-03-14 Richard Guenther <rguenther@suse.de>
18662 PR tree-optimization/34172
18663 * tree-flow.h (refs_may_alias_p): Declare.
18664 (get_single_def_stmt): Likewise.
18665 (get_single_def_stmt_from_phi): Likewise.
18666 (get_single_def_stmt_with_phi): Likewise.
18667 * tree-dfa.c (refs_may_alias_p): New function.
18668 (get_single_def_stmt): Likewise.
18669 (get_single_def_stmt_from_phi): Likewise.
18670 (get_single_def_stmt_with_phi): Likewise.
18671 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18672 (vn_reference_lookup_1): New helper function.
18673 (vn_reference_lookup): Walk the virtual use-def chain to
18674 continue searching for a match if the def does not alias the
18675 reference we are looking for.
18677 2008-03-14 David Edelsohn <edelsohn@gnu.org>
18679 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
18680 archive and Perzl. Update The Written Word listing.
18682 2008-03-14 Richard Guenther <rguenther@suse.de>
18684 PR tree-optimization/34043
18685 PR tree-optimization/33989
18686 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18688 (bitmap_find_leader): Use extra argument to verify dominance
18689 relationship inside a basic-block.
18690 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18691 (find_leader_in_sets): Adjust.
18692 (create_component_ref_by_pieces): Take extra argument for
18693 dominance check, handle lookup failures.
18694 (find_or_generate_expression): Likewise.
18695 (create_expression_by_pieces): Likewise.
18696 (insert_into_preds_of_block): Adjust.
18697 (create_value_expr_from): If asked for, verify all operands
18698 are in the blocks AVAIL_OUT set.
18699 (make_values_for_stmt): Check for SSA_NAMEs that are life
18700 over an abnormal edge.
18701 (compute_avail): Remove such check.
18702 (do_SCCVN_insertion): New function.
18703 (eliminate): If we do not find a leader suitable for replacement
18704 insert a replacement expression from SCCVN if available.
18705 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18706 (struct vn_ssa_aux): Add needs_insertion flag.
18707 * tree-ssa-sccvn.c (may_insert): New global flag.
18708 (copy_reference_ops_from_ref): Value-number union member access
18709 based on its size, not type and member if insertion is allowed.
18710 (visit_reference_op_load): For a weak match from union type
18711 punning lookup a view-converted value and insert a SSA_NAME
18712 for that value if that is not found.
18713 (visit_use): Make dumps shorter. Do not disallow value numbering
18714 SSA_NAMEs that are life over an abnormal edge to constants.
18715 (free_scc_vn): Release inserted SSA_NAMEs.
18716 (run_scc_vn): New flag to specify whether insertion is allowed.
18717 Process SSA_NAMEs in forward order.
18718 * tree-ssa-loop-im.c (for_each_index): Handle invariant
18719 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18720 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18721 pointer type to/from integral types that do not change the
18722 precision to regular conversions.
18724 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
18726 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18727 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18728 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18729 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18730 input arguments and the mode of return value. Built-in functions
18731 that operate on whole 64-bit MMX register now use V1DI mode.
18733 2008-03-13 Alon Dayan <alond@il.ibm.com>
18734 Olga Golovanevsky <olga@il.ibm.com>
18736 PR tree-optimization/35041
18737 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18738 to locate the right position in a statement.
18740 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
18744 * config/i386/xmmintrin.h: Change all static inline functions to
18745 extern inline and add __gnu_inline__ attribute.
18746 * config/i386/bmintrin.h: Ditto.
18747 * config/i386/smmintrin.h: Ditto.
18748 * config/i386/tmmintrin.h: Ditto.
18749 * config/i386/mmintrin-common.h: Ditto.
18750 * config/i386/ammintrin.h: Ditto.
18751 * config/i386/emmintrin.h: Ditto.
18752 * config/i386/pmmintrin.h: Ditto.
18753 * config/i386/mmintrin.h: Ditto.
18754 * config/i386/mm3dnow.h: Ditto.
18756 2008-03-13 Jakub Jelinek <jakub@redhat.com>
18758 PR middle-end/35185
18759 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18760 (lower_omp_2): New function.
18761 (lower_omp_1, lower_omp): Rewritten.
18763 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
18766 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18767 with the phrase "Microsoft Windows compilers".
18768 (Push/Pop Macro Pragmas): New subsection. Document
18769 #pragma push_macro and pragma pop_macro.
18771 2008-03-12 Paul Brook <paul@codesourcery.com>
18773 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18775 2008-03-12 Paul Brook <paul@codesourcery.com>
18777 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18778 (thumb2_alusi3_short): Exclude PLUS and MINUS.
18779 (thumb2_addsi_shortim): Rename ...
18780 (thumb2_addsi_short): ... to this. Allow register operands.
18781 (thumb2_subsi_short): New pattern.
18782 (thumb2_one_cmplsi2_short,
18783 thumb2_negsi2_short): New patterns and peepholes.
18785 2008-03-12 Paul Brook <paul@codesourcery.com>
18787 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18789 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
18791 * config/i386/i386.md (int_cond): New code iterator.
18793 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18794 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18795 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18796 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18797 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18798 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18799 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18800 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18802 2008-03-12 Paul Brook <paul@codesourcery.com>
18804 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18805 instead of {arm,thumb}_compute_save_reg_mask.
18806 (output_return_instruction): Ditto.
18807 (thumb_unexpanded_epilogue): Ditto.
18808 (thumb1_expand_prologue): Ditto.
18809 (thumb1_output_function_prologue): Ditto.
18810 (arm_set_return_address): Ditto.
18811 (thumb_set_return_address): Ditto.
18812 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
18813 regs to achieve stack alignment.
18814 (thumb1_compute_save_reg_mask): Fix compiler warning.
18815 (arm_output_epilogue): Use offsets->saved_regs_mask.
18816 Adjust stack pointer by poping call clobered registers.
18817 (arm_expand_prologue): Use offsets->saved_regs_mask.
18818 Adjust stack pointer by pushing extra registers.
18819 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18821 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
18824 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18825 conversion to the operands of a multiplication.
18827 2008-03-12 Richard Guenther <rguenther@suse.de>
18829 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18830 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18831 * timevar.def (TV_TREE_PHIPROP): Add.
18832 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18833 pass description. Use TV_TREE_PHIPROP.
18834 * tree-ssa-forwprop.c: Remove phiprop code.
18836 2008-03-12 Jakub Jelinek <jakub@redhat.com>
18838 PR middle-end/35549
18839 * omp-low.c (maybe_lookup_decl): Constify first argument.
18840 (use_pointer_for_field): Change last argument from bool to
18841 omp_context *. Disallow shared copy-in/out in nested
18842 parallel if decl is shared in outer parallel too.
18843 (build_outer_var_ref, scan_sharing_clauses,
18844 lower_rec_input_clauses, lower_copyprivate_clauses,
18845 lower_send_clauses, lower_send_shared_vars): Adjust callers.
18847 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
18848 Ira Rosen <irar@il.ibm.com>
18850 * tree-vectorizer.c (free_stmt_vec_info): New function.
18851 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18852 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18853 * tree-vectorizer.h (free_stmt_vec_info): Declare.
18854 * tree-vect-transform.c (vectorizable_conversion): Free
18855 vec_oprnds0 if it was allocated.
18856 (vect_permute_store_chain): Remove unused VECs.
18857 (vectorizable_store): Free VECs that are allocated in the..
18859 (vect_transform_strided_load, vectorizable_load): Likewise.
18860 (vect_remove_stores): Simplify the code.
18861 (vect_transform_loop): Move code to vect_remove_stores().
18862 Call vect_remove_stores() and free_stmt_vec_info().
18864 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18866 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18867 TARGET_HPUX. Revise comment.
18868 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18869 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18870 Use sr4 variant of `be' instruction when not generating PIC code.
18871 (attr_length_call): Adjust for above change.
18873 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18875 * ipa-reference.c (static_execute): Remove module_statics_const and
18876 associated setting code.
18878 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
18881 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18882 predicate for operand 1.
18883 (paritysi2_cmp): Use register_operand predicate for operand 2.
18884 Use earlyclobber modifier for operand 1. Remove support for
18886 (paritydi2_cmp): Use register_operand predicate for operand 3.
18887 Use earlyclobber modifier for operand 1. Remove support for
18890 2008-03-11 Paul Brook <paul@codesourcery.com>
18891 Vladimir Prus <vladimir@codesourcery.com>
18893 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18894 (arm_compute_save_reg0_reg12_mask): Always
18895 check if register 11 must be saved. Always safe hard frame pointer
18896 when frame_pointer_needeed.
18897 (arm_compute_save_reg_mask): Save IP and PC
18898 only with apcs frames.
18899 (arm_output_epilogue): Adjust Thumb2 codepath to
18900 be also invoked and work for ARM non-apcs frames.
18901 (arm_expand_prologue): Don't bother saving IP
18902 for non-apcs frame, since it's not clobbered by
18903 prologue code. Implement non-apcs frame
18906 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
18908 PR rtl-optimization/35281
18909 * expr.c (convert_move): Use a new pseudo for the intermediate
18910 from_mode->word_mode result.
18912 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
18914 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18915 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18916 * toplev.c (compile_file): Don't call it.
18918 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
18920 PR middle-end/35526
18921 * expr.c (store_expr): Call emit_block_move if the mode
18922 of "temp" RTX is BLKmode.
18924 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
18925 Richard Guenther <rguenther@suse.de>
18927 PR tree-optimization/31358
18928 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18929 the step with a NULL_TREE.
18930 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18931 to sizetype if type is a pointer type.
18932 (add_candidate_1): Don't convert the base and step to
18933 the generic type if the orginal type is a pointer type.
18934 (add_iv_value_candidates): Use sizetype for the step
18935 if type is a pointer type.
18936 (cand_value_at): Likewise.
18937 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18939 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18940 Don't convert the tem affine to the type.
18941 (add_elt_to_tree): Use sizetype for the step if a pointer.
18942 Use POINTER_PLUS_EXPR for pointers.
18943 (aff_combination_to_tree): Use sizetype for the step if a
18946 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
18948 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18949 Remove commutativity hint.
18951 2008-03-10 Jakub Jelinek <jakub@redhat.com>
18955 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18956 errorneous type. Check that v is a VAR_DECL.
18958 PR middle-end/35099
18959 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18961 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
18963 PR tree-optimization/35494
18964 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18965 may be overriden at link and run time.
18967 2008-03-10 Richard Guenther <rguenther@suse.de>
18969 PR tree-optimization/34677
18970 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18971 (poolify_tree): Likewise.
18972 (modify_expr_template): Likewise.
18973 (poolify_modify_stmt): Likewise.
18974 (insert_fake_stores): Handle all component-ref style stores
18975 in addition to INDIRECT_REF. Also handle complex types.
18976 Do not poolify the inserted load.
18977 (realify_fake_stores): Do not rebuild the tree but only
18978 make it a SSA_NAME copy.
18979 (init_pre): Remove initialzation of modify_expr_template.
18980 Do not allocate modify_expr_node_pool.
18981 (fini_pre): Do not free modify_expr_node_pool.
18983 2008-03-10 Paul Brook <paul@codesourcery.com>
18985 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18986 to avoid conflicts.
18988 2008-03-10 Paul Brook <paul@codesourcery.com>
18989 Mark Shinwell <shinwell@codesourcery.com>
18991 * config/arm/cortex-r4.md: New.
18992 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18994 * config/arm/arm.md: Include cortex-r4.md.
18995 (insn): Add smmls, sdiv and udiv values.
18996 (generic_sched): Don't use generic scheduling for Cortex-R4.
18997 (arm_issue_rate): New function.
18998 (TARGET_SCHED_ISSUE_RATE): Define.
19000 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
19002 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19004 2008-03-10 Richard Guenther <rguenther@suse.de>
19006 * tree-ssa-pre.c (get_sccvn_value): Simplify.
19007 (compute_avail): Do not add stmt uses to AVAIL_OUT.
19009 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
19011 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19012 Set default to true.
19014 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19016 * c.opt (Wsynth): Deprecate.
19017 * doc/invoke.texi (Option Summary, Warning Options): Document
19018 -Wno-format-contains-nul.
19020 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
19023 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19024 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19026 2008-03-09 Ira Rosen <irar@il.ibm.com>
19028 * config/rs6000/rs6000.c (builtin_description): Rename vector
19029 left shift operations.
19030 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19031 (altivec_vsl<VI_char>): Rename to ...
19032 (ashl<mode>3): ... new name.
19033 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19035 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19037 2008-03-08 Richard Guenther <rguenther@suse.de>
19039 * coverage.h (tree_coverage_counter_addr): Declare.
19040 * coverage.c (tree_coverage_counter_addr): New function.
19041 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19042 before using again.
19043 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19044 (tree_gen_one_value_profiler): Likewise.
19045 (tree_gen_ic_profiler): Likewise.
19046 (tree_gen_average_profiler): Likewise.
19047 (tree_gen_ior_profiler): Likewise.
19049 2008-03-08 Richard Guenther <rguenther@suse.de>
19051 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19052 (vn_binary_op_insert): Likewise.
19053 (vn_unary_op_lookup): Likewise.
19054 (vn_unary_op_insert): Likewise.
19055 (vn_nary_op_lookup): Declare.
19056 (vn_nary_op_insert): Likewise.
19057 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19058 and binary hashes, use a single obstack for unary_op_pool
19059 and binary_op_pool.
19060 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19061 a single struct vn_nary_op_s. Store tree code length and
19062 a variable number of operands.
19063 (struct vn_reference_op_struct): Remove unused op2.
19064 (vn_reference_op_eq): Do not compare op2.
19065 (vn_reference_op_compute_hash): Do not compute hash of op2.
19066 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19067 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19068 with vn_nary_op_compute_hash.
19069 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19070 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19072 (vn_unary_op_insert, vn_binary_op_insert): Replace with
19074 (visit_unary_op): Call nary functions.
19075 (visit_binary_op): Likewise.
19076 (process_scc): Adjust for struct vn_tables_s changes.
19077 (allocate_vn_table): Likewise.
19078 (free_vn_table): Likewise.
19079 * tree-vn.c (vn_add): Call nary functions.
19080 (vn_lookup): Likewise.
19082 2008-03-08 Jakub Jelinek <jakub@redhat.com>
19085 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19086 wdst back after sync_compare_and_swapqhi_internal.
19088 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
19091 * config/i386/i386-modes.def (V1DI): New vector mode.
19092 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19093 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19094 (MMXMODE248): Ditto.
19095 (MMXMODE): Add V1DI mode.
19096 (mmxvecsize): Change DI mode to V1DI mode.
19097 ("mov<mode>): Use MMXMODEI8 mode iterator.
19098 ("*mov<mode>_internal_rex64"): Ditto.
19099 ("*mov<mode>_internal"): Ditto.
19100 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
19101 ("mmx_sub<mode>3"): Ditto.
19102 ("mmx_adddi3"): Remove insn pattern.
19103 ("mmx_subdi3"): Ditto.
19104 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19105 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19106 ("mmx_ashl<mode>3"): Ditto.
19107 ("mmx_lshrdi3"): Remove insn pattern.
19108 ("mmx_ashldi3"): Ditto.
19109 * config/i386/i386.c (classify_argument): Handle V1DImode.
19110 (function_arg_advance_32): Ditto.
19111 (function_arg_32): Ditto.
19112 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19113 mmx_addv1di3 insn pattern.
19114 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19115 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19116 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19117 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19118 Remove definitions of built-in functions.
19119 (V1DI_type_node): New node.
19120 (v1di_ftype_v1di_int): Ditto.
19121 (v1di_ftype_v1di_v1di): Ditto.
19122 (v2si_ftype_v2si_si): Ditto.
19123 (v4hi_ftype_v4hi_di): Remove node.
19124 (v2si_ftype_v2si_di): Ditto.
19125 (ix86_init_mmx_sse_builtins): Handle V1DImode.
19126 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19127 Redefine builtins using def_builtin_const with *_ftype_*_int node.
19128 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19129 Add new builtins using def_builtin_const.
19130 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19131 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19132 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19133 * config/i386/mmintrin.h (__v1di): New typedef.
19134 (_mm_add_si64): Cast arguments to __v1di type.
19135 (_mm_sub_si64): Ditto.
19136 (_mm_sll_pi16): Cast __count to __v4hi type.
19137 (_mm_sll_pi32): Cast __count to __v2si type.
19138 (_mm_sll_si64): Cast arguments to __v1di type.
19139 (_mm_srl_pi16): Cast __count to __v4hi type.
19140 (_mm_srl_pi32): Cast __count to __v2si type.
19141 (_mm_srl_si64): Cast arguments to __v1di type.
19142 (_mm_sra_pi16): Cast __count to __v4hi type.
19143 (_mm_sra_pi32): Cast __count to __v2si type.
19144 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19145 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19146 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19147 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19148 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19149 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19150 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19151 (_mm_srai_pi32): Use __builtin_ia32_psradi.
19152 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19153 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19154 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19155 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19157 2008-03-07 Joseph Myers <joseph@codesourcery.com>
19159 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19161 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
19164 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19165 reg+const addressing for Altivec modes. Don't generate reg+reg
19166 addressing for TFmode or TDmode quantities.
19168 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
19170 * c-common.c (vector_types_convertible_p): Call langhook
19171 instead of comptypes.
19173 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
19176 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19177 integral and scalar float variables which have a
19180 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
19182 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19183 dwarf_register_span hook when emitting unwind information for
19184 register-to-memory saves.
19185 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19186 (rs6000_frame_related): Remove call to spe_synthesize_frame.
19188 2008-03-06 Jakub Jelinek <jakub@redhat.com>
19190 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19191 for the same VAR_DECL.
19193 2008-03-06 Tom Tromey <tromey@redhat.com>
19195 * treelang: Delete.
19196 * doc/standards.texi (Standards): Don't mention treelang.
19197 * doc/invoke.texi (Overall Options): Don't mention treelang.
19198 * doc/install.texi (Prerequisites): Don't mention bison or
19200 (Configuration): Don't mention treelang.
19201 (Building): Likewise.
19202 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19204 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
19206 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19207 word-extractions out of a multi-word object.
19209 2008-03-06 Richard Guenther <rguenther@suse.de>
19211 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19212 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19213 result type and precision.
19214 * expr.c (get_inner_reference): Set unsignedp based on the result
19215 type of BIT_FIELD_REF.
19216 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19217 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19218 (try_instantiate_multiple_fields): Likewise. Use the correct type
19220 (sra_build_assignment): Likewise.
19221 (sra_build_elt_assignment): Likewise.
19222 (sra_explode_bitfield_assignment): Likewise.
19223 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19224 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19225 set BIT_FIELD_REF_UNSIGNED.
19226 (vectorizable_load): Likewise.
19228 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
19230 * cse.c (cse_extended_basic_block): Invalidate artificial defs
19233 2008-03-06 Richard Guenther <rguenther@suse.de>
19235 * alias.c (struct alias_set_entry): Move has_zero_child field
19236 to pack with alias_set.
19238 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
19240 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19243 2008-03-05 Ian Lance Taylor <iant@google.com>
19245 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19247 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
19249 * fwprop.c (update_df): Support width and offset parameters of
19251 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19252 global_conflicts): Change DF_REF_EXTRACT to either
19253 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19254 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19255 * df-scan.c (df_ref_record, df_defs_record,
19256 df_ref_create_structure, df_def_record_1, df_uses_record,
19257 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19258 df_bb_refs_collect, df_entry_block_defs_collect,
19259 df_exit_block_uses_collect): Support new width and offset fields.
19260 (ref_extract_pool): New storage pool.
19261 (df_free_ref): New function.
19262 (df_reg_chain_unlink, df_free_collection_rec,
19263 df_sort_and_compress_refs): Call df_free_ref.
19264 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19266 (df_ref_create_structure): Allocate df_ref_extract if offset and
19267 width fields are used.
19268 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19269 (df_uses_record): Get offset and width from ZERO_EXTRACT
19271 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19272 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19273 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19274 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19275 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
19276 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19277 (df_ref_extract): New structure.
19278 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19279 (df_ref_create): Add width and offset parameters.
19281 2008-03-05 Richard Guenther <rguenther@suse.de>
19283 * tree-ssa-structalias.c (get_constraint_for_component_ref):
19284 Use ranges_overlap_p.
19285 (offset_overlaps_with_access): Rename
19286 to ranges_overlap_p and move ...
19287 * tree-flow-inline.h (ranges_overlap_p): ... here.
19289 * tree.h (get_inner_reference, handled_component_p): Update
19292 * tree.h (record_component_aliases, get_alias_set,
19293 alias_sets_conflict_p, alias_sets_must_conflict_p,
19294 objects_must_conflict_p): Move declarations ...
19295 * alias.h (record_component_aliases, get_alias_set,
19296 alias_sets_conflict_p, alias_sets_must_conflict_p,
19297 objects_must_conflict_p): ... here.
19298 Include coretypes.h.
19299 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19301 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
19303 * cfg.c: Include tree-flow.h.
19304 (remove_edge_raw): Call redirect_edge_var_map_clear.
19305 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19306 * tree-flow-inline.h (redirect_edge_var_map_def): New.
19307 (redirect_edge_var_map_result): New.
19308 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19309 PENDING_STMT use with redirect_edge_var_map_*.
19310 * tree-ssa.c (edge_var_maps): New definition.
19311 (redirect_edge_var_map_add): New.
19312 (redirect_edge_var_map_clear): New.
19313 (redirect_edge_var_map_dup): New.
19314 (redirect_edge_var_map_vector): New.
19315 (redirect_edge_var_map_destroy): New.
19316 (ssa_redirect_edge): Replace PENDING_STMT use with
19317 redirect_edge_var_map_*.
19318 (flush_pending_stmts): Same.
19319 (delete_tree_ssa): Destroy edge var map.
19320 * tree-flow.h (struct _edge_var_map): New.
19321 Define edge_var_map vector type.
19322 Declare redirect_edge_var_map_* prototypes.
19323 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19324 * tree-cfg.c (reinstall_phi_args): Replace
19325 PENDING_STMT use with redirect_edge_var_map_*.
19327 2008-03-05 Richard Guenther <rguenther@suse.de>
19329 PR tree-optimization/35472
19330 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19331 whose single use_stmt has a overlapping set of loaded and
19332 stored symbols as that use_stmt might be a noop assignment then.
19334 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
19336 * gthr-rtems.h: Implement __gthread_mutex_destroy.
19338 2008-03-05 Richard Guenther <rguenther@suse.de>
19341 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19342 should be constants.
19343 * tree-cfg.c (verify_expr): Verify it.
19344 * fold-const.c (fold_truthop): Remove code generating
19345 BIT_FIELD_REFs of structure bases.
19346 (fold_binary): Likewise.
19347 (fold_ternary): Position and size of BIT_FIELD_REFs are
19348 always host integers.
19349 (make_bit_field_ref): Remove.
19350 (optimize_bit_field_compare): Remove.
19351 (all_ones_mask_p): Remove.
19353 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
19356 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19357 (split_block_and_df_analyze): New. Split basic block and rebuild
19359 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19361 (split_pattern_seq): Likewise.
19362 (erase_matching_seqs): Likewise.
19363 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19365 2008-03-04 Geoff Keating <geoffk@apple.com>
19367 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19368 declaration and code.
19369 (tree_invalid_nonnegative_warnv_p): Likewise.
19371 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
19373 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19374 examples. Truncate option-names then causing overfull hbox.
19376 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19379 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19381 * configure: Rebuilt.
19383 2008-03-04 Rafael Espindola <espindola@google.com>
19385 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19386 (tree_unary_nonnegative_warnv_p): New.
19387 (tree_binary_nonnegative_warnv_p): New.
19388 (tree_single_nonnegative_warnv_p): New.
19389 (tree_invalid_nonnegative_warnv_p): New.
19390 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19392 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19395 * opts.c (handle_option): Postpone 'unknown option' errors only for
19398 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
19401 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19404 2008-03-04 Rafael Espindola <espindola@google.com>
19406 * fold-const.c (tree_unary_nonzero_warnv_p): New.
19407 (tree_binary_nonzero_warnv_p): New.
19408 (tree_single_nonzero_warnv_p): New.
19409 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19411 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
19413 PR middle-end/35456
19414 * fold-const.c (fold_cond_expr_with_comparison): Prevent
19415 transformations for modes that have signed zeros.
19416 * ifcvt.c (noce_try_abs): Ditto.
19418 2008-03-04 Joseph Myers <joseph@codesourcery.com>
19420 * config/i386/i386.c (override_options): Force
19421 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19423 2008-03-04 Jan Hubicka <jh@suse.cz>
19426 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19429 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19431 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
19432 label to probe the stack.
19434 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
19436 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19437 (__gthr_win32_mutex_destroy): Declare.
19438 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19439 __gthr_win32_mutex_destroy.
19440 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
19442 2008-03-03 Jan Hubicka <jh@suse.cz>
19445 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19446 aggressive on inlining cold calls.
19448 2008-03-03 Richard Guenther <rguenther@suse.de>
19450 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19451 struct copies into the expression table.
19452 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19453 (try_to_simplify): Likewise.
19454 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19455 integral and pointer arguments which do not change the
19456 precision to NOP_EXPRs.
19457 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19458 VIEW_CONVERT_EXPR case.
19460 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
19462 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19463 defined in a loop at depth 0 is invariant.
19464 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19465 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19466 be called at loop depth 0.
19468 2008-03-02 Jakub Jelinek <jakub@redhat.com>
19471 * gcc.c (process_command): Update copyright notice dates.
19472 * gcov.c (print_version): Likewise.
19473 * gcov-dump.c (print_version): Likewise.
19474 * mips-tfile.c (main): Likewise.
19475 * mips-tdump.c (main): Likewise.
19477 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19480 * c-common.c (flag_permissive): Delete.
19481 (constant_expression_warnings): Check flags first.
19482 (constant_expression_error): New.
19483 * c-common.h (flag_permissive): Delete.
19484 (constant_expression_error): Declare.
19485 * flags.h (flag_permissive): Declare. Update description.
19486 * diagnostic.c (pedwarn): Update.
19488 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19489 (permissive_error_kind): New.
19490 * toplev.c (flag_permissive): Define. Update description.
19491 * toplev.h (permissive_error_kind): Declare.
19492 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19493 (pedwarn_c90): Use pedantic_warning_kind.
19494 * c-opts.c (c_common_post_options): flag_permissive does not affect
19495 flag_pedantic_errors.
19497 2008-03-02 Joseph Myers <joseph@codesourcery.com>
19499 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19500 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19501 __absvsi2, __absvDI2): Use unsigned arithmetic.
19503 2008-03-02 Andi Kleen <ak@suse.de>
19504 Richard Guenther <rguenther@suse.de>
19506 * struct-equiv.c: Remove file.
19507 * cfg_cleanup.c (condjump_equiv_p): Remove.
19508 * Makefile.in (OBJS-common): Remove struct-equiv.o.
19509 (struct-equiv.o): Remove rule.
19510 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19511 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19512 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19514 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19516 * ifcvt.c (noce_process_if_block): Try to handle only the then
19517 block if the else block exists but isn't suitable.
19519 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19522 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19523 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19524 regression from previous patch.
19526 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
19529 * gthr.h: Add __gthread_mutex_destroy as a function that must be
19531 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19532 * gthr-single.h (__gthread_mutex_destroy): Likewise.
19533 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19534 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19535 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19536 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19537 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19538 (__gthread_mutex_destroy_function): Rename to
19539 __gthread_mutex_destroy.
19540 * gthr-dce.h (__gthread_mutex_destroy): Call
19541 pthread_mutex_destroy.
19542 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19543 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19544 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19546 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19548 * df-scan.c (df_ref_chain_change_bb): Simplify.
19549 (df_insn_change_bb): Add new_bb argument. Simplify. Call
19550 set_block_for_insn if there's any change.
19551 * df.h ((df_insn_change_bb): Fix prototype.
19552 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19553 df_insn_change_bb, don't call set_block_for_insn.
19554 * emit-rtl.c (reorder_insns): Likewise.
19555 * haifa-sched.c (move_insn): Likewise.
19557 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19559 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19561 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
19563 * tree-flow-inline.h (next_readonly_imm_use): Return
19564 NULL_USE_OPERAND_P after the end.
19566 2008-03-01 Richard Guenther <rguenther@suse.de>
19568 PR tree-optimization/35411
19569 * tree-sra.c (sra_build_assignment): Split conversion to
19570 final type to a separate statement if we are not assigning
19573 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
19575 * fold-const.c (fold_convertible_p): Correct the logic to follow
19576 that in fold_convert().
19578 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
19581 * tree-inline.c (build_duplicate_type): When we make a
19582 duplicate type, make it unique in the canonical types system.
19584 2008-02-29 Tom Tromey <tromey@redhat.com>
19586 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19587 input_file_stack_history, input_file_stack_restored): Remove.
19588 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19589 * input.h (struct file_stack): Remove.
19590 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19591 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19593 * diagnostic.h (struct diagnostic_context) <last_module>: Change
19595 (diagnostic_last_module_changed): Add 'map' argument.
19596 (diagnostic_set_last_function): Likewise.
19597 * diagnostic.c (undiagnostic_report_current_module): Iterate using
19598 line map, not input_file_stack.
19599 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19601 2008-02-29 Paul Brook <paul@codesourcery.com>
19603 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19605 2008-02-29 Paul Brook <paul@codesourcery.com>
19607 * config/arm/ieee754-df.S (muldf3): Use RET macros.
19609 2008-02-29 Richard Guenther <rguenther@suse.de>
19611 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19613 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19614 value for comparing for a store match.
19615 (simplify_unary_expression): Do nothing for SSA_NAMEs.
19616 (try_to_simplify): Do not do a full-blown reference lookup.
19618 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19620 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19621 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19623 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19625 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
19627 * tree-loop-linear.c (try_interchange_loops): Compare memory access
19628 strides against cache sizes.
19630 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
19632 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19635 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
19637 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19638 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19639 is smaller than the original promoted value.
19640 (simplify_subreg): If OP is a SUBREG, try to preserve its
19641 SUBREG_PROMOTED_VAR_P information.
19643 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
19645 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19646 (VN_INFO_GET): Allocate new objects on the obstack.
19647 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
19648 for rpo_numbers_temp, for consistency.
19649 (free_scc_vn): Free the obstack.
19651 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
19653 * doc/invoke.texi: Document -ftree-loop-distribution.
19654 * tree-loop-distribution.c: New.
19655 * tree-pass.h (pass_loop_distribution): New.
19656 * graphds.h (struct graph): Add htab_t indices.
19657 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19658 * tree-vectorizer.c (rename_variables_in_loop): Extern.
19659 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19660 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19661 * tree-data-ref.c (debug_data_dependence_relations): New.
19662 (dump_data_dependence_relation): Also print data references.
19663 (free_data_ref): Extern.
19664 (same_access_functions): Moved...
19665 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19666 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19667 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19668 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19669 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19670 (stmts_from_loop): Skip LABEL_EXPR.
19671 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19673 (build_rdg): Initialize rdg->indices htab.
19674 (free_rdg, stores_from_loop, ref_base_address,
19675 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19676 have_similar_memory_accesses_1, ref_base_address_1,
19677 remove_similar_memory_refs): New.
19678 * tree-data-ref.h: Depend on tree-chrec.h.
19679 (debug_data_dependence_relations, free_data_ref): Declared.
19680 (same_access_functions): ... here.
19681 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19683 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19684 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19685 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19686 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19687 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19688 rdg_vertex_for_stmt): Declared.
19689 (struct rdg_edge): Add level.
19691 (free_rdg, stores_from_loop, remove_similar_memory_refs,
19692 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19694 (rdg_has_similar_memory_accesses): New.
19695 * tree-vect-analyze.c: Remove unused static decls.
19696 * lambda.h (dependence_level): New.
19697 * common.opt (ftree-loop-distribution): New.
19698 * tree-flow.h (mark_virtual_ops_in_bb,
19699 slpeel_tree_duplicate_loop_to_edge_cfg,
19700 rename_variables_in_loop): Declared.
19701 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19702 (OBJS-common): Add tree-loop-distribution.o.
19703 (tree-loop-distribution.o): New rule.
19704 * tree-cfg.c (mark_virtual_ops_in_bb): New.
19705 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19706 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19708 2008-02-28 Joseph Myers <joseph@codesourcery.com>
19711 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19712 other than structures and unions.
19714 2008-02-28 Richard Guenther <rguenther@suse.de>
19717 2008-02-26 Richard Guenther <rguenther@suse.de>
19719 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19720 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19721 (lookup_decl_from_uid): Declare.
19722 (remove_decl_from_map): Likewise.
19723 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19724 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19725 (decl_for_uid_map): New global hashtable mapping DECL_UID
19727 (init_ttree): Allocate it.
19728 (insert_decl_to_uid_decl_map): New helper function.
19729 (make_node_stat): Insert new decls into the map.
19730 (copy_node_stat): Likewise.
19731 (lookup_decl_from_uid): New function.
19732 (remove_decl_from_map): Likewise.
19733 (print_decl_for_uid_map_statistics): New helper.
19734 (dump_tree_statistics): Call it.
19736 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19737 (referenced_var_iterator): Adjust.
19738 (FOR_EACH_REFERENCED_VAR): Adjust.
19739 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19740 (num_referenced_vars): Adjust.
19741 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19742 (first_referenced_var): Remove.
19743 (end_referenced_vars_p): Likewise.
19744 (next_referenced_var): Likewise.
19745 (referenced_var_iterator_set): New helper function.
19746 * tree-dfa.c (referenced_var_lookup): Adjust.
19747 (referenced_var_check_and_insert): Likewise.
19748 (remove_referenced_var): Likewise.
19749 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19750 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19751 (verify_call_clobbering): Likewise.
19752 (verify_memory_partitions): Likewise.
19753 (init_tree_ssa): Allocate bitmap instead of hashtable for
19755 (delete_tree_ssa): Adjust.
19756 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19757 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19758 (compute_tag_properties): Likewise.
19759 (set_initial_properties): Likewise.
19760 (find_partition_for): Likewise.
19761 (update_reference_counts): Likewise.
19762 (dump_may_aliases_for): Likewise.
19763 * tree-ssa-operands.c (add_virtual_operand): Likewise.
19764 (add_call_clobber_ops): Likewise.
19765 (add_call_read_ops): Likewise.
19766 (get_asm_expr_operands): Likewise.
19767 * tree-into-ssa.c (dump_decl_set): Likewise.
19768 (update_ssa): Likewise.
19769 * tree-sra.c (scan_function): Likewise.
19770 (decide_instantiations): Likewise.
19771 (scalarize_parms): Likewise.
19772 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19773 (dsa_named_for): Likewise.
19774 * tree-ssa-structalias.c (update_alias_info): Likewise.
19775 (merge_smts_into): Likewise.
19777 2008-02-27 David Daney <ddaney@avtrex.com>
19780 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19781 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19782 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19783 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19784 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19786 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
19789 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19790 (BUILT_IN_NEXTTOWARD): Remove.
19791 (BUILT_IN_NEXTTOWARDF): Ditto.
19792 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19793 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
19795 2008-02-27 Tom Tromey <tromey@redhat.com>
19797 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19798 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19800 2008-02-27 Jan Beulich <jbeulich@novell.com>
19802 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19803 update the respective field on newdecl.
19805 2008-02-27 Revital Eres <eres@il.ibm.com>
19807 PR rtl-optimization/34999
19808 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19809 crossing edges that ends with a call insn.
19810 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19811 call insn and clear the EDGE_CROSSING flag of the crossing edge
19812 when fixing fallthru edges.
19814 2008-02-27 Richard Guenther <rguenther@suse.de>
19816 PR middle-end/35390
19817 * fold-const.c (fold_unary): Return the correct argument,
19818 converted to the result type.
19820 2008-02-27 Richard Guenther <rguenther@suse.de>
19822 PR middle-end/34971
19823 * expr.c (expand_expr_real_1): Assert on rotates that operate
19825 * fold-const.c (fold_binary): Use the types precision, not the
19826 bitsize of the mode if folding rotate expressions. Build rotates
19827 only for full modes.
19829 2008-02-27 Jakub Jelinek <jakub@redhat.com>
19831 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19832 and CPP_PRAGMA_EOL.
19833 * c-pragma.c (pragma_ns_name): New typedef.
19834 (registered_pp_pragmas): New variable.
19835 (c_pp_lookup_pragma): New function.
19836 (c_register_pragma_1): If flag_preprocess_only, do nothing
19837 for non-expanded pragmas, for expanded ones push pragma's
19838 namespace and name into registered_pp_pragmas vector.
19839 (c_invoke_pragma_handler): Register OpenMP pragmas even when
19840 flag_preprocess_only, don't register GCC pch_preprocess
19841 pragma if flag_preprocess_only.
19842 * c-opts.c (c_common_init): Call init_pragma even if
19843 flag_preprocess_only.
19844 * c-pragma.c (c_pp_lookup_pragma): New prototype.
19845 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19846 cpp_register_pragma if flag_preprocess_only.
19848 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19851 * c-parser.c (c_parser_translation_unit): Warn for empty
19852 translation unit, not empty source file.
19854 2008-02-26 Paul Brook <paul@codesourcery.com>
19856 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19857 operand for Thumb-2.
19858 * config/arm/arm.h (reg_class): Add CORE_REGS.
19859 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19860 (BASE_REG_CLASS): Use CORE_REGS.
19861 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19862 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19863 (REGNO_OK_FOR_INDEX_P): Exclude SP.
19864 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
19865 ARM_REGNO_OK_FOR_INDEX_P.
19866 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19867 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19868 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19869 (ldm/stm peepholes): Ditto.
19870 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19871 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19872 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19873 * config/arm/constraints.md: Enable "k" constraint on ARM.
19875 2008-02-27 Ben Elliston <bje@au.ibm.com>
19877 * config/rs6000/rs6000.c: Annotate cache line size field in all
19878 instances of struct processor_costs.
19880 2008-02-26 David Edelsohn <edelsohn@gnu.org>
19882 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19883 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19884 jump_bypass): New counters.
19885 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19886 * dce.c (gate_ud_dce): Same.
19887 (gate_fast_dce): Same.
19888 * dse.c (gate_dse1): New function.
19889 (gate_dse2): New function.
19890 (gate_dse): Merge results of new gate functions.
19891 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19892 (gate_handle_jump_bypass): Add dbg_cnt.
19893 (gate_handle_gcse): Add dbg_cnt.
19894 * ifcvt.c (gate_handle_if_conversion): Same.
19895 (gate_handle_if_after_combine): Same.
19896 (gate_handle_if_after_reload): Same.
19897 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19899 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
19901 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19903 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19905 2008-02-26 Jason Merrill <jason@redhat.com>
19908 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19909 alone if it's the naming decl for the type's main variant.
19911 2008-02-26 Tom Tromey <tromey@redhat.com>
19913 * system.h (USE_MAPPED_LOCATION): Poison.
19914 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19915 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19916 (make_goto_expr_edges): Likewise.
19917 (remove_bb): Likewise.
19918 (execute_warn_function_return): Likewise.
19919 * basic-block.h (struct edge_def) <goto_locus>: Change type to
19921 * c-common.c (fname_decl): Remove old location code.
19922 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19924 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19926 (ASM_INPUT_SOURCE_LOCATION): Likewise.
19927 (gen_rtx_ASM_INPUT): Likewise.
19928 (gen_rtx_ASM_INPUT_loc): Likewise.
19929 (get_rtx_asm_OPERANDS): Remove.
19930 * cfglayout.c (insn_locators_alloc): Remove old location code.
19931 (set_curr_insn_source_location): Likewise.
19932 (curr_insn_locator): Likewise.
19933 * print-tree.c (print_node): Remove old location code.
19934 * tree-mudflap.c (mf_varname_tree): Remove old location code.
19935 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19936 * cfgexpand.c (expand_gimple_cond_expr): Don't use
19937 location_from_locus.
19938 (construct_exit_block): Remove old location code.
19939 * emit-rtl.c (force_next_line_note): Remove old location code.
19940 * profile.c (branch_prob): Remove old location code.
19941 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19942 LOC_LINE): Remove old-location variants.
19943 * langhooks.c (lhd_print_error_function): Remove old location
19945 * configure, config.in: Rebuilt.
19946 * configure.ac (--enable-mapped-location): Remove.
19947 * c-decl.c (c_init_decl_processing): Remove old location code.
19948 (finish_function): Likewise.
19949 * recog.c (decode_asm_operands): Remove old location code.
19950 * c-pch.c (c_common_read_pch): Remove old location code.
19951 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19953 * gimple-low.c (lower_function_body): Remove old location code.
19954 * toplev.c (unknown_location): Remove.
19955 (push_srcloc): Remove old-location variant.
19956 (process_options): Remove old location code.
19957 (lang_dependent_init): Likewise.
19958 * input.h (UNKNOWN_LOCATION): Move definition.
19959 (location_t): Undeprecate.
19960 (source_locus): Remove.
19961 (location_from_locus): Remove.
19962 (struct location_s): Remove.
19963 Remove all old-location code.
19964 (input_line, input_filename): Remove.
19965 * final.c (final_scan_insn): Remove old location code.
19966 * diagnostic.c (diagnostic_build_prefix): Remove
19967 USE_MAPPED_LOCATION test.
19968 * tree.h (gimple_stmt) <locus>: Now a location_t.
19969 (tree_exp) <locus>: Likewise.
19970 (DECL_IS_BUILTIN): Remove old-location variant.
19971 (annotate_with_file_line, annotate_with_locus): Likewise.
19972 (expr_locus, set_expr_locus): Update.
19973 * tree.c (build1_stat): Remove old location code.
19974 (last_annotated_node): Remove.
19975 (annotate_with_file_line): Remove old-location variant.
19976 (annotate_with_locus): Likewise.
19977 (expr_location): Remove old location code.
19978 (set_expr_location): Likewise.
19979 (expr_has_location): Likewise.
19980 (expr_locus): Likewise.
19981 (set_expr_locus): Likewise.
19982 (expr_filename): Don't use location_from_locus.
19983 (expr_lineno): Likewise.
19984 * rtl-error.c (location_for_asm): Remove old location code.
19985 * c-lex.c (cb_line_change): Remove old location code.
19986 (fe_file_change): Likewise.
19987 (cb_def_pragma): Likewise.
19988 (c_lex_with_flags): Likewise.
19989 * gengtype.c (do_typedef): Don't special-case location types.
19990 (define_location_structures): Remove.
19991 (main): Don't call define_location_structures.
19992 * tree-pretty-print.c (dump_implicit_edges): Remove old location
19995 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19998 * builtins.def (BUILT_IN_STDARG_START): Remove.
19999 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20000 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20001 * tree-inline.c (inline_forbidden_p_1): Likewise.
20003 2008-02-26 Richard Guenther <rguenther@suse.de>
20005 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20006 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20007 (lookup_decl_from_uid): Declare.
20008 (remove_decl_from_map): Likewise.
20009 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20010 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20011 (decl_for_uid_map): New global hashtable mapping DECL_UID
20013 (init_ttree): Allocate it.
20014 (insert_decl_to_uid_decl_map): New helper function.
20015 (make_node_stat): Insert new decls into the map.
20016 (copy_node_stat): Likewise.
20017 (lookup_decl_from_uid): New function.
20018 (remove_decl_from_map): Likewise.
20019 (print_decl_for_uid_map_statistics): New helper.
20020 (dump_tree_statistics): Call it.
20022 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20023 (referenced_var_iterator): Adjust.
20024 (FOR_EACH_REFERENCED_VAR): Adjust.
20025 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20026 (num_referenced_vars): Adjust.
20027 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20028 (first_referenced_var): Remove.
20029 (end_referenced_vars_p): Likewise.
20030 (next_referenced_var): Likewise.
20031 (referenced_var_iterator_set): New helper function.
20032 * tree-dfa.c (referenced_var_lookup): Adjust.
20033 (referenced_var_check_and_insert): Likewise.
20034 (remove_referenced_var): Likewise.
20035 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20036 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20037 (verify_call_clobbering): Likewise.
20038 (verify_memory_partitions): Likewise.
20039 (init_tree_ssa): Allocate bitmap instead of hashtable for
20041 (delete_tree_ssa): Adjust.
20042 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20043 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20044 (compute_tag_properties): Likewise.
20045 (set_initial_properties): Likewise.
20046 (find_partition_for): Likewise.
20047 (update_reference_counts): Likewise.
20048 (dump_may_aliases_for): Likewise.
20049 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20050 (add_call_clobber_ops): Likewise.
20051 (add_call_read_ops): Likewise.
20052 (get_asm_expr_operands): Likewise.
20053 * tree-into-ssa.c (dump_decl_set): Likewise.
20054 (update_ssa): Likewise.
20055 * tree-sra.c (scan_function): Likewise.
20056 (decide_instantiations): Likewise.
20057 (scalarize_parms): Likewise.
20058 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20059 (dsa_named_for): Likewise.
20060 * tree-ssa-structalias.c (update_alias_info): Likewise.
20061 (merge_smts_into): Likewise.
20063 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20066 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20067 * c-opts.c (c_common_handle_option): Wall enables
20068 Wvolatile-register-var.
20069 * common.opt: Move Wvolatile-register-var to...
20072 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20074 * common.opt (Wlarger-than=): New.
20075 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20077 * opts.c (common_handle_option): Handle -Wlarger-than=.
20078 * optc-gen.awk: Likewise.
20079 * opth-gen.awk: Likewise.
20080 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20081 * tree-optimize.c (tree_rest_of_compilation): Likewise.
20083 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20085 * c-common.c (match_case_to_enum_1): Add appropriate
20086 OPT_W* parameter to warning.
20087 (c_do_switch_warnings): Likewise.
20088 * c-typeck.c (warning_init): Add one more parameter following
20089 'warning' function.
20090 (push_init_level): Update call to warning_init.
20091 (pop_init_level): Likewise.
20092 (add_pending_init): Likewise.
20093 (output_init_element: Likewise.
20095 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20098 * toplev.c (toplev_main): If there are warnings or error, print
20099 errors for ignored options.
20100 * opts.c (ignored_options): New static variable.
20101 (postpone_unknown_option_error): New.
20102 (print_ignored_options): New.
20103 (handle_option): Postpone errors for unknown -Wno-* options.
20104 * opts.h (print_ignored_options): Declare.
20106 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
20108 * config/mips/mips.md (loadgp_blockage, blockage): Change type
20111 2008-02-25 Richard Guenther <rguenther@suse.de>
20114 2008-02-25 Richard Guenther <rguenther@suse.de>
20116 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20117 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20118 (lookup_decl_from_uid): Declare.
20119 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20120 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20121 (decl_for_uid_map): New global hashtable mapping DECL_UID
20123 (init_ttree): Allocate it.
20124 (insert_decl_to_uid_decl_map): New helper function.
20125 (make_node_stat): Insert new decls into the map.
20126 (copy_node_stat): Likewise.
20127 (lookup_decl_from_uid): New function.
20128 (print_decl_for_uid_map_statistics): New helper.
20129 (dump_tree_statistics): Call it.
20131 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20132 (referenced_var_iterator): Adjust.
20133 (FOR_EACH_REFERENCED_VAR): Adjust.
20134 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20135 (num_referenced_vars): Adjust.
20136 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20137 (first_referenced_var): Remove.
20138 (end_referenced_vars_p): Likewise.
20139 (next_referenced_var): Likewise.
20140 (referenced_var_iterator_set): New helper function.
20141 * tree-dfa.c (referenced_var_lookup): Adjust.
20142 (referenced_var_check_and_insert): Likewise.
20143 (remove_referenced_var): Likewise.
20144 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20145 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20146 (verify_call_clobbering): Likewise.
20147 (verify_memory_partitions): Likewise.
20148 (init_tree_ssa): Allocate bitmap instead of hashtable for
20150 (delete_tree_ssa): Adjust.
20151 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20152 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20153 (compute_tag_properties): Likewise.
20154 (set_initial_properties): Likewise.
20155 (find_partition_for): Likewise.
20156 (update_reference_counts): Likewise.
20157 (dump_may_aliases_for): Likewise.
20158 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20159 (add_call_clobber_ops): Likewise.
20160 (add_call_read_ops): Likewise.
20161 (get_asm_expr_operands): Likewise.
20162 * tree-into-ssa.c (dump_decl_set): Likewise.
20163 (update_ssa): Likewise.
20164 * tree-sra.c (scan_function): Likewise.
20165 (decide_instantiations): Likewise.
20166 (scalarize_parms): Likewise.
20167 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20168 (dsa_named_for): Likewise.
20169 * tree-ssa-structalias.c (update_alias_info): Likewise.
20170 (merge_smts_into): Likewise.
20172 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
20175 * doc/invoke.texi (-fcx-limited-range): Document new option.
20176 * toplev.c (process_options): Handle -fcx-fortran-rules.
20177 * common.opt: Add documentation for -fcx-fortran-rules.
20179 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
20182 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20183 actual behaviour and C99.
20185 2008-02-26 Ben Elliston <bje@au.ibm.com>
20187 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20188 (ASM_CPU_POWER6_SPEC): Likewise.
20189 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20190 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20191 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20193 2008-02-25 Richard Guenther <rguenther@suse.de>
20195 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20196 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20197 (lookup_decl_from_uid): Declare.
20198 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20199 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20200 (decl_for_uid_map): New global hashtable mapping DECL_UID
20202 (init_ttree): Allocate it.
20203 (insert_decl_to_uid_decl_map): New helper function.
20204 (make_node_stat): Insert new decls into the map.
20205 (copy_node_stat): Likewise.
20206 (lookup_decl_from_uid): New function.
20207 (print_decl_for_uid_map_statistics): New helper.
20208 (dump_tree_statistics): Call it.
20210 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20211 (referenced_var_iterator): Adjust.
20212 (FOR_EACH_REFERENCED_VAR): Adjust.
20213 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20214 (num_referenced_vars): Adjust.
20215 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20216 (first_referenced_var): Remove.
20217 (end_referenced_vars_p): Likewise.
20218 (next_referenced_var): Likewise.
20219 (referenced_var_iterator_set): New helper function.
20220 * tree-dfa.c (referenced_var_lookup): Adjust.
20221 (referenced_var_check_and_insert): Likewise.
20222 (remove_referenced_var): Likewise.
20223 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20224 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20225 (verify_call_clobbering): Likewise.
20226 (verify_memory_partitions): Likewise.
20227 (init_tree_ssa): Allocate bitmap instead of hashtable for
20229 (delete_tree_ssa): Adjust.
20230 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20231 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20232 (compute_tag_properties): Likewise.
20233 (set_initial_properties): Likewise.
20234 (find_partition_for): Likewise.
20235 (update_reference_counts): Likewise.
20236 (dump_may_aliases_for): Likewise.
20237 * tree-ssa-operands.c (add_virtual_operand): Likewise.
20238 (add_call_clobber_ops): Likewise.
20239 (add_call_read_ops): Likewise.
20240 (get_asm_expr_operands): Likewise.
20241 * tree-into-ssa.c (dump_decl_set): Likewise.
20242 (update_ssa): Likewise.
20243 * tree-sra.c (scan_function): Likewise.
20244 (decide_instantiations): Likewise.
20245 (scalarize_parms): Likewise.
20246 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20247 (dsa_named_for): Likewise.
20248 * tree-ssa-structalias.c (update_alias_info): Likewise.
20249 (merge_smts_into): Likewise.
20251 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
20254 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20255 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20256 * alias.h (nonoverlapping_memrefs_p): Likewise.
20258 2008-02-25 Jan Beulich <jbeulich@novell.com>
20260 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20261 * config/i386/netware-libgcc.exp: Add __bswap?i2,
20262 __emultls_get_address, __emultls_register_common,
20263 __floatundi?f, and _Unwind_GetIPInfo.
20264 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20265 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20266 (gen_regparm_prefix): Likewise.
20267 (i386_nlm_encode_section_info): Sync with
20268 config/i386/winnt.c:i386_pe_encode_section_info().
20269 (i386_nlm_maybe_mangle_decl_assembler_name): New.
20270 i386_nlm_mangle_decl_assembler_name): New.
20271 (netware_override_options): New.
20272 * config/i386/netware.h (netware_override_options): Declare.
20273 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20274 (i386_nlm_mangle_decl_assembler_name): Declare.
20275 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20277 2008-02-25 Ben Elliston <bje@au.ibm.com>
20280 * c-decl.c (grokdeclarator): Remove unused local variables
20281 `typedef_type' and `type_as_written'.
20283 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20284 unused local variable `has_hot_blocks'.
20285 (fix_crossing_conditional_branches): Remove unused local variable
20288 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
20290 PR middle-end/19984
20291 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20292 using DEF_C99_BUILTIN.
20293 (BUILT_IN_NANF): Ditto.
20294 (BUILT_IN_NANL): Ditto.
20296 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
20297 Revital Eres <eres@il.ibm.com>
20299 * modulo-sched.c (calculate_must_precede_follow): Address TODO
20300 regarding the order of two dependent insns in the same row.
20302 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
20304 * stor-layout.c (layout_decl): Do not bump the alignment of a
20305 bit-field to more than byte alignment if it is packed.
20307 2008-02-24 David Edelsohn <edelsohn@gnu.org>
20309 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20312 2008-02-24 Diego Novillo <dnovillo@google.com>
20314 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20317 * tree-vrp.c (vrp_evaluate_conditional): With
20318 -Wtype-limits, emit a warning when comparing against a
20319 constant outside the natural range of OP0's type.
20320 * c.opt (Wtype-limits): Move ...
20321 * common.opt (Wtype-limits): ... here.
20323 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
20325 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20326 * config/rs6000/e300c2c3.md: New file.
20327 * config/rs6000/rs6000.c (processor_costs): Add new costs for
20329 (rs6000_override_options): Add e300c2 and e300c3 cases to
20330 processor_target_table. Do not allow usage of Altivec or Spe
20331 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20332 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20333 * config/rs6000/rs6000.h (processor_type): Add
20334 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20335 (ASM_CPU_SPEC): Add e300c2 and e300c3.
20336 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20337 and ppce300c3. Include e300c2c3.md.
20339 2008-02-23 David Edelsohn <edelsohn@gnu.org>
20341 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20342 instead of TARGET_STRICT_ALIGN.
20344 2008-02-23 Joseph Myers <joseph@codesourcery.com>
20346 * explow.c (memory_address): Assert that the generated address is
20349 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
20352 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20353 * config/darwin-ppc-ldouble-patch.def: New file.
20354 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20355 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20356 SUBTARGET_INIT_BUILTINS if defined.
20357 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20360 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20363 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20364 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20366 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
20369 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20370 file" warning condtional on -Winvalid-PCH.
20372 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
20374 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20376 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
20380 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20381 prevent reload from using MMX registers.
20382 (*mov<mode>_internal): Ditto.
20383 (*movv2sf_internal_rex64): Ditto.
20384 (*movv2sf_internal): Ditto.
20386 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20388 PR documentation/31569
20389 * doc/install.texi2html: Use makeinfo --no-number-sections.
20391 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20393 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20394 ensure that we can address an entire entity > 8 bytes. Don't
20395 generate reg+reg addressing for such data.
20397 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20399 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20400 strings when optimizing for size, unless the target cares about
20403 2008-02-22 Tom Tromey <tromey@redhat.com>
20405 * regclass.c (current_pass): Remove declaration.
20407 2008-02-22 Anatoly Sokolov <aesok@post.ru>
20409 * config/avr/libgcc.S (__RAMPZ__): Define.
20410 (__do_copy_data): Add for devices with 128KB code memory.
20412 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
20414 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20416 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20418 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
20420 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20423 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20426 * c-typeck.c (build_binary_op): Warn about floating point
20427 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20429 2008-02-21 Janis Johnson <janis187@us.ibm.com>
20432 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20433 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20435 (rs6000_override_options): Set altivec_abi as default, not override,
20436 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20437 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20438 is used; use new member spe_abi.
20439 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20440 spe_abi and altivec_abi.
20442 2008-02-22 Tomas Bily <tbily@suse.cz>
20444 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20446 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20449 * config.build (build_file_translate): Set to `CMD //c' only if
20451 * Makefile.in (build_file_translate): Improve comment.
20453 2008-02-21 Jan Hubicka <jh@suse.cz>
20455 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20456 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20457 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20459 2008-02-21 Michael Matz <matz@suse.de>
20462 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20464 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
20466 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20467 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20468 as insn constraint.
20469 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20470 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20471 SSE_VEC_FLOAT_MODE_P as insn constraint.
20472 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20473 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20474 sse4a_movntdf using MODEF mode iterator.
20475 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20476 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20477 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20478 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20479 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20480 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20481 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20483 2008-02-21 Richard Guenther <rguenther@suse.de>
20485 * tree.def (PAREN_EXPR): New tree code.
20486 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20488 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20489 * expr.c (expand_expr_real_1): Likewise.
20490 * tree-inline.c (estimate_num_insns_1): Likewise.
20491 * tree-complex.c (expand_complex_move): Likewise.
20492 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20495 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20498 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20500 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
20503 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20505 * config/sh/sh.c (find_barrier): Don't go past
20506 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20508 2008-02-20 DJ Delorie <dj@redhat.com>
20510 * config/h8300/h8300.md (insv): Force source operand to be a register.
20512 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20513 as a jump, not as a plain insn.
20515 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
20517 * doc/invoke.texi (Warning Options): Add new option
20518 -Wframe-larger-than=.
20519 (-Wframe-larger-than): Document.
20521 * flags.h (warn_frame_larger_than, frame_larger_than_size):
20522 Add declarations for new option variables.
20524 * final.c (final_start_function): Check the frame size
20525 before emission and issue a Wframe-larger-than warning.
20527 * opts.c (warn_frame_larger_than, frame_larger_than_size):
20528 Add definitions for new option variables.
20529 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20531 * common.opt (Wframe-larger-than=): New option.
20533 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20535 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20536 (<sse>_div<mode>3): Ditto.
20537 (<sse>_vmdiv<mode>3): Ditto.
20538 (<sse>_vmsqrt<mode>2): Ditto.
20539 (*smax<mode>3): Ditto.
20540 (sse5_frcz<mode>2): Ditto.
20541 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
20542 as insn constraint.
20544 2008-02-20 Richard Guenther <rguenther@suse.de>
20546 PR middle-end/35265
20547 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20548 be happy with INTEGRAL_TYPE_P.
20550 2008-02-20 Richard Guenther <rguenther@suse.de>
20552 * fold-const.c (split_tree): Associate floatig-point expressions
20553 if flag_associative_math is set.
20555 2008-02-20 Richard Guenther <rguenther@suse.de>
20557 * tree.h (fold_real_zero_addition_p): Declare.
20558 * fold-const.c (fold_real_zero_addition_p): Export.
20559 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20560 floating-point operations with zero and one.
20562 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
20564 * doc/install.texi: Correct references to CFLAGS, replacing them
20565 with BOOT_CFLAGS. Document flags used during bootstrap for
20568 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
20570 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20571 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20572 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20574 (smin<mode>3): Ditto from similar patterns.
20575 (smax<mode>3): Ditto.
20576 (*ieee_smin<mode>3): Ditto.
20577 (*ieee_smax<mode>3): Ditto.
20578 * config/i386/sse.md (sse): New mode attribute.
20579 (mov<mode>): Macroize expander from movv4sf and movv2df using
20580 SSEMODEF2P mode iterator.
20581 (<sse>_movnt<mode>): Ditto from similar patterns. Use
20582 SSE_VEC_FLOAT_MODE_P as insn constraint.
20583 (storent<mode>): Ditto.
20584 (storent<mode>): Macroize expander from storentsf and storentdf using
20585 MODEF mode iterator.
20586 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20587 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20588 (abs<mode>2): Ditto from similar patterns.
20589 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20590 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20591 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20592 (<sse>_vmsqrt<mode>2): Ditto.
20593 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20594 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20595 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20596 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20597 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20598 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20599 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20601 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20602 iterator and SSE_FLOAT_MODE_P as insn constraint.
20603 (<sse>_ucomi): Ditto from similar patterns.
20604 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20605 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20606 SSE_VEC_FLOAT_MODE_P as insn constraint.
20607 (vcond<mode>): Ditto from similar patterns.
20608 (and<mode>3, *and<mode>3): Ditto.
20609 (<sse>_nand<mode>3): Ditto.
20610 (ior<mode>3, *ior<mode>3): Ditto.
20611 (xor<mode>3, *xor<mode>3): Ditto.
20612 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20613 iterator and SSE_FLOAT_MODE_P as insn constraint.
20614 (*nand<mode>3): Ditto from similar patterns.
20615 (*ior<mode>3): Ditto.
20616 (*xor<mode>3): Ditto.
20618 2008-02-20 Ira Rosen <irar@il.ibm.com>
20620 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20621 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20622 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20624 2008-02-19 Jan Hubicka <jh@suse.cz>
20626 * predict.c (tree_bb_level_predictions): Remove variable next
20627 mistakely introduced by previous commit.
20629 2008-02-19 Jan Hubicka <jh@suse.cz>
20631 * predict.c (predict_paths_leading_to): Rewrite.
20632 (predict_paths_for_bb): New.
20633 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20635 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20638 * Makefile.in (build_file_translate): New.
20639 (gcc-vers.texi): Use it for translating $(abs_srcdir).
20640 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20641 * configure.ac (build_file_translate): Substitute it.
20642 * configure: Regenerate.
20644 2008-02-19 Jan Hubicka <jh@suse.cz>
20646 PR rtl-optimization/34408
20647 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20650 2008-02-19 Jan Hubicka <jh@suse.cz>
20652 PR middle-end/28779
20653 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20656 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
20659 * config/i386/i386-modes.def: Revert the last DI alignment
20660 change until Ada people can look into it.
20662 2008-02-19 Nick Clifton <nickc@redhat.com>
20664 * opts.c (print_specific_help): Fix typo in --help text.
20666 2008-02-19 Jakub Jelinek <jakub@redhat.com>
20669 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20670 32-bit inline asm without asm alternatives for host GCC < 3.0.
20672 2008-02-19 Richard Guenther <rguenther@suse.de>
20674 PR tree-optimization/34989
20675 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20676 Allow propagation to INDIRECT_REF if we can simplify only.
20678 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20680 * c-common.c (warn_for_collisions_1): Use appropriate option when
20683 2008-02-19 Nick Clifton <nickc@redhat.com>
20686 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20687 (handle_options): Fix indentation.
20688 (print_filtered_help): If no language-specific options were
20689 displayed tell the user how to list all the options supported by
20690 the language's front-end.
20691 (print_specific_help): Fix indentation and remove duplicate line.
20692 (common_handle_option): Handle the -v option.
20693 For --help enable the display of undocumented options if the -v
20694 switch has been included on the command line.
20695 For --help= check for overlaps in the arguments between the option
20696 classes and the language names and issue a warning when they
20697 cannot be disambiguated.
20698 * c.opt (v): Pass on to the common option handler.
20700 2008-02-19 Revital Eres <eres@il.ibm.com>
20702 * modulo-sched.c (sms_schedule): Change dump message when
20703 create_ddg function fails.
20704 (try_scheduling_node_in_cycle): Rename row to cycle.
20705 (print_partial_schedule): Rename CYCLE to ROW.
20707 2008-02-19 Christian Bruel <christian.bruel@st.com>
20708 Zdenek Dvorak <ook@ucw.cz>
20710 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20712 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20715 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20716 (*x86_movdicc_0_m1_se): Ditto.
20718 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
20720 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20721 (CMPtype): Define as __gcc_CMPtype.
20722 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20723 (CMPtype): Define as __gcc_CMPtype.
20725 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
20727 Support valgrind 3.3 for --enable-checking=valgrind.
20728 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20730 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20731 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20732 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20733 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20734 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20735 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20736 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20738 * ggc-zone.c: Similar.
20739 * ggc-page.c: Similar.
20741 2008-02-19 Paul Brook <paul@codesourcery.com>
20744 * config/arm/ieee754-df.S: Fix do_it typo.
20745 * config/arm/ieee754-sf.S: Fix do_it typo.
20747 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
20750 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20751 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20752 (OPTION_MASK_ISA_SSE_SET): Likewise.
20753 (OPTION_MASK_ISA_SSE2_SET): Likewise.
20754 (OPTION_MASK_ISA_SSE3_SET): Likewise.
20755 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20756 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20757 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20758 (OPTION_MASK_ISA_SSE4_SET): Likewise.
20759 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20760 (OPTION_MASK_ISA_SSE5_SET): Likewise.
20761 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20762 (OPTION_MASK_ISA_MMX_UNSET): Updated.
20763 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20764 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20765 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20766 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20767 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20768 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20769 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20770 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20771 (OPTION_MASK_ISA_SSE4): Removed.
20772 (ix86_handle_option): Turn on bits in ix86_isa_flags and
20773 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20774 (override_options): Don't turn on implied SSE/MMX bits in
20777 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
20779 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20782 2008-02-18 Joey Ye <joey.ye@intel.com>
20784 PR middle-end/34921
20785 * tree-nested.c (insert_field_into_struct): Set type alignment
20786 to field alignment if the former is less than the latter.
20788 2008-02-18 Jakub Jelinek <jakub@redhat.com>
20790 * BASE-VER: Set to 4.4.0.
20792 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20794 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20795 * doc/cfg.texi: Likewise.
20796 * doc/extend.texi: Likewise.
20797 * doc/gty.texi: Likewise.
20798 * doc/invoke.texi: Likewise.
20799 * doc/loop.texi: Likewise.
20800 * doc/md.texi: Likewise.
20801 * doc/passes.texi: Likewise.
20802 * doc/rtl.texi: Likewise.
20803 * doc/sourcebuild.texi: Likewise.
20804 * doc/tm.texi: Likewise.
20805 * doc/tree-ssa.texi: Likewise.
20807 2008-02-17 Richard Guenther <rguenther@suse.de>
20809 PR middle-end/35227
20810 * tree-complex.c (init_parameter_lattice_values): Handle parameters
20811 without default definition.
20813 2008-02-17 Richard Guenther <rguenther@suse.de>
20815 PR tree-optimization/35231
20816 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20819 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
20822 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20823 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20824 libgcc_cmp_return mode.
20826 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20829 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20831 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
20833 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20836 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20838 * doc/c-tree.texi: Use `@.' where appropriate.
20839 * doc/extend.texi: Likewise.
20840 * doc/install.texi: Likewise.
20841 * doc/invoke.texi: Likewise.
20842 * doc/loop.texi: Likewise.
20843 * doc/makefile.texi: Likewise.
20844 * doc/md.texi: Likewise.
20845 * doc/passes.texi: Likewise.
20846 * doc/standards.texi: Likewise.
20847 * doc/tm.texi: Likewise.
20849 2008-02-15 Jakub Jelinek <jakub@redhat.com>
20851 PR middle-end/35196
20852 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20854 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20855 rather than in entry_bb.
20857 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20859 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20860 libgcc_cmp_return mode.
20862 2008-02-15 Jakub Jelinek <jakub@redhat.com>
20864 PR middle-end/35130
20865 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20866 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20868 2008-02-15 Richard Guenther <rguenther@suse.de>
20869 Zdenek Dvorak <ook@ucw.cz>
20871 PR tree-optimization/35164
20872 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20873 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20874 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20875 Only propagate addresses which do not have abnormal SSA_NAMEs
20878 2008-02-15 Joseph Myers <joseph@codesourcery.com>
20881 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20883 2008-02-15 Jan Hubicka <jh@suse.cz>
20885 PR middle-end/35149
20886 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20888 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20890 PR middle-end/34621
20891 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20892 when calculating alignment_pad.
20894 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
20896 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20897 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20898 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20899 and STACK_BOUNDARY define.
20901 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
20903 PR preprocessor/35061
20904 * c-pragma.c (handle_pragma_pop_macro): Check that
20905 pushed_macro_table has been allocated.
20907 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
20909 PR middle-end/35136
20910 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20911 (force_gimple_operand): Likewise.
20912 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20913 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20914 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20915 (find_interesting_uses_address): Check addressability and alignment
20916 of the base expression only after substituting bases of IVs into it.
20918 2008-02-14 Michael Matz <matz@suse.de>
20921 * function.c (instantiate_virtual_regs_in_insn): Reload address
20922 before falling back to reloading the whole operand.
20924 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
20926 * config/s390/s390.c (s390_mainpool_start): Emit the pool
20927 before the first section switch note.
20929 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20931 * doc/bugreport.texi: Update copyright years.
20932 * doc/c-tree.texi: Likewise.
20933 * doc/cfg.texi: Likewise.
20934 * doc/cpp.texi: Likewise.
20935 * doc/cppinternals.texi: Likewise.
20936 * doc/fragments.texi: Likewise.
20937 * doc/frontends.texi: Likewise.
20938 * doc/gcc.texi: Likewise.
20939 * doc/gty.texi: Likewise.
20940 * doc/hostconfig.texi: Likewise.
20941 * doc/implement-c.texi: Likewise.
20942 * doc/libgcc.texi: Likewise.
20943 * doc/loop.texi: Likewise.
20944 * doc/makefile.texi: Likewise.
20945 * doc/options.texi: Likewise.
20946 * doc/passes.texi: Likewise.
20947 * doc/rtl.texi: Likewise.
20948 * doc/sourcebuild.texi: Likewise.
20949 * doc/standards.texi: Likewise.
20950 * doc/tree-ssa.texi: Likewise.
20951 * doc/trouble.texi: Likewise.
20953 * doc/extend.texi: Use @: or add comma where appropriate.
20954 * doc/invoke.texi: Likewise.
20955 * doc/tm.texi: Likewise.
20957 2008-02-14 Alan Modra <amodra@bigpond.net.au>
20960 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20963 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
20965 * doc/md.texi (clz, ctz): Add reference.
20966 * doc/rtl.texi (clz, ctz): Likewise.
20968 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20971 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20974 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
20976 * config/s390/s390.c (struct constant_pool): New field
20977 emit_pool_after added.
20978 (s390_mainpool_start): Set the emit_pool_after flag according
20979 to the section switch notes.
20980 (s390_mainpool_finish): Consider emit_pool_after when emitting
20981 the literal pool at the end of the function.
20982 (s390_chunkify_start): Force literal pool splits at section
20985 2008-02-13 Michael Matz <matz@suse.de>
20988 * var-tracking.c (clobber_variable_part): Correctly traverse the
20991 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20994 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20995 Add -fdump-ipa-inline.
20996 * tree-dump.c (dump_files): Remove tree-inlined dump.
20997 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20999 2008-02-12 Richard Guenther <rguenther@suse.de>
21001 PR tree-optimization/35171
21002 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21005 2008-02-12 Richard Guenther <rguenther@suse.de>
21007 PR middle-end/35163
21008 * fold-const.c (fold_widened_comparison): Use get_unwidened in
21009 value-preserving mode. Disallow final truncation.
21011 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
21013 PR middle-end/35136
21014 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21015 code from here to...
21016 (force_gimple_operand): ...here.
21018 2008-02-12 Jakub Jelinek <jakub@redhat.com>
21021 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21022 non-compatible pointers.
21023 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21024 different FIELD_DECLs, try harder by comparing field offsets, sizes
21027 PR inline-asm/35160
21028 * function.c (match_asm_constraints_1): Don't replace the same input
21031 2008-02-12 Anatoly Sokolov <aesok@post.ru>
21033 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21034 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21035 (expand_epilogue): Restore RAMPZ register.
21036 * config/avr/avr.md (RAMPZ_ADDR): New constant.
21038 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
21040 * config/i386/cygwin.asm: (__alloca): Correct calling
21041 convention and alignment.
21042 (__chkstk): Force 8 byte stack alignment.
21044 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
21045 Richard Guenther <rguenther@suse.de>
21047 PR tree-optimization/33992
21048 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21049 the zero we compare against.
21051 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
21053 PR libfortran/35063
21054 * gthr-win32.h (__gthread_mutex_destroy_function): New function
21055 to CloseHandle after unlocking to prevent accumulation of handle
21058 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21060 PR middle_end/34150
21061 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21062 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
21063 and update LABEL_NUSES during and after reload.
21065 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
21067 PR middle-end/34627
21068 * combine.c (simplify_if_then_else): Make sure the comparison is
21069 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21071 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
21074 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21075 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21076 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21077 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21078 * tree.h (get_type_static_bounds): Likewise.
21080 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21082 * doc/invoke.texi (Option Summary, C++ Dialect Options)
21083 (Objective-C and Objective-C++ Dialect Options, Warning Options):
21084 Make -Wfoo language annotations match what the compiler outputs.
21086 2008-02-08 Sa Liu <saliu@de.ibm.com>
21088 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21089 intrinsics spu_convts, spu_convtu, spu_convtf.
21091 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
21093 * doc/extend.texi (Function Attributes) <noinline>: Mention
21094 asm ("") as method to keep calls.
21096 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21099 * doc/options.texi (Options): Replace references to opts.sh with
21101 * opts-common.c: Likewise.
21102 * optc-gen.awk: Likewise.
21104 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
21106 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21108 2008-02-07 Richard Henderson <rth@redhat.com>
21111 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21112 EXPR_LIST for the REG_EQUAL instead of a comparison with a
21115 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
21117 PR tree-optimization/35085
21118 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21119 for operand entry oe2 in addition to operand entry oe3 in order to
21120 expose more opportunities for vectorizer sum reduction.
21122 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21125 * Makefile.in (LIBS): Remove $(GMPLIBS).
21126 (cc1-dummy, cc1): Add $(GMPLIBS).
21128 2008-02-06 Jan Hubicka <jh@suse.cz>
21131 * i386.md (moddf_integer): Do not produce partial memory stalls for
21132 targets where it hurts.
21134 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
21137 * optabs.c (expand_float): Do not check for decimal modes when
21138 expanding unsigned integer through signed conversion.
21140 2008-02-06 Nick Clifton <nickc@redhat.com>
21142 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21143 inside the clobber with a match_operand and duplicated operand
21144 number in the constraint.
21145 (ineqbranchsi): Delete redundant comment.
21147 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
21149 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21150 builtin_define ("__USE_INIT_FINI__").
21151 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21153 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21155 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21157 PR documentation/30330
21158 * doc/invoke.texi (C++ Dialect Options)
21159 (Objective-C and Objective-C++ Dialect Options, Warning Options):
21160 For each warning option -Wfoo that allows -Wno-foo, ensure both
21161 -Wfoo and -Wno-foo are listed in the option index. Fix index
21162 entry of -Wswitch-default, index -Wnormalized= including the
21163 `=', and -Wlarger-than-@var{len} including @var{len}.
21165 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
21167 * config/i386/i386.md (floatunssisf2): Use
21168 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21169 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21170 Macroize expander using MODEF mode iterator.
21172 2008-02-05 Diego Novillo <dnovillo@google.com>
21174 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21177 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21179 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21182 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21184 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
21187 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21188 to indicate if a message should be generated.
21189 (init_cumulative_args): Updated.
21190 (function_value_32): Likewise.
21192 2008-02-05 Joseph Myers <joseph@codesourcery.com>
21194 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21196 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
21199 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21200 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21202 2008-02-04 Diego Novillo <dnovillo@google.com>
21204 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21207 * tree-vrp.c (vrp_evaluate_conditional): With
21208 -Wtype-limits, emit a warning when comparing against a
21209 constant outside the natural range of OP0's type.
21211 2008-02-04 Richard Guenther <rguenther@suse.de>
21213 PR middle-end/33631
21214 * expr.c (count_type_elements): Give for unions instead of
21217 2008-02-04 Richard Guenther <rguenther@suse.de>
21219 PR middle-end/35043
21220 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21221 to TYPE_DOMAINs base type instead of using bitsizetype here.
21223 2008-02-03 Jason Merrill <jason@redhat.com>
21225 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21227 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21230 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21231 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21232 (RS/6000 and PowerPC Options): Fix typos and markup.
21233 * doc/passes.texi (Tree-SSA passes): Likewise.
21235 2008-02-02 Michael Matz <matz@suse.de>
21238 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21239 from record_last_reg_set_info.
21240 (record_last_reg_set_info): Take an RTX argument, iterate over all
21241 constituent hardregs.
21242 (record_last_set_info, record_opr_changes): Change calls to
21243 new signature or to record_last_reg_set_info_regno.
21245 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
21247 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21249 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
21251 PR rtl-optimization/34773
21252 * reg-notes.def (EQUAL): Mention significance of combination of
21253 REG_EQUAL and REG_RETVAL.
21254 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21255 insn that has a REG_RETVAL.
21257 2008-02-01 Roger Sayle <roger@eyesopen.com>
21260 * configure.ac (--enable-fixed-point): Disable unless explicitly
21262 * configure: Regenerate.
21264 2008-02-01 Richard Guenther <rguenther@suse.de>
21267 * invoke.texi (-finline-limit): Remove no longer true parts
21268 of the documentation. Note that there is no default value.
21270 2008-02-01 Andrew Pinski <pinskia@gmail.com>
21271 Mark Mitchell <mark@codesourcery.com>
21272 Ben Elliston <bje@au.ibm.com>
21275 * doc/extend.texi (Other Builtins): Document.
21277 2008-01-31 Tom Browder <tom.browder@gmail.com>
21279 * doc/c-tree.texi (Types): Fix grammar.
21280 (Expression trees): Ditto.
21281 * doc/passes.texi (Tree-SSA passes): Ditto.
21283 * doc/configterms.texi (Configure Terms): Fix typo.
21284 * doc/cpp.texi (Common Predefined Macros): Ditto.
21285 * doc/md.texi (Machine Constraints): Ditto.
21287 * doc/makefile.texi (Makefile): Add comma.
21289 2008-01-31 Tom Browder <tom.browder@gmail.com>
21290 Gerald Pfeifer <gerald@pfeifer.com>
21292 * doc/sourcebuild.texi (Front End): Remove references to CVS
21293 and CVSROOT/modules.
21294 (Texinfo Manuals): Replace reference to CVS by one to SVN.
21295 (Back End): Remove reference to CVS.
21297 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21300 * config/mips/mips.c (gen_load_const_gp): New function, taking a
21302 (mips16_gp_pseudo_reg): ...here.
21303 * config/mips/mips.md (load_const_gp): Replace with...
21304 (load_const_gp_<mode>): ...this :P-based insn.
21306 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21308 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21309 options. Minor fixes.
21310 (-std): Move reference to standards closer to where language
21311 standards are first mentioned.
21313 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
21315 PR rtl-optimization/34995
21316 * reload.c (alternative_allows_const_pool_ref): Take an rtx
21317 parameter and return a bool. If the rtx parameter is nonnull,
21318 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21319 (find_reloads): Update call accordingly. Pass the new operand
21320 if it needed no address reloads, otherwise pass null.
21322 2008-01-30 Richard Henderson <rth@redhat.com>
21325 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21326 for unbounded arrays.
21328 2008-01-30 Silvius Rus <rus@google.com>
21330 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21332 2008-01-30 Jan Hubicka <jh@suse.cz>
21335 * i386.c (init_cumulative_args): Use real function declaration when
21338 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
21340 PR rtl-optimization/34998
21341 * global.c (build_insn_chain): Treat non-subreg_lowpart
21342 SUBREGs of pseudos as clobbering all the words covered by the
21343 SUBREG, not just all the bytes.
21344 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
21345 original df_ref rather than an extract parameter.
21346 (global_conflicts): Update call accordingly.
21348 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
21350 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21351 the overflow check to make it easier to read.
21352 (__fixtfdi): Change the type of the ll member in union
21353 long_double to UDItype_x.
21355 2008-01-30 Jakub Jelinek <jakub@redhat.com>
21357 PR middle-end/34969
21358 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21359 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21360 * tree-inline.c (fold_marked_statements): Call
21361 cgraph_update_edges_for_call_stmt if folding a call statement.
21362 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21363 debug_generic_stmt calls, reset it back afterwards.
21366 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21368 * c-typeck.c (build_external_ref): Don't pedwarn about
21369 static vars in current function's scope.
21371 2008-01-29 Joseph Myers <joseph@codesourcery.com>
21373 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21375 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
21378 * ipa-struct-reorg.c: Fix spelling.
21379 * params.def: Ditto.
21381 2008-01-29 Richard Guenther <rguenther@suse.de>
21383 PR middle-end/35006
21384 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21386 * tree-inline.c (remap_type): Increment remapping_type_depth
21387 around remapping types.
21388 (copy_body_r): Only add referenced variables if they are referenced
21389 from code, not types.
21391 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
21402 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21403 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21405 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
21408 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21409 pointer for tiny stack.
21411 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21413 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21415 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
21417 * config/vx-common.h: Fix typo in comment.
21419 2008-01-28 Ian Lance Taylor <iant@google.com>
21423 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21424 coalesce pointers if they have different DECL_NO_TBAA_P values.
21425 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21426 between variables with different DECL_NO_TBAA_P values.
21428 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
21431 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21432 are not legitimate small data references on SPE targets.
21434 2008-01-28 David Daney <ddaney@avtrex.com>
21436 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21438 2008-01-28 David Daney <ddaney@avtrex.com>
21440 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
21442 2008-01-27 Joseph Myers <joseph@codesourcery.com>
21444 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21445 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21446 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21447 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21448 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21449 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21450 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21451 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21453 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21455 * basic-block.h (condjump_equiv_p): Fix comment.
21457 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21459 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21460 print_generic_stmt_indented): Fix comment.
21462 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
21464 * configure.ac (__stack_chk_fail): Add detecion for availability
21465 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21466 * configure: Regenerate.
21468 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
21470 PR middle-end/34688
21471 * final.c (output_addr_const): Handle TRUNCATE.
21473 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
21476 * tree-ssa-loop-ivopts.c (comp_cost): New type.
21477 (zero_cost, infinite_cost): New constants.
21478 (struct cost_pair): Change type of cost to comp_cost.
21479 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21480 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21482 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21483 split_address_cost, ptr_difference_cost, difference_cost,
21484 get_computation_cost_at, get_computation_cost,
21485 determine_use_iv_cost_generic, determine_use_iv_cost_address,
21486 determine_use_iv_cost_condition, determine_use_iv_costs,
21487 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21488 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21489 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21490 Change type of cost to comp_cost.
21491 (determine_iv_cost): Increase cost of non-original ivs, instead
21492 of decreasing the cost of original ones.
21493 (get_address_cost): Indicate the complexity of the addressing mode
21495 (try_add_cand_for): Prefer using ivs not specific to some object.
21496 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21498 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
21499 Janis Johnson <janis187@us.ibm.com>
21502 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21503 (TARGET_INSTANTIATE_DECLS): Likewise.
21504 * target.h (expand_to_rtl_hook): New target hook.
21505 (instantiate_decls): Likewise.
21506 * function.c (instantiate_decl): Make non-static. Rename to...
21507 (instantiate_decl_rtl): ... this.
21508 (instantiate_expr): Use instantiate_decl_rtl.
21509 (instantiate_decls_1): Likewise.
21510 (instantiate_decls): Likewise.
21511 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21512 * function.h (instantiate_decl_rtl): Add prototype.
21513 * cfgexpand.c (target.h): New include.
21514 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21515 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21516 (TARGET_INSTANTIATE_DECLS): Likewise.
21517 (TARGET_INITIALIZER): New target hooks added.
21518 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21520 * config/rs6000/rs6000.c (tree-flow.h): New include.
21521 (machine_function): Add sdmode_stack_slot field.
21522 (rs6000_alloc_sdmode_stack_slot): New function.
21523 (rs6000_instantiate_decls): Likewise.
21524 (rs6000_secondary_memory_needed_rtx): Likewise.
21525 (rs6000_check_sdmode): Likewise.
21526 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21527 (TARGET_INSTANTIATE_DECLS): Likewise.
21528 (rs6000_hard_regno_mode_ok): Allow SDmode.
21529 (num_insns_constant): Likewise. Handle _Decimal32 constants.
21530 (rs6000_emit_move): Handle SDmode.
21531 (function_arg_advance): Likewise.
21532 (function_arg): Likewise.
21533 (rs6000_gimplify_va_arg): Likewise. Add special handling of
21534 SDmode var args for 32-bit compiles.
21535 (rs6000_secondary_reload_class): Handle SDmode.
21536 (rs6000_output_function_epilogue): Likewise.
21537 (rs6000_function_value): Simplify if statement.
21538 (rs6000_libcall_value): Likewise.
21539 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21540 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21541 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21542 (movsd_hardfloat): New define_insn.
21543 (movsd_softfloat): Likewise.
21544 (movsd_store): Likewise.
21545 (movsd_load): Likewise.
21546 (extendsddd2): Likewise.
21547 (extendsdtd2): Likewise.
21548 (truncddsd2): Likewise.
21549 (movdd_hardfloat64): Fixup comment.
21550 (UNSPEC_MOVSD_LOAD): New constant.
21551 (UNSPEC_MOVSD_STORE): Likewise.
21553 2008-01-26 Jakub Jelinek <jakub@redhat.com>
21556 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21558 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21559 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21560 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21561 and TRUTH_XOR_EXPR.
21563 2008-01-26 David Edelsohn <edelsohn@gnu.org>
21566 * config.gcc: Separate AIX 5.3 from AIX 6.1.
21567 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21568 __LONGDOUBLE128 too.
21569 * config/rs6000/aix61.h: New file.
21571 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21573 PR rtl-optimization/34959
21574 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21575 popcount and parity rtxes the same mode as their operand.
21576 Truncate or extend the result to the return value's mode
21579 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
21582 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21583 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21584 to GOT_VERSION_REGNUM.
21585 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21586 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21587 * config/mips/mips.c (mips_emit_call_insn): New function.
21588 (mips_call_tls_get_addr): Call mips_expand_call directly.
21589 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21591 (mips16_build_call_stub): Likewise. Return the call insn or null.
21592 (mips_expand_call): Update the call to mips16_build_call_stub
21593 accordingly and a remove redundant condition. Assert that MIPS16
21594 stubs do not use lazy binding. Use mips_emit_call_insn and return
21596 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21598 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21599 (mips_avoid_hazard): Remove hazard_set handling.
21600 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21601 (UNSPEC_RESTORE_GP): ...this.
21602 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21603 (FAKE_CALL_REGNO): Rename to...
21604 (GOT_VERSION_REGNUM): ...this.
21605 (type): Add "ghost" value. Add an associated insn reservation.
21606 (hazard_set): Remove.
21607 (exception_receiver): Rename to...
21608 (restore_gp): ...this and update the unspec identifier accordingly.
21609 (exception_receiver, nonlocal_got_receiver): New expanders.
21610 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
21611 FAKE_CALL_REGNO. Remove hazard_set attribute.
21612 (set_got_version, update_got_version): New patterns.
21614 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
21617 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21619 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21622 * doc/install.texi2html: Generate gcc-vers.texi.
21624 2008-01-25 DJ Delorie <dj@redhat.com>
21626 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21628 2008-01-25 Joseph Myers <joseph@codesourcery.com>
21630 * config/c4x: Remove directory.
21631 * config.gcc (crx-*, mt-*): Mark obsolete.
21632 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21633 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21634 sh-*-rtemscoff*): Remove cases.
21635 * defaults.h (C4X_FLOAT_FORMAT): Remove.
21636 * real.c (encode_c4x_single, decode_c4x_single,
21637 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21638 c4x_extended_format): Remove.
21639 * real.h (c4x_single_format, c4x_extended_format): Remove.
21640 * doc/extend.texi (interrupt, naked): Remove mention of attributes
21642 (Pragmas): Remove comment about c4x pragmas.
21643 * doc/install.texi (c4x): Remove target-specific instructions.
21644 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21645 * doc/md.texi (Machine Constraints): Remove C4x documentation.
21646 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21647 refer to C4x source files as examples.
21648 (C4X_FLOAT_FORMAT): Remove documentation.
21650 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
21652 * config/bfin/bfin.c (override_options): Reorder tests so that
21653 flag_pic gets enabled for -msep-data.
21655 2008-01-25 Richard Guenther <rguenther@suse.de>
21657 PR middle-end/32244
21658 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21659 to its bitfield precision if required.
21661 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21663 PR middle-end/33880
21664 * tree-nested.c (walk_omp_for): New function.
21665 (convert_nonlocal_reference, convert_local_reference): Call
21666 walk_omp_for on OMP_FOR.
21667 (convert_call_expr): Call walk_body on OMP_FOR's
21668 OMP_FOR_PRE_INIT_BODY.
21670 2008-01-25 Richard Guenther <rguenther@suse.de>
21672 PR tree-optimization/34966
21673 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21674 default defs and PHI_NODEs we have to insert after the
21675 defining statement.
21677 2008-01-24 Nick Clifton <nickc@redhat.com>
21679 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21680 Provide a default definition.
21681 (LIBGCC2_UNITS_PER_WORD): Likewise.
21683 * config/stormy16/stormy16.c: Include df.h for the prototype
21684 for df_regs_ever_live_p.
21685 (xstormy16_expand_builtin_va_start): Convert the stack offset
21686 into a component_ref and then use POINTER_PLUS_EXPR to add it
21687 to the incoming_virtual_args_rtx.
21688 (xstormy16_gimplify_va_arg_expr): Rename to
21689 xstormy16_gimplify_va_arg_expr.
21690 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21691 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21692 xstormy16_gimplify_va_arg_expr.
21693 Fix up some formatting issues.
21695 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21696 Move to predicates.md.
21697 (xs_hi_general_operand): Likewise.
21698 (xs_hi_nonmemory_operand): Likewise.
21699 * config/stormy16/predicates.md:
21700 (xstormy16_carry_plus_operand): New predicate.
21701 (xs_hi_general_operand): New predicate.
21702 (xs_hi_nonmemory_operand): New predicate.
21703 * config/stormy16/stormy16-protos.h:
21704 (xstormy16_carry_plus_operand): Delete prototype.
21705 (xs_hi_general_operand): Likewise.
21706 (xs_hi_nonmemory_operand): Likewise.
21708 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21709 modifiers as they are no longer needed and they can trigger
21710 reload spill failures.
21712 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21713 with a match_operand in order to help reload.
21715 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21716 constraint with 'e' for the 8th alternative as this version of
21717 the mov.w instruction only accepts the lower 8 registers.
21719 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
21722 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21723 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21726 2008-01-25 Jakub Jelinek <jakub@redhat.com>
21728 PR middle-end/33333
21729 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21731 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
21733 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21735 (remove_structure): Update allocations list before removing structure.
21737 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
21739 * ipa-struct-reorg.c (is_safe_cond_expr,
21740 create_new_stmts_for_cond_expr): Use integer_zerop function,
21741 that recognize not only zero-pointer, but zero-integer too.
21743 2008-01-25 Ben Elliston <bje@au.ibm.com>
21746 * fixproto: Escape "." in sed expression that strips leading "./".
21748 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
21751 * gcc.c (SWITCH_OK): Removed.
21752 (SWITCH_LIVE): Changed to bit.
21753 (SWITCH_FALSE): Likewise.
21754 (SWITCH_IGNORE): Likewise.
21755 (switchstr): Change live_cond to unsigned int.
21756 (process_command): Replace SWITCH_OK with 0.
21757 (do_self_spec): Likewise.
21758 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21759 (give_switch): Likewise.
21760 (used_arg): Likewise.
21761 (do_spec_1): Set the SWITCH_IGNORE bit.
21762 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21763 bits. Set the SWITCH_LIVE bit.
21765 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
21767 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21769 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
21771 PR tree-optimization/34472
21772 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21773 parameter to a "bool *" and set *DATA to false if there is
21774 an unsafe access. Do not delete the structure here.
21775 (check_cond_exprs): Delete it here instead.
21776 (check_cond_exprs, exclude_cold_structs): Do not increase
21777 I when removing a structure.
21779 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
21782 * config/i386/i386.c (ix86_expand_vector_init): Consider only
21783 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21785 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
21787 PR middle-end/34934
21788 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21789 a fixed vector for stack.
21791 2008-01-24 Ben Elliston <bje@au.ibm.com>
21794 * doc/gcc.texi (Software development): Add a direntry for g++.
21796 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
21798 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21799 stale and straggling -fforce-addr comments above.
21801 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21803 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21804 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21806 2008-01-23 Michael Matz <matz@suse.de>
21809 * dwarf2out.c (force_type_die): Use modified_type_die instead of
21812 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
21814 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21815 malloc result type.
21817 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21819 * config/avr/avr.c (avr_current_arch): New variable.
21820 (avr_arch_types): Add 'avr31' and 'avr51' entries.
21821 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21822 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21823 (avr_override_options): Init 'avr_current_arch'.
21824 (base_arch_s): Move from here...
21825 * config/avr/avr.h (base_arch_s): ... here. Add new members
21826 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21827 'mega' to 'have_jmp_call'.
21828 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21829 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21831 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21833 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21834 MULTILIB_MATCHES): (Ditto.).
21836 2008-01-23 Richard Guenther <rguenther@suse.de>
21838 PR middle-end/31529
21839 * cgraphunit.c (cgraph_reset_node): Always mark the node
21840 not reachable if it is not queued already.
21842 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
21844 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21845 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21846 (cputype_selected): New static variable.
21847 (bfin_handle_option): Set it if -mcpu is used.
21848 (override_option): Select default set of workarounds if no cpu type
21849 selected on the command line.
21850 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21852 From Michael Frysinger <michael.frysinger@analog.com>
21853 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21854 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21856 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21857 for bf547, bf523, bf524, and bf526.
21858 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
21860 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21861 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21862 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21863 __ADSPBF547__ and __ADSPBF54x__ for bf547.
21864 * doc/invoke.texi (Blackfin Options): Document that
21865 -mcpu now accept bf547, bf523, bf524, and bf526.
21867 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
21869 PR rtl-optimization/34628
21870 * combine.c (try_combine): Stop and undo after the first combination
21871 if an autoincrement side-effect on the first insn has effectively
21874 2008-01-22 David Edelsohn <edelsohn@gnu.org>
21877 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21878 Offset addresses are not valid for Altivec or paired float modes.
21880 2008-01-22 Jakub Jelinek <jakub@redhat.com>
21883 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21884 if DECL_INITIAL (decl) is error_mark_node.
21887 * c-common.c (handle_vector_size_attribute): Only allow
21888 integral, scalar float and fixed point types. Handle OFFSET_TYPE
21889 the same way as pointer, array etc. types.
21890 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21893 * tree.c (build_type_attribute_qual_variant): Call
21894 build_qualified_type if attributes are equal, but quals are not.
21896 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21899 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21900 * flags.h (warn_strict_aliasing): Remove.
21901 (warn_strict_overflow): Remove.
21902 * opts.c (warn_strict_aliasing): Remove.
21903 (warn_strict_overflow): Remove.
21904 * c-opts.c (c_common_handle_option): -Wall only sets
21905 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21906 (c_common_post_options): Give default values to -Wstrict-aliasing
21907 and -Wstrict-overflow if they are uninitialized.
21908 * common.opt (Wstrict-aliasing): Specify Var and Init.
21909 (Wstrict-overflow): Likewise.
21911 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
21913 PR rtl-optimization/26854
21914 PR rtl-optimization/34400
21915 PR rtl-optimization/34884
21916 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21918 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21919 (df_rd_bb_info.expanded_lr_out): Deleted
21920 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21921 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
21922 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21923 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21924 Removed code to allocate, initialize or free expanded_lr_out.
21925 (df_rd_bb_local_compute_process_def): Restructured to make more
21927 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21928 sets if the sets are being trimmed.
21930 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
21933 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21934 (as_vers): Likewise.
21935 * configure: Regenerated.
21937 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21939 PR middle-end/33092
21940 * tree-pass.h (pass_build_alias): New pass.
21941 * tree-ssa-alias.c (gate_build_alias): New.
21942 (pass_build_alias): New.
21943 * passes.c (init_optimization_passes): Add pass_build_alias after
21944 pass_create_structure_vars.
21946 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
21948 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21949 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21950 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21951 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21952 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21953 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21954 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21955 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21956 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21957 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21958 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21959 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21960 * config/s390/s390.md (FP_ALL): New mode iterator.
21961 (_d): New mode attribute.
21962 ("*signbit<mode>2>"): Changed mode of first operand.
21963 ("isinf<mode>2"): Changed mode of first operand.
21964 ("*TDC_insn"): Adaptation for DFP modes.
21966 2008-01-22 Ben Elliston <bje@au.ibm.com>
21968 * tree.c (check_qualified_type): Improve function description.
21970 2008-01-21 Jason Merrill <jason@redhat.com>
21973 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21974 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21977 2008-01-21 DJ Delorie <dj@redhat.com>
21979 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21982 2008-01-21 Richard Guenther <rguenther@suse.de>
21984 PR middle-end/34856
21985 * tree-cfg.c (verify_expr): Allow all invariant expressions
21986 instead of just constant class ones as reference argument.
21987 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21988 like any other constant.
21989 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21991 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
21993 * regmove.c (fixup_match_1): Update call crossed frequencies.
21995 2008-01-21 Richard Guenther <rguenther@suse.de>
21998 * tree-inline.c (setup_one_parameter): Deal with mismatched
21999 types using a VIEW_CONVERT_EXPR.
22001 2008-01-21 Alon Dayan <alond@il.ibm.com>
22002 Olga Golovanevsky <olga@il.ibm.com>
22004 PR tree-optimization/34701
22005 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22006 when the structure size is not a power of 2.
22008 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22010 * doc/install.texi: Add doc for --enable-checking=df.
22012 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
22014 PR rtl-optimization/34808
22015 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22017 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
22019 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22022 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
22024 PR rtl-optimization/26854
22025 PR rtl-optimization/34400
22026 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22028 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22029 (df_rd_bb_info.expanded_lr_out): New.
22030 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22031 * loop_iv.c (iv_analysis_loop_init): Ditto.
22032 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22033 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22034 Added code to allocate, initialize or free expanded_lr_out.
22035 (df_rd_bb_local_compute_process_def): Restructured to make
22036 more understandable.
22037 (df_rd_confluence_n): Add code to do nothing with fake edges and
22038 code to no apply invalidate_by_call sets if the sets are being trimmed.
22039 (df_lr_local_finalize): Renamed to df_lr_finalize.
22040 (df_live_local_finalize): Renamed to df_live_finalize.
22042 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
22045 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22046 deciding whether to use reciprocal instructions.
22048 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
22050 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22051 dwarf2out_note_section_used if cold_text_section is NULL.
22053 2008-01-19 Jakub Jelinek <jakub@redhat.com>
22055 PR gcov-profile/34610
22056 * tree-cfg.c (make_edges): Mark both outgoing edges from
22057 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22058 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22059 from OMP_FOR and OMP_CONTINUE outgoing edges.
22061 * tree-profile.c (tree_profiling): Return early if
22062 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
22064 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22065 from cfun to child_cfun.
22066 * function.h (struct function): Add after_tree_profile bit.
22068 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22070 * config/avr/avr.S (_exit): Disable interrupt.
22072 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
22073 Steven Bosscher <stevenb.gcc@gmail.com>
22075 PR rtl-optimization/26854
22076 PR rtl-optimization/34400
22077 * df-problems.c (df_live_scratch): New scratch bitmap.
22078 (df_live_alloc): Allocate df_live_scratch when doing df_live.
22079 (df_live_reset): Clear the proper bitmaps.
22080 (df_live_bb_local_compute): Only process the artificial defs once
22081 since the order is not important.
22082 (df_live_init): Init the df_live sets only with the variables
22083 found live by df_lr.
22084 (df_live_transfer_function): Use the df_lr sets to prune the
22085 df_live sets as they are being computed.
22086 (df_live_free): Free df_live_scratch.
22088 2008-01-18 Ian Lance Taylor <iant@google.com>
22090 * common.opt: Add fmerge-debug-strings.
22091 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22092 flag_merge_debug_strings rather than flag_merge_constants.
22093 * doc/invoke.texi (Option Summary): Mention
22094 -fmerge-debug-strings.
22095 (Debugging Options): Document -fmerge-debug-strings.
22097 2008-01-18 Ian Lance Taylor <iant@google.com>
22100 * tree.h (DECL_IS_OPERATOR_NEW): Define.
22101 (struct tree_function_decl): Add new field operator_new_flag.
22102 * tree-inline.c (expand_call_inline): When inlining a call to
22103 operator new, force the return value to go into a variable, and
22104 set DECL_NO_TBAA_P on that variable.
22105 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22107 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
22110 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22111 DWARF2_DEBUGGING_INFO.
22112 (dwarf2out_note_section_used): Ditto. Add prototype.
22113 (have_multiple_function_sections, text_section_used,
22114 cold_text_section_used, *cold_text_sections): Move declarations
22117 2008-01-17 Bob Wilson <bob.wilson@acm.org>
22119 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22120 field and add signal_ra.
22121 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22122 assignments to frame state pc. Move end of stack check after
22123 MD_FALLBACK_FRAME_STATE_FOR.
22124 (uw_update_context_1): Use frame state signal_regs if set, instead
22125 of checking signal_frame flag.
22126 (uw_update_context): Use frame state signal_ra if set.
22127 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22128 * config/xtensa/linux-unwind.h: New file.
22130 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
22132 * modulo-sched.c (get_sched_window): Fix comment typo.
22134 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
22136 PR tree-optimization/34648
22137 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22139 2008-01-17 Anatoly Sokolov <aesok@post.ru>
22141 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22142 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22144 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
22146 PR rtl-optimization/34400
22147 * df-core.c (df_worklist_dataflow_overeager,
22148 df_worklist_dataflow_doublequeue): New functions.
22149 (df_worklist_dataflow): Two different worklist solvers.
22150 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22153 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22156 * doc/invoke.texi: Document the dependence on pthread for fopenmp
22157 and ftree-parallelize-loops.
22159 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
22161 PR rtl-optimization/34826
22162 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22164 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
22166 * global.c (find_reg): Mark the eh regs as used if necessary.
22167 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22168 * ra.h (struct allocno): no_eh_reg field added. Changed
22169 no_stack_reg type to bitfield.
22171 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
22173 * tree.c (substitute_in_expr): Add missing 'break'.
22175 2008-01-17 Richard Guenther <rguenther@suse.de>
22177 PR tree-optimization/34825
22178 * tree-ssa-math-opts.c (is_division_by): Do not recognize
22179 x / x as division to handle.
22181 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22183 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22184 "-pthread" is specified.
22185 * pa-hpux11.h (LIB_SPEC): Likewise.
22187 2008-01-16 Janis Johnson <janis187@us.ibm.com>
22188 Peter Bergner <bergner@vnet.ibm.com>
22190 PR rtl-optimization/33796
22191 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22193 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22195 PR libgfortran/34699
22196 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22198 * pa-hpux10.h (LINK_SPEC): Likewise.
22199 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22201 2008-01-16 Richard Guenther <rguenther@suse.de>
22203 PR middle-end/32628
22204 * fold-const.c (fold_convert_const_int_from_int): Do not
22205 set overflow if that occured only because of a sign extension
22206 change when converting from/to a sizetype with the same
22207 precision and signedness.
22209 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22212 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22213 location address to the correct place. Update copyright year.
22215 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22217 * lambda-code.c (lambda_transform_legal_p): Handle the case of
22218 no dependences in the dependence_relations vector.
22220 2008-01-16 Jan Hubicka <jh@suse.cz>
22222 PR rtl-optimization/31396
22223 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22224 * cfg.c (dump_reg_info): Print it.
22225 * regs.h (struct reg_info_t): add freq_calls_crossed.
22226 (REG_FREQ_CALLS_CROSSED): New macro.
22227 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22228 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22229 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22230 regmove_optimize): Update call crossed frequencies.
22231 * local-alloc.c (struct qty): Add freq_calls_crossed.
22232 (alloc_qty): Copute freq_calls_crossed.
22233 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22234 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22235 * ra.h (struct allocno): Add freq_calls_crossed.
22237 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22239 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22240 libgomp when compiling with ftree-parallelize-loops.
22241 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22243 2008-01-16 Richard Guenther <rguenther@suse.de>
22245 PR tree-optimization/34769
22246 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22247 * tree.c (int_cst_value): Instead make this function more
22248 permissive in what it accepts as valid input. Document this
22249 function always sign-extends the value.
22251 2008-01-16 Jakub Jelinek <jakub@redhat.com>
22252 Richard Guenther <rguenther@suse.de>
22255 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22256 (gimple_fold_indirect_ref_rhs): ... this.
22257 (gimple_fold_indirect_ref): New function with foldings
22258 that preserve lvalueness.
22259 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22260 * tree-flow.h (gimple_fold_indirect_ref): Declare.
22261 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22262 to fold an INDIRECT_REF, fall back to the old use of
22263 fold_indirect_ref_1.
22265 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
22267 * tree-data-ref.c (subscript_dependence_tester_1): Call
22268 free_conflict_function.
22269 (compute_self_dependence): Same.
22271 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
22274 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22275 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
22277 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22278 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22279 for DWARF2_UNWIND_INFO targets.
22281 2008-01-16 Richard Guenther <rguenther@suse.de>
22284 * c-typeck.c (common_pointer_type): Do not merge inconsistent
22285 type qualifiers for function types.
22287 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
22289 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22290 loop_iterator li from previous commit.
22292 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
22294 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22296 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22298 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22299 (parallelize_loops): Don't parallelize irreducible components.
22301 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22304 * c-opts (c_common_post_options): Do not enable CPP
22305 flag_pedantic_errors by default.
22307 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
22309 PR rtl-optimization/31944
22310 * cse.c (remove_pseudo_from_table): New function.
22311 (merge_equiv_classes): Use above function to remove pseudo-registers.
22312 (invalidate): Likewise.
22314 2008-01-13 Richard Guenther <rguenther@suse.de>
22316 PR middle-end/34601
22317 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22318 instead of TYPE_MODE to deal with calls from expand_one_error_var.
22320 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
22322 * gcse.c (cprop_jump): Call validate_unshare_change instead of
22323 validate_change to unshare the source of the PC set.
22325 2008-01-12 Jan Hubicka <jh@suse.cz>
22327 PR middle-end/32135
22328 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22329 references above array bounds. This might trigger bounds checks for
22330 pointers to arrays.
22332 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
22334 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22335 new_replaceable_dependencies.
22337 2008-01-12 Doug Kwan <dougkwan@google.com>
22339 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22340 instead of OPT_Wreturn_type in warning due to ignored return type
22342 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22343 options included in -Wextra.
22344 * c.opt: New option -Wignored_qualifiers.
22345 * doc/invoke.texi (Warning Options, -Wextra): Add new option
22346 -Wignore_qualifiers.
22347 (-Wignored-qualifiers): Document.
22348 (-Wreturn-type): Remove description of functionality now handled
22349 by -Wignored-qualifiers.
22351 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
22354 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22355 NOP_EXPR if it is between integral types with the same precision.
22357 2008-01-12 Jan Hubicka <jh@suse.cz>
22360 * invoke.texi (max-inline-recursive-depth): Fix default value.
22362 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
22364 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22367 2008-01-11 Bob Wilson <bob.wilson@acm.org>
22369 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22371 2008-01-11 James E. Wilson <wilson@specifix.com>
22374 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22376 2008-01-11 Anatoly Sokolov <aesok@post.ru>
22378 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22379 save/restore frame pointer register and don't use 'call-prologues'
22380 optimization in function with "OS_task" attribute.
22382 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
22384 PR middle-end/31309
22385 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22386 when copying to memory.
22388 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
22390 PR rtl-optimization/30905
22391 * cfgcleanup.c: Include dce.h
22392 (crossjumps_occured): New global variable.
22393 (try_crossjump_bb): Exit loop after finding a fallthru edge.
22394 If something changed, set crossjumps_occured to true.
22395 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22396 Don't add/remove fake edges to exit here...
22397 (cleanup_cfg): ...but do it here, when crossjumping.
22398 Run a fast DCE when successful crossjumps occured in the latest
22399 iteration of try_optimize_cfg.
22401 2008-01-11 Richard Guenther <rguenther@suse.de>
22403 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22404 (struct vn_unary_op_s): Likewise.
22405 (vn_reference_insert): Free old reference on hash collision.
22407 2008-01-10 Raksit Ashok <raksit@google.com>
22409 PR rtl-optimization/27971
22410 * combine.c (find_split_point): Split PLUS expressions which are
22411 inside a MEM rtx, and whose first operand is complex.
22413 2008-01-10 DJ Delorie <dj@redhat.com>
22415 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22416 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22417 (m32c_hard_regno_ok): Call the underlying function.
22419 2008-01-10 Richard Guenther <rguenther@suse.de>
22421 PR middle-end/34683
22422 * tree-cfg.c (tree_merge_blocks): Do not go through the
22423 full-blown folding and stmt updating path if we just deal
22424 with virtual operands.
22425 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22426 test for abnormal SSA_NAMEs.
22428 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
22430 PR middle-end/34641
22431 * reload.c (push_reload): Add assertions. All constants from
22432 reg_equiv_constant should have been used for replacing the respective
22434 (find_reloads_address): Invoke find_reloads_address_part for
22435 constant taken from the reg_equiv_constant array.
22437 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
22439 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22440 field (valnum) the first in the struct. Replace bools with
22443 2008-01-10 Richard Guenther <rguenther@suse.de>
22445 PR tree-optimization/34651
22446 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
22447 types and ordering for masking and converting.
22449 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
22451 PR tree-optimization/34017
22452 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22453 also for PHI_NODE expressions.
22455 2008-01-09 Jan Hubicka <jh@suse.cz>
22457 PR tree-optimization/34708
22458 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22459 based on number of case labels.
22460 (init_inline_once): Remove switch_cost.
22461 * tree-inline.h (eni_weights_d): Remove switch_cost.
22463 2008-01-09 Richard Guenther <rguenther@suse.de>
22464 Andrew Pinski <andrew_pinski@playstation.sony.com>
22466 PR middle-end/30132
22467 * gimplify.c (gimplify_cond_expr): Do not create an addressable
22468 temporary if an rvalue is ok or an lvalue is not required.
22470 2008-01-09 Richard Guenther <rguenther@suse.de>
22472 PR middle-end/34458
22473 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22474 adjust return type.
22476 2008-01-09 Richard Guenther <rguenther@suse.de>
22478 PR middle-end/34679
22479 * tree.c (host_integerp): Check for sizetype only if the
22480 type is an integer type.
22482 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
22485 * opts.c (decode_options): Disable inlining of functions called
22486 once if not in unit-at-a-time mode.
22488 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
22490 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22492 2008-01-08 Richard Guenther <rguenther@suse.de>
22494 PR middle-end/31863
22495 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22496 out early if the result will be unused.
22498 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22503 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22504 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22507 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
22509 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22510 for vectorization tuned.
22512 2008-01-08 Richard Guenther <rguenther@suse.de>
22514 PR tree-optimization/34683
22515 * tree-ssa-operands.c (operand_build_cmp): Export.
22516 * tree-ssa-operands.h (operand_build_cmp): Declare.
22517 * tree-vn.c (vuses_compare): Remove.
22518 (sort_vuses): Use operand_build_cmp.
22519 (sort_vuses_heap): Likewise.
22520 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22521 to re-use old VEC if available. Do not sort already sorted VUSEs.
22522 (vdefs_to_vec): Do not sort already sorted VDEFs.
22524 2008-01-08 Jakub Jelinek <jakub@redhat.com>
22526 PR middle-end/34694
22527 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22529 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
22532 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22533 limitations of reciprocal sequences on x86 targets.
22535 2008-01-08 Richard Guenther <rguenther@suse.de>
22537 PR tree-optimization/34683
22538 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22540 2008-01-07 Jakub Jelinek <jakub@redhat.com>
22543 * config/darwin.c (darwin_mergeable_string_section): Don't use
22544 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22546 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
22549 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22550 negxf2. Macroize expander using X87MODEF mode iterator. Change
22551 predicates of op0 and op1 to register_operand.
22552 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
22553 expander using X87MODEF mode iterator. Change predicates of
22554 op0 and op1 to register_operand.
22555 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22556 corresponding patterns and macroize using MODEF macro. Change
22557 predicates of op0 and op1 to register_operand and remove
22558 "m" constraint. Disparage "r" alternative with "!".
22559 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22560 macroize using X87MODEF macro. Change predicates of op0 and op1
22561 to register_operand and remove "m" constraint. Disparage "r"
22562 alternative with "!".
22563 (absneg splitter with memory operands): Remove.
22564 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22565 patterns and macroize using X87MODEF mode iterator.
22566 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22567 Change predicate of op1 to register_operand.
22568 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22569 for memory operands.
22571 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
22573 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22575 2008-01-07 Richard Guenther <rguenther@suse.de>
22577 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22580 2008-01-07 Richard Guenther <rguenther@suse.de>
22582 PR tree-optimization/34683
22583 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22584 VOPs of the needed size to save memory. Use VEC_quick_push
22585 to save compile-time.
22586 (vdefs_to_vec): Likewise.
22588 2008-01-07 Sa Liu <saliu@de.ibm.com>
22590 * config/spu/spu.md (divdf3): Genetate inline code for double
22591 division. The implementation doesn't handle INF or NAN, therefore it
22592 only applies when -ffinite-math-only is given.
22594 2008-01-06 Paolo Carlini <pcarlini@suse.de>
22597 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22598 * doc/cpp.texi ([Common Predefined Macros]): Document.
22600 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
22602 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22603 order to use commutative addition instead of subtraction.
22605 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
22606 Mircea Namolaru <namolaru@il.ibm.com>
22607 Vladimir Yanovsky <yanov@il.ibm.com>
22608 Revital Eres <eres@il.ibm.com>
22610 PR tree-optimization/34263
22611 * tree-outof-ssa.c (process_single_block_loop_latch,
22612 contains_tree_r): New functions.
22613 (analyze_edges_for_bb): Call process_single_block_loop_latch
22614 function to empty single-basic-block latch block if possible.
22616 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22618 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22620 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22622 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22624 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22626 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
22628 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22630 2008-01-05 Jakub Jelinek <jakub@redhat.com>
22632 PR tree-optimization/34618
22633 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22636 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
22639 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22640 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
22641 Update copyright year.
22643 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22644 Update copyright year.
22645 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22648 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
22650 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22651 edge does not point to current bb before changing need_assert.
22653 2008-01-04 Richard Guenther <rguenther@suse.de>
22655 PR middle-end/34029
22656 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22657 for verifying purposes if they are is_gimple_min_invariant.
22659 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
22661 PR tree-optimization/34448
22662 PR tree-optimization/34465
22663 * gimplify.c (gimplify_init_constructor): Add new parameter
22664 notify_temp_creation. Use it.
22665 (gimplify_modify_expr_rhs): Take volatiles into account when
22666 optimizing constructors.
22667 Do not optimize constructors if gimplify_init_constructor will dump to
22669 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22670 * gcc.c-torture/compile/pr34448.c: New.
22672 2008-01-04 Jakub Jelinek <jakub@redhat.com>
22674 PR gcov-profile/34609
22675 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22676 return_slot if result is TREE_ADDRESSABLE.
22678 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
22680 * config/mips/mips.md (sqrt_condition): Tweak comment.
22681 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
22683 2008-01-03 Tom Tromey <tromey@redhat.com>
22686 * c-common.c (c_type_hash): Handle VLAs.
22688 2008-01-03 Jan Hubicka <jh@suse.cz>
22690 PR tree-optimization/31081
22691 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22692 0 when inlining and not inlining to first basic block.
22693 (remap_decl): When var is initialized to 0, don't set default_def.
22694 (expand_call_inline): Set entry_bb.
22695 * tree-inline.h (copy_body_data): Add entry_bb.
22697 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22700 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22703 PR tree-optimization/29484
22704 * tree-inline.c (inline_forbidden_p_2): New function.
22705 (inline_forbidden_p): Disallow inlining if some static var
22706 has an address of a local LABEL_DECL in its initializer.
22707 * doc/extend.texi (Labels as Values): Document &&foo behaviour
22710 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
22712 PR tree-optimization/34635
22713 * tree-data-ref.c (add_other_self_distances): Make sure that the
22714 evolution step is constant.
22716 2008-01-03 Jakub Jelinek <jakub@redhat.com>
22718 PR middle-end/34608
22719 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22721 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
22723 * tree-sra.c (scalarize_init): Insert the generate_element_init
22724 statements after the generate_element_zero statements.
22726 2008-01-02 Richard Guenther <rguenther@suse.de>
22728 PR middle-end/34093
22729 PR middle-end/31976
22730 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22731 for very large number of operands instead of ICEing.
22733 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
22736 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22737 while stack probing.
22739 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
22741 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22744 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
22746 PR libmudflap/26442
22747 * tree-mudflap.c (mx_register_decls): Guard warning by
22748 !DECL_ARTIFICIAL check.
22750 2008-01-01 Jakub Jelinek <jakub@redhat.com>
22752 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22753 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22754 sse5_perm<mode>): Fix constraints.