1 2008-08-01 Jakub Jelinek <jakub@redhat.com>
3 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
4 for labels for which it hasn't been set yet. If it has been set,
5 stop walking insns and continue with next worklist item.
6 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
7 if the only BARRIER is at the very end of a function.
9 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
11 * cfgexpand.c (expand_stack_alignment): Assert that
12 stack_realign_drap and drap_rtx must match.
14 * function.c (instantiate_new_reg): If DRAP is used to realign
15 stack, replace virtual_incoming_args_rtx with internal arg
18 2008-08-01 Richard Guenther <rguenther@suse.de>
20 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
21 loop information only if we initialized it.
22 (execute_pre): Call fini_pre with in_fre.
23 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
24 if we do not unroll because we hit max-completely-peeled-insns.
25 Use our estimation for consistency, do allow shrinking.
27 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
29 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
30 with MIN_STACK_BOUNDARY.
31 (ix86_update_stack_boundary): Likewise.
32 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
35 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
36 (MIN_STACK_BOUNDARY): This.
38 2008-08-01 Richard Guenther <rguenther@suse.de>
41 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
43 2008-08-01 Richard Guenther <rguenther@suse.de>
45 PR tree-optimization/36988
46 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
47 do not matter if that doesn't change volatile qualification.
49 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
51 * configure.ac: Do not generate libada-mk. Do not subst
53 * libada-mk.in: Remove.
54 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
55 * configure: Regenerate.
57 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
59 * tree-pass.h: Added comment about not dumping passes with name
60 starting with star in struct opt_pass.
61 * passes.c (register_dump_files_1): Don't do dump for a pass with
62 name starting with star.
63 * doc/passes.texi (Pass manager): Mention pass names and special
64 meaning of star prefix to avoid dump.
66 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
68 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
70 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
71 (ISA_MIPS64R2): New macro.
72 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
73 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
74 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
75 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
76 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
77 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
78 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
79 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
80 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
81 Move up to keep list alphabetically sorted.
82 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
83 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
85 * doc/invoke.texi (MIPS Options): Add -mips64r2.
86 (-march=@var{arch}): Add mips64r2.
88 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
90 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
92 2008-07-31 Steve Ellcey <sje@cup.hp.com>
94 * expr.c (expand_assignment): Check for complete type.
96 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
99 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
101 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
104 * function.h (rtl_data): Add stack_realign_tried. Update
107 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
109 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
110 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
112 2008-07-31 Jakub Jelinek <jakub@redhat.com>
114 PR rtl-optimization/36419
115 * dwarf2out.c (barrier_args_size): New variable.
116 (compute_barrier_args_size, compute_barrier_args_size_1): New
118 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
119 if not called yet in the current function, use barrier_args_size
120 array to find the new args_size value.
121 (dwarf2out_frame_debug): Free and clear barrier_args_size.
123 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
126 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
129 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
132 * dwarf2out.c (dwarf2out_args_size_adjust): New.
133 (dwarf2out_stack_adjust): Use it.
134 (dwarf2out_frame_debug_expr): Likewise.
136 2008-07-31 Richard Guenther <rguenther@suse.de>
138 PR tree-optimization/36978
139 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
140 the generated condition.
142 2008-07-31 Richard Guenther <rguenther@suse.de>
144 * passes.c (init_optimization_passes): Always call
145 pass_early_warn_uninitialized.
146 * opts.c (decode_options): Do not warn about -Wuninitialized
148 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
149 * doc/passes.texi (Warn for uninitialized variables): Adjust.
151 2008-07-31 Jakub Jelinek <jakub@redhat.com>
154 * builtins.c (maybe_emit_free_warning): New function.
155 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
156 maybe_emit_free_warning for BUILT_IN_FREE.
159 * dwarf2out.c (get_context_die): New function.
160 (force_decl_die, force_type_die): Use it.
161 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
162 returns NULL, force generation of DW_TAG_typedef and put that into
165 PR preprocessor/36649
166 * c-pch.c (c_common_read_pch): Save and restore
167 line_table->trace_includes across PCH restore.
169 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
172 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
174 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
177 * final.c (call_from_call_insn): Handle COND_EXEC.
179 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
181 * builtins.c (std_gimplify_va_arg_expr): Replace
182 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
183 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
185 2008-07-30 Joey Ye <joey.ye@intel.com>
186 H.J. Lu <hongjiu.lu@intel.com>
188 * builtins.c (expand_builtin_setjmp_receiver): Replace
189 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
190 (expand_builtin_apply_args_1): Likewise.
191 (expand_builtin_longjmp): Need DRAP for stack alignment.
192 (expand_builtin_apply): Likewise.
194 * caller-save.c (setup_save_areas): Call assign_stack_local_1
195 instead of assign_stack_local to allow alignment reduction.
197 * calls.c (emit_call_1): Need DRAP for stack alignment if
199 (expand_call): Replace virtual_incoming_args_rtx with
200 crtl->args.internal_arg_pointer.
201 * stmt.c (expand_nl_goto_receiver): Likewise.
203 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
204 alignment and store to stack_alignment_estimated and
205 max_used_stack_slot_alignment.
206 (expand_one_var): Likewise.
207 (expand_stack_alignment): New function.
208 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
209 and stack_alignment_estimated fields in rtl_data. Call
210 expand_stack_alignment at end.
212 * defaults.h (INCOMING_STACK_BOUNDARY): New.
213 (MAX_STACK_ALIGNMENT): Likewise.
214 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
215 (SUPPORTS_STACK_ALIGNMENT): Likewise.
217 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
218 stack alignment when generating virtual registers.
220 * function.c (assign_stack_local): Renamed to ...
221 (assign_stack_local_1): This. Add a parameter to indicate
222 if it is OK to reduce alignment.
223 (assign_stack_local): Use it.
224 (instantiate_new_reg): Instantiate virtual incoming args rtx
225 to vDRAP if stack realignment and DRAP is needed.
226 (assign_parms): Collect parameter/return type alignment and
227 contribute to stack_alignment_estimated.
228 (locate_and_pad_parm): Likewise.
229 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
230 with crtl->args.internal_arg_pointer.
232 * function.h (rtl_data): Add new field drap_reg,
233 max_used_stack_slot_alignment, stack_alignment_estimated,
234 stack_realign_needed, need_drap, stack_realign_processed and
235 stack_realign_finalized.
236 (stack_realign_fp): New macro.
237 (stack_realign_drap): Likewise.
239 * global.c (compute_regsets): Frame pointer is needed when
240 stack is realigned. Can eliminate frame pointer when stack is
241 realigned and dynamic realigned argument pointer isn't used.
243 * reload1.c (update_eliminables): Frame pointer is needed
244 when stack is realigned.
245 (init_elim_table): Can eliminate frame pointer when stack is
246 realigned and dynamic realigned argument pointer isn't used.
248 * rtl.h (assign_stack_local_1): Declare new funtion.
250 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
251 (TARGET_GET_DRAP_RTX): Likewise.
252 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
255 * target.h (gcc_target): Add update_stack_boundary and
258 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
259 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
261 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
262 H.J. Lu <hongjiu.lu@intel.com>
264 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
265 vdrap_reg, stack_realign and drap_reg_saved.
266 (add_cfi): Don't allow redefining CFA when DRAP is used.
267 (reg_save): Handle stack alignment.
268 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
269 alignment. Don't generate DWARF information for (set fp sp)
271 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
273 (int_loc_descriptor): Move prototype forward. Also define if
274 DWARF2_UNWIND_INFO is true.
275 (output_cfa_loc): Handle DW_CFA_expression.
276 (build_cfa_aligned_loc): New.
277 (based_loc_descr): Update assert for stack realign. For local
278 variables, use sp+offset when stack is aligned without drap and
279 fp+offset when stack is aligned with drap. For arguments, use
280 cfa+offset when drap is used to align stack.
282 2008-07-30 Joey Ye <joey.ye@intel.com>
283 H.J. Lu <hongjiu.lu@intel.com>
285 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
287 (ix86_gen_andsp): New.
288 (ix86_user_incoming_stack_boundary): Likewise.
289 (ix86_default_incoming_stack_boundary): Likewise.
290 (ix86_incoming_stack_boundary): Likewise.
291 (ix86_can_eliminate): Likewise.
292 (find_drap_reg): Likewise.
293 (ix86_update_stack_boundary): Likewise.
294 (ix86_get_drap_rtx): Likewise.
295 (ix86_finalize_stack_realign_flags): Likewise.
296 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
297 (TARGET_GET_DRAP_RTX): Likewise.
298 (override_options): Overide option value for new options.
299 (ix86_function_ok_for_sibcall): Remove check for
300 force_align_arg_pointer.
301 (ix86_handle_cconv_attribute): Likewise.
302 (ix86_function_regparm): Likewise.
303 (setup_incoming_varargs_64): Don't set stack_alignment_needed
305 (ix86_va_start): Replace virtual_incoming_args_rtx with
306 crtl->args.internal_arg_pointer.
307 (ix86_select_alt_pic_regnum): Check DRAP register.
308 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
309 (ix86_compute_frame_layout): Compute frame layout wrt stack
311 (ix86_internal_arg_pointer): Just return
312 virtual_incoming_args_rtx.
313 (ix86_expand_prologue): Decide if stack realignment is needed
314 and generate prologue code accordingly.
315 (ix86_expand_epilogue): Generate epilogue code wrt stack
316 realignment is really needed or not.
318 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
319 (ABI_STACK_BOUNDARY): Likewise.
320 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
321 (STACK_REALIGN_DEFAULT): Likewise.
322 (INCOMING_STACK_BOUNDARY): Likewise.
323 (MAX_STACK_ALIGNMENT): Likewise.
324 (ix86_incoming_stack_boundary): Likewise.
325 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
326 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
327 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
328 (machine_function): Remove force_align_arg_pointer.
330 * config/i386/i386.md (BX_REG): New.
333 * config/i386/i386.opt (mforce_drap): New.
334 (mincoming-stack-boundary): Likewise.
335 (mstackrealign): Add Init(-1).
337 * config/i386/i386-protos.h (ix86_can_eliminate): New
339 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
341 * doc/extend.texi: Update force_align_arg_pointer.
343 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
346 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
347 (INCOMING_STACK_BOUNDARY): Likewise.
348 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
349 (TARGET_GET_DRAP_RTX): Likewise.
351 2008-07-30 Andreas Schwab <schwab@suse.de>
353 PR rtl-optimization/36929
354 * dse.c (replace_inc_dec): Use emit_insn_before instead of
355 add_insn_before and fix argument order.
356 (replace_inc_dec_mem): Handle NULL rtx.
358 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
360 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
362 (arm_compute_initial_elimination_offset): Use it.
363 (arm_compute_save_reg_mask): Include static chain save slot when
364 calculating alignment.
365 (arm_get_frame_offsets): Ditto.
366 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
367 that we can use to decrement the stack when the stack decrement
368 could be too big for an immediate value in a single insn.
369 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
371 2008-07-30 Richard Guenther <rguenther@suse.de>
373 PR tree-optimization/36967
374 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
375 Release defs of statements we remove.
377 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
379 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
380 instead of NULL_RTVEC.
382 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
386 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
389 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
391 * final.c (call_from_call_insn): New.
392 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
394 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
396 * configure.ac: Substitute ADA_CFLAGS.
397 * configure: Regenerate.
398 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
399 * Makefile.in: Remove mention of X_* variables.
400 * config/pa/x-ada-hpux10: Remove.
401 * config/pa/x-ada: Remove.
403 * doc/fragments.texi: Update.
405 2008-07-30 Olivier Hainque <hainque@adacore.com>
407 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
408 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
409 __dso_handle explicitly here.
411 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
414 * c-typeck.c (build_binary_op): Encapsulate code into...
415 * c-common.c (shorten_binary_op): ...this new function.
416 (conversion_warning): Use the new function. Handle non-negative
417 constant in bitwise-and.
418 * c-common.h (shorten_binary_op): Declare.
420 2008-07-30 Olivier Hainque <hainque@adacore.com>
422 * scan.c (make_sstring_space): Add explicit conversions of
423 allocator's return value.
424 * fix-header.c (recognized_function): Likewise.
426 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
428 * doc/cpp.texi: Update to GFDL 1.2.
429 * doc/gcc.texi: Do not list GPL as Invariant Section.
430 * doc/gccint.texi: Likewise. Update copyright years.
431 * doc/install.texi: Update copyright years.
433 2008-07-30 Alan Modra <amodra@bigpond.net.au>
436 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
437 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
439 2008-07-29 Jan Hubicka <jh@suse.cz>
441 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
442 (grokdeclarator): Likewise.
443 * langhooks.c (lhd_warn_unused_global_decl): Use
444 DECL_DECLARED_INLINE_P.
445 * print-tree.c (print_node): Remove DECL_INLINE check.
447 2008-07-29 Richard Guenther <rguenther@suse.de>
449 PR tree-optimization/36945
450 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
451 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
452 Record invariant addresses un-decomposed.
453 (copy_reference_ops_from_call): Record reference call
454 arguments properly. Simplify.
455 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
456 helper split out from ...
457 (create_component_ref_by_pieces): ... here. Simplify.
458 Prepare for recursive invocation for call arguments.
459 (create_expression_by_pieces): Adjust call to
460 create_component_ref_by_pieces.
461 (compute_avail): Process operand 2 of reference ops.
463 2008-07-29 Richard Guenther <rguenther@suse.de>
465 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
468 2008-07-29 Jakub Jelinek <jakub@redhat.com>
470 * c-format.c (check_format_types): Revert unwanted checkin.
472 2008-07-29 Jan Hubicka <jh@suse.cz>
474 * flags.h (flag_really_no_inline): Remove.
475 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
476 * toplev.c (flag_really_no_inline): Remove.
477 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
478 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
479 (cgraph_decide_inlining_incrementally): Likewise.
480 (compute_inline_parameters): Likewise.
481 * opts.c (decode_options): Simplify.
482 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
483 * common.opt (finline): Initialize to 1.
484 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
486 2008-07-29 Jan Hubicka <jh@suse.cz>
488 * predict.c (always_optimize_for_size_p): New function.
489 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
490 optimize_edge_for_size_p, optimize_edge_for_speed_p,
491 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
493 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
494 * function.c (prepare_function_start): Set default profile.
495 * function.h (rtl_data): Add maybe_hot_insn_p.
496 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
497 (construct_exit_block): Likewise.
498 (tree_expand_cfg): Likewise.
500 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
501 optimize_edge_for_size_p, optimize_edge_for_speed_p,
502 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
503 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
506 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
509 * c-decl.c (merge_decls): Merge USED flags.
511 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
513 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
514 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
515 next_stack, lab_false and lab_over trees.
517 2008-07-28 Richard Guenther <rguenther@suse.de>
519 PR tree-optimization/36957
520 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
521 (useless_type_conversion_p): Remove.
522 (types_compatible_p): Remove.
523 * gimple.h (tree_ssa_useless_type_conversion): Declare.
524 (useless_type_conversion_p): Declare.
525 (types_compatible_p): Declare.
526 (gimple_expr_type): Return the base type only if it is
527 trivially convertible to the subtype.
529 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
531 * configure.ac: Use the m4_do macro to concatenate the warnings into
532 one string in ACX_PROG_CC_WARNING_OPTS,
533 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
534 * configure: Regenerate.
536 2008-07-28 Richard Guenther <rguenther@suse.de>
538 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
539 (insert_fake_stores): Remove.
540 (realify_fake_stores): Likewise.
541 (execute_pre): Remove dead code.
542 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
544 (find_func_aliases): Deal with it here instead.
545 Re-enable gcc_unreachable call.
547 2008-07-28 Richard Guenther <rguenther@suse.de>
549 Merge from gimple-tuples-branch.
551 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
552 * gimple.def: New file.
553 * gsstruct.def: Likewise.
554 * gimple-iterator.c: Likewise.
555 * gimple-pretty-print.c: Likewise.
556 * tree-gimple.c: Removed. Merged into ...
557 * gimple.c: ... here. New file.
558 * tree-gimple.h: Removed. Merged into ...
559 * gimple.h: ... here. New file.
561 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
562 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
563 --enable-checking=gimple flag.
564 * config.in: Likewise.
565 * configure: Regenerated.
567 * tree-ssa-operands.h: Tuplified.
568 * tree-vrp.c: Likewise.
569 * tree-loop-linear.c: Likewise.
570 * tree-into-ssa.c: Likewise.
571 * tree-ssa-loop-im.c: Likewise.
572 * tree-dump.c: Likewise.
573 * tree-complex.c: Likewise.
574 * cgraphbuild.c: Likewise.
575 * tree-ssa-threadupdate.c: Likewise.
576 * tree-ssa-loop-niter.c: Likewise.
577 * tree-pretty-print.c: Likewise.
578 * tracer.c: Likewise.
579 * gengtype.c: Likewise.
580 * tree-loop-distribution.c: Likewise.
581 * tree-ssa-loop-unswitch.c: Likewise.
582 * cgraph.c: Likewise.
583 * cgraph.h: Likewise.
584 * tree-ssa-loop-manip.c: Likewise.
585 * value-prof.c: Likewise.
586 * tree-ssa-loop-ch.c: Likewise.
587 * tree-tailcall.c: Likewise.
588 * value-prof.h: Likewise.
591 * tree-pass.h: Likewise.
592 * ipa-cp.c: Likewise.
593 * tree-scalar-evolution.c: Likewise.
594 * tree-scalar-evolution.h: Likewise.
595 * target.h: Likewise.
596 * lambda-mat.c: Likewise.
597 * tree-phinodes.c: Likewise.
598 * diagnostic.h: Likewise.
599 * builtins.c: Likewise.
600 * tree-ssa-alias-warnings.c: Likewise.
601 * cfghooks.c: Likewise.
602 * fold-const.c: Likewise.
603 * cfghooks.h: Likewise.
604 * omp-low.c: Likewise.
605 * tree-ssa-dse.c: Likewise.
606 * ipa-reference.c: Likewise.
607 * tree-ssa-uncprop.c: Likewise.
608 * toplev.c: Likewise.
609 * tree-gimple.c: Likewise.
610 * tree-gimple.h: Likewise.
611 * tree-chrec.c: Likewise.
612 * tree-chrec.h: Likewise.
613 * tree-ssa-sccvn.c: Likewise.
614 * tree-ssa-sccvn.h: Likewise.
615 * cgraphunit.c: Likewise.
616 * tree-ssa-copyrename.c: Likewise.
617 * tree-ssa-ccp.c: Likewise.
618 * tree-ssa-loop-ivopts.c: Likewise.
619 * tree-nomudflap.c: Likewise.
620 * tree-call-cdce.c: Likewise.
621 * ipa-pure-const.c: Likewise.
622 * c-format.c: Likewise.
623 * tree-stdarg.c: Likewise.
624 * tree-ssa-math-opts.c: Likewise.
625 * tree-ssa-dom.c: Likewise.
626 * tree-nrv.c: Likewise.
627 * tree-ssa-propagate.c: Likewise.
628 * ipa-utils.c: Likewise.
629 * tree-ssa-propagate.h: Likewise.
630 * tree-ssa-alias.c: Likewise.
631 * gimple-low.c: Likewise.
632 * tree-ssa-sink.c: Likewise.
633 * ipa-inline.c: Likewise.
634 * c-semantics.c: Likewise.
635 * dwarf2out.c: Likewise.
637 * tree-ssa-loop-ivcanon.c: Likewise.
638 * predict.c: Likewise.
639 * tree-ssa-loop.c: Likewise.
640 * tree-parloops.c: Likewise.
641 * tree-ssa-address.c: Likewise.
642 * tree-ssa-ifcombine.c: Likewise.
643 * matrix-reorg.c: Likewise.
644 * c-decl.c: Likewise.
645 * tree-eh.c: Likewise.
646 * c-pretty-print.c: Likewise.
647 * lambda-trans.c: Likewise.
648 * function.c: Likewise.
649 * langhooks.c: Likewise.
650 * ebitmap.h: Likewise.
651 * tree-vectorizer.c: Likewise.
652 * function.h: Likewise.
653 * langhooks.h: Likewise.
654 * tree-vectorizer.h: Likewise.
655 * ipa-type-escape.c: Likewise.
656 * ipa-type-escape.h: Likewise.
657 * domwalk.c: Likewise.
658 * tree-if-conv.c: Likewise.
659 * profile.c: Likewise.
660 * domwalk.h: Likewise.
661 * tree-data-ref.c: Likewise.
662 * tree-data-ref.h: Likewise.
663 * tree-flow-inline.h: Likewise.
664 * tree-affine.c: Likewise.
665 * tree-vect-analyze.c: Likewise.
666 * c-typeck.c: Likewise.
667 * gimplify.c: Likewise.
668 * coretypes.h: Likewise.
669 * tree-ssa-phiopt.c: Likewise.
671 * tree-ssa-coalesce.c: Likewise.
672 * tree.def: Likewise.
673 * tree-dfa.c: Likewise.
674 * except.c: Likewise.
675 * except.h: Likewise.
676 * cfgexpand.c: Likewise.
677 * tree-cfgcleanup.c: Likewise.
678 * tree-ssa-pre.c: Likewise.
679 * tree-ssa-live.c: Likewise.
680 * tree-sra.c: Likewise.
681 * tree-ssa-live.h: Likewise.
682 * tree-predcom.c: Likewise.
683 * lambda.h: Likewise.
684 * tree-mudflap.c: Likewise.
685 * ipa-prop.c: Likewise.
686 * print-tree.c: Likewise.
687 * tree-ssa-copy.c: Likewise.
688 * ipa-prop.h: Likewise.
689 * tree-ssa-forwprop.c: Likewise.
690 * ggc-page.c: Likewise.
692 * tree-ssa-dce.c: Likewise.
693 * tree-vect-patterns.c: Likewise.
694 * tree-ssa-ter.c: Likewise.
695 * tree-nested.c: Likewise.
696 * tree-ssa.c: Likewise.
697 * lambda-code.c: Likewise.
698 * tree-ssa-loop-prefetch.c: Likewise.
699 * tree-inline.c: Likewise.
700 * tree-inline.h: Likewise.
701 * tree-iterator.c: Likewise.
702 * tree-optimize.c: Likewise.
703 * tree-ssa-phiprop.c: Likewise.
704 * tree-vect-transform.c: Likewise.
705 * tree-object-size.c: Likewise.
706 * tree-outof-ssa.c: Likewise.
707 * cfgloop.c: Likewise.
708 * system.h: Likewise.
709 * tree-profile.c: Likewise.
710 * cfgloop.h: Likewise.
711 * c-gimplify.c: Likewise.
712 * c-common.c: Likewise.
713 * tree-vect-generic.c: Likewise.
714 * tree-flow.h: Likewise.
715 * c-common.h: Likewise.
716 * basic-block.h: Likewise.
717 * tree-ssa-structalias.c: Likewise.
718 * tree-switch-conversion.c: Likewise.
719 * tree-ssa-structalias.h: Likewise.
720 * tree-cfg.c: Likewise.
721 * passes.c: Likewise.
722 * ipa-struct-reorg.c: Likewise.
723 * ipa-struct-reorg.h: Likewise.
724 * tree-ssa-reassoc.c: Likewise.
725 * cfgrtl.c: Likewise.
726 * varpool.c: Likewise.
728 * tree-ssanames.c: Likewise.
729 * tree-ssa-threadedge.c: Likewise.
730 * langhooks-def.h: Likewise.
731 * tree-ssa-operands.c: Likewise.
732 * config/alpha/alpha.c: Likewise.
733 * config/frv/frv.c: Likewise.
734 * config/s390/s390.c: Likewise.
735 * config/m32c/m32c.c: Likewise.
736 * config/m32c/m32c-protos.h: Likewise.
737 * config/spu/spu.c: Likewise.
738 * config/sparc/sparc.c: Likewise.
739 * config/i386/i386.c: Likewise.
740 * config/sh/sh.c: Likewise.
741 * config/xtensa/xtensa.c: Likewise.
742 * config/stormy16/stormy16.c: Likewise.
743 * config/ia64/ia64.c: Likewise.
744 * config/rs6000/rs6000.c: Likewise.
745 * config/pa/pa.c: Likewise.
746 * config/mips/mips.c: Likewise.
748 2008-07-28 Simon Baldwin <simonb@google.com>
750 * c-pragma.c (handle_pragma_message): New function.
751 (init_pragma): Register handle_pragma_message.
752 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
755 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
757 PR tree-optimization/35252
758 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
759 REALPART_EXPR to be considered as same load operation.
761 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
763 PR tree-optimization/36830
764 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
765 (expressions_equal_p): Return false if only one operand is null.
767 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
769 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
770 version requirements.
772 2008-07-26 Olivier Hainque <hainque@adacore.com>
774 * collect2.c (symkind): New enum. Symbol kinds we care about.
775 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
776 code and head comment accordingly.
777 (scan_prog_file): Use symkind names instead of bare integers.
779 2008-07-25 Jan Hubicka <jh@suse.cz>
781 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
782 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
783 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
784 * dojump.c (clear_pending_stack_adjust): Likewise.
785 * print-tree.c (print_node): Ignore DECL_INLINE.
786 * tree-inline.c (inlinable_function_p): Likewise.
788 2008-07-25 Michael Meissner <gnu@the-meissners.org>
790 * doc/extend.texi (hot attribute): Document that the hot attribute
791 turns on -O3 for some ports.
792 (cold attribute): Document that the cold attribute turns on -Os
795 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
796 reflect function specific option support.
798 * target.h (struct target_option_hooks): Add fields to say whether
799 the cold attribute implies -Os and the hot attribute implies -O3.
801 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
802 By default, do not turn on -Os for cold functions.
803 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
804 not turn on -O3 for hot functions.
806 * c-common.c (handle_hot_attribute): Use target hook to determine
807 if hot functions should enable -O3.
808 (handle_cold_attribute): Use target hook to determine if cold
809 functions should enable -Os.
811 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
812 (override_options): Move disable scheduling to
813 optimization_options.
814 (optimization_options): Disable scheduling here, not
816 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
817 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
819 * config/ia64/ia64.c (ia64_override_options): Move setting
820 scheduling flags to ia64_optimization_options.
821 (ia64_optimization_options): Disable scheduling options here, and
822 not in ia64_override_options.
823 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
824 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
826 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
829 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
831 2008-07-25 Martin Jambor <mjambor@suse.cz>
833 PR tree-optimization/36926
834 * ipa-prop.c (ipa_analyze_call_uses): Call
835 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
837 2008-07-25 Joseph Myers <joseph@codesourcery.com>
839 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
840 movv2si_internal): Add mem = reg alternative.
842 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
845 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
846 DEFAULT_PCC_STRUCT_RETURN to 127.
848 2008-07-24 Jan Hubicka <jh@suse.cz>
850 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
851 (build_cgraph_edges): Likewise.
852 * cgraph.c (cgraph_node): Do not update assembler hash.
853 (cgraph_remove_node): Drop non-unit-at-a-time code.
854 * tree-pass.h (pass_O0_always_inline): Remove.
855 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
856 * toplev.c (process_options): Flag unit-at-a-time does not imply
858 * cgraphunit.c: Update comments.
859 (decide_is_function_needed): Drop non-unit-at-a-time mode.
860 (cgraph_assemble_pending_functions): Remove.
861 (cgraph_reset_node): Drop non-unit-at-a-time code.
862 (cgraph_finalize_function): Likewise.
863 (cgraph_analyze_function): Likewise.
864 (cgraph_finalize_compilation_unit): Likewise.
865 (cgraph_expand_function): Likewise.
866 (cgraph_optimize): Likesise.
867 (save_inline_function_body): Likewise.
868 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
869 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
870 * ipa-inline.c: Update comments.
871 (enum inlining_mode): remove INLINE_SPEED.
872 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
873 (cgraph_mark_inline_edge): Likewise.
874 (try_inline): Likewise.
875 (cgraph_decide_inlining_incrementally): Likewise.
876 (cgraph_gate_inlining): Remove.
877 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
878 (cgraph_gate_early_inlining): Likewise.
879 (gate_inline_passes): Remove.
880 (pass_inline_parameters, pass_ipa_inline): Remove gates.
881 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
882 pass_O0_always_inline): Remove.
883 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
884 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
885 * opts.c (no_unit_at_a_time_default): Remove.
886 (decode_options): Remove flag_unit_at_a_time reset and warning.
887 * opts.h (no_unit_at_a_time_default): Remove.
888 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
889 early in GNU dialect.
890 (merge_decls): Update comment; drop unit-at-a-time check.
891 (finish_decl): Likewise.
892 (grok_declaration): Remove flag_inline_trees code.
893 (finish_functions): Return on function returning non-void on all
895 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
896 * cfgexpand.c (expand_one_static_var): Remove.
897 (expand_one_var): Remove expand_one_static_var call.
898 (expand_used_vars_for_block): Remove flag_unit_a_time check.
899 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
900 and flag_unit_at_a-time compatibility checks.
901 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
902 * tree-inline.c (flag_inline_trees): Remove.
903 (inlinable_function_p): Don't check it.
904 (expand_call_inline): Remove non-unit-at-a-time code.
905 * tree-inline.h (flag_inline_trees): Remove.
906 * tree-optimize.c (execute_early_local_optimizations): Remove
907 unit-at-a-time checks.
908 (tree_rest_of_compilation): Likewise.
909 * combine.c (setup_incoming_promotions): Likewise.
910 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
911 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
912 * passes.c (pass_inline_parameters): Update comments; remove
913 O0_alwaysinline pass.
914 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
915 (execute_one_pass): Likewise.
916 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
917 (ix86_function_sseregparm): Likewise.
918 * arm.c (arm_function_in_section_p): Likewise.
919 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
920 * varpool.c: Update comments.
921 (decide_is_variable_needed): Remove unit-at-a-time checks.
922 (varpool_finalize_decl): Likewise.
924 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
926 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
928 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
931 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
933 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
934 imp symbol extension.
936 2008-07-23 Ian Lance Taylor <iant@google.com>
938 * tree-vrp.c (infer_value_range): Ignore asm statements when
939 looking for memory accesses for -fdelete-null-pointer-checks.
941 2008-07-24 Ben Elliston <bje@au.ibm.com>
943 * config/spu/spu-c.c (__vector_keyword): New variable.
944 (vector_keyword): Likewise.
945 (spu_categorize_keyword): New function.
946 (spu_macro_to_expand): Likewise.
947 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
948 compiling an ISO C dialect.
950 2008-07-24 Ben Elliston <bje@au.ibm.com>
952 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
955 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
957 * configure: Regenerate.
958 * configure.ac: Require texinfo 4.7.
959 * doc/install.texi: Document texinfo 4.7 requirement.
961 2008-07-23 Martin Jambor <mjambor@suse.cz>
963 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
964 rather than for DECL_SAVED_TREE.
965 * ipa-prop.c: Include diagnostic.h.
966 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
968 (ipa_detect_param_modifications): Function rewritten from scratch.
969 (ipa_compute_jump_functions): Changed accesses to modification flags.
970 (ipa_free_node_params_substructures): Update flags destruction.
971 (ipa_node_duplication_hook): Update flags duplication.
972 (ipa_print_all_params_modified): Updated flag access.
973 * ipa-prop.h (struct ipa_param_flags): New structure.
974 (struct ipa_node_params): New field modification_analysis_done,
975 modified_flags changed into param_flags.
976 (ipa_is_ith_param_modified): Changed to use new flags.
977 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
979 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
980 ipa-cp.c and split into two functions.
981 (ipa_print_node_jump_functions): New function.
982 (compute_scalar_jump_functions): New function.
983 (type_like_member_ptr_p): New function.
984 (compute_pass_through_member_ptrs): New function.
985 (fill_member_ptr_cst_jump_function): New function.
986 (determine_cst_member_ptr): New function.
987 (compute_cst_member_ptr_arguments): New function.
988 (ipa_compute_jump_functions): Complete rewrite.
989 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
990 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
991 (struct ipa_member_ptr_cst): New structure.
992 (union jump_func_value): New field member_cst.
993 * ipa-cp.c (ipcp_lat_is_insertable): New function.
994 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
996 (ipcp_print_all_lattices): Slight fprintf rearrangement.
997 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
998 instead of ipcp_print_all_jump_functions.
999 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1000 only for replacable scalars.
1002 * doc/invoke.texi (Optimize options): Add description of
1003 -findirect-inlining.
1004 * common.opt (flag_indirect_inlining): New flag.
1005 * opts.c (decode_options): Set flag_indirect_inlining when
1008 * ipa-inline.c: Include ipa-prop.h.
1009 (inline_indirect_intraprocedural_analysis): New function.
1010 (inline_generate_summary): Allocate parameter and argument info
1011 structures, call inline_indirect_intraprocedural_analysis on each
1012 node when doing indirect inlining and deallocate indirect inlining
1013 data structures in the end.
1014 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1015 (free_all_ipa_structures_after_iinln): New function.
1016 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1018 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1020 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1021 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1022 of computing the frequency separately.
1023 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1024 of computing the frequency separately.
1025 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1026 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1027 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1028 (ipa_get_stmt_member_ptr_load_param): New function.
1029 (ipa_is_ssa_with_stmt_def): New function.
1030 (ipa_note_param_call): New function.
1031 (ipa_analyze_call_uses): New function.
1032 (ipa_analyze_stmt_uses): New function.
1033 (ipa_analyze_params_uses): New function.
1034 (ipa_free_node_params_substructures): Also free the param_calls linked
1036 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1037 (ipa_print_node_param_flags): New function.
1038 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1039 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1040 * ipa-prop.h (struct ipa_param_flags): New field called.
1041 (struct ipa_param_call_note): New structure.
1042 (struct ipa_node_params): New fields param_calls and
1044 (ipa_is_ith_param_called): New function.
1045 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1046 ipa_analyze_params_uses and dump parameter flags.
1048 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1049 ipa_propagate_indirect_call_infos if performing indirect inlining,
1050 pass a new parameter new_edges to it.
1051 (add_new_edges_to_heap): New fucntion.
1052 (cgraph_decide_inlining_of_small_functions): New vector
1053 new_indirect_edges for newly found indirect edges , call
1054 ipa_propagate_indirect_call_infos after inlining.
1055 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1056 inlining if performing indirect inlining. Call
1057 free_all_ipa_structures_after_iinln when doing so too.
1058 (inline_generate_summary): Do not call
1059 free_all_ipa_structures_after_iinln here.
1060 * ipa-prop.c (update_jump_functions_after_inlining): New function.
1061 (print_edge_addition_message): New function.
1062 (update_call_notes_after_inlining): New function.
1063 (propagate_info_to_inlined_callees): New function.
1064 (ipa_propagate_indirect_call_infos): New function.
1065 * ipa-prop.h: Include cgraph.h
1066 (struct ipa_param_call_note): Fields reordered, new field processed.
1067 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1069 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1070 rediscovered call statements.
1071 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1072 (dump_cgraph_node): Dump also the indirect_call flag.
1073 (cgraph_clone_edge): Copy also the indirect_call flag.
1074 * tree-inline.c (copy_bb): Do not check for fndecls from call
1075 expressions, check for edge availability when moving clones.
1076 (get_indirect_callee_fndecl): New function.
1077 (expand_call_inline): If callee declaration is not apprent from
1078 the statement, try calling get_indirect_callee_fndecl. Do not
1079 issue warnings or call sorry when not inlinings an indirect edge.
1080 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1082 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1083 bit more frandly to matching.
1084 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1085 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1086 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1088 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1091 * opth-gen.awk: Suppress function specific features when building
1093 * optc-gen.awk: Ditto.
1095 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1098 * diagnostic.c (pedwarn): Add opt parameter.
1100 * c-tree.h (pedwarn_init): Add opt parameter.
1101 (pedwarn_c90): Likewise.
1102 (pedwarn_c99): Likewise.
1103 * c-errors.c (pedwarn_c99): Likewise.
1104 (pedwarn_c90): Likewise.
1105 * toplev.h (pedwarn): Update declaration.
1106 (pedwarn0): Declare.
1107 * c-lex.c: All calls to pedwarn changed.
1108 * builtins.c: All calls to pedwarn changed.
1109 * toplev.c: All calls to pedwarn changed.
1110 * c-decl.c: All calls to pedwarn changed.
1111 * c-typeck.c: All calls to pedwarn changed.
1112 * c-common.c: All calls to pedwarn changed.
1113 * c-parser.c: All calls to pedwarn changed.
1115 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1116 Karthik Kumar <karthikkumar@gmail.com>
1118 * attribs.c (file scope): Include c-common.h.
1119 (decl_attributes): Add support for #pragma GCC optimize and
1122 * targhooks.c (default_can_inline_p): New function that is the
1123 default for the TARGET_CAN_INLINE_P target hook.
1125 * targhooks.h (default_can_inline_p): Add declaration.
1127 * tree.c (cl_optimization_node): New static tree for building
1128 OPTIMIZATION_NODE tree.
1129 (cl_target_option_node): New static tree for building
1130 TARGET_OPTION_NODE tree.
1131 (cl_option_hash_table): New hash table for hashing
1132 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1133 (cl_option_hash_hash): New function to provide the hash value for
1134 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1135 (cl_option_hash_eq): New function to provide an equality test for
1136 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1137 (tree_code_size): Add support for OPTIMIZATION_NODE and
1138 TARGET_OPTION_NODE trees.
1139 (tree_code_structure): Add support for OPTIMIZATION_NODE and
1140 TARGET_OPTION_NODE trees.
1141 (build_optimization_node): Build a tree that has all of the
1142 current optimization options.
1143 (build_target_option_node): Build a tree that has the target
1144 options that might be changed on a per function basis.
1146 * tree.h (file scope): Include options.h.
1147 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1148 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1149 (TREE_OPTIMIZATION): Ditto.
1150 (TREE_TARGET_SPECIFIC): Ditto.
1151 (struct tree_function_decl): Add fields for remembering the
1152 current optimization options and target specific options.
1153 (struct tree_optimization_option): New tree variant that remembers
1154 the optimization options.
1155 (struct tree_target_option): New tree variant that remembers the
1156 target specific flags that might change for compiling a particular
1158 (union tree_node): Include tree_optimization_option and
1159 tree_target_option fields.
1160 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1161 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1162 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1163 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1164 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1165 optimization and target options.
1166 (optimization_default_node): New macro to refer to global_trees
1168 (optimization_current_node): Ditto.
1169 (optimization_cold_node): Ditto.
1170 (optimization_hot_node): Ditto.
1171 (target_option_default_node): Ditto.
1172 (target_option_current_node): Ditto.
1173 (current_option_pragma): Ditto.
1174 (current_optimize_pragma): Ditto.
1176 * target.h (struct gcc_target): Add valid_option_attribute_p,
1177 target_option_save, target_option_restore, target_option_print,
1178 target_option_pragma_parse, and can_inline_p hooks.
1180 * toplev.h (parse_optimize_options): Add declaration.
1181 (fast_math_flags_struct_set_p): Ditto.
1183 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1184 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1187 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1188 tree_can_inline_p hook to see if one function can inline another.
1189 (cgraph_decide_inlining): Ditto.
1190 (cgraph_decide_inlining_incrementally): Ditto.
1192 * opts.c (decode_options): Add support for running multiple times
1193 to allow functions with different target or optimization options
1194 than was specified on the command line.
1195 (fast_math_flags_struct_set_p): New function that is similar to
1196 fast_math_flags_set_p, except it uses the values in the
1197 cl_optimization structure instead of global variables.
1199 * optc-gen.awk: Add support for TargetSave to allow a back end to
1200 declare new fields that need to be saved when using function
1201 specific options. Include flags.h and target.h in the options.c
1202 source. Add support for Save to indicate which options can be set
1203 for individual functions. Generate cl_optimize_save,
1204 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1205 cl_target_option_restore, cl_target_option_print functions to
1206 allow functions to use different optimization or target options.
1208 * opt-functions.awk (var_type_struct): Return the type used for
1209 storing the field in a structure.
1211 * opth-gen.awk: Add support for TargetSave to allow a back end to
1212 declare new fields that need to be saved when using function
1213 specific options. Add support for Save to indicate which options
1214 can be set for individual functions. Only generate one extern for
1215 Mask fields. Generate cl_optimization and cl_target_option
1216 structures to remember optimization and target options.
1218 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1219 collecting new tree nodes.
1220 (TS_TARGET_OPTION): Ditto.
1222 * c-decl.c (merge_decls): Merge function specific target and
1223 optimization options.
1225 * function.c (invoke_set_current_function_hook): If the function
1226 uses different optimization options, change the global variables
1229 * coretypes.h (struct cl_optimization): Add forward reference.
1230 (struct cl_target_option): Ditto.
1232 * c-pragma.c (option_stack): New static vector to remember the
1233 current #pragma GCC option stack.
1234 (handle_pragma_option): New function to support #pragma GCC option
1235 to change target options.
1236 (optimize_stack): New static vector to remember the current
1237 #pragma GCC optimize stack.
1238 (handle_pragma_optimize): New function to support #pragma GCC
1239 optimize to change optimization options.
1240 (init_pragma): Add support for #pragma GCC optimize and #pragma
1243 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1244 optimization options.
1245 (TARGET_OPTION_NODE): New tree code for remembering certain target
1248 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1249 TARGET_OPTION_NODE trees.
1251 * common.opt (-O): Add Optimization flag.
1253 (-fmath-errno): Ditto.
1254 (-falign-functions): Add UInteger flag to make sure flag gets full
1255 int in cl_optimization structure.
1256 (-falign-jumps): Ditto.
1257 (-falign-labels): Ditto.
1258 (-falign-loops): Ditto.
1259 (-fsched-stalled-insns): Ditto.
1260 (-fsched-stalled-insns-dep): Ditto.
1262 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1264 (TARGET_OPTION_SAVE): Ditto.
1265 (TARGET_OPTION_RESTORE): Ditto.
1266 (TARGET_OPTION_PRINT): Ditto.
1267 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1268 (TARGET_CAN_INLINE_P): Ditto.
1269 (TARGET_INITIALIZER): Add new hooks.
1271 * tree-inline.c (tree_can_inline_p): New function to determine
1272 whether one function can inline another. Check if the functions
1273 use compatible optimization options, and also call the backend
1276 * tree-inline.h (tree_can_inline_p): Add declaration.
1278 * c-common.c (c_common_attribute): Add support for option and
1279 optimize attributes.
1280 (handle_option_attribute): Add support for the option attribute to
1281 allow the user to specify different target options for compiling a
1283 (handle_optimize_attribute): Add support for the optimize
1284 attribute to allow the user to specify different optimization
1285 options for compiling a specific function.
1286 (handle_hot_attribute): Turn on -O3 optimization for this one
1287 function if it isn't the default optimization level.
1288 (handle_cold_attribute): Turn on -Os optimization for this one
1289 function if it insn't the default optimization.
1290 (const_char_p): New const char * typedef.
1291 (optimize_args): New static vector to remember the optimization
1293 (parse_optimize_options): New function to set up the optimization
1294 arguments from either the optimize attribute or #pragma GCC
1297 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1298 (builtin_define_std): Ditto.
1300 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1301 Add t-i386 Makefile fragment to add i386-c.o and i386.o
1303 (x86_64-*-*): Ditto.
1305 * Makefile.in (TREE_H): Add options.h.
1306 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1308 * doc/extend.texi (option attribute): Document new attribute.
1309 (optimize attribute): Ditto.
1310 (hot attribute): Document hot attribute sets -O3.
1311 (cold attribute): Document cold attribute sets -Os.
1312 (#pragma GCC option): Document new pragma.
1313 (#pragma GCC optimize): Ditto.
1315 * doc/options.texi (TargetSave): Document TargetSave syntax.
1316 (UInteger): Document UInteger must be used for certain flags.
1317 (Save): Document Save option to create target specific options
1318 that can be saved/restored on a function specific context.
1320 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
1322 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1324 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
1326 (TARGET_OPTION_SAVE): Ditto.
1327 (TARGET_OPTION_RESTORE): Ditto.
1328 (TARGET_OPTION_PRINT): Ditto.
1329 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1330 (TARGET_CAN_INLINE_P): Ditto.
1332 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1334 (-mfpmath=both): Ditto.
1336 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1337 Karthik Kumar <karthikkumar@gmail.com>
1339 * config/i386/i386.h (TARGET_ABM): Move switch into
1341 (TARGET_POPCNT): Ditto.
1342 (TARGET_SAHF): Ditto.
1343 (TARGET_AES): Ditto.
1344 (TARGET_PCLMUL): Ditto.
1345 (TARGET_CMPXCHG16B): Ditto.
1346 (TARGET_RECIP): Move switch into target_flags.
1347 (TARGET_FUSED_MADD): Ditto.
1348 (ix86_arch_features): Make an unsigned char type.
1349 (ix86_tune_features): Ditto.
1350 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1351 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1352 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1354 * config/i386/i386.opt (arch): New TargetSave field to define
1355 fields that need to be saved for function specific option
1359 (branch_cost): Ditto.
1360 (ix86_isa_flags_explicit): Ditto.
1361 (tune_defaulted): Ditto.
1362 (arch_specified): Ditto.
1363 (-m128-long-double): Add Save flag to save option for target
1364 specific option support.
1366 (-maccumulate-outgoing-args): Ditto.
1367 (-malign-double): Ditto.
1368 (-malign-stringops): Ditto.
1369 (-mfancy-math-387): Ditto.
1370 (-mhard-float): Ditto.
1372 (-minline-all-stringops): Ditto.
1373 (-minline-stringops-dynamically): Ditto.
1374 (-mms-bitfields): Ditto.
1375 (-mno-align-stringops): Ditto.
1376 (-mno-fancy-math-387): Ditto.
1377 (-mno-push-args): Ditto.
1378 (-mno-red-zone): Ditto.
1379 (-mpush-args): Ditto.
1380 (-mred-zone): Ditto.
1382 (-msseregparm): Ditto.
1383 (-mstack-arg-probe): Ditto.
1398 (-mrecip): Move flag into target_flags.
1400 (-mno-fused-madd): Ditto.
1401 (-mfused-madd): Ditto.
1402 (-mabm): Move flag into ix86_isa_flags.
1409 * config/i386/i386-c.c: New file for #pragma support.
1410 (ix86_target_macros_internal): New function to #define or #undef
1411 target macros based when the user uses the #pragma GCC option to
1412 change target options.
1413 (ix86_pragma_option_parse): New function to add #pragma GCC option
1415 (ix86_target_macros): Move defining the target macros here from
1416 TARGET_CPU_CPP_BUILTINS in i386.h.
1417 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1418 defined, initialize any subtarget #pragmas.
1420 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1421 REGISTER_TARGET_PRAGMAS.
1423 * config/i386/t-i386: New file for x86 dependencies.
1424 (i386.o): Make dependencies mirror the include files used.
1425 (i386-c.o): New file, add dependencies.
1427 * config/i386/i386-protos.h (override_options): Add bool
1429 (ix86_valid_option_attribute_tree): Add declaration.
1430 (ix86_target_macros): Ditto.
1431 (ix86_register_macros): Ditto.
1433 * config/i386/i386.c (ix86_tune_features): Move initialization of
1434 the target masks to initial_ix86_tune_features to allow functions
1435 to have different target options. Make type unsigned char,
1436 instead of unsigned int.
1437 (initial_ix86_tune_features): New static vector to hold processor
1438 masks for the tune variables.
1439 (ix86_arch_features): Move initialization of the target masks to
1440 initial_ix86_arch_features to allow functions to have different
1441 target options. Make type unsigned char, instead of unsigned
1443 (initial_ix86_arch_features): New static vector to hold processor
1444 masks for the arch variables.
1445 (enum ix86_function_specific_strings): New enum to describe the
1446 string options used for attribute((option(...))).
1447 (ix86_target_string): New function to return a string that
1448 describes the target options.
1449 (ix86_debug_options): New function to print the current options in
1451 (ix86_function_specific_save): New function hook to save the
1452 function specific global variables in the cl_target_option
1454 (ix86_function_specific_restore): New function hook to restore the
1455 function specific variables from the cl_target_option structure to
1456 the global variables.
1457 (ix86_function_specific_print): New function hook to print the
1458 target specific options in the cl_target_option structure.
1459 (ix86_valid_option_attribute_p): New function hook to validate
1460 attribute((option(...))) arguments.
1461 (ix86_valid_option_attribute_tree): New function that is common
1462 code between attribute((option(...))) and #pragma GCC option
1463 support that parses the options and returns a tree holding the
1465 (ix86_valid_option_attribute_inner_p): New helper function for
1466 ix86_valid_option_attribute_tree.
1467 (ix86_can_inline_p): New function hook to decide if one function
1468 can inline another on a target specific basis.
1469 (ix86_set_current_function); New function hook to switch target
1470 options if the user used attribute((option(...))) or #pragma GCC
1472 (ix86_tune_defaulted): Move to static file scope from
1474 (ix86_arch_specified): Ditto.
1475 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1477 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1478 (OPTION_MASK_ISA_ABM_SET): Ditto.
1479 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1480 (OPTION_MASK_ISA_CX16_SET): Ditto.
1481 (OPTION_MASK_ISA_SAHF_SET): Ditto.
1482 (OPTION_MASK_ISA_AES_UNSET): Ditto.
1483 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1484 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1485 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1486 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1487 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1488 (struct ptt): Move to static file scope from override_options.
1489 (processor_target_table): Ditto.
1491 (ix86_handle_option): Add support for options that are now isa
1493 (override_options): Add support for declaring functions that
1494 support different target options than were specified on the
1495 command line. Move struct ptt, processor_target_table, cpu_names,
1496 ix86_tune_defaulted, ix86_arch_specified to static file scope.
1497 Add bool argument. Fix up error messages so the appropriate error
1498 is given for either command line or attribute.
1499 (ix86_previous_fndecl): New static to remember previous function
1500 declaration to see if we need to change target options.
1501 (ix86_builtins_isa): New array to record the ISA of each builtin
1503 (def_builtin): Always create the builtin function, even if the
1504 current ISA doesn't support it.
1505 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1506 tests for those builtins.
1507 (ix86_init_builtins): Remove TARGET_MMX test for calling
1508 ix86_init_mmx_sse_builtins.
1509 (ix86_expand_builtin): If the current ISA doesn't support a given
1510 builtin, signal an error.
1511 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1512 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1513 (TARGET_OPTION_SAVE): Ditto.
1514 (TARGET_OPTION_RESTORE): Ditto.
1515 (TARGET_OPTION_PRINT): Ditto.
1516 (TARGET_CAN_INLINE_P): Ditto.
1518 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1520 * c-typeck.c (build_external_ref): Don't call assemble_external.
1521 * final.c (output_operand): Call assemble_external.
1523 2008-07-21 DJ Delorie <dj@redhat.com>
1525 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1526 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1528 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1530 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1531 original insn and splitter contents into ...
1532 ("*div<mode>3_fast"): ... this new pattern. Enable only if
1533 flag_unsafe_math_optimizations. Add dummy scratch register.
1534 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
1535 !flag_unsafe_math_optimizations. Returns number with next
1536 highest magnitude if this is still less or equal to the true
1537 quotient in magnitude.
1539 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
1541 * Makefile.in: Replace toplev.h with TOPLEV_H.
1542 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1543 * c-lex.c (fe_file_change): Don't set in_system_header.
1544 * c-parser.c (c_token): Remove in_system_header.
1545 (c_lex_one_token): Don't set in_system_header.
1546 (c_parser_set_source_position_from_token): Don't set in_system_header.
1547 * diagnostic.c (diagnostic_report_diagnostic): Use location from
1550 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1551 * flags.h (in_system_header): Remove.
1552 * function.c (saved_in_system_header): Remove.
1553 (push_cfun): Don't set in_system_header.
1554 (pop_cfun): Don't set in_system_header.
1555 (push_struct_function): Don't set in_system_header.
1556 * input.h (expanded_location): Add sysp.
1557 (in_system_header_at): New.
1558 (in_system_header): New.
1559 * toplev.c (in_system_header): Remove.
1560 * toplev.h: Include input.h
1562 * tree-cfg.c (execute_warn_function_return): Call warning_at.
1563 * tree-ssa.c (warn_uninit): Call warning_at.
1564 (warn_uninitialized_var): Update calls to warn_uninit.
1565 (warn_uninitialized_phi): Update calls to warn_uninit.
1566 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1567 (expand_location): Initialize xloc.sysp.
1568 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1569 (tree_decl_with_vis): Remove in_system_header_flag.
1571 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1574 * recog.c (asm_operand_ok): Change the order of the extra
1575 memory constraint checks.
1577 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1580 * tree-switch-conversion.c (build_one_array): Call
1581 varpool_mark_needed_node and varpool_finalize_decl
1582 instead of assemble_variable.
1584 2008-07-19 Jan Hubicka <jh@suse.cz>
1586 * cgraph.c (cgraph_add_new_function): Do early local passes.
1587 * tree-nrv.c (gate_pass_return_slot): New gate.
1588 (pass_nrv): Add the gate.
1589 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1591 (coalesce_ssa_name): Coalesce SSA names.
1592 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1593 not optimizing so unused user vars remains visible.
1594 * common.opt (flag_tree_ter): Always enable by default.
1595 * tree-ssa-ter.c: Include flags.h
1596 (is_replaceable_p): Check that locations match; when aliasing is missing
1597 be conservative about loads.
1598 * tree-optimize.c (gate_init_datastructures): Remove.
1599 (pass_init_datastructures): New.
1600 * passes.c: Reorder passes so we always go into SSA.
1602 2008-07-19 Jan Hubicka <jh@suse.cz>
1604 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1605 * doc/invoke.texi (--combine): Likewise.
1606 (-finline-functions-called-once): Update levels when enabled.
1607 (-funit-at-a-time): Document new behaviour.
1608 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1609 -fno-section-anchors when disabled explicitly.
1610 (inline params): They are not ignored now.
1611 (precompiled headers): Remove unit-at-a-time as being incompatible.
1612 * opts.c (decode_options): Handle unit-at-a-time as alias;
1613 imply -fno-section-anchors when toplevel reorder is disabled
1615 * common.opt (ftoplevel-reorder): Set default value to 2.
1616 (funit-at-a-time): Set default value to 1.
1617 * config/rs6000/rs6000.c (optimization_options): Set section anchors
1620 2008-07-19 Jan Hubicka <jh@suse.cz>
1622 * builtins.c (expand_builtin_int_roundingfn,
1623 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1626 2008-07-19 Richard Guenther <rguenther@suse.de>
1629 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1630 * tree-ssa-sccvn.c (get_constant_value_id): New function.
1631 * tree-ssa-pre.c (get_expr_value_id): For newly created
1632 constant value-ids make sure to add the expression to its
1635 2008-07-19 Jakub Jelinek <jakub@redhat.com>
1638 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1639 return value of the builtin is ignored.
1641 2008-07-19 Olivier Hainque <hainque@adacore.com>
1643 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1644 bits, a C conformant malloc implementation has to provide.
1645 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1647 2008-07-19 Joseph Myers <joseph@codesourcery.com>
1651 * reload.c (find_reloads_subreg_address): Only reload address if
1652 reloaded == 0, not for reloaded != 1.
1655 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1656 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1657 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1658 m32c_legitimize_reload_address.
1660 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1661 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1662 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1664 2008-07-19 Olivier Hainque <hainque@adacore.com>
1666 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1667 argument, saying whether nested array are to be collapsed
1668 into a single array type DIE with multiple subscripts.
1669 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1670 issues, centralize the nested array types collapsing control and
1671 disable the transformation for Ada.
1673 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
1676 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1678 (x86_64_shift_adj_2): New expander.
1679 (x86_64_shift_adj_3): Ditto.
1680 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1681 to split TImode operands.
1682 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1683 (ix86_split_lshr): Ditto.
1685 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
1687 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1688 and __CHAR32_TYPE__.
1689 * c-typeck.c (digest_init): Support char16_t and char32_t.
1690 (set_nonincremental_init_from_string): Idem.
1692 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1695 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1696 PREFERRED_STACK_BOUNDARY.
1697 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1699 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1702 * function.c (locate_and_pad_parm): Cap boundary earlier.
1704 2008-07-17 Julian Brown <julian@codesourcery.com>
1706 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1707 no-op for targets which don't use DLLs.
1709 2008-07-17 Martin Jambor <mjambor@suse.cz>
1711 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1712 that nodes are relevant by examining the node->analyzed flag.
1713 (ipcp_init_stage): Check which nodes are relevant, assert that the
1714 relevant ones are also required.
1715 (ipcp_propagate_stage): Check on the side arrays are properly
1717 (ipcp_print_all_jump_functions): Make sure not to touch any node
1718 that is not analyzed or an edge that does not have a corresponding
1719 entry in the on-the-side vectors.
1720 (ipcp_function_scale_print): Likewise.
1721 (ipcp_update_callgraph): Check that the node is relevant.
1722 (ipcp_insert_stage): Check that the node is relevant. Check there is
1723 an info for every node and edge.
1724 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1725 (ipa_print_all_tree_maps): Likewise and a new variable info.
1726 (ipa_print_all_params_modified): Likewise.
1727 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1729 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
1732 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1734 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
1736 PR rtl-optimization/36753
1737 * fwprop.c (use_killed_between): Don't shortcut
1738 single-definition global registers.
1740 2008-07-16 Jan Hubicka <jh@suse.cz>
1742 * cgraph.h (varpool_empty_needed_queue): Declare.
1743 * cgraphunit.c (output_in_order): Mark all variables as needed;
1745 * varpool.c (varpool_assemble_node): Update debug queue.
1746 (varpool_assemble_pending_decls): Don't do it here.
1747 (varpool_empty_needed_queue): New function.
1749 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1751 * recog.c (peephole2_optimize): Fix formatting.
1753 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1755 * c-pch.c (get_ident): Avoid C++ keywords.
1756 * combine-stack-adj.c (single_set_for_csa): Likewise.
1757 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1758 output_asm_insn): Likewise.
1759 * reload.c (push_secondary_reload, find_reusable_reload,
1760 push_reload, combine_reloads, find_reloads,
1761 debug_reload_to_stream): Likewise.
1762 * reload.h (struct reload): Likewise.
1763 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1764 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1765 emit_output_reload_insns): Likewise.
1766 * targhooks.c (default_secondary_reload): Likewise.
1767 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1769 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1771 * recog.c (validate_change_1, validate_change,
1772 validate_unshare_change, validate_replace_rtx_1, struct
1773 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1775 * reload.c (push_secondary_reload, secondary_reload_class,
1776 scratch_reload_class, find_valid_class, find_reusable_reload,
1777 push_reload, find_dummy_reload, find_reloads_address_1,
1778 find_reloads_address_part, find_equiv_reg): Likewise.
1779 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1780 choose_reload_regs): Likewise.
1781 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1783 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1784 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1785 * sched-rgn.c (concat_INSN_LIST): Likewise.
1786 * stor-layout.c (mode_for_size, mode_for_size_tree,
1787 smallest_mode_for_size): Likewise.
1789 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1791 * cfg.c (dump_reg_info): Avoid C++ keywords.
1792 * dwarf2asm.c (dw2_force_const_mem,
1793 dw2_asm_output_encoded_addr_rtx): Likewise.
1794 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1795 * expmed.c (expand_shift): Likewise.
1796 * global.c (find_reg): Likewise.
1797 * graph.c (draw_edge): Likewise.
1798 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1799 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1800 widen_clz, widen_bswap, expand_parity, expand_unop,
1801 emit_cmp_and_jump_insn_1): Likewise.
1802 * postreload.c (reload_cse_simplify_operands): Likewise.
1803 * ra.h (add_neighbor): Likewise.
1804 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1805 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1806 record_reg_classes, copy_cost, record_address_regs,
1807 invalid_mode_change_p): Likewise.
1808 * regrename.c (regrename_optimize, scan_rtx_reg,
1809 dump_def_use_chain, find_oldest_value_reg,
1810 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1812 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1814 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1815 MASK_POWERPC64 for power4 in previous commit.
1817 2008-07-16 Olivier Hainque <hainque@adacore.com>
1819 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1820 instead of bare conversion to cast const-ness away.
1822 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1824 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1825 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1826 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1827 (TARGET_FUNCTION_VALUE): Define.
1829 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1831 * config/rs6000/rs6000.c (processor_target_table): Add
1832 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1834 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1837 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1838 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1839 m32c_legitimize_reload_address.
1841 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1843 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1844 DECL_IN_SYSTEM_HEADER in sync.
1846 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1848 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1849 * tree-ssa-pre.c (pre_expr_eq): Ditto
1850 (get_constant_for_value_id): Take a type as an argument.
1851 (fully_constant_expression): Pass in type.
1852 (find_or_generate_expression): Short circuit constant case.
1853 (create_expression_by_pieces): Remove special casing of
1855 (do_regular_insertion): Short circuit constant case.
1856 (do_partial_partial_insertion): Ditto.
1858 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1861 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1863 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1865 * config/xtensa/libgcc-xtensa.ver: New file.
1866 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1868 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1870 * df-problems.c (df_set_note): Avoid C++ keywords.
1871 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1872 * dse.c (record_store, remove_useless_values): Likewise.
1873 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1874 gen_reg_rtx_offset, operand_subword, change_address_1,
1875 change_address, adjust_address_1, offset_address,
1876 widen_memory_access, emit_copy_of_insn_after): Likewise.
1877 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1878 * fwprop.c (should_replace_address, propagate_rtx_1,
1879 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1881 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1882 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1883 * lcm.c (compute_insert_delete, pre_edge_lcm,
1884 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1885 * lower-subreg.c (resolve_reg_notes): Likewise.
1886 * mode-switching.c (optimize_mode_switching): Likewise.
1888 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1890 * bt-load.c (add_btr_def, migrate_btr_def,
1891 branch_target_load_optimize): Avoid C++ keywords.
1892 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1894 * combine.c (subst, simplify_set, make_extraction,
1895 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1896 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1897 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1899 2008-07-15 Richard Guenther <rguenther@suse.de>
1902 * c-common.c (strict_aliasing_warning): Do not warn for
1903 TYPE_REF_CAN_ALIAS_ALL pointers.
1904 (c_common_get_alias_set): may_alias types are not special.
1905 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1906 attribute and set can_ref_all accordingly.
1907 (build_reference_type_for_mode): Likewise.
1908 * doc/extend.texi (may_alias): Clarify.
1910 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1913 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1914 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1916 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1919 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1920 gcc_assert, instead call output_operand_lossage.
1922 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
1924 * builtins.c (std_canonical_va_list): Treat structure based
1927 2008-07-15 Ben Elliston <bje@au.ibm.com>
1929 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1931 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
1933 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1936 2008-07-14 Jan Hubicka <jh@suse.cz>
1938 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1939 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1940 fix predicates and constraints.
1941 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1942 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1944 2008-07-14 Doug Kwan <dougkwan@google.com>
1946 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1947 additional option file arm/eabi.opt.
1948 * config/arm/eabi.h (File): New configuration file for EABI targets.
1949 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1950 SUBSUBTARGET_EXTRA_SPECS.
1951 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1952 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1953 from STARTFILE_SPEC so that it can be referenced in an override.
1954 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1955 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1956 can be referenced in an override.
1957 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1958 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1959 so that it can be referenced in an override.
1960 (LINK_SPEC): Use BPABI_LINK_SPEC.
1961 * config/arm/eabi.opt (File): New.
1963 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1965 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1966 (FIXED_VALUE_H): New variable.
1967 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1968 input.h, fixed-value.h.
1969 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1970 (BASIC_BLOCK_H): Use $(BITMAP_H).
1971 (FUNCTION_H): Add varray.h.
1972 (IPA_REFERENCE_H): Use $(BITMAP_H).
1973 (CGRAPH_H): Add $(BASIC_BLOCK_H).
1974 (DF_H): Use $(BITMAP_H).
1975 (GGC_H): Add statistics.h.
1977 (INSN_ATTR_H): Use it.
1978 (SYSTEM_H): Add safe-ctype.h, filenames.h.
1980 (SYMTAB_H): Add $(OBSTACK_H).
1981 (CPP_INTERNAL_H): New.
1982 (TREE_DUMP_H): Add tree-pass.h.
1983 (TREE_FLOW_H): Use $(BITMAP_H)
1984 (PRETTY_PRINT_H): Use $(INPUT_H).
1985 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1988 (many object files): Fix lots of header dependencies throughout.
1990 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1992 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1994 (s-gtyp-input): Use them to write tmp-gi.list.
1995 (echo_to_gi.list): Remove.
1997 2008-07-14 Richard Guenther <rguenther@suse.de>
1999 * tree-ssa-sccvn.c (pre_info): Remove.
2000 (switch_to_PRE_table): Likewise.
2001 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
2002 (set_hashtable_value_ids): Do not create value-ids for the
2004 (run_scc_vn): Remove double test. Remove bogus special-case
2005 in value-number printing.
2006 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2007 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2009 * tree-flow-inline.h (get_value_handle): Remove.
2010 * tree-flow.h (get_value_handle): Remove.
2012 2008-07-14 Martin Jambor <mjambor@suse.cz>
2014 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2015 in which we generate arithmetics is not a subrange.
2017 2008-07-14 Martin Jambor <mjambor@suse.cz>
2019 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2021 2008-07-14 Richard Guenther <rguenther@suse.de>
2023 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2025 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
2028 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2029 reload for symbol refs moved to r0 with -fPIC.
2030 (legitimize_pic_address): Use the target register as temporary
2032 (emit_symbolic_move): Adjust comment.
2033 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2036 2008-07-14 Ben Elliston <bje@au.ibm.com>
2038 * c-common.h (C_CPP_HASHNODE): New macro.
2039 * coretypes.h (struct cpp_token): Forward declare.
2040 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2041 the context-sensitive keyword method.
2042 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2043 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2044 expand_bool_pixel): New.
2045 (altivec_categorize_keyword): New function.
2046 (init_vector_keywords): New function.
2047 (rs6000_macro_to_expand): Likewise.
2048 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2049 compiling an ISO C dialect.
2051 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
2053 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2054 (create_expression_by_pieces): Fix typo.
2055 (do_regular_insertion): Use debug counter here too.
2057 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
2060 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2061 CONST_OK_FOR_LETTER_P. All port-local users changed.
2062 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2063 implement Kp matching power-of-two.
2064 (CONSTRAINT_LEN): Define to match.
2065 * config/cris/cris.md: Replace all use of constraint K with Kc.
2066 ("*btst*): Use Kp for operand 0 of last alternative.
2068 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2071 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2074 2008-07-13 Jan Hubicka <jh@suse.cz>
2076 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2079 2008-07-13 Richard Guenther <rguenther@suse.de>
2082 * langhooks.c (lhd_print_error_function): Deal with recursive
2085 2008-07-12 Jan Hubicka <jh@suse.cz>
2087 * cgraph.c (assembler_name_hash): New static var.
2088 (hash_node_by_assembler_name, eq_assembler_name): New.
2089 (cgraph_node_for_asm): Use hashtable.
2090 (cgraph_remove_node): Maintain hashtable.
2091 (change_decl_assembler_name): Sanity check that names are not changing
2092 after aliasing was processed.
2093 * cgraph.h (varpoon_node): Add next GGC marker.
2094 * tree.c (decl_assembler_name_equal): Constify.
2095 (decl_assembler_name_hash): New.
2096 * tree.h (decl_assembler_name_equal): Constify.
2097 (decl_assembler_name_hash): Update.
2099 2008-07-12 David Daney <ddaney@avtrex.com>
2101 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2104 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2106 * doc/md.texi: Document the MIPS "v" constraint.
2107 * config/mips/mips.h (reg_class): Revert last change.
2108 (REG_CLASS_NAMES): Likewise.
2109 (REG_CLASS_CONTENTS): Likewise.
2110 * config/mips/mips.c (mips_regno_to_class): Likewise.
2111 * config/mips/constraints.md (v): Likewise, but add documentation.
2112 Add a comment to say that this constraint should not be used in
2115 2008-07-11 DJ Delorie <dj@redhat.com>
2117 * config/h8300/h8300.md (length): Fix branch offset limit.
2119 2008-07-11 Anatoly Sokolov <aesok@post.ru>
2121 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2122 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2123 (avr_hard_regno_scratch_ok): New function.
2124 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2125 * config/avr/avr.md (all peepholes that request a scratch register):
2126 Remove avr_peep2_scratch_safe use.
2128 2008-07-11 Tom Tromey <tromey@redhat.com>
2129 Ian Lance Taylor <iant@google.com>
2131 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2132 (struct c_common_resword): Define.
2133 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2134 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2135 (c_common_reswords, num_c_common_reswords): Declare.
2136 * c-common.c (c_common_reswords): New global const array.
2137 (num_c_common_reswords): New const int.
2138 * c-parser.c (struct resword, reswords): Don't define.
2139 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2140 (c_parse_init): Clarify mask code. Use c_common_reswords rather
2141 than reswords. If warning about C++ keywords, give them a special
2143 (c_lex_one_token): Warn about C++ keywords. Call
2144 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2145 (c_parser_external_declaration): Look for RID_xxx rather than
2146 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2147 (c_parser_statement_after_labels): Likewise.
2148 (c_parser_objc_class_instance_variables): Likewise.
2149 (c_parser_objc_class_declaration): Likewise.
2150 (c_parser_objc_try_catch_statement): Likewise.
2151 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2152 (declspecs_add_type): Likewise.
2154 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
2156 * ggc-page.c (alloc_page):
2157 Substituting xmalloc, xcalloc with
2158 XNEWVEC and XCNEWVAR macros which add the
2161 2008-07-11 Richard Guenther <rguenther@suse.de>
2163 PR tree-optimization/36765
2164 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2165 aliases from HEAP vars to SMTs.
2167 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2169 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2170 * configure.ac (loose_warn): Move -Wc++-compat from here...
2171 (strict_warn): ...to here.
2172 * configure: Regenerate.
2174 2008-07-10 Joseph Myers <joseph@codesourcery.com>
2176 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2177 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2178 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2179 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2180 excluding more specific h8300-*-* and sh-*-* targets.
2182 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
2184 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2186 (execute_pre): Call loop_optimizer_finalize in early exit.
2188 2008-07-10 Jakub Jelinek <jakub@redhat.com>
2191 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2192 uids in the bitmap, not just VAR_DECL uids.
2194 PR rtl-optimization/36419
2195 * combine-stack-adj.c (adjust_frame_related_expr): New function.
2196 (combine_stack_adjustments_for_block): Call it if needed. Delete
2198 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2199 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2200 prologue sp adjustment.
2202 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
2205 * opts.c (print_ignored_options): Report postponed diagnostics for
2206 unknown -Wno-* options as warnings, not errors.
2207 (postpone_unknown_option_error): Renamed to...
2208 (postpone_unknown_option_warning): ... this.
2210 2008-07-09 Doug Kwan <dougkwan@google.com>
2213 2008-07-08 Doug Kwan <dougkwan@google.com>
2215 * config/arm/arm.opt (mandroid): New option.
2216 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2217 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2219 (CC1PLUS_SPEC): Same.
2221 (STARTFILE_SPEC): Same.
2222 (ENDFILE_SPEC): Same.
2223 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2226 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
2229 * config/mips/mips.h (reg_class): Remove V1_REG.
2230 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2231 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2233 (mips_get_tp): New function.
2234 (mips_legitimize_tls_address): Use it.
2235 * config/mips/constraints.md (v): Delete.
2236 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2237 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2238 After reload, split into a move and ...
2239 (*tls_get_tp_<mode>_split): ...this new instruction.
2241 2008-07-09 David Daney <ddaney@avtrex.com>
2243 * config/mips/driver-native.c: Include coretypes.h and tm.h.
2245 2008-07-09 Jakub Jelinek <jakub@redhat.com>
2247 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2248 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2250 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2251 htab_delete should be called. Don't free c.
2252 (lookup_tmp_var): Create temp_htab lazily.
2253 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2254 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2256 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2257 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2258 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2259 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2260 * tree-sra.c (generate_element_init): Likewise.
2261 * tree-mudflap.c (execute_mudflap_function_ops,
2262 execute_mudflap_function_decls): Likewise.
2263 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2264 * tree-gimple.h (struct gimplify_ctx): New type.
2265 (push_gimplify_context): Adjust prototype.
2267 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
2269 * tree-ssa-pre.c (phi_translate_1): Update placement of
2272 2008-07-09 Anatoly Sokolov <aesok@post.ru>
2274 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2275 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2276 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2277 * targhooks.c (default_hard_regno_scratch_ok): New function.
2278 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2279 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2280 * recog.c: Include "target.h".
2281 (peep2_find_free_register): Add check for global regs. Add target
2283 * Makefile.in (recog.o): Depend on target.h.
2285 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
2287 * config/sh/sh.c (sh_canonical_va_list_type): New.
2288 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2290 2008-07-09 Raksit Ashok <raksit@google.com>
2292 * doc/invoke.texi (Option Summary): Mention new option
2293 -Wdisallowed-function-list=...
2294 (Warning Options): Document -Wdisallowed-function-list=...
2295 * common.opt (Wdisallowed-function-list=): New flag.
2296 * flags.h (warn_disallowed_functions): External definition of new
2297 boolean warning flag.
2298 (warn_if_disallowed_function_p): Declare new function.
2299 * opts.c (warning_disallowed_functions): New static variable.
2300 (warn_disallowed_functions): New boolean warning flag.
2301 (warn_if_disallowed_function_p): New function.
2302 (add_comma_separated_to_vector): Rename
2303 add_instrument_functions_exclude_list to this.
2304 (common_handle_option): Handle new option. Rename calls to
2305 add_instrument_functions_exclude_list into calls to
2306 add_comma_separated_to_vector.
2307 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2308 based on flag warn_disallowed_functions.
2310 2008-07-09 Christian Bruel <christian.bruel@st.com>
2312 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2313 instead of get_attr_length.
2315 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2317 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2319 * genemit.c (gen_insn): Likewise.
2320 * gengtype.c (note_def_vec): Likewise.
2321 * gengtype.h (note_def_vec): Likewise.
2322 * genoutput.c (struct data, output_insn_data, process_template,
2323 gen_expand, gen_split, note_constraint): Likewise.
2324 * genrecog.c (new_decision, add_to_sequence, factor_tests,
2325 make_insn_sequence): Likewise.
2326 * gensupport.c (record_insn_name): Likewise.
2328 2008-07-08 Doug Kwan <dougkwan@google.com>
2330 * config/arm/arm.opt (mandroid): New option.
2331 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2332 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2334 (CC1PLUS_SPEC): Same.
2336 (STARTFILE_SPEC): Same.
2337 (ENDFILE_SPEC): Same.
2338 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2341 2008-07-08 Raksit Ashok <raksit@google.com>
2343 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2344 (set_storage_via_setmem): Fix expected_align parameter.
2345 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2346 missing from the list.
2347 * doc/md.texi (movmem): Explicitly state that expected alignment is
2348 to be expressed in bytes.
2349 (setmem): Explicitly state that expected alignment is to be expressed
2352 2008-07-08 Joseph Myers <joseph@codesourcery.com>
2354 * reload.c (find_reloads_subreg_address): Do not require validity
2355 of address in original mode before reloading address.
2357 2008-07-07 Tianwei Sheng <tianweis@google.com>
2359 * df-core.c (df_remove_problem): Adjust the access to avoid out of
2360 bounds array access.
2362 2008-07-08 Jakub Jelinek <jakub@redhat.com>
2364 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2366 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
2368 Fix PR tree-optimization/23455
2369 Fix PR tree-optimization/35286
2370 Fix PR tree-optimization/35287
2371 * Makefile.in (OBJS-common): Remove tree-vn.o.
2372 (tree-vn.o): Remove.
2373 * dbgcnt.def: Add treepre_insert debug counter.
2374 * gcc/tree-flow.h (add_to_value): Updated for other changes.
2375 (debug_value_expressions): Ditto.
2376 (print_value_expressions): Ditto.
2377 * tree-pretty-print.c (dump_generic_node): Updated for
2378 VALUE_HANDLE removal.
2379 * tree-ssa-dom.c (record_equality): Ditto.
2380 (cprop_operand): Ditto.
2381 (lookup_avail_expr): Ditto.
2382 * tree-ssa-threadedge.c
2383 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2384 (simplify_control_stmt_condition): Ditto.
2385 * tree.c (tree_code_size): Ditto.
2386 (tree_node_structure): Ditto.
2387 (iterative_hash_expr): Ditto.
2389 * tree.h (VALUE_HANDLE_ID): Ditto.
2390 (VALUE_HANDLE_EXPR_SET): Ditto.
2391 (struct tree_value_handle): Ditto.
2392 (union tree_node): Ditto.
2393 * treestruct.def: Ditto.
2394 * tree-vn.c: Removed.
2395 * tree-ssa-pre.c: Rewritten entirely.
2396 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2397 (constant_value_ids): Ditto.
2398 (vn_nary_op_t): Moved to header.
2400 (vn_reference_op_t): Ditto
2401 (vn_reference_t): Ditto.
2402 (next_value_id): New variable.
2403 (VN_INFO): Add an assert.
2404 (vn_constant_eq): New function.
2405 (vn_constant_hash): Ditto.
2406 (get_or_alloc_constant_value_id): Ditto.
2407 (value_id_constant_p): Ditto.
2408 (vn_reference_compute_hash): De-staticify.
2409 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2410 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2411 (valueize_refs): Update opcode if it changes from ssa name to constant.
2412 (vn_reference_lookup_1): Add new argument.
2413 (vn_reference_lookup): Ditto.
2414 (vn_reference_lookup_pieces): New function.
2415 (vn_reference_insert): Add return type. Modify to deal with value ids.
2416 (vn_reference_insert_pieces): New function.
2417 (vn_nary_op_compute_hash): De-staticify.
2418 (vn_nary_op_eq): Ditto.
2419 (vn_nary_op_lookup_pieces): New function.
2420 (vn_nary_op_lookup): Add new argument.
2421 (vn_nary_op_insert_pieces): New function.
2422 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2423 (vn_phi_insert): Ditto.
2424 (visit_unary_op): Update for callee changes.
2425 (visit_binary_op): Ditto.
2426 (visit_reference_op_load): Ditto.
2427 (visit_reference_op_store): Ditto.
2428 (init_scc_vn): Init next_value_id, constant_to_value_id and
2430 (free_scc_vn): Free them.
2431 (set_hashtable_value_ids): New function.
2432 (run_scc_vn): Use it.
2433 (get_max_value_id): New function.
2434 (get_next_value_id): Ditto.
2435 (expressions_equal_p): Moved from tree-vn.c
2436 (sort_vuses): Ditto.
2437 (sort_vuses_heap): Ditto.
2438 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2440 * tree.c (iterative_hash_hashval_t): Made non-static
2441 * tree.h (iterative_hash_hashval_t): Declare it.
2443 2008-07-08 Martin Jambor <mjambor@suse.cz>
2445 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2446 instead of ipa_create_node_params.
2447 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2448 ipa_check_create_edge_args, free them with
2449 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2451 * ipa-prop.c: Include flags.h and tree-inline.h.
2452 (ipa_node_params_vector): New variable.
2453 (ipa_edge_args_vector): New variable.
2454 (edge_removal_hook_holder): New variable.
2455 (node_removal_hook_holder): New variable.
2456 (edge_duplication_hook_holder): New variable.
2457 (node_duplication_hook_holder): New variable.
2458 (ipa_detect_param_modifications): Check for presence of modified flags.
2459 (ipa_compute_jump_functions): Check for presence of jump functions.
2460 (ipa_free_edge_args_substructures): New function.
2461 (ipa_create_node_params): Removed.
2462 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2463 (ipa_free_node_params_substructures): New function.
2464 (ipa_free_all_node_params): Changed to deallocate the on-the-side
2466 (ipa_edge_removal_hook): New function.
2467 (ipa_node_removal_hook): New function.
2468 (duplicate_array): New function.
2469 (ipa_edge_duplication_hook): New function.
2470 (ipa_node_duplication_hook): New function.
2471 (ipa_register_cgraph_hooks): New function.
2472 (ipa_unregister_cgraph_hooks): New function.
2473 (free_all_ipa_structures_after_ipa_cp): New function.
2475 * ipa-prop.h: Include vec.h.
2476 (ipa_node_params_t): New typedef with vector types for it.
2477 (ipa_edge_args_t): New typedef with vector types for it.
2478 (IPA_NODE_REF): Changed to access an on-the-side vector.
2479 (IPA_EDGE_REF): Changed to access an on-the-side vector.
2480 (ipa_check_create_node_params): New function.
2481 (ipa_check_create_edge_args): New function.
2483 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
2486 2008-07-07 Tom Tromey <tromey@redhat.com>
2488 * configure, config.in: Rebuilt.
2489 * configure.ac: Don't check for scandir or alphasort.
2491 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2493 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2494 types immediately after creating them.
2496 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2498 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2500 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
2502 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2503 dump_constraint_graph.
2504 (dump_constraint_edge): New function.
2505 (dump_constraint_graph): New function.
2506 (debug_constraint_graph): New function.
2507 (dump_constraint): Removed useless comparison.
2508 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2509 (dump_constraint_graph): Declare.
2510 (debug_constraint_graph): Declare.
2511 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2513 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
2515 * config/i386/i386.c (is_va_list_char_pointer): New.
2516 (ix86_va_start): Replace compare with ms_va_list_type_node
2517 by is_va_list_char_pointer.
2518 (ix86_gimplify_va_arg): Likewise.
2520 2008-07-07 Martin Jambor <mjambor@suse.cz>
2522 * cgraph.c (cgraph_edge_max_uid): New variable.
2523 (struct cgraph_edge_hook_list): New type.
2524 (struct cgraph_node_hook_list): New type.
2525 (struct cgraph_2edge_hook_list): New type.
2526 (struct cgraph_2node_hook_list): New type.
2527 (first_cgraph_edge_removal_hook): New variable.
2528 (first_cgraph_node_removal_hook): New variable.
2529 (first_cgraph_edge_duplicated_hook): New variable.
2530 (first_cgraph_node_duplicated_hook): New variable.
2531 (cgraph_add_edge_removal_hook): New function.
2532 (cgraph_remove_edge_removal_hook): New function.
2533 (cgraph_call_edge_removal_hooks): New function.
2534 (cgraph_add_node_removal_hook): New function.
2535 (cgraph_remove_node_removal_hook): New function.
2536 (cgraph_call_node_removal_hooks): New function.
2537 (cgraph_add_edge_duplication_hook): New function.
2538 (cgraph_remove_edge_duplication_hook): New function.
2539 (cgraph_call_edge_duplication_hooks): New function.
2540 (cgraph_add_node_duplication_hook): New function.
2541 (cgraph_remove_node_duplication_hook): New function.
2542 (cgraph_call_node_duplication_hooks): New function.
2543 (cgraph_create_edge): Assign to edge uid.
2544 (cgraph_remove_edge): Call edge removal hooks.
2545 (cgraph_node_remove_callees): Call edge removal hooks.
2546 (cgraph_node_remove_callers): Call edge removal hooks.
2547 (cgraph_remove_node): Call node removal hooks.
2548 (cgraph_clone_edge): Call edge duplication hooks.
2549 (cgraph_clone_node): Call node duplication hooks.
2551 * cgraph.h (cgraph_edge): New field uid.
2552 (cgraph_edge_hook): New type.
2553 (cgraph_node_hook): New type.
2554 (cgraph_2edge_hook): New type.
2555 (cgraph_2node_hook): New type.
2557 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
2559 * config.in: Regenerate.
2561 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
2563 * gcc.c (print_sysroot): New.
2564 (option_map, display_help, process_command): Handle the
2565 -print-sysroot option.
2566 (main): Print the sysroot if requested.
2567 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2569 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2572 * unwind-pe.h (size_of_encoded_value): add attribute unused.
2574 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
2576 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2577 (assign_parm_setup_block_p): Also check mode of entry_parm.
2579 2008-07-07 Richard Guenther <rguenther@suse.de>
2581 * tree-ssa-structalias.h (set_used_smts): Remove.
2582 * tree-ssa-structalias.c (used_smts): Likewise.
2583 (set_used_smts): Likewise.
2584 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2585 call to set_used_smts.
2587 2008-07-07 Richard Guenther <rguenther@suse.de>
2589 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2590 (new_var_info): Set it to false.
2591 (solution_set_add): Correctly handle pointers outside a var and
2593 (type_safe): Treat variables with is_full_var properly.
2594 (do_sd_constraint): Likewise.
2595 (do_ds_constraint): Likewise.
2596 (process_constraint): Remove zeroing offset for !use_field_sensitive.
2597 (get_constraint_for_ptr_offset): New function.
2598 (get_constraint_for_component_ref): For addresses at least include
2599 the last field of the variable. Handle is_full_vars properly.
2600 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2601 (handle_ptr_arith): Remove.
2602 (find_func_aliases): Simplify assignment handling.
2603 (create_function_info_for): For parameter and result varinfos set
2605 (create_variable_info_for): Set is_full_var flag whenever we
2606 just created a single varinfo for a decl.
2607 (init_alias_vars): Initialize use_field_sensitive from
2608 max-fields-for-field-sensitive parameter.
2610 2008-07-07 Richard Guenther <rguenther@suse.de>
2612 PR tree-optimization/36713
2613 * tree-flow-inline.h (is_call_used): New function.
2614 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2615 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2616 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2618 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2620 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2622 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
2624 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2626 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2627 Nathan Sidwell <nathan@codesourcery.com>
2629 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
2630 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2632 * config/m68k/t-linux: New.
2633 * doc/install.texi: Document m68k-*-linux is now multilibbed by
2636 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
2638 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2639 * config/m68k/m68k-devices.def: Remove multilibs that only differ
2642 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2644 * gcc.c (execute): Fix -Wc++-compat warning.
2646 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
2649 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2650 constant for little endian.
2652 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
2654 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2655 mips_base_mips16 instead of TARGET_MIPS16.
2656 (mips_base_mips16): Declare.
2657 * config/mips/mips.c (mips_base_mips16): Make global.
2658 (was_mips16_p): Remove GTY marker.
2659 (was_mips16_pch_p): New variable.
2660 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2661 (mips_override_options): Force to non-MIPS16 mode initially.
2662 Do not complain about MIPS16 PIC incompatibilities here.
2663 Only allow -mgpopt if -mexplicit-relocs is in force for
2666 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
2668 * configure.ac: Check for caddr_t, define to char * if not defined.
2669 * configure: Regenerate.
2670 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2671 (mmap_gt_pch_use_address): Likewise.
2672 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2674 2008-07-06 Richard Guenther <rguenther@suse.de>
2676 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2677 (new_var_info): Deal with it.
2678 (solution_set_add): Likewise.
2679 (bitpos_of_field): Make signed, fix.
2680 (struct fieldoff): Remove type and decl fields. Make size field
2681 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
2683 (fieldoff_compare): Deal with it.
2684 (push_fields_onto_fieldstack): Remove has_union argument, glob
2685 adjacent non-pointer fields together.
2686 (create_function_info_for): Do not set has_union.
2687 (create_variable_info_for): Simplify.
2689 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
2691 * config.gcc (extra_headers): Add cross-stdarg.h for target
2692 x86_64-*-* and i?86-*-*.
2693 * config/i386/cross-stdarg.h: New.
2694 * builtins.c (std_fn_abi_va_list): New.
2695 (std_canonical_va_list_type): New.
2696 (stabilize_va_list): Replace va_list_type_node use by
2697 mtarget.canonical_va_list_type.
2698 (gimplify_va_arg_expr): Likewise.
2699 (expand_builtin_va_copy): Replace va_list_type_node use by
2700 mtarget.fn_abi_va_list.
2701 * tree-sra.c (is_va_list_type): New helper.
2702 (decl_can_be_decomposed_p): Replace
2703 va_list_type_node use by is_va_list_type.
2704 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2705 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2706 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2707 * config/i386/i386-protos.h (ix86_get_valist_type): New.
2708 (ix86_enum_va_list): New.
2709 * config/i386/i386.c (sysv_va_list_type_node): New.
2710 (ms_va_list_type_node): New.
2711 (ix86_function_type_abi): Remove sorry.
2712 (ix86_build_builtin_va_list_abi): New.
2713 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2715 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2716 (ix86_init_builtins_va_builtins_abi): New.
2717 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2719 (ix86_handle_abi_attribute): New.
2720 (attribute_spec): Add sysv_abi and ms_abi.
2721 (ix86_fn_abi_va_list): New.
2722 (ix86_canonical_va_list_type): New.
2723 (ix86_enum_va_list): New.
2724 (TARGET_FN_ABI_VA_LIST): New.
2725 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2726 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2727 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2728 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2729 (TARGET_ENUM_VA_LIST): New.
2730 * expr.h (std_fn_abi_va_list): New.
2731 (std_canonical_va_list_type): New.
2732 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2733 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2734 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2735 TARGET_CANONICAL_VA_LIST_TYPE.
2736 * target.h (struct gcc_target): Add fn_abi_va_list hook
2737 and canonical_va_list_type hook.
2739 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2741 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2742 integral and pointer types.
2744 2008-07-04 Roger Sayle <roger@eyesopen.com>
2746 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2747 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2749 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2752 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2754 2008-07-04 Jakub Jelinek <jakub@redhat.com>
2756 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2757 build_gimple_modify_stmt.
2758 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
2759 gimple operand. Use fold_build* instead of build*.
2761 2008-07-04 Richard Guenther <rguenther@suse.de>
2763 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2764 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2765 properly to compute the reachability set if we do field-sensitive PTA.
2766 * invoke.texi (max-fields-for-field-sensitive): Document default.
2767 * opts.c (decode_options): Set max-fields-for-field-sensitive to
2768 100 for optimize >= 2.
2770 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2772 * ggc-zone.c (lookup_page_table_if_allocated,
2773 set_page_table_entry, zone_find_object_size, alloc_small_page,
2774 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2775 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2776 -Wc++-compat and/or -Wcast-qual warnings.
2778 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2781 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2782 pic_offset_table_rtx to be marked as used here.
2783 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2784 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2785 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2786 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2789 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2791 * alloc-pool.c (hash_descriptor, eq_descriptor,
2792 alloc_pool_descriptor): Fix -Wc++-compat warnings.
2793 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2795 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2796 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2797 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2798 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2801 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
2803 * tree-flow.h (loop_only_exit_p): Declare.
2804 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2805 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2806 the number of iterations if it is constant. Otherwise, if this is the
2807 only possible exit of the loop, use the conservative estimate on the
2808 number of iterations of the entire loop if available.
2810 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
2812 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2813 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2814 Add synchronization functions.
2815 * config/sync.c: New file.
2816 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2817 (LIBGCC_SYNC_CFLAGS): Likewise.
2819 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
2822 * config/i386/i386.md (mode): Add TF to "mode" attribute.
2823 (*pushtf_sse): New insn pattern.
2824 (pushtf splitters): New splitters.
2826 2008-07-03 Michael Meissner <gnu@the-meissners.org>
2829 * predict.c (build_predict_expr): Use void_type_node for the tree
2830 type, instead of NULL_TREE.
2832 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
2834 * config/i386/i386.c (contains_aligned_value_p): Return true
2836 (ix86_data_alignment): Align TCmode to 128bits.
2837 (ix86_local_alignment): Likewise.
2839 2008-07-03 Andrew Haley <aph@redhat.com>
2842 * vec.h (VEC_TA): New.
2843 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2844 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2845 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2846 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2847 (C_COMMON_FIXED_TYPES): Remove first arg.
2848 (C_COMMON_FIXED_MODE_TYPES): Likewise.
2849 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2850 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2851 not to use empty macro arguments.
2853 2008-07-02 Joseph Myers <joseph@codesourcery.com>
2855 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2856 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2857 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2858 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2859 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2860 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2861 config/ia64/crtn.asm, config/m68hc11/larith.asm,
2862 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2863 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2864 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2865 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2866 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2867 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2868 config/rs6000/e500crtres64gpr.asm,
2869 config/rs6000/e500crtres64gprctr.asm,
2870 config/rs6000/e500crtrest32gpr.asm,
2871 config/rs6000/e500crtrest64gpr.asm,
2872 config/rs6000/e500crtresx32gpr.asm,
2873 config/rs6000/e500crtresx64gpr.asm,
2874 config/rs6000/e500crtsav32gpr.asm,
2875 config/rs6000/e500crtsav64gpr.asm,
2876 config/rs6000/e500crtsav64gprctr.asm,
2877 config/rs6000/e500crtsavg32gpr.asm,
2878 config/rs6000/e500crtsavg64gpr.asm,
2879 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2880 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2881 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2882 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2883 config/sparc/sol2-cn.asm: Remove .file directives.
2885 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
2887 * resource.c (mark_referenced_resources): Look inside
2888 UNSPEC_VOLATILEs and ASM_INPUTs.
2890 2008-07-02 Ian Lance Taylor <iant@google.com>
2892 * rtlanal.c (add_reg_note): New function.
2893 * rtl.h (add_reg_note): Declare.
2894 * auto-inc-dec.c (attempt_change): Use add_reg_note.
2895 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2896 * builtins.c (expand_builtin_longjmp): Likewise.
2897 (expand_builtin_nonlocal_goto): Likewise.
2898 * calls.c (emit_call_1, expand_call): Likewise.
2899 * cfgexpand.c (add_reg_br_prob_note): Likewise.
2900 * cfglayout.c (fixup_reorder_chain): Likewise.
2901 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2902 (commit_one_edge_insertion): Likewise.
2903 * combine.c (move_deaths, distribute_notes): Likewise.
2904 * df-problems.c (df_set_note): Likewise.
2905 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2906 (set_unique_reg_note): Likewise.
2907 (emit_copy_of_insn_after): Likewise.
2908 * expr.c (expand_expr_real): Likewise.
2909 * gcse.c (add_label_notes): Likewise.
2910 * haifa-sched.c (create_check_block_twin): Likewise.
2911 * jump.c (mark_jump_label_1): Likewise.
2912 * loop-doloop.c (add_test, doloop_modify): Likewise.
2913 * loop-unswitch.c (compare_and_jump_seq): Likewise.
2914 * lower-subreg.c (move_eh_region_note): Likewise.
2915 * optabs.c (emit_libcall_block): Likewise.
2916 * predict.c (predict_insn): Likewise.
2917 (combine_predictions_for_insn): Likewise.
2918 * recog.c (peephole2_optimize): Likewise.
2919 * regmove.c (try_auto_increment): Likewise.
2920 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2921 * reload.c (find_reloads): Likewise.
2922 * reload1.c (fixup_eh_region_note): Likewise.
2923 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2924 * reorg.c (delete_prior_computation): Likewise.
2925 (delete_computation, dbr_schedule): Likewise.
2926 * config/pa/pa.c (legitimize_pic_address): Likewise.
2927 * config/sh/sh.c (sh_reorg): Likewise.
2929 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2932 * config/libgcc-glibc.ver: Add %exclude.
2933 * config/m32r/libgcc-glibc.ver: Likwise.
2934 * config/s390/libgcc-glibc.ver: Likwise.
2935 * config/sh/libgcc-glibc.ver: Likwise.
2936 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2938 * config/i386/libgcc-glibc.ver: New.
2940 * config/i386/libgcc-x86_64-glibc.ver: Removed.
2942 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
2944 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2945 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2946 i[34567]86-*-linux*, x86_64-*-linux*. Add
2947 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2948 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2949 x86_64-*-linux*. Add i386/t-linux to tmake_file for
2950 i[34567]86-*-linux*, x86_64-*-linux*.
2952 * libgcc-std.ver: Add empty GCC_4.4.0.
2954 * mkmap-symver.awk: Support multiple versions per symbol.
2956 * config/i386/i386.c (ix86_init_builtins): Always define
2957 __builtin_fabsq and __builtin_copysignq with fallbacks.
2958 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2959 and __builtin_copysignq if SSE2 isn't available.
2961 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2962 (LIBGCC2_TF_CEXT): Likwise.
2965 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2967 * config/i386/sfp-machine.h: Moved to libgcc.
2969 * config/i386/sfp-machine.h: New.
2970 * config/i386/t-linux: Likwise.
2972 * config/i386/t-darwin: Remove softfp_wrap_start and
2974 * config/i386/t-darwin64: Likewise.
2976 * config/i386/t-fprules-softfp64: Renamed to ...
2977 * config/i386/t-fprules-softfp: This.
2979 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2980 and softfp_wrap_end.
2982 2008-07-02 Jason Merrill <jason@redhat.com>
2984 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2986 * tree.c (ctor_to_list): New fn.
2987 * tree.h: Declare it.
2988 (CONSTRUCTOR_ELT): New macro.
2989 (CONSTRUCTOR_NELTS): New macro.
2991 2008-07-02 Richard Guenther <rguenther@suse.de>
2993 * tree-ssa-structalias.c (struct variable_info): Reorder
2994 to fill padding on 64bit hosts. Make collapsed_to an int.
2995 (get_varinfo_fc): Deal with that.
2996 (new_var_info): Likewise.
2997 (collapse_rest_of_var): Likewise.
2999 2008-07-02 Joshua Sumali <jsumali@redhat.com>
3001 * doc/install.texi (--enable-java-home): Document.
3002 (--enable-aot-compile-rpm): Likewise.
3003 (--with-arch-directory): Likewise.
3004 (--with-os-directory): Likewise.
3005 (--with-origin-name): Likewise.
3006 (--with-arch-suffix): Likewise.
3007 (--with-jvm-root-dir): Likewise.
3008 (--with-jvm-jar-dir): Likewise.
3009 (--with-python-dir): Likewise.
3011 2008-07-02 Richard Guenther <rguenther@suse.de>
3013 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3014 from decls explicitly. Merge operand checking from tuples.
3016 2008-07-02 Martin Jambor <mjambor@suse.cz>
3018 * tree-switch-conversion.c: Included timevar.h which I forgot before.
3020 2008-07-02 Martin Jambor <mjambor@suse.cz>
3022 * tree-switch-conversion.c: Included timevar.h
3023 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3025 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3027 2008-07-02 Martin Jambor <mjambor@suse.cz>
3029 * tree-switch-conversion.c: Corrected various comments and
3031 (build_constructors): Fixed minor formatting mistakes.
3033 * invoke.texi (Optimize Options): Corrected the
3034 switch-conversion-max-branch-ratio parameter.
3036 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
3038 * final.c (asm_insn_count): Return zero for an empty asm body.
3040 2008-07-02 Richard Guenther <rguenther@suse.de>
3042 * bitmap.h (bitmap_set_bit): Return bool.
3043 (bitmap_clear_bit): Likewise.
3044 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
3045 write to the bitmap if it would.
3046 (bitmap_clear_bit): Likewise.
3047 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3048 bitmap_set_bit return value.
3049 (add_pred_graph_edge): Likewise.
3050 (add_graph_edge): Likewise.
3051 (do_sd_constraint): Likewise.
3052 (do_ds_constraint): Likewise.
3054 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3056 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3057 Fix -Wc++-compat and/or -Wcast-qual warnings.
3058 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3059 gen_regparm_prefix): Likewise.
3060 * vmsdbgout.c (write_modbeg, lookup_filename,
3061 vmsdbgout_source_line, vmsdbgout_init): Likewise.
3063 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3065 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3066 defaults.h definition apply.
3068 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3070 * function.c (assign_parm_remove_parallels): New.
3071 (assign_parm_setup_block_p): Do not return true for non-BLKmode
3073 (assign_parm_setup_block): Do not handle them.
3074 (assign_parm_setup_reg, assign_parm_setup_stack): Call
3075 assign_parm_remove_parallels.
3077 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3079 * c-typeck.c (convert_for_assignment): Use
3080 vector_targets_convertible_p.
3081 * c-common.c (vector_targets_convertible_p): New.
3082 * c-common.h (vector_targets_convertible_p): New prototype.
3083 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3084 opaque_p_V2SI_type_node.
3086 2008-07-01 Steve Ellcey <sje@cup.hp.com>
3088 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3091 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
3093 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3094 TFmode constants via two element DImode vector for hosts with
3095 HOST_BITS_PER_WIDE_INT < 64.
3096 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3097 also for HOST_BITS_PER_WIDE_INT < 64.
3099 2008-07-01 Richard Guenther <rguenther@suse.de>
3101 PR tree-optimization/36666
3102 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3103 (get_constraint_exp_from_ssa_var): Split into ...
3104 (get_constraint_exp_for_temp): ... this ...
3105 (get_constraint_for_ssa_var): ... and that.
3106 Return constraint expressions for all touched sub-fields
3107 if the results address is not taken.
3108 (process_constraint): Remove assertion that aggregate
3109 assignments do not happen at this place.
3110 (get_constraint_for_component_ref): Add address_p argument.
3111 Return constraint expressions for all touched sub-fields
3112 if the results address is not taken.
3113 (do_deref): Use get_constraint_exp_for_temp.
3114 (get_constraint_for_1): Rename from ...
3115 (get_constraint_for): ... this. Add the old function as wrapper.
3116 (do_structure_copy): Use get_constraint_for_1.
3118 2008-07-01 Martin Jambor <mjambor@suse.cz>
3120 * Makefile.in (tree-switch-conversion.o): Add.
3121 (OBJS-common): Add tree-swtch-conversion.o.
3122 * passes.c (init_optimization_passes): Add pass_convert_switch.
3123 * tree-pass.h: (pass_convert_switch): Add.
3124 * tree-switch-conversion.c: New file.
3125 * gcc.dg/tree-ssa/cswtch.c: New testcase.
3126 * common.opt (ftree-cswtch): New option.
3127 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3128 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3129 * opts.c (decode_options): Set flag_tree_switch_conversion when
3130 optimization level is >= 2.
3131 * doc/invoke.texi (Optimize Options): Added description of
3132 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3134 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3136 * config/darwin-driver.c (darwin_default_min_version): Fix
3137 -Wc++-compat warnings.
3139 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
3141 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3144 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3146 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3148 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3150 PR rtl-optimization/34744
3151 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3152 (df_scan_free_internal): Free data structures not
3153 allocated in storage pools.
3154 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3155 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3156 df_scan_free_mws_vec.
3157 * dse.c (dse_step6): Free offset_map_p and offset_map_n
3160 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
3162 * config/i386/i386.c (contains_aligned_value_p): Return true
3164 (ix86_function_arg_boundary): Return its natural boundary
3166 (return_in_memory_32): Don't check TDmode.
3167 (ix86_split_to_parts): Support splitting into 4 parts and
3168 support TFmode for 32bit target.
3169 (ix86_split_long_move): Support splitting into 4 parts.
3170 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3172 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3173 (ix86_init_builtins): Here.
3174 (ix86_scalar_mode_supported_p): Always return true for TFmode.
3175 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3176 'q' and 'w', respectively.
3178 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3180 (movtf_internal): Likewise.
3181 (<code>tf2): Likewise.
3182 (*absnegtf2_sse): Likewise.
3183 (copysign<mode>3): Likewise.
3184 (copysign<mode>3_const): Likewise.
3185 (copysign<mode>3_var): Likewise.
3186 (define_split UNSPEC_COPYSIGN): Likewise.
3187 * config/i386/sse.md (*nandtf3): Likewise.
3188 (<code>tf3): Likewise.
3189 (*<code>tf3): Likewise.
3191 2008-06-30 Joey Ye <joey.ye@intel.com>
3192 H.J. Lu <hongjiu.lu@intel.com>
3194 * global.c (compute_regsets): Set frame_pointer_needed here.
3195 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3197 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3199 * doc/install.texi (specific): Expand Windows build notes.
3201 2008-06-30 Ira Rosen <irar@il.ibm.com>
3203 PR tree-optimization/36648
3204 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3205 number of prolog iterations by step. Fix the comment.
3207 2008-06-30 Richard Guenther <rguenther@suse.de>
3210 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3211 handle calls from ECF_MALLOC functions.
3212 (handle_pure_call): ECF_MALLOC functions do not return
3214 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3216 2008-06-29 Andreas Schwab <schwab@suse.de>
3218 * config/m68k/m68k.c (print_operand): Always print a float
3220 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3221 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3224 * config/rs6000/x-linux64: Remove never used file.
3226 2008-06-29 Richard Guenther <rguenther@suse.de>
3228 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3230 (struct alias_info): Move ...
3231 * tree-ssa-alias.c: ... here.
3232 (update_alias_info): Declare.
3233 (compute_may_aliases): Call it.
3234 (update_alias_info): New function.
3235 * tree-ssa-structalias.c (update_alias_info): Move ...
3236 * tree-ssa-alias.c (update_alias_info_1): ... here.
3237 * tree-ssa-structalias.c (process_constraint_1): Remove
3238 unused from_call argument. Rename to ...
3239 (process_constraint): ... this. Delete old wrapper.
3240 (make_constraint_to): Adjust callers.
3241 (handle_const_call): Likewise.
3242 (handle_pure_call): Likewise.
3243 (init_base_vars): Likewise.
3244 (handle_lhs_call): Likewise. Remove unnecessary constraint.
3245 (find_func_aliases): We don't need structure copies for
3247 (make_constraint_from_anything): Remove.
3248 (create_variable_info_for): For globals make constraints
3249 from escaped, not from anything.
3250 (compute_points_to_sets): Do not call update_alias_info.
3251 (ipa_pta_execute): Use make_constraint_from.
3253 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3255 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3256 (bitmap.o-warn, dominance.o-warn): New.
3257 * configure.ac (cxx_compat_warn): Delete.
3258 (loose_warn): Add -Wcast-qual and -Wc++-compat.
3259 * system.h: Remove #pragma diagnostic for -Wcast-qual and
3261 * configure: Regenerate.
3263 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3266 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3268 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3269 * df-scan.c (df_notes_rescan): Likewise.
3270 * ggc-page.c (set_page_table_entry): Likewise.
3271 * intl.c (gcc_gettext_width): Likewise.
3272 * varasm.c (get_unnamed_section, get_noswitch_section,
3273 get_section): Likewise.
3275 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
3277 * regrename.c (build_def_use): Don't copy RTX.
3279 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
3281 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3282 (Type Attributes): Fix nesting of @table and @subsection. Adjust
3283 punctuation. Use @ref instead of @xref.
3284 (Function Names): Remove stray @display/@end display.
3285 (C++ Attributes): Use @ref instead of @xref.
3286 (Deprecated Features): Fix punctuation around @xref.
3287 (Backwards Compatibility): Likewise.
3288 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3290 2008-06-28 Joseph Myers <joseph@codesourcery.com>
3292 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3293 constants for E500 double.
3295 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3297 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3298 element type of const_vector.
3300 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
3302 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3303 Remove FLAGS_REG clobber from expander pattern.
3304 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3305 (anddi3, andsi3, andhi3, andqi3): Ditto.
3306 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3307 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3308 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3309 (ashlsi3, ashlhi3, ashlqi3): Ditto.
3310 (ashrsi3, ashrhi3, ashrqi3): Ditto.
3311 (lshrsi3, lshrhi3, lshrqi3): Ditto.
3312 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3313 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3315 2008-06-28 Richard Guenther <rguenther@suse.de>
3317 * tree-ssa-structalias.c (callused_id, var_callused,
3318 callused_tree): Add.
3319 (handle_pure_call): New function.
3320 (find_func_aliases): Call it.
3321 (find_what_p_points_to): Handle the call-used set.
3322 (clobber_what_escaped): Likewise.
3323 (compute_call_used_vars): New function.
3324 (init_base_vars): Init the call-used variable.
3325 (do_sd_constraint): Do not propagate the solution from CALLUSED
3326 but use CALLUSED as a placeholder.
3327 (solve_graph): Likewise.
3328 * tree-flow-inline.h (gimple_call_used_vars): New function.
3329 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3330 (compute_call_used_vars): Declare.
3331 * tree-ssa-alias.c (set_initial_properties): Call
3332 compute_call_used_vars.
3333 (reset_alias_info): Clear call-used variables.
3334 (add_call_clobber_ops): Assert we are not called for const/pure
3335 functions. Remove handling of them.
3336 (add_call_read_ops): Handle pure functions by adding the
3337 call-used set of variables as VUSEs.
3338 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3339 (delete_tree_ssa): Free it.
3340 * tree-dfa.c (remove_referenced_var): Clear the var from the
3343 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
3345 * tree.c (build_varargs_function_type_list): New.
3346 (build_function_type_list_1): New.
3347 (build_function_type_list): Use build_function_type_list_1.
3348 * tree.h (build_varargs_function_type_list): New.
3350 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3353 * config/spu/spu.c (spu_builtin_splats): Do not generate
3354 invalid CONST_VECTOR expressions.
3355 (spu_expand_vector_init): Likewise.
3357 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
3359 * optabs.c (libfunc_decls): New variable.
3360 (libfunc_decl_hash, libfunc_decl_eq): New functions.
3361 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3362 for the same function twice.
3364 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
3366 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3367 ix86_expand_binary_operator directly.
3368 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
3370 (*ashrti3_1): Ditto.
3371 (*lshrti3_1): Ditto.
3372 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3373 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3374 using only one splitter. Conditionaly execute splitter before or
3375 after peephole2 pass.
3376 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3377 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
3378 Use only one alternative in asm template.
3379 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3381 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3382 "J" operand constraint for operand 2.
3383 (*ashldi3_cconly_rex64): Ditto.
3384 (*ashrdi3_cmp_rex64): Ditto.
3385 (*ashrdi3_cconly_rex64): Ditto.
3386 (*lshrdi3_cmp_rex64): Ditto.
3387 (*lshrdi3_cconly_rex64): Ditto.
3388 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3389 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3390 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3393 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3395 * gimplify.c (omp_is_private): Don't return true if decl is not
3396 already private on #pragma omp for or #pragma omp parallel for.
3399 * tree-cfg.c (struct move_stmt_d): Replace block field with
3400 orig_block and new_block fields.
3401 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3402 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3403 (move_block_to_fn): Replace vars_map and new_label_map arguments
3404 with struct move_stmt_d pointer.
3405 (replace_block_vars_by_duplicates): New function.
3406 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
3407 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
3408 all subblocks of ORIG_BLOCK to the new function. Call
3409 replace_block_vars_by_duplicates.
3410 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3411 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3412 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
3413 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3414 (expand_omp): Temporarily set input_location to the location of
3415 region's controlling stmt.
3416 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3417 BIND_EXPR, push ctx->block_vars and gimplification vars into
3418 the BIND_EXPR and its block's BLOCK_VARS instead of directly
3420 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3421 there are any BLOCK_VARS.
3422 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3423 OMP_PARALLEL or OMP_TASK stmt.
3424 (lower_omp): Save and restore input_location around the lower_omp_1
3427 2008-06-27 Richard Guenther <rguenther@suse.de>
3429 PR tree-optimization/36400
3430 PR tree-optimization/36373
3431 PR tree-optimization/36344
3432 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3433 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3434 (update_alias_info): Remove call clobbering code.
3435 (make_constraint_to): New helper function.
3436 (make_escape_constraint): Likewise.
3437 (handle_rhs_call): Use it on all pointer containing arguments.
3438 Also mark the static chain escaped.
3439 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3440 instead of ANYTHING.
3441 (make_constraint_from): New helper split out from ...
3442 (make_constraint_from_anything): ... here.
3443 (find_func_aliases): Add constraints for escape sites.
3444 (intra_create_variable_infos): Make constraints from NONLOCAL
3446 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3448 (clobber_what_p_points_to): Remove.
3449 (clobber_what_escaped): New function.
3450 (init_base_vars): Init NONLOCAL and ESCAPED.
3451 (do_sd_constraint): Do not propagate the solution from ESCAPED
3452 but use ESCAPED as a placeholder.
3453 (solve_graph): Likewise.
3454 * tree-flow.h (clobber_what_p_points_to): Remove.
3455 (clobber_what_escaped): Declare.
3456 * tree-ssa-alias.c (set_initial_properties): Call it.
3457 Remove code clobbering escaped pointers.
3459 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3461 * function.c (allocate_struct_function): Only allocate a unique
3462 funcdef_no if the decl is nonzero.
3464 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3466 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3467 * config/mips/mips.c (mips_split_const_insns): New function.
3468 * config/mips/mips.md (move_type): New attribute.
3469 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
3470 (dword_mode): New attribute.
3471 (type): Avoid long line. Map "move_type"s to "type"s,
3472 choosing "multi" for doubleword moves if appropriate.
3473 Swap MTC/MFC comments to match their declaration order.
3474 (extended_mips16): Default to "yes" if "move_type" is "sll0",
3475 "type" is "branch" or "jal" is "direct".
3476 (length): Handle "extended_mips16" first. Make the default
3477 "0" for "ghost" instructions. Set the length from "move_type".
3478 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3479 of "type", with "sll0" for the register alternative. Remove the
3480 "extended_mips16" attribute.
3481 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3482 of "type", with "shift_shift" for the register alternative.
3483 Remove the "length" attribute.
3484 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3485 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3486 of "type", with "andi" for the register alternative.
3487 (*zero_extendqihi2): Likewise.
3488 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3489 of "andi" instead of a "type" of "arith".
3490 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3492 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3493 (mov_<store>r, *mov<mode>_ra): Likewise.
3494 (extendsidi2): Use "move_type" instead of "type", with "move"
3495 for the register alternative.
3496 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3497 of "type", with "signext" for the register alternative.
3498 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3499 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3500 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3501 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3502 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3503 (unnamed branch insn): Likewise.
3504 (*movdi_gp32_fp64): Fold into...
3505 (*movdi_32bit): ...here.
3506 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3507 (*movdf_hardfloat): ...this new pattern.
3508 (*movdf_softfloat): Remove redundant FPR alternatives.
3509 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3510 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3511 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
3512 the "move" attribute.
3513 (*movdi_32bit): Use "move_type" instead of "type" and remove the
3514 "length" attribute. Use "fpload" and "fpstore" instead of "load"
3515 and "store" for COP loads and stores.
3516 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3517 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3518 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3519 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3520 (*movtf_mips16, *movv2sf): Likewise.
3521 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3522 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3523 (mfhc1<mode>): Use "move_type" instead of "move".
3524 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3525 (loadgp_blockage): Remove the "length" attribute.
3526 (blockage, set_got_version, update_got_version): Likewise.
3527 (call_internal): Remove the "extended_mips16" attribute.
3528 (call_value_internal, call_value_multiple_internal): Likewise.
3529 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3531 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3532 the "length" attribute.
3534 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3536 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3537 -Wcast-qual warnings.
3538 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3539 handle_pragma_pop_macro): Likewise.
3540 * collect2.c (resolve_lib_name): Likewise.
3541 * config/arc/arc.c (arc_init): Likewise.
3542 * config/arm/arm.c (neon_builtin_compare,
3543 locate_neon_builtin_icode): Likewise.
3544 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3545 * config/bfin/bfin.c (bfin_init_machine_status,
3546 bfin_optimize_loop): Likewise.
3547 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3548 * config/cris/cris.c (cris_init_expanders): Likewise.
3549 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3550 * config/darwin.c (machopic_indirection_eq,
3551 machopic_indirection_name, machopic_output_indirection): Likewise.
3552 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3553 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3554 frv_optimize_membar): Likewise.
3555 * config/i386/cygwin.h (mingw_scan,
3556 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3557 * config/i386/cygwin1.c (mingw_scan): Likewise.
3558 * config/i386/i386.c (machopic_output_stub): Likewise.
3559 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3560 i386_pe_unique_section): Likewise.
3561 * config/ia64/ia64.c (ia64_init_machine_status,
3562 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3564 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3565 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3566 * config/m68k/m68k.c (m68k_handle_option,
3567 m68k_sched_md_init_global): Likewise.
3568 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3569 mcore_unique_section): Likewise.
3570 * config/mips/mips.c (mips_block_move_straight,
3571 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3573 * config/mmix/mmix.c (mmix_init_machine_status,
3574 mmix_encode_section_info): Likewise.
3575 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3576 * config/rs6000/rs6000.c (rs6000_init_machine_status,
3577 print_operand_address, output_toc, redefine_groups,
3578 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3579 * config/s390/s390.c (s390_init_machine_status): Likewise.
3580 * config/score/score.c (score_block_move_straight,
3581 score_block_move_loop_body): Likewise.
3582 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3583 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3584 * emit-rtl.c (find_auto_inc): Likewise.
3585 * gcc.c (translate_options, process_command): Likewise.
3586 * reorg.c (dbr_schedule): Likewise.
3587 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3588 * xcoffout.c (xcoffout_declare_function): Likewise.
3590 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
3592 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3593 ipa-pta working again.
3595 2008-06-27 David Edelsohn <edelsohn@gnu.org>
3597 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3600 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
3602 * config.gcc (powerpc*-*-*): Add new core e500mc.
3603 * config/rs6000/e500mc.md: New file.
3604 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3606 (rs6000_override_options): Add e500mc case to
3607 processor_target_table. Altivec and Spe options not allowed
3608 with e500mc. Add isel instruction to e500mc by
3609 default. Initialize rs6000_cost for e500mc.
3610 (rs6000_issue_rate): Set issue rate for e500mc.
3611 * config/rs6000/rs6000.h (processor_type): Add
3612 PROCESSOR_PPCE500MC.
3613 (ASM_CPU_SPEC): Add e500mc.
3614 Set TARGET_ISEL to rs6000_isel.
3615 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3616 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3617 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3619 * doc/invoke.texi: Add e500mc to list of cpus.
3621 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3624 * c-lex.c (lex_charconst): Initialize unsignedp.
3626 2008-06-27 Olivier Hainque <hainque@adacore.com>
3628 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3629 documented assumptions.
3631 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
3633 * dwarf2out.c: Remove trailing white spaces. Break long line
3636 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
3638 * libfuncs.h (LTI_synchronize): New libfunc_index.
3639 (synchronize_libfunc): Declare.
3640 * builtins.c (expand_builtin_synchronize): Consider using
3641 synchronize_libfunc before falling back on an asm blockage.
3642 * config/mips/mips.c: Include libfuncs.h
3643 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3645 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
3647 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3648 parameter. Copy stack_reg to r11 where appropriate.
3649 (no_global_regs_above): Add gpr parameter.
3650 (rs6000_stack_info): Only add padding for SPE save area if we
3651 are saving SPE GPRs and CR.
3652 (saveres_routine_syms): New variable.
3653 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3655 (rs6000_savres_routine_sym): New function.
3656 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3658 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
3659 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
3660 Tweak FPR out-of-line saving.
3661 (rs6000_make_savres_rtx): New function.
3662 (rs6000_use_multiple_p): New function.
3663 (rs6000_savres_strategy): New function.
3664 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
3665 out-of-line if appropriate.
3666 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3667 if we are optimizing for size.
3668 (GP_SAVE_INLINE): Define.
3669 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3670 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3671 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3672 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3673 (*save_fpregs_<mode>): Add use of r11.
3674 (*restore_gpregs_<mode>): New insn.
3675 (*return_and_restore_gpregs_<mode>): New insn.
3676 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3678 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3679 (*restore_gpregs_spe): New insn.
3680 (*return_and_restore_gpregs_spe): New insn.
3681 * config/rs6000/predicates.md (save_world_operation): Fix check.
3683 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3685 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3686 this point, so assert that.
3688 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3690 * cfganal.c: Include vec.h and vecprim.h.
3691 (compute_idf): Import from...
3692 * tree-into-ssa (compute_idf): ...here.
3693 * basic-block.h (compute_idf): Export.
3695 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3697 * c-decl.c (merge_decls): Use !current_function_decl to check for
3698 extern declaration of C99 inline function being at file scope.
3700 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
3702 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3704 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3706 * alias.c (record_alias_subset, init_alias_analysis): Fix
3707 -Wc++-compat and/or -Wcast-qual warnings.
3708 * attribs.c (lookup_attribute_spec): Likewise.
3709 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3710 copy_bb, connect_traces,
3711 find_rarely_executed_basic_blocks_and_cr): Likewise.
3712 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3713 note_btr_set, migrate_btr_defs): Likewise.
3714 * builtins.c (result_vector, expand_builtin_memcpy,
3715 expand_builtin_mempcpy_args, expand_builtin_strncpy,
3716 builtin_memset_read_str, expand_builtin_printf,
3717 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3719 * caller-save.c (mark_set_regs): Likewise.
3720 * calls.c (expand_call, emit_library_call_value_1): Likewise.
3721 * cgraph.c (cgraph_edge): Likewise.
3722 * combine.c (likely_spilled_retval_1): Likewise.
3723 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3724 htab_counts_entry_del, get_coverage_counts): Likewise.
3725 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3726 new_cselib_val): Likewise.
3727 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3728 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3730 * df-core.c (df_compact_blocks): Likewise.
3731 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3732 * df-scan.c (df_grow_reg_info, df_ref_create,
3733 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3734 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3735 df_record_entry_block_defs, df_record_exit_block_uses,
3736 df_bb_verify): Likewise.
3737 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3738 DF_REF_EXTRACT_MODE_CONST): New.
3739 * dominance.c (get_immediate_dominator, get_dominated_by,
3740 nearest_common_dominator, root_of_dom_tree,
3741 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3742 -Wc++-compat and/or -Wcast-qual warnings.
3743 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3744 record_store, replace_read, check_mem_read_rtx, scan_insn,
3745 dse_step1, dse_record_singleton_alias_set): Likewise.
3746 * dwarf2asm.c (dw2_force_const_mem): Likewise.
3748 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3750 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3751 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3752 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3753 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3754 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3755 add_ranges_num, add_ranges_by_labels, file_info_cmp,
3756 file_name_acquire, output_file_names, add_const_value_attribute,
3757 premark_used_types_helper, file_table_eq, file_table_hash,
3758 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3759 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3760 -Wcast-qual warnings.
3761 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3762 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3763 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3764 gen_reg_rtx, start_sequence, init_emit): Likewise.
3765 * et-forest.c (et_new_occ, et_new_tree): Likewise.
3766 * except.c (init_eh_for_function, gen_eh_region,
3767 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3768 arh_to_landing_pad, arh_to_label, add_action_record,
3769 add_call_site, switch_to_exception_section): Likewise.
3770 * expmed.c (synth_mult): Likewise.
3771 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3772 store_expr): Likewise.
3773 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3775 * function.c (assign_stack_temp_for_type,
3776 allocate_struct_function, match_asm_constraints_1): Likewise.
3777 * gcov-io.c (gcov_allocate): Likewise.
3778 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3779 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3780 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3781 record_one_set, insert_expr_in_table, insert_set_in_table,
3782 dump_hash_table, compute_hash_table_work, alloc_hash_table,
3783 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3784 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3785 -Wcast-qual warnings.
3787 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3789 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3790 -Wcast-qual warnings.
3791 * gcc.c (process_command): Likewise.
3792 * genattrtab.c (oballoc): Use XOBNEW.
3793 (oballocvec): Define.
3794 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3795 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3796 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3797 -Wc++-compat and/or -Wcast-qual warnings.
3798 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3799 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3800 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3801 gen_presence_absence_set, gen_automaton, gen_regexp_el,
3802 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3803 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3804 add_excls, process_presence_absence_names,
3805 process_presence_absence_patterns, add_presence_absence,
3806 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3807 get_free_state, add_arc, get_free_automata_list_el,
3808 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3809 transform_3, cache_presence, create_ainsns, create_automata,
3810 create_state_ainsn_table, dfa_insn_code_enlarge,
3811 output_trans_func, output_min_issue_delay_func,
3812 output_dead_lock_func, output_reset_func,
3813 output_get_cpu_unit_code_func, output_dfa_start_func,
3814 expand_automata): Likewise.
3815 * genextract.c (gen_insn): Likewise.
3816 * gengtype-lex.l: Likewise.
3817 * gengtype.c (read_input_list, adjust_field_type,
3818 process_gc_options): Likewise.
3819 * genoutput.c (note_constraint): Likewise.
3820 * genpreds.c (mangle, add_constraint): Likewise.
3821 * genrecog.c (process_define_predicate, new_decision,
3822 add_to_sequence): Likewise.
3823 * gensupport.c (record_insn_name): Likewise.
3825 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3827 * config/i386/driver-i386.c (detect_caches_amd,
3828 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3829 and/or -Wcast-qual warnings.
3830 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3831 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3832 gt_pch_save): Likewise.
3833 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3834 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3835 * global.c (compute_regsets): Likewise.
3836 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3837 finish_graph_dump_file): Likewise.
3838 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3839 unlink_bb_notes): Likewise.
3840 * integrate.c (get_hard_reg_initial_val): Likewise.
3841 * ipa-prop.c (ipa_push_func_to_list): Likewise.
3842 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3843 * local-alloc.c (update_equiv_regs): Likewise.
3844 * loop-invariant.c (check_invariant_table_size,
3845 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3847 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3848 altered_reg_used, mark_altered): Likewise.
3849 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3850 insert_var_expansion_initialization,
3851 combine_var_copies_in_loop_exit, apply_opt_in_copies,
3852 release_var_copies): Likewise.
3853 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3854 analyze_matrix_decl, add_allocation_site, analyze_transpose,
3855 analyze_accesses_for_phi_node, check_var_notmodified_p,
3856 check_allocation_function, find_sites_in_func,
3857 record_all_accesses_in_func, transform_access_sites,
3858 transform_allocation_sites): Likewise.
3859 * omp-low.c (new_omp_region, create_omp_child_function_name,
3860 check_omp_nesting_restrictions, check_combined_parallel,
3861 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3862 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3863 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3864 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3866 * opts-common.c (prune_options): Likewise.
3867 * opts.c (add_input_filename, print_filtered_help,
3868 get_option_state): Likewise.
3869 * params.c (add_params): Likewise.
3870 * passes.c (set_pass_for_id, next_pass_1,
3871 do_per_function_toporder, pass_fini_dump_file): Likewise.
3872 * postreload.c (reload_cse_simplify_operands): Likewise.
3873 * predict.c (tree_predicted_by_p, tree_predict_edge,
3874 clear_bb_predictions, combine_predictions_for_bb): Likewise.
3876 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3878 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3880 * recog.c (check_asm_operands, validate_change_1): Likewise.
3881 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3882 subst_asm_stack_regs): Likewise.
3883 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3884 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3885 * regmove.c (reg_is_remote_constant_p): Likewise.
3886 * regrename.c (regrename_optimize, scan_rtx_reg,
3887 kill_clobbered_value, kill_set_value, kill_autoinc_value):
3889 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3890 regstat_compute_calls_crossed): Likewise.
3891 * reload1.c (init_reload, new_insn_chain,
3892 has_nonexceptional_receiver, reload, copy_reloads,
3893 calculate_needs_all_insns, init_elim_table): Likewise.
3894 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3895 * rtl.c (shallow_copy_rtx_stat): Likewise.
3896 * rtlanal.c (parms_set): Likewise.
3897 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3898 sbitmap_resize, sbitmap_vector_alloc): Likewise.
3899 * sched-ebb.c (earliest_block_with_similiar_load,
3900 add_deps_for_risky_insns): Likewise.
3901 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3902 schedule_region): Likewise.
3903 * see.c (eq_descriptor_pre_extension,
3904 hash_descriptor_pre_extension, hash_del_pre_extension,
3905 eq_descriptor_properties, hash_descriptor_properties,
3906 hash_del_properties, see_seek_pre_extension_expr,
3907 see_initialize_data_structures, see_print_register_properties,
3908 see_print_pre_extension_expr, see_delete_merged_def_extension,
3909 see_delete_unmerged_def_extension, see_emit_use_extension,
3910 see_pre_delete_extension, see_map_extension, see_commit_changes,
3911 see_analyze_merged_def_local_prop,
3912 see_analyze_merged_def_local_prop,
3913 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3914 see_set_prop_merged_def, see_set_prop_unmerged_def,
3915 see_set_prop_unmerged_use, see_print_one_extension,
3916 see_merge_one_use_extension, see_merge_one_def_extension,
3917 see_store_reference_and_extension, see_update_uses_relevancy,
3918 see_update_defs_relevancy): Likewise.
3919 * statistics.c (hash_statistics_hash, hash_statistics_eq,
3920 hash_statistics_free, curr_statistics_hash): Likewise.
3921 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3922 expand_asm_operands, expand_return, case_bit_test_cmp,
3923 expand_case): Likewise.
3924 * stor-layout.c (start_record_layout): Likewise.
3925 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3926 gt_pch_save_stringpool): Likewise.
3927 * tree-data-ref.c (hash_stmt_vertex_info,
3928 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3929 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3931 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
3934 * config/i386/i386.md : Change constraints of HImode and QImode
3935 immediate operands from "i" to "n". Change SImode "ni" constraint to
3936 "i" and SImode "rmi" constraint to "g". Remove all constraints
3937 from const0_operand and const1_operand predicated operands.
3938 (i): Change QImode and HImode attribute from "i" to "n".
3939 (*subqi_2): Change HImode operands to QImode.
3942 2008-06-25 Olivier Hainque <hainque@adacore.com>
3944 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3947 2008-06-25 Richard Guenther <rguenther@suse.de>
3949 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3950 not overflow the result type.
3952 2008-06-25 Richard Guenther <rguenther@suse.de>
3954 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3955 (vn_lookup): Likewise.
3957 2008-06-25 Richard Guenther <rguenther@suse.de>
3959 PR tree-optimization/35518
3960 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3961 * tree-sra.c (instantiate_element): Use fold_build3 to build
3963 (try_instantiate_multiple_fields): Likewise.
3965 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3967 * config/rs6000/rs6000.md: Change all string instruction's clobber to
3970 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3972 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3973 use_backchain_to_restore_sp to true
3974 if the offset of the link register save area would go over the 32k - 1
3975 offset limit of the load
3978 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
3980 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3981 anchor for the type-punning blurb. Cross-reference "Structures
3982 unions enumerations and bit-fields implementation". Provide a
3983 cast-through-pointer example. Make final sentence self-contained.
3984 * doc/implement-c.texi (Structures unions enumerations and
3985 bit-fields implementation): Cross-reference the type-punning blurb
3986 in the -fstrict-aliasing documentation.
3988 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
3991 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3992 the memory instead of the memory itself for the save area.
3994 2008-06-24 Olivier Hainque <hainque@adacore.com>
3995 Nicolas Roche <roche@adacore.com>
3997 * gengtype.c (srcdir_len): size_t instead of int.
3998 (get_file_realbasename): New function. For F a filename, the real
3999 basename of F, with all the path components stripped.
4000 (get_file_srcdir_relative_path): New function. For F a filename, the
4001 relative path to F from $(srcdir).
4002 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4003 get_file_realbasename. Adjust the head comment.
4004 (get_prefix_langdir_index): New function. For F a filename, return the
4005 lang_dir_names[] relative index of the language directory that is
4007 (get_file_langdir): For F a filename, return the name of the language
4008 directory where F is located.
4009 (get_file_gtfilename): New function. The gt- output file name for an
4011 (get_output_file_with_visibility): Replace in-line computations with
4012 uses of get_file_gtfilename and get_prefix_langdir_index.
4013 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4015 2008-06-24 Jakub Jelinek <jakub@redhat.com>
4017 PR tree-optimization/36504
4018 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4019 references without base address.
4021 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4024 * calls.c (expand_call): Increase alignment for recursive functions.
4026 2008-06-23 Anatoly Sokolov <aesok@post.ru>
4028 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4029 (TARGET_FUNCTION_VALUE): New define.
4030 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4031 * config/avr/avr.h (FUNCTION_VALUE): Remove.
4033 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4035 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4036 (fmod<mode>3): Ditto.
4037 (remainderxf3): Ditto.
4038 (remainder<mode>3): Ditto.
4040 2008-06-23 Jakub Jelinek <jakub@redhat.com>
4043 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4044 REG is a hard register.
4046 PR tree-optimization/36508
4047 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4048 499, don't check it at all in release compilers.
4050 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4052 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4053 together with SSE_TARGET_MATH to disable insn pattern.
4054 (*fop_<MODEF:mode>_2_i387): Ditto.
4055 (*fop_<MODEF:mode>_3_i387): Ditto.
4057 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
4059 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4061 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4064 * gimplify.c (gimplify_asm_expr): Check the return code of
4065 parse_output_constraint call, set function return and is_inout
4068 2008-06-22 Ian Lance Taylor <iant@google.com>
4070 * c-lex.c (narrowest_unsigned_type): Change itk to int.
4071 (narrowest_signed_type): Likewise.
4072 * c-typeck.c (c_common_type): Change local variable mclass to enum
4074 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4075 tcc_comparison, not the tree code itself.
4076 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4077 (c_expand_expr): Cast modifier to enum expand_modifier.
4078 * c-common.h (C_RID_CODE): Add casts.
4079 (C_SET_RID_CODE): Define.
4080 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4081 (c_lex_one_token): Add cast to avoid warning.
4082 (c_parser_objc_type_name): Rename local typename to type_name.
4083 (check_no_duplicate_clause): Change code parameter to enum
4085 (c_parser_omp_var_list_parens): Change kind parameter to enum
4087 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4088 c_parser_omp_list_var_parens.
4089 (c_parser_omp_threadprivate): Likewise.
4090 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4091 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4092 * c-format.c (NO_FMT): Define.
4093 (printf_length_specs): Use NO_FMT.
4094 (asm_fprintf_length_specs): Likewise.
4095 (gcc_diag_length_specs): Likewise.
4096 (scanf_length_specs): Likewise.
4097 (strfmon_length_specs): Likewise.
4098 (gcc_gfc_length_specs): Likewise.
4099 (printf_flag_specs): Change 0 to STD_C89.
4100 (asm_fprintf_flag_specs): Likewise.
4101 (gcc_diag_flag_specs): Likewise.
4102 (gcc_cxxdiag_flag_specs): Likewise.
4103 (scanf_flag_specs): Likewise.
4104 (strftime_flag_specs): Likewise.
4105 (strfmon_flag_specs): Likewise.
4106 (print_char_table): Likewise.
4107 (asm_fprintf_char_table): Likewise.
4108 (gcc_diag_char_table): Likewise.
4109 (gcc_tdiag_char_table): Likewise.
4110 (gcc_cdiag_char_table): Likewise.
4111 (gcc_cxxdiag_char_table): Likewise.
4112 (gcc_gfc_char_table): Likewise.
4113 (scan_char_table): Likewise.
4114 (time_char_table): Likewis.
4115 (monetary_char_table): Likewise.
4116 * c-format.h (BADLEN): Likewise.
4118 2008-06-21 Ian Lance Taylor <iant@google.com>
4120 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4121 Define END_OF_BASE_TREE_CODES around inclusion.
4122 * tree.c (tree_code_type): New global array.
4123 (tree_code_length, tree_code_name): Likewise.
4124 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4126 (all-tree.def, s-alltree): New targets.
4127 (gencheck.h, s-gencheck): Remove.
4128 (tree.o): Depend upon all-tree.def.
4129 (build/gencheck.o): Remove gencheck.h dependency.
4130 (mostlyclean): Don't remove gencheck.h.
4131 * c-common.h (enum c_tree_code): Remove.
4132 * c-lang.c (tree_code_type): Remove.
4133 (tree_code_length, tree_code_name): Remove.
4134 * gencheck.c (tree_codes): Include all-tree.def, rather than
4135 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
4137 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4139 * cp/cp-tree.h (enum cplus_tree_code): Remove.
4140 (operator_name_info): Size to MAX_TREE_CODES.
4141 (assignment_operator_name_info): Likewise.
4142 * cp/cp-lang.c (tree_code_type): Remove.
4143 (tree_code_length, tree_code_name): Remove.
4144 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4145 (assignment_operator_name_info): Likewise.
4146 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4148 * cp/mangle.c (write_expression): Likewise.
4149 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4150 * fortran/f95-lang.c (tree_code_type): Remove.
4151 (tree_code_length, tree_code_name): Remove.
4152 * java/java-tree.h (enum java_tree_code): Remove.
4153 * java/lang.c (tree_code_type): Remove.
4154 (tree_code_length, tree_code_name): Remove.
4155 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4156 * objc/objc-act.h (enum objc_tree_code): Remove.
4157 * objc/objc-lang.c (tree_code_type): Remove.
4158 (tree_code_length, tree_code_name): Remove.
4159 * objcp/objcp-lang.c (tree_code_type): Remove.
4160 (tree_code_length, tree_code_name): Remove.
4161 * ada/ada-tree.h (enum gnat_tree_code): Remove.
4162 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4163 * ada/misc.c (tree_code_type): Remove.
4164 (tree_code_length, tree_code_name): Remove.
4166 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
4168 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4169 the grand_bitmap_obstack.
4171 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4173 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4174 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4175 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4176 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4177 move_stmt_r, new_label_mapper): Likewise.
4178 * tree-complex.c (cvc_lookup): Likewise.
4179 * tree-dfa.c (create_function_ann): Likewise.
4180 * tree-dump.c (dump_register): Likewise.
4181 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4182 find_phi_replacement_condition): Likewise.
4183 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4184 tree_function_versioning): Likewise.
4185 * tree-into-ssa.c (cmp_dfsnum): Likewise.
4186 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4187 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4188 get_nonlocal_debug_decl, convert_nonlocal_reference,
4189 convert_nonlocal_omp_clauses, get_local_debug_decl,
4190 convert_local_reference, convert_local_omp_clauses,
4191 convert_nl_goto_reference, convert_nl_goto_receiver,
4192 convert_tramp_reference, convert_call_expr): Likewise.
4193 * tree-outof-ssa.c (contains_tree_r): Likewise.
4194 * tree-parloops.c (reduction_phi, initialize_reductions,
4195 eliminate_local_variables_1, add_field_for_reduction,
4196 add_field_for_name, create_phi_for_local_result,
4197 create_call_for_reduction_1, create_loads_for_reductions,
4198 create_stores_for_reduction, create_loads_and_stores_for_name):
4200 * tree-phinodes.c (allocate_phi_node): Likewise.
4201 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4202 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4203 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4204 * tree-ssa-coalesce.c (compare_pairs): Likewise.
4205 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4206 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4207 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4208 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4209 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4210 vn_nary_op_insert): Likewise.
4211 * tree-ssa.c (redirect_edge_var_map_add,
4212 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4213 * tree-vectorizer.c (vectorize_loops): Likewise.
4214 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4215 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4216 tree_cons_stat, build1_stat, build_variant_type_copy,
4217 decl_init_priority_lookup, decl_fini_priority_lookup,
4218 decl_priority_info, decl_restrict_base_lookup,
4219 decl_restrict_base_insert, decl_debug_expr_lookup,
4220 decl_debug_expr_insert, decl_value_expr_lookup,
4221 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4222 type_hash_add, get_file_function_name, tree_check_failed,
4223 tree_not_check_failed, tree_range_check_failed,
4224 omp_clause_range_check_failed, build_omp_clause,
4225 build_vl_exp_stat): Likewise.
4226 * value-prof.c (gimple_histogram_value,
4227 gimple_duplicate_stmt_histograms): Likewise.
4228 * var-tracking.c (attrs_list_insert, attrs_list_copy,
4229 unshare_variable, variable_union_info_cmp_pos, variable_union,
4230 dataflow_set_different_1, dataflow_set_different_2,
4231 vt_find_locations, variable_was_changed, set_variable_part,
4232 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4233 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4234 section_entry_hash, object_block_entry_eq,
4235 object_block_entry_hash, create_block_symbol,
4236 initialize_cold_section_name, default_function_rodata_section,
4237 strip_reg_name, set_user_assembler_name, const_desc_eq,
4238 build_constant_desc, output_constant_def, lookup_constant_def,
4239 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4240 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4241 default_internal_label): Likewise.
4242 * varray.c (varray_init, varray_grow): Likewise.
4243 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4245 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
4247 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4248 operators for "test" insn. Macroize insn using SWI mode macro.
4249 (*jcc_fused_2): Ditto.
4250 (*jcc_fused_3): Macroize insn using SWI mode macro.
4251 (*jcc_fused_4): Ditto.
4253 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
4255 * tree-ssa-pre.c: Fix typo in comment.
4256 (init_antic, fini_antic): Add explicit funtions for
4257 initializing and deinitializing ANTIC and AVAIL sets.
4258 (create_expression_by_pieces): Fix typo in comment.
4259 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4260 (execute_pre): Eventually dump details about ANTIC_IN.
4262 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4264 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4265 * gcc.c (translate_options, init_spec, store_arg, read_specs,
4266 add_to_obstack, file_at_path, find_a_file, execute,
4267 add_preprocessor_option, add_assembler_option, add_linker_option,
4268 process_command, insert_wrapper, do_option_spec, do_self_spec,
4269 spec_path, do_spec_1, is_directory, main, used_arg,
4270 getenv_spec_function): Likewise.
4271 * tlink.c (symbol_hash_lookup, file_hash_lookup,
4272 demangled_hash_lookup, symbol_push, file_push, frob_extension):
4275 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
4277 * doc/rtl.texi: Updated subreg section.
4279 2008-06-19 Jakub Jelinek <jakub@redhat.com>
4282 * cgraphunit.c (cgraph_process_new_functions): Don't clear
4283 node->needed and node->reachable.
4284 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4285 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4286 (expand_task_call): Don't call expand_task_copyfn.
4287 (expand_task_copyfn): Renamed to...
4288 (finalize_task_copyfn): ... this.
4290 2008-06-19 Jan Hubicka <jh@suse.cz>
4292 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4293 clobbering framepointer.
4295 2008-06-19 Jan Hubicka <jh@suse.cz>
4297 * tree-optimize.c (execute_early_local_optimizations): Set
4298 cgraph_state only at first invocation.
4300 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4302 * system.h (-Wc++-compat): Activate as a warning, no an error.
4304 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4306 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4307 instead of "#" in insn asm template.
4308 (*jcc_fused_2): Ditto.
4310 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4312 * config/i386/i386.h (ix86_tune_indices)
4313 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4314 (TARGET_FUSE_CMP_AND_BRANCH): New define.
4315 * config/i386/i386.md (*jcc_fused_1): New insn pattern
4316 (*jcc_fused_2): Ditto.
4317 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4318 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4319 (print operand): Handle 'E' and 'e' code.
4321 2008-06-19 Anatoly Sokolov <aesok@post.ru>
4323 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4324 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4325 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4327 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
4329 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4331 (cgraph_expand_function): Use local copy of decl.
4332 (cgraph_expand_all_functions): Remove redundant initialization of
4334 (cgraph_optimize): Reword internal_error message.
4336 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
4338 * arm-protos.h (arm_return_in_memory): Remove public
4339 arm_return_in_memory() prototype.
4340 * arm.c (arm_return_in_memory): Add static prototype, add target
4341 hook macro, change definition and comments.
4342 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4344 2008-06-19 Ben Elliston <bje@au.ibm.com>
4346 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4347 real.c: Remove references to IEEE 754R.
4348 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4349 * doc/libgcc.texi (Decimal float library routines): Likewise.
4351 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4353 * targhooks.h (struct gcc_target): New member unwind_word_mode.
4354 (default_unwind_word_mode): Add prototype.
4355 * targhooks.c (default_unwind_word_mode): New function.
4356 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4357 instead of word_mode.
4358 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4359 (TARGET_INITIALIZER): Use it.
4361 * c-common.c (handle_mode_attribute): Support "unwind_word"
4363 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4365 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4366 word_mode to access SjLj_Function_Context member "data".
4367 (sjlj_emit_dispatch_table): Likewise. Also, perform type
4368 conversion from targetm.eh_return_filter_mode () to
4369 targetm.unwind_word_mode () if they differ.
4371 * builtin-types.def (BT_UNWINDWORD): New primitive type.
4372 (BT_FN_UNWINDWORD_PTR): New function type.
4373 (BT_FN_WORD_PTR): Remove.
4374 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4375 * except.c (expand_builtin_extend_pointer): Convert pointer to
4376 targetm.unwind_word_mode () instead of word_mode.
4378 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4379 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4380 (spu_unwind_word_mode): New function.
4381 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4382 (TARGET_UNWIND_WORD_MODE): Define.
4383 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4385 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4387 * config/spu/spu.c (reg_align): Remove.
4388 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4389 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4390 (spu_split_store): Likewise.
4392 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
4394 * gcc/tree-vn.c: Fix typo in comment.
4396 2008-06-18 Jan Hubicka <jh@suse.cz>
4398 * cgraphunit.c (cgraph_optimize): Output debug info when doing
4399 toplevel reorder too.
4401 2008-06-18 Jan Hubicka <jh@suse.cz>
4403 * c-opts.c (c_common_post_options): PCH is not compatible with
4405 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4406 -fno-toplevel-reorder by default now.
4408 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4410 PR documentation/30739
4411 * doc/install.texi (Prerequisites): Document dependency on awk.
4413 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
4414 Ian Lance Taylor <iant@google.com>
4416 PR rtl-optimization/35604
4417 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4418 only want to change jump destinations, not eventual label comparisons.
4420 2008-06-16 Jan Hubicka <jh@suse.cz>
4422 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4424 (cgraph_analyze_function): Likewise.
4426 2008-06-16 Jan Hubicka <jh@suse.cz>
4428 * cgraph.h (cgraph_mark_if_needed): New function.
4429 * cgraphunit.c (cgraph_mark_if_needed): New function.
4430 * c-decl.c (duplicate_decl): Use it.
4432 2008-06-16 Jan Hubicka <jh@suse.cz>
4434 * cgraph.c (cgraph_add_new_function): When in expansion state, do
4437 2008-06-16 Jan Hubicka <jh@suse.cz>
4439 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4441 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
4442 Kazu Hirata <kazu@codesourcery.com>
4443 Maxim Kuvyrkov <maxim@codesourcery.com
4445 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4446 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4447 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4448 EXTRA_SPEC_FUNCTIONS.
4449 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4450 (DRIVER_SELF_SPECS): Adjust.
4451 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4452 * config/mips/st.h, config/mips/t-st: New.
4453 * config/mips/driver-native.c, config/mips/x-native: New.
4454 * doc/invoke.texi (MIPS): Document 'native' value for -march and
4457 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4459 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4461 (ISA_HAS_FP_CONDMOVE): New macro.
4462 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4463 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4464 (ISA_HAS_NMADD3_NMSUB3): New macro.
4465 * config/mips/mips.c (mips_rtx_costs): Update.
4466 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4467 compiling for ST Loongson 2E/2F.
4468 (madd<mode>): Rename to madd4<mode>. Update.
4469 (madd3<mode>): New pattern.
4470 (msub<mode>): Rename to msub4<mode>. Update.
4471 (msub3<mode>): New pattern.
4472 (nmadd<mode>): Rename to nmadd4<mode>. Update.
4473 (nmadd3<mode>): New pattern.
4474 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
4475 (nmadd3<mode>_fastmath): New pattern.
4476 (nmsub<mode>): Rename to nmsub4<mode>. Update.
4477 (nmsub3<mode>): New pattern.
4478 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
4479 (nmsub3<mode>_fastmath): New pattern.
4480 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4482 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
4484 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4485 (DF_REF_INSN_INFO): New.
4486 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4487 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4488 with a NULL DF_REF_INSN_INFO.
4489 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4491 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4492 DF_INSN_INFO_EQ_USES): New.
4493 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4494 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4495 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4496 * df-core.c: Update comment for above changes.
4497 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4498 DF_INSN_UID_* macros.
4499 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4500 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4501 insn rtx. Update all callers.
4502 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4503 df_ref_create_structure, df_insn_refs_collect): Likewise.
4504 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4505 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4506 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4507 macros to access the insn refs.
4508 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4509 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4510 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4511 for accessing the refs.
4512 (try_fwprop_subst): Likewise.
4513 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4514 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4515 for accessing the refs.
4516 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4517 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4518 to look at the insn refs.
4519 (record_uses): Likewise.
4520 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4522 (mark_artificial_uses): Don't mark_insn for artificial refs.
4523 (mark_reg_rependencies): Likewise.
4525 * doc/rtl.texi: Remove documentation of ADDRESSOF.
4527 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4529 * configure: Regenerate.
4531 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4533 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4534 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4535 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4537 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4539 * config/avr/avr.c (avr_mcu_t): Add attiny167.
4540 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4541 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4543 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4545 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4546 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4547 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4549 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4551 * tree-ssa-sccvn.c: Fix format of comments.
4553 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4555 * cgraph.c: Remove unneeded forward declarations of eq_node()
4558 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
4560 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4562 (see_update_relevancy): Likewise.
4563 * fwprop.c (try_fwprop_subst): Likewise.
4564 * rtlanal.c (noop_move_p): Likewise.
4565 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4566 notes to non-existing libcall blocks.
4567 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
4569 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4570 (dead_libcall_p): Remove.
4571 (delete_trivially_dead_insns): Don't use it.
4572 * web.c (union_defs): Remove comment about keeping nops.
4573 * gcse.c (hash_scan_insn): Don't take libcall pointers.
4574 (compute_hash_table_work): Don't track libcall notes.
4575 (do_local_cprop): Don't take libcall pointers. Don't update
4577 (adjust_libcall_notes): Deleted.
4578 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4579 ever have existed in the first place).
4580 (replace_store_insn): Don't try to remove libcall notes.
4581 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4582 (resolve_reg_notes): Don't call them.
4583 (resolve_simple_move): Likewise.
4584 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4585 Don't remove REG_RETVAL notes.
4586 * emit-rtl.c (try_split): Don't update libcall notes.
4587 (emit_copy_of_insn_after): Dito.
4588 * cselib.c (cselib_current_insn_in_libcall): Remove.
4589 (cselib_process_insn): Don't set/clear it.
4590 (new_elt_loc_list): Don't record it.
4591 (cselib_init): Don't initialize it.
4592 * cselib.c (struct elt_loc_list): Remove in_libcall field.
4593 * loop-invariant.c (find_invariant_insn): Don't look for libcall
4595 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4596 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4597 (init_deps): Don't initialize it.
4598 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4599 * combine.c (delete_noop_moves): Don't update libcall notes.
4600 (can_combine_p): Remove now pointless #if 0 block.
4601 (try_combine): Remove another obsolete #if 0 block.
4602 (distribute_notes): Don't distribute libcall notes.
4603 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4604 * dce.c (libcall_dead_p): Remove.
4605 (delete_unmarked_insns): Don't handle libcall blocks.
4606 (preserve_libcall_for_dce): Remove.
4607 (prescan_insns_for_dce): Don't special-case libcall block insns.
4608 * reload1 (reload): Don't handle libcall notes.
4609 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4612 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4614 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4615 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4616 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4618 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4620 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4621 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4622 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4624 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4626 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4628 2008-06-16 Ira Rosen <irar@il.ibm.com>
4630 PR tree-optimization/36493
4631 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4632 the arguments list. Use VECTYPE to create vector pointer.
4633 (vectorizable_store): Fail if accesses through a pointer to vectype
4634 do not alias the original memory reference operands.
4635 Call vect_create_data_ref_ptr without the removed argument.
4636 (vectorizable_load): Likewise.
4637 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4640 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
4643 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4646 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4648 * config/mips/loongson2ef.md: New file.
4649 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4650 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4651 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4652 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4653 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4655 (loongson2ef.md): New include.
4656 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4657 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4658 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4659 (loongson_gt_<mode>, loongson_extract_halfword)
4660 (loongson_insert_halfword_0, loongson_insert_halfword_2)
4661 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4662 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4663 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4664 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4665 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4666 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4667 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4668 (vec_interleave_low<mode>): Define type attribute.
4669 * config/mips/mips.c (mips_ls2): New static variable.
4670 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4671 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4672 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4673 Implement target scheduling hooks.
4674 (mips_multipass_dfa_lookahead): Update to handle tuning for
4676 (mips_sched_init): Initialize data for Loongson scheduling.
4677 (mips_ls2_variable_issue): New static function.
4678 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4680 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4681 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4682 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4683 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4684 Handle ST Loongson 2E/2F cores.
4685 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4687 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4689 * omp-low.c (extract_omp_for_data): Fix comment typo.
4692 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4694 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4695 FIXME note about gcc/config.guess.
4696 * doc/options.texi (Option file format): Remove non-ASCII bytes.
4697 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4698 * doc/cppopts.texi: Likewise.
4699 * doc/extend.texi: Likewise.
4700 * doc/gcc.texi: Likewise.
4701 * doc/gccint.texi: Likewise.
4702 * doc/gcov.texi: Likewise.
4703 * doc/gty.texi: Likewise.
4704 * doc/hostconfig.texi: Likewise.
4705 * doc/install.texi: Likewise.
4706 * doc/invoke.texi: Likewise.
4707 * doc/loop.texi: Likewise.
4708 * doc/makefile.texi: Likewise.
4709 * doc/md.texi: Likewise.
4710 * doc/passes.texi: Likewise.
4711 * doc/tm.texi: Likewise.
4712 * doc/tree-ssa.texi: Likewise.
4713 * doc/trouble.texi: Likewise.
4715 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
4716 Nathan Sidwell <nathan@codesourcery.com>
4717 Maxim Kuvyrkov <maxim@codesourcery.com>
4718 Richard Sandiford <rdsandiford@googlemail.com>
4720 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4721 * config/mips/mips-protos.h (mips_expand_vector_init): New.
4722 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4724 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4725 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4726 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4728 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4729 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4730 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4731 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4732 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4733 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4734 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4735 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4736 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4737 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4738 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4739 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4740 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4741 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4742 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4743 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4744 (mips_builtins): Add Loongson builtins.
4745 (mips_loongson_2ef_bdesc): New.
4746 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4747 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4748 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4749 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4751 (mips_expand_vector_init): New.
4752 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4753 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4755 * config/mips/mips.md: Add unspec numbers for Loongson
4756 builtins. Include loongson.md.
4757 (MOVE64): Include Loongson vector modes.
4758 (SPLITF): Include Loongson vector modes.
4759 (HALFMODE): Handle Loongson vector modes.
4760 * config/mips/loongson.md: New.
4761 * config/mips/loongson.h: New.
4762 * config.gcc: Add loongson.h header for mips*-*-* targets.
4763 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4765 2008-06-14 Joseph Myers <joseph@codesourcery.com>
4767 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4768 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4769 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4770 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4771 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4772 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4773 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4774 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4775 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4776 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4777 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4778 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4779 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4780 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4781 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4782 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4783 Remove use_fixproto=yes.
4784 (ia64*-*-hpux*): Remove comment about using fixproto.
4785 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4787 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4789 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4791 * configure: Regenerate.
4793 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
4796 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4797 before evaluating it.
4799 2008-06-13 Jakub Jelinek <jakub@redhat.com>
4802 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4803 nested inline functions.
4804 (start_decl, start_function): Don't invert DECL_EXTERNAL
4805 for nested inline functions.
4807 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4809 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4810 splits that must be made for correctness.
4812 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4814 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4815 (AVAIL_NON_MIPS16): Likewise.
4816 (mips_builtin_description): Replace target_flags with a predicate.
4817 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4818 (dspr2_32): New availability predicates.
4819 (MIPS_BUILTIN): New macro.
4820 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4821 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4822 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4823 Replace the TARGET_FLAGS parameters with AVAIL parameters.
4824 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4825 (mips_dsp_32only_bdesc): Merge into...
4826 (mips_builtins): ...this new array.
4827 (mips_bdesc_map, mips_bdesc_arrays): Delete.
4828 (mips_init_builtins): Update after above changes.
4829 (mips_expand_builtin_1): Merge into...
4830 (mips_expand_builtin): ...here and update after above changes.
4832 2008-06-12 Paul Brook <paul@codesourcery.com>
4834 * longlong.h (__arm__): Define count_leading_zeros.
4835 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4836 (clzsi2, clzdi2): New functions.
4837 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4838 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4839 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4840 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4841 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4842 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4843 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4844 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4845 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4846 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4848 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
4850 * config/m68k/m68k.c (m68k_tune_flags): New.
4851 (override_options): Compute m68k_tune_flags.
4852 (MULL_COST, MULW_COST): Update for various variants of CFV2.
4853 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4855 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4858 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4860 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4862 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4863 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4865 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4867 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4868 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4870 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4873 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4876 2008-06-12 Richard Guenther <rguenther@suse.de>
4878 PR tree-optimization/36345
4879 * tree-flow.h (struct ptr_info_def): Align escape_mask,
4880 add memory_tag_needed flag.
4881 (may_alias_p): Declare.
4882 * tree-ssa-alias.c (may_alias_p): Export.
4883 (set_initial_properties): Use memory_tag_needed flag.
4884 (update_reference_counts): Likewise.
4885 (reset_alias_info): Reset memory_tag_needed flag.
4886 (create_name_tags): Check memory_tag_needed flag.
4887 (dump_points_to_info_for): Dump it.
4888 * tree-ssa-structalias.c (struct variable_info): Remove
4889 directly_dereferenced flag.
4890 (new_var_info): Do not initialize it.
4891 (process_constraint_1): Do not set it.
4892 (update_alias_info): Set is_dereferenced flag.
4893 (set_uids_in_ptset): Use may_alias_p.
4894 (set_used_smts): Check memory_tag_needed flag.
4895 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
4896 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4897 memory_tag_needed flag.
4898 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4901 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
4903 * config/i386/i386.c (ix86_compute_frame_layout): Disable
4904 red zone for w64 abi.
4905 (ix86_expand_prologue): Likewise.
4906 (ix86_force_to_memory): Likewise.
4907 (ix86_free_from_memory): Likewise.
4909 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
4912 * config/rs6000/rs6000.c (rs6000_override_options): Set
4913 rs6000_isel conditionally to the absence of comand line override.
4914 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4915 Remove duplicate rs6000_isel setting.
4916 * config/rs6000/eabispe.h: Ditto.
4918 2008-06-11 Richard Guenther <rguenther@suse.de>
4920 * alias.c (get_alias_set): Use the element alias-set for arrays.
4921 (record_component_aliases): For arrays and vectors do nothing.
4922 * c-common.c (strict_aliasing_warning): Handle the cases
4923 of alias set zero explicitly.
4924 * Makefile.in (dfp.o-warn): Add -Wno-error.
4926 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4928 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4930 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4931 tune_32 tune_64 to supported_defaults. Allow values not
4932 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4933 x86_64. Do not override cpu_32 or cpu_64 values from target name.
4934 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4935 with_cpu_64 to generic for 64-bit-supporting configurations, not
4936 with_cpu. Remove FIXMEs.
4937 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4938 --with-arch-64, --with-tune-32, --with-tune-64): Document.
4939 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4940 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4941 arch_32 and arch_64.
4943 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
4944 Olivier Hainque <hainque@adacore.com>
4946 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4947 Use DECL_SIZE_UNIT to retrieve the size of the field.
4949 2008-06-11 Joseph Myers <joseph@codesourcery.com>
4951 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4952 with function calls after declarations. Lay out
4953 neon_float_type_node before further use.
4955 2008-06-11 Richard Guenther <rguenther@suse.de>
4957 * tree-flow.h (may_point_to_global_var): Declare.
4958 * tree-ssa-alias.c (may_point_to_global_var): New function.
4959 * tree-ssa-sink.c (is_hidden_global_store): Use it.
4961 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
4963 * configure.ac: Teach that fido supports .debug_line.
4964 * configure: Regenerate.
4966 2008-06-10 Tom Tromey <tromey@redhat.com>
4968 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4971 2008-06-10 Joseph Myers <joseph@codesourcery.com>
4973 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4974 (encode_decimal64, decode_decimal64, encode_decimal128,
4975 decode_decimal128): Reverse order of 32-bit parts of value if host
4976 and target endianness differ.
4978 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
4980 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4981 Avoid division by 0.
4982 (tree_mod_pow2_value_transform): Likewise.
4983 (tree_ic_transform): Likewise.
4984 (tree_stringops_transform): Likewise.
4985 (tree_mod_subtract_transform): Likewise.
4986 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4987 (copy_edges_for_bb): Likewise.
4988 (initialize_cfun): Likewise.
4990 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
4992 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4993 nonmemory_operand. Add "N" operand constraint.
4995 (*jcc_btdi_mask_rex64): New instruction and split pattern.
4996 (*jcc_btsi_mask): Ditto.
4997 (*jcc_btsi_mask_1): Ditto.
4999 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5001 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5002 TYPE_CANONICAL for copied element type.
5004 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5007 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5008 Add m_CORE2 and m_GENERIC.
5009 * config/i386/predicates.md (bt_comparison_operator): New predicate.
5010 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5012 (*jcc_btdi_rex64): New instruction and split pattern.
5014 (*jcc_btsi_1): Ditto.
5015 (*btsq): Fix Intel asm dialect operand order.
5019 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
5022 * simplify-rtx.c (simplify_subreg): Add check for shift count
5025 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
5027 * doc/md.texi: Synchronize with later constraints.md change.
5028 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5029 with a C implementation.
5030 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5032 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5033 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5034 when moving to and from MD_REGNUM.
5035 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5036 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5037 Handle byte and halfword moves.
5038 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5040 * config/mips/constraints.md (h): Turn into NO_REGS.
5041 (l, x): Update documentation.
5042 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5043 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5044 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5045 (HILO): New mode iterator.
5047 (any_div): New code iterator.
5048 (u): Extend code attribute to div and udiv.
5049 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5050 d_operand in the splitters. Remove redundant CONST_INT checks.
5051 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5052 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5053 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
5054 accordingly, using normal moves instead of unspecs to move LO into
5055 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
5056 (<u>mulsidi3): Handle expansion in C code.
5057 (<u>mulsidi3_32bit_internal): Rename to...
5058 (<u>mulsidi3_32bit): ...this.
5059 (<u>mulsidi3_32bit_r4000): Fix insn separator.
5060 (*<u>mulsidi3_64bit): Rename to...
5061 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
5062 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
5063 to set LO and HI to the multiplication result. Use a normal move
5064 for MFLO and an unspec for MFHI.
5065 (*<u>mulsidi3_64bit_parts): Replace with...
5066 (<u>mulsidi3_64bit_hilo): ...this new instruction.
5067 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5068 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5069 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
5070 instead of HI. Split the instruction into a separate multiplication
5071 and MFHI if !TARGET_FIX_R4000.
5072 (<su>muldi3_highpart): Likewise.
5073 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5074 and the "=h" clobber.
5075 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5076 (<u>mulditi3): New expander.
5077 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5078 (madsi): Remove "=h" clobber.
5079 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5080 Force the modulus result to be a GPR and split the instruction into
5081 a division followed by an MFHI after reload.
5082 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5083 (*lea_high64): Use d_operand in the define_peephole2. Likewise
5084 the MIPS16 HIGH define_split.
5085 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5086 of acc<->gpr moves to "multi".
5087 (*movdi_64bit): Replace the single "x" alternative with
5088 alternatives for moving into and out of "a".
5089 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
5090 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5091 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5092 Use d_operand in the splitters. Remove redundant CONST_INT checks.
5093 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
5094 (movti): New expander.
5095 (*movti, *movti_mips16): New insns.
5096 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5097 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5098 (mthi<GPR:mode>_<HILO:mode>): Likewise.
5099 * config/mips/predicates.md (fpr_operand): Delete.
5100 (d_operand): New predicate.
5102 2008-06-09 Michael Meissner <michael.meissner@amd.com>
5104 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5105 failure on some Bourne shells.
5106 (x86_64-*-*): Ditto.
5108 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
5110 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5112 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5114 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5115 (sparc-sun-solaris2*): Likewise.
5117 2008-06-09 Arnaud Charlet <charlet@adacore.com
5119 * doc/install.texi: Update requirements to build the Ada compiler.
5121 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
5123 * df-scan.c (struct df_scan_problem_data): Remove the
5124 mw_link_pool alloc pool.
5125 (df_scan_free_internal): Don't free it.
5126 (df_scan_alloc): Don't allocate it.
5127 * df.h (struct df_link): Update comment.
5129 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
5131 * except.h: Correct checks for when SJLJ exceptions must be used.
5133 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5135 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5138 2008-06-08 Joseph Myers <joseph@codesourcery.com>
5140 PR tree-optimization/36218
5141 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5142 configure for the build system.
5143 (BUILD_LDFLAGS): Define.
5144 * configure: Regenerate.
5145 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5147 2008-07-08 Anatoly Sokolov <aesok@post.ru>
5150 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5151 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5152 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5154 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
5156 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5158 2008-06-07 Joseph Myers <joseph@codesourcery.com>
5160 * config.gcc (Obsolete configurations): Remove list of
5162 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5163 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
5164 targets matched by those patterns.
5165 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5166 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5167 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5168 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5169 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5170 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5171 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5172 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5173 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5174 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5175 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5176 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5177 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5178 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5179 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5180 Make code for Solaris 7 and greater unconditional for Solaris.
5181 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5182 Remove --with-* handling.
5183 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5184 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5185 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5186 LINK_OS_WINDISS_SPEC): Remove.
5187 * config/rs6000/sysv4.opt (mwindiss): Remove.
5188 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5189 * configure: Regenerate.
5190 * doc/cpp.texi: Don't mention BeOS.
5191 * doc/extend.texi (interrupt): Don't mention MS1.
5192 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5193 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5194 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5195 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5196 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5198 * doc/invoke.texi (MT Options): Remove.
5199 (-mwindiss): Remove.
5200 (CRIS Options): Remove cris-axis-aout references.
5201 (HPPA Options): Don't mention hppa1.1-*-pro.
5202 * doc/md.texi: (MorphoTech family): Remove.
5203 * libgcc2.c: Don't handle UWIN.
5204 * config/alpha/t-unicosmk: Remove.
5205 * config/alpha/unicosmk.h: Remove.
5206 * config/arm/kaos-arm.h: Remove.
5207 * config/arm/kaos-strongarm.h: Remove.
5208 * config/arm/strongarm-coff.h: Remove.
5209 * config/arm/strongarm-elf.h: Remove.
5210 * config/arm/strongarm-pe.h: Remove.
5211 * config/arm/t-strongarm-pe: Remove.
5212 * config/arm/t-xscale-coff: Remove.
5213 * config/arm/t-xscale-elf: Remove.
5214 * config/arm/xscale-coff.h: Remove.
5215 * config/arm/xscale-elf.h: Remove.
5216 * config/chorus.h: Remove.
5217 * config/cris/aout.h: Remove.
5218 * config/cris/aout.opt: Remove.
5219 * config/cris/t-aout: Remove.
5220 * config/i386/beos-elf.h: Remove.
5221 * config/i386/kaos-i386.h: Remove.
5222 * config/i386/ptx4-i.h: Remove.
5223 * config/i386/sco5.h: Remove.
5224 * config/i386/sco5.opt: Remove.
5225 * config/i386/sysv4-cpp.h: Remove.
5226 * config/i386/sysv5.h: Remove.
5227 * config/i386/t-beos: Remove.
5228 * config/i386/t-sco5: Remove.
5229 * config/i386/t-uwin: Remove.
5230 * config/i386/uwin.asm: Remove.
5231 * config/i386/uwin.h: Remove.
5232 * config/kaos.h: Remove.
5233 * config/mips/windiss.h: Remove.
5234 * config/mt: Remove directory.
5235 * config/pa/pa-osf.h: Remove.
5236 * config/pa/pa-pro-end.h: Remove.
5237 * config/pa/t-pro: Remove.
5238 * config/ptx4.h: Remove.
5239 * config/rs6000/beos.h: Remove.
5240 * config/rs6000/kaos-ppc.h: Remove.
5241 * config/rs6000/t-beos: Remove.
5242 * config/rs6000/windiss.h: Remove.
5243 * config/sh/kaos-sh.h: Remove.
5244 * config/sol2-6.h: Remove.
5245 * config/sparc/sol26-sld.h: Remove.
5246 * config/sparc/sysv4-only.h: Remove.
5247 * config/vax/bsd.h: Remove.
5248 * config/vax/t-memfuncs: Remove.
5249 * config/vax/ultrix.h: Remove.
5250 * config/vax/vaxv.h: Remove.
5251 * config/windiss.h: Remove.
5253 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5255 PR rtl-optimization/36438
5256 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5257 for vector shifts with constant scalar shift operands.
5259 2008-06-06 Sandip Matte <sandip@rmicorp.com>
5261 * doc/invoke.texi: Document -march=xlr.
5262 * config/mips/xlr.md: New file.
5263 * config/mips/mips.md: Include it.
5265 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5266 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5267 (mips_rtx_cost_data): Likewise.
5269 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
5271 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5272 PRE_INC and PRE_DEC cases.
5274 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5276 PR rtl-optimization/36419
5277 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5278 the emitting jump insn.
5281 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5282 is not bool, boolify the whole *expr_p and convert to the desired type.
5284 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5286 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5287 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5288 Add omp_private_outer_ref hook, add another argument to
5289 omp_clause_default_ctor hook.
5290 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5291 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5292 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5293 hook_tree_tree_tree_tree_null.
5294 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5295 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5296 * hooks.c (hook_tree_tree_tree_tree_null): New function.
5297 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5298 * tree.def (OMP_TASK): New tree code.
5299 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5300 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5301 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5302 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5303 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5304 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5305 OMP_CLAUSE_COLLAPSE_EXPR): Define.
5306 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5307 (OMP_DIRECTIVE_P): Add OMP_TASK.
5308 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5309 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5310 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5311 and OMP_CLAUSE_UNTIED entries.
5312 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
5314 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5315 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5316 * tree-pretty-print.c (dump_omp_clause): Handle
5317 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5318 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5319 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5320 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
5321 warning about unsigned iterators. Change decl/init/cond/incr
5322 arguments to TREE_VECs, check arguments for all collapsed loops.
5323 (c_finish_omp_taskwait): New function.
5324 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5326 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
5327 default_function_array_conversion on init. Add par_clauses argument.
5328 If decl is present in parallel's lastprivate clause, change it to
5329 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5330 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
5331 collapse count in clauses.
5332 (c_parser_omp_for, c_parser_omp_parallel): Adjust
5333 c_parser_omp_for_loop callers.
5334 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5335 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5336 (c_parser_omp_clause_name): Handle collapse and untied clauses.
5337 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5339 (c_parser_omp_clause_schedule): Handle schedule(auto).
5340 Include correct location in the error message.
5341 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5342 and PRAGMA_OMP_CLAUSE_UNTIED.
5343 (OMP_TASK_CLAUSE_MASK): Define.
5344 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5345 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5346 * tree-nested.c (convert_nonlocal_omp_clauses,
5347 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5348 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5349 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5350 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5352 (conver_nonlocal_reference, convert_local_reference,
5353 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
5354 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5355 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5356 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5357 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5358 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5359 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5360 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5361 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5363 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5364 * c-common.h (c_finish_omp_taskwait): New prototype.
5365 * gimple-low.c (lower_stmt): Handle OMP_TASK.
5366 * tree-parloops.c (create_parallel_loop): Create 1 entry
5367 vectors for OMP_FOR_{INIT,COND,INCR}.
5368 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5369 (make_edges): Handle OMP_TASK.
5370 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5371 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5372 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5373 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5374 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5375 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5376 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5377 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5378 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5379 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5380 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5381 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5382 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5383 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5384 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5385 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5386 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5387 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5388 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5389 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5390 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5391 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5392 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5393 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5394 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5395 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5396 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
5397 original iterator is present in lastprivate clause or if
5398 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
5399 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5400 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5401 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5402 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5403 if it is set, lookup var in outer contexts too. Handle
5404 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
5405 to be implicitly determined firstprivate for task regions.
5406 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5407 if it is set, lookup var in outer contexts too. Set
5408 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5409 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5410 OMP_CLAUSE_UNTIED. Take region_type as last argument
5411 instead of in_parallel and in_combined_parallel.
5412 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5414 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5415 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
5416 (new_omp_context): Set default_kind to
5417 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5418 (omp_region_type): New enum.
5419 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5420 fields, add region_type.
5421 (new_omp_context): Take region_type as argument instead of is_parallel
5422 and is_combined_parallel.
5423 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5424 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5425 ctx->is_combined_parallel checks.
5426 (gimplify_omp_task): New function.
5427 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5429 * omp-low.c (extract_omp_for_data): Use schedule(static)
5430 for schedule(auto). Handle pointer and unsigned iterators.
5431 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
5432 Add loops argument. Extract data for collapsed OMP_FOR loops.
5433 (expand_parallel_call): Assert sched_kind isn't auto,
5434 map runtime schedule to index 3.
5435 (struct omp_for_data_loop): New type.
5436 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5437 Add loop, loops, collapse and iter_type fields.
5438 (workshare_safe_to_combine_p): Disallow combined for if
5439 iter_type is unsigned long long. Don't combine collapse > 1 loops
5440 unless all bounds and steps are constant. Adjust extract_omp_for_data
5442 (expand_omp_for_generic): Handle pointer, unsigned and long long
5443 iterators. Handle collapsed OMP_FOR loops. Adjust
5444 for struct omp_for_data changes. If libgomp function doesn't return
5445 boolean_type_node, add comparison of the return value with 0.
5446 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5447 pointer, unsigned and long long iterators. Adjust for struct
5448 omp_for_data changes.
5449 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5450 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
5451 unsigned long long. Allocate loops array, pass it to
5452 extract_omp_for_data. For collapse > 1 loops use always
5453 expand_omp_for_generic.
5454 (omp_context): Add sfield_map and srecord_type fields.
5455 (is_task_ctx, lookup_sfield): New functions.
5456 (use_pointer_for_field): Use is_task_ctx helper. Change first
5457 argument's type from const_tree to tree. Clarify comment.
5458 In OMP_TASK disallow copy-in/out sharing.
5459 (build_sender_ref): Call lookup_sfield instead of lookup_field.
5460 (install_var_field): Add mask argument. Populate both record_type
5461 and srecord_type if needed.
5462 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5464 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5465 and DECL_FIELD_OFFSET.
5466 (scan_sharing_clauses): Adjust install_var_field callers. For
5467 firstprivate clauses on explicit tasks allocate the var by value in
5468 record_type unconditionally, rather than by reference.
5469 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5470 Use is_taskreg_ctx instead of is_parallel_ctx.
5471 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5472 (create_omp_child_function_name): Add task_copy argument, use
5473 *_omp_cpyfn* names if it is true.
5474 (create_omp_child_function): Add task_copy argument, if true create
5475 *_omp_cpyfn* helper function.
5476 (scan_omp_parallel): Adjust create_omp_child_function callers.
5477 Rename parallel_nesting_level to taskreg_nesting_level.
5478 (scan_omp_task): New function.
5479 (lower_rec_input_clauses): Don't run constructors for firstprivate
5480 explicit task vars which are initialized by *_omp_cpyfn*.
5481 Pass outer var ref to omp_clause_default_ctor hook if
5482 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5483 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5484 OMP_CLAUSE_REDUCTION_INIT.
5485 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5486 avoid duplicate setting of fields. Handle
5487 OMP_CLAUSE_PRIVATE_OUTER_REF.
5488 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
5489 copy-out if TREE_READONLY, only copy-in.
5490 (expand_task_copyfn): New function.
5491 (expand_task_call): New function.
5492 (struct omp_taskcopy_context): New type.
5493 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5495 (lower_omp_parallel): Rename to...
5496 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5497 Call create_task_copyfn if srecord_type is needed. Adjust
5499 (task_shared_vars): New variable.
5500 (check_omp_nesting_restrictions): Warn if work-sharing,
5501 barrier, master or ordered region is closely nested inside OMP_TASK.
5502 Add warnings for barrier if closely nested inside of work-sharing,
5503 ordered, or master region.
5504 (scan_omp_1): Call check_omp_nesting_restrictions even for
5505 GOMP_barrier calls. Rename parallel_nesting_level to
5506 taskreg_nesting_level. Handle OMP_TASK.
5507 (lower_lastprivate_clauses): Even if some lastprivate is found on a
5508 work-sharing construct, continue looking for them on parent parallel
5510 (lower_omp_for_lastprivate): Add lastprivate clauses
5511 to the beginning of dlist rather than end. Adjust for struct
5512 omp_for_data changes.
5513 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5514 not after it. Handle collapsed OMP_FOR loops, adjust for
5515 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5516 (get_ws_args_for): Adjust extract_omp_for_data caller.
5517 (scan_omp_for): Handle collapsed OMP_FOR
5518 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5519 (lower_omp_single_simple): If libgomp function doesn't return
5520 boolean_type_node, add comparison of the return value with 0.
5521 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5522 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
5523 (parallel_nesting_level): Rename to...
5524 (taskreg_nesting_level): ... this.
5525 (is_taskreg_ctx): New function.
5526 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5528 (execute_lower_omp): Rename parallel_nesting_level to
5529 taskreg_nesting_level.
5530 (expand_omp_parallel): Rename to...
5531 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5532 Call omp_task_call for OMP_TASK regions.
5533 (expand_omp): Adjust caller, handle OMP_TASK.
5534 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5536 * bitmap.c (bitmap_default_obstack_depth): New variable.
5537 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5538 if argument is NULL and bitmap_default_obstack is already initialized.
5539 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5541 * matrix-reorg.c (matrix_reorg): Likewise.
5543 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5545 * config/i386/i386.md (*indirect_jump): Macroize using P
5546 mode iterator. Remove !TARGET_64BIT from insn constraints.
5547 (*tablejump_1): Ditto.
5548 (*indirect_jump_rex64): Remove insn pattern.
5549 (*tablejump_1_rex64): Ditto.
5550 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5551 and eh_return_si insn patterns.
5553 2008-06-06 Richard Guenther <rguenther@suse.de>
5555 * tree-ssa-structalias.c (merge_smts_into): Remove.
5556 (find_what_p_points_to): Do not bother to compute the
5557 points-to set for pt_anything pointers.
5558 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5559 for pt_anything pointers is ok.
5561 2008-06-06 Jan Hubicka <jh@suse.cz>
5563 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5565 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5567 * cgraph.c: Fix typos in comments.
5568 (cgraph_availability_names): Fix string typo.
5569 * fold-const.c: Fix typos in comments.
5570 (fold_binary): Fix typo in warning.
5571 * genautomata.c: Fix typos in comments.
5572 (check_presence_pattern_sets): Fix typo in local variable.
5573 (output_description): Fix typo in output.
5574 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5575 * hwint.h: Likewise.
5576 * matrix-reorg.c (check_allocation_function): Likewise.
5577 * omega.c (smooth_weird_equations): Likewise.
5578 * auto-inc-dec.c: Fix typos in comments.
5579 * bb-reorder.c: Likewise.
5580 * builtins.c: Likewise.
5581 * c-common.c: Likewise.
5582 * c-cppbuiltin.c: Likewise.
5583 * c-parser.c: Likewise.
5584 * c-pretty-print.c: Likewise.
5585 * cfgcleanup.c: Likewise.
5586 * cfgexpand.c: Likewise.
5587 * cfghooks.c: Likewise.
5588 * cfglayout.c: Likewise.
5589 * cfgloopmanip.c: Likewise.
5590 * cgraphunit.c: Likewise.
5591 * coverage.c: Likewise.
5592 * dbxout.c: Likewise.
5593 * df-byte-scan.c: Likewise.
5594 * df-core.c: Likewise.
5595 * df-problems.c: Likewise.
5596 * df-scan.c: Likewise.
5598 * dominance.c: Likewise.
5599 * domwalk.c: Likewise.
5601 * dwarf2out.c: Likewise.
5602 * emit-rtl.c: Likewise.
5603 * et-forest.c: Likewise.
5604 * function.c: Likewise.
5605 * function.h: Likewise.
5607 * gcov-io.c: Likewise.
5610 * genattrtab.c: Likewise.
5611 * ggc-page.c: Likewise.
5612 * gimplify.c: Likewise.
5613 * gthr-lynx.h: Likewise.
5614 * haifa-sched.c: Likewise.
5615 * ipa-cp.c: Likewise.
5616 * ipa-inline.c: Likewise.
5617 * ipa-prop.h: Likewise.
5618 * ipa-pure-const.c: Likewise.
5619 * ipa-struct-reorg.c: Likewise.
5620 * ipa-struct-reorg.h: Likewise.
5621 * ipa-type-escape.c: Likewise.
5623 * loop-doloop.c: Likewise.
5624 * mips-tfile.c: Likewise.
5625 * mkmap-flat.awk: Likewise.
5626 * mkmap-symver.awk: Likewise.
5627 * modulo-sched.c: Likewise.
5628 * omp-low.c: Likewise.
5629 * optabs.c: Likewise.
5630 * optabs.h: Likewise.
5632 * passes.c: Likewise.
5633 * postreload-gcse.c: Likewise.
5634 * postreload.c: Likewise.
5635 * predict.c: Likewise.
5636 * pretty-print.h: Likewise.
5637 * profile.c: Likewise.
5638 * protoize.c: Likewise.
5639 * ra-conflict.c: Likewise.
5641 * recog.c: Likewise.
5642 * regclass.c: Likewise.
5644 * reload.c: Likewise.
5645 * rtl-error.c: Likewise.
5646 * rtlanal.c: Likewise.
5648 * sched-rgn.c: Likewise.
5651 * target.h: Likewise.
5652 * tree-dfa.c: Likewise.
5653 * tree-eh.c: Likewise.
5654 * tree-flow-inline.h: Likewise.
5655 * tree-inline.c: Likewise.
5656 * tree-into-ssa.c: Likewise.
5657 * tree-loop-distribution.c: Likewise.
5658 * tree-nested.c: Likewise.
5659 * tree-parloops.c: Likewise.
5660 * tree-pass.h: Likewise.
5661 * tree-pretty-print.c: Likewise.
5662 * tree-profile.c: Likewise.
5663 * tree-scalar-evolution.c: Likewise.
5664 * tree-sra.c: Likewise.
5665 * tree-ssa-alias-warnings.c: Likewise.
5666 * tree-ssa-ccp.c: Likewise.
5667 * tree-ssa-coalesce.c: Likewise.
5668 * tree-ssa-dom.c: Likewise.
5669 * tree-ssa-dse.c: Likewise.
5670 * tree-ssa-forwprop.c: Likewise.
5671 * tree-ssa-live.c: Likewise.
5672 * tree-ssa-live.h: Likewise.
5673 * tree-ssa-loop-im.c: Likewise.
5674 * tree-ssa-loop-ivopts.c: Likewise.
5675 * tree-ssa-loop-niter.c: Likewise.
5676 * tree-ssa-loop-prefetch.c: Likewise.
5677 * tree-ssa-phiopt.c: Likewise.
5678 * tree-ssa-phiprop.c: Likewise.
5679 * tree-ssa-sccvn.c: Likewise.
5680 * tree-ssa-ter.c: Likewise.
5681 * tree-ssa-threadupdate.c: Likewise.
5682 * tree-ssa.c: Likewise.
5683 * tree-vect-analyze.c: Likewise.
5684 * tree-vect-transform.c: Likewise.
5685 * tree-vectorizer.c: Likewise.
5686 * tree-vn.c: Likewise.
5687 * tree-vrp.c: Likewise.
5689 * tree.def: Likewise.
5691 * unwind-dw2-fde.c: Likewise.
5692 * unwind.inc: Likewise.
5693 * value-prof.c: Likewise.
5694 * vmsdbgout.c: Likewise.
5696 2008-06-05 David Edelsohn <edelsohn@gnu.org>
5698 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5699 always place FP constants in the TOC for TARGET_POWERPC64.
5700 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5702 2008-06-05 Joseph Myers <joseph@codesourcery.com>
5704 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5705 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5706 enable for TARGET_E500_DOUBLE.
5707 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5708 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5709 floating-point modes like integer modes for E500 double.
5710 (rs6000_legitimate_offset_address_p): Likewise.
5711 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
5712 addressing for DDmode for E500 double.
5713 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5714 modes as using 64-bits of registers for E500 double.
5715 (spe_build_register_parallel): Do not handle DDmode or TDmode.
5716 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5717 specially for E500 double.
5718 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5719 TDmode for E500 double.
5720 (rs6000_gimplify_va_arg): Only handle SDmode in registers
5721 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5722 (rs6000_split_multireg_move): Do not handle TDmode specially for
5724 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5725 using 64-bit registers for E500 double.
5726 (emit_frame_save): Do not handle DDmode specially for E500 double.
5727 (gen_frame_mem_offset): Likewise.
5728 (rs6000_function_value): Do not call spe_build_register_parallel
5729 for DDmode or TDmode.
5730 (rs6000_libcall_value): Likewise.
5731 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5732 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5735 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
5737 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5740 2008-06-04 Junjie Gu <jgu@tensilica.com>
5742 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5743 comparison for frame pointers.
5745 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
5748 * config/avr/avr.h (PUSH_ROUNDING): Remove.
5750 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
5753 * builtins.c (expand_builtin_signbit): Don't take lowpart when
5754 register is already smaller or equal to required mode.
5756 2008-06-04 Xinliang David Li <davidxl@google.com>
5758 * tree-call-cdce.c: New file.
5759 (cond_dead_built_in_calls): New static variable.
5760 (input_domain): New struct.
5761 (check_pow): New function.
5762 (check_builtin_call): Ditto.
5763 (check_target_format): Ditto.
5764 (is_call_dce_candidate): Ditto.
5765 (gen_one_condition): Ditto.
5766 (gen_conditions_for_domain): Ditto.
5767 (get_domain): Ditto.
5768 (gen_conditions_for_pow_cst_base): Ditto.
5769 (gen_conditions_for_pow_int_base): Ditto.
5770 (gen_conditions_for_pow): Ditto.
5771 (get_no_error_domain): Ditto.
5772 (gen_shrink_wrap_conditions): Ditto.
5773 (shrink_wrap_one_built_in_call): Ditto.
5774 (shink_wrap_conditional_dead_built_in_calls): Ditto.
5775 (tree_call_cdce): Ditto.
5776 (gate_call_cdce): Ditto.
5777 (pass_call_cdce): New gimple pass.
5778 * passes.c: (init_optimization_passes): New pass.
5779 * tree-pass.h: New pass declaration.
5780 * opts.c (decode_options): New flag setting.
5781 * common.opt: Add -ftree-builtin-call-dce flag.
5782 * Makefile.in: Add new source file.
5783 * tempvar.def: New tv_id.
5784 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5786 2008-06-04 Richard Guenther <rguenther@suse.de>
5788 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5789 (is_call_clobbered): Always check var_ann->call_clobbered.
5790 (mark_call_clobbered): Always set var_ann->call_clobbered.
5791 (clear_call_clobbered): Always clear var_ann->call_clobbered.
5792 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5793 (reset_alias_info): Clear call clobbering info on MTAGs and
5795 (set_pt_anything): Set pt_global_mem.
5796 (create_tag_raw): Adjust comment.
5797 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5799 2008-06-04 Joseph Myers <joseph@codesourcery.com>
5800 Maxim Kuvyrkov <maxim@codesourcery.com>
5802 * config/m68k/m68k.opt (mxgot): New option.
5803 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5804 (m68k_output_addr_const_extra): New.
5805 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5806 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5807 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5808 * doc/invoke.texi (M680x0 Options): Document -mxgot.
5810 2008-06-04 Richard Guenther <rguenther@suse.de>
5812 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5813 negative or non-representable offsets.
5815 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
5817 * config/i386/i386.c (ix86_gen_leave): New.
5818 (ix86_gen_pop1): Likewise.
5819 (ix86_gen_add3): Likewise.
5820 (ix86_gen_sub3): Likewise.
5821 (ix86_gen_sub3_carry): Likewise.
5822 (ix86_gen_one_cmpl2): Likewise.
5823 (ix86_gen_monitor): Likewise.
5824 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5825 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5826 ix86_gen_one_cmpl2 and ix86_gen_monitor.
5827 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5828 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5829 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5830 (ix86_expand_epilogue): Updated.
5831 (print_operand): Handle integer register operand for 'z'.
5832 (ix86_expand_strlensi_unroll_1): Likewise.
5833 (ix86_expand_strlen): Likewise.
5834 (ix86_expand_builtin): Likewise.
5835 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5836 mov{q}/mov{l} and add{q}/add{l}.
5838 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5840 * config/i386/i386.md (P): New mode iterator.
5841 (SFmode push_operand splitter): Macroize DImode and SImode pushes
5842 using P mode iterator.
5843 (DFmode push_operand splitter): Ditto.
5844 (XFmode push_operand splitter): Ditto.
5845 (DFmode float_extend SFmode push_operand splitter): Ditto.
5846 (XFmode float_extend SFmode push_operand splitter): Do not generate
5847 SImode pushes for 64bit target. Macroize Dimode and SImode
5848 pushes using P mode iterator.
5849 (XFmode float_extend DFmode push_operand splitter): Ditto.
5851 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5853 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5854 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5855 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5857 (ix86_call_abi_override): Remove check for call_used_regs.
5859 2008-06-03 Richard Guenther <rguenther@suse.de>
5861 * tree-ssa-structalias.c (find_func_aliases): Add constraints
5862 for the lhs of calls if the return type contains pointers.
5864 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5866 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5867 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5868 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5869 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5870 of cfun and DEFAULT_ABI to deceide abi mode.
5872 (REG_PARM_STACK_SPACE): Removed.
5873 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5874 (STACK_BOUNDARY): Use default target to deceide stack boundary.
5875 * config/i386/i386-protos.h (ix86_cfun_abi): New.
5876 (ix86_function_abi): Likewise.
5877 (ix86_function_type_abi): Likewise.
5878 (ix86_call_abi_override): Likewise.
5879 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5880 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5881 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5882 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5884 (X86_64_REGPARM_MAX): New.
5885 (X86_64_SSE_REGPARM_MAX): New.
5886 (X64_REGPARM_MAX): New.
5887 (X64_SSE_REGPARM_MAX): New.
5888 (X86_32_REGPARM_MAX): New.
5889 (X86_32_SSE_REGPARM_MAX): New.
5890 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5891 (ix86_function_regparm): Handle user calling abi.
5892 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5893 by DEFAULT_ABI versus SYSV_ABI check.
5894 (ix86_reg_parm_stack_space): New.
5895 (ix86_function_type_abi): New.
5896 (ix86_call_abi_override): New.
5897 (ix86_function_abi): New.
5898 (ix86_cfun_abi): New.
5899 (init_cumulative_args): Call abi specific initialization.
5900 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5901 (function_arg_64): Extend SSE_REGPARM_MAX check.
5902 (function_arg (): Remove TARGET_64BIT_MS_ABI.
5903 (ix86_pass_by_reference): Likewise.
5904 (ix86_function_value_regno_p): Likewise.
5905 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5906 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5907 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5908 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5909 (setup_incoming_varargs_64): Adjust regparm for call abi.
5910 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5911 (ix86_va_start): Likewise.
5912 (ix86_gimplify_va_arg): Likewise.
5913 (ix86_expand_prologue): Likewise.
5914 (output_pic_addr_const): Likewise.
5915 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5916 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5917 (x86_output_mi_thunk): Likewise.
5918 (x86_function_profiler): Likewise.
5919 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5920 (SYSV_ABI, MS_ABI): New constants.
5922 (init_regs): Add prototype of function in regclass.c file.
5923 (OVERRIDE_ABI_FORMAT): New.
5924 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5925 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5926 (OUTGOING_REG_PARM_STACK_SPACE): New.
5927 (ix86_reg_parm_stack_space): New prototype.
5928 (CUMULATIVE_ARGS): Add call_abi member.
5929 (machine_function): Add call_abi member.
5930 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5931 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5933 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
5936 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5937 (avr_builtin_setjmp_frame_value): New function.
5938 * config/avr/avr.md (nonlocal_goto_receiver): Define.
5939 (nonlocal_goto): Define.
5941 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
5943 * config/mips/mips.c (mips_emit_loadgp): Return early if
5944 there is nothing do to, otherwise emit a blockage if
5945 !TARGET_EXPLICIT_RELOCS || crtl->profile.
5946 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5948 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5950 * configure.ac: Drop unneeded backslash ending up in config.in.
5951 * acinclude.m4: Likewise.
5952 * config.in: Regenerate.
5954 2008-05-26 Jan Hubicka <jh@suse.cz>
5956 * predict.c (maybe_hot_frequency_p): Break out of...
5957 (maybe_hot_bb_p): ... here.
5958 (maybe_hot_edge_p): New.
5959 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5960 * basic-block.h (maybe_hot_edge_p): Declare.
5962 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
5964 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5965 (*cmpfp_<mode>_cc): Ditto.
5966 (*fp_jcc_8<mode>_387): Ditto.
5967 (*fop_<MODEF:mode>_2_i387): Ditto.
5968 (*fop_<MODEF:mode>_3_i387): Ditto.
5969 (*fop_xf_2_i387): Ditto.
5970 (*fop_xf_3_i387): Ditto.
5972 2008-06-02 Tomas Bily <tbily@suse.cz>
5974 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5976 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5978 * config/mips/mips.c (mips_valid_offset_p): New function.
5979 (mips_valid_lo_sum_p): Likewise.
5980 (mips_classify_address): Use them.
5981 (mips_force_address): New function.
5982 (mips_legitimize_address): Use it.
5983 * config/mips/mips.md (MOVE128): New mode iterator.
5984 (movtf): Require TARGET_64BIT. Remove empty strings.
5985 (*movtf_internal): Rename to...
5986 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
5987 of "R" and use {,fp}{load,store} attributes instead of "multi".
5988 Use a separate define_split.
5989 (*movtf_mips16): New pattern.
5991 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5993 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5994 * config/mips/mips.c (mips_expand_before_return): New function.
5995 (mips_expand_epilogue): Call it.
5996 * config/mips/mips.md (return): Turn into a define_expand.
5997 (*return): New insn.
5999 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6001 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6002 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6003 functions. Do not emit uses and clobbers of CONCATs; individually
6004 use and clobber their operands.
6005 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6006 gen_clobber, emit_use and gen_use.
6007 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6008 (expand_builtin_return): Likewise.
6009 * cfgbuild.c (count_basic_blocks): Likewise.
6010 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6011 * explow.c (emit_stack_restore): Likewise.
6012 * expmed.c (extract_bit_field_1): Likewise.
6013 * expr.c (convert_move, emit_move_complex_parts): Likewise.
6014 (emit_move_multi_word, store_constructor): Likewise.
6015 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6016 (thread_prologue_and_epilogue_insns): Likewise.
6017 * lower-subreg.c (resolve_simple_move): Likewise.
6018 * optabs.c (widen_operand, expand_binop): Likewise.
6019 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6020 * reload.c (find_reloads): Likewise.
6021 * reload1.c (eliminate_regs_in_insn): Likewise.
6022 * stmt.c (expand_nl_goto_receiver): Likewise.
6023 * config/alpha/alpha.md (builtin_longjmp): Likewise.
6024 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6025 * config/arm/arm.c (arm_load_pic_register): Likewise.
6026 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6027 * config/arm/arm.md (untyped_return): Likewise.
6028 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6029 * config/avr/avr.c (expand_prologue): Likewise.
6030 * config/bfin/bfin.c (do_unlink): Likewise.
6031 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6032 * config/cris/cris.c (cris_expand_prologue): Likewise.
6033 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6034 (machopic_legitimize_pic_address): Likewise.
6035 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6036 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6037 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6038 (ix86_expand_convert_uns_didf_sse): Likewise.
6039 (ix86_expand_vector_init_general): Likewise.
6040 * config/ia64/ia64.md (eh_epilogue): Likewise.
6041 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6042 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6043 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6044 (config/iq2000/iq2000.c): Likewise.
6045 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6046 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6047 (builtin_longjmp): Likewise.
6048 * config/mn10300/mn10300.md (call, call_value): Likewise.
6049 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6050 * config/pdp11/pdp11.md (abshi2): Likewise.
6051 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6052 * config/s390/s390.c (s390_emit_prologue): Likewise.
6053 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6054 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6055 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6056 * config/sh/sh.c (prepare_move_operands): Likewise.
6057 (output_stack_adjust, sh_expand_epilogue): Likewise.
6058 (sh_set_return_address, sh_expand_t_scc): Likewise.
6059 * config/sparc/sparc.c (load_pic_register): Likewise.
6060 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6061 * config/spu/spu.c (spu_expand_epilogue): Likewise.
6062 * config/v850/v850.c (expand_epilogue): Likewise.
6064 2008-05-31 Anatoly Sokolov <aesok@post.ru>
6066 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6067 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6068 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6069 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6070 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6071 stack pointer register.
6072 (output_movhi): Remove code for interrupt specific writing to the
6073 stack pointer register.
6075 2008-05-31 Richard Guenther <rguenther@suse.de>
6077 PR tree-optimization/34244
6078 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6079 (tree_expr_nonzero_warnv_p): Likewise.
6080 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6081 ssa_name_nonnegative_p.
6082 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6083 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6084 not tree_expr_nonzero_warnv_p.
6086 PR tree-optimization/36262
6088 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
6090 PR tree-optimization/34244
6091 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6092 (record_numbers_of_iterations): New function.
6093 (execute_vrp): Cache the numbers of iterations of loops.
6094 * tree-scalar-evolution.c (scev_reset_except_niters):
6096 (scev_reset): Use scev_reset_except_niters.
6097 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6099 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
6101 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6102 __WORKAROUND_RETS when appropriate.
6104 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6106 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6107 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6109 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6110 *fop_df_comm_sse insn patterns using MODEF mode iterator.
6111 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6112 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6113 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6114 *fop_df_1_mixed insn patterns using MODEF mode iterator.
6115 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6116 *fop_df_1_sse insn patterns using MODEF mode iterator.
6117 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6118 *fop_df_1_i387 insn patterns using MODEF mode iterator.
6119 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6120 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6121 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6122 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6123 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6124 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6125 (*fop_xf_4_i387): Use <MODE> for mode attribute.
6126 (*fop_xf_5_i387): Ditto.
6127 (*fop_xf_6_i387): Ditto.
6129 2008-05-30 Richard Guenther <rguenther@suse.de>
6131 * builtins.c (build_string_literal): Avoid generating
6132 a non-gimple_val result.
6134 2008-05-30 DJ Delorie <dj@redhat.com>
6136 * exec-tool.in: Use an environment variable (private) instead of a
6137 file (shared) as a semaphore, so as to not break parallel builds.
6139 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6141 * optabs.c (maybe_encapsulate_block): Remove.
6142 (emit_libcall_block): Adjust accordingly.
6143 * optabs.h (maybe_encapsulate_block): Remove prototype.
6145 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6146 Don't use maybe_encapsulate_block.
6148 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6150 * config/rs6000/rs6000.c (rs6000_legitimize_address,
6151 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6152 rtx is a SYMBOL_REF before calling get_pool_constant.
6154 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
6156 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6158 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
6160 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6161 rather than OS names to choose INO_T_EQ definition.
6162 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6163 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6165 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
6168 * config/darwin-f.c: New.
6169 * config/t-darwin: Added rule to build darwin-f.o.
6170 * config.gcc: Defined new variable, fortran_target_objs.
6171 (*-*-darwin*): Set fortran_target_objs.
6172 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6173 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6174 * configure: Regenerated.
6176 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
6179 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6180 canonical type if needed.
6182 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
6184 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6186 2008-05-29 Richard Guenther <rguenther@suse.de>
6188 PR tree-optimization/36343
6189 PR tree-optimization/36346
6190 PR tree-optimization/36347
6191 * tree-flow.h (clobber_what_p_points_to): Declare.
6192 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6193 pointed-to variable is dereferenced is irrelevant to whether
6194 the pointer can access the pointed-to variable.
6195 (clobber_what_p_points_to): New function.
6196 * tree-ssa-alias.c (set_initial_properties): Use it.
6197 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6198 call clobber check for NMTs.
6200 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6202 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6203 for printing gcov_type.
6205 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6207 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6208 and the eh region information.
6209 * value-prof.c (gimple_move_stmt_histograms): New function.
6210 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6212 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
6214 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6216 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6218 * value-prof.c (tree_ic_transform): Print counts.
6219 * tree-profile.c (tree_gen_ic_func_profiler):
6220 Clear __gcov_indreict_call_callee variable to avoid misattribution
6223 2008-05-28 Rafael Espindola <espindola@google.com>
6225 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6228 2008-05-28 Richard Guenther <rguenther@suse.de>
6230 PR tree-optimization/36339
6231 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6232 and clobbering code out of the loop.
6234 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6236 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6239 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6240 s390_contiguous_bitmask_p, s390_symref_operand_p,
6241 s390_check_symref_alignment, s390_reload_larl_operand,
6242 s390_reload_symref_address): New functions.
6243 (s390_branch_condition_mnemonic): Support compare and branch
6245 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6246 and 'W' constraints.
6247 (s390_secondary_reload): Add secondary reloads for unaligned
6248 symbol refs or symbol refs to floating point or QI/TI mode
6250 (legitimate_address_p): Accept symbol references as addresses.
6251 (s390_expand_insv): Use rotate and insert selected bits
6252 instruction for insv when building for z10.
6253 (print_operand_address): Handle symbol ref addresses.
6254 (print_operand): Output modifier 'c' added for signed byte values.
6255 (s390_encode_section_info): Mark symbol refs with
6256 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6258 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6259 (length attribute): RRF, RRR have 4 byte length.
6260 (FPALL, INTALL): New mode iterators added.
6261 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6262 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6263 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6264 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6265 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6266 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6267 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6268 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6270 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6271 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6272 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6273 reload<INTALL:mode><P:mode>_toreg_z10,
6274 reload<FPALL:mode><P:mode>_tomem_z10,
6275 reload<FPALL:mode><P:mode>_toreg_z10,
6276 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6277 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6278 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6279 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6281 (movmem, clrmem, cmpmem): New splitters added.
6283 * config/s390/predicates.md (larl_operand): Use
6284 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6285 SYMBOL_REF_ALIGN1_P.
6286 (s390_signed_integer_comparison,
6287 s390_unsigned_integer_comparison): New predicates.
6289 * config/s390/s390-protos.h (s390_check_symref_alignment,
6290 s390_contiguous_bitmask_p, s390_reload_larl_operand,
6291 s390_reload_symref_address,
6292 s390_compare_and_branch_condition_mask): Prototypes added.
6294 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6295 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6296 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6298 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6300 * config/s390/s390.c (z10_cost): New cost function for z10.
6301 (s390_handle_arch_option, override_options): Support -march=z10 switch.
6302 (s390_issue_rate): Adjust issue rate for z10.
6303 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6304 (processor_flags): Add PF_Z10.
6305 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6306 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6307 * gcc/config.gcc: Add z10.
6309 2008-05-28 Richard Guenther <rguenther@suse.de>
6311 PR tree-optimization/36291
6312 * tree-flow. h (struct gimple_df): Remove var_anns member.
6313 * tree-flow-inline.h (gimple_var_anns): Remove.
6314 (var_ann): Simplify.
6315 * tree-dfa.c (create_var_ann): Simplify.
6316 (remove_referenced_var): Clear alias info from var_anns of globals.
6317 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6318 (delete_tree_ssa): Clear alias info from var_anns of globals.
6319 Do not free var_anns.
6320 (var_ann_eq): Remove.
6321 (var_ann_hash): Likewise.
6323 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
6325 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6326 and loongson2f entries.
6327 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6328 * config/mips/mips.h (processor_type): Add Loongson-2E
6329 and Loongson-2F entries.
6330 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6331 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6332 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6333 * doc/invoke.texi (MIPS Options): Document loongson2e
6334 and loongson2f processor names.
6336 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6340 * config/i386/i386.c (ix86_function_arg_boundary): Use
6341 alignment of canonical type.
6342 (ix86_expand_vector_move): Check unaligned memory access for
6345 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6347 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6348 Moved to the front of file.
6350 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
6351 H.J. Lu <hongjiu.lu@intel.com>
6353 * dwarf2out.c (current_fde): New.
6355 (lookup_cfa:): Likewise.
6356 (dwarf2out_end_epilogue): Likewise.
6357 (dwarf2out_note_section_used): Likewise.
6359 2008-05-27 Michael Matz <matz@suse.de>
6362 * c.opt (Wenum-compare): New warning option.
6363 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
6365 2008-05-27 Michael Matz <matz@suse.de>
6368 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6370 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6371 into memory as tail calls.
6373 2008-05-27 Richard Guenther <rguenther@suse.de>
6375 PR tree-optimization/36339
6376 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6377 pointers cause all addressable variables to be call clobbered.
6379 2008-05-27 Richard Guenther <rguenther@suse.de>
6381 PR tree-optimization/36245
6382 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6384 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6386 * config/s390/s390.md: Replace all occurences of the 'm'
6387 constraint with 'RT'.
6389 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6391 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6393 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6395 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6396 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6397 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6399 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6401 * reload.c: (find_reloads): Skip alternatives according to the
6402 "enabled" attribute. Constify the constraint variable.
6403 * recog.c (get_attr_enabled): Add default implementation.
6404 (extract_insn): Set the alternative_enabled_p array
6405 in the recog_data struct.
6406 (preprocess_constraints, constrain_operands): Skip
6407 alternatives according to the "enabled" attribute
6408 * recog.h (struct recog_data): New field alternative_enabled_p.
6409 (skip_alternative): New inline function.
6410 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6411 (record_reg_classes): Skip alternative according to the
6412 "enabled" attribute.
6414 * doc/md.texi: Add documention for the "enabled" attribute.
6416 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6418 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6419 * postreload.c (reload_cse_simplify_operands): Replace 'm'
6420 constraint with TARGET_MEM_CONSTRAINT.
6421 * recog.c (asm_operand_ok, preprocess_constraints,
6422 constrain_operands): Likewise.
6423 * regclass.c (record_reg_classes): Likewise.
6424 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6425 * reload1.c (maybe_fix_stack_asms): Likewise.
6426 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6427 * recog.h: Adjust comment.
6428 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6429 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6430 * doc/md.texi: Add a note to description of 'm' constraint.
6431 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6433 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6435 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6436 that the bitfield is of integral type before testing its precision.
6438 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6439 Sa Liu <saliu@de.ibm.com>
6441 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6442 __modti3, __udivti3, __umodti3 and __udivmodti4.
6443 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6444 that implement TImode mul and div functions.
6445 * config/spu/multi3.c: New. Implement __multi3.
6446 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6447 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6450 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
6452 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6453 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6454 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6455 tls_sysv_suffix): New mode and mode attribute iterators.
6456 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6457 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6458 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6459 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6460 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6463 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6465 PR tree-optimization/36329
6466 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6467 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6468 * cgraphbuild.c (initialize_inline_failed): Use the latter
6469 macro in lieu of the former.
6470 * ipa-inline.c (cgraph_mark_inline): Likewise.
6471 (cgraph_decide_inlining_of_small_function): Likewise.
6472 (cgraph_decide_inlining): Likewise.
6473 (cgraph_decide_inlining_incrementally): Likewise.
6475 2008-05-26 Tristan Gingold <gingold@adacore.com>
6476 Anatoly Sokolov <aesok@post.ru>
6478 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6479 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6480 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6481 optimization for 'avr6' architecture.
6483 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
6486 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6488 2008-05-26 Richard Guenther <rguenther@suse.de>
6490 * tree-ssa-sccvn.c (expr_has_constants): Declare.
6491 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6493 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
6496 * caller-save.c (insert_restore): Verify alignment of spill space.
6497 (insert_save): Likewise.
6498 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6499 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6500 (STACK_SLOT_ALIGNMENT): Likewise.
6501 * function.c (LOCAL_ALIGNMENT): Removed.
6502 (get_stack_local_alignment): New.
6503 (assign_stack_local): Use it. Set alignment on stack slot.
6504 (assign_stack_temp_for_type): Use get_stack_local_alignment.
6505 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6506 (STACK_SLOT_ALIGNMENT): New.
6507 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6508 stack slot in XFmode.
6510 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6512 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6515 * config/i386/i386.md (allocate_stack_worker_64): Make sure
6516 argument operand in rax isn't removed.
6518 2008-05-26 Richard Guenther <rguenther@suse.de>
6521 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6522 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
6524 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6527 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6529 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
6531 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6532 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6534 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6536 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6537 build a trampoline if we don't want one.
6538 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6539 return zero for nested functions if we don't want a trampoline.
6541 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6543 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6545 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6548 * c.opt: Removed undocumented option '-lang-fortran'.
6549 * c-common.h: Removed global variable 'lang_fortran'.
6550 * c-opts.c (c_common_handle_option): Removed code to handle
6551 option '-lang-fortran'. Updated includes.
6552 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6553 definition of '__GFORTRAN__'.
6554 (define__GNUC__): Reimplemented to use BASEVER and
6555 cpp_define_formatted.
6556 (builtin_define_with_value_n): Removed.
6557 * c-incpath.h: Renamed to ...
6558 * incpath.h: ... this.
6559 * c-incpath.c: Renamed to ...
6560 * incpath.c: ... this. Updated includes.
6561 * fix-header.c: Updated includes.
6562 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6563 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6564 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6566 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6568 * tree.h: Update the table of flags used on tree nodes.
6569 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6570 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6571 (FORCED_LABEL): Add access check.
6572 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6573 (ASM_INPUT_P): Likewise.
6574 (ASM_VOLATILE_P): Likewise.
6575 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6576 (OMP_SECTION_LAST): Access private_flag directly.
6577 (OMP_RETURN_NOWAIT): Likewise.
6578 (OMP_PARALLEL_COMBINED): Likewise.
6579 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6580 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6581 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6582 deprecated_flag directly.
6584 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
6586 * final.c (frame_pointer_needed): Removed.
6587 * flags.h (frame_pointer_needed): Likewise.
6589 * function.h (rtl_data): Add frame_pointer_needed.
6590 (frame_pointer_needed): New.
6592 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
6594 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6596 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
6598 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6601 2008-05-25 Alan Modra <amodra@bigpond.net.au>
6603 * c-common.c (strip_array_types): Move function to..
6605 (get_inner_array_type): Delete.
6606 * c-common.h (strip_array_types): Move declaration to..
6608 (get_inner_array_type): Delete.
6609 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6610 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6611 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6612 * config/pa/pa.c (emit_move_sequence): Likewise.
6614 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
6616 * config/i386/i386.md (*sse_prologue_save_insn): Set length
6619 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
6621 * function.c: Include target hook for nonlocal_goto frame value.
6623 2008-05-24 Richard Guenther <rguenther@suse.de>
6625 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6626 variable can be only accessed through a pointer or a union.
6628 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6630 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6631 * doc/extend.texi: Likewise.
6633 2008-05-23 DJ Delorie <dj@redhat.com>
6635 * config/m32c/jump.md (untyped_call): Add.
6637 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6639 (m32c_address_cost): Detail costs for indirect offsets.
6641 2008-05-23 Rafael Espindola <espindola@google.com>
6643 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6644 if a node is a SUBREG.
6645 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6648 2008-05-23 Paul Brook <paul@codesourcery.com>
6649 Carlos O'Donell <carlos@codesourcery.com>
6651 * doc/extend.texi: Clarify use of __attribute__((naked)).
6652 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6653 * target.h (gcc_target): Add allocate_stack_slots_for_args.
6654 * function.c (use_register_for_decl): Use
6655 targetm.calls.allocate_stack_slots_for_args.
6656 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6657 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6658 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6660 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6662 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6664 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
6666 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6667 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6668 is only rounded once.
6670 2008-05-23 Richard Guenther <rguenther@suse.de>
6672 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6674 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
6675 Jakub Jelinek <jakub@redhat.com>
6678 * configure.ac: Handle --enable-cld.
6679 * configure: Regenerated.
6680 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6681 * config/i386/i386.h (struct machine_function): Add needs_cld field.
6682 (ix86_current_function_needs_cld): New define.
6683 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6684 (cld): New isns pattern.
6685 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6686 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6687 * config/i386/i386.opt (mcld): New option.
6688 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6689 TARGET_CLD and ix86_current_function_needs_cld.
6690 (override_options): Use -mcld by default for 32-bit code if
6693 * doc/install.texi (Options specification): Document --enable-cld.
6694 * doc/invoke.texi (Machine Dependent Options)
6695 [i386 and x86-64 Options]: Add -mcld option.
6696 (Intel 386 and AMD x86-64 Options): Document -mcld option.
6698 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
6699 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6700 (return_in_memory_64): Likewise.
6701 (return_in_memory_ms_64): Likewise.
6703 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6705 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6706 * builtins.c (fold_builtin_fpclassify): New.
6707 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6708 * builtins.def (BUILT_IN_FPCLASSIFY): New.
6709 * c-common.c (handle_type_generic_attribute): Adjust to accept
6710 fixed arguments before an elipsis.
6711 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6712 * doc/extend.texi: Document __builtin_fpclassify.
6714 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
6716 * omp-low.c (gate_expand_omp_ssa): Remove.
6717 (pass_expand_omp_ssa): Remove.
6718 (gate_expand_omp): Do not check for flag_openmp_ssa.
6719 * common.opt (-fopenmp-ssa): Remove.
6720 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6722 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
6724 * config/sh/sh.opt (mfixed-range): New option.
6725 * config/sh/sh-protos.h (sh_fix_range): Declare.
6726 * config/sh/sh.c (sh_fix_range): New function.
6727 * config/sh/sh.h (sh_fixed_range_str): Declare.
6728 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6730 * doc/invoke.texi (SH Options): Document -mfixed-range.
6732 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
6734 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6735 it before the redeclaration.
6737 2008-05-22 Anatoly Sokolov <aesok@post.ru>
6739 * config/avr/avr.c (get_sequence_length): Add new function.
6740 (expand_prologue, expand_epilogue): Remove duplicate code.
6742 2008-05-22 Rafael Espindola <espindola@google.com>
6744 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6747 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
6749 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6750 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6752 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6753 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6754 (vect_update_misalignment_for_peel): Likewise.
6755 (vector_alignment_reachable_p): Likewise.
6756 * tree-vect-transform.c (vectorizable_load): Likewise.
6757 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6758 (get_vectype_for_scalar_type): Pass mode of scalar_type
6759 to UNITS_PER_SIMD_WORD.
6761 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6762 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6763 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6764 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6765 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6767 2008-05-22 Ira Rosen <irar@il.ibm.com>
6769 PR tree-optimization/36293
6770 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6771 if the first load must be skipped because of a gap.
6773 2008-05-22 Richard Guenther <rguenther@suse.de>
6775 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6776 more cases of offset disambiguation that is possible if
6777 strict-aliasing rules apply.
6778 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6779 for basic offset and type-based disambiguation.
6781 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6783 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6784 ix86_expand_vector_set on V16QImode for SSE4.1.
6786 2008-05-21 Tom Tromey <tromey@redhat.com>
6788 * c.opt (Wimport): Mark as undocumented.
6789 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6791 (Warning Options): Likewise.
6792 * doc/cppopts.texi: Don't mention -Wimport.
6794 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6796 PR tree-optimization/36287
6797 PR tree-optimization/36286
6798 * lambda-code.c (build_access_matrix): Do not use the loop->num
6799 for computing the number of induction variables: use the loop depth
6802 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6805 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6806 option -f(no-)leading-underscore.
6808 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6810 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6811 GET_MODE_NUNITS (mode).
6813 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6815 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6816 (-mmulhw): Add 464 to description.
6817 (-mdlmzb): Likewise.
6818 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6819 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6821 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6822 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6823 * config/rs6000/rs6000.md: Update comments for 464.
6825 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6827 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6829 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6831 * config/i386/sse.md (vec_extractv4sf): Removed.
6832 (vec_extractv2df): Likewise.
6833 (vec_extractv2di): Likewise.
6834 (vec_extractv4si): Likewise.
6835 (vec_extractv8hi): Likewise.
6836 (vec_extractv16qi): Likewise.
6837 (vec_extract<mode>): New.
6839 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6841 * config/i386/sse.md (vec_setv4sf): Removed.
6842 (vec_setv2df): Likewise.
6843 (vec_setv2di): Likewise.
6844 (vec_setv4si): Likewise.
6845 (vec_setv8hi): Likewise.
6846 (vec_setv16qi): Likewise.
6847 (vec_set<mode>): New.
6849 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6851 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6852 goto for vec_concat and vec_interleave.
6854 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6856 * config/i386/sse.md (vec_initv4sf): Removed.
6857 (vec_initv2df): Likewise.
6858 (vec_initv2di): Likewise.
6859 (vec_initv4si): Likewise.
6860 (vec_initv8hi): Likewise.
6861 (vec_initv16qi): Likewise.
6862 (vec_init<mode>): New.
6864 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6866 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6868 2008-05-21 Tom Tromey <tromey@redhat.com>
6870 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6871 (zone_find_object_offset): Likewise.
6872 (gt_ggc_m_S): Likewise.
6873 (highest_bit): Likewise.
6874 * ggc-page.c (gt_ggc_m_S): New function.
6875 * stringpool.c (string_stack): Remove.
6876 (init_stringpool): Update.
6877 (ggc_alloc_string): Use ggc_alloc.
6878 (maybe_delete_ident): New function.
6879 (ggc_purge_stringpool): Likewise.
6880 (gt_ggc_m_S): Remove.
6881 * ggc-common.c (ggc_protect_identifiers): New global.
6882 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6883 ggc_protect_identifiers.
6884 * ggc.h (ggc_protect_identifiers): Declare.
6885 (gt_ggc_m_S): Update.
6886 (ggc_purge_stringpool): Declare.
6887 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6888 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6890 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6892 2008-05-21 David S. Miller <davem@davemloft.net>
6894 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6897 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6899 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6902 2008-05-20 David Daney <ddaney@avtrex.com>
6904 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6905 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6906 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6907 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6908 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6909 (atomic_hiqi_op): New define_code_iterator.
6910 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6911 mips_expand_compare_and_swap_12.
6912 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6913 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
6914 (sync_<optab><mode>, sync_old_<optab><mode>,
6915 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6916 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6917 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6918 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6919 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6920 (test_and_set_12): New insn.
6921 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6922 sync_new_<optab><mode>, sync_old_nand<mode>,
6923 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
6924 clobber to operand 0 for SI and DI mode insns.
6925 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6926 mips_gen_fn_4): New typedefs.
6927 (mips_gen_fn_ptrs): Define new union type.
6928 (mips_expand_compare_and_swap_12): Remove declaration.
6929 (mips_expand_atomic_qihi): Declare function.
6930 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6931 (mips_expand_atomic_qihi): ... this. Use new generator function
6933 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6934 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6935 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6936 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6937 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6938 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6939 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6940 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6941 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6942 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6945 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
6947 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6950 2008-05-20 Anatoly Sokolov <aesok@post.ru>
6952 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6953 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6954 (avr_attribute_table): Add 'OS_main' function attribute.
6955 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6956 functions with 'OS_main' attribute.
6958 2008-05-20 Richard Guenther <rguenther@suse.de>
6960 PR tree-optimization/35204
6961 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6962 helper, split out from ...
6963 (DFS): ... here. Make the DFS walk non-recursive.
6965 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6966 Jan Sjodin <jan.sjodin@amd.com>
6968 PR tree-optimization/36181
6969 * tree-parloops.c (loop_has_vector_phi_nodes): New.
6970 (parallelize_loops): Don't parallelize when the loop has vector
6973 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
6974 Sebastian Pop <sebastian.pop@amd.com>
6976 * tree-loop-linear.c (gather_interchange_stats): Look in the access
6977 matrix, and never look at the tree representation of the memory
6979 (linear_transform_loops): Computes parameters and access matrices.
6980 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6982 (access_matrix_get_index_for_parameter): New.
6983 * tree-data-ref.h (struct access_matrix): New.
6984 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6985 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6986 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6987 am_vector_index_for_loop): New.
6988 (struct data_reference): Add field access_matrix.
6989 (DR_ACCESS_MATRIX): New.
6990 (compute_data_dependences_for_loop): Update declaration.
6991 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6992 * lambda.h (lambda_vector_vec_p): Declared.
6993 * lambda-code.c: Depend on pointer-set.h.
6994 (lambda_collect_parameters_from_af, lambda_collect_parameters,
6995 av_for_af_base, av_for_af, build_access_matrix,
6996 lambda_compute_access_matrices): New.
6997 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6999 2008-05-20 Joseph Myers <joseph@codesourcery.com>
7001 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7004 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7005 Sebastian Pop <sebastian.pop@amd.com>
7007 PR tree-optimization/36206
7008 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7010 (instantiate_scev_1): Rename flags to fold_conversions.
7011 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7012 outeside instantiation_loop.
7013 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7014 (evolution_function_is_affine_or_constant_p): Removed.
7015 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7017 (analyze_siv_subscript): Pass in the loop nest number.
7018 Call evolution_function_is_affine_in_loop instead of
7019 evolution_function_is_affine_p.
7020 (analyze_overlapping_iterations): Pass in the loop nest number.
7022 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7023 Sebastian Pop <sebastian.pop@amd.com>
7025 PR tree-optimization/36206
7026 * tree-chrec.h (chrec_fold_op): New.
7027 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7030 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
7032 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7034 (remove_duplicates): Do not set inode on non-inode systems.
7037 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
7039 * config.gcc (tm_file): Update comments about relative pathnames.
7041 2008-05-20 Richard Guenther <rguenther@suse.de>
7043 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7044 * tree-ssa-sccvn.c (process_scc): Likewise.
7045 * tree-ssa-sink.c (execute_sink_code): Likewise.
7046 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7047 * tree-vrp.c (process_assert_insertions): Likewise.
7048 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7049 (perform_tree_ssa_dce): Likewise.
7050 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7051 (dump_dominator_optimization_stats): Likewise.
7052 * tree-vectorizer.c (vectorize_loops): Likewise.
7054 2008-05-20 Richard Guenther <rguenther@suse.de>
7056 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7058 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
7060 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7061 (ix86_i386elf_return_in_memory): Likewise.
7062 (ix86_i386interix_return_in_memory): Likewise.
7063 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7064 (SUBTARGET_RETURN_IN_MEMORY): New.
7065 * config/i386/i386elf.h: Likewise.
7066 * config/i386/ptx4-i.h: Likewise.
7067 * config/i386/sol2-10.h: Likewise.
7068 * config/i386/sysv4.h: Likewise.
7069 * config/i386/vx-common.h: Likewise.
7070 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7071 * config/i386/i386.c (ix86_return_in_memory): Made static and
7072 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7073 (ix86_i386elf_return_in_memory): Removed.
7074 (ix86_i386interix_return_in_memory): Removed.
7075 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7076 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7078 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
7080 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7082 2008-05-19 Xinliang David Li <davidxl@google.com>
7084 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7086 * common.opt: Ditto.
7087 * doc/invoke.texi: Ditto.
7089 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
7091 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7092 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7094 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7096 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7097 sizes of operand array from 8/4 to 4/2.
7098 (ix86_expand_vector_init_general): Change size of operand array
7099 from 32 to 16. Remove op0, op1 and half_mode.
7101 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7103 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7104 (ix86_expand_vector_init_interleave): Likewise.
7105 (ix86_expand_vector_init_general): Use them. Assert
7106 word_mode == SImode when n_words == 4.
7108 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
7110 * config/i386/i386.c (ix86_secondary_reload): New static function.
7111 (TARGET_SECONDARY_RELOAD): New define.
7112 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7113 * config/i386/i386.md (reload_outqi): Remove.
7115 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7118 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7119 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
7120 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7121 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7122 (fold_builtin_1): Likewise.
7123 * builtins.def (BUILT_IN_ISINF_SIGN): New.
7124 c-common.c (check_builtin_function_arguments): Handle
7125 BUILT_IN_ISINF_SIGN.
7126 * doc/extend.texi: Document __builtin_isinf_sign.
7127 * fold-const.c (operand_equal_p): Handle COND_EXPR.
7129 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
7131 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7132 EH cleanup at the end of the pass, search for those that have been
7133 turned into forwarder blocks and do the cleanup on their successor.
7135 2008-05-18 Richard Guenther <rguenther@suse.de>
7137 * tree-cfg.c (verify_gimple_expr): Allow conversions from
7138 pointers to sizetype and vice versa.
7140 2008-05-18 Xinliang David Li <davidxl@google.com>
7142 * gcc/tree-ssa-dce.c: Coding style fix.
7143 (check_pow): Documentation comment.
7144 (check_log): Documenation comment. Coding style fix.
7145 (is_unnecessary_except_errno_call): Ditto.
7146 (gen_conditions_for_pow): Ditto.
7147 (gen_conditions_for_log): Ditto.
7148 (gen_shrink_wrap_conditions): Ditto.
7149 (shrink_wrap_one_built_in_calls): Ditto.
7150 * gcc/doc/invoke.texi: Better documentation string.
7151 * ChangeLog: Fix wrong change log entries from
7152 May 17 checkin on function call DCE.
7154 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
7156 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7158 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
7160 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7161 * df-problems.c (simulation routines): Fixed block comment to
7162 properly say how to add forwards scanning functions.
7164 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7166 * tree-inline.c (setup_one_parameter): Remove dead code.
7168 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7170 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7171 a BIT_AND_EXPR only for an INTEGER_TYPE.
7173 2008-05-17 Xinliang David Li <davidxl@google.com>
7175 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7176 (check_pow, check_log, is_unnecessary_except_errno_call): New
7177 functions to check for eliminating math functions that are pure
7178 except for setting errno.
7179 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7180 general condition expressions for shrink-wrapping pow/log calls.
7181 (gen_shrink_wrap_conditions): Ditto.
7182 (shrink_wrap_one_built_in_call): Ditto.
7183 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7184 (mark_operand_necessary): If debugging, output if OP is necessary.
7185 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7187 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7189 * gcc/common.opt: New user flag -ftree-builtin-dce.
7190 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7192 2008-05-16 David S. Miller <davem@davemloft.net>
7194 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7195 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7197 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
7200 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7202 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7204 * ifcvt.c (dead_or_predicable): Rename
7205 df_simulate_one_insn_backwards to df_simulate_one_insn.
7206 * recog.c (peephole2_optimize): Ditto.
7207 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7209 * df.h: Rename df_simulate_one_insn_backwards to
7210 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
7211 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7212 scanning of defs and uses.
7213 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7214 (df_simulate_one_insn_forwards): Removed.
7216 2008-05-16 Doug Kwan <dougkwan@google.com>
7218 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7220 (real_from_string): Handle NaNs and Inf as approriate.
7222 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7224 * doc/gty.texi (Source Files Containing Type Information): Note
7225 that headers should appear first in the gtfiles list.
7227 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7229 * tree.def (COND_EXEC): Properly documented this code.
7231 2008-05-16 Diego Novillo <dnovillo@google.com>
7233 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7234 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7237 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7239 * tree-ssa-dse (max_stmt_uid): Removed.
7240 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7241 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7242 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7243 * function.h (cfun.last_stmt_uid): New field.
7244 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7245 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7247 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7248 (create_stmt_ann): Initialize the ann->uid field.
7249 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7251 * tree-flow.h (renumber_gimple_stmt_uids): New function.
7253 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7255 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7256 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7257 (init_empty_tree_cfg): Call it.
7259 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7261 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
7264 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7266 * doc/invoke.text (-fdump-tree-*-verbose): New option.
7267 * tree-dump.c (dump_options): New verbose option.
7268 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7270 * tree-pass.h (TDF_VERBOSE): New dump flag.
7271 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7272 (tree-flow.h): Added include.
7273 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
7275 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
7277 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7279 From Jie Zhang <jie.zhang@analog.com>
7280 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7281 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7282 mcpu=bf561-none and mcpu=bf561-0.2.
7283 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7284 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7285 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7286 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7287 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7288 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7289 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
7291 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7292 (cputype_selected): Remove.
7293 (bfin_handle_option): Don't use cputype_selected.
7294 (override_options): When no mcpu option, enable all workarounds.
7295 Don't use bfin_workarounds.
7296 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7298 (DEFAULT_CPU_TYPE): Don't define.
7300 2008-05-16 Richard Guenther <rguenther@suse.de>
7302 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7303 on deletion of the last stmt.
7305 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7307 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7308 V8HImode for SSE2 and V16QImode for SSE4.1.
7310 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
7312 * cgraph.h (compute_inline_parameters): Made public.
7313 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7314 variable_generate_summary, function_write_summary,
7315 variable_write_summary, variable_read_summary. Added generate_summary,
7316 write_summary, read_summary.
7317 * cgraphunit.c (cgraph_process_new_functions): Changed call from
7318 pass_ipa_inline.function_generate_summary, to
7319 compute_inline_parameters.
7320 * ipa-inline.c (compute_inline_parameters): Made public and added
7322 (compute_inline_parameters_for_current): New function.
7323 (pass_inline_param): Now calls compute_inline_parameters_for_current.
7324 (inline_generate_summary): Removed parameter and made to loop over
7326 (pass_ipa_inline): Updated for new IPA_PASS structure.
7327 * passes.c (execute_ipa_summary_passes): Now is called once per
7328 pass rather than once per node*pass.
7330 2008-05-15 Anatoly Sokolov <aesok@post.ru>
7332 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7333 avr_have_mul_p, avr_asm_only_p): Remove variables.
7334 (avr_override_options): Remove initialization of removed variables.
7335 (avr_file_start): Convert removed variables to fields of
7336 'struct base_arch_s *avr_current_arch'.
7337 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7338 (AVR_HAVE_MUL): (Ditto.).
7339 (AVR_HAVE_MOVW): (Ditto.).
7340 (AVR_HAVE_LPMX): (Ditto.).
7341 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7342 avr_asm_only_p): Remove declaration.
7344 2008-05-15 Diego Novillo <dnovillo@google.com>
7346 * config/arm/arm.c (arm_return_in_memory): Fix return type.
7347 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7349 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
7352 * combine.c (check_conversion): Rename back to check_promoted_subreg.
7353 Don't call record_truncated_value from here.
7354 (record_truncated_value): Turn it into a for_each_rtx callback.
7355 (record_truncated_values): New function.
7356 (combine_instructions): Call note_uses with record_truncated_values.
7357 Change name of check_conversion to check_promoted_subreg.
7359 2008-05-15 Janis Johnson <janis187@us.ibm.com>
7361 * doc/sourcebuild.texi: Document support for torture tests.
7363 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7365 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7366 to alternative 4 of operand 2.
7368 2008-05-15 Richard Guenther <rguenther@suse.de>
7370 * tree-pass.h (current_pass): Declare.
7371 (get_pass_for_id): Likewise.
7372 * passes.c (passes_by_id, passes_by_id_size): New globals.
7373 (set_pass_for_id): New function.
7374 (get_pass_for_id): Likewise.
7375 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7376 (execute_function_todo): Flush per function statistics.
7377 * toplev.c (compile_file): Init statistics.
7378 (general_init): Do early statistics initialization.
7379 (finalize): Finish statistics.
7380 * statistics.h (statistics_early_init): Declare.
7381 (statistics_init): Likewise.
7382 (statistics_fini): Likewise.
7383 (statistics_fini_pass): Likewise.
7384 (statistics_counter_event): Likewise.
7385 (statistics_histogram_event): Likewise.
7386 * statistics.c: New file.
7387 * Makefile.in (OBJS-common): Add statistics.o.
7388 (statistics.o): Add dependencies.
7389 * doc/invoke.texi (-fdump-statistics): Document.
7391 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7393 (execute_pre): Use statistics_counter_event.
7394 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7395 (substitute_and_fold): Increment it. Use statistics_counter_event.
7397 2008-05-15 Diego Novillo <dnovillo@google.com>
7399 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7401 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7402 * tree-ssa-alias.c (new_type_alias): Remove references to
7403 sub-variables from comment.
7404 * tree-ssa-operands.c (swap_tree_operands): Likewise.
7406 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7408 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7409 attribute to 1 only for insertps alternative.
7411 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7413 * config/bfin/bfin.md (loadbytes): New pattern.
7414 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7415 (bfin_init_builtins): Initialize it.
7416 (bdesc_1arg): Add it.
7418 2008-05-15 Sa Liu <saliu@de.ibm.com>
7420 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7421 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7422 * testsuite/lib/target-supports.exp: Add
7423 check_effective_target_fortran_integer_16.
7425 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7427 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7428 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7429 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
7430 (TARGET_RETURN_IN_MEMORY): Define.
7432 2008-05-15 Richard Guenther <rguenther@suse.de>
7435 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7436 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7437 represent unmodifiable vars.
7439 2008-05-15 Richard Guenther <rguenther@suse.de>
7441 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7442 INDIRECT_REF and TARGET_MEM_REF.
7443 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7446 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7447 H.J. Lu <hongjiu.lu@intel.com>
7449 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7450 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7451 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
7452 insn alternatives. Add missing alternatives.
7453 (*vec_concatv2di_rex64_sse4_1): Likewise.
7454 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7455 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7458 2008-05-15 Richard Guenther <rguenther@suse.de>
7460 PR tree-optimization/36009
7461 PR tree-optimization/36204
7462 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7463 (determine_invariantness_stmt): Record the loop a store is
7465 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7468 2008-05-15 Richard Guenther <rguenther@suse.de>
7470 PR tree-optimization/34330
7471 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7472 through the pointer will alias the SMT.
7474 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
7476 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7478 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
7480 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7482 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7483 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7485 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7486 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7487 (vashl_optab): New optab for vector/vector shifts.
7488 (vashr_optab): Ditto.
7489 (vlshr_optab): Ditto.
7490 (vrotl_optab): Ditto.
7491 (vrotr_optab): Ditto.
7492 (optab_subtype): New enum for optab_for_tree_code call.
7493 (optab_for_tree_code): Add enum optab_subtype argument.
7495 * optabs.c (optab_for_tree_code): Take an additional argument to
7496 distinguish between a vector shift by a scalar and vector shift by
7497 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
7498 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
7499 vector shift by a vector.
7500 (expand_widen_pattern_expr): Pass additional argument to
7501 optab_for_tree_code.
7503 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7504 vrotl_optab, vrotr_optab.
7506 * expr.c (expand_expr_real_1): Update calls to
7507 optab_for_tree_code to distinguish between vector shifted by a
7508 scalar and vector shifted by a vector.
7509 * tree-vectorizer.c (supportable_widening_operation): Ditto.
7510 (supportable_narrowing_operation): Ditto.
7511 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7512 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7513 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7514 (vect_create_epilog_for_reduction): Ditto.
7515 (vectorizable_reduction): Ditto.
7516 (vectorizable_operation): Ditto.
7517 (vect_strided_store_supported): Ditto.
7518 (vect_strided_load_supported): Ditto.
7519 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7520 * expmed.c (expand_shift): Ditto.
7522 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7524 (ashr@var{m}3): Ditto.
7525 (vashl@var{m}3): Document new vector/vector shift standard name.
7526 (vashr@var{m}3): Ditto.
7527 (vlshr@var{m}3): Ditto.
7528 (vrotl@var{m}3): Ditto.
7529 (vrotr@var{m}3): Ditto.
7531 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7532 (PPERM_INVERT): Ditto.
7533 (PPERM_REVERSE): Ditto.
7534 (PPERM_REV_INV): Ditto.
7535 (PPERM_ZERO): Ditto.
7536 (PPERM_ONES): Ditto.
7537 (PPERM_SIGN): Ditto.
7538 (PPERM_INV_SIGN): Ditto.
7539 (PPERM_SRC1): Ditto.
7540 (PPERM_SRC2): Ditto.
7542 * config/i386/sse.md (mulv2di3): Add SSE5 support.
7543 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7544 allows a memory operand to be the value being added, and split it
7545 to improve vectorization.
7546 (sse5_pmacsdqh_mem): Ditto.
7547 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7548 (sse5_mulv2div2di3_high): Ditto.
7549 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7550 (vec_pack_trunc_v4si): Ditto.
7551 (vec_pack_trunc_v2di): Ditto.
7552 (sse5_pcmov_<mode>): Remove code that tried to use use
7553 andps/andnps instead of pcmov.
7554 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7555 pmacsdqh instructions.
7556 (vec_widen_smult_lo_v4si): Ditto.
7558 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7559 (PPERM_INVERT): Ditto.
7560 (PPERM_REVERSE): Ditto.
7561 (PPERM_REV_INV): Ditto.
7562 (PPERM_ZERO): Ditto.
7563 (PPERM_ONES): Ditto.
7564 (PPERM_SIGN): Ditto.
7565 (PPERM_INV_SIGN): Ditto.
7566 (PPERM_SRC1): Ditto.
7567 (PPERM_SRC2): Ditto.
7568 (ix86_expand_sse_movcc): Move the SSE5 test after the if
7570 (ix86_expand_int_vcond): If SSE5 generate all possible integer
7572 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7573 says ignore whether the last reference is a memory operand.
7575 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7576 Paolo Bonzini <bonzini at gnu dot org>
7578 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7581 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7582 (vlshr<mode>3): Rename from vlshr<mode>3.
7583 (vashr<mode>3): Rename from vashr<mode>3.
7584 (mulv4sf3): Change the names of vector shift patterns.
7588 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7591 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7616 * config/spu/spu.md (v): New iterator macro to add v for vector types.
7617 (floatunssidf2_internal): Change vector/vector shift names.
7618 (floatunsdidf2_internal): Ditto.
7625 (vashl<mode>3): Rename from ashl<mode>3.
7626 (vashr<mode>3): Rename from ashr<mode>3.
7627 (vlshr<mode>3): Rename from lshr<mode>3.
7628 (vrotl<mode>3): Rename from rotl<mode>3.
7630 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7633 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7634 multiply gives the wrong value when doing widening multiplies.
7635 (vec_widen_smult_lo_v4si): Ditto.
7637 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7639 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7640 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7641 emit_library_call_value.
7642 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7643 * tree.h (ECF_LIBCALL_BLOCK): Removed.
7644 * calls.c (initialize_argument_information, precompute_arguments,
7645 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7646 (precompute_arguments): Removed flags parameter.
7647 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7649 2008-05-14 Richard Guenther <rguenther@suse.de>
7651 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7652 Make sure to register the store if the use is a PHI_NODE.
7654 2008-05-14 Olivier Hainque <hainque@adacore.com>
7656 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7657 memory if the component is to be referenced in BLKmode according
7658 to get_inner_reference.
7660 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
7662 * calls.c (emit_library_call_value_1): Restore code clearing
7663 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7665 2008-05-14 Olivier Hainque <hainque@adacore.com>
7666 Nicolas Roche <roche@adacore.com>
7668 * configure.ac: Add support for a "gcc_subdir" variable in
7669 config-lang.in, to denote a subdirectory where the language/GCC
7670 integration files are to be found.
7671 * configure: Regenerate.
7673 2008-05-14 Ira Rosen <irar@il.ibm.com>
7675 PR tree-optimization/36098
7676 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7677 value for the first load in the group in case of a gap.
7678 (vect_build_slp_tree): Check that there are no gaps in loads.
7680 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7682 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7683 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7684 expand_copysign_bit, ): Change call to emit_no_conflict_block to
7685 emit_insn and remove unneeded code to construct extra args.
7686 (emit_no_conflict_block): Removed.
7687 * optabls.h: (emit_no_conflict_block): Removed.
7688 * cse.c (cse_extended_basic_block): Remove search for
7689 REG_NO_CONFLICT note.
7690 * global.c: Removed incorrect comment added in revision 117.
7691 * expr.c (convert_move): Change call to emit_no_conflict_block to
7693 * recog.c: Change comments so that they do not mention
7695 * local_alloc.c (combine_regs): Removed last parameter.
7696 (no_conflict_p): Removed.
7697 (block_alloc): Removed note, no_conflict_combined_regno and set
7698 local vars. Removed all code to process REG_NO_CONFLICT blocks.
7699 (combine_regs): Removed already_dead and code to look for
7700 REG_NO_CONFLICT notes.
7701 * lower_subreg (remove_retval_note): Removed code to look for
7702 REG_NO_CONFLICT block.
7703 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7704 (resolve_clobber): Remove code to process libcalls that have
7705 REG_NO_CONFLICT notes.
7706 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7708 * combine.c (can_combine_p, distribute_notes): Removed
7709 REG_NO_CONFLICT case.
7710 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7712 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7713 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7715 * reg-notes.def (NO_CONFLICT): Removed.
7717 2008-05-14 David S. Miller <davem@davemloft.net>
7719 * config/sparc/sparc.c (sparc_profile_hook): If
7720 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7721 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7722 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7724 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
7726 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7728 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
7731 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7732 and op1 expansion before vector concat to have less live pseudos.
7734 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
7736 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7737 ix86_expand_vector_set if supported.
7739 2008-05-13 Diego Novillo <dnovillo@google.com>
7740 Kenneth Zadeck <zadeck@naturalbridge.com>
7742 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7744 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7745 phinodes_print_statistics, init_ssanames, fini_ssanames,
7746 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7747 release_ssa_name, release_defs, replace_ssa_name_symbol,
7748 ssanames_print_statistics): Move ...
7749 * tree-flow.h: ... here.
7750 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7751 Use FN instead of cfun.
7752 (make_ssa_name_fn): Rename from make_ssa_name.
7753 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7754 * tree-flow-inline.h (make_ssa_name): Move from
7755 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
7756 * omp-low.c (expand_omp_parallel):
7757 * tree-flow-inline.h (redirect_edge_var_map_result):
7758 * tree-ssa.c (init_tree_ssa): Add argument FN.
7759 Use it instead of cfun. Update all users.
7761 2008-05-13 Tom Tromey <tromey@redhat.com>
7763 PR preprocessor/22168:
7764 * doc/cpp.texi (Top): Update menu.
7765 (Alternatives to Wrapper #ifndef): New node.
7766 (Other Directives): Document deprecation.
7767 (Obsolete Features): Remove menu.
7768 (Assertions): Merge node into Obsolete Features.
7769 (Obsolete once-only headers): Move earlier; rename to Alternatives
7771 * doc/cppopts.texi: Update.
7772 * c.opt (Wdeprecated): Enable for C and ObjC.
7773 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7774 (C++ Dialect Options): Move -Wno-deprecated from here to...
7775 (Warning Options): ... here.
7777 2008-05-13 Richard Guenther <rguenther@suse.de>
7780 * fold-const.c (fold_sign_changed_comparison): Do not allow
7781 changes in pointer-ness.
7783 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7786 * config/sh/sh.c (sh_expand_prologue): Don't clear
7787 RTX_FRAME_RELATED_P for push insns.
7789 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7791 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7793 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7795 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7796 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7797 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7799 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7801 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7802 (*vec_concatv4sf_sse): This.
7803 (*sse2_concatv2si): Renamed to ...
7804 (*vec_concatv2si_sse2): This.
7805 (*sse1_concatv2si): Renamed to ...
7806 (*vec_concatv2si_sse): This.
7807 (*vec_concatv2di_rex): Renamed to ...
7808 (*vec_concatv2di_rex64): This.
7809 (*vec_concatv2si_sse4_1): New.
7810 (*vec_concatv2di_rex64_sse4_1): Likewise.
7812 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7814 PR rtl-optimization/36111
7815 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7816 that was created for swappable operands.
7818 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7821 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7822 * configure.ac: Add call to ACX_PROG_GNAT.
7824 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7826 * optc-gen.awk: Fix comment typo.
7828 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7830 * pretty-print.c (pp_integer_with_precision): Use
7831 HOST_LONG_LONG_FORMAT.
7833 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7835 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7837 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7839 * config/i386/i386.c (bdesc_ptest): Removed.
7840 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7841 (bdesc_args): Add __builtin_ia32_ptestz128,
7842 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7843 (ix86_init_mmx_sse_builtins): Updated.
7844 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7845 (ix86_expand_builtin): Updated.
7847 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7849 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7850 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7852 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7854 * value-prof.c (interesting_stringop_to_profile): Do not
7855 return early for BUILT_IN_MEMPCPY.
7857 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7859 * calls.c (expand_call): Don't use callgraph to increase
7860 preferred_stack_boundary.
7862 * cgraph.h (cgraph_rtl_info): Use unsigned on
7863 preferred_incoming_stack_boundary.
7865 * final.c (rest_of_clean_state): Use unsigned on
7866 preferred_stack_boundary.
7868 2008-05-09 Tom Tromey <tromey@redhat.com>
7870 PR preprocessor/22231:
7871 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7874 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7876 PR tree-optimization/36129
7877 * tree-ssa-ccp.c: Include value-prof.h.
7878 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7879 built-in function was folded to a constant.
7880 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7882 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7883 Sebastian Pop <sebastian.pop@amd.com>
7885 * tree-scalar-evolution.c: Document instantiate_scev.
7886 (instantiate_parameters_1): Renamed instantiate_scev_1.
7887 Don't use the same loop for instantiation_loop and evolution_loop.
7888 (instantiate_scev): New.
7889 (instantiate_parameters): Moved...
7890 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7891 same loop twice. Maintains the semantics for this function.
7892 * tree-scalar-evolution.h (instantiate_scev): Declare.
7893 (instantiate_parameters): ...here. Now static inline.
7894 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7895 instead of resolve_mixers.
7897 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7899 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7901 2008-05-09 Tomas Bily <tbily@suse.cz>
7903 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7904 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7905 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7906 * c-common.c (c_common_truthvalue_conversion): Likewise.
7907 * tree-object-size.c (compute_object_offset): Likewise.
7908 * tree-inline.c (estimate_num_insns_1): Likewise.
7909 * varasm.c (const_hash_1, compare_constant, copy_constant)
7910 (compute_reloc_for_constant, output_addressed_constants)
7911 (initializer_constant_valid_p): Likewise.
7912 * c-omp.c (check_omp_for_incr_expr): Likewise.
7913 * gimplify.c (gimplify_expr): Likewise.
7914 * c-typeck.c (c_finish_return): Likewise.
7915 * tree-vectorizer.c (supportable_widening_operation)
7916 (supportable_narrowing_operation): Likewise.
7917 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7918 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7919 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7920 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7921 (descr_info_loc): Likewise.
7922 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7923 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7924 (fold_unary): Likewise.
7925 * builtins.c (get_pointer_alignment): Likewise.
7926 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7927 (instantiate_parameters_1): Likewise.
7928 * tree.c (expr_align, stabilize_reference): Likewise.
7929 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7930 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7931 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7932 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7933 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7934 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7936 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7937 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7938 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7939 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7940 (forward_propagate_comparison)
7941 (tree_ssa_forward_propagate_single_use_vars): Likewise.
7942 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7943 * emit-rtl.c (component_ref_for_mem_expr)
7944 (set_mem_attributes_minus_bitpos): Likewise.
7945 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7946 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7948 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7949 (build_function_call, pointer_diff, build_compound_expr)
7950 (c_finish_return): Likewise.
7951 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7952 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7954 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7955 * expr.c (is_aligning_offset): Likewise.
7956 * tree-ssa-alias.c (is_escape_site): Likewise.
7957 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7958 (check_all_va_list_escapes): Likewise.
7959 * tree-ssa-loop-ivopts.c (determine_base_object)
7960 (determine_common_wider_type): Likewise.
7961 * dojump.c (do_jump): Likewise.
7962 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7963 * tree-gimple.c (is_gimple_cast): Likewise.
7964 * fold-const.c (decode_field_reference, )
7965 (fold_sign_changed_comparison, fold_unary, fold_comparison)
7966 (fold_binary): Likewise.
7967 * tree-ssa-alias-warnings.c (find_alias_site_helper)
7968 (already_warned_in_frontend_p): Likewise.
7969 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7970 * tree.c (really_constant_p, get_unwidened): Likewise.
7971 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7972 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7973 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7975 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7977 (CONVERT_EXPR_P): Define.
7978 (CASE_CONVERT): Define.
7980 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7983 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7984 (delete_unmarked_insns): When deleting a call, call
7985 delete_unreachable_blocks.
7986 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7987 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7989 2008-05-08 Richard Guenther <rguenther@suse.de>
7991 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7992 (-ftree-salias): Likewise.
7993 (salias-max-implicit-fields): Remove param documentation.
7994 (salias-max-array-elements): Likewise.
7995 * tree-pass.h (pass_create_structure_vars): Remove.
7996 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7997 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7998 * tree-ssa-alias.c (create_structure_vars): Remove.
7999 (gate_structure_vars): Likewise.
8000 (pass_create_structure_vars): Likewise.
8001 (gate_build_alias): Likewise.
8002 (pass_build_alias): Adjust to run always and dump the function.
8003 * common.opt (ftree-salias): Hide.
8004 * passes.c (init_optimization_passes): Remove
8005 pass_create_structure_vars, adjust comment.
8006 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8007 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8008 * opts.c (decode_options): Do not set flag_tree_salias.
8009 (common_handle_option): Add OPT_ftree_salias to the backward
8010 compatibility section.
8012 2008-05-08 Richard Guenther <rguenther@suse.de>
8014 * tree-flow-inline.h (var_can_have_subvars): Move ...
8015 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8016 * tree-flow.h (var_can_have_subvars): Remove.
8017 (push_fields_onto_fieldstack): Remove.
8018 (sort_fieldstack): Likewise.
8019 (struct fieldoff): Move ...
8020 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
8021 alias_set and base_for_components fields.
8022 (sort_fieldstack): Make static.
8023 (push_fields_onto_fieldstack): Likewise. Remove code that
8024 handles anything but RECORD_TYPEs. Remove alias_set and
8025 base_for_components handling.
8026 (create_variable_info_for): Adjust.
8028 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
8030 * common.opt (Wframe-larger-than=): Shorten the help message
8032 * doc/invoke.texi (Wframe-larger-than=): Add more description.
8034 2008-05-08 Rafael Espindola <espindola@google.com>
8036 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8038 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8039 trap and that both operands are gimple values.
8040 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8041 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8044 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8046 * read-rtl.c (join_c_conditions): Return the first string if the
8047 two strings are equal.
8049 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8051 * gensupport.h (pred_data): Add a "num_codes" field.
8052 (add_predicate_code): Declare.
8053 * gensupport.c (add_predicate_code): New function.
8054 (std_pred_table): Add an "allows_const_p" field.
8055 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8056 Remove the (incomplete) list of such codes from the codes field.
8057 (init_predicate_table): Use add_predicate_code. Add all
8058 RTX_CONST_OBJs if allows_const_p is true.
8059 * genrecog.c (process_define_predicate): Use add_predicate_code.
8061 2008-05-08 David Daney <ddaney@avtrex.com>
8062 Richard Sandiford <rsandifo@nildram.co.uk>
8064 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8065 special case of constant zero operands.
8066 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8067 old and new values. Special case constant zero values.
8068 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8070 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8071 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8073 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
8076 * simplify-rtx.c (simplify_plus_minus): Create CONST of
8077 similar RTX_CONST_OBJ before CONST_INT.
8079 2008-05-08 Steve Ellcey <sje@cup.hp.com>
8081 * stmt.c (expand_stack_restore): Change sa mode if needed.
8083 2008-05-08 Richard Guenther <rguenther@suse.de>
8085 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8086 return type to bool.
8087 (ix86_sol10_return_in_memory): Likewise.
8088 (ix86_i386elf_return_in_memory): Likewise.
8089 (ix86_i386interix_return_in_memory): Likewise.
8090 * config/i386/i386.c (ix86_return_in_memory): Likewise.
8091 (ix86_sol10_return_in_memory): Likewise.
8092 (ix86_i386elf_return_in_memory): Likewise.
8093 (ix86_i386interix_return_in_memory): Likewise.
8095 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8098 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8100 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8101 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8104 2008-05-08 Richard Guenther <rguenther@suse.de>
8106 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8107 * tree-data-ref.h (struct dr_alias): Remove subvars field.
8108 (DR_SUBVARS): Remove.
8109 * tree-dfa.c (dump_subvars_for): Remove.
8110 (debug_subvars_for): Likewise.
8111 (dump_variable): Do not dump subvars.
8112 (remove_referenced_var): Do not remove subvars.
8113 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8114 (lookup_subvars_for_var): Remove.
8115 (get_subvars_for_var): Likewise.
8116 (get_subvars_at): Likewise.
8117 (get_first_overlapping_subvar): Likewise.
8118 (overlap_subvar): Likewise.
8119 * tree-flow.h (subvar_t): Remove.
8120 (struct var_ann_d): Remove subvars field.
8121 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8122 argument. Remove special handling of SFTs.
8123 (compute_tag_properties): Likewise.
8124 (set_initial_properties): Likewise.
8125 (compute_call_clobbered): Likewise.
8126 (count_mem_refs): Likewise.
8127 (compute_memory_partitions): Likewise.
8128 (compute_flow_insensitive_aliasing): Likewise.
8129 (setup_pointers_and_addressables): Likewise.
8130 (new_type_alias): Likewise.
8131 (struct used_part): Remove.
8132 (used_portions): Likewise.
8133 (struct used_part_map): Likewise.
8134 (used_part_map_eq): Likewise.
8135 (used_part_map_hash): Likewise.
8136 (free_used_part_map): Likewise.
8137 (up_lookup): Likewise.
8138 (up_insert): Likewise.
8139 (get_or_create_used_part_for): Likewise.
8140 (create_sft): Likewise.
8141 (create_overlap_variables_for): Likewise.
8142 (find_used_portions): Likewise.
8143 (create_structure_vars): Likewise.
8144 * tree.def (STRUCT_FIELD_TAG): Remove.
8145 * tree.h (MTAG_P): Adjust.
8146 (struct tree_memory_tag): Remove base_for_components and
8147 unpartitionable flags.
8148 (struct tree_struct_field_tag): Remove.
8149 (SFT_PARENT_VAR): Likewise.
8150 (SFT_OFFSET): Likewise.
8151 (SFT_SIZE): Likewise.
8152 (SFT_NONADDRESSABLE_P): Likewise.
8153 (SFT_ALIAS_SET): Likewise.
8154 (SFT_UNPARTITIONABLE_P): Likewise.
8155 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8156 (union tree_node): Remove sft field.
8157 * alias.c (get_alias_set): Remove special handling of SFTs.
8158 * print-tree.c (print_node): Remove handling of SFTs.
8159 * tree-dump.c (dequeue_and_dump): Likewise.
8160 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8161 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8162 * tree-predcom.c (set_alias_info): Do not set subvars.
8163 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8164 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8165 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8166 (add_vars_for_offset): Remove.
8167 (add_virtual_operand): Remove special handling of SFTs.
8168 (add_call_clobber_ops): Likewise.
8169 (add_call_read_ops): Likewise.
8170 (get_asm_expr_operands): Likewise.
8171 (get_modify_stmt_operands): Likewise.
8172 (get_expr_operands): Likewise.
8173 (add_to_addressable_set): Likewise.
8174 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8175 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8176 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8177 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8178 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8179 (tree_node_structure): Likewise.
8180 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8182 (find_what_p_points_to): Likewise.
8184 2008-05-08 Sa Liu <saliu@de.ibm.com>
8186 * config/spu/spu.md: Fixed subti3 pattern.
8188 2008-05-08 Richard Guenther <rguenther@suse.de>
8191 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8192 sure to create a representative for trailing arrays for PTA.
8194 2008-05-08 Richard Guenther <rguenther@suse.de>
8197 * fold-const.c (operand_equal_p): Two objects which types
8198 differ in pointerness are not equal.
8200 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8202 * calls.c (compute_argument_block_size): Add argument tree fndecl.
8203 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8204 (emit_library_call_value_1): Add new variable fndecl initialized by
8205 NULL_TREE. It should be the decl type of orgfun, but this information
8206 seems not to be available here, so it uses the default calling abi.
8207 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8208 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8209 by TARGET_RETURN_IN_MEMORY.
8210 * config/i386/i386-interix.h: Likewise.
8211 * config/i386/i386.h: Likewise.
8212 * config/i386/i386elf.h: Likewise.
8213 * config/i386/ptx4-i.h: Likewise.
8214 * config/i386/sol2-10.h: Likewise.
8215 * config/i386/sysv4.h: Likewise.
8216 * config/i386/vx-common.h: Likewise.
8217 * config/cris/cris.h: Removed #if 0 clause.
8218 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8219 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8221 (ix86_sol10_return_in_memory): Likewise.
8222 (ix86_i386elf_return_in_memory): New.
8223 (ix86_i386interix_return_in_memory): New.
8224 * config/mt/mt-protos.h (mt_return_in_memory): New.
8225 * config/mt/mt.c: Likewise.
8226 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8227 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
8228 * config/bfin/bfin.h: Likewise.
8229 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8231 * config/bfin/bfin.c: Likewise.
8232 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8233 * config/alpha/unicosmk.h: Likewise.
8234 * config/i386/cygming.h: Likewise.
8235 * config/iq2000/iq2000.h: Likewise.
8236 * config/mips/mips.h: Likewise.
8237 * config/mn10300/mn10300.h: Likewise.
8238 * config/rs6000/rs6000.h: Likewise.
8239 * config/score/score.h: Likewise.
8240 * config/spu/spu.h: Likewise.
8241 * config/v850/v850.h: Likewise.
8242 * defaults.h: Likewise.
8243 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8244 * expr.c (emit_block_move): Adjust use of
8245 OUTGOING_REG_PARM_STACK_SPACE.
8246 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8247 OUTGOING_REG_PARM_STACK_SPACE.
8248 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8250 2008-05-08 Jakub Jelinek <jakub@redhat.com>
8252 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8253 on OMP_RETURN for OMP_FOR.
8256 * dwarf2out.c (dw_expand_expr, common_check): Removed.
8257 (fortran_common): New function.
8258 (gen_variable_die): Call fortran_common instead of common_check,
8259 adjust for it returning tree instead of rtx. Formatting.
8261 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
8265 * see.c (see_copy_insn): Copy new pure const attributes for new call.
8266 * c-decl.c (merge_decls): Ditto.
8267 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8268 to RTL_CONST_OR_PURE_CALL_P.
8269 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8270 Initialized DECL_LOOPING_CONST_PURE.
8271 (process_call_operands): Set tree_side_effects properly.
8272 * tree.h (TREE_READONLY_DECL_P): Removed.
8273 (DECL_IS_PURE): Renamed to DECL_PURE_P.
8274 (DECL_LOOPING_OR_CONST_P): New macro.
8275 (struct tree_function_decl): Added looping_const_or_pure_p.
8277 (ECF_LOOPING_OR_CONST_P): New macro.
8278 * rtlanal.c (pure_const_p): Removed.
8279 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8280 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8281 to RTL_CONST_CALL_P.
8282 * ipa-pure-const.c (pure_const_state_e): Added looping field.
8283 (check_decl, check_tree, check_call, scan_function): Initialize
8285 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8286 (static_execute): Set looping true for recursive functions.
8287 Undo setting state to IPA_NEITHER for recursive functions.
8289 * ifcvt.c (noce_can_store_speculate_p): Changed
8290 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8291 RTL_CONST_OR_PURE_CALL_P.
8292 * dse.c (scan_insn): Ditto.
8293 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8294 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8295 RTL_CONST_OR_PURE_CALL_P.
8296 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8297 pure_call_p to RTL_CONST_CALL_P.
8298 * gimplify.c (gimplify_call_expr): Clear side effects for
8299 non-looping pure and constant calls.
8300 * calls.c (emit_call_1): Set rtl flags from ecf flags.
8301 (flags_from_decl_or_type): Set ecf flags from decl flags.
8302 (initialize_argument_information): Turn off
8303 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8304 Change const to pure if callee_copies is true rather than just
8306 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8307 way of marking pure calls.
8308 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8309 Remove hack that was supposed to fix pr7335 and remove old
8310 way of marking pure calls.
8311 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8312 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8313 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8314 RTL_CONST_OR_PURE_CALL_P.
8315 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8316 * loop-invariant.c (find_exits, find_invariant_bb): Changed
8317 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8318 * sched-deps.c (schedule_analyze): Ditto.
8319 * rtl.h (struct rtx_def): Use call field, unchanging field, and
8320 return_val field of calls to represent pure and const function info.
8321 (CONST_OR_PURE_CALL_P): Deleted macro.
8322 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8323 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8324 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8326 * tree-optimize.c (execute_fixup_cfg): Added test for
8327 ECF_LOOPING_CONST_OR_PURE.
8328 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8330 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8331 effects for looping pure or const calls.
8332 (verify_gimple_expr): Added verification code.
8333 * config/alpha/alpha.c (alpha_legitimize_address,
8334 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8336 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8337 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8338 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8339 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8340 RTL_CONST_OR_PURE_CALL_P.
8341 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8342 and const calls to be deleted.
8344 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8347 * config/i386/mmx.md (mmx_subv2sf3): New expander.
8348 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8349 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8350 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8351 to handle nonimmediate operands.
8352 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8353 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
8354 to handle nonimmediate operands.
8355 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8356 (mmx_pmulhrwv4hi3): New expander. Use
8357 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8358 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8359 (sse2_umulv1siv1di3): New expander. Use
8360 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8361 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8362 (mmx_eq<mode>3): New expander. Use
8363 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8364 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8365 (mmx_uavgv8qi3): New expander. Use
8366 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8367 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8368 (mmx_uavgv4hi3): New expander. Use
8369 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8371 * config/i386/sse.md
8372 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
8373 to handle nonimmediate operands.
8374 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
8375 to handle nonimmediate operands.
8376 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
8377 to handle nonimmediate operands.
8378 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
8379 to handle nonimmediate operands.
8380 (sse2_unpckhpd_exp): New expander. Use
8381 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8382 (sse2_unpcklpd_exp): New expander. Use
8383 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8384 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
8385 to handle nonimmediate operands.
8386 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
8387 to handle nonimmediate operands.
8388 (*sse2_<plusminus_insn><mode>3): Rename from
8389 sse2_<plusminus_insn><mode>3 insn pattern.
8390 (sse2_<plusminus_insn><mode>3): New expander. Use
8391 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8392 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8393 (sse2_umulv2siv2di3): New expander. Use
8394 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8395 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8396 (sse4_1_mulv2siv2di3): New expander. Use
8397 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8398 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8399 (sse2_pmaddwd): New expander. Use
8400 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8401 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8402 (sse2_eq<mode>3): New expander. Use
8403 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8404 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8405 (sse4_1_eqv2di3): New expander. Use
8406 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8407 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8408 (sse2_uavgv16qi3): New expander. Use
8409 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8410 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8411 (sse2_uavgv16qi3): New expander. Use
8412 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8413 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8414 (sse2_uavgv8hi3): New expander. Use
8415 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8416 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8417 (ssse3_pmulhrswv8hi3): New expander. Use
8418 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8419 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8420 (ssse3_pmulhrswv4hi3): New expander. Use
8421 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8423 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8424 (<sse>_vmmul<mode>3): Ditto.
8425 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8427 (ssse3_pmaddubsw128): Use register_operand for operand 1.
8428 (ssse3_pmaddubsw): Ditto.
8430 * config/i386/i386.c (struct_builtin_description)
8431 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8432 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8433 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8434 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8435 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8436 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8437 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8438 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8439 (ix86_fixup_binary_operands): Assert that src1
8440 and src2 must have the same mode when swapped.
8441 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8442 and ix86_binary_operator_ok. Do not force operands in registers
8445 2008-05-07 Jan Hubicka <jh@suse.cz>
8447 * cgraph.c (dump_cgraph_node): Update.
8448 * cgraph.h (cgraph_local_info): Break out inline summary.
8449 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8451 * ipa-inline (inline_summary): New accestor function.
8452 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8453 cgraph_decide_inlining, compute_inline_parameters): Update.
8454 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8456 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8458 Cleanup ColdFire scheduling support and add V4 pipeline model.
8460 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8461 (define_attr cpu): Add cfv4 value.
8462 (define_attr type, define_attr type1): Merge into a single 'type'
8463 attribute. Update all uses.
8464 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8465 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
8467 (define_attr opx_mem, define_attr opy_mem): Remove.
8468 (define_attr op_mem): Clean up, update comment.
8469 (define_attr size): Use specific values instead of general int.
8470 (define_attr guess, define_attr split): Remove. Update all uses.
8471 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8472 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8473 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8474 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8475 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8476 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8477 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8478 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8479 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8480 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8481 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8482 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8483 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8484 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8485 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8486 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8487 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8488 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8489 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8490 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8491 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8492 Update or set attributes.
8493 (stack_tie): New fake instruction.
8495 * config/m68k/m68k.h (TUNE_CFV4): New macro.
8496 (m68k_sched_attr_size): Update declaration.
8497 (m68k_sched_attr_type2): Remove.
8498 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8499 Declare new bypass predicates.
8501 * config/m68k/m68k.c (m68k_sched_issue_rate,
8502 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8504 (TARGET_SCHED_ISSUE_RATE,
8505 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8506 (override_options): Handle scheduling for ColdFire V4 core.
8507 (m68k_expand_prologue): Emit stack_tie.
8508 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8509 'OP_TYPE_FPN'. Update all uses.
8510 (sched_guess_p): Remove.
8511 (sched_address_type): Handle symbolic addresses.
8512 (sched_get_operand): New static function.
8513 (sched_operand_type): Merge into sched_attr_op_type.
8514 (sched_attr_op_type): Handle FP registers, handle quick constants,
8516 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8517 (m68k_sched_attr_size): Update. Move logic to ...
8518 (sched_get_attr_size_int): New static function.
8519 (sched_get_opxy_mem_type): New static function.
8520 (m68k_sched_attr_op_mem): Update.
8521 (m68k_sched_attr_type2): Remove.
8522 (sched_cfv4_bypass_data): New static variable.
8523 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8524 (m68k_sched_issue_rate): Implement scheduler hook.
8525 (struct _sched_ib: enabled_p): New field.
8526 (m68k_sched_variable_issue): Update. Handle V4.
8527 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8528 sched_dump_class_func_t, sched_dump_split_class,
8529 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8530 sched_dump_dfa_class, m68k_sched_dump): Remove.
8531 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8533 (m68k_sched_init_global): Remove statisctics dumping, introduce
8534 sanity check that all instructions have pipeline reservations. Handle
8536 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8537 Handle ColdFire V4 core.
8538 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8539 New static functions.
8540 (m68k_sched_address_bypass_p): New bypass predicate.
8541 (sched_get_indexed_address_scale): New static function.
8542 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8544 * cf.md: Update comments.
8545 (define_attr type2): Remove. Use 'type' attribute instead.
8547 (cf_ib): Rename to cfv123_ib. Update all uses.
8548 (cf_oep): Rename to cfv123_oep. Update all uses.
8549 (cf_chr): Rename to cfv123_chr. Update all uses.
8550 (cf_mem): Rename to cfv123_mem. Update all uses.
8551 (cf_mac): Move to more appropriate place.
8552 (cfv123_guess): New automaton and cpu_unit.
8553 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8554 Update uses of 'size' attribute. Handle before reload scheduling.
8555 (cfv123_guess): New dummy reservation for unhandled instructions.
8556 (cfv4_*): Pipeline description of ColdFire V4 core.
8557 (ignore): New reservation to handle 'ignore' type.
8559 2008-05-07 Ian Lance Taylor <iant@google.com>
8562 * gimplify.c (find_single_pointer_decl_1): Don't look through
8564 (find_single_pointer_decl): Adjust comments.
8566 2008-05-07 Jakub Jelinek <jakub@redhat.com>
8569 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8570 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8573 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8574 integral type rather than floating point, then VIEW_CONVERT_EXPR
8575 to the floating point type.
8577 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8579 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8580 TFmode op0 to register.
8582 2008-05-07 Alan Modra <amodra@bigpond.net.au>
8584 * c-decl.c (grokdeclarator): Comment typo.
8586 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
8588 * tree-flow.h: Remove prototype for computed_goto_p.
8589 * tree-cfg.c (computed_goto_p): Make static.
8591 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
8594 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8595 (contains_aligned_value_p): This. Handle _Decimal128.
8596 (ix86_function_arg_boundary): Only align _Decimal128 to its
8597 natural boundary and handle it properly.
8599 2008-05-06 Martin Jambor <mjambor@suse.cz>
8601 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8602 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8603 (ipcp_method_set_orig_node): Removed.
8604 (ipcp_cval_get_cvalue_type): Removed.
8605 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8606 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8607 (ipcp_cval_set_cvalue_type): Removed.
8608 (ipcp_cval_get_cvalue): Removed.
8609 (ipcp_cval_set_cvalue): Removed.
8610 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8611 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8612 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8613 (ipcp_cval_meet): Renamed to ipa_lattice_meet
8614 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8615 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8616 (ipcp_get_ith_lattice): Changed parameters.
8617 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8618 (ipcp_lattice_from_jfunc): Changed parameters.
8619 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8620 (ipcp_method_cval_print): Added temporary variable info.
8621 (ipcp_redirect): Removed already unused local variable caller.
8622 (ipcp_redirect): New temporary variable orig_callee_info
8623 (ipcp_redirect): Removed newly unused local variable callee.
8624 (ipcp_redirect): Removed (a bit confusing) local variable type.
8625 (ipcp_insert_stage): Added local variable info.
8626 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8628 (ipcp_formal_create): Removed.
8629 (ipcp_method_cval_set): Removed.
8630 (ipcp_propagate_stage): Renamed lattice variables.
8631 (ipcp_method_cval_set_cvalue_type): Removed.
8632 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8633 (ipcp_print_all_lattices): Changed printed strings to refer to
8634 lattices rather than cvals.
8635 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8636 (ipcp_propagate_const): Changed formal parameters.
8637 (build_const_val): Changed formal parameters.
8638 (ipcp_insert_stage): Removed useless variable cvalue
8639 (build_const_val): Changed formal parameters.
8640 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8641 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8642 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8643 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8644 (ipcp_print_func_profile_counts): Changed string from "method" to
8646 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8647 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8648 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8649 (ipcp_structures_print): Renamed to ipcp_print_all_structures
8650 (ipcp_profile_print): Renamed to ipcp_print_profile_data
8651 (ipcp_lat_is_const): Changed parameters and made inline.
8652 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8653 (ipcp_redirect): Renamed to ipcp_need_redirect_p
8654 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8655 the predicate condition directly
8656 (ipcp_propagate_stage): Added local variable args. Removed local
8657 variable callee. (Both are mere code simplifications.)
8658 (ipcp_method_dont_insert_const): Renamed to
8659 ipcp_node_not_modifiable_p.
8660 (ipcp_node_not_modifiable_p): Made inline.
8661 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8662 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8663 (ipcp_print_all_lattices): Removed variable cvalue
8664 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8667 2008-05-06 Olivier Hainque <hainque@adacore.com>
8669 * tree-sra.c (try_instantiate_multiple_fields): Early return
8670 if field has POINTER_TYPE.
8672 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
8674 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8675 by using 'q' specifier for instruction.
8676 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8678 2008-05-06 Anatoly Sokolov <aesok@post.ru>
8680 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8681 Change mode of zero_extract from QImode to HImode.
8682 (sign bit tests peepholes): (Ditto.).
8684 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
8686 * config/i386/mmx.md: Remove double backslashes from asm templates.
8687 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8688 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8689 to handle nonimmediate operands.
8690 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8691 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8692 to handle nonimmediate operands.
8693 (*mmx_<code>v2sf3_finite): New insn pattern.
8694 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8695 (mmx_<code>v2sf3): New expander. Use
8696 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8697 (mmx_<plusminus_insn><mode>3): New expander. Use
8698 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8699 (*mmx_<plusminus_insn><mode>3): New insn pattern.
8700 (mmx_add<mode>3): Removed.
8701 (mmx_ssadd<mode>3): Ditto.
8702 (mmx_usadd<mode>3): Ditto.
8703 (mmx_sub<mode>3): Ditto.
8704 (mmx_sssub<mode>3): Ditto.
8705 (mmx_ussub<mode>3): Ditto.
8706 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8707 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
8708 to handle nonimmediate operands.
8709 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8711 (mmx_smulv4hi3_highpart): New expander. Use
8712 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8713 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8715 (mmx_umulv4hi3_highpart): New expander. Use
8716 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8717 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8718 (mmx_<code>v4hi3): New expander. Use
8719 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8720 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8721 (mmx_<code>v8qi3): New expander. Use
8722 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8723 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8724 (mmx_<code><mode>3): New expander. Use
8725 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8727 2008-05-05 Jan Hubicka <jh@suse.cz>
8729 PR tree-optimization/36118
8730 * passes.c (pass_init_dump_file): Fix dump header.
8732 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8735 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8736 VCE for function decls.
8738 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8740 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8742 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8744 * config/i386/i386.md (sat_plusminus): New.
8745 (plusminus_insn): Likewise.
8746 (plusminus_mnemonic): Likewise.
8748 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8749 (*<addsub><mode>3_cc_overflow): Renamed to ...
8750 (*<plusminus_insn><mode>3_cc_overflow): This.
8751 (*<addsub>si3_zext_cc_overflow): Renamed to ...
8752 (*<plusminus_insn>si3_zext_cc_overflow): This.
8754 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8755 (<plusminus_insn><mode>3): This.
8756 (*<addsub><mode>3): Renamed to ...
8757 (*<plusminus_insn><mode>3): This.
8758 (<sse>_vm<addsub><mode>3): Renamed to ...
8759 (<sse>_vm<plusminus_insn><mode>3): This.
8760 (sse3_h<addsub>v4sf3): Renamed to ...
8761 (sse3_h<plusminus_insn>v4sf3): This.
8762 (sse3_h<addsub>v2df3): Renamed to ...
8763 (sse3_h<plusminus_insn>v2df3): This.
8764 (<plusminus_insn><mode>3): New.
8765 (*<plusminus_insn><mode>3): Likewise.
8766 (sse2_<plusminus_insn><mode>3): Likewise.
8767 (add<mode>): Removed.
8768 (*add<mode>3): Likewise.
8769 (sse2_ssadd<mode>3): Likewise.
8770 (sse2_usadd<mode>3): Likewise.
8771 (sub<mode>3): Likewise.
8772 (*sub<mode>3): Likewise.
8773 (sse2_sssub<mode>3): Likewise.
8774 (sse2_ussub<mode>3): Likewise.
8776 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8778 * gthr-single.h: Add in required interface elements as per gthr.h.
8779 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8780 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8781 Generalize UNUSED macro.
8782 (__gthread_once): Add.
8783 (__gthread_key_create): Add.
8784 (__gthread_key_delete): Add.
8785 (__gthread_getspecific): Add.
8786 (__gthread_setspecific): Add.
8788 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8790 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8791 the same size types for the indirect reference on the rhs, then
8794 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8796 * config/i386/i386.md
8797 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8798 one insn template instead of template series.
8799 (*xordi_1_rex64): Ditto.
8800 (*xordi_2_rex64): Ditto.
8802 2008-05-05 Ira Rosen <irar@il.ibm.com>
8804 PR tree-optimization/36119
8805 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8808 2008-06-04 Jan Hubicka <jh@suse.cz>
8810 tree-optimization/36100
8811 * tree-pass.h (pass_O0_always_inline): Declare.
8812 * ipa-inline.c (inline_transform): Remove dead code.
8813 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8814 pass_O0_always_inline): New.
8815 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8817 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8819 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8820 mnemonic in this_param move for TARGET_64BIT.
8822 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8824 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8825 (*strmovsi_rex_1): Ditto.
8826 (*strsetsi_1): Ditto.
8827 (*strsetsi_rex_1): Ditto.
8829 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8830 adddicc expanders using SWI mode iterator.
8832 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8835 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8838 2008-05-04 David S. Miller <davem@davemloft.net>
8840 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8841 (sparc*-*-linux*): Use linux.h in tm_file.
8842 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8843 compiler defaulting to 32-bit.
8844 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8846 * config/sparc/linux.h: Remove definitions now obtained
8847 properly from linux.h
8848 * config/sparc/linux64.h: Likewise.
8849 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8850 don't want this setting for 32-bit builds in a biarch compiler.
8851 * doc/install.texi: Add sparc-linux to list of targets
8852 supporting --enable-targets=all.
8854 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8856 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8858 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8860 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8861 after V4SI_FTYPE_V8HI.
8862 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8863 case V4SI_FTYPE_V2DF.
8865 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8867 * doc/invoke.texi (max-flow-memory-locations): Removed.
8868 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8870 2008-05-03 Richard Guenther <rguenther@suse.de>
8873 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8875 2008-05-02 David S. Miller <davem@davemloft.net>
8877 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8879 2008-05-02 Simon Baldwin <simonb@google.com>
8882 * c-common.h (warn_array_subscript_range): Removed.
8883 * c-common.c (warn_array_subscript_range): Ditto.
8884 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8885 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8887 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8889 * config/i386/i386.c (ix86_special_builtin_type): New.
8890 (bdesc_special_args): Likewise.
8891 (ix86_expand_special_args_builtin): Likewise.
8892 (ix86_init_mmx_sse_builtins): Updated.
8893 (ix86_expand_builtin): Updated.
8894 (ix86_expand_store_builtin): Removed.
8895 (ix86_expand_unop_builtin): Likewise.
8897 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8898 * config/i386/mmintrin.h (__v2sf): Here.
8900 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8902 (_mm_loadl_pi): Likewise.
8903 (_mm_storeh_pi): Replace __v2si with __v2sf.
8904 (_mm_storel_pi): Likewise.
8906 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8907 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8908 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8909 __builtin_ia32_loadlpd.
8911 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8913 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8914 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8915 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
8916 (ix86_init_mmx_sse_builtins): Updated.
8917 (ix86_expand_args_builtin): Likewise.
8918 (ix86_expand_builtin): Likewise.
8919 (ix86_expand_unop1_builtin): Renamed to ...
8920 (ix86_expand_unop_vec_merge_builtin): This.
8922 2008-05-01 Jan Hubicka <jh@suse.cz>
8925 * ipa-inline.c (inline_generate_summary): Make static.
8926 (inline_transform): Do not call inlining at -O0; make static.
8927 * passes.c (execute_todo): Add sanity check.
8928 (execute_one_ipa_transform_pass): Execute proper flags.
8930 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8932 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8933 (DECL_NONADDRESSABLE_P): Likewise.
8934 * alias.c (record_component_aliases): Fix comment.
8936 2008-05-01 Simon Baldwin <simonb@google.com>
8938 * c-common.h (warn_array_subscript_range): New function.
8939 * c-common.c (warn_array_subscript_range): Ditto.
8940 * tree-vrp.c (check_array_ref): Corrected code to agree with
8941 comment, ignoring only arrays of size 0 or size 1.
8942 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8944 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8946 * config/i386/i386.c (ix86_builtin_type): Replace
8947 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8948 (bdesc_args): Updated.
8949 (ix86_init_mmx_sse_builtins): Likewise.
8950 (ix86_expand_args_builtin): Likewise.
8952 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8955 * doc/extend.texi: Correct __builtin_ia32_palignr.
8957 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8960 * config/i386/i386.c (bdesc_crc32): Removed.
8961 (ix86_expand_crc32): Likewise.
8962 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8963 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8964 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
8965 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8966 UINT_FTYPE_UINT_UCHAR.
8967 (bdesc_args): Updated. Add crc32 builtins.
8968 (ix86_init_mmx_sse_builtins): Updated.
8969 (ix86_expand_args_builtin): Updated to support subreg.
8971 * doc/extend.texi: Correct __builtin_ia32_crc32di.
8973 2008-05-01 Jan Hubicka <jh@suse.cz>
8975 * tree-pass.h (opt_pass): Add IPA_PASS.
8976 (varpool_node, cgraph_node): Forward declare.
8977 (ipa_opt_pass): Define.
8978 (pass_ipa_inline): Turn into ipa_opt_pass.
8979 (pass_apply_inline): Remove.
8980 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8981 (apply_inline): Turn into ....
8982 (inline_transform): ... this one.
8983 (inline_generate_summary): New function.
8984 (pass_apply_inline): Remove.
8985 * function.h (ipa_opt_pass): Forward declare structure; typedef;
8987 (struct function): Add ipa_transforms_to_apply.
8988 * passes.c (register_one_dump_file): Work on IPA_PASS.
8989 (init_optimization_passes): Remove pass_inline_parameters and
8991 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8992 (execute_one_pass) ... here; apply transforms when possible.
8993 (add_ipa_transform_pass, execute_ipa_summary_asses,
8994 execute_one_ipa_transform_pass): New.
8995 (execute_ipa_pass_list): Update for IPA_PASS type.
8997 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
8999 * config/i386/i386.c (ix86_builtin_type): Add
9000 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9001 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9002 (bdesc_args): Add SSE4a builtins.
9003 (ix86_init_mmx_sse_builtins): Updated.
9004 (ix86_expand_args_builtin): Likewise.
9005 (ix86_expand_builtin): Likewise.
9007 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9009 * config/i386/i386.c (ix86_builtin_type): Add
9010 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9011 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9012 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9013 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9014 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9015 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9016 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9017 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9018 and DI_FTYPE_DI_DI_INT.
9019 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9020 (ix86_init_mmx_sse_builtins): Updated.
9021 (ix86_expand_args_builtin): Likewise.
9022 (ix86_expand_builtin): Likewise.
9023 (ix86_expand_binop_imm_builtin): Removed.
9025 * doc/extend.texi: Correct __builtin_ia32_palignr128.
9027 2008-04-30 Richard Guenther <rguenther@suse.de>
9029 PR tree-optimization/32921
9030 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9032 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
9034 * config/arm/arm.c (arm_unwind_emit): Use
9035 crtl->all_throwers_are_sibcalls instead of
9036 cfun->all_throwers_are_sibcalls.
9037 (arm_output_fn_unwind): Likewise.
9038 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9039 instead of cfun->uses_pic_offset_table.
9040 (frv_expand_prologue): Likewise.
9041 (frv_frame_pointer_required): Likewise.
9042 (frv_expand_fdpic_call): Likewise.
9043 (frv_emit_movsi): Likewise.
9044 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9045 cfun->returns_pcc_struct instead of
9046 current_function_returns_pcc_struct.
9047 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9048 instead of cfun->calls_eh_return.
9049 (m32c_pushm_popm): Likewise.
9050 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9051 "extern" declaration.
9053 2008-04-30 Richard Guenther <rguenther@suse.de>
9055 PR tree-optimization/21636
9056 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9058 (evaluate_stmt): Print the likely value.
9059 (ccp_visit_stmt): Avoid excessive vertical spacing.
9061 2008-04-30 Rafael Espindola <espindola@google.com>
9063 * builtins.c (fold_call_expr): Return realret.
9064 * tree-ssa-threadedge.c
9065 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9066 __builtin_object_size.
9068 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
9070 * gcc.c (wrapper_string): New variable.
9071 (insert_wrapper): New function.
9072 (execute): New option -wrapper.
9073 * doc/invoke.texi (Overall Options): New driver option -wrapper.
9075 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
9077 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9078 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9079 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9081 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
9082 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9083 config/rs6000/e500crtres64gprctr.asm,
9084 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9085 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9086 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9087 config/rs6000/e500crtsav64gprctr.asm,
9088 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9089 config/rs6000/e500crtsavg64gprctr.asm: New files.
9090 * config/rs6000/t-ppccomm: Add build rules for new files.
9091 (LIB2FUNCS_STATIC_EXTRA): Add new files.
9092 * config/rs6000/t-netbsd: Add build rules for new files.
9093 (LIB2FUNCS_STATIC_EXTRA): New variable.
9094 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9095 (CRTSAVRES_DEFAULT_SPEC): Likewise.
9096 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9098 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
9100 * config/i386/i386.c (ix86_builtin_type): Add
9101 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9102 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9103 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9104 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9105 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9106 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9107 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9108 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9109 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9110 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9111 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9112 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9113 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9114 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9115 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9116 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9117 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9118 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9119 V1DI_FTYPE_V2SI_V2SI.
9120 (bdesc_2arg): Moved to ...
9122 (ix86_init_mmx_sse_builtins): Updated.
9123 (ix86_expand_args_builtin): Updated. Take a pointer
9124 to const struct builtin_description. Handle comparison
9126 (ix86_expand_sse_compare): Take a new argument for swapping operands.
9127 (ix86_expand_builtin): Updated.
9129 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9130 (ssse3_pmaddubsw128): This.
9131 (ssse3_pmaddubswv4hi3): Renamed to ...
9132 (ssse3_pmaddubsw): This.
9134 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9135 (__builtin_ia32_packssdw128): Likewise.
9136 (__builtin_ia32_packuswb128): Likewise.
9137 (__builtin_ia32_pmaddubsw): Likewise.
9138 (__builtin_ia32_pmaddubsw128): Likewise.
9140 2008-04-30 Richard Guenther <rguenther@suse.de>
9142 PR tree-optimization/14847
9143 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9144 (recognize_bits_test): Use it.
9145 (recognize_single_bit_test): Likewise.
9147 2008-04-30 Martin Jambor <mjambor@suse.cz>
9149 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9150 instead of setting number of formal parameters to zero.
9151 (ipcp_init_stage): Do not set the number of actual parameters to zero
9153 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9154 which are called with variable number of arguments.
9155 (ipcp_insert_stage): Explicitely skipping all nodes which are
9156 called with variable number of arguments.
9157 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9158 number of parameters.
9160 * ipa-prop.h (struct ipa_node_params): Added flag
9161 called_with_var_arguments
9162 (ipa_set_param_count): Added. Changed sole setter to use it.
9163 (ipa_get_param_count): Added. All readers of param_count
9164 converted to use it instead.
9165 (ipa_set_called_with_variable_arg): Added.
9166 (ipa_is_called_with_var_arguments): Added.
9167 (ipa_get_ith_param): Added. All readers of param_decls converted
9169 (ipa_set_cs_argument_count): Added, sole writer to argument_count
9171 (ipa_get_cs_argument_count): Added, all readers of argument_count
9173 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9176 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9177 (struct ipcp_lattice): Renamed cval_type to type
9178 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9180 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9181 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9182 (ipcp_insert_stage): Changed the type of variable cvalue to tree
9183 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9184 (build_const_val): Changed the type of parameter cvalue to tree
9185 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9186 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9188 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9191 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9192 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9193 (ipa_add_method): Renamed to ipa_push_func_to_list
9194 (ipa_remove_method): Renamed to ipa_pop_func_from_list
9195 (ipa_callsite_param_count): Removed.
9196 (ipa_callsite_param_count_set): Removed.
9197 (ipa_callsite_param): Removed.
9198 (ipa_callsite_callee): Removed.
9199 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9200 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9201 (ipa_method_formal_count): Removed.
9202 (ipa_method_formal_count_set): Removed.
9203 (ipa_method_get_tree): Removed.
9204 (ipa_method_tree_map_create): Removed.
9205 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9206 (ipa_create_param_decls_array): Creates the array itself
9207 (ipa_create_param_decls_array): Temporary variable info instead of
9209 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9210 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9211 (get_type): Removed.
9212 (ipa_jf_get_info_type): Removed.
9213 (ipa_node_create): Renamed to ipa_create_node_params
9214 (ipa_free): Renamed to ipa_free_all_node_params
9215 (ipa_nodes_create): Renamed to ipa_create_all_node_params
9216 (ipa_edges_create): Renamed to ipa_create_all_edge_args
9217 (ipa_edges_free): Renamed to ipa_free_all_edge_args
9218 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9219 (ipa_free_all_node_params): Deallocation to jump_functions moved to
9220 ipa_free_all_edge_args
9221 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9222 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9223 (ipa_create_methodlist_node): Removed.
9224 (ipa_methodlist_method): Removed.
9225 (ipa_methodlist_method_set): Removed.
9226 (ipa_methodlist_next_method): Removed.
9227 (ipa_methodlist_next_method_set): Removed.
9228 (ipa_method_is_modified): Removed.
9229 (ipa_method_modify_create): Removed.
9230 (ipa_method_modify_init): Temporary variable info instead of a few
9232 (ipa_detect_param_modifications): Temporary variable info instead of
9234 (ipa_compute_jump_functions): Temporary variable info instead of
9236 (ipa_method_modify_set): Removed.
9237 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9238 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9239 than craph_node as the first parameter.
9240 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9241 (ipa_method_modify_init): Removed.
9242 (ipa_compute_jump_functions): Added a temp variable instead of
9243 repeatadly dereferencing the cgraph_edge.aux pointer
9244 (ipa_callsite_param_set_type): Removed.
9245 (ipa_compute_jump_functions): i renamed to index and moved to
9247 (ipa_callsite_param_set_info_type_formal): Removed.
9248 (ipa_callsite_param_set_info_type): Removed.
9249 (ipa_callsite_param_map_create): Removed.
9250 (ipa_callsite_tree): Removed.
9251 (ipa_callsite_caller): Removed.
9252 (ipa_pop_func_from_list): return_method removed to return_func
9254 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9255 prefixed all values with IPA_. Changed all users.
9256 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9257 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9258 and FORMAL_IPATYPE IPA_PASS_THROUGH.
9259 (union parameter_info): Renamed to jump_func_value.
9260 (union jump_func_value): Renamed value to constant
9261 (struct ipa_jump_func): Renamed info_type to value
9262 (struct ipa_node): Renamed to ipa_node_params
9263 (struct ipa_node_params): Renamed ipa_arg_num to param_count
9264 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9265 (struct ipa_node_params): Renamed ipa_mod to modified_flags
9266 (struct ipa_edge): Renamed to ipa_edge_args
9267 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9268 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9269 (struct ipa_methodlist): Renamed to ipa_func_list
9270 (struct ipa_func_list): method_p renamed to node, next_method
9272 (ipa_methodlist_p): Removed, switched all users to struct pointer
9273 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9275 2008-04-30 Alan Modra <amodra@bigpond.net.au>
9277 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9278 (rs6000_emit_epilogue): Use backchain to restore only when we
9279 have a large frame. Make use of frame pointer to restore if we
9280 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9282 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
9284 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9285 Add mode to zero_extract.
9286 (sign bit tests peepholes): (Ditto.).
9288 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
9290 * config/i386/i386.c (ix86_builtins): Replace Prescott New
9291 Instructions in comments with SSE3.
9292 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
9293 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9294 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9295 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9296 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9297 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9298 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9299 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9300 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9301 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9302 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9303 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9304 (bdesc_sse_args): Renamed to ...
9305 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9306 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9307 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9309 (bdesc_1arg): Moved to ...
9311 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
9312 Instructions in comments with SSE3.
9313 (ix86_expand_sse_operands_builtin): Renamed to ...
9314 (ix86_expand_args_builtin): This. Updated.
9315 (ix86_expand_unop1_builtin): Update comments.
9316 (ix86_expand_builtin): Updated.
9318 2008-04-29 Richard Guenther <rguenther@suse.de>
9320 PR tree-optimization/36078
9321 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9322 Update virtual SSA form after cleaning up the CFG.
9324 2008-04-29 Richard Guenther <rguenther@suse.de>
9327 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9329 2008-04-29 Richard Guenther <rguenther@suse.de>
9331 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9332 (compute_may_aliases): Do not call finalize_ref_all_pointers.
9333 (compute_flow_insensitive_aliasing): Do not treat
9334 PTR_IS_REF_ALL pointers special.
9335 (get_smt_for): Likewise.
9336 (may_alias_p): Re-structure.
9337 (is_escape_site): A ref-all pointer conversion is not an escape site.
9338 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9339 PTR_IS_REF_ALL pointers special.
9340 * tree-ssa-structalias.h (struct alias_info): Remove
9341 ref_all_symbol_mem_tag field.
9342 (PTR_IS_REF_ALL): Remove.
9344 2008-04-29 Richard Guenther <rguenther@suse.de>
9347 * fold-const.c (extract_muldiv_1): In combining division constants
9348 make sure to never overflow.
9350 2008-04-29 Nick Clifton <nickc@redhat.com>
9352 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9354 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9357 * optc-gen.awk: Work around HP-UX/IA awk bug.
9359 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
9361 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9364 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9367 * config/i386/i386.md
9368 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9369 Change operand 1 predicate to nonimmediate_operand.
9371 2008-04-28 Jakub Jelinek <jakub@redhat.com>
9374 * dwarf2out.c (struct die_struct): Mark as chain_circular through
9376 * gengtype.c (walk_type, write_func_for_structure): Handle
9378 * doc/gty.texi: Document chain_circular.
9380 2008-04-28 Richard Guenther <rguenther@suse.de>
9382 PR tree-optimization/36066
9383 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9386 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9389 * config/i386/i386.md
9390 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9391 Use match_scratch instead of match_operand for operands 3 and 4.
9393 2008-04-27 Richard Guenther <rguenther@suse.de>
9395 PR tree-optimization/18754
9396 PR tree-optimization/34223
9397 * tree-pass.h (pass_complete_unrolli): Declare.
9398 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9399 loop size before and after unconditionally of UL_NO_GROWTH in effect.
9400 Rewrite loop into loop closed SSA form if it is not already.
9401 (tree_unroll_loops_completely): Re-structure to iterate over
9402 innermost loops with intermediate CFG cleanups.
9403 Unroll outermost loops only if requested or the code does not grow
9405 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9406 loops are available.
9407 (tree_vectorize): Instead do so here.
9408 (tree_complete_unroll): Also unroll outermost loops.
9409 (tree_complete_unroll_inner): New function.
9410 (gate_tree_complete_unroll_inner): Likewise.
9411 (pass_complete_unrolli): New pass.
9412 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9413 uses outside of the loop.
9414 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9415 form if it is available.
9416 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9417 * passes.c (init_optimization_passes): Schedule complete inner
9418 loop unrolling pass before the first CCP pass after final inlining.
9420 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
9422 * targhooks.h (default_emutls_var_fields,
9423 default_emutls_var_init): Declare.
9424 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9425 * target.h (struct gcc_target): Add struct emutls member.
9426 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9427 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9428 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9429 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9430 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9431 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9432 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9433 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9434 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9435 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9436 emit debug information.
9437 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9438 * varasm.c: Include targhooks.h.
9439 (emutls_object_section, emutls_tmpl_section): New.
9440 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9441 (EMUTLS_SEPARATOR): New.
9443 (get_emutls_object_name): New.
9444 (default_emutls_var_fields): New, broken out of ...
9445 (get_emutls_object_type): ... here. Adjust to use target hooks.
9446 (get_emutls_init_templ_addr): Adjust to use target hooks.
9447 (emutls_decl): Adjust to use target hooks.
9448 (emutls_finish): Likewise.
9449 (default_emutls_var_init): New, broken out of ...
9450 (assemble_variable): ... here. Adjust to use target hooks.
9451 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9453 * c-common.c (handle_section_attribute): Prevent overriding
9454 sections for emulated tls with special sections.
9455 * config/i386/i386.c (x86_64_elf_select_section): Add
9456 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9457 (x86_64_elf_unique_section): Likewise.
9458 * config/vxworks.c: Include tree.h.
9459 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9460 (vxworks_override_options): Set TLS scheme.
9461 * doc/tm.texi (Emulated TLS): New node.
9463 2008-04-26 Simon Baldwin <simonb@google.com>
9466 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9467 with propagated string constants.
9469 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
9471 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9472 constraint for operand 2 when operand 0 is memory operand.
9473 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9474 operand 0 is memory operand.
9475 (fix_trunc<mode>_i387_with_temp): Ditto.
9476 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9477 operand 2 when operand 1 is memory operand.
9478 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9479 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9480 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9481 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9482 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9483 operands 2,3 and 4 when operand 1 is memory operand.
9484 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9486 (fistdi2_floor_with_temp): Ditto.
9487 (fist<mode>2_floor_with_temp): Ditto.
9488 (fistdi2_ceil_with_temp): Ditto.
9489 (fist<mode>2_ceil_with_temp): Ditto.
9490 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9492 2008-04-26 David Daney <ddaney@avtrex.com>
9494 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9496 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9497 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9498 UNSPEC_UPDATE_GOT_VERSION): Renumber.
9499 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9500 (compare_and_swap_12): New insn.
9501 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9502 * config/mips/mips.c (mips_force_binary): New function.
9503 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9504 (mips_expand_compare_and_swap_12): New function.
9505 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9507 2008-04-25 Jan Hubicka <jh@suse.cz>
9510 * cfgexpand.c (pass_expand): Turn into RTL pass.
9511 * passes.c (execute_one_pass): Do pass typechecking after execution.
9512 * tree-pass.h (pass_expand): Turn into RTL pass.
9514 * function.h (struct rtl_data): Move here fields
9515 accesses_prior_frames, calls_eh_return, saves_all_registers,
9516 has_nonlocal_goto, has_asm_statement, is_thunk,
9517 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9518 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9519 arg_pointer_save_area_init from struct function; turn into bool.
9520 (struct function): Move
9521 calls_eh_return, saves_all_registers, has_nonlocal_goto,
9522 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9523 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9524 tail_call_emit, arg_pointer_save_area_init
9525 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
9526 (current_function_returns_struct, current_function_returns_pcc_struct,
9527 current_function_calls_setjmp, current_function_calls_alloca,
9528 current_function_accesses_prior_frames,
9529 current_function_calls_eh_return, current_function_is_thunk,
9530 current_function_stdarg, current_function_profile,
9531 current_function_limit_stack, current_function_uses_pic_offset_table,
9532 current_function_uses_const_pool, current_function_has_nonlocal_label,
9533 current_function_saves_all_registers,
9534 current_function_has_nonlocal_goto,
9535 current_function_has_asm_statement): Remove accesor macros.
9536 * ra-conflict.c (global_conflicts): Update.
9537 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9538 (suitable_for_tail_call_opt_p): Update.
9539 * builtins.c (expand_builtin_return_addr): Update.
9540 (expand_builtin_setjmp_setup): Update.
9541 (expand_builtin_nonlocal_goto): Update.
9542 * final.c (final_start_function): Update.
9543 (profile_function): Update.
9544 (leaf_function_p): Update.
9545 (only_leaf_regs_used): Update.
9546 * df-scan.c (df_get_exit_block_use_set): Update.
9547 * dojump.c (clear_pending_stack_adjust): Update.
9548 * tree-stdarg.c (gate_optimize_stdarg): Update.
9549 * gimple-low.c (lower_function_body): Update.
9550 * global.c (compute_regsets): Update.
9551 (global_alloc): Update.
9552 * dwarf2out.c (dwarf2out_begin_prologue): Update.
9553 * expr.c (expand_assignment): Update.
9554 * dse.c (dse_step0): Update.
9555 (dse_step1): Update.
9556 * c-decl.c (store_parm_decls): Update.
9557 * local-alloc.c (combine_regs): Update.
9558 (find_free_reg): Update.
9559 * function.c (assign_parms_augmented_arg_list): Update.
9560 (assign_parm_find_data_types): Update.
9561 (assign_parms): Update.
9562 (allocate_struct_function): Update.
9563 (expand_function_start): Update.
9564 (expand_function_end): Update.
9565 (get_arg_pointer_save_area): Update.
9566 (thread_prologue_and_epilogue_insns): Update.
9567 (rest_of_match_asm_constraints): Update.
9568 * stor-layout.c (variable_size): Update.
9569 * gcse.c (gcse_main): Update.
9570 (bypass_jumps): Update.
9571 * gimplify.c (gimplify_function_tree): Update.
9572 * calls.c (emit_call_1): Update.
9573 (expand_call): Update.
9574 * bt-load.c (compute_defs_uses_and_gen): Update.
9575 * except.c (sjlj_assign_call_site_values): Update.
9576 (sjlj_emit_function_enter): Update.
9577 (can_throw_external): Update.
9578 (set_nothrow_function_flags): Update.
9579 (expand_builtin_unwind_init): Update.
9580 (expand_eh_return): Update.
9581 (convert_to_eh_region_ranges): Update.
9582 (output_function_exception_table): Update.
9583 * emit-rtl.c (gen_tmp_stack_mem): Update.
9584 * cfgexpand.c (expand_used_vars): Update.
9585 (tree_expand_cfg): Update.
9586 * cfgcleanup.c (rest_of_handle_jump): Update.
9587 * explow.c (allocate_dynamic_stack_space): Update.
9588 * varasm.c (assemble_start_function): Update.
9589 (force_const_mem): Update.
9590 (mark_constant_pool): Update.
9591 * tree-optimize.c (tree_rest_of_compilation): Update.
9592 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9593 * tree-cfg.c (notice_special_calls): Update.
9594 (is_ctrl_altering_stmt): Update.
9595 (tree_can_make_abnormal_goto): Update.
9596 (tree_purge_dead_abnormal_call_edges): Update.
9597 * config/alpha/predicates.md: Update.
9598 * config/alpha/alpha.c (alpha_sa_mask): Update.
9599 (alpha_sa_size): Update.
9600 (alpha_does_function_need_gp): Update.
9601 (alpha_expand_prologue): Update.
9602 (alpha_start_function): Update.
9603 (alpha_output_function_end_prologue): Update.
9604 (alpha_expand_epilogue): Update.
9605 * config/frv/frv.c (frv_stack_info): Update.
9606 (frv_expand_epilogue): Update.
9607 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9608 (s390_register_info): Update.
9609 (s390_frame_info): Update.
9610 (s390_init_frame_layout): Update.
9611 (s390_can_eliminate): Update.
9612 (save_gprs): Update.
9613 * config/spu/spu.c (spu_split_immediate): Update.
9614 (need_to_save_reg): Update.
9615 (spu_expand_prologue): Update.
9616 (spu_expand_epilogue): Update.
9617 * config/sparc/sparc.md: Update.
9618 * config/sparc/sparc.c (eligible_for_return_delay): Update.
9619 (sparc_tls_got): Update.
9620 (legitimize_pic_address): Update.
9621 (sparc_emit_call_insn): Update.
9622 (sparc_expand_prologue): Update.
9623 (output_return): Update.
9624 (print_operand): Update.
9625 (sparc_function_ok_for_sibcall): Update.
9626 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9627 * config/m32r/m32r.md: Update.
9628 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9629 (m32r_compute_frame_size): Update.
9630 (m32r_expand_prologue): Update.
9631 (m32r_expand_epilogue): Update.
9632 (m32r_legitimize_pic_address): Update.
9633 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9634 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9635 * config/i386/i386.c (ix86_frame_pointer_required): Update.
9637 (ix86_save_reg): Update.
9638 (ix86_compute_frame_layout): Update.
9639 (ix86_expand_prologue): Update.
9640 (ix86_expand_epilogue): Update.
9641 * config/sh/sh.c (output_stack_adjust): Update.
9642 (calc_live_regs): Update.
9643 (sh5_schedule_saves): Update.
9644 (sh_expand_prologue): Update.
9645 (sh_expand_epilogue): Update.
9646 (sh_setup_incoming_varargs): Update.
9647 (sh_allocate_initial_value): Update.
9648 (sh_get_pr_initial_val): Update.
9649 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9650 * config/sh/sh.md (label:): Update.
9651 * config/avr/avr.c (out_movhi_mr_r): Update.
9652 * config/crx/crx.h (enum): Update.
9653 * config/xtensa/xtensa.h (along): Update.
9654 * config/stormy16/stormy16.c Update.
9655 (xstormy16_compute_stack_layout): Update.
9656 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9657 (fr30_expand_prologue): Update.
9658 * config/cris/cris.c (cris_conditional_register_usage): Update.
9659 (cris_reg_saved_in_regsave_area): Update.
9660 (cris_initial_frame_pointer_offset): Update.
9661 (cris_simple_epilogue): Update.
9662 (cris_expand_prologue): Update.
9663 (cris_expand_epilogue): Update.
9664 (cris_expand_pic_call_address): Update.
9665 (cris_asm_output_symbol_ref): Update.
9666 (cris_asm_output_label_ref): Update.
9667 * config/cris/cris.md Update.
9668 * config/iq2000/iq2000.c (compute_frame_size): Update.
9669 (iq2000_expand_epilogue): Update.
9670 * config/mt/mt.h (save_direction): Update.
9671 * config/mn10300/mn10300.c (mn10300_function_value): Update.
9672 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9673 (ia64_secondary_reload_class): Update.
9674 * config/m68k/m68k.c (m68k_save_reg): Update.
9675 (m68k_expand_prologue): Update.
9676 (m68k_expand_epilogue): Update.
9677 (legitimize_pic_address): Update.
9678 * config/rs6000/rs6000.c (rs6000_got_register): Update.
9679 (first_reg_to_save): Update.
9680 (first_altivec_reg_to_save): Update.
9681 (compute_vrsave_mask): Update.
9682 (compute_save_world_info): Update.
9683 (rs6000_stack_info): Update.
9684 (spe_func_has_64bit_regs_p): Update.
9685 (rs6000_ra_ever_killed): Update.
9686 (rs6000_emit_eh_reg_restore): Update.
9687 (rs6000_emit_allocate_stack): Update.
9688 (rs6000_emit_prologue): Update.
9689 (rs6000_emit_epilogue): Update.
9690 (rs6000_output_function_epilogue): Update.
9691 (output_profile_hook): Update.
9692 (rs6000_elf_declare_function_name): Update.
9693 * config/rs6000/rs6000.h (rs6000_args): Update.
9694 * config/rs6000/rs6000.md: Update.
9695 * config/mcore/mcore.c (mcore_expand_prolog): Update.
9696 * config/arc/arc.c (arc_output_function_epilogue): Update.
9697 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9698 * config/darwin.c (machopic_function_base_name): Update.
9699 * config/score/score3.c (score3_compute_frame_size): Update.
9702 (score3_epilogue): Update.
9703 * config/score/score7.c (score7_compute_frame_size): Update.
9704 (score7_prologue): Update.
9705 (score7_epilogue): Update.
9706 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9707 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9708 * config/arm/arm.c (use_return_insn): Update.
9709 (require_pic_register): Update.
9710 (arm_load_pic_register): Update.
9711 (arm_compute_save_reg0_reg12_mask): Update.
9712 (arm_compute_save_reg_mask): Update.
9713 (thumb1_compute_save_reg_mask): Update.
9714 (output_return_instruction): Update.
9715 (arm_output_function_prologue): Update.
9716 (arm_output_epilogue): Update.
9717 (arm_get_frame_offsets): Update.
9718 (arm_expand_prologue): Update.
9719 (thumb_pushpop): Update.
9720 (thumb_exit): Update.
9721 (thumb1_expand_prologue): Update.
9722 (thumb1_expand_epilogue): Update.
9723 (arm_unwind_emit): Update.
9724 (arm_output_fn_unwind): Update.
9725 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9726 * config/arm/arm.md: Update.
9727 * config/pa/pa.md: Update.
9728 * config/pa/pa.c (legitimize_pic_address): Update.
9729 (compute_frame_size): Update.
9730 (hppa_expand_prologue): Update.
9731 (hppa_expand_epilogue): Update.
9732 (borx_reg_operand): Update.
9733 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9734 (HARD_REGNO_RENAME_OK): Update.
9735 * config/mips/mips.c (mips_global_pointer): Update.
9736 (mips_save_reg_p): Update.
9737 (mips_compute_frame_info): Update.
9738 (mips_frame_pointer_required): Update.
9739 (mips_expand_prologue): Update.
9740 (mips_expand_epilogue): Update.
9741 (mips_can_use_return_insn): Update.
9742 (mips_reorg_process_insns): Update.
9743 * config/v850/v850.c (compute_register_save_size): Update.
9744 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9745 * config/mmix/mmix.c (along): Update.
9746 (mmix_expand_epilogue): Update.
9747 * config/bfin/bfin.c (legitimize_pic_address): Update.
9748 (must_save_p): Update.
9749 (stack_frame_needed_p): Update.
9750 (add_to_reg): Update.
9751 (bfin_expand_prologue): Update.
9752 * stmt.c (expand_asm_operands): Update.
9753 * reload1.c (reload): Update.
9754 (init_elim_table): Update.
9756 2008-04-25 Bob Wilson <bob.wilson@acm.org>
9758 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9760 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
9762 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9763 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
9764 (mov<mode>): Removed.
9765 (*movv4sf_internal): Likewise.
9766 (*movv2df_internal): Likewise.
9768 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9770 * config.gcc (crx-*-elf): Remove deprecation.
9772 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9774 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9775 __gcc_deregister_frame with atexit.
9776 (deregister_frame_dtor): Remove.
9778 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9779 Nathan Sidwell <nathan@codesourcery.com>
9781 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9783 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9784 (rs6000_isel): Likewise.
9785 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9786 (rs6000_isel): New variable.
9787 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9789 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9792 * c-common.c (handle_vector_size_attribute): Call
9793 lang_hooks.types.reconstruct_complex_type instead of
9794 reconstruct_complex_type.
9795 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9796 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9797 * langhooks.h (struct lang_hooks_for_types): Add
9798 reconstruct_complex_type hook.
9799 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9800 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9802 2008-04-24 Richard Guenther <rguenther@suse.de>
9804 * c-common.h (check_builtin_function_arguments): Declare.
9805 * c-common.c (validate_nargs): New function.
9806 (check_builtin_function_arguments): Likewise.
9807 * c-typeck.c (build_function_call): Call
9808 check_builtin_function_arguments.
9809 * builtins.c (fold_builtin_classify): Remove error reporting code.
9810 (fold_builtin_unordered_cmp): Likewise.
9811 (fold_builtin_1): Likewise.
9812 (fold_builtin_n): Likewise.
9814 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9816 PR tree-optimization/36008
9817 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9818 the original op1, rather than delta by step.
9820 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9821 Sebastian Pop <sebastian.pop@amd.com>
9823 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9824 eliminate_local_variables_stmt, eliminate_local_variables,
9825 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9826 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9827 of code delimited by two edges in the CFG.
9828 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9829 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9830 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9831 the case of parallelisation of reductions.
9832 (expr_invariant_in_region_p): New.
9834 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9835 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9837 2008-04-24 Ira Rosen <irar@il.ibm.com>
9838 Richard Guenther <rguenther@suse.de>
9840 PR tree-optimization/36034
9841 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9842 incapable of dealing with loads with gaps.
9844 2008-04-24 Rafael Espindola <espindola@google.com>
9846 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9847 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9848 vrp_evaluate_conditional.
9849 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9850 (vrp_evaluate_conditional): Split the cond argument.
9851 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9852 (simplify_stmt_for_jump_threading): Update call to
9853 vrp_evaluate_conditional.
9855 2008-04-24 Ira Rosen <irar@il.ibm.com>
9857 PR tree-optimization/35982
9858 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9859 interleaved data-refs are of the same type.
9861 2008-04-24 Danny Smith <dannysmith@users.net>
9863 * c-format.c (check_format_info_main): Use strncmp rather than a
9864 magic prefix to handle multichar length specs.
9865 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9866 Don't prefix "I64" and "I32" with '\0'.
9868 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9871 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9872 in registers for -m32 only if stdarg_p (fntype).
9874 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9876 PR rtl-optimization/36006
9877 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9878 temp to op0 in order to avoid invalid rtx sharing.
9880 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9882 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9883 check TREE_INVARIANT.
9884 * tree-gimple.c (is_gimple_address): New.
9885 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9886 * tree-gimple.h (is_gimple_address): New.
9887 * tree.h (decl_address_invariant_p): New.
9888 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9889 (build_string): Likewise.
9890 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9891 (tree_invariant_p_1): Likewise.
9892 (save_expr): Use it.
9893 (tree_invariant_p): New.
9894 (skip_simple_arithmetic): Use it.
9895 (stabilize_reference_1): Use it.
9896 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9898 (build1_stat): Drop code to compute TREE_INVARIANT.
9899 (build2_stat): Drop code to compute TREE_INVARIANT.
9900 (build3_stat): Drop code to compute TREE_INVARIANT.
9901 (build4_stat): Drop code to compute TREE_INVARIANT.
9902 (build5_stat): Drop code to compute TREE_INVARIANT.
9903 (build7_stat): Drop code to compute TREE_INVARIANT.
9904 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9905 * tree.h (struct tree_base): Remove invariant_flag.
9906 (TREE_INVARIANT): Remove.
9907 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9908 (fold_builtin_expect): Check TREE_CONSTANT.
9909 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9910 * c-tree.h (c_expr_to_decl): Drop third parameter.
9911 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9912 (build_c_cast): Don't set TREE_INVARIANT.
9913 (pop_init_level): Don't set TREE_INVARIANT.
9914 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9915 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9917 (gimplify_init_constructor): Don't set TREE_INVARIANT.
9918 (gimplify_addr_expr): Adjust comment.
9919 * tree-mudflap.c (mf_build_string):
9920 * print-tree.c (print_node): Don't print TREE_INVARIANT.
9921 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9922 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9923 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9924 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9925 * langhooks.h (struct lang_hooks): Drop third parameter from
9928 2008-04-23 Richard Guenther <rguenther@suse.de>
9930 PR tree-optimization/27799
9931 PR tree-optimization/32921
9932 PR tree-optimization/32624
9933 * tree-ssa-structalias.c (merge_smts_into): Only merge the
9934 SMTs aliases and the tag itself into the solution.
9935 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9936 merge the points-to solution back into the SMT aliases.
9937 (may_alias_p): Use alias_set_subset_of instead of
9938 aliases_conflict_p. A pointer which points to
9939 memory with alias set zero may access any variable.
9941 2008-04-23 Richard Guenther <rguenther@suse.de>
9943 * alias.c (alias_set_subset_of): Correctly handle asking
9944 if zero is a subset of an alias set with zero child.
9945 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9946 (compute_flow_insensitive_aliasing): Correctly walk all
9947 pointers. Do not unnecessarily union sets.
9949 2008-04-23 Richard Guenther <rguenther@suse.de>
9952 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9954 2008-04-22 Tomas Bily <tbily@suse.cz>
9956 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9958 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9960 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9961 * tree-ssa-structalias.c (get_constraint_for): Likewise.
9962 * tree-inline.c (estimate_num_insns_1): Likewise.
9963 * varasm.c (const_hash_1, compare_constant, copy_constant)
9964 (compute_reloc_for_constant, output_addressed_constants): Likewise.
9965 * emit-rtl.c (component_ref_for_mem_expr)
9966 (set_mem_attributes_minus_bitpos): Likewise.
9967 * expr.c (highest_pow2_factor, expand_expr_real_1, )
9968 (is_aligning_offset): Likewise.
9969 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9970 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9971 * dojump.c (do_jump): Likewise.
9972 * builtins.c (get_pointer_alignment, get_memory_rtx)
9973 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9974 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9976 2008-04-23 Jakub Jelinek <jakub@redhat.com>
9978 PR rtl-optimization/36017
9979 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9980 expanding the library call.
9982 2008-04-22 Ian Lance Taylor <iant@google.com>
9984 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9987 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
9989 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9990 of LR/CTR moves for Power6.
9992 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
9995 * passes.c (init_optimization_passes): Remove
9996 pass_fast_rtl_byte_dce.
9998 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
10001 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10002 builtin functions to generate faster code.
10003 (_mm_cvtpu16_ps): Ditto.
10004 (_mm_cvtpi32x2_ps): Ditto.
10006 2008-04-22 Nick Clifton <nickc@redhat.com>
10008 * common.opt (ftree-loop-distribution): Add Optimization
10011 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10012 (frv_expand_builtin_va_start): Likewise.
10014 * config/arm/arm.c (thumb_find_work_register): Fix location of
10015 argument register count.
10017 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10019 Support scheduling for ColdFire V1 and V3 microarchitecture.
10020 Improve scheduling of multiplication instructions.
10022 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
10023 (mac): New instruction attribute.
10024 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10025 (m68k_sched_mac): New variable.
10026 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10027 Handle cfv1 and cfv3.
10028 (max_insn_size): New static variable.
10029 (struct _sched_ib): New type.
10030 (sched_ib): New static variable.
10031 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10032 to fields of 'struct _sched_ib sched_ib'. Update all uses.
10033 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10035 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10036 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
10037 new variables. Update.
10038 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10039 Add modeling of cfv3 instruction buffer. Update.
10040 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10041 * config/m68k/m68k.h (TUNE_CFV3): New macro.
10042 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10043 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10044 a particular reservation applies to.
10045 (type2): Reorganize attribute values. Rename alu to alu_reg,
10046 alu_l to alu, move_l to omove. Join move to alu. Split mul
10047 to mul_l and mul_w.
10048 (cf_ib_*): Simplify description of instruction buffer.
10049 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10050 (cf_mem): Split into cf_mem1 and cf_mem2.
10051 (cf_v2_move_??): Rename to cfv12_alu_??.
10052 (cf_v2_move_l_??): Rename to cfv12_omove_??.
10053 (cf_v2_mul_??): Remove reservations.
10054 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10055 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10056 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10058 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10059 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10060 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10061 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10062 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10063 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10064 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10065 expansions of the above reservations for instructions of sizes
10068 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10070 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10072 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
10074 * coverage.c: Include tree-pass.h.
10075 (coverage_counter_alloc): Print da_file_name to the dump file.
10077 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
10079 * sbitmap.c (sbitmap_range_empty_p): New function.
10080 * sbitmap.h (sbitmap_range_empty_p): New function.
10081 * bitmap.h: Now includes obstack.h.
10083 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
10084 Kenneth Zadeck <zadeck@naturalbridge.com>
10086 * dbgcnt.def (ra_byte_scan): Added.
10087 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10088 when the last hit happens for a counter.
10089 * timevar.def (TV_DF_BYTE_LR): New variable.
10090 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10091 * passes.c (pass_fast_rtl_byte_dce): New pass.
10092 * fwprop.c (update_df): Added mode to call df_ref_create.
10093 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10094 DF_REF_EXTRACT_OFFSET.
10095 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10096 DF_BYTE_LR_OUT, df_byte_lr): New macro.
10098 (df_ref_extract): Added mode field.
10099 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10100 DF_REF_EXTRACT_OFFSET.
10101 (DF_REF_EXTRACT_MODE): New macro.
10102 (df_byte_lr_bb_info): New structure.
10103 (df_print_byte_regset, df_compute_accessed_bytes,
10104 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10105 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10106 df_byte_lr_simulate_uses,
10107 df_byte_lr_simulate_artificial_refs_at_top,
10108 df_byte_lr_simulate_artificial_refs_at_end,
10109 df_compute_accessed_bytes): New function.
10110 (df_ref_create): Add parameter.
10111 (df_byte_lr_get_bb_info): New inline function.
10112 * df-scan.c (df_ref_record, df_uses_record,
10113 df_ref_create_structure): Added mode parameter.
10114 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10115 df_defs_record, df_uses_record, df_get_conditional_uses,
10116 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10117 df_entry_block_defs_collect, df_exit_block_uses_collect):
10118 Added mode parameter to calls to df_ref_record, df_uses_record,
10119 df_ref_create_structure.
10120 (df_ref_equal_p, df_ref_compare): Added test for modes.
10121 (df_ref_create_structure): Added code to set mode. Renamed
10122 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10123 DF_REF_EXTRACT_OFFSET.
10124 * df-core.c (df_print_byte_regset): New function.
10125 * df-byte-scan.c: New file.
10126 * df-problems.c (df_rd_transfer_function): Removed unnecessary
10127 calls to BITMAP_FREE.
10128 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10129 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10130 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10131 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10132 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10133 df_byte_lr_local_compute, df_byte_lr_init,
10134 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10135 df_byte_lr_transfer_function, df_byte_lr_free,
10136 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10137 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10138 df_byte_lr_simulate_uses,
10139 df_byte_lr_simulate_artificial_refs_at_top,
10140 df_byte_lr_simulate_artificial_refs_at_end): New function.
10141 * dce.c (byte_dce_process_block): New function.
10142 (dce_process_block): au is now passed in rather than computed
10143 locally. Changed loops that look at artificial defs to not look
10144 for conditional or partial ones, because there never are any.
10145 (fast_dce): Now is able to drive byte_dce_process_block or
10146 dce_process_block depending on the kind of dce being done.
10147 (rest_of_handle_fast_dce): Add parameter to fast_dce.
10148 (rest_of_handle_fast_byte_dce): New function.
10149 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10150 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10152 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
10155 * gcc.h: Added fortran options that take arguments to
10156 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10159 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
10161 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10162 scalarization if on the LHS and not a full access.
10164 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10166 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10168 2008-04-18 Rafael Espindola <espindola@google.com>
10170 * tree-vrp.c (find_case_label_index): Fix the binary search.
10171 (find_case_label_range): New.
10172 (vrp_visit_switch_stmt): Use find_case_label_range.
10173 (simplify_switch_using_ranges): Use find_case_label_range.
10175 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
10177 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10178 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10180 2008-04-18 Tom Tromey <tromey@redhat.com>
10183 * doc/cpp.texi (Implementation-defined behavior): Mention
10186 2008-04-18 Ian Lance Taylor <iant@google.com>
10188 * fold-const.c (pointer_may_wrap_p): New static function.
10189 (fold_comparison): Add another test for pointer overflow. Use
10190 pointer_may_wrap_p to disable some false positives.
10192 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
10194 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10195 (fname_as_string): Match updated cpp_interpret_string prototype.
10196 (fix_string_type): Support char16_t* and char32_t*.
10197 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10198 derivative) nodes. Register as builtin if C++0x.
10199 (c_parse_error): Support CPP_CHAR{16,32}.
10200 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10201 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10202 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10203 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10204 CTI_CHAR32_ARRAY_TYPE>: New elements.
10205 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10206 char32_type_node, signed_char32_type_node, char16_array_type_node,
10207 char32_array_type_node): New defines.
10208 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10209 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10210 (lex_string): Support CPP_STRING{16,32}, match updated
10211 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10212 (lex_charconst): Support CPP_CHAR{16,32}.
10213 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10214 and CPP_STRING{16,32}.
10216 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10219 * aclocal.m4: Regenerate.
10220 * configure: Regenerate.
10222 2008-04-18 Jan Hubicka <jh@suse.cz>
10224 * except.c (dw2_size_of_call_site_table,
10225 sjlj_size_of_call_site_table): Use vector API for call_site_record.
10227 * cgraphbuild.c (build_cgraph_edges): Update.
10228 * tree-pass.h: Update comment.
10229 * final.c (leaf_function_p): Update.
10230 (leaf_renumber_regs): Update.
10231 (rest_of_clean_state): Update.
10232 * omp-low.c (expand_omp_parallel): Update.
10233 * ipa-reference.c (analyze_function): Update.
10234 * reorg.c (find_end_label): Update.
10235 (optimize_skip): Update.
10236 (fill_simple_delay_slots): Update.
10237 (fill_simple_delay_slots): Update.
10238 (make_return_insns): Update.
10239 (dbr_schedule): Update.
10240 * gimple-low.c (record_vars_into): Update.
10241 * cfgbuild.c (make_edges): Update.
10242 * function.c (assign_stack_local): Update.
10243 (assign_parm_adjust_stack_rtl): Update.
10244 (locate_and_pad_parm): Update.
10245 (allocate_struct_function): Do not initialize stack_alignment_needed
10246 and preferred_stack_boundary here.
10247 (stack_protect_prologue): Update.
10248 (stack_protect_epilogue): Update.
10249 (expand_function_start): Initialize stack_alignment_needed,
10250 preferred_stack_boundary and max_jumptable_ents.
10251 (expand_function_end): Update.
10252 (free_after_compilation): Do not NULLify epilogue_delay_list.
10253 * function.h (struct rtl_data): Add stack_protect_guard,
10254 stack_alignment_needed,
10255 preferred_stack_boundary, epilogue_delay_list.
10256 (struct function): Remove value_histograms, stack_alignment_needed,
10257 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10259 unexpanded_var_list, stack_protect_guard.
10260 (current_function_epilogue_delay_list): Remove.
10261 * ipa-type-escape.c (analyze_function): Update.
10262 * gimplify.c (pop_gimplify_context): Update comment.
10263 * calls.c (expand_call): Update.
10264 (emit_library_call_value_1): Update.
10265 * except.c (set_nothrow_function_flags): Update.
10266 * cfgexpand.c (get_decl_align_unit): Update.
10267 (create_stack_guard): Update.
10268 (estimated_stack_frame_size): Update.
10269 (expand_used_vars): Update.
10270 (tree_expand_cfg): Free histogram earliers, init expansion variables.
10271 * explow.c (allocate_dynamic_stack_space): Update.
10272 * tree-ssa-live.c (remove_unused_locals): Update.
10273 * varasm.c (mark_constant_pool): Update.
10274 * tree-inline.c (remap_decls): Update.
10275 (initialize_cfun): Update.
10276 (declare_return_variable): Update.
10277 (inline_forbidden_p): Update.
10278 (expand_call_inline): Update.
10279 (declare_inline_vars): Update.
10280 (tree_function_versioning): Update.
10281 * tree-flow.h (value_histograms): New.
10282 (VALUE_HISTOGRAMS): New macro.
10283 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10285 * tree-cfg.c (set_bb_for_stmt): Update.
10286 (replace_by_duplicate_decl): Update.
10287 (move_block_to_fn): Update.
10288 (new_label_mapper): Update.
10289 (dump_function_to_file): Update.
10290 * ipa-struct-reorg.c (build_data_structure): Update.
10291 * cfgrtl.c (print_rtl_with_bb): Update.
10292 * reload1.c (reload): Update.
10294 * config/i386/i386.c (setup_incoming_varargs_64,
10295 ix86_compute_frame_layout): Update.
10296 * config/arc/arc.c (arc_output_function_epilogue): Update.
10298 2008-04-18 Marius Strobl <marius@FreeBSD.org>
10300 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10301 for FreeBSD as well.
10302 * gthr-posix95.h: Likewise.
10304 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
10306 PR rtl-optimization/35838
10307 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10308 out the byte offset of the first subreg.
10310 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
10312 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10313 to split_ti instead of three separate calls with single member arrays.
10314 (subti3 splitter): Ditto.
10315 (adddi3 splitter): Ditto with split_di.
10316 (subdi3 splitter): Ditto.
10317 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10318 two separate calls with single member arrays. Swap match_dup
10319 operands 1 and 2 to better fit into the array.
10320 (negdi2 splitter): Ditto with split_di.
10321 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
10322 two separate calls with single member arrays. Swap match_dup operands
10323 6 and 7 to better fit into the array.
10325 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
10327 * config/i386/i386.c (sse_builtin_type): New.
10328 (bdesc_sse_args): Likewise.
10329 (bdesc_sse_3arg): Removed.
10330 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10331 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10332 IX86_BUILTIN_ROUNDPS.
10333 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
10334 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
10335 IX86_BUILTIN_ROUNDPS.
10336 (ix86_expand_sse_4_operands_builtin): Removed.
10337 (ix86_expand_sse_operands_builtin): New.
10338 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10339 and CODE_FOR_sse4_1_roundps.
10340 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10341 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
10343 2008-04-17 Alan Modra <amodra@bigpond.net.au>
10346 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10347 regs before frame pop when needed. If use_backchain_to_restore_sp
10348 then load backchain into a temp reg to restore vr and vrsave. Add
10349 code to restore vr after frame pop if possible.
10351 2008-04-17 Richard Guenther <rguenther@suse.de>
10353 * tree-vn.c (expressions_equal_p): Do not check type
10354 equality or compatibility before calling operand_equal_p.
10355 * fold-const.c (operand_equal_p): Check equivalence of
10356 integer constants before bailing out due to signedness or
10357 precision differences.
10358 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10359 spurious differences in type qualification. Ignore types
10360 for COMPONENT_REFs at all.
10362 2008-04-17 Christian Bruel <christian.bruel@st.com>
10364 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10365 msw_skip comparison.
10367 2008-04-16 Jakub Jelinek <jakub@redhat.com>
10370 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10373 PR tree-optimization/35899
10374 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10375 rather than TREE_OPERAND.
10377 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
10380 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10381 temporary registers. Change operand predicate to general_operand.
10382 (remainderxf3): Ditto.
10384 2008-04-16 Richard Guenther <rguenther@suse.de>
10386 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10387 * tree-affine.c (aff_combination_expand): Look through some
10390 2008-04-15 Doug Kwan <dougkwan@google.com>
10392 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10394 * tree-pretty-print.c (dump_generic_node): Ditto.
10395 * final.c (output_addr_const): Ditto.
10396 * dwarf2out.c (output_cfi): Ditto.
10397 * c-pretty-print.c (pp_c_integer_constant): Ditto.
10398 * print-rtl.c (print_rtx): Ditto.
10399 * print-tree.c (print_node_brief, print_node): Ditto.
10400 * c-common.c (match_case_to_enum_1): Ditto.
10401 * sched-vis.c (print_value): Ditto.
10402 * config/i386/i386.c (print_operand): Cast to long unsigned int
10405 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
10406 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
10407 MS Windows VirtualProtect function.
10409 2008-04-15 Jan Hubicka <jh@suse.cz>
10411 * gengtype.c (write_root): Param_is argument is OK.
10412 * expr.c (expand_expr_real_1): Update call of get_exception_*.
10413 * function.h: Include varray.h
10414 (rtl_eh): New stucture based on except.c one.
10415 (call_site_record): New forward declaration and vector type.
10416 * calls.c (emit_call_1): Do not call
10417 note_current_region_may_contain_throw.
10418 * except.c (eh_status): Remove cur_region, try_region since they are
10420 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10421 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10422 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10423 Remove call_site_data_used, call_site_data_size.
10424 Turn call_site_record into vector in function.h.
10425 (note_current_region_may_contain_throw): Remove.
10426 (get_exception_pointer, get_exception_filter): Do not take struct
10427 function argument; update.
10428 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10429 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10430 build_post_landing_pads, dw2_build_landing_pads,
10431 sjlj_assign_call_site_values, sjlj_mark_call_sites,
10432 sjlj_emit_function_enter, sjlj_emit_function_enter,
10433 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10434 sjlj_build_landing_pads, finish_eh_generation,
10435 remove_exception_handler_label, remove_eh_handler,
10436 maybe_remove_eh_handler, add_reachable_handler,
10437 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10438 add_action_record, collect_one_action_chain, add_call_site,
10439 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10440 sjlj_output_call_site_table, output_function_exception_table,
10441 * except.h (note_current_region_may_contain_throw): Remove
10442 (get_exception_pointer, get_exception_filter): Do not take struct
10444 * Makefile.in (GTFILES): Put varargs before struct function.
10446 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10448 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10449 punt for STRING_CST.
10450 (get_constraint_for): Deal with STRING_CST here instead.
10452 2008-04-15 Richard Guenther <rguenther@suse.de>
10454 * tree-ssa-propagate.c (substitute_and_fold): Substitute
10455 statements in a basic-block with a backward walk. Do not
10456 substitute into dead statements but instead remove those.
10458 2008-04-15 Richard Guenther <rguenther@suse.de>
10460 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10461 to zero, thus disable creation of SFTs.
10463 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10465 * tree-predcom.c (suitable_reference_p): Return false if the
10466 reference can throw.
10468 2008-04-15 Jakub Jelinek <jakub@redhat.com>
10471 * c-decl.c (finish_decl): If extern or static var has variable
10472 size, set TREE_TYPE (decl) to error_mark_node.
10474 2008-04-15 Rafael Espindola <espindola@google.com>
10476 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10479 2008-04-15 Richard Guenther <rguenther@suse.de>
10481 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10482 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10483 (visit_reference_op_load): Do walk vuse-vdef chains on
10484 vn_reference_lookup.
10485 (visit_reference_op_store): But do not here.
10486 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10487 vn_reference_lookup.
10488 (vn_lookup_with_vuses): But do so here.
10490 2008-04-14 Ian Lance Taylor <iant@google.com>
10492 * fold-const.c (fold_overflow_warning): Remove assertion.
10494 2008-04-15 Ben Elliston <bje@au.ibm.com>
10496 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10497 temp1 local variables.
10499 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
10502 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10503 ".text.unlikely" section as executable.
10505 2008-04-14 James E. Wilson <wilson@tuliptree.org>
10507 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10508 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10509 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10510 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10511 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10512 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10513 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10515 2008-04-14 Ian Lance Taylor <iant@google.com>
10517 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10518 * fold-const.c (fold_comparison): If appropriate, test
10519 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10520 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10521 reassociating a pointer type.
10522 * doc/invoke.texi (Optimize Options): Document that
10523 -fstrict-overflow applies to pointer wraparound.
10525 2008-04-13 Jan Hubicka <jh@suse.cz>
10527 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10529 2008-04-12 Andrew Pinski <pinskia@gmail.com>
10531 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10532 we are going to "save the world".
10534 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
10536 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10537 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10538 operand 0 constraint, not "=".
10540 2008-04-11 James E. Wilson <wilson@tuliptree.org>
10542 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10544 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10546 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10547 of size of positions_needed * CHAR_BIT.
10549 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10551 PR middle-end/35897
10552 * dse.c (store_info): Change positions_needed to unsigned
10554 (lowpart_bitmask): New.
10555 (record_store): Cast to unsigned HOST_WIDE_INT for
10556 positions_needed. Assert width <= size of positions_needed *
10557 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
10558 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
10559 lowpart_bitmask to set mask.
10561 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
10563 * config/bfin/constraints.md: New file.
10564 * config/bfin/bfin.md: Include it.
10565 (adddi3): Use satisfies_constraint functions instead of the old macros.
10566 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10567 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10568 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10569 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10570 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10571 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10572 EXTRA_CONSTRAINT): Delete.
10573 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10574 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10576 * config/bfin/bfin.c: Include "tm-constrs.h".
10577 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10578 Use satisfies_constraint functions instead of the old macros.
10579 * doc/md.texi (Blackfin Constraints): Update file name reference.
10581 2008-04-11 Richard Guenther <rguenther@suse.de>
10583 PR tree-optimization/35869
10584 * tree-vrp.c (execute_vrp): Move switch statement update after
10585 jump threading. Schedule another cfg cleanup run.
10587 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
10590 * attribs.c (decl_attributes): Return early on errorneous node.
10592 2008-04-10 Oleg Ryjkov <olegr@google.com>
10594 * tree.h (struct tree_base): Added a new flag default_def_flag.
10595 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10597 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10599 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10601 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10604 * pa.md: Define mode iterator P. Define mode attribute dwc.
10605 (dcacheflush): Update pattern to use iterator P and attribute dwc.
10606 (icacheflush): Likewise.
10607 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10608 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10610 2008-04-11 Ben Elliston <bje@au.ibm.com>
10612 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10614 2008-04-10 Rafael Espindola <espindola@google.com>
10616 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10617 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10618 (extract_range_from_expr): The same.
10620 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10622 * config/mips/mips.md (GPR2): New mode iterator.
10623 (seq): Add comment.
10624 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10625 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10626 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10627 Rewrite these to take two modes, the mode of comparison and the
10628 mode of the destination.
10629 * config/mips/mips.c (mips_expand_scc): Instead of having
10630 paradoxical subreg as destination, expand "narrowing" scc if mode
10631 of comparison is SI and target is requested in DI mode.
10632 (mips_emit_int_order_test): Update comment. Make mode of
10633 comparison match CMP0 rather than TARGET. When creating inverse
10634 target use mode of TARGET.
10636 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10638 * gcov-dump.c (tag_summary): Only print summaries for the first
10639 GCOV_COUNTERS_SUMMABLE counters.
10641 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
10643 * config/i386/i386.md (absneg): New code iterator.
10644 (absnegprefix): New code attribute.
10645 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10646 patterns using absneg code iterator.
10647 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10648 using absneg code iterator.
10649 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10650 *neg<mode>2 patterns using absneg code iterator.
10651 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10652 *negextendsfdf2 patterns using absneg code iterator.
10653 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10654 *negextendsfxf2 patterns using absneg code iterator.
10655 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10656 *negextendsfdf2 patterns using absneg code iterator.
10657 * config/i386/sse.md (<code><mode>2): Macroize expander from
10658 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10660 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
10662 * config/s390/s390.h: Remove the remains of the recent search
10663 & replace action of current_function_outgoing_args_size.
10665 2008-04-10 Ira Rosen <irar@il.ibm.com>
10667 PR tree-optimization/35821
10668 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10669 NEW_STMT_LIST is not NULL.
10671 2008-04-09 David Edelsohn <edelsohn@gnu.org>
10674 * toplev.c (process_options): Remove -ffunction-sections debugging
10677 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
10679 PR middle-end/PR28690
10680 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10681 than gen_rtx_fmt_ee to perform more canonicalizations.
10683 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10686 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10688 2008-04-09 Richard Guenther <rguenther@suse.de>
10690 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10691 (dump_function_to_file): Dump function arguments with types.
10693 2008-04-08 Richard Guenther <rguenther@suse.de>
10695 * fold-const.c (fold_widened_comparison): Do not allow
10696 sign-changes that change the result.
10698 2008-04-08 Janis Johnson <janis187@us.ibm.com>
10701 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10702 kinds of indirect references.
10704 2008-04-08 David Edelsohn <edelsohn@gnu.org>
10706 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10707 GNU Fortran language string.
10709 2008-04-08 Rafael Espindola <espindola@google.com>
10711 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10712 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10713 * tree.h (tree_call_nonnegative_warnv_p): New.
10715 2008-04-08 Jan Hubicka <jh@suse.cz>
10717 * function.c (free_after_compilation): Clear out regno_reg_rtx
10720 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
10723 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10725 PR middle-end/PR28690
10726 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10727 same precedence as REG_POINTER and MEM_POINTER operands.
10729 2008-04-08 Richard Guenther <rguenther@suse.de>
10731 PR middle-end/35834
10732 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10733 for adding index to base.
10735 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
10737 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10738 (MINGW_ENABLE_EXECUTE_STACK): New.
10739 (IN_LIBGCC2): For libgcc include windows.h file for
10740 function declarations.
10742 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
10744 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10745 and tem2 if tem1 is not a REG or MULT.
10747 2008-04-08 Jan Hubicka <jh@suse.cz>
10749 * function.h (incomming_args): Break out of struct function.
10750 (function_subsections): Break out of struct function.
10751 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10752 return_rtx and hard_reg_initial_vals from struct function.
10753 Kill inl_max_label_num.
10754 (current_function_pops_args, current_function_args_info,
10755 current_function_args_size, current_function_args_size,
10756 current_function_pretend_args_size,
10757 current_function_outgoing_args_size,
10758 current_function_internal_arg_pointer, current_function_return_rtx):
10759 Kill compatibility accestor macros.
10760 * builtins.c (expand_builtin_apply_args_1): Update.
10761 (expand_builtin_next_arg): Update.
10762 * df-scan.c (df_get_call_refs): Update.
10763 * dbxout.c (dbxout_function_end): Update.
10764 * dwarf2out.c (dwarf2out_switch_text_section): Update.
10765 (output_line_info): Update.
10766 (secname_for_decl): Update.
10767 (dwarf2out_var_location): Update.
10768 * function.c (free_after_compilation): Update.
10769 (assign_parm_find_stack_rtl): Update.
10770 (assign_parms): Update.
10771 (expand_dummy_function_end): Update.
10772 (expand_function_end): Update.
10773 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10774 (expand_call): Update.
10775 (emit_library_call_value_1): Update.
10776 (store_one_arg): Update.
10777 * varasm.c (initialize_cold_section_name): Update.
10778 (unlikely_text_section): Update.
10779 (unlikely_text_section_p): Update.
10780 (assemble_start_function): Update.
10781 (assemble_end_function): Update.
10782 (default_section_type_flags): Update.
10783 (switch_to_section): Update.
10784 * integrate.c (set_decl_abstract_flags): Update.
10785 (get_hard_reg_initial_val): Update.
10786 (has_hard_reg_initial_val): Update.
10787 (allocate_initial_values): Update.
10788 * resource.c (init_resource_info): Update.
10789 * config/alpha/alpha.c (NUM_ARGS): Update.
10790 (direct_return): Update.
10791 (alpha_va_start): Update.
10792 (alpha_sa_size): Update.
10793 (alpha_initial_elimination_offset): Update.
10794 (alpha_expand_prologue): Update.
10795 (alpha_start_function): Update.
10796 (alpha_expand_epilogue): Update.
10797 (unicosmk_initial_elimination_offset):
10798 * config/alpha/alpha.md (call expander): Update.
10799 * config/s390/s390.c (s390_register_info): Update.
10800 (s390_register_info): Update.
10801 (s390_frame_info): Update.
10802 (s390_initial_elimination_offset): Update.
10803 (s390_build_builtin_va_list): Update.
10804 (s390_va_start): Update.
10805 * config/spu/spu.c (direct_return): Update.
10806 (spu_expand_prologue): Update.
10807 (spu_initial_elimination_offset): Update.
10808 (spu_build_builtin_va_list): Update.
10809 (spu_va_start): Update.
10810 * config/sparc/sparc.c (sparc_init_modes): Update.
10811 (sparc_compute_frame_size): Update.
10812 (function_value): Update.
10813 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10814 * config/i386/i386.md (return expander): Update.
10815 * config/i386/i386.c (ix86_va_start): Update.
10816 (ix86_can_use_return_insn_p): Update.
10817 (ix86_compute_frame_layout): Update.
10818 (ix86_expand_epilogue): Update.
10819 * config/sh/sh.c (output_stack_adjust): Update.
10820 (calc_live_regs): Update.
10821 (sh_expand_prologue): Update.
10822 (sh_builtin_saveregs): Update.
10823 (sh_va_start): Update.
10824 (initial_elimination_offset): Update.
10825 (sh_allocate_initial_value): Update.
10826 (sh_function_ok_for_sibcall): Update.
10827 (sh_get_pr_initial_val): Update.
10828 * config/sh/sh.md (return expander): Update.
10829 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10830 * config/crx/crx.c (crx_compute_frame): UPdate.
10831 (crx_initial_elimination_offset): UPdate.
10832 * config/xtensa/xtensa.c (compute_frame_size): Update
10833 (xtensa_builtin_saveregs): Update.
10834 (xtensa_va_start): Update.
10835 (order_regs_for_local_alloc): Update.
10836 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10837 (xstormy16_expand_builtin_va_start): Update.
10838 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10839 * config/m68hc11/m68hc11.md (return expanders): Update.
10840 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10841 (expand_epilogue): Update.
10842 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10843 (cris_simple_epilogue): Update.
10844 (cris_expand_prologue): Update.
10845 (cris_expand_epilogue): Update.
10846 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10847 (compute_frame_size): Update.
10848 * config/mt/mt.c (mt_compute_frame_size): Update.
10849 * config/mn10300/mn10300.c (expand_prologue): Update.
10850 (expand_epilogue): Update.
10851 (initial_offset): Update.
10852 (mn10300_builtin_saveregs):
10853 * config/mn10300/mn10300.md (return expander): Update.
10854 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10855 (ia64_initial_elimination_offset): Update.
10856 (ia64_initial_elimination_offset): Update.
10857 (ia64_expand_prologue): Update.
10858 * config/m68k/m68k.md (return expander): Update.
10859 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10860 (rs6000_stack_info): Update.
10861 * config/mcore/mcore.c (layout_mcore_frame): Update.
10862 (mcore_expand_prolog): Update.
10863 * config/arc/arc.c (arc_compute_frame_size): Update.
10864 * config/score/score3.c (score3_compute_frame_size): Update.
10865 * config/score/score7.c (score7_compute_frame_size): Update.
10866 * config/arm/arm.c (use_return_insn): Update.
10867 (thumb_find_work_register): Update.
10868 (arm_compute_save_reg_mask): Update.
10869 (arm_output_function_prologue): Update.
10870 (arm_output_epilogue): Update.
10871 (arm_size_return_regs): Update.
10872 (arm_get_frame_offsets): Update.
10873 (arm_expand_prologue): Update.
10874 (thumb_exit): Update.
10875 (thumb_unexpanded_epilogue): Update.
10876 (thumb1_output_function_prologue): Update.
10877 * config/pa/pa.md (return expander): Update.
10878 * config/pa/pa.c (compute_frame_size): Update.
10879 (hppa_builtin_saveregs): Update.
10880 * config/mips/mips.c (mips_va_start): Update.
10881 (mips16_build_function_stub): Update.
10882 (mips_compute_frame_info): Update.
10883 (mips_restore_gp): Update.
10884 (mips_output_function_prologue): Update.
10885 (mips_expand_prologue): Update.
10886 * config/v850/v850.c (compute_frame_size): Update.
10887 (expand_prologue): * config/mmix/mmix.c (along): update.
10888 (mmix_initial_elimination_offset): update.
10889 (mmix_reorg): update.
10890 (mmix_use_simple_return): update.
10891 (mmix_expand_prologue): update.
10892 (mmix_expand_epilogue): Update.
10893 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10894 (emit_link_insn): Update.
10896 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10898 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10899 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10901 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10904 2008-04-07 Jan Hubicka <jh@suse.cz>
10906 * function.h (rtl): Rename to x_rtl.
10907 (crtl): New define.
10908 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10909 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10910 used_temp_slots avail_temp_slots, temp_slot_level,
10911 nonlocal_goto_handler_labels): Update accesstors.
10912 (rtl): New global variable.
10913 (struct function): Move some fileds to rtl_data.
10914 (get_arg_pointer_save_area): Update prototype.
10915 * builtins.c (expand_builtin_setjmp_receiver): Update call of
10916 get_arg_pointer_save_area.
10917 * expr.c (init_expr): Update
10918 * function.c (get_frame_size): Update
10919 (assign_stack_local): Update
10920 (expand_function_end): Update.
10921 (get_art_pointer_save_area): Update
10923 * emit-rtl.c (rtl): Declare.
10924 (regno_reg_rtx): Declare.
10925 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10927 (gen_reg_rtx): Update.
10928 * varasm.c (n_deferred_constatns): Update accestor.
10929 (init_varasm_status): Do not allocate varasm_status.
10930 (force_const_mem, get_pool_size, output_constant_pool): Update.
10931 * stmt.c (force_label_rtx): Do not use x_ prefixes.
10932 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10933 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10934 * sparc/sparc.h (INIT_EXPANDERS): Update.
10935 * ia64/ia64.h (INIT_EXPANDERS): Update.
10937 2008-04-07 James E. Wilson <wilson@tuliptree.org>
10939 * reload.c (push_secondary_reload): Add missing break to for loop.
10941 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10943 PR middle-end/PR28690
10944 * rtlanal.c: Update copyright years.
10945 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10946 as REG_POINTER and MEM_POINTER operands.
10947 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10948 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10949 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10950 * gcse.c: Update copyright years.
10951 (pre_delete): Call gen_reg_rtx_and_attrs.
10952 (hoist_code): Likewise.
10953 (build_store_vectors): Likewise.
10954 (delete_store): Likewise.
10955 * loop-invariant.c (move_invariant_reg): Likewise.
10956 Update copyright years.
10958 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
10960 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10961 control string instead of quoted.
10963 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
10965 * doc/rtl.texi: Rewrite of subreg section.
10967 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
10970 * config/i386/i386.c (legitimize_pic_address): Add treating
10971 of dllimport SYM_REF's.
10972 (legitimize_dllimport_symbol): Add prototype.
10974 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10976 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
10977 reference in constructor with non self-referential type.
10979 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10981 Removal of Return with Depressed Stack Pointer support
10982 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10983 (ECF_SP_DEPRESSED): Likewise.
10984 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10985 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10986 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10987 (expand_call): Do not test ECF_SP_DEPRESSED.
10988 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10989 * function.c (keep_stack_depressed): Delete.
10990 (handle_epilogue_set): Likewise.
10991 (update_epilogue_consts): Likewise.
10992 (emit_equiv_load): Likewise.
10993 (thread_prologue_and_epilogue_insns): Remove support for Return with
10994 Depressed Stack Pointer.
10995 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10997 2008-04-06 Richard Guenther <rguenther@suse.de>
10999 PR tree-optimization/35400
11000 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11001 information from SSA_NAMEs.
11003 2008-04-06 Anatoly Sokolov <aesok@post.ru>
11005 * config/avr/avr.h (avr_mega_p): Remove declaration.
11006 (AVR_MEGA): Remove macro.
11007 * config/avr/avr.c (avr_mega_p): Remove variable.
11008 (avr_override_options): Remove inicializion of avr_mega_p.
11009 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11010 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11011 (avr_jump_mode): (Ditto.).
11012 (avr_output_progmem_section_asm_op): (Ditto.).
11013 (avr_asm_init_sections): (Ditto.).
11014 (avr_asm_init_sections): (Ditto.).
11015 (avr_rtx_costs): (Ditto.).
11016 * config/avr/avr.md: (Ditto.).
11017 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11020 2008-04-06 Richard Guenther <rguenther@suse.de>
11022 PR tree-optimization/35842
11023 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11024 is_gimple_invariant_address.
11026 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11028 * gcc.c (default_compilers): Sync Fortran extensions list with
11029 that in fortran/lang-specs.h.
11030 * doc/invoke.texi: Likewise.
11031 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11032 * dwarf2out.c (gen_compile_unit_die): Likewise.
11034 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
11036 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11038 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
11041 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11042 attribute is used for nested functions.
11044 2008-04-05 Jan Hubicka <jh@suse.cz>
11046 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11048 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11050 (dump_files): Update.
11051 (enable_rtl_dump_file): Do not accept letter argument.
11052 * tree-pass.h (dump_file_info): Remove letter argument.
11053 * toplev.c (decode_d_option): Update -da handling.
11054 * toplev.h (enable_rtl_dump_file): Update prototype.
11055 * passes.c (register_one_dump_file): Do not accept IPA argument; work
11056 it out based on pass type.
11057 (register_dump_files_1): Likewise.
11058 (init_optimization_passes): Update register_one_dump_file calls.
11059 (execute_one_pass): Sanity check that IPA passes are called at IPA
11060 level and RTL passes at RTL level.
11061 (execute_pass_list): IPA pass can not be after or subpass of
11063 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11064 disallov RTL subpasses of IPA subpasses.
11066 2008-04-05 Ben Elliston <bje@au.ibm.com>
11068 * tree-cfg.c (need_fake_edge_p): Return false for calls to
11069 builtins that return exactly once and do not throw. Cache call to
11072 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11074 PR rtl-optimization/34916
11075 PR middle-end/35519
11076 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11077 between instruction pairs.
11079 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
11081 * doc/invoke.texi: Document -mbitops for SH.
11082 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11083 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11084 * config/sh/sh.c (print_operand): Add %t operand code.
11085 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11086 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11087 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11088 (extendqihi2): Likewise.
11089 (movqi_i): Likewise.
11090 (insv): Use bset, bclr and bst instructions for SH2A if possible.
11091 (extv): Use bld instruction for SH2A if possible.
11093 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11094 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11095 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11096 (bset.b, bclr.b): Define peepholes.
11097 * config/sh/sh.opt (mbitops): New option.
11099 2008-04-04 Janis Johnson <janis187@us.ibm.com>
11102 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11103 and view convert expression.
11105 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11108 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11110 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
11112 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11114 * config/i386/cpuid.h (bit_AES): New.
11115 (bit_PCLMUL): Likewise.
11117 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11118 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
11119 SSE2 if AES or PCLMUL is enabled.
11120 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11121 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11122 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11123 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11124 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11125 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11126 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11127 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11128 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11129 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11130 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11131 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11132 __builtin_ia32_aeskeygenassist128 and
11133 __builtin_ia32_pclmulqdq128.
11134 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11135 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11136 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
11138 * config/i386/i386.h (TARGET_AES): New.
11139 (TARGET_PCLMUL): Likewise.
11140 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11142 * config/i386/i386.md (UNSPEC_AESENC): New.
11143 (UNSPEC_AESENCLAST): Likewise.
11144 (UNSPEC_AESDEC): Likewise.
11145 (UNSPEC_AESDECLAST): Likewise.
11146 (UNSPEC_AESIMC): Likewise.
11147 (UNSPEC_AESKEYGENASSIST): Likewise.
11148 (UNSPEC_PCLMUL): Likewise.
11150 * config/i386/i386.opt (maes): New.
11151 (mpclmul): Likewise.
11153 * config/i386/sse.md (aesenc): New pattern.
11154 (aesenclast): Likewise.
11155 (aesdec): Likewise.
11156 (aesdeclast): Likewise.
11157 (aesimc): Likewise.
11158 (aeskeygenassist): Likewise.
11159 (pclmulqdq): Likewise.
11161 * config/i386/wmmintrin.h: New.
11163 * doc/extend.texi: Document AES and PCLMUL built-in function.
11165 * doc/invoke.texi: Document -maes and -mpclmul.
11167 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
11169 * function.c (free_after_parsing): Replace with
11170 cxx_push_function_context from C++ front-end.
11171 (allocate_struct_function): Don't call langhook.
11172 * langhooks.h (struct lang_hooks_for_functions): Delete.
11173 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11175 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11176 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11177 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11178 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11179 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11180 remove LANG_HOOKS_FUNCTION_INITIALIZER.
11181 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11183 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11184 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11186 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11189 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11192 2008-04-04 Richard Guenther <rguenther@suse.de>
11194 PR middle-end/35823
11195 * fold-const.c (optimize_minmax_comparison): Use the correct
11196 type for the constant in the simplified comparison.
11198 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
11200 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11201 Pass L2 size as "--param l2-cache-size" to the compiler.
11202 (decode_l2_cache): New function to decode L2 cache parameters using
11203 0x8000006 extended cpuid function.
11204 (detect_caches_amd): Determine parameters of L2 cache using
11205 decode_l2_caches function.
11206 (decode_caches_intel): Decode L2 cache parameters.
11207 (detect_caches_intel): Determine L2 cache parameters using
11208 decode_caches_intel and decode_l2_caches functions.
11210 2008-04-03 Bob Wilson <bob.wilson@acm.org>
11212 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11213 secondary input reload for subword loads from the constant pool.
11215 2008-04-03 Janis Johnson <janis187@us.ibm.com>
11218 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11219 constants of the appropriate size for runtime calculations.
11222 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11223 decimal-float literal constant zero.
11225 2008-04-03 Jakub Jelinek <jakub@redhat.com>
11228 * c-parser.c (c_parser_omp_atomic): Call
11229 default_function_array_conversion on the RHS.
11231 PR middle-end/35818
11232 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11233 call is_variable_sized if decl has incomplete type.
11235 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
11237 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11239 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
11241 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11243 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11244 (sgt<u>): Merge sgt and sgtu into new expander.
11245 (sgt, sgtu): Remove expanders.
11246 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11247 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11248 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11249 *sgtu_<mode>_mips16 into new pattern.
11250 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11251 (sge<u>): Merge sge and sgeu into new expander.
11252 (sge, sgeu): Remove expanders.
11253 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11255 (*sge_<mode>, second *sge_<mode>): Remove patterns.
11256 (slt<u>): Merge slt and sltu into new expander.
11257 (slt, sltu): Remove expanders.
11258 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11259 (*slt_<mode>, *sltu_<mode>): Remove patterns.
11260 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11261 *sltu_<mode>_mips16 into new pattern.
11262 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11263 (sle<u>): Merge sle and sleu into new expander.
11264 (sle, sleu): Remove expanders.
11265 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11266 (*sle_<mode>, *sleu_<mode>): Remove patterns.
11267 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11268 *sleu_<mode>_mips16 into new pattern.
11269 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11271 2008-04-03 Jan Hubicka <jh@suse.cz>
11273 PR tree-optimization/35795
11274 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11275 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11276 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11277 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11278 * score/score3.c (score3_output_mi_thunk): Likewise.
11279 * score/score7.c (score7_output_mi_thunk): Likewise.
11280 * mips/mips.c (mips_output_mi_thunk): Likewise.
11282 2008-04-03 Richard Guenther <rguenther@suse.de>
11284 * tree-vrp.c (extract_range_from_unary_expr): Handle all
11285 conversions. Simplify code.
11287 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11289 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11291 2008-04-03 Tom Tromey <tromey@redhat.com>
11292 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11294 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11295 * config/bfin/t-bfin-linux (generated_files): Add
11296 linux-sysroot-suffix.h.
11297 * doc/install.texi (Prerequisites): Require make 3.80.
11298 * doc/sourcebuild.texi (Front End Directory): Document new
11300 * Makefile.in (generated_files): New variable.
11301 (ALL_HOST_OBJS): New variable.
11302 ($(ALL_HOST_OBJS)): New target.
11304 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11306 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11307 (remap_block): Call id->transform_lang_insert_block instead
11309 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11310 Set id.transform_lang_insert_block to NULL.
11311 (clone_body): Move to cp/optimize.c
11312 * tree-inline.h (struct copy_body_data): Change
11313 transform_lang_insert_block to function pointer.
11314 (copy_generic_body, copy_decl_no_change): Export.
11315 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11316 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11317 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11319 * c-tree.h (insert_block): Kill.
11320 * c-decl.c (insert_block): Kill.
11322 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11324 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11325 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11326 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11328 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11329 argument, call {push,pop}_function_context from here.
11330 * c-parser.c: Use c_{push,pop}_function_context.
11332 * function.c (push_function_context_to): Move meat ...
11333 (push_function_context): ... here. Simplify.
11334 * function.c (pop_function_context_from): Move meat ...
11335 (pop_function_context): ... here. Simplify.
11336 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11338 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11339 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11340 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11341 * tree.h (push_function_context_to, pop_function_context_from): Remove.
11343 2008-04-03 Ben Elliston <bje@au.ibm.com>
11345 * expmed.c (extract_force_align_mem_bit_field): Remove.
11347 2008-04-03 Richard Guenther <rguenther@suse.de>
11349 PR middle-end/35800
11350 * expr.h (try_casesi): Adjust prototype.
11351 * expr.c (try_casesi): Take fallback label as extra parameter.
11352 Use that for gen_casesi if default_label is NULL.
11353 * stmt.c (expand_case): Pass fallback label to try_casesi,
11354 make sure to fill gaps with a fallback label if default_label
11357 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
11360 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11362 2008-04-03 Ben Elliston <bje@au.ibm.com>
11364 * expmed.c (extract_split_bit_field): Remove if (0) code.
11365 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11366 (do_ds_constraint): Likewise.
11368 2008-04-02 Joseph Myers <joseph@codesourcery.com>
11370 * doc/cppopts.texi (-dU): Document.
11371 * c-common.h (flag_dump_macros): Update comment.
11372 * c-opts.c (handle_OPT_d): Handle -dU.
11373 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11374 dump_queued_macros, cb_used_define, cb_used_undef): New.
11375 (init_pp_output): Handle -dU.
11376 (cb_line_change): Call dump_queued_macros.
11377 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11379 2008-04-02 Anatoly Sokolov <aesok@post.ru>
11381 * config/avr/predicates.md (io_address_operand): New predicate.
11382 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11383 * config/avr/avr.c (avr_io_address_p): Remove function.
11384 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11385 'avr_io_address_p' function.
11386 (out_movhi_r_mr): (Ditto.).
11387 (out_movqi_mr_r): (Ditto.).
11388 (out_movhi_mr_r): (Ditto.).
11389 (avr_address_cost): (Ditto.).
11391 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
11393 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11394 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11395 in 32bit mode when XMM registers are available to avoid store
11397 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11398 corresponding post-reload splitters.
11400 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11402 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11403 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
11404 __builtin_ia32_roundss.
11405 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11406 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11407 __builtin_ia32_roundss.
11408 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11409 IX86_BUILTIN_SHUFPD here.
11411 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11413 * config/i386/i386.md (plogic): New.
11414 (plogicprefix): Likewise.
11416 * config/i386/mmx.md (mmx_<code><mode>3): New.
11417 (mmx_and<mode>3): Removed.
11418 (mmx_ior<mode>3): Likewise.
11419 (mmx_xor<mode>3): Likewise.
11421 * config/i386/sse.md (<code><mode>3): New.
11422 (*<code><mode>3): Likewise.
11423 (*<code><mode>3): Likewise.
11424 (<code><mode>3): Likewise.
11425 (*sse_<code><mode>3): Likewise.
11426 (*sse2_<code><mode>3): Likewise.
11427 (<code>tf3): Likewise.
11428 (*<code>tf3): Likewise.
11429 (and<mode>3): Likewise.
11430 (*and<mode>3): Likewise.
11431 (ior<mode>3): Removed.
11432 (*ior<mode>3): Likewise.
11433 (xor<mode>3): Likewise.
11434 (*xor<mode>3): Likewise.
11435 (*and<mode>3): Likewise.
11436 (*ior<mode>3): Likewise.
11437 (*xor<mode>3): Likewise.
11438 (and<mode>3): Likewise.
11439 (*sse_and<mode>3): Likewise.
11440 (*sse2_and<mode>3): Likewise.
11441 (andtf3): Likewise.
11442 (*andtf3): Likewise.
11443 (ior<mode>3): Likewise.
11444 (*sse_ior<mode>3): Likewise.
11445 (*sse2_ior<mode>3): Likewise.
11446 (iortf3): Likewise.
11447 (*iortf3): Likewise.
11448 (xor<mode>3): Likewise.
11449 (*sse_xor<mode>3): Likewise.
11450 (*sse2_xor<mode>3): Likewise.
11451 (xortf3): Likewise.
11452 (*xortf3): Likewise.
11454 2008-04-02 Richard Guenther <rguenther@suse.de>
11456 PR tree-optimization/14495
11457 PR tree-optimization/34793
11458 * tree-vrp.c (struct switch_update): New structure.
11459 (to_remove_edges, to_update_switch_stmts): New VECs.
11460 (simplify_switch_using_ranges): New function. Remove not taken
11461 case labels and edges.
11462 (simplify_stmt_using_ranges): Call it.
11463 (identify_jump_threads): Mark edges we have queued for removal
11464 so we don't thread them.
11465 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11467 * tree-cfg.c (group_case_labels): Deal with missing default label.
11468 (tree_verify_flow_info): Allow missing default label.
11469 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11470 (emit_case_nodes): Likewise.
11471 (expand_case): Do not rely on the default label to be present.
11472 * expr.c (try_casesi): Deal with NULL default_label.
11473 (do_tablejump): Likewise.
11475 2008-04-02 Richard Guenther <rguenther@suse.de>
11477 PR tree-optimization/14495
11478 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11479 SWITCH_EXPR here ...
11480 (vrp_visit_switch_stmt): ... but here (new function).
11481 (find_case_label_index): New helper function.
11482 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11484 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11486 * fwprop.c: Fix ISO-C99ism.
11488 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11491 * Makefile.in (objdir): Set it here.
11492 * configure.ac: Not here. Find dynamic linker characteristics.
11493 * exec-tool.in: Use them.
11494 * aclocal.m4: Regenerate.
11495 * configure: Regenerate.
11497 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11499 * expr.c (expand_var): Delete it.
11500 * expr.h (expand_var): Delete prototype.
11501 * function.c (expand_function_start): Use expand_decl instead.
11502 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11505 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
11507 PR rtl-optimization/35542
11508 * fwprop.c (forward_propagate_and_simplify): Replace
11509 loc_reg_mentioned_in_p with reg_mentioned_p.
11511 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11513 PR rtl-optimization/35281
11514 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11515 (propagate_rtx_1): Handle PR_HANDLE_MEM.
11516 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11517 (varying_mem_p): Move above propagate_rtx.
11518 (all_uses_available_at): Do not check MEMs.
11520 2008-04-02 Rafael Espindola <espindola@google.com>
11522 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11523 (register_edge_assert_for_2): Split the cond argument.
11524 (register_edge_assert_for_1): Adjust for the change in
11525 register_edge_assert_for_2.
11526 (register_edge_assert_for): Split the cond argument.
11527 (find_switch_asserts): Adjust for the change in
11528 register_edge_assert_for.
11530 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
11532 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11533 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11534 offsets for 64-bit mingw.
11535 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11536 abi for x86_64-pc-mingw.
11538 2008-04-02 Richard Guenther <rguenther@suse.de>
11540 * tree-vrp.c (extract_range_from_assert): Make sure to not
11541 produce range min/max with TREE_OVERFOW set.
11542 If merging a anti-range and a range keep the anti-range if
11543 the range covers all values of the type.
11544 (register_edge_assert_for_2): Only allow sign-changing
11545 conversions in detecting canonical range checks. Also
11546 register an assert for the unsigned name if useful.
11548 PR tree-optimization/35787
11549 * tree-vrp.c (vrp_val_max): New function.
11550 (vrp_val_min): Likewise.
11551 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11552 (vrp_val_is_min): Likewise.
11553 (supports_overflow_infinity): Use vrp_val_{min,max}.
11554 (negative_overflow_infinity): Likewise.
11555 (positive_overflow_infinity): Likewise.
11556 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11557 (is_positive_overflow_infinity): Likewise.
11558 (is_overflow_infinity): Likewise.
11559 (avoid_overflow_infinity): Use vrp_val_{min,max} and
11560 vrp_val_is_{min,max}.
11561 (set_and_canonicalize_value_range): Canonicalize anti-ranges
11562 to ranges if possible. Avoid empty ranges.
11564 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11566 PR middle-end/35705
11567 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11568 the expression is a function address.
11570 2008-04-01 George Helffrich <george@gcc.gnu.org>
11572 PR fortran/35154, fortran/23057
11573 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11574 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11575 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11576 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11578 (dbxout_syms): Check for COMMON-based symbol and wrap in
11579 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11580 in bracket for efficiency.
11582 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11583 using DW_TAG_common_block + member offset.
11584 (add_pubname_string): New function.
11585 (dw_expand_expr): New function to find block name and offset for
11587 (common_check): New function to check whether symbol in Fortran COMMON.
11588 (gen_variable_die): If COMMON, use DW_TAG_common_block.
11590 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
11593 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11595 2008-04-02 Ben Elliston <bje@au.ibm.com>
11597 * config/v850/v850.md (casesi): Remove if (0) code.
11598 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11599 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11601 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
11603 * config/i386/i386.md (rex64suffix): New mode attribute.
11604 (floathi<mode>2): Disable expander for SSE math.
11605 (*floathi<mode>2_1): New insn insn_and_split pattern.
11606 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11607 corresponding post-reload splitters.
11608 (*floathi<mode>2_i387): New macroized insn pattern.
11609 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11610 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11611 insn_and_split pattern.
11612 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11613 New macroized instruction patterns and corresponding post-reload
11615 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11616 and corresponding post-reload splitters.
11617 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11618 New macroized instruction patterns.
11619 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11620 macroized instruction patterns and corresponding post-reload splitters.
11621 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11622 corresponding post-reload splitters.
11623 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11624 New macroized instruction patterns.
11625 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11626 corresponding post-reload splitters.
11627 (*floatsi<mode>2_i387): New macroized instruction patterns.
11629 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
11631 * config/i386/i386.md (smaxmin): New.
11632 (umaxmin): Likewise.
11633 (maxminiprefix): Likewise.
11634 (maxminfprefix): Likewise.
11635 (<code><mode>3): Likewise.
11636 (smin<mode>3): Removed.
11637 (smax<mode>3): Likewise.
11639 * config/i386/mmx.md (mmx_<code>v2sf3): New.
11640 (mmx_<code>v4hi3): Likewise.
11641 (mmx_<code>v8qi3): Likewise.
11642 (mmx_smaxv2sf3): Removed.
11643 (mmx_sminv2sf3): Likewise.
11644 (mmx_umaxv8qi3): Likewise.
11645 (mmx_smaxv4hi3): Likewise.
11646 (mmx_uminv8qi3): Likewise.
11647 (mmx_sminv4hi3): Likewise.
11649 * config/i386/sse.md (<addsub><mode>3): New.
11650 (*<addsub><mode>3): Likewise.
11651 (<sse>_vm<addsub><mode>3): Likewise.
11652 (<maxmin><mode>3): Likewise.
11653 (*<maxmin><mode>3_finite): Likewise.
11654 (*<maxmin><mode>3): Likewise.
11655 (<sse>_vm<maxmin><mode>3): Likewise.
11656 (sse3_h<addsub>v4sf3): Likewise.
11657 (sse3_h<addsub>v2df3): Likewise.
11658 (<maxmin>v16qi3): Likewise.
11659 (*<maxmin>v16qi3): Likewise.
11660 (<maxmin>v8hi3): Likewise.
11661 (*<maxmin>v8hi3): Likewise.
11662 (*sse4_1_<maxmin><mode>3): Likewise.
11663 (*sse4_1_<maxmin><mode>3): Likewise.
11664 (add<mode>3): Removed.
11665 (*add<mode>3): Likewise.
11666 (<sse>_vmadd<mode>3): Likewise.
11667 (sub<mode>3): Likewise.
11668 (*sub<mode>3): Likewise.
11669 (<sse>_vmsub<mode>3): Likewise.
11670 (smin<mode>3): Likewise.
11671 (*smin<mode>3_finite): Likewise.
11672 (*smin<mode>3): Likewise.
11673 (<sse>_vmsmin<mode>3): Likewise.
11674 (smax<mode>3): Likewise.
11675 (*smax<mode>3_finite): Likewise.
11676 (*smax<mode>3): Likewise.
11677 (<sse>_vmsmax<mode>3): Likewise.
11678 (sse3_haddv4sf3): Likewise.
11679 (sse3_haddv2df3): Likewise.
11680 (sse3_hsubv4sf3): Likewise.
11681 (sse3_hsubv2df3): Likewise.
11682 (umaxv16qi3): Likewise.
11683 (*umaxv16qi3): Likewise.
11684 (smaxv8hi3): Likewise.
11685 (*smaxv8hi3): Likewise.
11686 (*sse4_1_smax<mode>3): Likewise.
11687 (*sse4_1_umax<mode>3): Likewise.
11688 (uminv16qi3): Likewise.
11689 (*uminv16qi3): Likewise.
11690 (sminv8hi3): Likewise.
11691 (*sminv8hi3): Likewise.
11692 (*sse4_1_smin<mode>3): Likewise.
11693 (*sse4_1_umin<mode>3): Likewise.
11695 2008-04-01 Rafael Espindola <espindola@google.com>
11697 * tree-cfg.c (verify_expr): remove in_phi.
11698 (verify_stmt): Don't call walk_tree with verify_expr. Use
11699 is_gimple_min_invariant instead of is_gimple_val.
11701 2008-04-01 Joseph Myers <joseph@codesourcery.com>
11703 * doc/include/gpl_v3.texi: Update for manpage generation.
11704 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11706 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11707 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11708 gpl_v3.texi instead of gpl.texi.
11711 2008-04-01 Jakub Jelinek <jakub@redhat.com>
11714 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11716 2008-04-01 Rafael Espindola <espindola@google.com>
11718 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11719 (extract_code_and_val_from_cond): Use
11720 extract_code_and_val_from_cond_with_ops.
11722 2008-04-01 Jan Hubicka <jh@suse.cz>
11724 * function.c (free_after_compilation): Free epilogue_delay_list.
11725 (prepare_function_start): Assert that previous compilation was freed.
11727 2008-04-01 Jan Hubicka <jh@suse.cz>
11728 Jim Wilson <wilson@tuliptree.org>
11729 Andreas Tobler <andreast@gcc.gnu.org>
11731 PR middle-end/35781
11732 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11733 rtl.emit instead cfun->emit.
11734 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11735 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11737 2008-04-01 Ben Elliston <bje@au.ibm.com>
11739 * doc/c-tree.texi (Function Basics): Fix grammatical error.
11741 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
11743 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11745 (fprofile-use): Add var flag_profile_use
11746 * coverage.c (coverage_begin_output): Do not open a gcno file for
11747 output only if -ftest-coverage is set.
11748 Do not add getpwd() to gcda file path.
11749 (build_gcov_info): Check the new flag
11750 flag_profile_datafile_relative_path.
11751 (coverage_init): Use profile_data_prefix.
11752 Read profile counter only if flag_profile_use is set.
11753 * opts.c (common_handle_option): New option fprofile-use=,
11754 fprofile-dir=, fprofile-generate=.
11755 * toplev.c (profile_data_prefix): New variable definition.
11756 * toplev.h (profile_data_prefix): New declaration.
11757 * doc/invoke.tex (Option Summary, Optimization Options):
11760 2008-03-31 James E. Wilson <wilson@tuliptree.org>
11762 * varasm.c (output_constant_pool_1): In LABEL_REF check,
11763 use tmp consistently.
11766 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11767 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11768 UNSPEC_FR_RECIP_APPROX_RES.
11769 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11771 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11774 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11776 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11778 PR middle-end/30186
11779 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11780 element of the vector via a pointer.
11782 2008-03-31 Ian Lance Taylor <iant@google.com>
11784 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11786 2008-03-31 Jan Hubicka <jh@suse.cz>
11788 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11789 get_arg_pointer_save_area.
11790 * expr.c (init_expr): Just clear out rtl.expr.
11791 * function.c (free_after_compilation): Clear out whole RTL structure.
11792 (get_func_frame_size): Merge into ...
11793 (get_frame_size): ... this one.
11794 (assign_stack_local_1): Merge into ...
11795 (assign_stack_local): ... this one.
11796 (expand_function_end): Update call of get_arg_pointer_save_area.
11797 (get_art_pointer_save_area): Remove cfun argument.
11798 * function.h (emit_status): regno_pointer_align does not need length
11799 attribute. Move x_regno_reg_rtx to ...
11800 (regno_reg_rtx): ... new global array.
11801 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11802 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11803 apply_args_value, forced_labels, stack_pointer_delta):
11805 (struct varasm_status): Move here from varasm.c
11806 (struct rtl_data): New. Move here some fields from struct function.
11807 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11808 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11809 used_temp_slots avail_temp_slots, temp_slot_level,
11810 nonlocal_goto_handler_labels): Update accesstors.
11811 (rtl): New global variable.
11812 (struct function): Move some fileds to rtl_data.
11813 (get_arg_pointer_save_area): Update prototype.
11814 * emit-rtl.c (rtl): Declare.
11815 (regno_reg_rtx): Declare.
11816 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11818 (gen_reg_rtx): Update.
11819 (init_virtual_regs): Do not tate emit_status argument.
11820 (init_emit): Do not allocate emit.
11821 * varasm.c (varasm_statuc): Move to function.h.
11822 (n_deferred_constatns): Update accestor.
11823 (init_varasm_status): Do not allocate varasm_status.
11824 (force_const_mem, get_pool_size, output_constant_pool): Update.
11825 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11826 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11828 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11830 PR rtl-optimization/35729
11831 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11834 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11837 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11838 load/store if memory is unaligned.
11839 (*movti_rex64): Likewise.
11841 * config/i386/predicates.md (misaligned_operand): New.
11843 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11846 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11849 2008-03-31 Jan Beulich <jbeulich@novell.com>
11851 * config/ia64/constraints.md: Add 'j' constraint.
11852 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11853 (movdi_internal): Likewise.
11855 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11858 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11860 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11863 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11864 proper error message for the third argument on blendpd and
11867 * config/i386/sse.md (blendbits): New.
11868 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11870 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11872 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11874 2008-03-30 Richard Guenther <rguenther@suse.de>
11876 PR middle-end/31023
11877 * fold-const.c (fold_sign_changed_comparison): Do leave
11878 conversions to base-types alone.
11880 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11882 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11883 the link register if one altivec register is be saved.
11885 2008-03-30 Ben Elliston <bje@au.ibm.com>
11887 * final.c (final_scan_insn): Remove if (0) code.
11889 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11891 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11893 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11895 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11896 of V4SFmode to ix86_binary_operator_ok.
11898 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11900 * config/i386/i386.c (override_options): Initialize
11901 ix86_veclib_handler to ix86_veclibabi_svml when
11902 -mveclibabi=svml is used.
11903 (ix86_veclibabi_svml): New function for SVML ABI style
11904 vectorization support.
11905 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11907 2008-03-28 Rafael Espindola <espindola@google.com>
11909 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11910 (tree_binary_nonnegative_warnv_p): Make it public.
11911 (tree_single_nonnegative_warnv_p): Make it public.
11912 (tree_invalid_nonnegative_warnv_p): Make it public.
11913 (tree_unary_nonzero_warnv_p): Make it public.
11914 (tree_binary_nonzero_warnv_p): Make it public
11915 (tree_single_nonzero_warnv_p): Make it public.
11916 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11917 (extract_range_from_binary_expr): Split the expr argument.
11918 (extract_range_from_unary_expr): Split the expr argument.
11919 (extract_range_from_comparison): Split the expr argument.
11920 (extract_range_from_expr): Use the new aux functions.
11921 (vrp_evaluate_conditional_warnv): Use
11922 vrp_evaluate_conditional_warnv_with_ops.
11923 * tree.h (tree_unary_nonzero_warnv_p): Declare.
11924 (tree_binary_nonzero_warnv_p): Declare.
11925 (tree_single_nonzero_warnv_p): Declare.
11926 (tree_expr_nonzero_warnv_p): Declare.
11927 (tree_unary_nonnegative_warnv_p): Declare.
11928 (tree_binary_nonnegative_warnv_p): Declare.
11929 (tree_single_nonnegative_warnv_p): Declare.
11930 (tree_invalid_nonnegative_warnv_p): Declare.
11932 2008-03-28 Richard Guenther <rguenther@suse.de>
11934 PR tree-optimization/30317
11935 PR tree-optimization/30911
11936 PR tree-optimization/34793
11937 * tree-vrp.c (set_and_canonicalize_value_range): New function.
11938 (struct assert_locus_d): New member EXPR.
11939 (register_new_assert_for): Add EXPR parameter to support
11940 ASSERT_EXPR <name, expr OP limit>.
11941 (register_edge_assert_for_1): Adjust callers.
11942 (find_assert_locations): Likewise.
11943 (process_assert_insertions_for): Build condition from expression.
11944 (extract_range_from_assert): Handle ASSERT_EXPRs
11945 of the form ASSERT_EXPR <name, expr OP limit>.
11946 (register_edge_assert_for_2): New helper registering
11947 asserts for comparisons. Recognize range tests of the form
11948 (unsigned)i - CST1 OP CST2.
11949 (register_edge_assert_for_1): Use it.
11950 (register_edge_assert_for): Likewise.
11951 (needs_overflow_infinity): Integer sub-types
11952 do not need overflow infinities.
11953 (vrp_val_is_max): The extreme values of integer sub-types
11954 are those of the base type.
11955 (vrp_val_is_min): Likewise.
11956 * tree.def (ASSERT_EXPR): Document extra allowed conditional
11959 2008-03-28 Nick Clifton <nickc@redhat.com>
11962 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11963 Return GENERAL_REGS for stack adjustment reloads.
11965 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
11968 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11969 const_vector when all the vectors are constant.
11971 2008-03-27 Bob Wilson <bob.wilson@acm.org>
11973 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11975 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11976 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11978 (s<code>_sf): Use new scc_sf attribute for opcode names.
11980 2008-03-27 Tom Tromey <tromey@redhat.com>
11982 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11983 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11984 config/spu/t-spu-elf, config/i386/t-interix,
11985 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11986 config/i386/x-darwin, config/i386/x-mingw32,
11987 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11988 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11989 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11990 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11991 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11992 config/rs6000/x-darwin, config/rs6000/t-rs6000,
11993 config/score/t-score-elf, config/arm/t-strongarm-pe,
11994 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11995 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11996 Revert automatic dependency patch.
11998 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
12001 * config/i386/i386.c (ix86_function_arg_boundary): Align
12002 decimal floating point to its natural boundary.
12004 2008-03-27 Richard Guenther <rguenther@suse.de>
12006 PR middle-end/35716
12007 * fold-const.c (fold_comparison): Restrict distinct decl
12008 comparison folding to VAR_DECLs and PARM_DECLs. Do not
12009 solely rely on operand_equal_p.
12011 2008-03-27 Richard Guenther <rguenther@suse.de>
12014 * c-common.c (handle_weak_attribute): Reject combination of
12017 2008-03-27 Richard Guenther <rguenther@suse.de>
12019 PR tree-optimization/32810
12020 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12021 conversions from DECL_INITIAL.
12022 (fold_const_aggregate_ref): Likewise from constructor elements.
12024 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
12026 * tree-affine.h (aff_combination_expand): Declare.
12027 (get_inner_reference_aff): Likewise.
12028 * tree-affine.c (aff_combination_expand): Split out from
12029 tree_to_aff_combination_expand.
12030 (get_inner_reference_aff): New function.
12031 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12032 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12033 (struct lim_aux_data): sm_done field removed.
12034 (mem_ref_loc_p, mem_ref_locs_p): New types.
12035 (struct mem_ref): Added id, stored, accesses_in_loop,
12036 indep_loop, dep_loop, indep_ref, dep_ref fields.
12037 Removed is_stored, locs and next fields.
12038 (memory_accesses): New variable.
12039 (movement_possibility): Do not allow moving statements
12040 that store to memory.
12041 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12043 (determine_max_movement): For statements with memory references,
12044 find the outermost loop in that the reference is independent.
12045 (move_computations_stmt): Mark the virtual operands for renaming.
12046 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12047 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12048 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12049 add_vop_ref_mapping, create_vop_ref_mapping_loop,
12050 create_vop_ref_mapping, analyze_memory_references,
12051 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12052 get_all_locs_in_loop, ref_always_accessed_p,
12053 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12054 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12055 store_motion_loop, store_motion): New functions.
12056 (struct vop_to_refs_elt): New type.
12057 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12058 memref_hash, memref_eq, hoist_memory_references): Rewritten.
12059 (schedule_sm): Replaced by...
12060 (execute_sm): ... this.
12061 (determine_lsm_ref, hoist_memory_references,
12062 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12063 find_more_ref_vops, free_mem_ref, free_mem_refs,
12064 determine_lsm_loop, determine_lsm): Removed.
12065 (tree_ssa_lim_finalize): Free data structures used by store motion.
12066 (tree_ssa_lim): Call analyze_memory_references. Use
12067 store_motion instead of determine_lsm.
12069 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12071 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12072 rename tmake_file to m68hc11/t-m68hc11.
12073 (mcore): Set inhibit_libc to true.
12074 * config.host (alpha*-dec-*vms*): Set extra_programs.
12075 (interix3*): Don't use host_xmake_file.
12076 * configure.ac: Let config.gcc override inhibit_libc.
12077 * configure: Regenerate.
12079 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12080 * config/t-openbsd-thread: Remove commented out lines.
12082 * config/x-interix: Remove.
12084 * config/m68hc11/t-m68hc11-gas: Rename to...
12085 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
12087 * config/mcore/t-mcore: Remove T_CFLAGS.
12088 * config/mcore/t-mcore-pe: Likewise.
12090 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12092 * configure.ac: Replace custom __GNU_SOURCE test with
12093 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
12094 * aclocal.m4: Regenerate.
12095 * configure: Regenerate.
12096 * config.in: Regenerate.
12098 2008-03-27 Richard Guenther <rguenther@suse.de>
12100 * fold-const.c (target.h): Include.
12101 (fold_comparison): Fold comparison of addresses of decls
12102 that bind locally or of constants. Consolidate address folding code.
12103 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12104 results from fold_binary_to_constant.
12105 (compare_values_warnv): Likewise.
12107 2008-03-27 Andrew Pinski <pinskia@gmail.com>
12109 PR middle-end/35429
12110 * fold-const.c (fold_truthop): Check for integeral types when folding
12111 a == 0 && b == 0 and a != 0 || b != 0 .
12113 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
12115 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12117 2008-03-26 Andreas Schwab <schwab@suse.de>
12119 * doc/invoke.texi: Fix use of @item vs. @itemx.
12121 2008-03-26 Tom Tromey <tromey@redhat.com>
12123 * Makefile.in (build/gensupport.o, build/print-rtl.o,
12124 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12125 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12126 build/gencodes.o, build/genconditions.o, build/genconfig.o,
12127 build/genconstants.o, build/genemit.o, build/genextract.o,
12128 build/genflags.o, build/genmddeps.o, build/genopinit.o,
12129 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12132 2008-03-26 Richard Guenther <rguenther@suse.de>
12135 2008-03-26 Richard Guenther <rguenther@suse.de>
12137 * fold-const.c (target.h): Include.
12138 (fold_comparison): Fold comparison of addresses of two decls
12139 that bind locally. Consolidate address folding code.
12141 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12143 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12144 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12145 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12146 dconstsqrt2, dconstthird, dconste and/or dconst10.
12147 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12148 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12149 dconstsqrt2, dconste): Delete.
12150 (init_emit_once): Likewise. Simplify initializing dconstm1.
12152 * real.c (get_real_const): New.
12153 * real.h (dconst3, dconst10, dconstm2, dconstthird,
12154 dconstsqrt2, dconste): Delete.
12155 (real_value_const, get_real_const): New.
12157 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
12159 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12161 * config/i386/i386.c (ix86_function_arg_boundary): Check
12162 BIGGEST_ALIGNMENT instead of 128.
12163 (setup_incoming_varargs_64): Likewise.
12165 2008-03-26 Tom Tromey <tromey@redhat.com>
12167 * Makefile.in (DEPFILES): Add missing '/'.
12169 2008-03-26 Richard Guenther <rguenther@suse.de>
12171 * fold-const.c (target.h): Include.
12172 (fold_comparison): Fold comparison of addresses of two decls
12173 that bind locally. Consolidate address folding code.
12175 2008-03-26 Nick Clifton <nickc@redhat.com>
12178 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12179 not allow INT+INT as a legitimate addressing mode.
12181 2008-03-26 Richard Guenther <rguenther@suse.de>
12183 * tree-flow.h (widen_bitfield): Remove declaration.
12184 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12185 (widen_bitfield): Remove function.
12186 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12189 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12192 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12195 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
12197 PR rtl-optimization/35232
12198 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12199 (forget_old_reloads_1, forget_marked_reloads): Don't clear
12200 reg_reloaded_call_part_clobbered here.
12201 (reload_regs_reach_end_p): New function.
12202 (reload_reg_rtx_for_input): New variable.
12203 (reload_reg_rtx_for_output): Likewise.
12204 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12205 when reassigning a pseudo register. Load reloadreg from
12206 reload_reg_rtx_for_input, moving the mode and register
12208 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
12209 instead of the original when deciding whether an input reload
12210 would be a no-op or whether an output reload can be deleted.
12211 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12212 when setting up new_spill_reg_store. Load it from
12213 reload_reg_rtx_for_output, moving the mode and register
12215 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
12216 instead of the original when deciding whether an output reload
12217 would be a no-op. Do the same when modifying insn notes.
12218 Use rtx_equal_p instead of == to compare the registers.
12219 (inherit_piecemeal_p): Take a mode and two register numbers
12221 (emit_reload_insns): Clear new_spill_reg_store for every hard
12222 register in the reload register. Remove spill registers
12223 from reg_reloaded_valid before considering whether to record
12224 inheritance information for them. Use reload_reg_rtx_for_output
12225 instead of reg_rtx when recording output reloads. Use
12226 reload_reg_rtx_for_input instead of reg_rtx when recording
12227 input reloads. Set or clear reg_reloaded_call_part_clobbered
12228 at the same time as setting reg_reloaded_valid.
12229 (delete_output_reload): Add a new_reload_reg parameter and use it
12230 instead of rld[j].reg_rtx.
12231 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12234 2008-03-25 Tom Tromey <tromey@redhat.com>
12236 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12237 (build/genattr.o): Likewise.
12238 (build/genattrtab.o): Likewise.
12239 (build/gencodes.o): Likewise.
12240 (build/genconfig.o): Likewise.
12241 (build/genconstants.o): Likewise.
12242 (build/genemit.o): Likewise.
12243 (build/genextract.o): Likewise.
12244 (build/genflags.o): Likewise.
12246 2008-03-25 Bob Wilson <bob.wilson@acm.org>
12248 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12249 instead of size_int for integer types.
12250 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
12251 to match type of MINUS_EXPR.
12253 2008-03-25 Tom Tromey <tromey@redhat.com>
12255 * configure: Rebuilt.
12256 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12259 2008-03-25 Tom Tromey <tromey@redhat.com>
12261 * config/x-solaris (host-solaris.o): Update.
12262 * config/x-linux (host-linux.o): Update.
12263 * config/x-hpux (host-hpux.o): Update.
12264 * config/x-darwin (host-darwin.o): Update.
12265 * config/v850/t-v850e (v850-c.o): Update.
12266 * config/v850/t-v850 (v850-c.o): Update.
12267 * config/t-vxworks (vxworks.o): Update.
12268 * config/t-sol2 (sol2-c.o, sol2.o): Update.
12269 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12270 * config/spu/t-spu-elf (spu-c.o): Update.
12272 * config/sh/t-symbian (sh-c.o): Update.
12273 (symbian.o): Update.
12274 * config/sh/t-sh (sh-c.o): Update.
12275 * config/score/t-score-elf (score7.o, score3.o): Update.
12276 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12277 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12278 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12279 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12280 (rs6000.o): Remove.
12281 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12282 * config/m32c/t-m32c (m32c-pragma.o): Update.
12283 * config/ia64/t-ia64 (ia64-c.o): Update.
12284 * config/i386/x-mingw32 (host-mingw32.o): Update.
12285 * config/i386/x-i386 (driver-i386.o): Update.
12286 * config/i386/x-darwin (host-i386-darwin.o): Update.
12287 * config/i386/x-cygwin (host-cygwin.o): Update.
12288 * config/i386/t-nwld (nwld.o): Update.
12289 * config/i386/t-netware (netware.o): Update.
12290 * config/i386/t-interix (winnt.o): Update.
12291 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12292 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12293 msformat-c.o): Update.
12294 * config/bfin/t-bfin-linux (generated_files): Add
12295 linux-sysroot-suffix.h.
12296 * config/arm/t-wince-pe (pe.o): Update.
12297 * config/arm/t-strongarm-pe (pe.o): Update.
12298 * config/arm/t-pe (pe.o): Update.
12299 * config/arm/t-arm (arm-c.o): Update.
12300 * doc/install.texi (Prerequisites): Require make 3.80.
12301 * Makefile.in: Remove .o targets.
12302 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12303 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12304 (simple_generated_h, simple_generated_c): Move earlier.
12305 (generated_files): New variable.
12306 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12307 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12308 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12309 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12310 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12311 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12312 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12313 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12314 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12315 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12316 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12317 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12319 (COMPILE.base, COMPILE): New variables.
12320 (%.o): New pattern rule.
12321 (ALL_HOST_OBJS): New variable.
12322 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12323 (dummy-checksum.o, cc1-checksum.o): Remove.
12324 (DRIVER_SHLIB): New variable.
12325 (DRIVER_DEFINES): Use it.
12326 (gencondmd.c): Move out of build/.
12327 (s-conditions): Update.
12328 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12329 (ALL_BUILD_OBJS): Likewise.
12330 (build/%.o): Use BUILDCOMPILE.
12331 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12332 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12333 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12334 build/gencheck.o, build/gencodes.o, build/genconditions.o,
12335 build/genconfig.o, build/genconstants.o, build/genemit.o,
12336 build/genextract.o, build/genflags.o, build/genmddeps.o,
12337 build/genopinit.o, build/genoutput.o, build/genpeep.o,
12338 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12339 build/gen-protos.o, build/scan.o, build/fix-header.o,
12340 build/scan-decls.o): Simplify.
12341 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12342 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12343 prefix.o, toplev.o): Reduce to variable setting.
12344 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
12345 ($(out_object_file), gcc-options.o): New targets.
12346 ($(ALL_HOST_OBJS)): New target. Include dependency files.
12347 * configure: Rebuilt.
12348 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12349 * doc/sourcebuild.texi (Front End Directory): Document new variable.
12351 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
12353 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12354 complain when we hit an error, return ERROR_MARK_NODE.
12356 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12358 * config/sh/constraints.md (Pso, Psz): New constraints.
12359 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12360 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12362 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12364 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12365 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12367 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12369 * config/sh/sh.md (prefetch): Add condition for SH2A target.
12370 (prefetch_sh2a): New.
12372 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12373 Naveen.H.S <naveen.hs@kpitcummins.com>
12375 * config/sh/constraints.md (I28): New constraint.
12376 * config/sh/sh.c (broken_move): Add support for movi20s.
12377 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12379 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
12380 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12381 Naveen.H.S <naveen.hs@kpitcummins.com>
12383 * config/sh/sh.c (SH_ATTRIBUTES): Define.
12384 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12385 (print_operand): Handle resbank in %@ operand code.
12386 (sh_encode_section_info): New.
12387 (push_regs): Add conditions for resbank.
12388 (sh_expand_epilogue): Likewise.
12389 (sh_insert_attributes): Likewise.
12390 (sh_attribute_table): Likewise.
12391 (sh_handle_resbank_handler_attribute): New.
12392 (sh2a_handle_function_vector_handler_attribute): New.
12393 (sh2a_is_function_vector_call): New.
12394 (sh2a_get_function_vector_number): New.
12395 (sh2a_function_vector_p): New.
12396 (sh_cfun_resbank_handler_p): New.
12397 * config/sh/sh.md (calli): Emit jsr/n if possible.
12398 (calli_tbr_rel): New.
12399 (calli_pcrel): Emit jsr/n if possible.
12400 (return_i): Emit rts/n if possible.
12401 (call_valuei_tbr_rel): New.
12402 (call_valuei_pcrel): Add condition for SH2A target.
12403 (call_value): Likewise.
12404 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12405 (sh2a_get_function_vector_number): Likewise.
12406 (sh2a_is_function_vector_call): Likewise.
12407 * doc/extend.texi: Document TBR relative addressing of SH2A.
12408 (resbank): Add description for SH2A.
12410 2008-03-24 Richard Guenther <rguenther@suse.de>
12413 * gimplify.c (gimplify_modify_expr): For frontend type-correct
12414 pointer assignments change conversions according to middle-end rules.
12415 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12416 * configure.ac: Include type checking in yes.
12417 * configure: Regenerate.
12419 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12421 * diagnostic.c (diagnostic_count_diagnostic): Delete.
12422 (diagnostic_report_diagnostic): Update. Handle ICEs here.
12424 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
12426 * gthr-vxworks.h (UNUSED): Define.
12428 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
12430 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12432 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
12434 * doc/extend.texi (Function Attributes): Add missing comma in the
12435 example of the "alloc_size" attribute.
12437 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
12440 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12442 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12445 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12448 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12449 of the underlying type of a MS bitfield layout to the natural
12450 alignment of the type.
12452 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12454 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12455 to their natural alignment to avoid store forwarding stalls.
12457 2008-03-22 Richard Guenther <rguenther@suse.de>
12459 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12460 For PHI nodes verify the address is invariant.
12461 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12462 (get_symbol_constant_value): Use is_gimple_min_invariant.
12463 (maybe_fold_stmt_indirect): Likewise.
12465 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
12467 PR rtl-optimization/33927
12468 * Makefile.in (dse.o): Depend on $(TM_P_H).
12469 * expr.h (extract_low_bits): Declare.
12470 * expmed.c (extract_low_bits): New function.
12471 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12472 * dse.c: Include tm_p.h.
12473 (find_shift_sequence): Remove the read_reg argument and return the
12474 read value. Emit the instructions instead of returning them.
12475 Iterate on new_mode rather than calculating it each time.
12476 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
12477 source to NEW_MODE and extract_low_bits to convert the shifted
12478 value to READ_MODE.
12479 (replace_read): Allow the load and store to have different mode
12480 classes. Use extract_low_bits when SHIFT == 0. Create the shift
12481 or extraction instructions before trying the replacement. Update
12482 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12484 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12486 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12487 to their natural alignment to avoid store forwarding stalls.
12489 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12492 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12493 encouraging but not allowing gprs for input;
12494 change the input constraint to !f#r.
12495 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12497 change the output constraint to !f#r.
12499 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
12502 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12503 corresponding post-reload splitters.
12504 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12505 when x87 FP math is selected.
12506 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12507 New function prototype.
12508 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12509 unreachable function to ease macroization of insn patterns.
12511 2008-03-21 Martin Jambor <mjambor@suse.cz>
12513 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12514 reference dumps if ddr is NULL or dependence is unknown.
12516 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12518 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12519 unsigned extension into account.
12520 (ATOMIC_COMPARE_AND_SWAP): Likewise.
12521 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12522 Do computations on a scratch register.
12524 2008-03-21 Richard Guenther <rguenther@suse.de>
12526 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12527 Use is_gimple_min_invariant instead of TREE_INVARIANT.
12528 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12529 * tree-ssa-dom.c (record_equality): Likewise.
12530 * tree-inline.c (copy_body_r): Likewise.
12531 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12534 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12536 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12537 as 'delete_unused' argument.
12539 2008-03-20 Richard Guenther <rguenther@suse.de>
12541 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12542 special casing of constant qualifiers.
12543 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12544 care about them in general.
12545 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12546 regardless of their type.
12547 (fold_stmt_r): Forcefully fold *& if we end up with that.
12549 2008-03-20 Paul Brook <paul@codesourcery.com>
12551 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12552 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12554 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12556 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12557 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12559 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
12561 * common.opt (Wmudflap): New option.
12562 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12563 (mx_register_decls): Likewise.
12564 (mudflap_finish_file): Likewise.
12565 * doc/invoke.texi: Document -Wno-mudflap.
12567 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
12569 * c-format.c (replace_format_name_to_system_name): New.
12570 (cmp_attribs): New.
12571 (convert_format_name_to_system_name): New.
12572 (decode_format_attr): Add use of convert_format_name_to_system_name.
12573 (format_types_orig): Add gnu_ prefix to names.
12574 (check_format_info_main): Special treating of \0 escaped names for
12575 supporting multi-character format specifiers as I32, I64.
12576 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12577 (gnu_target_overrides_format_attributes): New.
12578 * c-format.h: Add structure target_ovr_attr to hold
12579 system specific formatter names.
12580 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12581 msformat-c.o file to c_target_objs and cxx_target_objs.
12582 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12583 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12584 (TARGET_N_FORMAT_TYPES): New.
12585 * config/i386/msformat-c.c: New.
12586 * config/i386/t-cygming: Add build rule for msformat-c.o.
12587 * doc/extend.texi: Add new format names gnu_* and ms_* and
12589 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12591 2008-03-20 Ira Rosen <irar@il.ibm.com>
12593 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12594 optimizations turned on under -O3.
12595 (ftree-vectorize): Add that the flag is turned on with -O3.
12597 2008-03-20 Ben Elliston <bje@au.ibm.com>
12599 * regmove.c (try_auto_increment): Fix spelling error in comment.
12600 * final.c (final_scan_insn): Likewise.
12602 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
12605 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12606 allocator preferences for "y" and "r" class registers.
12607 ("*mov<mode>_internal"): Ditto.
12608 ("*movv2sf_internal_rex64"): Ditto.
12609 ("*movv2sf_internal"): Ditto.
12611 2008-03-19 Michael Matz <matz@suse.de>
12613 PR middle-end/35616
12614 * calls.c (expand_call): Check overlap of arguments with call
12615 address for sibcalls.
12617 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12620 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12621 of the underlying type of a MS bitfield layout to the natural
12622 alignment of the type.
12624 2008-03-19 Jan Hubicka <jh@suse.cz>
12627 * toplev.c (decode_d_option): Handle all CPP flags.
12628 * tree-vrp.c: Update tree_pass descriptors.
12629 * regrename.c: Update tree_pass descriptors.
12630 * fwprop.c: Update tree_pass descriptors.
12631 * doc/invoke.texi: Remove documentation of dropped -d? flags.
12632 * tree-into-ssa.c: Update tree_pass descriptors.
12633 * tree-dump.c: Update tree_pass descriptors.
12634 * tree-complex.c: Update tree_pass descriptors.
12635 * tree-dump.h: Update tree_pass descriptors.
12636 * see.c: Update tree_pass descriptors.
12637 * cgraphbuild.c: Update tree_pass descriptors.
12638 * tracer.c: Update tree_pass descriptors.
12639 * tree-loop-distribution.c: Update tree_pass descriptors.
12640 * cgraph.c: Update tree_pass descriptors.
12641 * postreload-gcse.c: Update tree_pass descriptors.
12642 * postreload.c: Update tree_pass descriptors.
12643 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12644 * tree-tailcall.c: Update tree_pass descriptors.
12645 * tree-pass.h (tree_opt_pass): Rename to ...
12646 (opt_pass) ... this one; add "type" field and remove letter field.
12647 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12648 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12649 all_lowering_passes): Update declaration.
12650 * ipa-cp.c: Update tree_pass descriptors.
12651 * final.c: Update tree_pass descriptors.
12652 * omp-low.c: Update tree_pass descriptors.
12653 * tree-ssa-dse.c: Update tree_pass descriptors.
12654 * ipa-reference.c: Update tree_pass descriptors.
12655 * tree-ssa-uncprop.c: Update tree_pass descriptors.
12656 * auto-inc-dec.c: Update tree_pass descriptors.
12657 * reorg.c: Update tree_pass descriptors.
12658 * cgraphunit.c: Update tree_pass descriptors.
12659 * tree-ssa-copyrename.c: Update tree_pass descriptors.
12660 * tree-ssa-ccp.c: Update tree_pass descriptors.
12661 * df-core.c: Update tree_pass descriptors.
12662 * mode-switching.c: Update tree_pass descriptors.
12663 * tree-nomudflap.c: Update tree_pass descriptors.
12664 * modulo-sched.c: Update tree_pass descriptors.
12665 * ipa-pure-const.c: Update tree_pass descriptors.
12666 * cse.c: Update tree_pass descriptors.
12667 * web.c: Update tree_pass descriptors.
12668 * tree-stdarg.c: Update tree_pass descriptors.
12669 * tree-ssa-math-opts.c: Update tree_pass descriptors.
12670 * tree-ssa-dom.c: Update tree_pass descriptors.
12671 * tree-nrv.c: Update tree_pass descriptors.
12672 * tree-ssa-alias.c: Update tree_pass descriptors.
12673 * loop-init.c: Update tree_pass descriptors.
12674 * gimple-low.c: Update tree_pass descriptors.
12675 * ipa-inline.c: Update tree_pass descriptors.
12676 * tree-ssa-sink.c: Update tree_pass descriptors.
12677 * global.c: Update tree_pass descriptors.
12678 * ifcvt.c: Update tree_pass descriptors.
12679 * jump.c: Update tree_pass descriptors.
12680 * predict.c: Update tree_pass descriptors.
12681 * tree-ssa-loop.c: Update tree_pass descriptors.
12682 * recog.c: Update tree_pass descriptors.
12683 * dse.c: Update tree_pass descriptors.
12684 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12685 * tree-eh.c: Update tree_pass descriptors.
12686 * regmove.c: Update tree_pass descriptors.
12688 * function.c: Update tree_pass descriptors.
12689 * tree-vectorizer.c: Update tree_pass descriptors.
12690 * gcse.c: Update tree_pass descriptors.
12691 * ipa-type-escape.c: Update tree_pass descriptors.
12692 * tree-if-conv.c: Update tree_pass descriptors.
12693 * init-regs.c: Update tree_pass descriptors.
12694 * ipa.c: Update tree_pass descriptors.
12695 * tree-ssa-phiopt.c: Update tree_pass descriptors.
12696 * rtl-factoring.c: Update tree_pass descriptors.
12697 * lower-subreg.c: Update tree_pass descriptors.
12698 * bt-load.c: Update tree_pass descriptors.
12699 * tree-dfa.c: Update tree_pass descriptors.
12700 * except.c: Update tree_pass descriptors.
12701 * emit-rtl.c: Update tree_pass descriptors.
12702 * cfgexpand.c: Update tree_pass descriptors.
12703 * tree-cfgcleanup.c: Update tree_pass descriptors.
12704 * cfgcleanup.c: Update tree_pass descriptors.
12705 * tree-ssa-pre.c: Update tree_pass descriptors.
12706 * tree-sra.c: Update tree_pass descriptors.
12707 * tree-mudflap.c: Update tree_pass descriptors.
12708 * tree-ssa-copy.c: Update tree_pass descriptors.
12709 * cfglayout.c: Update tree_pass descriptors.
12710 * tree-ssa-forwprop.c: Update tree_pass descriptors.
12711 * tree-ssa-dce.c: Update tree_pass descriptors.
12712 * tree-ssa.c: Update tree_pass descriptors.
12713 * regclass.c: Update tree_pass descriptors.
12714 * integrate.c: Update tree_pass descriptors.
12715 * tree-optimize.c: Update tree_pass descriptors.
12716 * tree-ssa-phiprop.c: Update tree_pass descriptors.
12717 * tree-object-size.c: Update tree_pass descriptors.
12718 * combine.c: Update tree_pass descriptors.
12719 * tree-outof-ssa.c: Update tree_pass descriptors.
12720 * bb-reorder.c: Update tree_pass descriptors.
12721 * stack-ptr-mod.c: Update tree_pass descriptors.
12722 * var-tracking.c: Update tree_pass descriptors.
12723 * tree-profile.c: Update tree_pass descriptors.
12724 * tree-vect-generic.c: Update tree_pass descriptors.
12725 * reg-stack.c: Update tree_pass descriptors.
12726 * sched-rgn.c: Update tree_pass descriptors.
12727 * tree-ssa-structalias.c: Update tree_pass descriptors.
12728 * tree-cfg.c: Update tree_pass descriptors.
12729 * passes.c (current_pass): Update declaration.
12730 (finish_optimization_passes): Update.
12731 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12732 (register_one_dump_file, register_dump_files_1, next_pass_1):
12734 (init_optimization_passes): Update handling of new types.
12735 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12736 * ipa-struct-reorg.c: Update tree_pass descriptors.
12737 * tree-ssa-reassoc.c: Update tree_pass descriptors.
12738 * combine-stack-adj.c: Update tree_pass descriptors.
12739 * cfgrtl.c: Update tree_pass descriptors.
12740 * dce.c: Update tree_pass descriptors.
12741 * tree-ssanames.c: Update tree_pass descriptors.
12743 2008-03-19 Richard Guenther <rguenther@suse.de>
12745 PR middle-end/35609
12746 * tree-ssa.c (walk_data): New structure.
12747 (warn_uninitialized_var): If not always_executed warn with "maybe"
12749 (execute_early_warn_uninitialized): Compute post-dominators.
12750 Initialize always_executed before processing each basic block.
12752 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
12755 * config/i386/i386.c (x86_this_parameter): Calculate correct location
12756 of "this" pointer when "regparm = N" or "fastcall" is in effect.
12758 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12760 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12762 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
12764 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12766 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12767 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12768 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
12769 target after ignore has been set, and move there also the commputation
12770 of subtarget and original_target.
12771 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12772 (LANG_HOOKS_INITIALIZER): Remove it.
12773 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12775 2008-03-18 Richard Guenther <rguenther@suse.de>
12777 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12778 found an expression with constants, note that in the VN for the lhs.
12779 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12780 fold them to constants if possible. Run cleanup_cfg if done so.
12781 (execute_pre): Return todo.
12782 (do_pre): Likewise.
12783 (execute_fre): Likewise.
12784 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12786 (get_prop_source_stmt): Look through pointer conversions.
12788 2008-03-18 Jan Hubicka <jh@suse.cz>
12790 * tree-pretty-print.c: Include predict.h.
12791 (dump_generic_node): Dump predictor.
12792 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12793 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12794 * gimple-low.c (lower_stmt): Likewise.
12795 * expr.c (expand_expr_real): Likewise.
12796 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12798 (build_predict_expr, build_predict_expr): New.
12799 * predict.h (predictor_name, build_predict_expr): Update.
12800 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12801 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12802 * predict.def (PRED_CONTINUE): Update hitrate.
12803 * tree.def (PREDICT_EXPR): Define.
12804 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12805 do not handle BIND_EXPR.
12806 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12807 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12808 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12811 2008-03-18 Michael Matz <matz@suse.de>
12813 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12815 2008-03-18 Richard Guenther <rguenther@suse.de>
12817 * tree-gimple.h (is_gimple_invariant_address): Declare.
12818 (is_gimple_constant): Likewise.
12819 * tree-gimple.c (is_gimple_constant): New function.
12820 (is_gimple_invariant_address): Likewise.
12821 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12822 and is_gimple_invariant_address.
12823 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12825 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12826 an addressable base.
12828 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12830 PR middle-end/35611
12831 * gimplify.c (gimplify_expr): Gimplify second operand of
12834 2008-03-17 Richard Guenther <rguenther@suse.de>
12836 PR tree-optimization/19637
12837 * fold-const.c (fold_unary): Remove restrictions of removing
12838 intermediate pointer-conversions (P2)(P1)P0.
12839 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12840 conversion to void pointer.
12841 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12843 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12846 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12847 emulated thread local variables.
12849 2008-03-16 Richard Guenther <rguenther@suse.de>
12851 PR middle-end/35607
12852 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12853 expand TREE_INVARIANT operations that are not gimple invariant.
12855 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12857 * doc/extend.texi (Alignment): Say that the ABI controls
12858 the __alignof__ for non-strict-alignment targets rather
12859 than being a recommendation.
12861 2008-03-15 Paul Brook <paul@codesourcery.com>
12863 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12865 (arm_output_fn_unwind): Mark functions that can not be unwound.
12867 2008-03-15 Paul Brook <paul@codesourcery.com>
12869 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12870 extension instructions.
12872 2008-03-15 Richard Guenther <rguenther@suse.de>
12874 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12875 and fold constant aggregate refs.
12876 (fold_const_aggregate_ref): Handle string constants
12877 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12878 (evaluate_stmt): Simplify now that ccp_fold folds constant
12881 2008-03-15 Paul Brook <paul@codesourcery.com>
12883 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12884 (extzv): Use gen_extzv_t2.
12885 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12887 2008-03-15 Richard Guenther <rguenther@suse.de>
12889 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12890 (fold_const_aggregate_ref): Likewise.
12891 (get_value): Return NULL if we don't have any values.
12892 (ccp_finalize): Set const_val to NULL after freeing it.
12893 * tree-flow.h (get_symbol_constant_value): Declare.
12894 (fold_const_aggregate_ref): Likewise.
12895 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12897 2008-03-15 Richard Guenther <rguenther@suse.de>
12899 PR middle-end/35593
12900 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12901 to not produce negative array indices if not allowed. Add
12902 parameter to indicate that.
12903 (maybe_fold_offset_to_component_ref): Allow negative array
12904 indices only for the first member of a structure.
12905 (maybe_fold_offset_to_reference): Allow negative array indices.
12906 (maybe_fold_stmt_addition): Likewise.
12908 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12909 Anatoly Sokolov <aesok@post.ru>
12911 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12912 (avr_arch): Add ARCH_AVR6.
12913 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12914 (initial_elimination_offset): Initialize and use 'avr_pc_size'
12915 instead of fixed value 2.
12916 (print_operand_address): Use gs() asm specifier instead of pm().
12917 (avr_assemble_integer): (Ditto.).
12918 (avr_output_addr_vec_elt): (Ditto.).
12919 (print_operand): Handle "!" code.
12920 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12921 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12922 (AVR_HAVE_EIJMP_EICALL): Define.
12923 (AVR_3_BYTE_PC): Redefine.
12924 (AVR_2_BYTE_PC): (Ditto.).
12925 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12926 (LINK_SPEC): Add atmega2560 and atmega2561.
12927 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12929 * config/avr/avr.md (call_insn): Use eicall instead of icall
12930 for 3 byte PC devices.
12931 (call_value_insn): (Ditto.).
12932 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12933 (indirect_jump): Use only for for 2 byte PC devices.
12934 (*tablejump): (Ditto.).
12935 (*indirect_jump_avr6): Add insn.
12936 (*tablejump_rjmp): Don't use for 3 byte PC devices.
12937 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12938 instead of ijmp for 3 byte PC devices.
12939 (__tablejump2__): (Ditto.).
12940 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12941 (MULITLIB_DIRNAMES): (Ditto.).
12942 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12944 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
12946 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12947 "sse2_umulsidi3". Use V1DI mode for operand 0.
12948 ("mmx_psadbw"): Use V1DI mode for operand 0.
12949 * config/i386/i386-modes.def (V1SI): New vector mode.
12950 * config/i386/i386.c (struct builtin_description)
12951 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12952 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12953 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12954 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12955 v1di_ftype_v8qi_v8qi type.
12956 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12958 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12959 __builtin_ia32_pmuludq]: Fix the mode of return value.
12961 2008-03-15 Richard Guenther <rguenther@suse.de>
12963 PR middle-end/35595
12964 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12967 2008-03-14 Bob Wilson <bob.wilson@acm.org>
12969 * doc/invoke.texi (Option Summary, Xtensa Options): Document
12970 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12971 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12972 unless TARGET_SERIALIZE_VOLATILE is enabled.
12973 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12974 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12975 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12977 2008-03-14 Richard Guenther <rguenther@suse.de>
12979 PR tree-optimization/34172
12980 * tree-flow.h (refs_may_alias_p): Declare.
12981 (get_single_def_stmt): Likewise.
12982 (get_single_def_stmt_from_phi): Likewise.
12983 (get_single_def_stmt_with_phi): Likewise.
12984 * tree-dfa.c (refs_may_alias_p): New function.
12985 (get_single_def_stmt): Likewise.
12986 (get_single_def_stmt_from_phi): Likewise.
12987 (get_single_def_stmt_with_phi): Likewise.
12988 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12989 (vn_reference_lookup_1): New helper function.
12990 (vn_reference_lookup): Walk the virtual use-def chain to
12991 continue searching for a match if the def does not alias the
12992 reference we are looking for.
12994 2008-03-14 David Edelsohn <edelsohn@gnu.org>
12996 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
12997 archive and Perzl. Update The Written Word listing.
12999 2008-03-14 Richard Guenther <rguenther@suse.de>
13001 PR tree-optimization/34043
13002 PR tree-optimization/33989
13003 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13005 (bitmap_find_leader): Use extra argument to verify dominance
13006 relationship inside a basic-block.
13007 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13008 (find_leader_in_sets): Adjust.
13009 (create_component_ref_by_pieces): Take extra argument for
13010 dominance check, handle lookup failures.
13011 (find_or_generate_expression): Likewise.
13012 (create_expression_by_pieces): Likewise.
13013 (insert_into_preds_of_block): Adjust.
13014 (create_value_expr_from): If asked for, verify all operands
13015 are in the blocks AVAIL_OUT set.
13016 (make_values_for_stmt): Check for SSA_NAMEs that are life
13017 over an abnormal edge.
13018 (compute_avail): Remove such check.
13019 (do_SCCVN_insertion): New function.
13020 (eliminate): If we do not find a leader suitable for replacement
13021 insert a replacement expression from SCCVN if available.
13022 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13023 (struct vn_ssa_aux): Add needs_insertion flag.
13024 * tree-ssa-sccvn.c (may_insert): New global flag.
13025 (copy_reference_ops_from_ref): Value-number union member access
13026 based on its size, not type and member if insertion is allowed.
13027 (visit_reference_op_load): For a weak match from union type
13028 punning lookup a view-converted value and insert a SSA_NAME
13029 for that value if that is not found.
13030 (visit_use): Make dumps shorter. Do not disallow value numbering
13031 SSA_NAMEs that are life over an abnormal edge to constants.
13032 (free_scc_vn): Release inserted SSA_NAMEs.
13033 (run_scc_vn): New flag to specify whether insertion is allowed.
13034 Process SSA_NAMEs in forward order.
13035 * tree-ssa-loop-im.c (for_each_index): Handle invariant
13036 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13037 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13038 pointer type to/from integral types that do not change the
13039 precision to regular conversions.
13041 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13043 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13044 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13045 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13046 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13047 input arguments and the mode of return value. Built-in functions
13048 that operate on whole 64-bit MMX register now use V1DI mode.
13050 2008-03-13 Alon Dayan <alond@il.ibm.com>
13051 Olga Golovanevsky <olga@il.ibm.com>
13053 PR tree-optimization/35041
13054 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13055 to locate the right position in a statement.
13057 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13061 * config/i386/xmmintrin.h: Change all static inline functions to
13062 extern inline and add __gnu_inline__ attribute.
13063 * config/i386/bmintrin.h: Ditto.
13064 * config/i386/smmintrin.h: Ditto.
13065 * config/i386/tmmintrin.h: Ditto.
13066 * config/i386/mmintrin-common.h: Ditto.
13067 * config/i386/ammintrin.h: Ditto.
13068 * config/i386/emmintrin.h: Ditto.
13069 * config/i386/pmmintrin.h: Ditto.
13070 * config/i386/mmintrin.h: Ditto.
13071 * config/i386/mm3dnow.h: Ditto.
13073 2008-03-13 Jakub Jelinek <jakub@redhat.com>
13075 PR middle-end/35185
13076 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13077 (lower_omp_2): New function.
13078 (lower_omp_1, lower_omp): Rewritten.
13080 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
13083 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13084 with the phrase "Microsoft Windows compilers".
13085 (Push/Pop Macro Pragmas): New subsection. Document
13086 #pragma push_macro and pragma pop_macro.
13088 2008-03-12 Paul Brook <paul@codesourcery.com>
13090 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13092 2008-03-12 Paul Brook <paul@codesourcery.com>
13094 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13095 (thumb2_alusi3_short): Exclude PLUS and MINUS.
13096 (thumb2_addsi_shortim): Rename ...
13097 (thumb2_addsi_short): ... to this. Allow register operands.
13098 (thumb2_subsi_short): New pattern.
13099 (thumb2_one_cmplsi2_short,
13100 thumb2_negsi2_short): New patterns and peepholes.
13102 2008-03-12 Paul Brook <paul@codesourcery.com>
13104 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13106 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
13108 * config/i386/i386.md (int_cond): New code iterator.
13110 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13111 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13112 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13113 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13114 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13115 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13116 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13117 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13119 2008-03-12 Paul Brook <paul@codesourcery.com>
13121 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13122 instead of {arm,thumb}_compute_save_reg_mask.
13123 (output_return_instruction): Ditto.
13124 (thumb_unexpanded_epilogue): Ditto.
13125 (thumb1_expand_prologue): Ditto.
13126 (thumb1_output_function_prologue): Ditto.
13127 (arm_set_return_address): Ditto.
13128 (thumb_set_return_address): Ditto.
13129 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
13130 regs to achieve stack alignment.
13131 (thumb1_compute_save_reg_mask): Fix compiler warning.
13132 (arm_output_epilogue): Use offsets->saved_regs_mask.
13133 Adjust stack pointer by poping call clobered registers.
13134 (arm_expand_prologue): Use offsets->saved_regs_mask.
13135 Adjust stack pointer by pushing extra registers.
13136 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13138 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
13141 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13142 conversion to the operands of a multiplication.
13144 2008-03-12 Richard Guenther <rguenther@suse.de>
13146 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13147 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13148 * timevar.def (TV_TREE_PHIPROP): Add.
13149 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13150 pass description. Use TV_TREE_PHIPROP.
13151 * tree-ssa-forwprop.c: Remove phiprop code.
13153 2008-03-12 Jakub Jelinek <jakub@redhat.com>
13155 PR middle-end/35549
13156 * omp-low.c (maybe_lookup_decl): Constify first argument.
13157 (use_pointer_for_field): Change last argument from bool to
13158 omp_context *. Disallow shared copy-in/out in nested
13159 parallel if decl is shared in outer parallel too.
13160 (build_outer_var_ref, scan_sharing_clauses,
13161 lower_rec_input_clauses, lower_copyprivate_clauses,
13162 lower_send_clauses, lower_send_shared_vars): Adjust callers.
13164 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
13165 Ira Rosen <irar@il.ibm.com>
13167 * tree-vectorizer.c (free_stmt_vec_info): New function.
13168 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13169 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13170 * tree-vectorizer.h (free_stmt_vec_info): Declare.
13171 * tree-vect-transform.c (vectorizable_conversion): Free
13172 vec_oprnds0 if it was allocated.
13173 (vect_permute_store_chain): Remove unused VECs.
13174 (vectorizable_store): Free VECs that are allocated in the..
13176 (vect_transform_strided_load, vectorizable_load): Likewise.
13177 (vect_remove_stores): Simplify the code.
13178 (vect_transform_loop): Move code to vect_remove_stores().
13179 Call vect_remove_stores() and free_stmt_vec_info().
13181 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13183 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13184 TARGET_HPUX. Revise comment.
13185 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13186 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13187 Use sr4 variant of `be' instruction when not generating PIC code.
13188 (attr_length_call): Adjust for above change.
13190 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13192 * ipa-reference.c (static_execute): Remove module_statics_const and
13193 associated setting code.
13195 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13198 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13199 predicate for operand 1.
13200 (paritysi2_cmp): Use register_operand predicate for operand 2.
13201 Use earlyclobber modifier for operand 1. Remove support for
13203 (paritydi2_cmp): Use register_operand predicate for operand 3.
13204 Use earlyclobber modifier for operand 1. Remove support for
13207 2008-03-11 Paul Brook <paul@codesourcery.com>
13208 Vladimir Prus <vladimir@codesourcery.com>
13210 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13211 (arm_compute_save_reg0_reg12_mask): Always
13212 check if register 11 must be saved. Always safe hard frame pointer
13213 when frame_pointer_needeed.
13214 (arm_compute_save_reg_mask): Save IP and PC
13215 only with apcs frames.
13216 (arm_output_epilogue): Adjust Thumb2 codepath to
13217 be also invoked and work for ARM non-apcs frames.
13218 (arm_expand_prologue): Don't bother saving IP
13219 for non-apcs frame, since it's not clobbered by
13220 prologue code. Implement non-apcs frame
13223 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13225 PR rtl-optimization/35281
13226 * expr.c (convert_move): Use a new pseudo for the intermediate
13227 from_mode->word_mode result.
13229 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13231 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13232 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13233 * toplev.c (compile_file): Don't call it.
13235 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13237 PR middle-end/35526
13238 * expr.c (store_expr): Call emit_block_move if the mode
13239 of "temp" RTX is BLKmode.
13241 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13242 Richard Guenther <rguenther@suse.de>
13244 PR tree-optimization/31358
13245 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13246 the step with a NULL_TREE.
13247 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13248 to sizetype if type is a pointer type.
13249 (add_candidate_1): Don't convert the base and step to
13250 the generic type if the orginal type is a pointer type.
13251 (add_iv_value_candidates): Use sizetype for the step
13252 if type is a pointer type.
13253 (cand_value_at): Likewise.
13254 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13256 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13257 Don't convert the tem affine to the type.
13258 (add_elt_to_tree): Use sizetype for the step if a pointer.
13259 Use POINTER_PLUS_EXPR for pointers.
13260 (aff_combination_to_tree): Use sizetype for the step if a
13263 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
13265 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13266 Remove commutativity hint.
13268 2008-03-10 Jakub Jelinek <jakub@redhat.com>
13272 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13273 errorneous type. Check that v is a VAR_DECL.
13275 PR middle-end/35099
13276 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13278 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
13280 PR tree-optimization/35494
13281 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13282 may be overriden at link and run time.
13284 2008-03-10 Richard Guenther <rguenther@suse.de>
13286 PR tree-optimization/34677
13287 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13288 (poolify_tree): Likewise.
13289 (modify_expr_template): Likewise.
13290 (poolify_modify_stmt): Likewise.
13291 (insert_fake_stores): Handle all component-ref style stores
13292 in addition to INDIRECT_REF. Also handle complex types.
13293 Do not poolify the inserted load.
13294 (realify_fake_stores): Do not rebuild the tree but only
13295 make it a SSA_NAME copy.
13296 (init_pre): Remove initialzation of modify_expr_template.
13297 Do not allocate modify_expr_node_pool.
13298 (fini_pre): Do not free modify_expr_node_pool.
13300 2008-03-10 Paul Brook <paul@codesourcery.com>
13302 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13303 to avoid conflicts.
13305 2008-03-10 Paul Brook <paul@codesourcery.com>
13306 Mark Shinwell <shinwell@codesourcery.com>
13308 * config/arm/cortex-r4.md: New.
13309 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13311 * config/arm/arm.md: Include cortex-r4.md.
13312 (insn): Add smmls, sdiv and udiv values.
13313 (generic_sched): Don't use generic scheduling for Cortex-R4.
13314 (arm_issue_rate): New function.
13315 (TARGET_SCHED_ISSUE_RATE): Define.
13317 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
13319 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13321 2008-03-10 Richard Guenther <rguenther@suse.de>
13323 * tree-ssa-pre.c (get_sccvn_value): Simplify.
13324 (compute_avail): Do not add stmt uses to AVAIL_OUT.
13326 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
13328 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13329 Set default to true.
13331 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13333 * c.opt (Wsynth): Deprecate.
13334 * doc/invoke.texi (Option Summary, Warning Options): Document
13335 -Wno-format-contains-nul.
13337 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
13340 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13341 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13343 2008-03-09 Ira Rosen <irar@il.ibm.com>
13345 * config/rs6000/rs6000.c (builtin_description): Rename vector
13346 left shift operations.
13347 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13348 (altivec_vsl<VI_char>): Rename to ...
13349 (ashl<mode>3): ... new name.
13350 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13352 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13354 2008-03-08 Richard Guenther <rguenther@suse.de>
13356 * coverage.h (tree_coverage_counter_addr): Declare.
13357 * coverage.c (tree_coverage_counter_addr): New function.
13358 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13359 before using again.
13360 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13361 (tree_gen_one_value_profiler): Likewise.
13362 (tree_gen_ic_profiler): Likewise.
13363 (tree_gen_average_profiler): Likewise.
13364 (tree_gen_ior_profiler): Likewise.
13366 2008-03-08 Richard Guenther <rguenther@suse.de>
13368 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13369 (vn_binary_op_insert): Likewise.
13370 (vn_unary_op_lookup): Likewise.
13371 (vn_unary_op_insert): Likewise.
13372 (vn_nary_op_lookup): Declare.
13373 (vn_nary_op_insert): Likewise.
13374 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13375 and binary hashes, use a single obstack for unary_op_pool
13376 and binary_op_pool.
13377 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13378 a single struct vn_nary_op_s. Store tree code length and
13379 a variable number of operands.
13380 (struct vn_reference_op_struct): Remove unused op2.
13381 (vn_reference_op_eq): Do not compare op2.
13382 (vn_reference_op_compute_hash): Do not compute hash of op2.
13383 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13384 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13385 with vn_nary_op_compute_hash.
13386 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13387 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13389 (vn_unary_op_insert, vn_binary_op_insert): Replace with
13391 (visit_unary_op): Call nary functions.
13392 (visit_binary_op): Likewise.
13393 (process_scc): Adjust for struct vn_tables_s changes.
13394 (allocate_vn_table): Likewise.
13395 (free_vn_table): Likewise.
13396 * tree-vn.c (vn_add): Call nary functions.
13397 (vn_lookup): Likewise.
13399 2008-03-08 Jakub Jelinek <jakub@redhat.com>
13402 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13403 wdst back after sync_compare_and_swapqhi_internal.
13405 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
13408 * config/i386/i386-modes.def (V1DI): New vector mode.
13409 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13410 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13411 (MMXMODE248): Ditto.
13412 (MMXMODE): Add V1DI mode.
13413 (mmxvecsize): Change DI mode to V1DI mode.
13414 ("mov<mode>): Use MMXMODEI8 mode iterator.
13415 ("*mov<mode>_internal_rex64"): Ditto.
13416 ("*mov<mode>_internal"): Ditto.
13417 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
13418 ("mmx_sub<mode>3"): Ditto.
13419 ("mmx_adddi3"): Remove insn pattern.
13420 ("mmx_subdi3"): Ditto.
13421 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13422 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13423 ("mmx_ashl<mode>3"): Ditto.
13424 ("mmx_lshrdi3"): Remove insn pattern.
13425 ("mmx_ashldi3"): Ditto.
13426 * config/i386/i386.c (classify_argument): Handle V1DImode.
13427 (function_arg_advance_32): Ditto.
13428 (function_arg_32): Ditto.
13429 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13430 mmx_addv1di3 insn pattern.
13431 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13432 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13433 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13434 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13435 Remove definitions of built-in functions.
13436 (V1DI_type_node): New node.
13437 (v1di_ftype_v1di_int): Ditto.
13438 (v1di_ftype_v1di_v1di): Ditto.
13439 (v2si_ftype_v2si_si): Ditto.
13440 (v4hi_ftype_v4hi_di): Remove node.
13441 (v2si_ftype_v2si_di): Ditto.
13442 (ix86_init_mmx_sse_builtins): Handle V1DImode.
13443 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13444 Redefine builtins using def_builtin_const with *_ftype_*_int node.
13445 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13446 Add new builtins using def_builtin_const.
13447 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13448 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13449 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13450 * config/i386/mmintrin.h (__v1di): New typedef.
13451 (_mm_add_si64): Cast arguments to __v1di type.
13452 (_mm_sub_si64): Ditto.
13453 (_mm_sll_pi16): Cast __count to __v4hi type.
13454 (_mm_sll_pi32): Cast __count to __v2si type.
13455 (_mm_sll_si64): Cast arguments to __v1di type.
13456 (_mm_srl_pi16): Cast __count to __v4hi type.
13457 (_mm_srl_pi32): Cast __count to __v2si type.
13458 (_mm_srl_si64): Cast arguments to __v1di type.
13459 (_mm_sra_pi16): Cast __count to __v4hi type.
13460 (_mm_sra_pi32): Cast __count to __v2si type.
13461 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13462 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13463 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13464 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13465 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13466 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13467 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13468 (_mm_srai_pi32): Use __builtin_ia32_psradi.
13469 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13470 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13471 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13472 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13474 2008-03-07 Joseph Myers <joseph@codesourcery.com>
13476 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13478 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
13481 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13482 reg+const addressing for Altivec modes. Don't generate reg+reg
13483 addressing for TFmode or TDmode quantities.
13485 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
13487 * c-common.c (vector_types_convertible_p): Call langhook
13488 instead of comptypes.
13490 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
13493 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13494 integral and scalar float variables which have a
13497 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
13499 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13500 dwarf_register_span hook when emitting unwind information for
13501 register-to-memory saves.
13502 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13503 (rs6000_frame_related): Remove call to spe_synthesize_frame.
13505 2008-03-06 Jakub Jelinek <jakub@redhat.com>
13507 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13508 for the same VAR_DECL.
13510 2008-03-06 Tom Tromey <tromey@redhat.com>
13512 * treelang: Delete.
13513 * doc/standards.texi (Standards): Don't mention treelang.
13514 * doc/invoke.texi (Overall Options): Don't mention treelang.
13515 * doc/install.texi (Prerequisites): Don't mention bison or
13517 (Configuration): Don't mention treelang.
13518 (Building): Likewise.
13519 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13521 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
13523 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13524 word-extractions out of a multi-word object.
13526 2008-03-06 Richard Guenther <rguenther@suse.de>
13528 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13529 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13530 result type and precision.
13531 * expr.c (get_inner_reference): Set unsignedp based on the result
13532 type of BIT_FIELD_REF.
13533 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13534 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13535 (try_instantiate_multiple_fields): Likewise. Use the correct type
13537 (sra_build_assignment): Likewise.
13538 (sra_build_elt_assignment): Likewise.
13539 (sra_explode_bitfield_assignment): Likewise.
13540 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13541 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13542 set BIT_FIELD_REF_UNSIGNED.
13543 (vectorizable_load): Likewise.
13545 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
13547 * cse.c (cse_extended_basic_block): Invalidate artificial defs
13550 2008-03-06 Richard Guenther <rguenther@suse.de>
13552 * alias.c (struct alias_set_entry): Move has_zero_child field
13553 to pack with alias_set.
13555 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13557 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13560 2008-03-05 Ian Lance Taylor <iant@google.com>
13562 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13564 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
13566 * fwprop.c (update_df): Support width and offset parameters of
13568 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13569 global_conflicts): Change DF_REF_EXTRACT to either
13570 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13571 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13572 * df-scan.c (df_ref_record, df_defs_record,
13573 df_ref_create_structure, df_def_record_1, df_uses_record,
13574 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13575 df_bb_refs_collect, df_entry_block_defs_collect,
13576 df_exit_block_uses_collect): Support new width and offset fields.
13577 (ref_extract_pool): New storage pool.
13578 (df_free_ref): New function.
13579 (df_reg_chain_unlink, df_free_collection_rec,
13580 df_sort_and_compress_refs): Call df_free_ref.
13581 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13583 (df_ref_create_structure): Allocate df_ref_extract if offset and
13584 width fields are used.
13585 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13586 (df_uses_record): Get offset and width from ZERO_EXTRACT
13588 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13589 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13590 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13591 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13592 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13593 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13594 (df_ref_extract): New structure.
13595 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13596 (df_ref_create): Add width and offset parameters.
13598 2008-03-05 Richard Guenther <rguenther@suse.de>
13600 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13601 Use ranges_overlap_p.
13602 (offset_overlaps_with_access): Rename
13603 to ranges_overlap_p and move ...
13604 * tree-flow-inline.h (ranges_overlap_p): ... here.
13606 * tree.h (get_inner_reference, handled_component_p): Update
13609 * tree.h (record_component_aliases, get_alias_set,
13610 alias_sets_conflict_p, alias_sets_must_conflict_p,
13611 objects_must_conflict_p): Move declarations ...
13612 * alias.h (record_component_aliases, get_alias_set,
13613 alias_sets_conflict_p, alias_sets_must_conflict_p,
13614 objects_must_conflict_p): ... here.
13615 Include coretypes.h.
13616 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13618 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
13620 * cfg.c: Include tree-flow.h.
13621 (remove_edge_raw): Call redirect_edge_var_map_clear.
13622 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13623 * tree-flow-inline.h (redirect_edge_var_map_def): New.
13624 (redirect_edge_var_map_result): New.
13625 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13626 PENDING_STMT use with redirect_edge_var_map_*.
13627 * tree-ssa.c (edge_var_maps): New definition.
13628 (redirect_edge_var_map_add): New.
13629 (redirect_edge_var_map_clear): New.
13630 (redirect_edge_var_map_dup): New.
13631 (redirect_edge_var_map_vector): New.
13632 (redirect_edge_var_map_destroy): New.
13633 (ssa_redirect_edge): Replace PENDING_STMT use with
13634 redirect_edge_var_map_*.
13635 (flush_pending_stmts): Same.
13636 (delete_tree_ssa): Destroy edge var map.
13637 * tree-flow.h (struct _edge_var_map): New.
13638 Define edge_var_map vector type.
13639 Declare redirect_edge_var_map_* prototypes.
13640 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13641 * tree-cfg.c (reinstall_phi_args): Replace
13642 PENDING_STMT use with redirect_edge_var_map_*.
13644 2008-03-05 Richard Guenther <rguenther@suse.de>
13646 PR tree-optimization/35472
13647 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13648 whose single use_stmt has a overlapping set of loaded and
13649 stored symbols as that use_stmt might be a noop assignment then.
13651 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
13653 * gthr-rtems.h: Implement __gthread_mutex_destroy.
13655 2008-03-05 Richard Guenther <rguenther@suse.de>
13658 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13659 should be constants.
13660 * tree-cfg.c (verify_expr): Verify it.
13661 * fold-const.c (fold_truthop): Remove code generating
13662 BIT_FIELD_REFs of structure bases.
13663 (fold_binary): Likewise.
13664 (fold_ternary): Position and size of BIT_FIELD_REFs are
13665 always host integers.
13666 (make_bit_field_ref): Remove.
13667 (optimize_bit_field_compare): Remove.
13668 (all_ones_mask_p): Remove.
13670 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
13673 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13674 (split_block_and_df_analyze): New. Split basic block and rebuild
13676 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13678 (split_pattern_seq): Likewise.
13679 (erase_matching_seqs): Likewise.
13680 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13682 2008-03-04 Geoff Keating <geoffk@apple.com>
13684 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13685 declaration and code.
13686 (tree_invalid_nonnegative_warnv_p): Likewise.
13688 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
13690 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13691 examples. Truncate option-names then causing overfull hbox.
13693 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13696 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13698 * configure: Rebuilt.
13700 2008-03-04 Rafael Espindola <espindola@google.com>
13702 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13703 (tree_unary_nonnegative_warnv_p): New.
13704 (tree_binary_nonnegative_warnv_p): New.
13705 (tree_single_nonnegative_warnv_p): New.
13706 (tree_invalid_nonnegative_warnv_p): New.
13707 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13709 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13712 * opts.c (handle_option): Postpone 'unknown option' errors only for
13715 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
13718 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13721 2008-03-04 Rafael Espindola <espindola@google.com>
13723 * fold-const.c (tree_unary_nonzero_warnv_p): New.
13724 (tree_binary_nonzero_warnv_p): New.
13725 (tree_single_nonzero_warnv_p): New.
13726 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13728 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
13730 PR middle-end/35456
13731 * fold-const.c (fold_cond_expr_with_comparison): Prevent
13732 transformations for modes that have signed zeros.
13733 * ifcvt.c (noce_try_abs): Ditto.
13735 2008-03-04 Joseph Myers <joseph@codesourcery.com>
13737 * config/i386/i386.c (override_options): Force
13738 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13740 2008-03-04 Jan Hubicka <jh@suse.cz>
13743 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13746 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13748 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
13749 label to probe the stack.
13751 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13753 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13754 (__gthr_win32_mutex_destroy): Declare.
13755 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13756 __gthr_win32_mutex_destroy.
13757 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
13759 2008-03-03 Jan Hubicka <jh@suse.cz>
13762 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13763 aggressive on inlining cold calls.
13765 2008-03-03 Richard Guenther <rguenther@suse.de>
13767 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13768 struct copies into the expression table.
13769 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13770 (try_to_simplify): Likewise.
13771 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13772 integral and pointer arguments which do not change the
13773 precision to NOP_EXPRs.
13774 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13775 VIEW_CONVERT_EXPR case.
13777 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13779 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13780 defined in a loop at depth 0 is invariant.
13781 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13782 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13783 be called at loop depth 0.
13785 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13788 * gcc.c (process_command): Update copyright notice dates.
13789 * gcov.c (print_version): Likewise.
13790 * gcov-dump.c (print_version): Likewise.
13791 * mips-tfile.c (main): Likewise.
13792 * mips-tdump.c (main): Likewise.
13794 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13797 * c-common.c (flag_permissive): Delete.
13798 (constant_expression_warnings): Check flags first.
13799 (constant_expression_error): New.
13800 * c-common.h (flag_permissive): Delete.
13801 (constant_expression_error): Declare.
13802 * flags.h (flag_permissive): Declare. Update description.
13803 * diagnostic.c (pedwarn): Update.
13805 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13806 (permissive_error_kind): New.
13807 * toplev.c (flag_permissive): Define. Update description.
13808 * toplev.h (permissive_error_kind): Declare.
13809 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13810 (pedwarn_c90): Use pedantic_warning_kind.
13811 * c-opts.c (c_common_post_options): flag_permissive does not affect
13812 flag_pedantic_errors.
13814 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13816 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13817 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13818 __absvsi2, __absvDI2): Use unsigned arithmetic.
13820 2008-03-02 Andi Kleen <ak@suse.de>
13821 Richard Guenther <rguenther@suse.de>
13823 * struct-equiv.c: Remove file.
13824 * cfg_cleanup.c (condjump_equiv_p): Remove.
13825 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13826 (struct-equiv.o): Remove rule.
13827 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13828 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13829 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13831 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13833 * ifcvt.c (noce_process_if_block): Try to handle only the then
13834 block if the else block exists but isn't suitable.
13836 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13839 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13840 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13841 regression from previous patch.
13843 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13846 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13848 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13849 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13850 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13851 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13852 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13853 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13854 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13855 (__gthread_mutex_destroy_function): Rename to
13856 __gthread_mutex_destroy.
13857 * gthr-dce.h (__gthread_mutex_destroy): Call
13858 pthread_mutex_destroy.
13859 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13860 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13861 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13863 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13865 * df-scan.c (df_ref_chain_change_bb): Simplify.
13866 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13867 set_block_for_insn if there's any change.
13868 * df.h ((df_insn_change_bb): Fix prototype.
13869 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13870 df_insn_change_bb, don't call set_block_for_insn.
13871 * emit-rtl.c (reorder_insns): Likewise.
13872 * haifa-sched.c (move_insn): Likewise.
13874 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13876 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13878 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13880 * tree-flow-inline.h (next_readonly_imm_use): Return
13881 NULL_USE_OPERAND_P after the end.
13883 2008-03-01 Richard Guenther <rguenther@suse.de>
13885 PR tree-optimization/35411
13886 * tree-sra.c (sra_build_assignment): Split conversion to
13887 final type to a separate statement if we are not assigning
13890 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13892 * fold-const.c (fold_convertible_p): Correct the logic to follow
13893 that in fold_convert().
13895 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13898 * tree-inline.c (build_duplicate_type): When we make a
13899 duplicate type, make it unique in the canonical types system.
13901 2008-02-29 Tom Tromey <tromey@redhat.com>
13903 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13904 input_file_stack_history, input_file_stack_restored): Remove.
13905 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13906 * input.h (struct file_stack): Remove.
13907 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13908 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13910 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13912 (diagnostic_last_module_changed): Add 'map' argument.
13913 (diagnostic_set_last_function): Likewise.
13914 * diagnostic.c (undiagnostic_report_current_module): Iterate using
13915 line map, not input_file_stack.
13916 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13918 2008-02-29 Paul Brook <paul@codesourcery.com>
13920 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13922 2008-02-29 Paul Brook <paul@codesourcery.com>
13924 * config/arm/ieee754-df.S (muldf3): Use RET macros.
13926 2008-02-29 Richard Guenther <rguenther@suse.de>
13928 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13930 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13931 value for comparing for a store match.
13932 (simplify_unary_expression): Do nothing for SSA_NAMEs.
13933 (try_to_simplify): Do not do a full-blown reference lookup.
13935 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13937 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13938 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13940 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13942 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
13944 * tree-loop-linear.c (try_interchange_loops): Compare memory access
13945 strides against cache sizes.
13947 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
13949 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13952 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
13954 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13955 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13956 is smaller than the original promoted value.
13957 (simplify_subreg): If OP is a SUBREG, try to preserve its
13958 SUBREG_PROMOTED_VAR_P information.
13960 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
13962 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13963 (VN_INFO_GET): Allocate new objects on the obstack.
13964 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
13965 for rpo_numbers_temp, for consistency.
13966 (free_scc_vn): Free the obstack.
13968 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
13970 * doc/invoke.texi: Document -ftree-loop-distribution.
13971 * tree-loop-distribution.c: New.
13972 * tree-pass.h (pass_loop_distribution): New.
13973 * graphds.h (struct graph): Add htab_t indices.
13974 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13975 * tree-vectorizer.c (rename_variables_in_loop): Extern.
13976 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13977 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13978 * tree-data-ref.c (debug_data_dependence_relations): New.
13979 (dump_data_dependence_relation): Also print data references.
13980 (free_data_ref): Extern.
13981 (same_access_functions): Moved...
13982 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13983 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13984 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13985 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13986 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13987 (stmts_from_loop): Skip LABEL_EXPR.
13988 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13990 (build_rdg): Initialize rdg->indices htab.
13991 (free_rdg, stores_from_loop, ref_base_address,
13992 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13993 have_similar_memory_accesses_1, ref_base_address_1,
13994 remove_similar_memory_refs): New.
13995 * tree-data-ref.h: Depend on tree-chrec.h.
13996 (debug_data_dependence_relations, free_data_ref): Declared.
13997 (same_access_functions): ... here.
13998 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14000 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14001 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14002 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14003 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14004 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14005 rdg_vertex_for_stmt): Declared.
14006 (struct rdg_edge): Add level.
14008 (free_rdg, stores_from_loop, remove_similar_memory_refs,
14009 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14011 (rdg_has_similar_memory_accesses): New.
14012 * tree-vect-analyze.c: Remove unused static decls.
14013 * lambda.h (dependence_level): New.
14014 * common.opt (ftree-loop-distribution): New.
14015 * tree-flow.h (mark_virtual_ops_in_bb,
14016 slpeel_tree_duplicate_loop_to_edge_cfg,
14017 rename_variables_in_loop): Declared.
14018 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14019 (OBJS-common): Add tree-loop-distribution.o.
14020 (tree-loop-distribution.o): New rule.
14021 * tree-cfg.c (mark_virtual_ops_in_bb): New.
14022 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14023 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14025 2008-02-28 Joseph Myers <joseph@codesourcery.com>
14028 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14029 other than structures and unions.
14031 2008-02-28 Richard Guenther <rguenther@suse.de>
14034 2008-02-26 Richard Guenther <rguenther@suse.de>
14036 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14037 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14038 (lookup_decl_from_uid): Declare.
14039 (remove_decl_from_map): Likewise.
14040 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14041 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14042 (decl_for_uid_map): New global hashtable mapping DECL_UID
14044 (init_ttree): Allocate it.
14045 (insert_decl_to_uid_decl_map): New helper function.
14046 (make_node_stat): Insert new decls into the map.
14047 (copy_node_stat): Likewise.
14048 (lookup_decl_from_uid): New function.
14049 (remove_decl_from_map): Likewise.
14050 (print_decl_for_uid_map_statistics): New helper.
14051 (dump_tree_statistics): Call it.
14053 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14054 (referenced_var_iterator): Adjust.
14055 (FOR_EACH_REFERENCED_VAR): Adjust.
14056 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14057 (num_referenced_vars): Adjust.
14058 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14059 (first_referenced_var): Remove.
14060 (end_referenced_vars_p): Likewise.
14061 (next_referenced_var): Likewise.
14062 (referenced_var_iterator_set): New helper function.
14063 * tree-dfa.c (referenced_var_lookup): Adjust.
14064 (referenced_var_check_and_insert): Likewise.
14065 (remove_referenced_var): Likewise.
14066 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14067 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14068 (verify_call_clobbering): Likewise.
14069 (verify_memory_partitions): Likewise.
14070 (init_tree_ssa): Allocate bitmap instead of hashtable for
14072 (delete_tree_ssa): Adjust.
14073 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14074 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14075 (compute_tag_properties): Likewise.
14076 (set_initial_properties): Likewise.
14077 (find_partition_for): Likewise.
14078 (update_reference_counts): Likewise.
14079 (dump_may_aliases_for): Likewise.
14080 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14081 (add_call_clobber_ops): Likewise.
14082 (add_call_read_ops): Likewise.
14083 (get_asm_expr_operands): Likewise.
14084 * tree-into-ssa.c (dump_decl_set): Likewise.
14085 (update_ssa): Likewise.
14086 * tree-sra.c (scan_function): Likewise.
14087 (decide_instantiations): Likewise.
14088 (scalarize_parms): Likewise.
14089 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14090 (dsa_named_for): Likewise.
14091 * tree-ssa-structalias.c (update_alias_info): Likewise.
14092 (merge_smts_into): Likewise.
14094 2008-02-27 David Daney <ddaney@avtrex.com>
14097 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14098 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14099 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14100 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14101 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14103 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
14106 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14107 (BUILT_IN_NEXTTOWARD): Remove.
14108 (BUILT_IN_NEXTTOWARDF): Ditto.
14109 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14110 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
14112 2008-02-27 Tom Tromey <tromey@redhat.com>
14114 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14115 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14117 2008-02-27 Jan Beulich <jbeulich@novell.com>
14119 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14120 update the respective field on newdecl.
14122 2008-02-27 Revital Eres <eres@il.ibm.com>
14124 PR rtl-optimization/34999
14125 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14126 crossing edges that ends with a call insn.
14127 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14128 call insn and clear the EDGE_CROSSING flag of the crossing edge
14129 when fixing fallthru edges.
14131 2008-02-27 Richard Guenther <rguenther@suse.de>
14133 PR middle-end/35390
14134 * fold-const.c (fold_unary): Return the correct argument,
14135 converted to the result type.
14137 2008-02-27 Richard Guenther <rguenther@suse.de>
14139 PR middle-end/34971
14140 * expr.c (expand_expr_real_1): Assert on rotates that operate
14142 * fold-const.c (fold_binary): Use the types precision, not the
14143 bitsize of the mode if folding rotate expressions. Build rotates
14144 only for full modes.
14146 2008-02-27 Jakub Jelinek <jakub@redhat.com>
14148 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14149 and CPP_PRAGMA_EOL.
14150 * c-pragma.c (pragma_ns_name): New typedef.
14151 (registered_pp_pragmas): New variable.
14152 (c_pp_lookup_pragma): New function.
14153 (c_register_pragma_1): If flag_preprocess_only, do nothing
14154 for non-expanded pragmas, for expanded ones push pragma's
14155 namespace and name into registered_pp_pragmas vector.
14156 (c_invoke_pragma_handler): Register OpenMP pragmas even when
14157 flag_preprocess_only, don't register GCC pch_preprocess
14158 pragma if flag_preprocess_only.
14159 * c-opts.c (c_common_init): Call init_pragma even if
14160 flag_preprocess_only.
14161 * c-pragma.c (c_pp_lookup_pragma): New prototype.
14162 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14163 cpp_register_pragma if flag_preprocess_only.
14165 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14168 * c-parser.c (c_parser_translation_unit): Warn for empty
14169 translation unit, not empty source file.
14171 2008-02-26 Paul Brook <paul@codesourcery.com>
14173 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14174 operand for Thumb-2.
14175 * config/arm/arm.h (reg_class): Add CORE_REGS.
14176 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14177 (BASE_REG_CLASS): Use CORE_REGS.
14178 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14179 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14180 (REGNO_OK_FOR_INDEX_P): Exclude SP.
14181 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
14182 ARM_REGNO_OK_FOR_INDEX_P.
14183 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14184 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14185 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14186 (ldm/stm peepholes): Ditto.
14187 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14188 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14189 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14190 * config/arm/constraints.md: Enable "k" constraint on ARM.
14192 2008-02-27 Ben Elliston <bje@au.ibm.com>
14194 * config/rs6000/rs6000.c: Annotate cache line size field in all
14195 instances of struct processor_costs.
14197 2008-02-26 David Edelsohn <edelsohn@gnu.org>
14199 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14200 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14201 jump_bypass): New counters.
14202 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14203 * dce.c (gate_ud_dce): Same.
14204 (gate_fast_dce): Same.
14205 * dse.c (gate_dse1): New function.
14206 (gate_dse2): New function.
14207 (gate_dse): Merge results of new gate functions.
14208 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14209 (gate_handle_jump_bypass): Add dbg_cnt.
14210 (gate_handle_gcse): Add dbg_cnt.
14211 * ifcvt.c (gate_handle_if_conversion): Same.
14212 (gate_handle_if_after_combine): Same.
14213 (gate_handle_if_after_reload): Same.
14214 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14216 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
14218 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14220 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14222 2008-02-26 Jason Merrill <jason@redhat.com>
14225 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14226 alone if it's the naming decl for the type's main variant.
14228 2008-02-26 Tom Tromey <tromey@redhat.com>
14230 * system.h (USE_MAPPED_LOCATION): Poison.
14231 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14232 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14233 (make_goto_expr_edges): Likewise.
14234 (remove_bb): Likewise.
14235 (execute_warn_function_return): Likewise.
14236 * basic-block.h (struct edge_def) <goto_locus>: Change type to
14238 * c-common.c (fname_decl): Remove old location code.
14239 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14241 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14243 (ASM_INPUT_SOURCE_LOCATION): Likewise.
14244 (gen_rtx_ASM_INPUT): Likewise.
14245 (gen_rtx_ASM_INPUT_loc): Likewise.
14246 (get_rtx_asm_OPERANDS): Remove.
14247 * cfglayout.c (insn_locators_alloc): Remove old location code.
14248 (set_curr_insn_source_location): Likewise.
14249 (curr_insn_locator): Likewise.
14250 * print-tree.c (print_node): Remove old location code.
14251 * tree-mudflap.c (mf_varname_tree): Remove old location code.
14252 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14253 * cfgexpand.c (expand_gimple_cond_expr): Don't use
14254 location_from_locus.
14255 (construct_exit_block): Remove old location code.
14256 * emit-rtl.c (force_next_line_note): Remove old location code.
14257 * profile.c (branch_prob): Remove old location code.
14258 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14259 LOC_LINE): Remove old-location variants.
14260 * langhooks.c (lhd_print_error_function): Remove old location
14262 * configure, config.in: Rebuilt.
14263 * configure.ac (--enable-mapped-location): Remove.
14264 * c-decl.c (c_init_decl_processing): Remove old location code.
14265 (finish_function): Likewise.
14266 * recog.c (decode_asm_operands): Remove old location code.
14267 * c-pch.c (c_common_read_pch): Remove old location code.
14268 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14270 * gimple-low.c (lower_function_body): Remove old location code.
14271 * toplev.c (unknown_location): Remove.
14272 (push_srcloc): Remove old-location variant.
14273 (process_options): Remove old location code.
14274 (lang_dependent_init): Likewise.
14275 * input.h (UNKNOWN_LOCATION): Move definition.
14276 (location_t): Undeprecate.
14277 (source_locus): Remove.
14278 (location_from_locus): Remove.
14279 (struct location_s): Remove.
14280 Remove all old-location code.
14281 (input_line, input_filename): Remove.
14282 * final.c (final_scan_insn): Remove old location code.
14283 * diagnostic.c (diagnostic_build_prefix): Remove
14284 USE_MAPPED_LOCATION test.
14285 * tree.h (gimple_stmt) <locus>: Now a location_t.
14286 (tree_exp) <locus>: Likewise.
14287 (DECL_IS_BUILTIN): Remove old-location variant.
14288 (annotate_with_file_line, annotate_with_locus): Likewise.
14289 (expr_locus, set_expr_locus): Update.
14290 * tree.c (build1_stat): Remove old location code.
14291 (last_annotated_node): Remove.
14292 (annotate_with_file_line): Remove old-location variant.
14293 (annotate_with_locus): Likewise.
14294 (expr_location): Remove old location code.
14295 (set_expr_location): Likewise.
14296 (expr_has_location): Likewise.
14297 (expr_locus): Likewise.
14298 (set_expr_locus): Likewise.
14299 (expr_filename): Don't use location_from_locus.
14300 (expr_lineno): Likewise.
14301 * rtl-error.c (location_for_asm): Remove old location code.
14302 * c-lex.c (cb_line_change): Remove old location code.
14303 (fe_file_change): Likewise.
14304 (cb_def_pragma): Likewise.
14305 (c_lex_with_flags): Likewise.
14306 * gengtype.c (do_typedef): Don't special-case location types.
14307 (define_location_structures): Remove.
14308 (main): Don't call define_location_structures.
14309 * tree-pretty-print.c (dump_implicit_edges): Remove old location
14312 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14315 * builtins.def (BUILT_IN_STDARG_START): Remove.
14316 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14317 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14318 * tree-inline.c (inline_forbidden_p_1): Likewise.
14320 2008-02-26 Richard Guenther <rguenther@suse.de>
14322 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14323 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14324 (lookup_decl_from_uid): Declare.
14325 (remove_decl_from_map): Likewise.
14326 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14327 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14328 (decl_for_uid_map): New global hashtable mapping DECL_UID
14330 (init_ttree): Allocate it.
14331 (insert_decl_to_uid_decl_map): New helper function.
14332 (make_node_stat): Insert new decls into the map.
14333 (copy_node_stat): Likewise.
14334 (lookup_decl_from_uid): New function.
14335 (remove_decl_from_map): Likewise.
14336 (print_decl_for_uid_map_statistics): New helper.
14337 (dump_tree_statistics): Call it.
14339 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14340 (referenced_var_iterator): Adjust.
14341 (FOR_EACH_REFERENCED_VAR): Adjust.
14342 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14343 (num_referenced_vars): Adjust.
14344 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14345 (first_referenced_var): Remove.
14346 (end_referenced_vars_p): Likewise.
14347 (next_referenced_var): Likewise.
14348 (referenced_var_iterator_set): New helper function.
14349 * tree-dfa.c (referenced_var_lookup): Adjust.
14350 (referenced_var_check_and_insert): Likewise.
14351 (remove_referenced_var): Likewise.
14352 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14353 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14354 (verify_call_clobbering): Likewise.
14355 (verify_memory_partitions): Likewise.
14356 (init_tree_ssa): Allocate bitmap instead of hashtable for
14358 (delete_tree_ssa): Adjust.
14359 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14360 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14361 (compute_tag_properties): Likewise.
14362 (set_initial_properties): Likewise.
14363 (find_partition_for): Likewise.
14364 (update_reference_counts): Likewise.
14365 (dump_may_aliases_for): Likewise.
14366 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14367 (add_call_clobber_ops): Likewise.
14368 (add_call_read_ops): Likewise.
14369 (get_asm_expr_operands): Likewise.
14370 * tree-into-ssa.c (dump_decl_set): Likewise.
14371 (update_ssa): Likewise.
14372 * tree-sra.c (scan_function): Likewise.
14373 (decide_instantiations): Likewise.
14374 (scalarize_parms): Likewise.
14375 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14376 (dsa_named_for): Likewise.
14377 * tree-ssa-structalias.c (update_alias_info): Likewise.
14378 (merge_smts_into): Likewise.
14380 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14383 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14384 * c-opts.c (c_common_handle_option): Wall enables
14385 Wvolatile-register-var.
14386 * common.opt: Move Wvolatile-register-var to...
14389 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14391 * common.opt (Wlarger-than=): New.
14392 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14394 * opts.c (common_handle_option): Handle -Wlarger-than=.
14395 * optc-gen.awk: Likewise.
14396 * opth-gen.awk: Likewise.
14397 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14398 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14400 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14402 * c-common.c (match_case_to_enum_1): Add appropriate
14403 OPT_W* parameter to warning.
14404 (c_do_switch_warnings): Likewise.
14405 * c-typeck.c (warning_init): Add one more parameter following
14406 'warning' function.
14407 (push_init_level): Update call to warning_init.
14408 (pop_init_level): Likewise.
14409 (add_pending_init): Likewise.
14410 (output_init_element: Likewise.
14412 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14415 * toplev.c (toplev_main): If there are warnings or error, print
14416 errors for ignored options.
14417 * opts.c (ignored_options): New static variable.
14418 (postpone_unknown_option_error): New.
14419 (print_ignored_options): New.
14420 (handle_option): Postpone errors for unknown -Wno-* options.
14421 * opts.h (print_ignored_options): Declare.
14423 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
14425 * config/mips/mips.md (loadgp_blockage, blockage): Change type
14428 2008-02-25 Richard Guenther <rguenther@suse.de>
14431 2008-02-25 Richard Guenther <rguenther@suse.de>
14433 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14434 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14435 (lookup_decl_from_uid): Declare.
14436 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14437 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14438 (decl_for_uid_map): New global hashtable mapping DECL_UID
14440 (init_ttree): Allocate it.
14441 (insert_decl_to_uid_decl_map): New helper function.
14442 (make_node_stat): Insert new decls into the map.
14443 (copy_node_stat): Likewise.
14444 (lookup_decl_from_uid): New function.
14445 (print_decl_for_uid_map_statistics): New helper.
14446 (dump_tree_statistics): Call it.
14448 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14449 (referenced_var_iterator): Adjust.
14450 (FOR_EACH_REFERENCED_VAR): Adjust.
14451 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14452 (num_referenced_vars): Adjust.
14453 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14454 (first_referenced_var): Remove.
14455 (end_referenced_vars_p): Likewise.
14456 (next_referenced_var): Likewise.
14457 (referenced_var_iterator_set): New helper function.
14458 * tree-dfa.c (referenced_var_lookup): Adjust.
14459 (referenced_var_check_and_insert): Likewise.
14460 (remove_referenced_var): Likewise.
14461 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14462 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14463 (verify_call_clobbering): Likewise.
14464 (verify_memory_partitions): Likewise.
14465 (init_tree_ssa): Allocate bitmap instead of hashtable for
14467 (delete_tree_ssa): Adjust.
14468 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14469 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14470 (compute_tag_properties): Likewise.
14471 (set_initial_properties): Likewise.
14472 (find_partition_for): Likewise.
14473 (update_reference_counts): Likewise.
14474 (dump_may_aliases_for): Likewise.
14475 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14476 (add_call_clobber_ops): Likewise.
14477 (add_call_read_ops): Likewise.
14478 (get_asm_expr_operands): Likewise.
14479 * tree-into-ssa.c (dump_decl_set): Likewise.
14480 (update_ssa): Likewise.
14481 * tree-sra.c (scan_function): Likewise.
14482 (decide_instantiations): Likewise.
14483 (scalarize_parms): Likewise.
14484 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14485 (dsa_named_for): Likewise.
14486 * tree-ssa-structalias.c (update_alias_info): Likewise.
14487 (merge_smts_into): Likewise.
14489 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14492 * doc/invoke.texi (-fcx-limited-range): Document new option.
14493 * toplev.c (process_options): Handle -fcx-fortran-rules.
14494 * common.opt: Add documentation for -fcx-fortran-rules.
14496 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14499 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14500 actual behaviour and C99.
14502 2008-02-26 Ben Elliston <bje@au.ibm.com>
14504 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14505 (ASM_CPU_POWER6_SPEC): Likewise.
14506 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14507 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14508 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14510 2008-02-25 Richard Guenther <rguenther@suse.de>
14512 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14513 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14514 (lookup_decl_from_uid): Declare.
14515 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14516 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14517 (decl_for_uid_map): New global hashtable mapping DECL_UID
14519 (init_ttree): Allocate it.
14520 (insert_decl_to_uid_decl_map): New helper function.
14521 (make_node_stat): Insert new decls into the map.
14522 (copy_node_stat): Likewise.
14523 (lookup_decl_from_uid): New function.
14524 (print_decl_for_uid_map_statistics): New helper.
14525 (dump_tree_statistics): Call it.
14527 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14528 (referenced_var_iterator): Adjust.
14529 (FOR_EACH_REFERENCED_VAR): Adjust.
14530 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14531 (num_referenced_vars): Adjust.
14532 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14533 (first_referenced_var): Remove.
14534 (end_referenced_vars_p): Likewise.
14535 (next_referenced_var): Likewise.
14536 (referenced_var_iterator_set): New helper function.
14537 * tree-dfa.c (referenced_var_lookup): Adjust.
14538 (referenced_var_check_and_insert): Likewise.
14539 (remove_referenced_var): Likewise.
14540 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14541 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14542 (verify_call_clobbering): Likewise.
14543 (verify_memory_partitions): Likewise.
14544 (init_tree_ssa): Allocate bitmap instead of hashtable for
14546 (delete_tree_ssa): Adjust.
14547 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14548 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14549 (compute_tag_properties): Likewise.
14550 (set_initial_properties): Likewise.
14551 (find_partition_for): Likewise.
14552 (update_reference_counts): Likewise.
14553 (dump_may_aliases_for): Likewise.
14554 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14555 (add_call_clobber_ops): Likewise.
14556 (add_call_read_ops): Likewise.
14557 (get_asm_expr_operands): Likewise.
14558 * tree-into-ssa.c (dump_decl_set): Likewise.
14559 (update_ssa): Likewise.
14560 * tree-sra.c (scan_function): Likewise.
14561 (decide_instantiations): Likewise.
14562 (scalarize_parms): Likewise.
14563 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14564 (dsa_named_for): Likewise.
14565 * tree-ssa-structalias.c (update_alias_info): Likewise.
14566 (merge_smts_into): Likewise.
14568 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
14571 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14572 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14573 * alias.h (nonoverlapping_memrefs_p): Likewise.
14575 2008-02-25 Jan Beulich <jbeulich@novell.com>
14577 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14578 * config/i386/netware-libgcc.exp: Add __bswap?i2,
14579 __emultls_get_address, __emultls_register_common,
14580 __floatundi?f, and _Unwind_GetIPInfo.
14581 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14582 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14583 (gen_regparm_prefix): Likewise.
14584 (i386_nlm_encode_section_info): Sync with
14585 config/i386/winnt.c:i386_pe_encode_section_info().
14586 (i386_nlm_maybe_mangle_decl_assembler_name): New.
14587 i386_nlm_mangle_decl_assembler_name): New.
14588 (netware_override_options): New.
14589 * config/i386/netware.h (netware_override_options): Declare.
14590 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14591 (i386_nlm_mangle_decl_assembler_name): Declare.
14592 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14594 2008-02-25 Ben Elliston <bje@au.ibm.com>
14597 * c-decl.c (grokdeclarator): Remove unused local variables
14598 `typedef_type' and `type_as_written'.
14600 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14601 unused local variable `has_hot_blocks'.
14602 (fix_crossing_conditional_branches): Remove unused local variable
14605 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
14607 PR middle-end/19984
14608 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14609 using DEF_C99_BUILTIN.
14610 (BUILT_IN_NANF): Ditto.
14611 (BUILT_IN_NANL): Ditto.
14613 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
14614 Revital Eres <eres@il.ibm.com>
14616 * modulo-sched.c (calculate_must_precede_follow): Address TODO
14617 regarding the order of two dependent insns in the same row.
14619 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
14621 * stor-layout.c (layout_decl): Do not bump the alignment of a
14622 bit-field to more than byte alignment if it is packed.
14624 2008-02-24 David Edelsohn <edelsohn@gnu.org>
14626 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14629 2008-02-24 Diego Novillo <dnovillo@google.com>
14631 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14634 * tree-vrp.c (vrp_evaluate_conditional): With
14635 -Wtype-limits, emit a warning when comparing against a
14636 constant outside the natural range of OP0's type.
14637 * c.opt (Wtype-limits): Move ...
14638 * common.opt (Wtype-limits): ... here.
14640 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
14642 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14643 * config/rs6000/e300c2c3.md: New file.
14644 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14646 (rs6000_override_options): Add e300c2 and e300c3 cases to
14647 processor_target_table. Do not allow usage of Altivec or Spe
14648 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14649 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14650 * config/rs6000/rs6000.h (processor_type): Add
14651 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14652 (ASM_CPU_SPEC): Add e300c2 and e300c3.
14653 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14654 and ppce300c3. Include e300c2c3.md.
14656 2008-02-23 David Edelsohn <edelsohn@gnu.org>
14658 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14659 instead of TARGET_STRICT_ALIGN.
14661 2008-02-23 Joseph Myers <joseph@codesourcery.com>
14663 * explow.c (memory_address): Assert that the generated address is
14666 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14669 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14670 * config/darwin-ppc-ldouble-patch.def: New file.
14671 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14672 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14673 SUBTARGET_INIT_BUILTINS if defined.
14674 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14677 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14680 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14681 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14683 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14686 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14687 file" warning condtional on -Winvalid-PCH.
14689 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
14691 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14693 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
14697 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14698 prevent reload from using MMX registers.
14699 (*mov<mode>_internal): Ditto.
14700 (*movv2sf_internal_rex64): Ditto.
14701 (*movv2sf_internal): Ditto.
14703 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14705 PR documentation/31569
14706 * doc/install.texi2html: Use makeinfo --no-number-sections.
14708 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14710 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14711 ensure that we can address an entire entity > 8 bytes. Don't
14712 generate reg+reg addressing for such data.
14714 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14716 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14717 strings when optimizing for size, unless the target cares about
14720 2008-02-22 Tom Tromey <tromey@redhat.com>
14722 * regclass.c (current_pass): Remove declaration.
14724 2008-02-22 Anatoly Sokolov <aesok@post.ru>
14726 * config/avr/libgcc.S (__RAMPZ__): Define.
14727 (__do_copy_data): Add for devices with 128KB code memory.
14729 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14731 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14733 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14735 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
14737 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14740 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14743 * c-typeck.c (build_binary_op): Warn about floating point
14744 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14746 2008-02-21 Janis Johnson <janis187@us.ibm.com>
14749 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14750 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14752 (rs6000_override_options): Set altivec_abi as default, not override,
14753 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14754 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14755 is used; use new member spe_abi.
14756 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14757 spe_abi and altivec_abi.
14759 2008-02-22 Tomas Bily <tbily@suse.cz>
14761 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14763 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14766 * config.build (build_file_translate): Set to `CMD //c' only if
14768 * Makefile.in (build_file_translate): Improve comment.
14770 2008-02-21 Jan Hubicka <jh@suse.cz>
14772 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14773 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14774 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14776 2008-02-21 Michael Matz <matz@suse.de>
14779 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14781 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14783 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14784 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14785 as insn constraint.
14786 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14787 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14788 SSE_VEC_FLOAT_MODE_P as insn constraint.
14789 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14790 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14791 sse4a_movntdf using MODEF mode iterator.
14792 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14793 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14794 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14795 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14796 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14797 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14798 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14800 2008-02-21 Richard Guenther <rguenther@suse.de>
14802 * tree.def (PAREN_EXPR): New tree code.
14803 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14805 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14806 * expr.c (expand_expr_real_1): Likewise.
14807 * tree-inline.c (estimate_num_insns_1): Likewise.
14808 * tree-complex.c (expand_complex_move): Likewise.
14809 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14812 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14815 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14817 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14820 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14822 * config/sh/sh.c (find_barrier): Don't go past
14823 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14825 2008-02-20 DJ Delorie <dj@redhat.com>
14827 * config/h8300/h8300.md (insv): Force source operand to be a register.
14829 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14830 as a jump, not as a plain insn.
14832 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14834 * doc/invoke.texi (Warning Options): Add new option
14835 -Wframe-larger-than=.
14836 (-Wframe-larger-than): Document.
14838 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14839 Add declarations for new option variables.
14841 * final.c (final_start_function): Check the frame size
14842 before emission and issue a Wframe-larger-than warning.
14844 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14845 Add definitions for new option variables.
14846 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14848 * common.opt (Wframe-larger-than=): New option.
14850 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14852 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14853 (<sse>_div<mode>3): Ditto.
14854 (<sse>_vmdiv<mode>3): Ditto.
14855 (<sse>_vmsqrt<mode>2): Ditto.
14856 (*smax<mode>3): Ditto.
14857 (sse5_frcz<mode>2): Ditto.
14858 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14859 as insn constraint.
14861 2008-02-20 Richard Guenther <rguenther@suse.de>
14863 PR middle-end/35265
14864 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14865 be happy with INTEGRAL_TYPE_P.
14867 2008-02-20 Richard Guenther <rguenther@suse.de>
14869 * fold-const.c (split_tree): Associate floatig-point expressions
14870 if flag_associative_math is set.
14872 2008-02-20 Richard Guenther <rguenther@suse.de>
14874 * tree.h (fold_real_zero_addition_p): Declare.
14875 * fold-const.c (fold_real_zero_addition_p): Export.
14876 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14877 floating-point operations with zero and one.
14879 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14881 * doc/install.texi: Correct references to CFLAGS, replacing them
14882 with BOOT_CFLAGS. Document flags used during bootstrap for
14885 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14887 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14888 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14889 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14891 (smin<mode>3): Ditto from similar patterns.
14892 (smax<mode>3): Ditto.
14893 (*ieee_smin<mode>3): Ditto.
14894 (*ieee_smax<mode>3): Ditto.
14895 * config/i386/sse.md (sse): New mode attribute.
14896 (mov<mode>): Macroize expander from movv4sf and movv2df using
14897 SSEMODEF2P mode iterator.
14898 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14899 SSE_VEC_FLOAT_MODE_P as insn constraint.
14900 (storent<mode>): Ditto.
14901 (storent<mode>): Macroize expander from storentsf and storentdf using
14902 MODEF mode iterator.
14903 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14904 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14905 (abs<mode>2): Ditto from similar patterns.
14906 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14907 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14908 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14909 (<sse>_vmsqrt<mode>2): Ditto.
14910 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14911 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14912 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14913 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14914 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14915 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14916 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14918 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14919 iterator and SSE_FLOAT_MODE_P as insn constraint.
14920 (<sse>_ucomi): Ditto from similar patterns.
14921 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14922 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14923 SSE_VEC_FLOAT_MODE_P as insn constraint.
14924 (vcond<mode>): Ditto from similar patterns.
14925 (and<mode>3, *and<mode>3): Ditto.
14926 (<sse>_nand<mode>3): Ditto.
14927 (ior<mode>3, *ior<mode>3): Ditto.
14928 (xor<mode>3, *xor<mode>3): Ditto.
14929 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14930 iterator and SSE_FLOAT_MODE_P as insn constraint.
14931 (*nand<mode>3): Ditto from similar patterns.
14932 (*ior<mode>3): Ditto.
14933 (*xor<mode>3): Ditto.
14935 2008-02-20 Ira Rosen <irar@il.ibm.com>
14937 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14938 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14939 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14941 2008-02-19 Jan Hubicka <jh@suse.cz>
14943 * predict.c (tree_bb_level_predictions): Remove variable next
14944 mistakely introduced by previous commit.
14946 2008-02-19 Jan Hubicka <jh@suse.cz>
14948 * predict.c (predict_paths_leading_to): Rewrite.
14949 (predict_paths_for_bb): New.
14950 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14952 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14955 * Makefile.in (build_file_translate): New.
14956 (gcc-vers.texi): Use it for translating $(abs_srcdir).
14957 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14958 * configure.ac (build_file_translate): Substitute it.
14959 * configure: Regenerate.
14961 2008-02-19 Jan Hubicka <jh@suse.cz>
14963 PR rtl-optimization/34408
14964 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14967 2008-02-19 Jan Hubicka <jh@suse.cz>
14969 PR middle-end/28779
14970 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14973 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
14976 * config/i386/i386-modes.def: Revert the last DI alignment
14977 change until Ada people can look into it.
14979 2008-02-19 Nick Clifton <nickc@redhat.com>
14981 * opts.c (print_specific_help): Fix typo in --help text.
14983 2008-02-19 Jakub Jelinek <jakub@redhat.com>
14986 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14987 32-bit inline asm without asm alternatives for host GCC < 3.0.
14989 2008-02-19 Richard Guenther <rguenther@suse.de>
14991 PR tree-optimization/34989
14992 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14993 Allow propagation to INDIRECT_REF if we can simplify only.
14995 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14997 * c-common.c (warn_for_collisions_1): Use appropriate option when
15000 2008-02-19 Nick Clifton <nickc@redhat.com>
15003 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15004 (handle_options): Fix indentation.
15005 (print_filtered_help): If no language-specific options were
15006 displayed tell the user how to list all the options supported by
15007 the language's front-end.
15008 (print_specific_help): Fix indentation and remove duplicate line.
15009 (common_handle_option): Handle the -v option.
15010 For --help enable the display of undocumented options if the -v
15011 switch has been included on the command line.
15012 For --help= check for overlaps in the arguments between the option
15013 classes and the language names and issue a warning when they
15014 cannot be disambiguated.
15015 * c.opt (v): Pass on to the common option handler.
15017 2008-02-19 Revital Eres <eres@il.ibm.com>
15019 * modulo-sched.c (sms_schedule): Change dump message when
15020 create_ddg function fails.
15021 (try_scheduling_node_in_cycle): Rename row to cycle.
15022 (print_partial_schedule): Rename CYCLE to ROW.
15024 2008-02-19 Christian Bruel <christian.bruel@st.com>
15025 Zdenek Dvorak <ook@ucw.cz>
15027 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15029 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15032 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15033 (*x86_movdicc_0_m1_se): Ditto.
15035 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15037 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15038 (CMPtype): Define as __gcc_CMPtype.
15039 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15040 (CMPtype): Define as __gcc_CMPtype.
15042 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
15044 Support valgrind 3.3 for --enable-checking=valgrind.
15045 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15047 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15048 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15049 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15050 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15051 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15052 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15053 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15055 * ggc-zone.c: Similar.
15056 * ggc-page.c: Similar.
15058 2008-02-19 Paul Brook <paul@codesourcery.com>
15061 * config/arm/ieee754-df.S: Fix do_it typo.
15062 * config/arm/ieee754-sf.S: Fix do_it typo.
15064 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15067 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15068 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15069 (OPTION_MASK_ISA_SSE_SET): Likewise.
15070 (OPTION_MASK_ISA_SSE2_SET): Likewise.
15071 (OPTION_MASK_ISA_SSE3_SET): Likewise.
15072 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15073 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15074 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15075 (OPTION_MASK_ISA_SSE4_SET): Likewise.
15076 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15077 (OPTION_MASK_ISA_SSE5_SET): Likewise.
15078 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15079 (OPTION_MASK_ISA_MMX_UNSET): Updated.
15080 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15081 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15082 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15083 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15084 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15085 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15086 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15087 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15088 (OPTION_MASK_ISA_SSE4): Removed.
15089 (ix86_handle_option): Turn on bits in ix86_isa_flags and
15090 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15091 (override_options): Don't turn on implied SSE/MMX bits in
15094 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15096 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15099 2008-02-18 Joey Ye <joey.ye@intel.com>
15101 PR middle-end/34921
15102 * tree-nested.c (insert_field_into_struct): Set type alignment
15103 to field alignment if the former is less than the latter.
15105 2008-02-18 Jakub Jelinek <jakub@redhat.com>
15107 * BASE-VER: Set to 4.4.0.
15109 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15111 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15112 * doc/cfg.texi: Likewise.
15113 * doc/extend.texi: Likewise.
15114 * doc/gty.texi: Likewise.
15115 * doc/invoke.texi: Likewise.
15116 * doc/loop.texi: Likewise.
15117 * doc/md.texi: Likewise.
15118 * doc/passes.texi: Likewise.
15119 * doc/rtl.texi: Likewise.
15120 * doc/sourcebuild.texi: Likewise.
15121 * doc/tm.texi: Likewise.
15122 * doc/tree-ssa.texi: Likewise.
15124 2008-02-17 Richard Guenther <rguenther@suse.de>
15126 PR middle-end/35227
15127 * tree-complex.c (init_parameter_lattice_values): Handle parameters
15128 without default definition.
15130 2008-02-17 Richard Guenther <rguenther@suse.de>
15132 PR tree-optimization/35231
15133 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15136 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
15139 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15140 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15141 libgcc_cmp_return mode.
15143 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15146 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15148 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
15150 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15153 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15155 * doc/c-tree.texi: Use `@.' where appropriate.
15156 * doc/extend.texi: Likewise.
15157 * doc/install.texi: Likewise.
15158 * doc/invoke.texi: Likewise.
15159 * doc/loop.texi: Likewise.
15160 * doc/makefile.texi: Likewise.
15161 * doc/md.texi: Likewise.
15162 * doc/passes.texi: Likewise.
15163 * doc/standards.texi: Likewise.
15164 * doc/tm.texi: Likewise.
15166 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15168 PR middle-end/35196
15169 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15171 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15172 rather than in entry_bb.
15174 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15176 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15177 libgcc_cmp_return mode.
15179 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15181 PR middle-end/35130
15182 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15183 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15185 2008-02-15 Richard Guenther <rguenther@suse.de>
15186 Zdenek Dvorak <ook@ucw.cz>
15188 PR tree-optimization/35164
15189 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15190 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15191 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15192 Only propagate addresses which do not have abnormal SSA_NAMEs
15195 2008-02-15 Joseph Myers <joseph@codesourcery.com>
15198 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15200 2008-02-15 Jan Hubicka <jh@suse.cz>
15202 PR middle-end/35149
15203 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15205 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15207 PR middle-end/34621
15208 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15209 when calculating alignment_pad.
15211 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15213 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15214 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15215 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15216 and STACK_BOUNDARY define.
15218 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
15220 PR preprocessor/35061
15221 * c-pragma.c (handle_pragma_pop_macro): Check that
15222 pushed_macro_table has been allocated.
15224 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
15226 PR middle-end/35136
15227 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15228 (force_gimple_operand): Likewise.
15229 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15230 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15231 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15232 (find_interesting_uses_address): Check addressability and alignment
15233 of the base expression only after substituting bases of IVs into it.
15235 2008-02-14 Michael Matz <matz@suse.de>
15238 * function.c (instantiate_virtual_regs_in_insn): Reload address
15239 before falling back to reloading the whole operand.
15241 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
15243 * config/s390/s390.c (s390_mainpool_start): Emit the pool
15244 before the first section switch note.
15246 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15248 * doc/bugreport.texi: Update copyright years.
15249 * doc/c-tree.texi: Likewise.
15250 * doc/cfg.texi: Likewise.
15251 * doc/cpp.texi: Likewise.
15252 * doc/cppinternals.texi: Likewise.
15253 * doc/fragments.texi: Likewise.
15254 * doc/frontends.texi: Likewise.
15255 * doc/gcc.texi: Likewise.
15256 * doc/gty.texi: Likewise.
15257 * doc/hostconfig.texi: Likewise.
15258 * doc/implement-c.texi: Likewise.
15259 * doc/libgcc.texi: Likewise.
15260 * doc/loop.texi: Likewise.
15261 * doc/makefile.texi: Likewise.
15262 * doc/options.texi: Likewise.
15263 * doc/passes.texi: Likewise.
15264 * doc/rtl.texi: Likewise.
15265 * doc/sourcebuild.texi: Likewise.
15266 * doc/standards.texi: Likewise.
15267 * doc/tree-ssa.texi: Likewise.
15268 * doc/trouble.texi: Likewise.
15270 * doc/extend.texi: Use @: or add comma where appropriate.
15271 * doc/invoke.texi: Likewise.
15272 * doc/tm.texi: Likewise.
15274 2008-02-14 Alan Modra <amodra@bigpond.net.au>
15277 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15280 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
15282 * doc/md.texi (clz, ctz): Add reference.
15283 * doc/rtl.texi (clz, ctz): Likewise.
15285 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15288 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15291 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
15293 * config/s390/s390.c (struct constant_pool): New field
15294 emit_pool_after added.
15295 (s390_mainpool_start): Set the emit_pool_after flag according
15296 to the section switch notes.
15297 (s390_mainpool_finish): Consider emit_pool_after when emitting
15298 the literal pool at the end of the function.
15299 (s390_chunkify_start): Force literal pool splits at section
15302 2008-02-13 Michael Matz <matz@suse.de>
15305 * var-tracking.c (clobber_variable_part): Correctly traverse the
15308 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15311 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15312 Add -fdump-ipa-inline.
15313 * tree-dump.c (dump_files): Remove tree-inlined dump.
15314 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15316 2008-02-12 Richard Guenther <rguenther@suse.de>
15318 PR tree-optimization/35171
15319 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15322 2008-02-12 Richard Guenther <rguenther@suse.de>
15324 PR middle-end/35163
15325 * fold-const.c (fold_widened_comparison): Use get_unwidened in
15326 value-preserving mode. Disallow final truncation.
15328 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
15330 PR middle-end/35136
15331 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15332 code from here to...
15333 (force_gimple_operand): ...here.
15335 2008-02-12 Jakub Jelinek <jakub@redhat.com>
15338 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15339 non-compatible pointers.
15340 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15341 different FIELD_DECLs, try harder by comparing field offsets, sizes
15344 PR inline-asm/35160
15345 * function.c (match_asm_constraints_1): Don't replace the same input
15348 2008-02-12 Anatoly Sokolov <aesok@post.ru>
15350 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15351 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15352 (expand_epilogue): Restore RAMPZ register.
15353 * config/avr/avr.md (RAMPZ_ADDR): New constant.
15355 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
15357 * config/i386/cygwin.asm: (__alloca): Correct calling
15358 convention and alignment.
15359 (__chkstk): Force 8 byte stack alignment.
15361 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
15362 Richard Guenther <rguenther@suse.de>
15364 PR tree-optimization/33992
15365 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15366 the zero we compare against.
15368 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
15370 PR libfortran/35063
15371 * gthr-win32.h (__gthread_mutex_destroy_function): New function
15372 to CloseHandle after unlocking to prevent accumulation of handle
15375 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15377 PR middle_end/34150
15378 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15379 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
15380 and update LABEL_NUSES during and after reload.
15382 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
15384 PR middle-end/34627
15385 * combine.c (simplify_if_then_else): Make sure the comparison is
15386 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15388 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
15391 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15392 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15393 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15394 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15395 * tree.h (get_type_static_bounds): Likewise.
15397 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15399 * doc/invoke.texi (Option Summary, C++ Dialect Options)
15400 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15401 Make -Wfoo language annotations match what the compiler outputs.
15403 2008-02-08 Sa Liu <saliu@de.ibm.com>
15405 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15406 intrinsics spu_convts, spu_convtu, spu_convtf.
15408 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
15410 * doc/extend.texi (Function Attributes) <noinline>: Mention
15411 asm ("") as method to keep calls.
15413 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15416 * doc/options.texi (Options): Replace references to opts.sh with
15418 * opts-common.c: Likewise.
15419 * optc-gen.awk: Likewise.
15421 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15423 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15425 2008-02-07 Richard Henderson <rth@redhat.com>
15428 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15429 EXPR_LIST for the REG_EQUAL instead of a comparison with a
15432 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
15434 PR tree-optimization/35085
15435 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15436 for operand entry oe2 in addition to operand entry oe3 in order to
15437 expose more opportunities for vectorizer sum reduction.
15439 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15442 * Makefile.in (LIBS): Remove $(GMPLIBS).
15443 (cc1-dummy, cc1): Add $(GMPLIBS).
15445 2008-02-06 Jan Hubicka <jh@suse.cz>
15448 * i386.md (moddf_integer): Do not produce partial memory stalls for
15449 targets where it hurts.
15451 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
15454 * optabs.c (expand_float): Do not check for decimal modes when
15455 expanding unsigned integer through signed conversion.
15457 2008-02-06 Nick Clifton <nickc@redhat.com>
15459 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15460 inside the clobber with a match_operand and duplicated operand
15461 number in the constraint.
15462 (ineqbranchsi): Delete redundant comment.
15464 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
15466 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15467 builtin_define ("__USE_INIT_FINI__").
15468 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15470 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15472 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15474 PR documentation/30330
15475 * doc/invoke.texi (C++ Dialect Options)
15476 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15477 For each warning option -Wfoo that allows -Wno-foo, ensure both
15478 -Wfoo and -Wno-foo are listed in the option index. Fix index
15479 entry of -Wswitch-default, index -Wnormalized= including the
15480 `=', and -Wlarger-than-@var{len} including @var{len}.
15482 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15484 * config/i386/i386.md (floatunssisf2): Use
15485 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15486 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15487 Macroize expander using MODEF mode iterator.
15489 2008-02-05 Diego Novillo <dnovillo@google.com>
15491 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15494 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15496 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15499 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15501 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
15504 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15505 to indicate if a message should be generated.
15506 (init_cumulative_args): Updated.
15507 (function_value_32): Likewise.
15509 2008-02-05 Joseph Myers <joseph@codesourcery.com>
15511 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15513 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15516 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15517 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15519 2008-02-04 Diego Novillo <dnovillo@google.com>
15521 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15524 * tree-vrp.c (vrp_evaluate_conditional): With
15525 -Wtype-limits, emit a warning when comparing against a
15526 constant outside the natural range of OP0's type.
15528 2008-02-04 Richard Guenther <rguenther@suse.de>
15530 PR middle-end/33631
15531 * expr.c (count_type_elements): Give for unions instead of
15534 2008-02-04 Richard Guenther <rguenther@suse.de>
15536 PR middle-end/35043
15537 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15538 to TYPE_DOMAINs base type instead of using bitsizetype here.
15540 2008-02-03 Jason Merrill <jason@redhat.com>
15542 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15544 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15547 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15548 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15549 (RS/6000 and PowerPC Options): Fix typos and markup.
15550 * doc/passes.texi (Tree-SSA passes): Likewise.
15552 2008-02-02 Michael Matz <matz@suse.de>
15555 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15556 from record_last_reg_set_info.
15557 (record_last_reg_set_info): Take an RTX argument, iterate over all
15558 constituent hardregs.
15559 (record_last_set_info, record_opr_changes): Change calls to
15560 new signature or to record_last_reg_set_info_regno.
15562 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15564 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15566 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
15568 PR rtl-optimization/34773
15569 * reg-notes.def (EQUAL): Mention significance of combination of
15570 REG_EQUAL and REG_RETVAL.
15571 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15572 insn that has a REG_RETVAL.
15574 2008-02-01 Roger Sayle <roger@eyesopen.com>
15577 * configure.ac (--enable-fixed-point): Disable unless explicitly
15579 * configure: Regenerate.
15581 2008-02-01 Richard Guenther <rguenther@suse.de>
15584 * invoke.texi (-finline-limit): Remove no longer true parts
15585 of the documentation. Note that there is no default value.
15587 2008-02-01 Andrew Pinski <pinskia@gmail.com>
15588 Mark Mitchell <mark@codesourcery.com>
15589 Ben Elliston <bje@au.ibm.com>
15592 * doc/extend.texi (Other Builtins): Document.
15594 2008-01-31 Tom Browder <tom.browder@gmail.com>
15596 * doc/c-tree.texi (Types): Fix grammar.
15597 (Expression trees): Ditto.
15598 * doc/passes.texi (Tree-SSA passes): Ditto.
15600 * doc/configterms.texi (Configure Terms): Fix typo.
15601 * doc/cpp.texi (Common Predefined Macros): Ditto.
15602 * doc/md.texi (Machine Constraints): Ditto.
15604 * doc/makefile.texi (Makefile): Add comma.
15606 2008-01-31 Tom Browder <tom.browder@gmail.com>
15607 Gerald Pfeifer <gerald@pfeifer.com>
15609 * doc/sourcebuild.texi (Front End): Remove references to CVS
15610 and CVSROOT/modules.
15611 (Texinfo Manuals): Replace reference to CVS by one to SVN.
15612 (Back End): Remove reference to CVS.
15614 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15617 * config/mips/mips.c (gen_load_const_gp): New function, taking a
15619 (mips16_gp_pseudo_reg): ...here.
15620 * config/mips/mips.md (load_const_gp): Replace with...
15621 (load_const_gp_<mode>): ...this :P-based insn.
15623 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15625 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15626 options. Minor fixes.
15627 (-std): Move reference to standards closer to where language
15628 standards are first mentioned.
15630 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15632 PR rtl-optimization/34995
15633 * reload.c (alternative_allows_const_pool_ref): Take an rtx
15634 parameter and return a bool. If the rtx parameter is nonnull,
15635 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15636 (find_reloads): Update call accordingly. Pass the new operand
15637 if it needed no address reloads, otherwise pass null.
15639 2008-01-30 Richard Henderson <rth@redhat.com>
15642 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15643 for unbounded arrays.
15645 2008-01-30 Silvius Rus <rus@google.com>
15647 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15649 2008-01-30 Jan Hubicka <jh@suse.cz>
15652 * i386.c (init_cumulative_args): Use real function declaration when
15655 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
15657 PR rtl-optimization/34998
15658 * global.c (build_insn_chain): Treat non-subreg_lowpart
15659 SUBREGs of pseudos as clobbering all the words covered by the
15660 SUBREG, not just all the bytes.
15661 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
15662 original df_ref rather than an extract parameter.
15663 (global_conflicts): Update call accordingly.
15665 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
15667 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15668 the overflow check to make it easier to read.
15669 (__fixtfdi): Change the type of the ll member in union
15670 long_double to UDItype_x.
15672 2008-01-30 Jakub Jelinek <jakub@redhat.com>
15674 PR middle-end/34969
15675 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15676 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15677 * tree-inline.c (fold_marked_statements): Call
15678 cgraph_update_edges_for_call_stmt if folding a call statement.
15679 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15680 debug_generic_stmt calls, reset it back afterwards.
15683 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15685 * c-typeck.c (build_external_ref): Don't pedwarn about
15686 static vars in current function's scope.
15688 2008-01-29 Joseph Myers <joseph@codesourcery.com>
15690 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15692 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
15695 * ipa-struct-reorg.c: Fix spelling.
15696 * params.def: Ditto.
15698 2008-01-29 Richard Guenther <rguenther@suse.de>
15700 PR middle-end/35006
15701 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15703 * tree-inline.c (remap_type): Increment remapping_type_depth
15704 around remapping types.
15705 (copy_body_r): Only add referenced variables if they are referenced
15706 from code, not types.
15708 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
15719 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15720 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15722 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
15725 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15726 pointer for tiny stack.
15728 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15730 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15732 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15734 * config/vx-common.h: Fix typo in comment.
15736 2008-01-28 Ian Lance Taylor <iant@google.com>
15740 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15741 coalesce pointers if they have different DECL_NO_TBAA_P values.
15742 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15743 between variables with different DECL_NO_TBAA_P values.
15745 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
15748 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15749 are not legitimate small data references on SPE targets.
15751 2008-01-28 David Daney <ddaney@avtrex.com>
15753 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15755 2008-01-28 David Daney <ddaney@avtrex.com>
15757 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
15759 2008-01-27 Joseph Myers <joseph@codesourcery.com>
15761 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15762 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15763 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15764 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15765 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15766 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15767 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15768 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15770 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15772 * basic-block.h (condjump_equiv_p): Fix comment.
15774 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15776 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15777 print_generic_stmt_indented): Fix comment.
15779 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15781 * configure.ac (__stack_chk_fail): Add detecion for availability
15782 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15783 * configure: Regenerate.
15785 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15787 PR middle-end/34688
15788 * final.c (output_addr_const): Handle TRUNCATE.
15790 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15793 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15794 (zero_cost, infinite_cost): New constants.
15795 (struct cost_pair): Change type of cost to comp_cost.
15796 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15797 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15799 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15800 split_address_cost, ptr_difference_cost, difference_cost,
15801 get_computation_cost_at, get_computation_cost,
15802 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15803 determine_use_iv_cost_condition, determine_use_iv_costs,
15804 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15805 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15806 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15807 Change type of cost to comp_cost.
15808 (determine_iv_cost): Increase cost of non-original ivs, instead
15809 of decreasing the cost of original ones.
15810 (get_address_cost): Indicate the complexity of the addressing mode
15812 (try_add_cand_for): Prefer using ivs not specific to some object.
15813 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15815 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15816 Janis Johnson <janis187@us.ibm.com>
15819 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15820 (TARGET_INSTANTIATE_DECLS): Likewise.
15821 * target.h (expand_to_rtl_hook): New target hook.
15822 (instantiate_decls): Likewise.
15823 * function.c (instantiate_decl): Make non-static. Rename to...
15824 (instantiate_decl_rtl): ... this.
15825 (instantiate_expr): Use instantiate_decl_rtl.
15826 (instantiate_decls_1): Likewise.
15827 (instantiate_decls): Likewise.
15828 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15829 * function.h (instantiate_decl_rtl): Add prototype.
15830 * cfgexpand.c (target.h): New include.
15831 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15832 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15833 (TARGET_INSTANTIATE_DECLS): Likewise.
15834 (TARGET_INITIALIZER): New target hooks added.
15835 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15837 * config/rs6000/rs6000.c (tree-flow.h): New include.
15838 (machine_function): Add sdmode_stack_slot field.
15839 (rs6000_alloc_sdmode_stack_slot): New function.
15840 (rs6000_instantiate_decls): Likewise.
15841 (rs6000_secondary_memory_needed_rtx): Likewise.
15842 (rs6000_check_sdmode): Likewise.
15843 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15844 (TARGET_INSTANTIATE_DECLS): Likewise.
15845 (rs6000_hard_regno_mode_ok): Allow SDmode.
15846 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15847 (rs6000_emit_move): Handle SDmode.
15848 (function_arg_advance): Likewise.
15849 (function_arg): Likewise.
15850 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15851 SDmode var args for 32-bit compiles.
15852 (rs6000_secondary_reload_class): Handle SDmode.
15853 (rs6000_output_function_epilogue): Likewise.
15854 (rs6000_function_value): Simplify if statement.
15855 (rs6000_libcall_value): Likewise.
15856 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15857 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15858 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15859 (movsd_hardfloat): New define_insn.
15860 (movsd_softfloat): Likewise.
15861 (movsd_store): Likewise.
15862 (movsd_load): Likewise.
15863 (extendsddd2): Likewise.
15864 (extendsdtd2): Likewise.
15865 (truncddsd2): Likewise.
15866 (movdd_hardfloat64): Fixup comment.
15867 (UNSPEC_MOVSD_LOAD): New constant.
15868 (UNSPEC_MOVSD_STORE): Likewise.
15870 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15873 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15875 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15876 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15877 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15878 and TRUTH_XOR_EXPR.
15880 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15883 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15884 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15885 __LONGDOUBLE128 too.
15886 * config/rs6000/aix61.h: New file.
15888 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15890 PR rtl-optimization/34959
15891 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15892 popcount and parity rtxes the same mode as their operand.
15893 Truncate or extend the result to the return value's mode
15896 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15899 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15900 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15901 to GOT_VERSION_REGNUM.
15902 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15903 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15904 * config/mips/mips.c (mips_emit_call_insn): New function.
15905 (mips_call_tls_get_addr): Call mips_expand_call directly.
15906 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15908 (mips16_build_call_stub): Likewise. Return the call insn or null.
15909 (mips_expand_call): Update the call to mips16_build_call_stub
15910 accordingly and a remove redundant condition. Assert that MIPS16
15911 stubs do not use lazy binding. Use mips_emit_call_insn and return
15913 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15915 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15916 (mips_avoid_hazard): Remove hazard_set handling.
15917 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15918 (UNSPEC_RESTORE_GP): ...this.
15919 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15920 (FAKE_CALL_REGNO): Rename to...
15921 (GOT_VERSION_REGNUM): ...this.
15922 (type): Add "ghost" value. Add an associated insn reservation.
15923 (hazard_set): Remove.
15924 (exception_receiver): Rename to...
15925 (restore_gp): ...this and update the unspec identifier accordingly.
15926 (exception_receiver, nonlocal_got_receiver): New expanders.
15927 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
15928 FAKE_CALL_REGNO. Remove hazard_set attribute.
15929 (set_got_version, update_got_version): New patterns.
15931 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
15934 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15936 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15939 * doc/install.texi2html: Generate gcc-vers.texi.
15941 2008-01-25 DJ Delorie <dj@redhat.com>
15943 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15945 2008-01-25 Joseph Myers <joseph@codesourcery.com>
15947 * config/c4x: Remove directory.
15948 * config.gcc (crx-*, mt-*): Mark obsolete.
15949 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15950 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15951 sh-*-rtemscoff*): Remove cases.
15952 * defaults.h (C4X_FLOAT_FORMAT): Remove.
15953 * real.c (encode_c4x_single, decode_c4x_single,
15954 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15955 c4x_extended_format): Remove.
15956 * real.h (c4x_single_format, c4x_extended_format): Remove.
15957 * doc/extend.texi (interrupt, naked): Remove mention of attributes
15959 (Pragmas): Remove comment about c4x pragmas.
15960 * doc/install.texi (c4x): Remove target-specific instructions.
15961 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15962 * doc/md.texi (Machine Constraints): Remove C4x documentation.
15963 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15964 refer to C4x source files as examples.
15965 (C4X_FLOAT_FORMAT): Remove documentation.
15967 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
15969 * config/bfin/bfin.c (override_options): Reorder tests so that
15970 flag_pic gets enabled for -msep-data.
15972 2008-01-25 Richard Guenther <rguenther@suse.de>
15974 PR middle-end/32244
15975 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15976 to its bitfield precision if required.
15978 2008-01-25 Jakub Jelinek <jakub@redhat.com>
15980 PR middle-end/33880
15981 * tree-nested.c (walk_omp_for): New function.
15982 (convert_nonlocal_reference, convert_local_reference): Call
15983 walk_omp_for on OMP_FOR.
15984 (convert_call_expr): Call walk_body on OMP_FOR's
15985 OMP_FOR_PRE_INIT_BODY.
15987 2008-01-25 Richard Guenther <rguenther@suse.de>
15989 PR tree-optimization/34966
15990 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15991 default defs and PHI_NODEs we have to insert after the
15992 defining statement.
15994 2008-01-24 Nick Clifton <nickc@redhat.com>
15996 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15997 Provide a default definition.
15998 (LIBGCC2_UNITS_PER_WORD): Likewise.
16000 * config/stormy16/stormy16.c: Include df.h for the prototype
16001 for df_regs_ever_live_p.
16002 (xstormy16_expand_builtin_va_start): Convert the stack offset
16003 into a component_ref and then use POINTER_PLUS_EXPR to add it
16004 to the incoming_virtual_args_rtx.
16005 (xstormy16_gimplify_va_arg_expr): Rename to
16006 xstormy16_gimplify_va_arg_expr.
16007 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16008 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16009 xstormy16_gimplify_va_arg_expr.
16010 Fix up some formatting issues.
16012 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16013 Move to predicates.md.
16014 (xs_hi_general_operand): Likewise.
16015 (xs_hi_nonmemory_operand): Likewise.
16016 * config/stormy16/predicates.md:
16017 (xstormy16_carry_plus_operand): New predicate.
16018 (xs_hi_general_operand): New predicate.
16019 (xs_hi_nonmemory_operand): New predicate.
16020 * config/stormy16/stormy16-protos.h:
16021 (xstormy16_carry_plus_operand): Delete prototype.
16022 (xs_hi_general_operand): Likewise.
16023 (xs_hi_nonmemory_operand): Likewise.
16025 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16026 modifiers as they are no longer needed and they can trigger
16027 reload spill failures.
16029 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16030 with a match_operand in order to help reload.
16032 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16033 constraint with 'e' for the 8th alternative as this version of
16034 the mov.w instruction only accepts the lower 8 registers.
16036 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
16039 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16040 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16043 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16045 PR middle-end/33333
16046 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16048 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16050 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16052 (remove_structure): Update allocations list before removing structure.
16054 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16056 * ipa-struct-reorg.c (is_safe_cond_expr,
16057 create_new_stmts_for_cond_expr): Use integer_zerop function,
16058 that recognize not only zero-pointer, but zero-integer too.
16060 2008-01-25 Ben Elliston <bje@au.ibm.com>
16063 * fixproto: Escape "." in sed expression that strips leading "./".
16065 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
16068 * gcc.c (SWITCH_OK): Removed.
16069 (SWITCH_LIVE): Changed to bit.
16070 (SWITCH_FALSE): Likewise.
16071 (SWITCH_IGNORE): Likewise.
16072 (switchstr): Change live_cond to unsigned int.
16073 (process_command): Replace SWITCH_OK with 0.
16074 (do_self_spec): Likewise.
16075 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16076 (give_switch): Likewise.
16077 (used_arg): Likewise.
16078 (do_spec_1): Set the SWITCH_IGNORE bit.
16079 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16080 bits. Set the SWITCH_LIVE bit.
16082 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
16084 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16086 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
16088 PR tree-optimization/34472
16089 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16090 parameter to a "bool *" and set *DATA to false if there is
16091 an unsafe access. Do not delete the structure here.
16092 (check_cond_exprs): Delete it here instead.
16093 (check_cond_exprs, exclude_cold_structs): Do not increase
16094 I when removing a structure.
16096 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
16099 * config/i386/i386.c (ix86_expand_vector_init): Consider only
16100 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16102 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
16104 PR middle-end/34934
16105 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16106 a fixed vector for stack.
16108 2008-01-24 Ben Elliston <bje@au.ibm.com>
16111 * doc/gcc.texi (Software development): Add a direntry for g++.
16113 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
16115 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16116 stale and straggling -fforce-addr comments above.
16118 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16120 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16121 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16123 2008-01-23 Michael Matz <matz@suse.de>
16126 * dwarf2out.c (force_type_die): Use modified_type_die instead of
16129 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
16131 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16132 malloc result type.
16134 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16136 * config/avr/avr.c (avr_current_arch): New variable.
16137 (avr_arch_types): Add 'avr31' and 'avr51' entries.
16138 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16139 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16140 (avr_override_options): Init 'avr_current_arch'.
16141 (base_arch_s): Move from here...
16142 * config/avr/avr.h (base_arch_s): ... here. Add new members
16143 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16144 'mega' to 'have_jmp_call'.
16145 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16146 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
16148 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16150 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16151 MULTILIB_MATCHES): (Ditto.).
16153 2008-01-23 Richard Guenther <rguenther@suse.de>
16155 PR middle-end/31529
16156 * cgraphunit.c (cgraph_reset_node): Always mark the node
16157 not reachable if it is not queued already.
16159 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
16161 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16162 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16163 (cputype_selected): New static variable.
16164 (bfin_handle_option): Set it if -mcpu is used.
16165 (override_option): Select default set of workarounds if no cpu type
16166 selected on the command line.
16167 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16169 From Michael Frysinger <michael.frysinger@analog.com>
16170 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16171 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16173 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16174 for bf547, bf523, bf524, and bf526.
16175 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
16177 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16178 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16179 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16180 __ADSPBF547__ and __ADSPBF54x__ for bf547.
16181 * doc/invoke.texi (Blackfin Options): Document that
16182 -mcpu now accept bf547, bf523, bf524, and bf526.
16184 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
16186 PR rtl-optimization/34628
16187 * combine.c (try_combine): Stop and undo after the first combination
16188 if an autoincrement side-effect on the first insn has effectively
16191 2008-01-22 David Edelsohn <edelsohn@gnu.org>
16194 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16195 Offset addresses are not valid for Altivec or paired float modes.
16197 2008-01-22 Jakub Jelinek <jakub@redhat.com>
16200 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16201 if DECL_INITIAL (decl) is error_mark_node.
16204 * c-common.c (handle_vector_size_attribute): Only allow
16205 integral, scalar float and fixed point types. Handle OFFSET_TYPE
16206 the same way as pointer, array etc. types.
16207 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16210 * tree.c (build_type_attribute_qual_variant): Call
16211 build_qualified_type if attributes are equal, but quals are not.
16213 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16216 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16217 * flags.h (warn_strict_aliasing): Remove.
16218 (warn_strict_overflow): Remove.
16219 * opts.c (warn_strict_aliasing): Remove.
16220 (warn_strict_overflow): Remove.
16221 * c-opts.c (c_common_handle_option): -Wall only sets
16222 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16223 (c_common_post_options): Give default values to -Wstrict-aliasing
16224 and -Wstrict-overflow if they are uninitialized.
16225 * common.opt (Wstrict-aliasing): Specify Var and Init.
16226 (Wstrict-overflow): Likewise.
16228 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
16230 PR rtl-optimization/26854
16231 PR rtl-optimization/34400
16232 PR rtl-optimization/34884
16233 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16235 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16236 (df_rd_bb_info.expanded_lr_out): Deleted
16237 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16238 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
16239 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16240 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16241 Removed code to allocate, initialize or free expanded_lr_out.
16242 (df_rd_bb_local_compute_process_def): Restructured to make more
16244 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16245 sets if the sets are being trimmed.
16247 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
16250 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16251 (as_vers): Likewise.
16252 * configure: Regenerated.
16254 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16256 PR middle-end/33092
16257 * tree-pass.h (pass_build_alias): New pass.
16258 * tree-ssa-alias.c (gate_build_alias): New.
16259 (pass_build_alias): New.
16260 * passes.c (init_optimization_passes): Add pass_build_alias after
16261 pass_create_structure_vars.
16263 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
16265 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16266 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16267 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16268 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16269 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16270 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16271 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16272 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16273 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16274 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16275 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16276 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16277 * config/s390/s390.md (FP_ALL): New mode iterator.
16278 (_d): New mode attribute.
16279 ("*signbit<mode>2>"): Changed mode of first operand.
16280 ("isinf<mode>2"): Changed mode of first operand.
16281 ("*TDC_insn"): Adaptation for DFP modes.
16283 2008-01-22 Ben Elliston <bje@au.ibm.com>
16285 * tree.c (check_qualified_type): Improve function description.
16287 2008-01-21 Jason Merrill <jason@redhat.com>
16290 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16291 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16294 2008-01-21 DJ Delorie <dj@redhat.com>
16296 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16299 2008-01-21 Richard Guenther <rguenther@suse.de>
16301 PR middle-end/34856
16302 * tree-cfg.c (verify_expr): Allow all invariant expressions
16303 instead of just constant class ones as reference argument.
16304 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16305 like any other constant.
16306 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16308 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
16310 * regmove.c (fixup_match_1): Update call crossed frequencies.
16312 2008-01-21 Richard Guenther <rguenther@suse.de>
16315 * tree-inline.c (setup_one_parameter): Deal with mismatched
16316 types using a VIEW_CONVERT_EXPR.
16318 2008-01-21 Alon Dayan <alond@il.ibm.com>
16319 Olga Golovanevsky <olga@il.ibm.com>
16321 PR tree-optimization/34701
16322 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16323 when the structure size is not a power of 2.
16325 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
16327 * doc/install.texi: Add doc for --enable-checking=df.
16329 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
16331 PR rtl-optimization/34808
16332 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16334 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16336 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16339 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
16341 PR rtl-optimization/26854
16342 PR rtl-optimization/34400
16343 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16345 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16346 (df_rd_bb_info.expanded_lr_out): New.
16347 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16348 * loop_iv.c (iv_analysis_loop_init): Ditto.
16349 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16350 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16351 Added code to allocate, initialize or free expanded_lr_out.
16352 (df_rd_bb_local_compute_process_def): Restructured to make
16353 more understandable.
16354 (df_rd_confluence_n): Add code to do nothing with fake edges and
16355 code to no apply invalidate_by_call sets if the sets are being trimmed.
16356 (df_lr_local_finalize): Renamed to df_lr_finalize.
16357 (df_live_local_finalize): Renamed to df_live_finalize.
16359 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16362 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16363 deciding whether to use reciprocal instructions.
16365 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
16367 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16368 dwarf2out_note_section_used if cold_text_section is NULL.
16370 2008-01-19 Jakub Jelinek <jakub@redhat.com>
16372 PR gcov-profile/34610
16373 * tree-cfg.c (make_edges): Mark both outgoing edges from
16374 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16375 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16376 from OMP_FOR and OMP_CONTINUE outgoing edges.
16378 * tree-profile.c (tree_profiling): Return early if
16379 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
16381 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16382 from cfun to child_cfun.
16383 * function.h (struct function): Add after_tree_profile bit.
16385 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16387 * config/avr/avr.S (_exit): Disable interrupt.
16389 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
16390 Steven Bosscher <stevenb.gcc@gmail.com>
16392 PR rtl-optimization/26854
16393 PR rtl-optimization/34400
16394 * df-problems.c (df_live_scratch): New scratch bitmap.
16395 (df_live_alloc): Allocate df_live_scratch when doing df_live.
16396 (df_live_reset): Clear the proper bitmaps.
16397 (df_live_bb_local_compute): Only process the artificial defs once
16398 since the order is not important.
16399 (df_live_init): Init the df_live sets only with the variables
16400 found live by df_lr.
16401 (df_live_transfer_function): Use the df_lr sets to prune the
16402 df_live sets as they are being computed.
16403 (df_live_free): Free df_live_scratch.
16405 2008-01-18 Ian Lance Taylor <iant@google.com>
16407 * common.opt: Add fmerge-debug-strings.
16408 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16409 flag_merge_debug_strings rather than flag_merge_constants.
16410 * doc/invoke.texi (Option Summary): Mention
16411 -fmerge-debug-strings.
16412 (Debugging Options): Document -fmerge-debug-strings.
16414 2008-01-18 Ian Lance Taylor <iant@google.com>
16417 * tree.h (DECL_IS_OPERATOR_NEW): Define.
16418 (struct tree_function_decl): Add new field operator_new_flag.
16419 * tree-inline.c (expand_call_inline): When inlining a call to
16420 operator new, force the return value to go into a variable, and
16421 set DECL_NO_TBAA_P on that variable.
16422 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16424 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
16427 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16428 DWARF2_DEBUGGING_INFO.
16429 (dwarf2out_note_section_used): Ditto. Add prototype.
16430 (have_multiple_function_sections, text_section_used,
16431 cold_text_section_used, *cold_text_sections): Move declarations
16434 2008-01-17 Bob Wilson <bob.wilson@acm.org>
16436 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16437 field and add signal_ra.
16438 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16439 assignments to frame state pc. Move end of stack check after
16440 MD_FALLBACK_FRAME_STATE_FOR.
16441 (uw_update_context_1): Use frame state signal_regs if set, instead
16442 of checking signal_frame flag.
16443 (uw_update_context): Use frame state signal_ra if set.
16444 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16445 * config/xtensa/linux-unwind.h: New file.
16447 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
16449 * modulo-sched.c (get_sched_window): Fix comment typo.
16451 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
16453 PR tree-optimization/34648
16454 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16456 2008-01-17 Anatoly Sokolov <aesok@post.ru>
16458 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16459 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16461 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
16463 PR rtl-optimization/34400
16464 * df-core.c (df_worklist_dataflow_overeager,
16465 df_worklist_dataflow_doublequeue): New functions.
16466 (df_worklist_dataflow): Two different worklist solvers.
16467 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16470 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16473 * doc/invoke.texi: Document the dependence on pthread for fopenmp
16474 and ftree-parallelize-loops.
16476 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
16478 PR rtl-optimization/34826
16479 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16481 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
16483 * global.c (find_reg): Mark the eh regs as used if necessary.
16484 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16485 * ra.h (struct allocno): no_eh_reg field added. Changed
16486 no_stack_reg type to bitfield.
16488 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
16490 * tree.c (substitute_in_expr): Add missing 'break'.
16492 2008-01-17 Richard Guenther <rguenther@suse.de>
16494 PR tree-optimization/34825
16495 * tree-ssa-math-opts.c (is_division_by): Do not recognize
16496 x / x as division to handle.
16498 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16500 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16501 "-pthread" is specified.
16502 * pa-hpux11.h (LIB_SPEC): Likewise.
16504 2008-01-16 Janis Johnson <janis187@us.ibm.com>
16505 Peter Bergner <bergner@vnet.ibm.com>
16507 PR rtl-optimization/33796
16508 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16510 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16512 PR libgfortran/34699
16513 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16515 * pa-hpux10.h (LINK_SPEC): Likewise.
16516 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16518 2008-01-16 Richard Guenther <rguenther@suse.de>
16520 PR middle-end/32628
16521 * fold-const.c (fold_convert_const_int_from_int): Do not
16522 set overflow if that occured only because of a sign extension
16523 change when converting from/to a sizetype with the same
16524 precision and signedness.
16526 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16529 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16530 location address to the correct place. Update copyright year.
16532 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16534 * lambda-code.c (lambda_transform_legal_p): Handle the case of
16535 no dependences in the dependence_relations vector.
16537 2008-01-16 Jan Hubicka <jh@suse.cz>
16539 PR rtl-optimization/31396
16540 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16541 * cfg.c (dump_reg_info): Print it.
16542 * regs.h (struct reg_info_t): add freq_calls_crossed.
16543 (REG_FREQ_CALLS_CROSSED): New macro.
16544 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16545 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16546 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16547 regmove_optimize): Update call crossed frequencies.
16548 * local-alloc.c (struct qty): Add freq_calls_crossed.
16549 (alloc_qty): Copute freq_calls_crossed.
16550 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16551 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16552 * ra.h (struct allocno): Add freq_calls_crossed.
16554 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16556 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16557 libgomp when compiling with ftree-parallelize-loops.
16558 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16560 2008-01-16 Richard Guenther <rguenther@suse.de>
16562 PR tree-optimization/34769
16563 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16564 * tree.c (int_cst_value): Instead make this function more
16565 permissive in what it accepts as valid input. Document this
16566 function always sign-extends the value.
16568 2008-01-16 Jakub Jelinek <jakub@redhat.com>
16569 Richard Guenther <rguenther@suse.de>
16572 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16573 (gimple_fold_indirect_ref_rhs): ... this.
16574 (gimple_fold_indirect_ref): New function with foldings
16575 that preserve lvalueness.
16576 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16577 * tree-flow.h (gimple_fold_indirect_ref): Declare.
16578 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16579 to fold an INDIRECT_REF, fall back to the old use of
16580 fold_indirect_ref_1.
16582 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16584 * tree-data-ref.c (subscript_dependence_tester_1): Call
16585 free_conflict_function.
16586 (compute_self_dependence): Same.
16588 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16591 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16592 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
16594 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16595 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16596 for DWARF2_UNWIND_INFO targets.
16598 2008-01-16 Richard Guenther <rguenther@suse.de>
16601 * c-typeck.c (common_pointer_type): Do not merge inconsistent
16602 type qualifiers for function types.
16604 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16606 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16607 loop_iterator li from previous commit.
16609 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
16611 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16613 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16615 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16616 (parallelize_loops): Don't parallelize irreducible components.
16618 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16621 * c-opts (c_common_post_options): Do not enable CPP
16622 flag_pedantic_errors by default.
16624 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
16626 PR rtl-optimization/31944
16627 * cse.c (remove_pseudo_from_table): New function.
16628 (merge_equiv_classes): Use above function to remove pseudo-registers.
16629 (invalidate): Likewise.
16631 2008-01-13 Richard Guenther <rguenther@suse.de>
16633 PR middle-end/34601
16634 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16635 instead of TYPE_MODE to deal with calls from expand_one_error_var.
16637 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
16639 * gcse.c (cprop_jump): Call validate_unshare_change instead of
16640 validate_change to unshare the source of the PC set.
16642 2008-01-12 Jan Hubicka <jh@suse.cz>
16644 PR middle-end/32135
16645 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16646 references above array bounds. This might trigger bounds checks for
16647 pointers to arrays.
16649 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16651 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16652 new_replaceable_dependencies.
16654 2008-01-12 Doug Kwan <dougkwan@google.com>
16656 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16657 instead of OPT_Wreturn_type in warning due to ignored return type
16659 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16660 options included in -Wextra.
16661 * c.opt: New option -Wignored_qualifiers.
16662 * doc/invoke.texi (Warning Options, -Wextra): Add new option
16663 -Wignore_qualifiers.
16664 (-Wignored-qualifiers): Document.
16665 (-Wreturn-type): Remove description of functionality now handled
16666 by -Wignored-qualifiers.
16668 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
16671 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16672 NOP_EXPR if it is between integral types with the same precision.
16674 2008-01-12 Jan Hubicka <jh@suse.cz>
16677 * invoke.texi (max-inline-recursive-depth): Fix default value.
16679 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
16681 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16684 2008-01-11 Bob Wilson <bob.wilson@acm.org>
16686 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16688 2008-01-11 James E. Wilson <wilson@specifix.com>
16691 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16693 2008-01-11 Anatoly Sokolov <aesok@post.ru>
16695 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16696 save/restore frame pointer register and don't use 'call-prologues'
16697 optimization in function with "OS_task" attribute.
16699 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
16701 PR middle-end/31309
16702 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16703 when copying to memory.
16705 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
16707 PR rtl-optimization/30905
16708 * cfgcleanup.c: Include dce.h
16709 (crossjumps_occured): New global variable.
16710 (try_crossjump_bb): Exit loop after finding a fallthru edge.
16711 If something changed, set crossjumps_occured to true.
16712 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16713 Don't add/remove fake edges to exit here...
16714 (cleanup_cfg): ...but do it here, when crossjumping.
16715 Run a fast DCE when successful crossjumps occured in the latest
16716 iteration of try_optimize_cfg.
16718 2008-01-11 Richard Guenther <rguenther@suse.de>
16720 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16721 (struct vn_unary_op_s): Likewise.
16722 (vn_reference_insert): Free old reference on hash collision.
16724 2008-01-10 Raksit Ashok <raksit@google.com>
16726 PR rtl-optimization/27971
16727 * combine.c (find_split_point): Split PLUS expressions which are
16728 inside a MEM rtx, and whose first operand is complex.
16730 2008-01-10 DJ Delorie <dj@redhat.com>
16732 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16733 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16734 (m32c_hard_regno_ok): Call the underlying function.
16736 2008-01-10 Richard Guenther <rguenther@suse.de>
16738 PR middle-end/34683
16739 * tree-cfg.c (tree_merge_blocks): Do not go through the
16740 full-blown folding and stmt updating path if we just deal
16741 with virtual operands.
16742 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16743 test for abnormal SSA_NAMEs.
16745 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
16747 PR middle-end/34641
16748 * reload.c (push_reload): Add assertions. All constants from
16749 reg_equiv_constant should have been used for replacing the respective
16751 (find_reloads_address): Invoke find_reloads_address_part for
16752 constant taken from the reg_equiv_constant array.
16754 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
16756 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16757 field (valnum) the first in the struct. Replace bools with
16760 2008-01-10 Richard Guenther <rguenther@suse.de>
16762 PR tree-optimization/34651
16763 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
16764 types and ordering for masking and converting.
16766 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
16768 PR tree-optimization/34017
16769 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16770 also for PHI_NODE expressions.
16772 2008-01-09 Jan Hubicka <jh@suse.cz>
16774 PR tree-optimization/34708
16775 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16776 based on number of case labels.
16777 (init_inline_once): Remove switch_cost.
16778 * tree-inline.h (eni_weights_d): Remove switch_cost.
16780 2008-01-09 Richard Guenther <rguenther@suse.de>
16781 Andrew Pinski <andrew_pinski@playstation.sony.com>
16783 PR middle-end/30132
16784 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16785 temporary if an rvalue is ok or an lvalue is not required.
16787 2008-01-09 Richard Guenther <rguenther@suse.de>
16789 PR middle-end/34458
16790 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16791 adjust return type.
16793 2008-01-09 Richard Guenther <rguenther@suse.de>
16795 PR middle-end/34679
16796 * tree.c (host_integerp): Check for sizetype only if the
16797 type is an integer type.
16799 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16802 * opts.c (decode_options): Disable inlining of functions called
16803 once if not in unit-at-a-time mode.
16805 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16807 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16809 2008-01-08 Richard Guenther <rguenther@suse.de>
16811 PR middle-end/31863
16812 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16813 out early if the result will be unused.
16815 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16820 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16821 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16824 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16826 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16827 for vectorization tuned.
16829 2008-01-08 Richard Guenther <rguenther@suse.de>
16831 PR tree-optimization/34683
16832 * tree-ssa-operands.c (operand_build_cmp): Export.
16833 * tree-ssa-operands.h (operand_build_cmp): Declare.
16834 * tree-vn.c (vuses_compare): Remove.
16835 (sort_vuses): Use operand_build_cmp.
16836 (sort_vuses_heap): Likewise.
16837 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16838 to re-use old VEC if available. Do not sort already sorted VUSEs.
16839 (vdefs_to_vec): Do not sort already sorted VDEFs.
16841 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16843 PR middle-end/34694
16844 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16846 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16849 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16850 limitations of reciprocal sequences on x86 targets.
16852 2008-01-08 Richard Guenther <rguenther@suse.de>
16854 PR tree-optimization/34683
16855 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16857 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16860 * config/darwin.c (darwin_mergeable_string_section): Don't use
16861 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16863 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16866 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16867 negxf2. Macroize expander using X87MODEF mode iterator. Change
16868 predicates of op0 and op1 to register_operand.
16869 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16870 expander using X87MODEF mode iterator. Change predicates of
16871 op0 and op1 to register_operand.
16872 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16873 corresponding patterns and macroize using MODEF macro. Change
16874 predicates of op0 and op1 to register_operand and remove
16875 "m" constraint. Disparage "r" alternative with "!".
16876 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16877 macroize using X87MODEF macro. Change predicates of op0 and op1
16878 to register_operand and remove "m" constraint. Disparage "r"
16879 alternative with "!".
16880 (absneg splitter with memory operands): Remove.
16881 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16882 patterns and macroize using X87MODEF mode iterator.
16883 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16884 Change predicate of op1 to register_operand.
16885 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16886 for memory operands.
16888 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16890 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16892 2008-01-07 Richard Guenther <rguenther@suse.de>
16894 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16897 2008-01-07 Richard Guenther <rguenther@suse.de>
16899 PR tree-optimization/34683
16900 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16901 VOPs of the needed size to save memory. Use VEC_quick_push
16902 to save compile-time.
16903 (vdefs_to_vec): Likewise.
16905 2008-01-07 Sa Liu <saliu@de.ibm.com>
16907 * config/spu/spu.md (divdf3): Genetate inline code for double
16908 division. The implementation doesn't handle INF or NAN, therefore it
16909 only applies when -ffinite-math-only is given.
16911 2008-01-06 Paolo Carlini <pcarlini@suse.de>
16914 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16915 * doc/cpp.texi ([Common Predefined Macros]): Document.
16917 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
16919 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16920 order to use commutative addition instead of subtraction.
16922 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
16923 Mircea Namolaru <namolaru@il.ibm.com>
16924 Vladimir Yanovsky <yanov@il.ibm.com>
16925 Revital Eres <eres@il.ibm.com>
16927 PR tree-optimization/34263
16928 * tree-outof-ssa.c (process_single_block_loop_latch,
16929 contains_tree_r): New functions.
16930 (analyze_edges_for_bb): Call process_single_block_loop_latch
16931 function to empty single-basic-block latch block if possible.
16933 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16935 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16937 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16939 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16941 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16943 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
16945 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16947 2008-01-05 Jakub Jelinek <jakub@redhat.com>
16949 PR tree-optimization/34618
16950 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16953 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16956 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16957 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
16958 Update copyright year.
16960 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16961 Update copyright year.
16962 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16965 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
16967 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16968 edge does not point to current bb before changing need_assert.
16970 2008-01-04 Richard Guenther <rguenther@suse.de>
16972 PR middle-end/34029
16973 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16974 for verifying purposes if they are is_gimple_min_invariant.
16976 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
16978 PR tree-optimization/34448
16979 PR tree-optimization/34465
16980 * gimplify.c (gimplify_init_constructor): Add new parameter
16981 notify_temp_creation. Use it.
16982 (gimplify_modify_expr_rhs): Take volatiles into account when
16983 optimizing constructors.
16984 Do not optimize constructors if gimplify_init_constructor will dump to
16986 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16987 * gcc.c-torture/compile/pr34448.c: New.
16989 2008-01-04 Jakub Jelinek <jakub@redhat.com>
16991 PR gcov-profile/34609
16992 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16993 return_slot if result is TREE_ADDRESSABLE.
16995 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
16997 * config/mips/mips.md (sqrt_condition): Tweak comment.
16998 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
17000 2008-01-03 Tom Tromey <tromey@redhat.com>
17003 * c-common.c (c_type_hash): Handle VLAs.
17005 2008-01-03 Jan Hubicka <jh@suse.cz>
17007 PR tree-optimization/31081
17008 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17009 0 when inlining and not inlining to first basic block.
17010 (remap_decl): When var is initialized to 0, don't set default_def.
17011 (expand_call_inline): Set entry_bb.
17012 * tree-inline.h (copy_body_data): Add entry_bb.
17014 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17017 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17020 PR tree-optimization/29484
17021 * tree-inline.c (inline_forbidden_p_2): New function.
17022 (inline_forbidden_p): Disallow inlining if some static var
17023 has an address of a local LABEL_DECL in its initializer.
17024 * doc/extend.texi (Labels as Values): Document &&foo behaviour
17027 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
17029 PR tree-optimization/34635
17030 * tree-data-ref.c (add_other_self_distances): Make sure that the
17031 evolution step is constant.
17033 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17035 PR middle-end/34608
17036 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17038 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
17040 * tree-sra.c (scalarize_init): Insert the generate_element_init
17041 statements after the generate_element_zero statements.
17043 2008-01-02 Richard Guenther <rguenther@suse.de>
17045 PR middle-end/34093
17046 PR middle-end/31976
17047 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17048 for very large number of operands instead of ICEing.
17050 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
17053 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17054 while stack probing.
17056 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
17058 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17061 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
17063 PR libmudflap/26442
17064 * tree-mudflap.c (mx_register_decls): Guard warning by
17065 !DECL_ARTIFICIAL check.
17067 2008-01-01 Jakub Jelinek <jakub@redhat.com>
17069 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17070 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17071 sse5_perm<mode>): Fix constraints.