1 2008-08-04 Paul Brook <paul@codesourcery.com>
3 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
4 (arm_order_regs_for_local_alloc): New function.
5 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
7 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
9 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
12 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
13 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
14 (ix86_expand_epilogue): Likewise.
16 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
18 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
21 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
23 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
24 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
25 (*movv2sf_internal_rex64): Ditto.
27 2008-08-03 Jan Hubicka <jh@suse.cz>
29 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
30 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
31 * expmed.c (expand_smod_pow2): Likewise.
33 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
36 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
37 alternative 0 of operand 1.
38 (*vec_concatv2di_rex64_sse): Ditto.
39 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
41 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
42 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
43 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
44 (*movv2sf_internal_rex64): Ditto.
46 2008-08-02 Richard Guenther <rguenther@suse.de>
49 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
50 (ssedoublesizemode): New mode attribute.
51 (sse_shufps): Call gen_sse_shufps_v4sf.
52 (sse_shufps_1): Macroize.
53 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
54 (sse2_shufpd_1): Macroize.
55 (vec_extract_odd, vec_extract_even): New expanders.
56 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
57 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
58 * i386.c (ix86_expand_vector_init_one_nonzero): Call
59 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
60 (ix86_expand_vector_set): Likewise.
61 (ix86_expand_reduc_v4sf): Likewise.
63 2008-08-01 Doug Kwan <dougkwan@google.com>
65 * matrix-reorg.c: Re-enable all code.
66 (struct malloc_call_data): Change CALL_STMT to gimple type.
67 (collect_data_for_malloc_call): Tuplify.
68 (struct access_site_info): Change STMT to gimple type.
69 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
70 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
71 (struct free_info): Change STMT to gimple type.
72 (struct matrix_access_phi_node): Change PHI to gimple type.
73 (get_inner_of_cast_expr): Remove.
74 (may_flatten_matrices_1): Tuplify.
75 (may_flatten_matrices): Ditto.
76 (mark_min_matrix_escape_level): Ditto.
77 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
78 (ssa_accessed_in_call_rhs): New
79 (ssa_accessed_in_assign_rhs): New
80 (record_access_alloc_site_info): Tuplify.
81 (add_allocation_site): Ditto.
82 (analyze_matrix_allocation_site): Ditto.
83 (analyze_transpose): Ditto.
84 (get_index_from_offset): Ditto.
85 (update_type_size): Ditto.
86 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
87 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
88 (analyze_accesses_for_phi_node): Tuplify.
89 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
90 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
91 (analyze_matrix_accesses): Tuplify.
92 (check_var_data): New call-back type for check_var_notmodified_p.
93 (check_var_notmodified_p): Tuplify and use call-back struct to
94 return statement found.
95 (can_calculate_expr_before_stmt): Factor out statement related code
97 (can_calculate_stmt_before_stmt): New.
98 (check_allocation_function): Tuplify.
99 (find_sites_in_func): Ditto.
100 (record_all_accesses_in_func): Ditto.
101 (transform_access_sites): Ditto.
102 (transform_allocation_sites): Ditto.
103 (matrix_reorg): Re-enable.
104 (gate_matrix_reorg): Re-enable.
106 2008-08-01 Jakub Jelinek <jakub@redhat.com>
108 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
109 for labels for which it hasn't been set yet. If it has been set,
110 stop walking insns and continue with next worklist item.
111 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
112 if the only BARRIER is at the very end of a function.
114 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
116 * cfgexpand.c (expand_stack_alignment): Assert that
117 stack_realign_drap and drap_rtx must match.
119 * function.c (instantiate_new_reg): If DRAP is used to realign
120 stack, replace virtual_incoming_args_rtx with internal arg
123 2008-08-01 Richard Guenther <rguenther@suse.de>
125 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
126 loop information only if we initialized it.
127 (execute_pre): Call fini_pre with in_fre.
128 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
129 if we do not unroll because we hit max-completely-peeled-insns.
130 Use our estimation for consistency, do allow shrinking.
132 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
134 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
135 with MIN_STACK_BOUNDARY.
136 (ix86_update_stack_boundary): Likewise.
137 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
140 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
141 (MIN_STACK_BOUNDARY): This.
143 2008-08-01 Richard Guenther <rguenther@suse.de>
146 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
148 2008-08-01 Richard Guenther <rguenther@suse.de>
150 PR tree-optimization/36988
151 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
152 do not matter if that doesn't change volatile qualification.
154 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
156 * configure.ac: Do not generate libada-mk. Do not subst
158 * libada-mk.in: Remove.
159 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
160 * configure: Regenerate.
162 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
164 * tree-pass.h: Added comment about not dumping passes with name
165 starting with star in struct opt_pass.
166 * passes.c (register_dump_files_1): Don't do dump for a pass with
167 name starting with star.
168 * doc/passes.texi (Pass manager): Mention pass names and special
169 meaning of star prefix to avoid dump.
171 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
173 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
175 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
176 (ISA_MIPS64R2): New macro.
177 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
178 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
179 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
180 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
181 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
182 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
183 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
184 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
185 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
186 Move up to keep list alphabetically sorted.
187 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
188 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
190 * doc/invoke.texi (MIPS Options): Add -mips64r2.
191 (-march=@var{arch}): Add mips64r2.
193 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
195 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
197 2008-07-31 Steve Ellcey <sje@cup.hp.com>
199 * expr.c (expand_assignment): Check for complete type.
201 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
204 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
206 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
209 * function.h (rtl_data): Add stack_realign_tried. Update comments.
211 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
213 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
214 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
216 2008-07-31 Jakub Jelinek <jakub@redhat.com>
218 PR rtl-optimization/36419
219 * dwarf2out.c (barrier_args_size): New variable.
220 (compute_barrier_args_size, compute_barrier_args_size_1): New
222 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
223 if not called yet in the current function, use barrier_args_size
224 array to find the new args_size value.
225 (dwarf2out_frame_debug): Free and clear barrier_args_size.
227 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
230 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
233 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
236 * dwarf2out.c (dwarf2out_args_size_adjust): New.
237 (dwarf2out_stack_adjust): Use it.
238 (dwarf2out_frame_debug_expr): Likewise.
240 2008-07-31 Richard Guenther <rguenther@suse.de>
242 PR tree-optimization/36978
243 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
244 the generated condition.
246 2008-07-31 Richard Guenther <rguenther@suse.de>
248 * passes.c (init_optimization_passes): Always call
249 pass_early_warn_uninitialized.
250 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
251 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
252 * doc/passes.texi (Warn for uninitialized variables): Adjust.
254 2008-07-31 Jakub Jelinek <jakub@redhat.com>
257 * builtins.c (maybe_emit_free_warning): New function.
258 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
259 maybe_emit_free_warning for BUILT_IN_FREE.
262 * dwarf2out.c (get_context_die): New function.
263 (force_decl_die, force_type_die): Use it.
264 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
265 returns NULL, force generation of DW_TAG_typedef and put that into
268 PR preprocessor/36649
269 * c-pch.c (c_common_read_pch): Save and restore
270 line_table->trace_includes across PCH restore.
272 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
275 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
277 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
280 * final.c (call_from_call_insn): Handle COND_EXEC.
282 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
284 * builtins.c (std_gimplify_va_arg_expr): Replace
285 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
286 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
288 2008-07-30 Joey Ye <joey.ye@intel.com>
289 H.J. Lu <hongjiu.lu@intel.com>
291 * builtins.c (expand_builtin_setjmp_receiver): Replace
292 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
293 (expand_builtin_apply_args_1): Likewise.
294 (expand_builtin_longjmp): Need DRAP for stack alignment.
295 (expand_builtin_apply): Likewise.
297 * caller-save.c (setup_save_areas): Call assign_stack_local_1
298 instead of assign_stack_local to allow alignment reduction.
300 * calls.c (emit_call_1): Need DRAP for stack alignment if
302 (expand_call): Replace virtual_incoming_args_rtx with
303 crtl->args.internal_arg_pointer.
304 * stmt.c (expand_nl_goto_receiver): Likewise.
306 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
307 alignment and store to stack_alignment_estimated and
308 max_used_stack_slot_alignment.
309 (expand_one_var): Likewise.
310 (expand_stack_alignment): New function.
311 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
312 and stack_alignment_estimated fields in rtl_data. Call
313 expand_stack_alignment at end.
315 * defaults.h (INCOMING_STACK_BOUNDARY): New.
316 (MAX_STACK_ALIGNMENT): Likewise.
317 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
318 (SUPPORTS_STACK_ALIGNMENT): Likewise.
320 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
321 stack alignment when generating virtual registers.
323 * function.c (assign_stack_local): Renamed to ...
324 (assign_stack_local_1): This. Add a parameter to indicate
325 if it is OK to reduce alignment.
326 (assign_stack_local): Use it.
327 (instantiate_new_reg): Instantiate virtual incoming args rtx
328 to vDRAP if stack realignment and DRAP is needed.
329 (assign_parms): Collect parameter/return type alignment and
330 contribute to stack_alignment_estimated.
331 (locate_and_pad_parm): Likewise.
332 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
333 with crtl->args.internal_arg_pointer.
335 * function.h (rtl_data): Add new field drap_reg,
336 max_used_stack_slot_alignment, stack_alignment_estimated,
337 stack_realign_needed, need_drap, stack_realign_processed and
338 stack_realign_finalized.
339 (stack_realign_fp): New macro.
340 (stack_realign_drap): Likewise.
342 * global.c (compute_regsets): Frame pointer is needed when
343 stack is realigned. Can eliminate frame pointer when stack is
344 realigned and dynamic realigned argument pointer isn't used.
346 * reload1.c (update_eliminables): Frame pointer is needed
347 when stack is realigned.
348 (init_elim_table): Can eliminate frame pointer when stack is
349 realigned and dynamic realigned argument pointer isn't used.
351 * rtl.h (assign_stack_local_1): Declare new funtion.
353 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
354 (TARGET_GET_DRAP_RTX): Likewise.
355 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
358 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
360 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
361 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
363 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
364 H.J. Lu <hongjiu.lu@intel.com>
366 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
367 vdrap_reg, stack_realign and drap_reg_saved.
368 (add_cfi): Don't allow redefining CFA when DRAP is used.
369 (reg_save): Handle stack alignment.
370 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
371 alignment. Don't generate DWARF information for (set fp sp)
373 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
375 (int_loc_descriptor): Move prototype forward. Also define if
376 DWARF2_UNWIND_INFO is true.
377 (output_cfa_loc): Handle DW_CFA_expression.
378 (build_cfa_aligned_loc): New.
379 (based_loc_descr): Update assert for stack realign. For local
380 variables, use sp+offset when stack is aligned without drap and
381 fp+offset when stack is aligned with drap. For arguments, use
382 cfa+offset when drap is used to align stack.
384 2008-07-30 Joey Ye <joey.ye@intel.com>
385 H.J. Lu <hongjiu.lu@intel.com>
387 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
389 (ix86_gen_andsp): New.
390 (ix86_user_incoming_stack_boundary): Likewise.
391 (ix86_default_incoming_stack_boundary): Likewise.
392 (ix86_incoming_stack_boundary): Likewise.
393 (ix86_can_eliminate): Likewise.
394 (find_drap_reg): Likewise.
395 (ix86_update_stack_boundary): Likewise.
396 (ix86_get_drap_rtx): Likewise.
397 (ix86_finalize_stack_realign_flags): Likewise.
398 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
399 (TARGET_GET_DRAP_RTX): Likewise.
400 (override_options): Overide option value for new options.
401 (ix86_function_ok_for_sibcall): Remove check for
402 force_align_arg_pointer.
403 (ix86_handle_cconv_attribute): Likewise.
404 (ix86_function_regparm): Likewise.
405 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
406 (ix86_va_start): Replace virtual_incoming_args_rtx with
407 crtl->args.internal_arg_pointer.
408 (ix86_select_alt_pic_regnum): Check DRAP register.
409 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
410 (ix86_compute_frame_layout): Compute frame layout wrt stack
412 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
413 (ix86_expand_prologue): Decide if stack realignment is needed
414 and generate prologue code accordingly.
415 (ix86_expand_epilogue): Generate epilogue code wrt stack
416 realignment is really needed or not.
418 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
419 (ABI_STACK_BOUNDARY): Likewise.
420 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
421 (STACK_REALIGN_DEFAULT): Likewise.
422 (INCOMING_STACK_BOUNDARY): Likewise.
423 (MAX_STACK_ALIGNMENT): Likewise.
424 (ix86_incoming_stack_boundary): Likewise.
425 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
426 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
427 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
428 (machine_function): Remove force_align_arg_pointer.
430 * config/i386/i386.md (BX_REG): New.
433 * config/i386/i386.opt (mforce_drap): New.
434 (mincoming-stack-boundary): Likewise.
435 (mstackrealign): Add Init(-1).
437 * config/i386/i386-protos.h (ix86_can_eliminate): New
439 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
441 * doc/extend.texi: Update force_align_arg_pointer.
443 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
446 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
447 (INCOMING_STACK_BOUNDARY): Likewise.
448 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
449 (TARGET_GET_DRAP_RTX): Likewise.
451 2008-07-30 Andreas Schwab <schwab@suse.de>
453 PR rtl-optimization/36929
454 * dse.c (replace_inc_dec): Use emit_insn_before instead of
455 add_insn_before and fix argument order.
456 (replace_inc_dec_mem): Handle NULL rtx.
458 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
460 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
462 (arm_compute_initial_elimination_offset): Use it.
463 (arm_compute_save_reg_mask): Include static chain save slot when
464 calculating alignment.
465 (arm_get_frame_offsets): Ditto.
466 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
467 that we can use to decrement the stack when the stack decrement
468 could be too big for an immediate value in a single insn.
469 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
471 2008-07-30 Richard Guenther <rguenther@suse.de>
473 PR tree-optimization/36967
474 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
475 Release defs of statements we remove.
477 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
479 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
480 instead of NULL_RTVEC.
482 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
486 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
489 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
491 * final.c (call_from_call_insn): New.
492 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
494 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
496 * configure.ac: Substitute ADA_CFLAGS.
497 * configure: Regenerate.
498 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
499 * Makefile.in: Remove mention of X_* variables.
500 * config/pa/x-ada-hpux10: Remove.
501 * config/pa/x-ada: Remove.
503 * doc/fragments.texi: Update.
505 2008-07-30 Olivier Hainque <hainque@adacore.com>
507 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
508 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
509 __dso_handle explicitly here.
511 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
514 * c-typeck.c (build_binary_op): Encapsulate code into...
515 * c-common.c (shorten_binary_op): ...this new function.
516 (conversion_warning): Use the new function. Handle non-negative
517 constant in bitwise-and.
518 * c-common.h (shorten_binary_op): Declare.
520 2008-07-30 Olivier Hainque <hainque@adacore.com>
522 * scan.c (make_sstring_space): Add explicit conversions of
523 allocator's return value.
524 * fix-header.c (recognized_function): Likewise.
526 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
528 * doc/cpp.texi: Update to GFDL 1.2.
529 * doc/gcc.texi: Do not list GPL as Invariant Section.
530 * doc/gccint.texi: Likewise. Update copyright years.
531 * doc/install.texi: Update copyright years.
533 2008-07-30 Alan Modra <amodra@bigpond.net.au>
536 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
537 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
539 2008-07-29 Jan Hubicka <jh@suse.cz>
541 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
542 (grokdeclarator): Likewise.
543 * langhooks.c (lhd_warn_unused_global_decl): Use
544 DECL_DECLARED_INLINE_P.
545 * print-tree.c (print_node): Remove DECL_INLINE check.
547 2008-07-29 Richard Guenther <rguenther@suse.de>
549 PR tree-optimization/36945
550 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
551 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
552 Record invariant addresses un-decomposed.
553 (copy_reference_ops_from_call): Record reference call
554 arguments properly. Simplify.
555 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
556 helper split out from ...
557 (create_component_ref_by_pieces): ... here. Simplify.
558 Prepare for recursive invocation for call arguments.
559 (create_expression_by_pieces): Adjust call to
560 create_component_ref_by_pieces.
561 (compute_avail): Process operand 2 of reference ops.
563 2008-07-29 Richard Guenther <rguenther@suse.de>
565 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
567 2008-07-29 Jakub Jelinek <jakub@redhat.com>
569 * c-format.c (check_format_types): Revert unwanted checkin.
571 2008-07-29 Jan Hubicka <jh@suse.cz>
573 * flags.h (flag_really_no_inline): Remove.
574 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
575 * toplev.c (flag_really_no_inline): Remove.
576 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
577 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
578 (cgraph_decide_inlining_incrementally): Likewise.
579 (compute_inline_parameters): Likewise.
580 * opts.c (decode_options): Simplify.
581 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
582 * common.opt (finline): Initialize to 1.
583 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
585 2008-07-29 Jan Hubicka <jh@suse.cz>
587 * predict.c (always_optimize_for_size_p): New function.
588 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
589 optimize_edge_for_size_p, optimize_edge_for_speed_p,
590 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
592 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
593 * function.c (prepare_function_start): Set default profile.
594 * function.h (rtl_data): Add maybe_hot_insn_p.
595 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
596 (construct_exit_block): Likewise.
597 (tree_expand_cfg): Likewise.
599 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
600 optimize_edge_for_size_p, optimize_edge_for_speed_p,
601 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
602 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
605 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
608 * c-decl.c (merge_decls): Merge USED flags.
610 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
612 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
613 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
614 next_stack, lab_false and lab_over trees.
616 2008-07-28 Richard Guenther <rguenther@suse.de>
618 PR tree-optimization/36957
619 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
620 (useless_type_conversion_p): Remove.
621 (types_compatible_p): Remove.
622 * gimple.h (tree_ssa_useless_type_conversion): Declare.
623 (useless_type_conversion_p): Declare.
624 (types_compatible_p): Declare.
625 (gimple_expr_type): Return the base type only if it is
626 trivially convertible to the subtype.
628 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
630 * configure.ac: Use the m4_do macro to concatenate the warnings into
631 one string in ACX_PROG_CC_WARNING_OPTS,
632 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
633 * configure: Regenerate.
635 2008-07-28 Richard Guenther <rguenther@suse.de>
637 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
638 (insert_fake_stores): Remove.
639 (realify_fake_stores): Likewise.
640 (execute_pre): Remove dead code.
641 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
642 (find_func_aliases): Deal with it here instead.
643 Re-enable gcc_unreachable call.
645 2008-07-28 Richard Guenther <rguenther@suse.de>
647 Merge from gimple-tuples-branch.
649 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
650 * gimple.def: New file.
651 * gsstruct.def: Likewise.
652 * gimple-iterator.c: Likewise.
653 * gimple-pretty-print.c: Likewise.
654 * tree-gimple.c: Removed. Merged into ...
655 * gimple.c: ... here. New file.
656 * tree-gimple.h: Removed. Merged into ...
657 * gimple.h: ... here. New file.
659 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
660 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
661 --enable-checking=gimple flag.
662 * config.in: Likewise.
663 * configure: Regenerated.
665 * tree-ssa-operands.h: Tuplified.
666 * tree-vrp.c: Likewise.
667 * tree-loop-linear.c: Likewise.
668 * tree-into-ssa.c: Likewise.
669 * tree-ssa-loop-im.c: Likewise.
670 * tree-dump.c: Likewise.
671 * tree-complex.c: Likewise.
672 * cgraphbuild.c: Likewise.
673 * tree-ssa-threadupdate.c: Likewise.
674 * tree-ssa-loop-niter.c: Likewise.
675 * tree-pretty-print.c: Likewise.
676 * tracer.c: Likewise.
677 * gengtype.c: Likewise.
678 * tree-loop-distribution.c: Likewise.
679 * tree-ssa-loop-unswitch.c: Likewise.
680 * cgraph.c: Likewise.
681 * cgraph.h: Likewise.
682 * tree-ssa-loop-manip.c: Likewise.
683 * value-prof.c: Likewise.
684 * tree-ssa-loop-ch.c: Likewise.
685 * tree-tailcall.c: Likewise.
686 * value-prof.h: Likewise.
689 * tree-pass.h: Likewise.
690 * ipa-cp.c: Likewise.
691 * tree-scalar-evolution.c: Likewise.
692 * tree-scalar-evolution.h: Likewise.
693 * target.h: Likewise.
694 * lambda-mat.c: Likewise.
695 * tree-phinodes.c: Likewise.
696 * diagnostic.h: Likewise.
697 * builtins.c: Likewise.
698 * tree-ssa-alias-warnings.c: Likewise.
699 * cfghooks.c: Likewise.
700 * fold-const.c: Likewise.
701 * cfghooks.h: Likewise.
702 * omp-low.c: Likewise.
703 * tree-ssa-dse.c: Likewise.
704 * ipa-reference.c: Likewise.
705 * tree-ssa-uncprop.c: Likewise.
706 * toplev.c: Likewise.
707 * tree-gimple.c: Likewise.
708 * tree-gimple.h: Likewise.
709 * tree-chrec.c: Likewise.
710 * tree-chrec.h: Likewise.
711 * tree-ssa-sccvn.c: Likewise.
712 * tree-ssa-sccvn.h: Likewise.
713 * cgraphunit.c: Likewise.
714 * tree-ssa-copyrename.c: Likewise.
715 * tree-ssa-ccp.c: Likewise.
716 * tree-ssa-loop-ivopts.c: Likewise.
717 * tree-nomudflap.c: Likewise.
718 * tree-call-cdce.c: Likewise.
719 * ipa-pure-const.c: Likewise.
720 * c-format.c: Likewise.
721 * tree-stdarg.c: Likewise.
722 * tree-ssa-math-opts.c: Likewise.
723 * tree-ssa-dom.c: Likewise.
724 * tree-nrv.c: Likewise.
725 * tree-ssa-propagate.c: Likewise.
726 * ipa-utils.c: Likewise.
727 * tree-ssa-propagate.h: Likewise.
728 * tree-ssa-alias.c: Likewise.
729 * gimple-low.c: Likewise.
730 * tree-ssa-sink.c: Likewise.
731 * ipa-inline.c: Likewise.
732 * c-semantics.c: Likewise.
733 * dwarf2out.c: Likewise.
735 * tree-ssa-loop-ivcanon.c: Likewise.
736 * predict.c: Likewise.
737 * tree-ssa-loop.c: Likewise.
738 * tree-parloops.c: Likewise.
739 * tree-ssa-address.c: Likewise.
740 * tree-ssa-ifcombine.c: Likewise.
741 * matrix-reorg.c: Likewise.
742 * c-decl.c: Likewise.
743 * tree-eh.c: Likewise.
744 * c-pretty-print.c: Likewise.
745 * lambda-trans.c: Likewise.
746 * function.c: Likewise.
747 * langhooks.c: Likewise.
748 * ebitmap.h: Likewise.
749 * tree-vectorizer.c: Likewise.
750 * function.h: Likewise.
751 * langhooks.h: Likewise.
752 * tree-vectorizer.h: Likewise.
753 * ipa-type-escape.c: Likewise.
754 * ipa-type-escape.h: Likewise.
755 * domwalk.c: Likewise.
756 * tree-if-conv.c: Likewise.
757 * profile.c: Likewise.
758 * domwalk.h: Likewise.
759 * tree-data-ref.c: Likewise.
760 * tree-data-ref.h: Likewise.
761 * tree-flow-inline.h: Likewise.
762 * tree-affine.c: Likewise.
763 * tree-vect-analyze.c: Likewise.
764 * c-typeck.c: Likewise.
765 * gimplify.c: Likewise.
766 * coretypes.h: Likewise.
767 * tree-ssa-phiopt.c: Likewise.
769 * tree-ssa-coalesce.c: Likewise.
770 * tree.def: Likewise.
771 * tree-dfa.c: Likewise.
772 * except.c: Likewise.
773 * except.h: Likewise.
774 * cfgexpand.c: Likewise.
775 * tree-cfgcleanup.c: Likewise.
776 * tree-ssa-pre.c: Likewise.
777 * tree-ssa-live.c: Likewise.
778 * tree-sra.c: Likewise.
779 * tree-ssa-live.h: Likewise.
780 * tree-predcom.c: Likewise.
781 * lambda.h: Likewise.
782 * tree-mudflap.c: Likewise.
783 * ipa-prop.c: Likewise.
784 * print-tree.c: Likewise.
785 * tree-ssa-copy.c: Likewise.
786 * ipa-prop.h: Likewise.
787 * tree-ssa-forwprop.c: Likewise.
788 * ggc-page.c: Likewise.
790 * tree-ssa-dce.c: Likewise.
791 * tree-vect-patterns.c: Likewise.
792 * tree-ssa-ter.c: Likewise.
793 * tree-nested.c: Likewise.
794 * tree-ssa.c: Likewise.
795 * lambda-code.c: Likewise.
796 * tree-ssa-loop-prefetch.c: Likewise.
797 * tree-inline.c: Likewise.
798 * tree-inline.h: Likewise.
799 * tree-iterator.c: Likewise.
800 * tree-optimize.c: Likewise.
801 * tree-ssa-phiprop.c: Likewise.
802 * tree-vect-transform.c: Likewise.
803 * tree-object-size.c: Likewise.
804 * tree-outof-ssa.c: Likewise.
805 * cfgloop.c: Likewise.
806 * system.h: Likewise.
807 * tree-profile.c: Likewise.
808 * cfgloop.h: Likewise.
809 * c-gimplify.c: Likewise.
810 * c-common.c: Likewise.
811 * tree-vect-generic.c: Likewise.
812 * tree-flow.h: Likewise.
813 * c-common.h: Likewise.
814 * basic-block.h: Likewise.
815 * tree-ssa-structalias.c: Likewise.
816 * tree-switch-conversion.c: Likewise.
817 * tree-ssa-structalias.h: Likewise.
818 * tree-cfg.c: Likewise.
819 * passes.c: Likewise.
820 * ipa-struct-reorg.c: Likewise.
821 * ipa-struct-reorg.h: Likewise.
822 * tree-ssa-reassoc.c: Likewise.
823 * cfgrtl.c: Likewise.
824 * varpool.c: Likewise.
826 * tree-ssanames.c: Likewise.
827 * tree-ssa-threadedge.c: Likewise.
828 * langhooks-def.h: Likewise.
829 * tree-ssa-operands.c: Likewise.
830 * config/alpha/alpha.c: Likewise.
831 * config/frv/frv.c: Likewise.
832 * config/s390/s390.c: Likewise.
833 * config/m32c/m32c.c: Likewise.
834 * config/m32c/m32c-protos.h: Likewise.
835 * config/spu/spu.c: Likewise.
836 * config/sparc/sparc.c: Likewise.
837 * config/i386/i386.c: Likewise.
838 * config/sh/sh.c: Likewise.
839 * config/xtensa/xtensa.c: Likewise.
840 * config/stormy16/stormy16.c: Likewise.
841 * config/ia64/ia64.c: Likewise.
842 * config/rs6000/rs6000.c: Likewise.
843 * config/pa/pa.c: Likewise.
844 * config/mips/mips.c: Likewise.
846 2008-07-28 Simon Baldwin <simonb@google.com>
848 * c-pragma.c (handle_pragma_message): New function.
849 (init_pragma): Register handle_pragma_message.
850 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
853 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
855 PR tree-optimization/35252
856 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
857 REALPART_EXPR to be considered as same load operation.
859 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
861 PR tree-optimization/36830
862 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
863 (expressions_equal_p): Return false if only one operand is null.
865 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
867 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
868 version requirements.
870 2008-07-26 Olivier Hainque <hainque@adacore.com>
872 * collect2.c (symkind): New enum. Symbol kinds we care about.
873 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
874 code and head comment accordingly.
875 (scan_prog_file): Use symkind names instead of bare integers.
877 2008-07-25 Jan Hubicka <jh@suse.cz>
879 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
881 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
882 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
883 * dojump.c (clear_pending_stack_adjust): Likewise.
884 * print-tree.c (print_node): Ignore DECL_INLINE.
885 * tree-inline.c (inlinable_function_p): Likewise.
887 2008-07-25 Michael Meissner <gnu@the-meissners.org>
889 * doc/extend.texi (hot attribute): Document that the hot attribute
890 turns on -O3 for some ports.
891 (cold attribute): Document that the cold attribute turns on -Os
894 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
895 reflect function specific option support.
897 * target.h (struct target_option_hooks): Add fields to say whether
898 the cold attribute implies -Os and the hot attribute implies -O3.
900 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
901 By default, do not turn on -Os for cold functions.
902 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
903 not turn on -O3 for hot functions.
905 * c-common.c (handle_hot_attribute): Use target hook to determine
906 if hot functions should enable -O3.
907 (handle_cold_attribute): Use target hook to determine if cold
908 functions should enable -Os.
910 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
911 (override_options): Move disable scheduling to
912 optimization_options.
913 (optimization_options): Disable scheduling here, not
915 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
916 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
918 * config/ia64/ia64.c (ia64_override_options): Move setting
919 scheduling flags to ia64_optimization_options.
920 (ia64_optimization_options): Disable scheduling options here, and
921 not in ia64_override_options.
922 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
923 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
925 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
928 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
930 2008-07-25 Martin Jambor <mjambor@suse.cz>
932 PR tree-optimization/36926
933 * ipa-prop.c (ipa_analyze_call_uses): Call
934 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
936 2008-07-25 Joseph Myers <joseph@codesourcery.com>
938 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
939 movv2si_internal): Add mem = reg alternative.
941 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
944 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
945 DEFAULT_PCC_STRUCT_RETURN to 127.
947 2008-07-24 Jan Hubicka <jh@suse.cz>
949 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
950 (build_cgraph_edges): Likewise.
951 * cgraph.c (cgraph_node): Do not update assembler hash.
952 (cgraph_remove_node): Drop non-unit-at-a-time code.
953 * tree-pass.h (pass_O0_always_inline): Remove.
954 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
955 * toplev.c (process_options): Flag unit-at-a-time does not imply
957 * cgraphunit.c: Update comments.
958 (decide_is_function_needed): Drop non-unit-at-a-time mode.
959 (cgraph_assemble_pending_functions): Remove.
960 (cgraph_reset_node): Drop non-unit-at-a-time code.
961 (cgraph_finalize_function): Likewise.
962 (cgraph_analyze_function): Likewise.
963 (cgraph_finalize_compilation_unit): Likewise.
964 (cgraph_expand_function): Likewise.
965 (cgraph_optimize): Likesise.
966 (save_inline_function_body): Likewise.
967 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
968 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
969 * ipa-inline.c: Update comments.
970 (enum inlining_mode): remove INLINE_SPEED.
971 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
972 (cgraph_mark_inline_edge): Likewise.
973 (try_inline): Likewise.
974 (cgraph_decide_inlining_incrementally): Likewise.
975 (cgraph_gate_inlining): Remove.
976 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
977 (cgraph_gate_early_inlining): Likewise.
978 (gate_inline_passes): Remove.
979 (pass_inline_parameters, pass_ipa_inline): Remove gates.
980 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
981 pass_O0_always_inline): Remove.
982 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
983 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
984 * opts.c (no_unit_at_a_time_default): Remove.
985 (decode_options): Remove flag_unit_at_a_time reset and warning.
986 * opts.h (no_unit_at_a_time_default): Remove.
987 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
988 early in GNU dialect.
989 (merge_decls): Update comment; drop unit-at-a-time check.
990 (finish_decl): Likewise.
991 (grok_declaration): Remove flag_inline_trees code.
992 (finish_functions): Return on function returning non-void on all
994 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
995 * cfgexpand.c (expand_one_static_var): Remove.
996 (expand_one_var): Remove expand_one_static_var call.
997 (expand_used_vars_for_block): Remove flag_unit_a_time check.
998 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
999 and flag_unit_at_a-time compatibility checks.
1000 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1001 * tree-inline.c (flag_inline_trees): Remove.
1002 (inlinable_function_p): Don't check it.
1003 (expand_call_inline): Remove non-unit-at-a-time code.
1004 * tree-inline.h (flag_inline_trees): Remove.
1005 * tree-optimize.c (execute_early_local_optimizations): Remove
1006 unit-at-a-time checks.
1007 (tree_rest_of_compilation): Likewise.
1008 * combine.c (setup_incoming_promotions): Likewise.
1009 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1010 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1011 * passes.c (pass_inline_parameters): Update comments; remove
1012 O0_alwaysinline pass.
1013 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1014 (execute_one_pass): Likewise.
1015 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1016 (ix86_function_sseregparm): Likewise.
1017 * arm.c (arm_function_in_section_p): Likewise.
1018 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1019 * varpool.c: Update comments.
1020 (decide_is_variable_needed): Remove unit-at-a-time checks.
1021 (varpool_finalize_decl): Likewise.
1023 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
1025 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1027 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1029 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
1031 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1032 imp symbol extension.
1034 2008-07-23 Ian Lance Taylor <iant@google.com>
1036 * tree-vrp.c (infer_value_range): Ignore asm statements when
1037 looking for memory accesses for -fdelete-null-pointer-checks.
1039 2008-07-24 Ben Elliston <bje@au.ibm.com>
1041 * config/spu/spu-c.c (__vector_keyword): New variable.
1042 (vector_keyword): Likewise.
1043 (spu_categorize_keyword): New function.
1044 (spu_macro_to_expand): Likewise.
1045 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1046 compiling an ISO C dialect.
1048 2008-07-24 Ben Elliston <bje@au.ibm.com>
1050 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1053 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1055 * configure: Regenerate.
1056 * configure.ac: Require texinfo 4.7.
1057 * doc/install.texi: Document texinfo 4.7 requirement.
1059 2008-07-23 Martin Jambor <mjambor@suse.cz>
1061 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1062 rather than for DECL_SAVED_TREE.
1063 * ipa-prop.c: Include diagnostic.h.
1064 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1066 (ipa_detect_param_modifications): Function rewritten from scratch.
1067 (ipa_compute_jump_functions): Changed accesses to modification flags.
1068 (ipa_free_node_params_substructures): Update flags destruction.
1069 (ipa_node_duplication_hook): Update flags duplication.
1070 (ipa_print_all_params_modified): Updated flag access.
1071 * ipa-prop.h (struct ipa_param_flags): New structure.
1072 (struct ipa_node_params): New field modification_analysis_done,
1073 modified_flags changed into param_flags.
1074 (ipa_is_ith_param_modified): Changed to use new flags.
1075 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1077 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1078 ipa-cp.c and split into two functions.
1079 (ipa_print_node_jump_functions): New function.
1080 (compute_scalar_jump_functions): New function.
1081 (type_like_member_ptr_p): New function.
1082 (compute_pass_through_member_ptrs): New function.
1083 (fill_member_ptr_cst_jump_function): New function.
1084 (determine_cst_member_ptr): New function.
1085 (compute_cst_member_ptr_arguments): New function.
1086 (ipa_compute_jump_functions): Complete rewrite.
1087 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1088 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1089 (struct ipa_member_ptr_cst): New structure.
1090 (union jump_func_value): New field member_cst.
1091 * ipa-cp.c (ipcp_lat_is_insertable): New function.
1092 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1093 jump function types.
1094 (ipcp_print_all_lattices): Slight fprintf rearrangement.
1095 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1096 instead of ipcp_print_all_jump_functions.
1097 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1098 only for replacable scalars.
1100 * doc/invoke.texi (Optimize options): Add description of
1101 -findirect-inlining.
1102 * common.opt (flag_indirect_inlining): New flag.
1103 * opts.c (decode_options): Set flag_indirect_inlining when
1106 * ipa-inline.c: Include ipa-prop.h.
1107 (inline_indirect_intraprocedural_analysis): New function.
1108 (inline_generate_summary): Allocate parameter and argument info
1109 structures, call inline_indirect_intraprocedural_analysis on each
1110 node when doing indirect inlining and deallocate indirect inlining
1111 data structures in the end.
1112 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1113 (free_all_ipa_structures_after_iinln): New function.
1114 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1116 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1118 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1119 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1120 of computing the frequency separately.
1121 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1122 of computing the frequency separately.
1123 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1124 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1125 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1126 (ipa_get_stmt_member_ptr_load_param): New function.
1127 (ipa_is_ssa_with_stmt_def): New function.
1128 (ipa_note_param_call): New function.
1129 (ipa_analyze_call_uses): New function.
1130 (ipa_analyze_stmt_uses): New function.
1131 (ipa_analyze_params_uses): New function.
1132 (ipa_free_node_params_substructures): Also free the param_calls linked
1134 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1135 (ipa_print_node_param_flags): New function.
1136 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1137 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1138 * ipa-prop.h (struct ipa_param_flags): New field called.
1139 (struct ipa_param_call_note): New structure.
1140 (struct ipa_node_params): New fields param_calls and
1142 (ipa_is_ith_param_called): New function.
1143 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1144 ipa_analyze_params_uses and dump parameter flags.
1146 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1147 ipa_propagate_indirect_call_infos if performing indirect inlining,
1148 pass a new parameter new_edges to it.
1149 (add_new_edges_to_heap): New fucntion.
1150 (cgraph_decide_inlining_of_small_functions): New vector
1151 new_indirect_edges for newly found indirect edges , call
1152 ipa_propagate_indirect_call_infos after inlining.
1153 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1154 inlining if performing indirect inlining. Call
1155 free_all_ipa_structures_after_iinln when doing so too.
1156 (inline_generate_summary): Do not call
1157 free_all_ipa_structures_after_iinln here.
1158 * ipa-prop.c (update_jump_functions_after_inlining): New function.
1159 (print_edge_addition_message): New function.
1160 (update_call_notes_after_inlining): New function.
1161 (propagate_info_to_inlined_callees): New function.
1162 (ipa_propagate_indirect_call_infos): New function.
1163 * ipa-prop.h: Include cgraph.h
1164 (struct ipa_param_call_note): Fields reordered, new field processed.
1165 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1167 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1168 rediscovered call statements.
1169 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1170 (dump_cgraph_node): Dump also the indirect_call flag.
1171 (cgraph_clone_edge): Copy also the indirect_call flag.
1172 * tree-inline.c (copy_bb): Do not check for fndecls from call
1173 expressions, check for edge availability when moving clones.
1174 (get_indirect_callee_fndecl): New function.
1175 (expand_call_inline): If callee declaration is not apprent from
1176 the statement, try calling get_indirect_callee_fndecl. Do not
1177 issue warnings or call sorry when not inlinings an indirect edge.
1178 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1180 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1181 bit more frandly to matching.
1182 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1183 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1184 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1186 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1189 * opth-gen.awk: Suppress function specific features when building
1191 * optc-gen.awk: Ditto.
1193 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1196 * diagnostic.c (pedwarn): Add opt parameter.
1198 * c-tree.h (pedwarn_init): Add opt parameter.
1199 (pedwarn_c90): Likewise.
1200 (pedwarn_c99): Likewise.
1201 * c-errors.c (pedwarn_c99): Likewise.
1202 (pedwarn_c90): Likewise.
1203 * toplev.h (pedwarn): Update declaration.
1204 (pedwarn0): Declare.
1205 * c-lex.c: All calls to pedwarn changed.
1206 * builtins.c: All calls to pedwarn changed.
1207 * toplev.c: All calls to pedwarn changed.
1208 * c-decl.c: All calls to pedwarn changed.
1209 * c-typeck.c: All calls to pedwarn changed.
1210 * c-common.c: All calls to pedwarn changed.
1211 * c-parser.c: All calls to pedwarn changed.
1213 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1214 Karthik Kumar <karthikkumar@gmail.com>
1216 * attribs.c (file scope): Include c-common.h.
1217 (decl_attributes): Add support for #pragma GCC optimize and
1220 * targhooks.c (default_can_inline_p): New function that is the
1221 default for the TARGET_CAN_INLINE_P target hook.
1223 * targhooks.h (default_can_inline_p): Add declaration.
1225 * tree.c (cl_optimization_node): New static tree for building
1226 OPTIMIZATION_NODE tree.
1227 (cl_target_option_node): New static tree for building
1228 TARGET_OPTION_NODE tree.
1229 (cl_option_hash_table): New hash table for hashing
1230 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1231 (cl_option_hash_hash): New function to provide the hash value for
1232 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1233 (cl_option_hash_eq): New function to provide an equality test for
1234 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1235 (tree_code_size): Add support for OPTIMIZATION_NODE and
1236 TARGET_OPTION_NODE trees.
1237 (tree_code_structure): Add support for OPTIMIZATION_NODE and
1238 TARGET_OPTION_NODE trees.
1239 (build_optimization_node): Build a tree that has all of the
1240 current optimization options.
1241 (build_target_option_node): Build a tree that has the target
1242 options that might be changed on a per function basis.
1244 * tree.h (file scope): Include options.h.
1245 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1246 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1247 (TREE_OPTIMIZATION): Ditto.
1248 (TREE_TARGET_SPECIFIC): Ditto.
1249 (struct tree_function_decl): Add fields for remembering the
1250 current optimization options and target specific options.
1251 (struct tree_optimization_option): New tree variant that remembers
1252 the optimization options.
1253 (struct tree_target_option): New tree variant that remembers the
1254 target specific flags that might change for compiling a particular
1256 (union tree_node): Include tree_optimization_option and
1257 tree_target_option fields.
1258 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1259 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1260 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1261 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1262 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1263 optimization and target options.
1264 (optimization_default_node): New macro to refer to global_trees
1266 (optimization_current_node): Ditto.
1267 (optimization_cold_node): Ditto.
1268 (optimization_hot_node): Ditto.
1269 (target_option_default_node): Ditto.
1270 (target_option_current_node): Ditto.
1271 (current_option_pragma): Ditto.
1272 (current_optimize_pragma): Ditto.
1274 * target.h (struct gcc_target): Add valid_option_attribute_p,
1275 target_option_save, target_option_restore, target_option_print,
1276 target_option_pragma_parse, and can_inline_p hooks.
1278 * toplev.h (parse_optimize_options): Add declaration.
1279 (fast_math_flags_struct_set_p): Ditto.
1281 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1282 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1285 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1286 tree_can_inline_p hook to see if one function can inline another.
1287 (cgraph_decide_inlining): Ditto.
1288 (cgraph_decide_inlining_incrementally): Ditto.
1290 * opts.c (decode_options): Add support for running multiple times
1291 to allow functions with different target or optimization options
1292 than was specified on the command line.
1293 (fast_math_flags_struct_set_p): New function that is similar to
1294 fast_math_flags_set_p, except it uses the values in the
1295 cl_optimization structure instead of global variables.
1297 * optc-gen.awk: Add support for TargetSave to allow a back end to
1298 declare new fields that need to be saved when using function
1299 specific options. Include flags.h and target.h in the options.c
1300 source. Add support for Save to indicate which options can be set
1301 for individual functions. Generate cl_optimize_save,
1302 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1303 cl_target_option_restore, cl_target_option_print functions to
1304 allow functions to use different optimization or target options.
1306 * opt-functions.awk (var_type_struct): Return the type used for
1307 storing the field in a structure.
1309 * opth-gen.awk: Add support for TargetSave to allow a back end to
1310 declare new fields that need to be saved when using function
1311 specific options. Add support for Save to indicate which options
1312 can be set for individual functions. Only generate one extern for
1313 Mask fields. Generate cl_optimization and cl_target_option
1314 structures to remember optimization and target options.
1316 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1317 collecting new tree nodes.
1318 (TS_TARGET_OPTION): Ditto.
1320 * c-decl.c (merge_decls): Merge function specific target and
1321 optimization options.
1323 * function.c (invoke_set_current_function_hook): If the function
1324 uses different optimization options, change the global variables
1327 * coretypes.h (struct cl_optimization): Add forward reference.
1328 (struct cl_target_option): Ditto.
1330 * c-pragma.c (option_stack): New static vector to remember the
1331 current #pragma GCC option stack.
1332 (handle_pragma_option): New function to support #pragma GCC option
1333 to change target options.
1334 (optimize_stack): New static vector to remember the current
1335 #pragma GCC optimize stack.
1336 (handle_pragma_optimize): New function to support #pragma GCC
1337 optimize to change optimization options.
1338 (init_pragma): Add support for #pragma GCC optimize and #pragma
1341 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1342 optimization options.
1343 (TARGET_OPTION_NODE): New tree code for remembering certain target
1346 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1347 TARGET_OPTION_NODE trees.
1349 * common.opt (-O): Add Optimization flag.
1351 (-fmath-errno): Ditto.
1352 (-falign-functions): Add UInteger flag to make sure flag gets full
1353 int in cl_optimization structure.
1354 (-falign-jumps): Ditto.
1355 (-falign-labels): Ditto.
1356 (-falign-loops): Ditto.
1357 (-fsched-stalled-insns): Ditto.
1358 (-fsched-stalled-insns-dep): Ditto.
1360 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1362 (TARGET_OPTION_SAVE): Ditto.
1363 (TARGET_OPTION_RESTORE): Ditto.
1364 (TARGET_OPTION_PRINT): Ditto.
1365 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1366 (TARGET_CAN_INLINE_P): Ditto.
1367 (TARGET_INITIALIZER): Add new hooks.
1369 * tree-inline.c (tree_can_inline_p): New function to determine
1370 whether one function can inline another. Check if the functions
1371 use compatible optimization options, and also call the backend
1374 * tree-inline.h (tree_can_inline_p): Add declaration.
1376 * c-common.c (c_common_attribute): Add support for option and
1377 optimize attributes.
1378 (handle_option_attribute): Add support for the option attribute to
1379 allow the user to specify different target options for compiling a
1381 (handle_optimize_attribute): Add support for the optimize
1382 attribute to allow the user to specify different optimization
1383 options for compiling a specific function.
1384 (handle_hot_attribute): Turn on -O3 optimization for this one
1385 function if it isn't the default optimization level.
1386 (handle_cold_attribute): Turn on -Os optimization for this one
1387 function if it insn't the default optimization.
1388 (const_char_p): New const char * typedef.
1389 (optimize_args): New static vector to remember the optimization
1391 (parse_optimize_options): New function to set up the optimization
1392 arguments from either the optimize attribute or #pragma GCC optimize.
1394 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1395 (builtin_define_std): Ditto.
1397 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1398 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
1399 (x86_64-*-*): Ditto.
1401 * Makefile.in (TREE_H): Add options.h.
1402 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1404 * doc/extend.texi (option attribute): Document new attribute.
1405 (optimize attribute): Ditto.
1406 (hot attribute): Document hot attribute sets -O3.
1407 (cold attribute): Document cold attribute sets -Os.
1408 (#pragma GCC option): Document new pragma.
1409 (#pragma GCC optimize): Ditto.
1411 * doc/options.texi (TargetSave): Document TargetSave syntax.
1412 (UInteger): Document UInteger must be used for certain flags.
1413 (Save): Document Save option to create target specific options
1414 that can be saved/restored on a function specific context.
1416 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
1417 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1419 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
1420 (TARGET_OPTION_SAVE): Ditto.
1421 (TARGET_OPTION_RESTORE): Ditto.
1422 (TARGET_OPTION_PRINT): Ditto.
1423 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1424 (TARGET_CAN_INLINE_P): Ditto.
1426 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1428 (-mfpmath=both): Ditto.
1430 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1431 Karthik Kumar <karthikkumar@gmail.com>
1433 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
1434 (TARGET_POPCNT): Ditto.
1435 (TARGET_SAHF): Ditto.
1436 (TARGET_AES): Ditto.
1437 (TARGET_PCLMUL): Ditto.
1438 (TARGET_CMPXCHG16B): Ditto.
1439 (TARGET_RECIP): Move switch into target_flags.
1440 (TARGET_FUSED_MADD): Ditto.
1441 (ix86_arch_features): Make an unsigned char type.
1442 (ix86_tune_features): Ditto.
1443 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1444 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1445 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1447 * config/i386/i386.opt (arch): New TargetSave field to define
1448 fields that need to be saved for function specific option support.
1451 (branch_cost): Ditto.
1452 (ix86_isa_flags_explicit): Ditto.
1453 (tune_defaulted): Ditto.
1454 (arch_specified): Ditto.
1455 (-m128-long-double): Add Save flag to save option for target
1456 specific option support.
1458 (-maccumulate-outgoing-args): Ditto.
1459 (-malign-double): Ditto.
1460 (-malign-stringops): Ditto.
1461 (-mfancy-math-387): Ditto.
1462 (-mhard-float): Ditto.
1464 (-minline-all-stringops): Ditto.
1465 (-minline-stringops-dynamically): Ditto.
1466 (-mms-bitfields): Ditto.
1467 (-mno-align-stringops): Ditto.
1468 (-mno-fancy-math-387): Ditto.
1469 (-mno-push-args): Ditto.
1470 (-mno-red-zone): Ditto.
1471 (-mpush-args): Ditto.
1472 (-mred-zone): Ditto.
1474 (-msseregparm): Ditto.
1475 (-mstack-arg-probe): Ditto.
1490 (-mrecip): Move flag into target_flags.
1492 (-mno-fused-madd): Ditto.
1493 (-mfused-madd): Ditto.
1494 (-mabm): Move flag into ix86_isa_flags.
1501 * config/i386/i386-c.c: New file for #pragma support.
1502 (ix86_target_macros_internal): New function to #define or #undef
1503 target macros based when the user uses the #pragma GCC option to
1504 change target options.
1505 (ix86_pragma_option_parse): New function to add #pragma GCC option
1507 (ix86_target_macros): Move defining the target macros here from
1508 TARGET_CPU_CPP_BUILTINS in i386.h.
1509 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1510 defined, initialize any subtarget #pragmas.
1512 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1513 REGISTER_TARGET_PRAGMAS.
1515 * config/i386/t-i386: New file for x86 dependencies.
1516 (i386.o): Make dependencies mirror the include files used.
1517 (i386-c.o): New file, add dependencies.
1519 * config/i386/i386-protos.h (override_options): Add bool argument.
1520 (ix86_valid_option_attribute_tree): Add declaration.
1521 (ix86_target_macros): Ditto.
1522 (ix86_register_macros): Ditto.
1524 * config/i386/i386.c (ix86_tune_features): Move initialization of
1525 the target masks to initial_ix86_tune_features to allow functions
1526 to have different target options. Make type unsigned char,
1527 instead of unsigned int.
1528 (initial_ix86_tune_features): New static vector to hold processor
1529 masks for the tune variables.
1530 (ix86_arch_features): Move initialization of the target masks to
1531 initial_ix86_arch_features to allow functions to have different
1532 target options. Make type unsigned char, instead of unsigned int.
1533 (initial_ix86_arch_features): New static vector to hold processor
1534 masks for the arch variables.
1535 (enum ix86_function_specific_strings): New enum to describe the
1536 string options used for attribute((option(...))).
1537 (ix86_target_string): New function to return a string that
1538 describes the target options.
1539 (ix86_debug_options): New function to print the current options in
1541 (ix86_function_specific_save): New function hook to save the
1542 function specific global variables in the cl_target_option structure.
1543 (ix86_function_specific_restore): New function hook to restore the
1544 function specific variables from the cl_target_option structure to
1545 the global variables.
1546 (ix86_function_specific_print): New function hook to print the
1547 target specific options in the cl_target_option structure.
1548 (ix86_valid_option_attribute_p): New function hook to validate
1549 attribute((option(...))) arguments.
1550 (ix86_valid_option_attribute_tree): New function that is common
1551 code between attribute((option(...))) and #pragma GCC option
1552 support that parses the options and returns a tree holding the options.
1553 (ix86_valid_option_attribute_inner_p): New helper function for
1554 ix86_valid_option_attribute_tree.
1555 (ix86_can_inline_p): New function hook to decide if one function
1556 can inline another on a target specific basis.
1557 (ix86_set_current_function); New function hook to switch target
1558 options if the user used attribute((option(...))) or #pragma GCC
1560 (ix86_tune_defaulted): Move to static file scope from
1562 (ix86_arch_specified): Ditto.
1563 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1565 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1566 (OPTION_MASK_ISA_ABM_SET): Ditto.
1567 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1568 (OPTION_MASK_ISA_CX16_SET): Ditto.
1569 (OPTION_MASK_ISA_SAHF_SET): Ditto.
1570 (OPTION_MASK_ISA_AES_UNSET): Ditto.
1571 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1572 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1573 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1574 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1575 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1576 (struct ptt): Move to static file scope from override_options.
1577 (processor_target_table): Ditto.
1579 (ix86_handle_option): Add support for options that are now isa options.
1580 (override_options): Add support for declaring functions that
1581 support different target options than were specified on the
1582 command line. Move struct ptt, processor_target_table, cpu_names,
1583 ix86_tune_defaulted, ix86_arch_specified to static file scope.
1584 Add bool argument. Fix up error messages so the appropriate error
1585 is given for either command line or attribute.
1586 (ix86_previous_fndecl): New static to remember previous function
1587 declaration to see if we need to change target options.
1588 (ix86_builtins_isa): New array to record the ISA of each builtin
1590 (def_builtin): Always create the builtin function, even if the
1591 current ISA doesn't support it.
1592 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1593 tests for those builtins.
1594 (ix86_init_builtins): Remove TARGET_MMX test for calling
1595 ix86_init_mmx_sse_builtins.
1596 (ix86_expand_builtin): If the current ISA doesn't support a given
1597 builtin, signal an error.
1598 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1599 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1600 (TARGET_OPTION_SAVE): Ditto.
1601 (TARGET_OPTION_RESTORE): Ditto.
1602 (TARGET_OPTION_PRINT): Ditto.
1603 (TARGET_CAN_INLINE_P): Ditto.
1605 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1607 * c-typeck.c (build_external_ref): Don't call assemble_external.
1608 * final.c (output_operand): Call assemble_external.
1610 2008-07-21 DJ Delorie <dj@redhat.com>
1612 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1613 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1615 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1617 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1618 original insn and splitter contents into ...
1619 ("*div<mode>3_fast"): ... this new pattern. Enable only if
1620 flag_unsafe_math_optimizations. Add dummy scratch register.
1621 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
1622 !flag_unsafe_math_optimizations. Returns number with next
1623 highest magnitude if this is still less or equal to the true
1624 quotient in magnitude.
1626 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
1628 * Makefile.in: Replace toplev.h with TOPLEV_H.
1629 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1630 * c-lex.c (fe_file_change): Don't set in_system_header.
1631 * c-parser.c (c_token): Remove in_system_header.
1632 (c_lex_one_token): Don't set in_system_header.
1633 (c_parser_set_source_position_from_token): Don't set in_system_header.
1634 * diagnostic.c (diagnostic_report_diagnostic): Use location from
1637 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1638 * flags.h (in_system_header): Remove.
1639 * function.c (saved_in_system_header): Remove.
1640 (push_cfun): Don't set in_system_header.
1641 (pop_cfun): Don't set in_system_header.
1642 (push_struct_function): Don't set in_system_header.
1643 * input.h (expanded_location): Add sysp.
1644 (in_system_header_at): New.
1645 (in_system_header): New.
1646 * toplev.c (in_system_header): Remove.
1647 * toplev.h: Include input.h
1649 * tree-cfg.c (execute_warn_function_return): Call warning_at.
1650 * tree-ssa.c (warn_uninit): Call warning_at.
1651 (warn_uninitialized_var): Update calls to warn_uninit.
1652 (warn_uninitialized_phi): Update calls to warn_uninit.
1653 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1654 (expand_location): Initialize xloc.sysp.
1655 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1656 (tree_decl_with_vis): Remove in_system_header_flag.
1658 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1661 * recog.c (asm_operand_ok): Change the order of the extra
1662 memory constraint checks.
1664 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1667 * tree-switch-conversion.c (build_one_array): Call
1668 varpool_mark_needed_node and varpool_finalize_decl
1669 instead of assemble_variable.
1671 2008-07-19 Jan Hubicka <jh@suse.cz>
1673 * cgraph.c (cgraph_add_new_function): Do early local passes.
1674 * tree-nrv.c (gate_pass_return_slot): New gate.
1675 (pass_nrv): Add the gate.
1676 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1678 (coalesce_ssa_name): Coalesce SSA names.
1679 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1680 not optimizing so unused user vars remains visible.
1681 * common.opt (flag_tree_ter): Always enable by default.
1682 * tree-ssa-ter.c: Include flags.h
1683 (is_replaceable_p): Check that locations match; when aliasing is missing
1684 be conservative about loads.
1685 * tree-optimize.c (gate_init_datastructures): Remove.
1686 (pass_init_datastructures): New.
1687 * passes.c: Reorder passes so we always go into SSA.
1689 2008-07-19 Jan Hubicka <jh@suse.cz>
1691 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1692 * doc/invoke.texi (--combine): Likewise.
1693 (-finline-functions-called-once): Update levels when enabled.
1694 (-funit-at-a-time): Document new behaviour.
1695 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1696 -fno-section-anchors when disabled explicitly.
1697 (inline params): They are not ignored now.
1698 (precompiled headers): Remove unit-at-a-time as being incompatible.
1699 * opts.c (decode_options): Handle unit-at-a-time as alias;
1700 imply -fno-section-anchors when toplevel reorder is disabled
1702 * common.opt (ftoplevel-reorder): Set default value to 2.
1703 (funit-at-a-time): Set default value to 1.
1704 * config/rs6000/rs6000.c (optimization_options): Set section anchors
1707 2008-07-19 Jan Hubicka <jh@suse.cz>
1709 * builtins.c (expand_builtin_int_roundingfn,
1710 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1713 2008-07-19 Richard Guenther <rguenther@suse.de>
1716 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1717 * tree-ssa-sccvn.c (get_constant_value_id): New function.
1718 * tree-ssa-pre.c (get_expr_value_id): For newly created
1719 constant value-ids make sure to add the expression to its
1722 2008-07-19 Jakub Jelinek <jakub@redhat.com>
1725 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1726 return value of the builtin is ignored.
1728 2008-07-19 Olivier Hainque <hainque@adacore.com>
1730 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1731 bits, a C conformant malloc implementation has to provide.
1732 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1734 2008-07-19 Joseph Myers <joseph@codesourcery.com>
1738 * reload.c (find_reloads_subreg_address): Only reload address if
1739 reloaded == 0, not for reloaded != 1.
1742 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1743 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1744 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1745 m32c_legitimize_reload_address.
1747 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1748 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1749 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1751 2008-07-19 Olivier Hainque <hainque@adacore.com>
1753 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1754 argument, saying whether nested array are to be collapsed
1755 into a single array type DIE with multiple subscripts.
1756 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1757 issues, centralize the nested array types collapsing control and
1758 disable the transformation for Ada.
1760 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
1763 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1765 (x86_64_shift_adj_2): New expander.
1766 (x86_64_shift_adj_3): Ditto.
1767 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1768 to split TImode operands.
1769 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1770 (ix86_split_lshr): Ditto.
1772 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
1774 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1775 and __CHAR32_TYPE__.
1776 * c-typeck.c (digest_init): Support char16_t and char32_t.
1777 (set_nonincremental_init_from_string): Idem.
1779 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1782 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1783 PREFERRED_STACK_BOUNDARY.
1784 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1786 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1789 * function.c (locate_and_pad_parm): Cap boundary earlier.
1791 2008-07-17 Julian Brown <julian@codesourcery.com>
1793 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1794 no-op for targets which don't use DLLs.
1796 2008-07-17 Martin Jambor <mjambor@suse.cz>
1798 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1799 that nodes are relevant by examining the node->analyzed flag.
1800 (ipcp_init_stage): Check which nodes are relevant, assert that the
1801 relevant ones are also required.
1802 (ipcp_propagate_stage): Check on the side arrays are properly
1804 (ipcp_print_all_jump_functions): Make sure not to touch any node
1805 that is not analyzed or an edge that does not have a corresponding
1806 entry in the on-the-side vectors.
1807 (ipcp_function_scale_print): Likewise.
1808 (ipcp_update_callgraph): Check that the node is relevant.
1809 (ipcp_insert_stage): Check that the node is relevant. Check there is
1810 an info for every node and edge.
1811 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1812 (ipa_print_all_tree_maps): Likewise and a new variable info.
1813 (ipa_print_all_params_modified): Likewise.
1814 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1816 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
1819 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1821 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
1823 PR rtl-optimization/36753
1824 * fwprop.c (use_killed_between): Don't shortcut
1825 single-definition global registers.
1827 2008-07-16 Jan Hubicka <jh@suse.cz>
1829 * cgraph.h (varpool_empty_needed_queue): Declare.
1830 * cgraphunit.c (output_in_order): Mark all variables as needed;
1832 * varpool.c (varpool_assemble_node): Update debug queue.
1833 (varpool_assemble_pending_decls): Don't do it here.
1834 (varpool_empty_needed_queue): New function.
1836 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1838 * recog.c (peephole2_optimize): Fix formatting.
1840 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1842 * c-pch.c (get_ident): Avoid C++ keywords.
1843 * combine-stack-adj.c (single_set_for_csa): Likewise.
1844 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1845 output_asm_insn): Likewise.
1846 * reload.c (push_secondary_reload, find_reusable_reload,
1847 push_reload, combine_reloads, find_reloads,
1848 debug_reload_to_stream): Likewise.
1849 * reload.h (struct reload): Likewise.
1850 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1851 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1852 emit_output_reload_insns): Likewise.
1853 * targhooks.c (default_secondary_reload): Likewise.
1854 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1856 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1858 * recog.c (validate_change_1, validate_change,
1859 validate_unshare_change, validate_replace_rtx_1, struct
1860 funny_match, constrain_operands, peephole2_optimize): Avoid C++
1862 * reload.c (push_secondary_reload, secondary_reload_class,
1863 scratch_reload_class, find_valid_class, find_reusable_reload,
1864 push_reload, find_dummy_reload, find_reloads_address_1,
1865 find_reloads_address_part, find_equiv_reg): Likewise.
1866 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1867 choose_reload_regs): Likewise.
1868 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1870 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1871 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1872 * sched-rgn.c (concat_INSN_LIST): Likewise.
1873 * stor-layout.c (mode_for_size, mode_for_size_tree,
1874 smallest_mode_for_size): Likewise.
1876 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1878 * cfg.c (dump_reg_info): Avoid C++ keywords.
1879 * dwarf2asm.c (dw2_force_const_mem,
1880 dw2_asm_output_encoded_addr_rtx): Likewise.
1881 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1882 * expmed.c (expand_shift): Likewise.
1883 * global.c (find_reg): Likewise.
1884 * graph.c (draw_edge): Likewise.
1885 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1886 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1887 widen_clz, widen_bswap, expand_parity, expand_unop,
1888 emit_cmp_and_jump_insn_1): Likewise.
1889 * postreload.c (reload_cse_simplify_operands): Likewise.
1890 * ra.h (add_neighbor): Likewise.
1891 * reg-stack.c (remove_regno_note, change_stack): Likewise.
1892 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1893 record_reg_classes, copy_cost, record_address_regs,
1894 invalid_mode_change_p): Likewise.
1895 * regrename.c (regrename_optimize, scan_rtx_reg,
1896 dump_def_use_chain, find_oldest_value_reg,
1897 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1899 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1901 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1902 MASK_POWERPC64 for power4 in previous commit.
1904 2008-07-16 Olivier Hainque <hainque@adacore.com>
1906 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1907 instead of bare conversion to cast const-ness away.
1909 2008-07-16 Anatoly Sokolov <aesok@post.ru>
1911 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1912 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1913 * config/xtensa/xtensa.c (xtensa_function_value): New function.
1914 (TARGET_FUNCTION_VALUE): Define.
1916 2008-07-16 David Edelsohn <edelsohn@gnu.org>
1918 * config/rs6000/rs6000.c (processor_target_table): Add
1919 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1921 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1924 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1925 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1926 m32c_legitimize_reload_address.
1928 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
1930 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1931 DECL_IN_SYSTEM_HEADER in sync.
1933 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
1935 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1936 * tree-ssa-pre.c (pre_expr_eq): Ditto
1937 (get_constant_for_value_id): Take a type as an argument.
1938 (fully_constant_expression): Pass in type.
1939 (find_or_generate_expression): Short circuit constant case.
1940 (create_expression_by_pieces): Remove special casing of
1942 (do_regular_insertion): Short circuit constant case.
1943 (do_partial_partial_insertion): Ditto.
1945 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1948 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1950 2008-07-15 Bob Wilson <bob.wilson@acm.org>
1952 * config/xtensa/libgcc-xtensa.ver: New file.
1953 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1955 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1957 * df-problems.c (df_set_note): Avoid C++ keywords.
1958 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1959 * dse.c (record_store, remove_useless_values): Likewise.
1960 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1961 gen_reg_rtx_offset, operand_subword, change_address_1,
1962 change_address, adjust_address_1, offset_address,
1963 widen_memory_access, emit_copy_of_insn_after): Likewise.
1964 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1965 * fwprop.c (should_replace_address, propagate_rtx_1,
1966 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1968 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1969 gcse_emit_move_after, update_ld_motion_stores): Likewise.
1970 * lcm.c (compute_insert_delete, pre_edge_lcm,
1971 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1972 * lower-subreg.c (resolve_reg_notes): Likewise.
1973 * mode-switching.c (optimize_mode_switching): Likewise.
1975 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1977 * bt-load.c (add_btr_def, migrate_btr_def,
1978 branch_target_load_optimize): Avoid C++ keywords.
1979 * caller-save.c (insert_restore, insert_save, insert_one_insn):
1981 * combine.c (subst, simplify_set, make_extraction,
1982 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1983 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1984 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1986 2008-07-15 Richard Guenther <rguenther@suse.de>
1989 * c-common.c (strict_aliasing_warning): Do not warn for
1990 TYPE_REF_CAN_ALIAS_ALL pointers.
1991 (c_common_get_alias_set): may_alias types are not special.
1992 * tree.c (build_pointer_type_for_mode): Look up the may_alias
1993 attribute and set can_ref_all accordingly.
1994 (build_reference_type_for_mode): Likewise.
1995 * doc/extend.texi (may_alias): Clarify.
1997 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2000 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2001 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2003 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2006 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2007 gcc_assert, instead call output_operand_lossage.
2009 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
2011 * builtins.c (std_canonical_va_list): Treat structure based
2014 2008-07-15 Ben Elliston <bje@au.ibm.com>
2016 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2018 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
2020 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2023 2008-07-14 Jan Hubicka <jh@suse.cz>
2025 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2026 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2027 fix predicates and constraints.
2028 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2029 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2031 2008-07-14 Doug Kwan <dougkwan@google.com>
2033 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2034 additional option file arm/eabi.opt.
2035 * config/arm/eabi.h (File): New configuration file for EABI targets.
2036 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2037 SUBSUBTARGET_EXTRA_SPECS.
2038 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2039 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2040 from STARTFILE_SPEC so that it can be referenced in an override.
2041 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2042 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2043 can be referenced in an override.
2044 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2045 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2046 so that it can be referenced in an override.
2047 (LINK_SPEC): Use BPABI_LINK_SPEC.
2048 * config/arm/eabi.opt (File): New.
2050 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2052 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2053 (FIXED_VALUE_H): New variable.
2054 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2055 input.h, fixed-value.h.
2056 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2057 (BASIC_BLOCK_H): Use $(BITMAP_H).
2058 (FUNCTION_H): Add varray.h.
2059 (IPA_REFERENCE_H): Use $(BITMAP_H).
2060 (CGRAPH_H): Add $(BASIC_BLOCK_H).
2061 (DF_H): Use $(BITMAP_H).
2062 (GGC_H): Add statistics.h.
2064 (INSN_ATTR_H): Use it.
2065 (SYSTEM_H): Add safe-ctype.h, filenames.h.
2067 (SYMTAB_H): Add $(OBSTACK_H).
2068 (CPP_INTERNAL_H): New.
2069 (TREE_DUMP_H): Add tree-pass.h.
2070 (TREE_FLOW_H): Use $(BITMAP_H)
2071 (PRETTY_PRINT_H): Use $(INPUT_H).
2072 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2075 (many object files): Fix lots of header dependencies throughout.
2077 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2079 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2081 (s-gtyp-input): Use them to write tmp-gi.list.
2082 (echo_to_gi.list): Remove.
2084 2008-07-14 Richard Guenther <rguenther@suse.de>
2086 * tree-ssa-sccvn.c (pre_info): Remove.
2087 (switch_to_PRE_table): Likewise.
2088 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
2089 (set_hashtable_value_ids): Do not create value-ids for the
2091 (run_scc_vn): Remove double test. Remove bogus special-case
2092 in value-number printing.
2093 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2094 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2096 * tree-flow-inline.h (get_value_handle): Remove.
2097 * tree-flow.h (get_value_handle): Remove.
2099 2008-07-14 Martin Jambor <mjambor@suse.cz>
2101 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2102 in which we generate arithmetics is not a subrange.
2104 2008-07-14 Martin Jambor <mjambor@suse.cz>
2106 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2108 2008-07-14 Richard Guenther <rguenther@suse.de>
2110 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2112 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
2115 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2116 reload for symbol refs moved to r0 with -fPIC.
2117 (legitimize_pic_address): Use the target register as temporary
2119 (emit_symbolic_move): Adjust comment.
2120 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2123 2008-07-14 Ben Elliston <bje@au.ibm.com>
2125 * c-common.h (C_CPP_HASHNODE): New macro.
2126 * coretypes.h (struct cpp_token): Forward declare.
2127 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2128 the context-sensitive keyword method.
2129 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2130 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2131 expand_bool_pixel): New.
2132 (altivec_categorize_keyword): New function.
2133 (init_vector_keywords): New function.
2134 (rs6000_macro_to_expand): Likewise.
2135 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2136 compiling an ISO C dialect.
2138 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
2140 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2141 (create_expression_by_pieces): Fix typo.
2142 (do_regular_insertion): Use debug counter here too.
2144 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
2147 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2148 CONST_OK_FOR_LETTER_P. All port-local users changed.
2149 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2150 implement Kp matching power-of-two.
2151 (CONSTRAINT_LEN): Define to match.
2152 * config/cris/cris.md: Replace all use of constraint K with Kc.
2153 ("*btst*): Use Kp for operand 0 of last alternative.
2155 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2158 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2161 2008-07-13 Jan Hubicka <jh@suse.cz>
2163 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2166 2008-07-13 Richard Guenther <rguenther@suse.de>
2169 * langhooks.c (lhd_print_error_function): Deal with recursive
2172 2008-07-12 Jan Hubicka <jh@suse.cz>
2174 * cgraph.c (assembler_name_hash): New static var.
2175 (hash_node_by_assembler_name, eq_assembler_name): New.
2176 (cgraph_node_for_asm): Use hashtable.
2177 (cgraph_remove_node): Maintain hashtable.
2178 (change_decl_assembler_name): Sanity check that names are not changing
2179 after aliasing was processed.
2180 * cgraph.h (varpoon_node): Add next GGC marker.
2181 * tree.c (decl_assembler_name_equal): Constify.
2182 (decl_assembler_name_hash): New.
2183 * tree.h (decl_assembler_name_equal): Constify.
2184 (decl_assembler_name_hash): Update.
2186 2008-07-12 David Daney <ddaney@avtrex.com>
2188 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2191 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2193 * doc/md.texi: Document the MIPS "v" constraint.
2194 * config/mips/mips.h (reg_class): Revert last change.
2195 (REG_CLASS_NAMES): Likewise.
2196 (REG_CLASS_CONTENTS): Likewise.
2197 * config/mips/mips.c (mips_regno_to_class): Likewise.
2198 * config/mips/constraints.md (v): Likewise, but add documentation.
2199 Add a comment to say that this constraint should not be used in
2202 2008-07-11 DJ Delorie <dj@redhat.com>
2204 * config/h8300/h8300.md (length): Fix branch offset limit.
2206 2008-07-11 Anatoly Sokolov <aesok@post.ru>
2208 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2209 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2210 (avr_hard_regno_scratch_ok): New function.
2211 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2212 * config/avr/avr.md (all peepholes that request a scratch register):
2213 Remove avr_peep2_scratch_safe use.
2215 2008-07-11 Tom Tromey <tromey@redhat.com>
2216 Ian Lance Taylor <iant@google.com>
2218 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2219 (struct c_common_resword): Define.
2220 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2221 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2222 (c_common_reswords, num_c_common_reswords): Declare.
2223 * c-common.c (c_common_reswords): New global const array.
2224 (num_c_common_reswords): New const int.
2225 * c-parser.c (struct resword, reswords): Don't define.
2226 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2227 (c_parse_init): Clarify mask code. Use c_common_reswords rather
2228 than reswords. If warning about C++ keywords, give them a special
2230 (c_lex_one_token): Warn about C++ keywords. Call
2231 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2232 (c_parser_external_declaration): Look for RID_xxx rather than
2233 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2234 (c_parser_statement_after_labels): Likewise.
2235 (c_parser_objc_class_instance_variables): Likewise.
2236 (c_parser_objc_class_declaration): Likewise.
2237 (c_parser_objc_try_catch_statement): Likewise.
2238 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2239 (declspecs_add_type): Likewise.
2241 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
2243 * ggc-page.c (alloc_page):
2244 Substituting xmalloc, xcalloc with
2245 XNEWVEC and XCNEWVAR macros which add the
2248 2008-07-11 Richard Guenther <rguenther@suse.de>
2250 PR tree-optimization/36765
2251 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2252 aliases from HEAP vars to SMTs.
2254 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2256 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2257 * configure.ac (loose_warn): Move -Wc++-compat from here...
2258 (strict_warn): ...to here.
2259 * configure: Regenerate.
2261 2008-07-10 Joseph Myers <joseph@codesourcery.com>
2263 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2264 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2265 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2266 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2267 excluding more specific h8300-*-* and sh-*-* targets.
2269 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
2271 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2273 (execute_pre): Call loop_optimizer_finalize in early exit.
2275 2008-07-10 Jakub Jelinek <jakub@redhat.com>
2278 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2279 uids in the bitmap, not just VAR_DECL uids.
2281 PR rtl-optimization/36419
2282 * combine-stack-adj.c (adjust_frame_related_expr): New function.
2283 (combine_stack_adjustments_for_block): Call it if needed. Delete
2285 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2286 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2287 prologue sp adjustment.
2289 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
2292 * opts.c (print_ignored_options): Report postponed diagnostics for
2293 unknown -Wno-* options as warnings, not errors.
2294 (postpone_unknown_option_error): Renamed to...
2295 (postpone_unknown_option_warning): ... this.
2297 2008-07-09 Doug Kwan <dougkwan@google.com>
2300 2008-07-08 Doug Kwan <dougkwan@google.com>
2302 * config/arm/arm.opt (mandroid): New option.
2303 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2304 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2306 (CC1PLUS_SPEC): Same.
2308 (STARTFILE_SPEC): Same.
2309 (ENDFILE_SPEC): Same.
2310 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2313 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
2316 * config/mips/mips.h (reg_class): Remove V1_REG.
2317 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2318 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2320 (mips_get_tp): New function.
2321 (mips_legitimize_tls_address): Use it.
2322 * config/mips/constraints.md (v): Delete.
2323 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2324 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2325 After reload, split into a move and ...
2326 (*tls_get_tp_<mode>_split): ...this new instruction.
2328 2008-07-09 David Daney <ddaney@avtrex.com>
2330 * config/mips/driver-native.c: Include coretypes.h and tm.h.
2332 2008-07-09 Jakub Jelinek <jakub@redhat.com>
2334 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2335 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2337 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2338 htab_delete should be called. Don't free c.
2339 (lookup_tmp_var): Create temp_htab lazily.
2340 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2341 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2343 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2344 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2345 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2346 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2347 * tree-sra.c (generate_element_init): Likewise.
2348 * tree-mudflap.c (execute_mudflap_function_ops,
2349 execute_mudflap_function_decls): Likewise.
2350 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2351 * tree-gimple.h (struct gimplify_ctx): New type.
2352 (push_gimplify_context): Adjust prototype.
2354 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
2356 * tree-ssa-pre.c (phi_translate_1): Update placement of
2359 2008-07-09 Anatoly Sokolov <aesok@post.ru>
2361 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2362 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2363 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2364 * targhooks.c (default_hard_regno_scratch_ok): New function.
2365 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2366 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2367 * recog.c: Include "target.h".
2368 (peep2_find_free_register): Add check for global regs. Add target
2370 * Makefile.in (recog.o): Depend on target.h.
2372 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
2374 * config/sh/sh.c (sh_canonical_va_list_type): New.
2375 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2377 2008-07-09 Raksit Ashok <raksit@google.com>
2379 * doc/invoke.texi (Option Summary): Mention new option
2380 -Wdisallowed-function-list=...
2381 (Warning Options): Document -Wdisallowed-function-list=...
2382 * common.opt (Wdisallowed-function-list=): New flag.
2383 * flags.h (warn_disallowed_functions): External definition of new
2384 boolean warning flag.
2385 (warn_if_disallowed_function_p): Declare new function.
2386 * opts.c (warning_disallowed_functions): New static variable.
2387 (warn_disallowed_functions): New boolean warning flag.
2388 (warn_if_disallowed_function_p): New function.
2389 (add_comma_separated_to_vector): Rename
2390 add_instrument_functions_exclude_list to this.
2391 (common_handle_option): Handle new option. Rename calls to
2392 add_instrument_functions_exclude_list into calls to
2393 add_comma_separated_to_vector.
2394 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2395 based on flag warn_disallowed_functions.
2397 2008-07-09 Christian Bruel <christian.bruel@st.com>
2399 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2400 instead of get_attr_length.
2402 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2404 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2406 * genemit.c (gen_insn): Likewise.
2407 * gengtype.c (note_def_vec): Likewise.
2408 * gengtype.h (note_def_vec): Likewise.
2409 * genoutput.c (struct data, output_insn_data, process_template,
2410 gen_expand, gen_split, note_constraint): Likewise.
2411 * genrecog.c (new_decision, add_to_sequence, factor_tests,
2412 make_insn_sequence): Likewise.
2413 * gensupport.c (record_insn_name): Likewise.
2415 2008-07-08 Doug Kwan <dougkwan@google.com>
2417 * config/arm/arm.opt (mandroid): New option.
2418 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2419 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2421 (CC1PLUS_SPEC): Same.
2423 (STARTFILE_SPEC): Same.
2424 (ENDFILE_SPEC): Same.
2425 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2428 2008-07-08 Raksit Ashok <raksit@google.com>
2430 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2431 (set_storage_via_setmem): Fix expected_align parameter.
2432 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2433 missing from the list.
2434 * doc/md.texi (movmem): Explicitly state that expected alignment is
2435 to be expressed in bytes.
2436 (setmem): Explicitly state that expected alignment is to be expressed
2439 2008-07-08 Joseph Myers <joseph@codesourcery.com>
2441 * reload.c (find_reloads_subreg_address): Do not require validity
2442 of address in original mode before reloading address.
2444 2008-07-07 Tianwei Sheng <tianweis@google.com>
2446 * df-core.c (df_remove_problem): Adjust the access to avoid out of
2447 bounds array access.
2449 2008-07-08 Jakub Jelinek <jakub@redhat.com>
2451 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2453 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
2455 Fix PR tree-optimization/23455
2456 Fix PR tree-optimization/35286
2457 Fix PR tree-optimization/35287
2458 * Makefile.in (OBJS-common): Remove tree-vn.o.
2459 (tree-vn.o): Remove.
2460 * dbgcnt.def: Add treepre_insert debug counter.
2461 * gcc/tree-flow.h (add_to_value): Updated for other changes.
2462 (debug_value_expressions): Ditto.
2463 (print_value_expressions): Ditto.
2464 * tree-pretty-print.c (dump_generic_node): Updated for
2465 VALUE_HANDLE removal.
2466 * tree-ssa-dom.c (record_equality): Ditto.
2467 (cprop_operand): Ditto.
2468 (lookup_avail_expr): Ditto.
2469 * tree-ssa-threadedge.c
2470 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2471 (simplify_control_stmt_condition): Ditto.
2472 * tree.c (tree_code_size): Ditto.
2473 (tree_node_structure): Ditto.
2474 (iterative_hash_expr): Ditto.
2476 * tree.h (VALUE_HANDLE_ID): Ditto.
2477 (VALUE_HANDLE_EXPR_SET): Ditto.
2478 (struct tree_value_handle): Ditto.
2479 (union tree_node): Ditto.
2480 * treestruct.def: Ditto.
2481 * tree-vn.c: Removed.
2482 * tree-ssa-pre.c: Rewritten entirely.
2483 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2484 (constant_value_ids): Ditto.
2485 (vn_nary_op_t): Moved to header.
2487 (vn_reference_op_t): Ditto
2488 (vn_reference_t): Ditto.
2489 (next_value_id): New variable.
2490 (VN_INFO): Add an assert.
2491 (vn_constant_eq): New function.
2492 (vn_constant_hash): Ditto.
2493 (get_or_alloc_constant_value_id): Ditto.
2494 (value_id_constant_p): Ditto.
2495 (vn_reference_compute_hash): De-staticify.
2496 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2497 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2498 (valueize_refs): Update opcode if it changes from ssa name to constant.
2499 (vn_reference_lookup_1): Add new argument.
2500 (vn_reference_lookup): Ditto.
2501 (vn_reference_lookup_pieces): New function.
2502 (vn_reference_insert): Add return type. Modify to deal with value ids.
2503 (vn_reference_insert_pieces): New function.
2504 (vn_nary_op_compute_hash): De-staticify.
2505 (vn_nary_op_eq): Ditto.
2506 (vn_nary_op_lookup_pieces): New function.
2507 (vn_nary_op_lookup): Add new argument.
2508 (vn_nary_op_insert_pieces): New function.
2509 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2510 (vn_phi_insert): Ditto.
2511 (visit_unary_op): Update for callee changes.
2512 (visit_binary_op): Ditto.
2513 (visit_reference_op_load): Ditto.
2514 (visit_reference_op_store): Ditto.
2515 (init_scc_vn): Init next_value_id, constant_to_value_id and
2517 (free_scc_vn): Free them.
2518 (set_hashtable_value_ids): New function.
2519 (run_scc_vn): Use it.
2520 (get_max_value_id): New function.
2521 (get_next_value_id): Ditto.
2522 (expressions_equal_p): Moved from tree-vn.c
2523 (sort_vuses): Ditto.
2524 (sort_vuses_heap): Ditto.
2525 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2527 * tree.c (iterative_hash_hashval_t): Made non-static
2528 * tree.h (iterative_hash_hashval_t): Declare it.
2530 2008-07-08 Martin Jambor <mjambor@suse.cz>
2532 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2533 instead of ipa_create_node_params.
2534 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2535 ipa_check_create_edge_args, free them with
2536 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2538 * ipa-prop.c: Include flags.h and tree-inline.h.
2539 (ipa_node_params_vector): New variable.
2540 (ipa_edge_args_vector): New variable.
2541 (edge_removal_hook_holder): New variable.
2542 (node_removal_hook_holder): New variable.
2543 (edge_duplication_hook_holder): New variable.
2544 (node_duplication_hook_holder): New variable.
2545 (ipa_detect_param_modifications): Check for presence of modified flags.
2546 (ipa_compute_jump_functions): Check for presence of jump functions.
2547 (ipa_free_edge_args_substructures): New function.
2548 (ipa_create_node_params): Removed.
2549 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2550 (ipa_free_node_params_substructures): New function.
2551 (ipa_free_all_node_params): Changed to deallocate the on-the-side
2553 (ipa_edge_removal_hook): New function.
2554 (ipa_node_removal_hook): New function.
2555 (duplicate_array): New function.
2556 (ipa_edge_duplication_hook): New function.
2557 (ipa_node_duplication_hook): New function.
2558 (ipa_register_cgraph_hooks): New function.
2559 (ipa_unregister_cgraph_hooks): New function.
2560 (free_all_ipa_structures_after_ipa_cp): New function.
2562 * ipa-prop.h: Include vec.h.
2563 (ipa_node_params_t): New typedef with vector types for it.
2564 (ipa_edge_args_t): New typedef with vector types for it.
2565 (IPA_NODE_REF): Changed to access an on-the-side vector.
2566 (IPA_EDGE_REF): Changed to access an on-the-side vector.
2567 (ipa_check_create_node_params): New function.
2568 (ipa_check_create_edge_args): New function.
2570 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
2573 2008-07-07 Tom Tromey <tromey@redhat.com>
2575 * configure, config.in: Rebuilt.
2576 * configure.ac: Don't check for scandir or alphasort.
2578 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2580 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2581 types immediately after creating them.
2583 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2585 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2587 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
2589 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2590 dump_constraint_graph.
2591 (dump_constraint_edge): New function.
2592 (dump_constraint_graph): New function.
2593 (debug_constraint_graph): New function.
2594 (dump_constraint): Removed useless comparison.
2595 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2596 (dump_constraint_graph): Declare.
2597 (debug_constraint_graph): Declare.
2598 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2600 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
2602 * config/i386/i386.c (is_va_list_char_pointer): New.
2603 (ix86_va_start): Replace compare with ms_va_list_type_node
2604 by is_va_list_char_pointer.
2605 (ix86_gimplify_va_arg): Likewise.
2607 2008-07-07 Martin Jambor <mjambor@suse.cz>
2609 * cgraph.c (cgraph_edge_max_uid): New variable.
2610 (struct cgraph_edge_hook_list): New type.
2611 (struct cgraph_node_hook_list): New type.
2612 (struct cgraph_2edge_hook_list): New type.
2613 (struct cgraph_2node_hook_list): New type.
2614 (first_cgraph_edge_removal_hook): New variable.
2615 (first_cgraph_node_removal_hook): New variable.
2616 (first_cgraph_edge_duplicated_hook): New variable.
2617 (first_cgraph_node_duplicated_hook): New variable.
2618 (cgraph_add_edge_removal_hook): New function.
2619 (cgraph_remove_edge_removal_hook): New function.
2620 (cgraph_call_edge_removal_hooks): New function.
2621 (cgraph_add_node_removal_hook): New function.
2622 (cgraph_remove_node_removal_hook): New function.
2623 (cgraph_call_node_removal_hooks): New function.
2624 (cgraph_add_edge_duplication_hook): New function.
2625 (cgraph_remove_edge_duplication_hook): New function.
2626 (cgraph_call_edge_duplication_hooks): New function.
2627 (cgraph_add_node_duplication_hook): New function.
2628 (cgraph_remove_node_duplication_hook): New function.
2629 (cgraph_call_node_duplication_hooks): New function.
2630 (cgraph_create_edge): Assign to edge uid.
2631 (cgraph_remove_edge): Call edge removal hooks.
2632 (cgraph_node_remove_callees): Call edge removal hooks.
2633 (cgraph_node_remove_callers): Call edge removal hooks.
2634 (cgraph_remove_node): Call node removal hooks.
2635 (cgraph_clone_edge): Call edge duplication hooks.
2636 (cgraph_clone_node): Call node duplication hooks.
2638 * cgraph.h (cgraph_edge): New field uid.
2639 (cgraph_edge_hook): New type.
2640 (cgraph_node_hook): New type.
2641 (cgraph_2edge_hook): New type.
2642 (cgraph_2node_hook): New type.
2644 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
2646 * config.in: Regenerate.
2648 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
2650 * gcc.c (print_sysroot): New.
2651 (option_map, display_help, process_command): Handle the
2652 -print-sysroot option.
2653 (main): Print the sysroot if requested.
2654 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2656 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2659 * unwind-pe.h (size_of_encoded_value): add attribute unused.
2661 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
2663 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2664 (assign_parm_setup_block_p): Also check mode of entry_parm.
2666 2008-07-07 Richard Guenther <rguenther@suse.de>
2668 * tree-ssa-structalias.h (set_used_smts): Remove.
2669 * tree-ssa-structalias.c (used_smts): Likewise.
2670 (set_used_smts): Likewise.
2671 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2672 call to set_used_smts.
2674 2008-07-07 Richard Guenther <rguenther@suse.de>
2676 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2677 (new_var_info): Set it to false.
2678 (solution_set_add): Correctly handle pointers outside a var and
2680 (type_safe): Treat variables with is_full_var properly.
2681 (do_sd_constraint): Likewise.
2682 (do_ds_constraint): Likewise.
2683 (process_constraint): Remove zeroing offset for !use_field_sensitive.
2684 (get_constraint_for_ptr_offset): New function.
2685 (get_constraint_for_component_ref): For addresses at least include
2686 the last field of the variable. Handle is_full_vars properly.
2687 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2688 (handle_ptr_arith): Remove.
2689 (find_func_aliases): Simplify assignment handling.
2690 (create_function_info_for): For parameter and result varinfos set
2692 (create_variable_info_for): Set is_full_var flag whenever we
2693 just created a single varinfo for a decl.
2694 (init_alias_vars): Initialize use_field_sensitive from
2695 max-fields-for-field-sensitive parameter.
2697 2008-07-07 Richard Guenther <rguenther@suse.de>
2699 PR tree-optimization/36713
2700 * tree-flow-inline.h (is_call_used): New function.
2701 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2702 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2703 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2705 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2707 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2709 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
2711 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2713 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2714 Nathan Sidwell <nathan@codesourcery.com>
2716 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
2717 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2719 * config/m68k/t-linux: New.
2720 * doc/install.texi: Document m68k-*-linux is now multilibbed by
2723 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
2725 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2726 * config/m68k/m68k-devices.def: Remove multilibs that only differ
2729 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2731 * gcc.c (execute): Fix -Wc++-compat warning.
2733 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
2736 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2737 constant for little endian.
2739 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
2741 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2742 mips_base_mips16 instead of TARGET_MIPS16.
2743 (mips_base_mips16): Declare.
2744 * config/mips/mips.c (mips_base_mips16): Make global.
2745 (was_mips16_p): Remove GTY marker.
2746 (was_mips16_pch_p): New variable.
2747 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2748 (mips_override_options): Force to non-MIPS16 mode initially.
2749 Do not complain about MIPS16 PIC incompatibilities here.
2750 Only allow -mgpopt if -mexplicit-relocs is in force for
2753 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
2755 * configure.ac: Check for caddr_t, define to char * if not defined.
2756 * configure: Regenerate.
2757 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2758 (mmap_gt_pch_use_address): Likewise.
2759 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2761 2008-07-06 Richard Guenther <rguenther@suse.de>
2763 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2764 (new_var_info): Deal with it.
2765 (solution_set_add): Likewise.
2766 (bitpos_of_field): Make signed, fix.
2767 (struct fieldoff): Remove type and decl fields. Make size field
2768 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
2770 (fieldoff_compare): Deal with it.
2771 (push_fields_onto_fieldstack): Remove has_union argument, glob
2772 adjacent non-pointer fields together.
2773 (create_function_info_for): Do not set has_union.
2774 (create_variable_info_for): Simplify.
2776 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
2778 * config.gcc (extra_headers): Add cross-stdarg.h for target
2779 x86_64-*-* and i?86-*-*.
2780 * config/i386/cross-stdarg.h: New.
2781 * builtins.c (std_fn_abi_va_list): New.
2782 (std_canonical_va_list_type): New.
2783 (stabilize_va_list): Replace va_list_type_node use by
2784 mtarget.canonical_va_list_type.
2785 (gimplify_va_arg_expr): Likewise.
2786 (expand_builtin_va_copy): Replace va_list_type_node use by
2787 mtarget.fn_abi_va_list.
2788 * tree-sra.c (is_va_list_type): New helper.
2789 (decl_can_be_decomposed_p): Replace
2790 va_list_type_node use by is_va_list_type.
2791 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2792 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2793 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2794 * config/i386/i386-protos.h (ix86_get_valist_type): New.
2795 (ix86_enum_va_list): New.
2796 * config/i386/i386.c (sysv_va_list_type_node): New.
2797 (ms_va_list_type_node): New.
2798 (ix86_function_type_abi): Remove sorry.
2799 (ix86_build_builtin_va_list_abi): New.
2800 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2802 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2803 (ix86_init_builtins_va_builtins_abi): New.
2804 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2806 (ix86_handle_abi_attribute): New.
2807 (attribute_spec): Add sysv_abi and ms_abi.
2808 (ix86_fn_abi_va_list): New.
2809 (ix86_canonical_va_list_type): New.
2810 (ix86_enum_va_list): New.
2811 (TARGET_FN_ABI_VA_LIST): New.
2812 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2813 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2814 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2815 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2816 (TARGET_ENUM_VA_LIST): New.
2817 * expr.h (std_fn_abi_va_list): New.
2818 (std_canonical_va_list_type): New.
2819 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2820 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2821 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2822 TARGET_CANONICAL_VA_LIST_TYPE.
2823 * target.h (struct gcc_target): Add fn_abi_va_list hook
2824 and canonical_va_list_type hook.
2826 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2828 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2829 integral and pointer types.
2831 2008-07-04 Roger Sayle <roger@eyesopen.com>
2833 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2834 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2836 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2839 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2841 2008-07-04 Jakub Jelinek <jakub@redhat.com>
2843 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2844 build_gimple_modify_stmt.
2845 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
2846 gimple operand. Use fold_build* instead of build*.
2848 2008-07-04 Richard Guenther <rguenther@suse.de>
2850 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2851 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2852 properly to compute the reachability set if we do field-sensitive PTA.
2853 * invoke.texi (max-fields-for-field-sensitive): Document default.
2854 * opts.c (decode_options): Set max-fields-for-field-sensitive to
2855 100 for optimize >= 2.
2857 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2859 * ggc-zone.c (lookup_page_table_if_allocated,
2860 set_page_table_entry, zone_find_object_size, alloc_small_page,
2861 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2862 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2863 -Wc++-compat and/or -Wcast-qual warnings.
2865 2008-07-04 Alan Modra <amodra@bigpond.net.au>
2868 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2869 pic_offset_table_rtx to be marked as used here.
2870 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2871 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2872 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2873 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2876 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2878 * alloc-pool.c (hash_descriptor, eq_descriptor,
2879 alloc_pool_descriptor): Fix -Wc++-compat warnings.
2880 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2882 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2883 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2884 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2885 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2888 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
2890 * tree-flow.h (loop_only_exit_p): Declare.
2891 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2892 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2893 the number of iterations if it is constant. Otherwise, if this is the
2894 only possible exit of the loop, use the conservative estimate on the
2895 number of iterations of the entire loop if available.
2897 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
2899 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2900 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2901 Add synchronization functions.
2902 * config/sync.c: New file.
2903 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2904 (LIBGCC_SYNC_CFLAGS): Likewise.
2906 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
2909 * config/i386/i386.md (mode): Add TF to "mode" attribute.
2910 (*pushtf_sse): New insn pattern.
2911 (pushtf splitters): New splitters.
2913 2008-07-03 Michael Meissner <gnu@the-meissners.org>
2916 * predict.c (build_predict_expr): Use void_type_node for the tree
2917 type, instead of NULL_TREE.
2919 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
2921 * config/i386/i386.c (contains_aligned_value_p): Return true
2923 (ix86_data_alignment): Align TCmode to 128bits.
2924 (ix86_local_alignment): Likewise.
2926 2008-07-03 Andrew Haley <aph@redhat.com>
2929 * vec.h (VEC_TA): New.
2930 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2931 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2932 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2933 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2934 (C_COMMON_FIXED_TYPES): Remove first arg.
2935 (C_COMMON_FIXED_MODE_TYPES): Likewise.
2936 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2937 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2938 not to use empty macro arguments.
2940 2008-07-02 Joseph Myers <joseph@codesourcery.com>
2942 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2943 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2944 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2945 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2946 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2947 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2948 config/ia64/crtn.asm, config/m68hc11/larith.asm,
2949 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2950 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2951 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2952 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2953 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2954 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2955 config/rs6000/e500crtres64gpr.asm,
2956 config/rs6000/e500crtres64gprctr.asm,
2957 config/rs6000/e500crtrest32gpr.asm,
2958 config/rs6000/e500crtrest64gpr.asm,
2959 config/rs6000/e500crtresx32gpr.asm,
2960 config/rs6000/e500crtresx64gpr.asm,
2961 config/rs6000/e500crtsav32gpr.asm,
2962 config/rs6000/e500crtsav64gpr.asm,
2963 config/rs6000/e500crtsav64gprctr.asm,
2964 config/rs6000/e500crtsavg32gpr.asm,
2965 config/rs6000/e500crtsavg64gpr.asm,
2966 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2967 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2968 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2969 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2970 config/sparc/sol2-cn.asm: Remove .file directives.
2972 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
2974 * resource.c (mark_referenced_resources): Look inside
2975 UNSPEC_VOLATILEs and ASM_INPUTs.
2977 2008-07-02 Ian Lance Taylor <iant@google.com>
2979 * rtlanal.c (add_reg_note): New function.
2980 * rtl.h (add_reg_note): Declare.
2981 * auto-inc-dec.c (attempt_change): Use add_reg_note.
2982 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2983 * builtins.c (expand_builtin_longjmp): Likewise.
2984 (expand_builtin_nonlocal_goto): Likewise.
2985 * calls.c (emit_call_1, expand_call): Likewise.
2986 * cfgexpand.c (add_reg_br_prob_note): Likewise.
2987 * cfglayout.c (fixup_reorder_chain): Likewise.
2988 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2989 (commit_one_edge_insertion): Likewise.
2990 * combine.c (move_deaths, distribute_notes): Likewise.
2991 * df-problems.c (df_set_note): Likewise.
2992 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2993 (set_unique_reg_note): Likewise.
2994 (emit_copy_of_insn_after): Likewise.
2995 * expr.c (expand_expr_real): Likewise.
2996 * gcse.c (add_label_notes): Likewise.
2997 * haifa-sched.c (create_check_block_twin): Likewise.
2998 * jump.c (mark_jump_label_1): Likewise.
2999 * loop-doloop.c (add_test, doloop_modify): Likewise.
3000 * loop-unswitch.c (compare_and_jump_seq): Likewise.
3001 * lower-subreg.c (move_eh_region_note): Likewise.
3002 * optabs.c (emit_libcall_block): Likewise.
3003 * predict.c (predict_insn): Likewise.
3004 (combine_predictions_for_insn): Likewise.
3005 * recog.c (peephole2_optimize): Likewise.
3006 * regmove.c (try_auto_increment): Likewise.
3007 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3008 * reload.c (find_reloads): Likewise.
3009 * reload1.c (fixup_eh_region_note): Likewise.
3010 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3011 * reorg.c (delete_prior_computation): Likewise.
3012 (delete_computation, dbr_schedule): Likewise.
3013 * config/pa/pa.c (legitimize_pic_address): Likewise.
3014 * config/sh/sh.c (sh_reorg): Likewise.
3016 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3019 * config/libgcc-glibc.ver: Add %exclude.
3020 * config/m32r/libgcc-glibc.ver: Likwise.
3021 * config/s390/libgcc-glibc.ver: Likwise.
3022 * config/sh/libgcc-glibc.ver: Likwise.
3023 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3025 * config/i386/libgcc-glibc.ver: New.
3027 * config/i386/libgcc-x86_64-glibc.ver: Removed.
3029 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3031 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3032 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3033 i[34567]86-*-linux*, x86_64-*-linux*. Add
3034 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3035 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3036 x86_64-*-linux*. Add i386/t-linux to tmake_file for
3037 i[34567]86-*-linux*, x86_64-*-linux*.
3039 * libgcc-std.ver: Add empty GCC_4.4.0.
3041 * mkmap-symver.awk: Support multiple versions per symbol.
3043 * config/i386/i386.c (ix86_init_builtins): Always define
3044 __builtin_fabsq and __builtin_copysignq with fallbacks.
3045 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3046 and __builtin_copysignq if SSE2 isn't available.
3048 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3049 (LIBGCC2_TF_CEXT): Likwise.
3052 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3054 * config/i386/sfp-machine.h: Moved to libgcc.
3056 * config/i386/sfp-machine.h: New.
3057 * config/i386/t-linux: Likwise.
3059 * config/i386/t-darwin: Remove softfp_wrap_start and
3061 * config/i386/t-darwin64: Likewise.
3063 * config/i386/t-fprules-softfp64: Renamed to ...
3064 * config/i386/t-fprules-softfp: This.
3066 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3067 and softfp_wrap_end.
3069 2008-07-02 Jason Merrill <jason@redhat.com>
3071 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3073 * tree.c (ctor_to_list): New fn.
3074 * tree.h: Declare it.
3075 (CONSTRUCTOR_ELT): New macro.
3076 (CONSTRUCTOR_NELTS): New macro.
3078 2008-07-02 Richard Guenther <rguenther@suse.de>
3080 * tree-ssa-structalias.c (struct variable_info): Reorder
3081 to fill padding on 64bit hosts. Make collapsed_to an int.
3082 (get_varinfo_fc): Deal with that.
3083 (new_var_info): Likewise.
3084 (collapse_rest_of_var): Likewise.
3086 2008-07-02 Joshua Sumali <jsumali@redhat.com>
3088 * doc/install.texi (--enable-java-home): Document.
3089 (--enable-aot-compile-rpm): Likewise.
3090 (--with-arch-directory): Likewise.
3091 (--with-os-directory): Likewise.
3092 (--with-origin-name): Likewise.
3093 (--with-arch-suffix): Likewise.
3094 (--with-jvm-root-dir): Likewise.
3095 (--with-jvm-jar-dir): Likewise.
3096 (--with-python-dir): Likewise.
3098 2008-07-02 Richard Guenther <rguenther@suse.de>
3100 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3101 from decls explicitly. Merge operand checking from tuples.
3103 2008-07-02 Martin Jambor <mjambor@suse.cz>
3105 * tree-switch-conversion.c: Included timevar.h which I forgot before.
3107 2008-07-02 Martin Jambor <mjambor@suse.cz>
3109 * tree-switch-conversion.c: Included timevar.h
3110 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3112 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3114 2008-07-02 Martin Jambor <mjambor@suse.cz>
3116 * tree-switch-conversion.c: Corrected various comments and
3118 (build_constructors): Fixed minor formatting mistakes.
3120 * invoke.texi (Optimize Options): Corrected the
3121 switch-conversion-max-branch-ratio parameter.
3123 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
3125 * final.c (asm_insn_count): Return zero for an empty asm body.
3127 2008-07-02 Richard Guenther <rguenther@suse.de>
3129 * bitmap.h (bitmap_set_bit): Return bool.
3130 (bitmap_clear_bit): Likewise.
3131 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
3132 write to the bitmap if it would.
3133 (bitmap_clear_bit): Likewise.
3134 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3135 bitmap_set_bit return value.
3136 (add_pred_graph_edge): Likewise.
3137 (add_graph_edge): Likewise.
3138 (do_sd_constraint): Likewise.
3139 (do_ds_constraint): Likewise.
3141 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3143 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3144 Fix -Wc++-compat and/or -Wcast-qual warnings.
3145 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3146 gen_regparm_prefix): Likewise.
3147 * vmsdbgout.c (write_modbeg, lookup_filename,
3148 vmsdbgout_source_line, vmsdbgout_init): Likewise.
3150 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3152 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3153 defaults.h definition apply.
3155 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3157 * function.c (assign_parm_remove_parallels): New.
3158 (assign_parm_setup_block_p): Do not return true for non-BLKmode
3160 (assign_parm_setup_block): Do not handle them.
3161 (assign_parm_setup_reg, assign_parm_setup_stack): Call
3162 assign_parm_remove_parallels.
3164 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3166 * c-typeck.c (convert_for_assignment): Use
3167 vector_targets_convertible_p.
3168 * c-common.c (vector_targets_convertible_p): New.
3169 * c-common.h (vector_targets_convertible_p): New prototype.
3170 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3171 opaque_p_V2SI_type_node.
3173 2008-07-01 Steve Ellcey <sje@cup.hp.com>
3175 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3178 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
3180 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3181 TFmode constants via two element DImode vector for hosts with
3182 HOST_BITS_PER_WIDE_INT < 64.
3183 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3184 also for HOST_BITS_PER_WIDE_INT < 64.
3186 2008-07-01 Richard Guenther <rguenther@suse.de>
3188 PR tree-optimization/36666
3189 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3190 (get_constraint_exp_from_ssa_var): Split into ...
3191 (get_constraint_exp_for_temp): ... this ...
3192 (get_constraint_for_ssa_var): ... and that.
3193 Return constraint expressions for all touched sub-fields
3194 if the results address is not taken.
3195 (process_constraint): Remove assertion that aggregate
3196 assignments do not happen at this place.
3197 (get_constraint_for_component_ref): Add address_p argument.
3198 Return constraint expressions for all touched sub-fields
3199 if the results address is not taken.
3200 (do_deref): Use get_constraint_exp_for_temp.
3201 (get_constraint_for_1): Rename from ...
3202 (get_constraint_for): ... this. Add the old function as wrapper.
3203 (do_structure_copy): Use get_constraint_for_1.
3205 2008-07-01 Martin Jambor <mjambor@suse.cz>
3207 * Makefile.in (tree-switch-conversion.o): Add.
3208 (OBJS-common): Add tree-swtch-conversion.o.
3209 * passes.c (init_optimization_passes): Add pass_convert_switch.
3210 * tree-pass.h: (pass_convert_switch): Add.
3211 * tree-switch-conversion.c: New file.
3212 * gcc.dg/tree-ssa/cswtch.c: New testcase.
3213 * common.opt (ftree-cswtch): New option.
3214 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3215 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3216 * opts.c (decode_options): Set flag_tree_switch_conversion when
3217 optimization level is >= 2.
3218 * doc/invoke.texi (Optimize Options): Added description of
3219 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3221 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3223 * config/darwin-driver.c (darwin_default_min_version): Fix
3224 -Wc++-compat warnings.
3226 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
3228 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3231 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3233 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3235 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3237 PR rtl-optimization/34744
3238 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3239 (df_scan_free_internal): Free data structures not
3240 allocated in storage pools.
3241 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3242 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3243 df_scan_free_mws_vec.
3244 * dse.c (dse_step6): Free offset_map_p and offset_map_n
3247 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
3249 * config/i386/i386.c (contains_aligned_value_p): Return true
3251 (ix86_function_arg_boundary): Return its natural boundary
3253 (return_in_memory_32): Don't check TDmode.
3254 (ix86_split_to_parts): Support splitting into 4 parts and
3255 support TFmode for 32bit target.
3256 (ix86_split_long_move): Support splitting into 4 parts.
3257 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3259 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3260 (ix86_init_builtins): Here.
3261 (ix86_scalar_mode_supported_p): Always return true for TFmode.
3262 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3263 'q' and 'w', respectively.
3265 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3267 (movtf_internal): Likewise.
3268 (<code>tf2): Likewise.
3269 (*absnegtf2_sse): Likewise.
3270 (copysign<mode>3): Likewise.
3271 (copysign<mode>3_const): Likewise.
3272 (copysign<mode>3_var): Likewise.
3273 (define_split UNSPEC_COPYSIGN): Likewise.
3274 * config/i386/sse.md (*nandtf3): Likewise.
3275 (<code>tf3): Likewise.
3276 (*<code>tf3): Likewise.
3278 2008-06-30 Joey Ye <joey.ye@intel.com>
3279 H.J. Lu <hongjiu.lu@intel.com>
3281 * global.c (compute_regsets): Set frame_pointer_needed here.
3282 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3284 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3286 * doc/install.texi (specific): Expand Windows build notes.
3288 2008-06-30 Ira Rosen <irar@il.ibm.com>
3290 PR tree-optimization/36648
3291 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3292 number of prolog iterations by step. Fix the comment.
3294 2008-06-30 Richard Guenther <rguenther@suse.de>
3297 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3298 handle calls from ECF_MALLOC functions.
3299 (handle_pure_call): ECF_MALLOC functions do not return
3301 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3303 2008-06-29 Andreas Schwab <schwab@suse.de>
3305 * config/m68k/m68k.c (print_operand): Always print a float
3307 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3308 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3311 * config/rs6000/x-linux64: Remove never used file.
3313 2008-06-29 Richard Guenther <rguenther@suse.de>
3315 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3317 (struct alias_info): Move ...
3318 * tree-ssa-alias.c: ... here.
3319 (update_alias_info): Declare.
3320 (compute_may_aliases): Call it.
3321 (update_alias_info): New function.
3322 * tree-ssa-structalias.c (update_alias_info): Move ...
3323 * tree-ssa-alias.c (update_alias_info_1): ... here.
3324 * tree-ssa-structalias.c (process_constraint_1): Remove
3325 unused from_call argument. Rename to ...
3326 (process_constraint): ... this. Delete old wrapper.
3327 (make_constraint_to): Adjust callers.
3328 (handle_const_call): Likewise.
3329 (handle_pure_call): Likewise.
3330 (init_base_vars): Likewise.
3331 (handle_lhs_call): Likewise. Remove unnecessary constraint.
3332 (find_func_aliases): We don't need structure copies for
3334 (make_constraint_from_anything): Remove.
3335 (create_variable_info_for): For globals make constraints
3336 from escaped, not from anything.
3337 (compute_points_to_sets): Do not call update_alias_info.
3338 (ipa_pta_execute): Use make_constraint_from.
3340 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3342 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3343 (bitmap.o-warn, dominance.o-warn): New.
3344 * configure.ac (cxx_compat_warn): Delete.
3345 (loose_warn): Add -Wcast-qual and -Wc++-compat.
3346 * system.h: Remove #pragma diagnostic for -Wcast-qual and
3348 * configure: Regenerate.
3350 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3353 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3355 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3356 * df-scan.c (df_notes_rescan): Likewise.
3357 * ggc-page.c (set_page_table_entry): Likewise.
3358 * intl.c (gcc_gettext_width): Likewise.
3359 * varasm.c (get_unnamed_section, get_noswitch_section,
3360 get_section): Likewise.
3362 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
3364 * regrename.c (build_def_use): Don't copy RTX.
3366 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
3368 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3369 (Type Attributes): Fix nesting of @table and @subsection. Adjust
3370 punctuation. Use @ref instead of @xref.
3371 (Function Names): Remove stray @display/@end display.
3372 (C++ Attributes): Use @ref instead of @xref.
3373 (Deprecated Features): Fix punctuation around @xref.
3374 (Backwards Compatibility): Likewise.
3375 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3377 2008-06-28 Joseph Myers <joseph@codesourcery.com>
3379 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3380 constants for E500 double.
3382 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3384 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3385 element type of const_vector.
3387 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
3389 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3390 Remove FLAGS_REG clobber from expander pattern.
3391 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3392 (anddi3, andsi3, andhi3, andqi3): Ditto.
3393 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3394 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3395 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3396 (ashlsi3, ashlhi3, ashlqi3): Ditto.
3397 (ashrsi3, ashrhi3, ashrqi3): Ditto.
3398 (lshrsi3, lshrhi3, lshrqi3): Ditto.
3399 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3400 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3402 2008-06-28 Richard Guenther <rguenther@suse.de>
3404 * tree-ssa-structalias.c (callused_id, var_callused,
3405 callused_tree): Add.
3406 (handle_pure_call): New function.
3407 (find_func_aliases): Call it.
3408 (find_what_p_points_to): Handle the call-used set.
3409 (clobber_what_escaped): Likewise.
3410 (compute_call_used_vars): New function.
3411 (init_base_vars): Init the call-used variable.
3412 (do_sd_constraint): Do not propagate the solution from CALLUSED
3413 but use CALLUSED as a placeholder.
3414 (solve_graph): Likewise.
3415 * tree-flow-inline.h (gimple_call_used_vars): New function.
3416 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3417 (compute_call_used_vars): Declare.
3418 * tree-ssa-alias.c (set_initial_properties): Call
3419 compute_call_used_vars.
3420 (reset_alias_info): Clear call-used variables.
3421 (add_call_clobber_ops): Assert we are not called for const/pure
3422 functions. Remove handling of them.
3423 (add_call_read_ops): Handle pure functions by adding the
3424 call-used set of variables as VUSEs.
3425 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3426 (delete_tree_ssa): Free it.
3427 * tree-dfa.c (remove_referenced_var): Clear the var from the
3430 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
3432 * tree.c (build_varargs_function_type_list): New.
3433 (build_function_type_list_1): New.
3434 (build_function_type_list): Use build_function_type_list_1.
3435 * tree.h (build_varargs_function_type_list): New.
3437 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3440 * config/spu/spu.c (spu_builtin_splats): Do not generate
3441 invalid CONST_VECTOR expressions.
3442 (spu_expand_vector_init): Likewise.
3444 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
3446 * optabs.c (libfunc_decls): New variable.
3447 (libfunc_decl_hash, libfunc_decl_eq): New functions.
3448 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3449 for the same function twice.
3451 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
3453 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3454 ix86_expand_binary_operator directly.
3455 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
3457 (*ashrti3_1): Ditto.
3458 (*lshrti3_1): Ditto.
3459 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3460 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3461 using only one splitter. Conditionaly execute splitter before or
3462 after peephole2 pass.
3463 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3464 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
3465 Use only one alternative in asm template.
3466 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3468 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3469 "J" operand constraint for operand 2.
3470 (*ashldi3_cconly_rex64): Ditto.
3471 (*ashrdi3_cmp_rex64): Ditto.
3472 (*ashrdi3_cconly_rex64): Ditto.
3473 (*lshrdi3_cmp_rex64): Ditto.
3474 (*lshrdi3_cconly_rex64): Ditto.
3475 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3476 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3477 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3480 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3482 * gimplify.c (omp_is_private): Don't return true if decl is not
3483 already private on #pragma omp for or #pragma omp parallel for.
3486 * tree-cfg.c (struct move_stmt_d): Replace block field with
3487 orig_block and new_block fields.
3488 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3489 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3490 (move_block_to_fn): Replace vars_map and new_label_map arguments
3491 with struct move_stmt_d pointer.
3492 (replace_block_vars_by_duplicates): New function.
3493 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
3494 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
3495 all subblocks of ORIG_BLOCK to the new function. Call
3496 replace_block_vars_by_duplicates.
3497 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3498 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3499 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
3500 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3501 (expand_omp): Temporarily set input_location to the location of
3502 region's controlling stmt.
3503 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3504 BIND_EXPR, push ctx->block_vars and gimplification vars into
3505 the BIND_EXPR and its block's BLOCK_VARS instead of directly
3507 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3508 there are any BLOCK_VARS.
3509 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3510 OMP_PARALLEL or OMP_TASK stmt.
3511 (lower_omp): Save and restore input_location around the lower_omp_1
3514 2008-06-27 Richard Guenther <rguenther@suse.de>
3516 PR tree-optimization/36400
3517 PR tree-optimization/36373
3518 PR tree-optimization/36344
3519 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3520 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3521 (update_alias_info): Remove call clobbering code.
3522 (make_constraint_to): New helper function.
3523 (make_escape_constraint): Likewise.
3524 (handle_rhs_call): Use it on all pointer containing arguments.
3525 Also mark the static chain escaped.
3526 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3527 instead of ANYTHING.
3528 (make_constraint_from): New helper split out from ...
3529 (make_constraint_from_anything): ... here.
3530 (find_func_aliases): Add constraints for escape sites.
3531 (intra_create_variable_infos): Make constraints from NONLOCAL
3533 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3535 (clobber_what_p_points_to): Remove.
3536 (clobber_what_escaped): New function.
3537 (init_base_vars): Init NONLOCAL and ESCAPED.
3538 (do_sd_constraint): Do not propagate the solution from ESCAPED
3539 but use ESCAPED as a placeholder.
3540 (solve_graph): Likewise.
3541 * tree-flow.h (clobber_what_p_points_to): Remove.
3542 (clobber_what_escaped): Declare.
3543 * tree-ssa-alias.c (set_initial_properties): Call it.
3544 Remove code clobbering escaped pointers.
3546 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3548 * function.c (allocate_struct_function): Only allocate a unique
3549 funcdef_no if the decl is nonzero.
3551 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3553 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3554 * config/mips/mips.c (mips_split_const_insns): New function.
3555 * config/mips/mips.md (move_type): New attribute.
3556 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
3557 (dword_mode): New attribute.
3558 (type): Avoid long line. Map "move_type"s to "type"s,
3559 choosing "multi" for doubleword moves if appropriate.
3560 Swap MTC/MFC comments to match their declaration order.
3561 (extended_mips16): Default to "yes" if "move_type" is "sll0",
3562 "type" is "branch" or "jal" is "direct".
3563 (length): Handle "extended_mips16" first. Make the default
3564 "0" for "ghost" instructions. Set the length from "move_type".
3565 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3566 of "type", with "sll0" for the register alternative. Remove the
3567 "extended_mips16" attribute.
3568 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3569 of "type", with "shift_shift" for the register alternative.
3570 Remove the "length" attribute.
3571 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3572 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3573 of "type", with "andi" for the register alternative.
3574 (*zero_extendqihi2): Likewise.
3575 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3576 of "andi" instead of a "type" of "arith".
3577 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3579 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3580 (mov_<store>r, *mov<mode>_ra): Likewise.
3581 (extendsidi2): Use "move_type" instead of "type", with "move"
3582 for the register alternative.
3583 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3584 of "type", with "signext" for the register alternative.
3585 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3586 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3587 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3588 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3589 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3590 (unnamed branch insn): Likewise.
3591 (*movdi_gp32_fp64): Fold into...
3592 (*movdi_32bit): ...here.
3593 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3594 (*movdf_hardfloat): ...this new pattern.
3595 (*movdf_softfloat): Remove redundant FPR alternatives.
3596 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3597 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3598 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
3599 the "move" attribute.
3600 (*movdi_32bit): Use "move_type" instead of "type" and remove the
3601 "length" attribute. Use "fpload" and "fpstore" instead of "load"
3602 and "store" for COP loads and stores.
3603 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3604 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3605 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3606 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3607 (*movtf_mips16, *movv2sf): Likewise.
3608 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3609 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3610 (mfhc1<mode>): Use "move_type" instead of "move".
3611 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3612 (loadgp_blockage): Remove the "length" attribute.
3613 (blockage, set_got_version, update_got_version): Likewise.
3614 (call_internal): Remove the "extended_mips16" attribute.
3615 (call_value_internal, call_value_multiple_internal): Likewise.
3616 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3618 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3619 the "length" attribute.
3621 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3623 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3624 -Wcast-qual warnings.
3625 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3626 handle_pragma_pop_macro): Likewise.
3627 * collect2.c (resolve_lib_name): Likewise.
3628 * config/arc/arc.c (arc_init): Likewise.
3629 * config/arm/arm.c (neon_builtin_compare,
3630 locate_neon_builtin_icode): Likewise.
3631 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3632 * config/bfin/bfin.c (bfin_init_machine_status,
3633 bfin_optimize_loop): Likewise.
3634 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3635 * config/cris/cris.c (cris_init_expanders): Likewise.
3636 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3637 * config/darwin.c (machopic_indirection_eq,
3638 machopic_indirection_name, machopic_output_indirection): Likewise.
3639 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3640 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3641 frv_optimize_membar): Likewise.
3642 * config/i386/cygwin.h (mingw_scan,
3643 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3644 * config/i386/cygwin1.c (mingw_scan): Likewise.
3645 * config/i386/i386.c (machopic_output_stub): Likewise.
3646 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3647 i386_pe_unique_section): Likewise.
3648 * config/ia64/ia64.c (ia64_init_machine_status,
3649 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3651 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3652 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3653 * config/m68k/m68k.c (m68k_handle_option,
3654 m68k_sched_md_init_global): Likewise.
3655 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3656 mcore_unique_section): Likewise.
3657 * config/mips/mips.c (mips_block_move_straight,
3658 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3660 * config/mmix/mmix.c (mmix_init_machine_status,
3661 mmix_encode_section_info): Likewise.
3662 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3663 * config/rs6000/rs6000.c (rs6000_init_machine_status,
3664 print_operand_address, output_toc, redefine_groups,
3665 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3666 * config/s390/s390.c (s390_init_machine_status): Likewise.
3667 * config/score/score.c (score_block_move_straight,
3668 score_block_move_loop_body): Likewise.
3669 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3670 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3671 * emit-rtl.c (find_auto_inc): Likewise.
3672 * gcc.c (translate_options, process_command): Likewise.
3673 * reorg.c (dbr_schedule): Likewise.
3674 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3675 * xcoffout.c (xcoffout_declare_function): Likewise.
3677 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
3679 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3680 ipa-pta working again.
3682 2008-06-27 David Edelsohn <edelsohn@gnu.org>
3684 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3687 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
3689 * config.gcc (powerpc*-*-*): Add new core e500mc.
3690 * config/rs6000/e500mc.md: New file.
3691 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3693 (rs6000_override_options): Add e500mc case to
3694 processor_target_table. Altivec and Spe options not allowed
3695 with e500mc. Add isel instruction to e500mc by
3696 default. Initialize rs6000_cost for e500mc.
3697 (rs6000_issue_rate): Set issue rate for e500mc.
3698 * config/rs6000/rs6000.h (processor_type): Add
3699 PROCESSOR_PPCE500MC.
3700 (ASM_CPU_SPEC): Add e500mc.
3701 Set TARGET_ISEL to rs6000_isel.
3702 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3703 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3704 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3706 * doc/invoke.texi: Add e500mc to list of cpus.
3708 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3711 * c-lex.c (lex_charconst): Initialize unsignedp.
3713 2008-06-27 Olivier Hainque <hainque@adacore.com>
3715 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3716 documented assumptions.
3718 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
3720 * dwarf2out.c: Remove trailing white spaces. Break long line
3723 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
3725 * libfuncs.h (LTI_synchronize): New libfunc_index.
3726 (synchronize_libfunc): Declare.
3727 * builtins.c (expand_builtin_synchronize): Consider using
3728 synchronize_libfunc before falling back on an asm blockage.
3729 * config/mips/mips.c: Include libfuncs.h
3730 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3732 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
3734 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3735 parameter. Copy stack_reg to r11 where appropriate.
3736 (no_global_regs_above): Add gpr parameter.
3737 (rs6000_stack_info): Only add padding for SPE save area if we
3738 are saving SPE GPRs and CR.
3739 (saveres_routine_syms): New variable.
3740 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3742 (rs6000_savres_routine_sym): New function.
3743 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3745 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
3746 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
3747 Tweak FPR out-of-line saving.
3748 (rs6000_make_savres_rtx): New function.
3749 (rs6000_use_multiple_p): New function.
3750 (rs6000_savres_strategy): New function.
3751 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
3752 out-of-line if appropriate.
3753 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3754 if we are optimizing for size.
3755 (GP_SAVE_INLINE): Define.
3756 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3757 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3758 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3759 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3760 (*save_fpregs_<mode>): Add use of r11.
3761 (*restore_gpregs_<mode>): New insn.
3762 (*return_and_restore_gpregs_<mode>): New insn.
3763 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3765 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3766 (*restore_gpregs_spe): New insn.
3767 (*return_and_restore_gpregs_spe): New insn.
3768 * config/rs6000/predicates.md (save_world_operation): Fix check.
3770 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3772 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3773 this point, so assert that.
3775 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3777 * cfganal.c: Include vec.h and vecprim.h.
3778 (compute_idf): Import from...
3779 * tree-into-ssa (compute_idf): ...here.
3780 * basic-block.h (compute_idf): Export.
3782 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3784 * c-decl.c (merge_decls): Use !current_function_decl to check for
3785 extern declaration of C99 inline function being at file scope.
3787 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
3789 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3791 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3793 * alias.c (record_alias_subset, init_alias_analysis): Fix
3794 -Wc++-compat and/or -Wcast-qual warnings.
3795 * attribs.c (lookup_attribute_spec): Likewise.
3796 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3797 copy_bb, connect_traces,
3798 find_rarely_executed_basic_blocks_and_cr): Likewise.
3799 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3800 note_btr_set, migrate_btr_defs): Likewise.
3801 * builtins.c (result_vector, expand_builtin_memcpy,
3802 expand_builtin_mempcpy_args, expand_builtin_strncpy,
3803 builtin_memset_read_str, expand_builtin_printf,
3804 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3806 * caller-save.c (mark_set_regs): Likewise.
3807 * calls.c (expand_call, emit_library_call_value_1): Likewise.
3808 * cgraph.c (cgraph_edge): Likewise.
3809 * combine.c (likely_spilled_retval_1): Likewise.
3810 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3811 htab_counts_entry_del, get_coverage_counts): Likewise.
3812 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3813 new_cselib_val): Likewise.
3814 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3815 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3817 * df-core.c (df_compact_blocks): Likewise.
3818 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3819 * df-scan.c (df_grow_reg_info, df_ref_create,
3820 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3821 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3822 df_record_entry_block_defs, df_record_exit_block_uses,
3823 df_bb_verify): Likewise.
3824 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3825 DF_REF_EXTRACT_MODE_CONST): New.
3826 * dominance.c (get_immediate_dominator, get_dominated_by,
3827 nearest_common_dominator, root_of_dom_tree,
3828 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3829 -Wc++-compat and/or -Wcast-qual warnings.
3830 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3831 record_store, replace_read, check_mem_read_rtx, scan_insn,
3832 dse_step1, dse_record_singleton_alias_set): Likewise.
3833 * dwarf2asm.c (dw2_force_const_mem): Likewise.
3835 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3837 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3838 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3839 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3840 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3841 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3842 add_ranges_num, add_ranges_by_labels, file_info_cmp,
3843 file_name_acquire, output_file_names, add_const_value_attribute,
3844 premark_used_types_helper, file_table_eq, file_table_hash,
3845 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3846 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3847 -Wcast-qual warnings.
3848 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3849 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3850 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3851 gen_reg_rtx, start_sequence, init_emit): Likewise.
3852 * et-forest.c (et_new_occ, et_new_tree): Likewise.
3853 * except.c (init_eh_for_function, gen_eh_region,
3854 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3855 arh_to_landing_pad, arh_to_label, add_action_record,
3856 add_call_site, switch_to_exception_section): Likewise.
3857 * expmed.c (synth_mult): Likewise.
3858 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3859 store_expr): Likewise.
3860 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3862 * function.c (assign_stack_temp_for_type,
3863 allocate_struct_function, match_asm_constraints_1): Likewise.
3864 * gcov-io.c (gcov_allocate): Likewise.
3865 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3866 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3867 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3868 record_one_set, insert_expr_in_table, insert_set_in_table,
3869 dump_hash_table, compute_hash_table_work, alloc_hash_table,
3870 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3871 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3872 -Wcast-qual warnings.
3874 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3876 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3877 -Wcast-qual warnings.
3878 * gcc.c (process_command): Likewise.
3879 * genattrtab.c (oballoc): Use XOBNEW.
3880 (oballocvec): Define.
3881 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3882 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3883 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3884 -Wc++-compat and/or -Wcast-qual warnings.
3885 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3886 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3887 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3888 gen_presence_absence_set, gen_automaton, gen_regexp_el,
3889 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3890 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3891 add_excls, process_presence_absence_names,
3892 process_presence_absence_patterns, add_presence_absence,
3893 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3894 get_free_state, add_arc, get_free_automata_list_el,
3895 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3896 transform_3, cache_presence, create_ainsns, create_automata,
3897 create_state_ainsn_table, dfa_insn_code_enlarge,
3898 output_trans_func, output_min_issue_delay_func,
3899 output_dead_lock_func, output_reset_func,
3900 output_get_cpu_unit_code_func, output_dfa_start_func,
3901 expand_automata): Likewise.
3902 * genextract.c (gen_insn): Likewise.
3903 * gengtype-lex.l: Likewise.
3904 * gengtype.c (read_input_list, adjust_field_type,
3905 process_gc_options): Likewise.
3906 * genoutput.c (note_constraint): Likewise.
3907 * genpreds.c (mangle, add_constraint): Likewise.
3908 * genrecog.c (process_define_predicate, new_decision,
3909 add_to_sequence): Likewise.
3910 * gensupport.c (record_insn_name): Likewise.
3912 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3914 * config/i386/driver-i386.c (detect_caches_amd,
3915 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3916 and/or -Wcast-qual warnings.
3917 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3918 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3919 gt_pch_save): Likewise.
3920 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3921 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3922 * global.c (compute_regsets): Likewise.
3923 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3924 finish_graph_dump_file): Likewise.
3925 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3926 unlink_bb_notes): Likewise.
3927 * integrate.c (get_hard_reg_initial_val): Likewise.
3928 * ipa-prop.c (ipa_push_func_to_list): Likewise.
3929 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3930 * local-alloc.c (update_equiv_regs): Likewise.
3931 * loop-invariant.c (check_invariant_table_size,
3932 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3934 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3935 altered_reg_used, mark_altered): Likewise.
3936 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3937 insert_var_expansion_initialization,
3938 combine_var_copies_in_loop_exit, apply_opt_in_copies,
3939 release_var_copies): Likewise.
3940 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3941 analyze_matrix_decl, add_allocation_site, analyze_transpose,
3942 analyze_accesses_for_phi_node, check_var_notmodified_p,
3943 check_allocation_function, find_sites_in_func,
3944 record_all_accesses_in_func, transform_access_sites,
3945 transform_allocation_sites): Likewise.
3946 * omp-low.c (new_omp_region, create_omp_child_function_name,
3947 check_omp_nesting_restrictions, check_combined_parallel,
3948 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3949 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3950 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3951 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3953 * opts-common.c (prune_options): Likewise.
3954 * opts.c (add_input_filename, print_filtered_help,
3955 get_option_state): Likewise.
3956 * params.c (add_params): Likewise.
3957 * passes.c (set_pass_for_id, next_pass_1,
3958 do_per_function_toporder, pass_fini_dump_file): Likewise.
3959 * postreload.c (reload_cse_simplify_operands): Likewise.
3960 * predict.c (tree_predicted_by_p, tree_predict_edge,
3961 clear_bb_predictions, combine_predictions_for_bb): Likewise.
3963 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3965 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3967 * recog.c (check_asm_operands, validate_change_1): Likewise.
3968 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3969 subst_asm_stack_regs): Likewise.
3970 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3971 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3972 * regmove.c (reg_is_remote_constant_p): Likewise.
3973 * regrename.c (regrename_optimize, scan_rtx_reg,
3974 kill_clobbered_value, kill_set_value, kill_autoinc_value):
3976 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3977 regstat_compute_calls_crossed): Likewise.
3978 * reload1.c (init_reload, new_insn_chain,
3979 has_nonexceptional_receiver, reload, copy_reloads,
3980 calculate_needs_all_insns, init_elim_table): Likewise.
3981 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3982 * rtl.c (shallow_copy_rtx_stat): Likewise.
3983 * rtlanal.c (parms_set): Likewise.
3984 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3985 sbitmap_resize, sbitmap_vector_alloc): Likewise.
3986 * sched-ebb.c (earliest_block_with_similiar_load,
3987 add_deps_for_risky_insns): Likewise.
3988 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3989 schedule_region): Likewise.
3990 * see.c (eq_descriptor_pre_extension,
3991 hash_descriptor_pre_extension, hash_del_pre_extension,
3992 eq_descriptor_properties, hash_descriptor_properties,
3993 hash_del_properties, see_seek_pre_extension_expr,
3994 see_initialize_data_structures, see_print_register_properties,
3995 see_print_pre_extension_expr, see_delete_merged_def_extension,
3996 see_delete_unmerged_def_extension, see_emit_use_extension,
3997 see_pre_delete_extension, see_map_extension, see_commit_changes,
3998 see_analyze_merged_def_local_prop,
3999 see_analyze_merged_def_local_prop,
4000 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4001 see_set_prop_merged_def, see_set_prop_unmerged_def,
4002 see_set_prop_unmerged_use, see_print_one_extension,
4003 see_merge_one_use_extension, see_merge_one_def_extension,
4004 see_store_reference_and_extension, see_update_uses_relevancy,
4005 see_update_defs_relevancy): Likewise.
4006 * statistics.c (hash_statistics_hash, hash_statistics_eq,
4007 hash_statistics_free, curr_statistics_hash): Likewise.
4008 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4009 expand_asm_operands, expand_return, case_bit_test_cmp,
4010 expand_case): Likewise.
4011 * stor-layout.c (start_record_layout): Likewise.
4012 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4013 gt_pch_save_stringpool): Likewise.
4014 * tree-data-ref.c (hash_stmt_vertex_info,
4015 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4016 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4018 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
4021 * config/i386/i386.md : Change constraints of HImode and QImode
4022 immediate operands from "i" to "n". Change SImode "ni" constraint to
4023 "i" and SImode "rmi" constraint to "g". Remove all constraints
4024 from const0_operand and const1_operand predicated operands.
4025 (i): Change QImode and HImode attribute from "i" to "n".
4026 (*subqi_2): Change HImode operands to QImode.
4029 2008-06-25 Olivier Hainque <hainque@adacore.com>
4031 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4034 2008-06-25 Richard Guenther <rguenther@suse.de>
4036 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4037 not overflow the result type.
4039 2008-06-25 Richard Guenther <rguenther@suse.de>
4041 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4042 (vn_lookup): Likewise.
4044 2008-06-25 Richard Guenther <rguenther@suse.de>
4046 PR tree-optimization/35518
4047 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4048 * tree-sra.c (instantiate_element): Use fold_build3 to build
4050 (try_instantiate_multiple_fields): Likewise.
4052 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4054 * config/rs6000/rs6000.md: Change all string instruction's clobber to
4057 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4059 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4060 use_backchain_to_restore_sp to true
4061 if the offset of the link register save area would go over the 32k - 1
4062 offset limit of the load
4065 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
4067 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4068 anchor for the type-punning blurb. Cross-reference "Structures
4069 unions enumerations and bit-fields implementation". Provide a
4070 cast-through-pointer example. Make final sentence self-contained.
4071 * doc/implement-c.texi (Structures unions enumerations and
4072 bit-fields implementation): Cross-reference the type-punning blurb
4073 in the -fstrict-aliasing documentation.
4075 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4078 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4079 the memory instead of the memory itself for the save area.
4081 2008-06-24 Olivier Hainque <hainque@adacore.com>
4082 Nicolas Roche <roche@adacore.com>
4084 * gengtype.c (srcdir_len): size_t instead of int.
4085 (get_file_realbasename): New function. For F a filename, the real
4086 basename of F, with all the path components stripped.
4087 (get_file_srcdir_relative_path): New function. For F a filename, the
4088 relative path to F from $(srcdir).
4089 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4090 get_file_realbasename. Adjust the head comment.
4091 (get_prefix_langdir_index): New function. For F a filename, return the
4092 lang_dir_names[] relative index of the language directory that is
4094 (get_file_langdir): For F a filename, return the name of the language
4095 directory where F is located.
4096 (get_file_gtfilename): New function. The gt- output file name for an
4098 (get_output_file_with_visibility): Replace in-line computations with
4099 uses of get_file_gtfilename and get_prefix_langdir_index.
4100 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4102 2008-06-24 Jakub Jelinek <jakub@redhat.com>
4104 PR tree-optimization/36504
4105 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4106 references without base address.
4108 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4111 * calls.c (expand_call): Increase alignment for recursive functions.
4113 2008-06-23 Anatoly Sokolov <aesok@post.ru>
4115 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4116 (TARGET_FUNCTION_VALUE): New define.
4117 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4118 * config/avr/avr.h (FUNCTION_VALUE): Remove.
4120 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4122 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4123 (fmod<mode>3): Ditto.
4124 (remainderxf3): Ditto.
4125 (remainder<mode>3): Ditto.
4127 2008-06-23 Jakub Jelinek <jakub@redhat.com>
4130 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4131 REG is a hard register.
4133 PR tree-optimization/36508
4134 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4135 499, don't check it at all in release compilers.
4137 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4139 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4140 together with SSE_TARGET_MATH to disable insn pattern.
4141 (*fop_<MODEF:mode>_2_i387): Ditto.
4142 (*fop_<MODEF:mode>_3_i387): Ditto.
4144 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
4146 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4148 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4151 * gimplify.c (gimplify_asm_expr): Check the return code of
4152 parse_output_constraint call, set function return and is_inout
4155 2008-06-22 Ian Lance Taylor <iant@google.com>
4157 * c-lex.c (narrowest_unsigned_type): Change itk to int.
4158 (narrowest_signed_type): Likewise.
4159 * c-typeck.c (c_common_type): Change local variable mclass to enum
4161 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4162 tcc_comparison, not the tree code itself.
4163 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4164 (c_expand_expr): Cast modifier to enum expand_modifier.
4165 * c-common.h (C_RID_CODE): Add casts.
4166 (C_SET_RID_CODE): Define.
4167 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4168 (c_lex_one_token): Add cast to avoid warning.
4169 (c_parser_objc_type_name): Rename local typename to type_name.
4170 (check_no_duplicate_clause): Change code parameter to enum
4172 (c_parser_omp_var_list_parens): Change kind parameter to enum
4174 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4175 c_parser_omp_list_var_parens.
4176 (c_parser_omp_threadprivate): Likewise.
4177 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4178 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4179 * c-format.c (NO_FMT): Define.
4180 (printf_length_specs): Use NO_FMT.
4181 (asm_fprintf_length_specs): Likewise.
4182 (gcc_diag_length_specs): Likewise.
4183 (scanf_length_specs): Likewise.
4184 (strfmon_length_specs): Likewise.
4185 (gcc_gfc_length_specs): Likewise.
4186 (printf_flag_specs): Change 0 to STD_C89.
4187 (asm_fprintf_flag_specs): Likewise.
4188 (gcc_diag_flag_specs): Likewise.
4189 (gcc_cxxdiag_flag_specs): Likewise.
4190 (scanf_flag_specs): Likewise.
4191 (strftime_flag_specs): Likewise.
4192 (strfmon_flag_specs): Likewise.
4193 (print_char_table): Likewise.
4194 (asm_fprintf_char_table): Likewise.
4195 (gcc_diag_char_table): Likewise.
4196 (gcc_tdiag_char_table): Likewise.
4197 (gcc_cdiag_char_table): Likewise.
4198 (gcc_cxxdiag_char_table): Likewise.
4199 (gcc_gfc_char_table): Likewise.
4200 (scan_char_table): Likewise.
4201 (time_char_table): Likewis.
4202 (monetary_char_table): Likewise.
4203 * c-format.h (BADLEN): Likewise.
4205 2008-06-21 Ian Lance Taylor <iant@google.com>
4207 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4208 Define END_OF_BASE_TREE_CODES around inclusion.
4209 * tree.c (tree_code_type): New global array.
4210 (tree_code_length, tree_code_name): Likewise.
4211 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4213 (all-tree.def, s-alltree): New targets.
4214 (gencheck.h, s-gencheck): Remove.
4215 (tree.o): Depend upon all-tree.def.
4216 (build/gencheck.o): Remove gencheck.h dependency.
4217 (mostlyclean): Don't remove gencheck.h.
4218 * c-common.h (enum c_tree_code): Remove.
4219 * c-lang.c (tree_code_type): Remove.
4220 (tree_code_length, tree_code_name): Remove.
4221 * gencheck.c (tree_codes): Include all-tree.def, rather than
4222 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
4224 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4226 * cp/cp-tree.h (enum cplus_tree_code): Remove.
4227 (operator_name_info): Size to MAX_TREE_CODES.
4228 (assignment_operator_name_info): Likewise.
4229 * cp/cp-lang.c (tree_code_type): Remove.
4230 (tree_code_length, tree_code_name): Remove.
4231 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4232 (assignment_operator_name_info): Likewise.
4233 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4235 * cp/mangle.c (write_expression): Likewise.
4236 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4237 * fortran/f95-lang.c (tree_code_type): Remove.
4238 (tree_code_length, tree_code_name): Remove.
4239 * java/java-tree.h (enum java_tree_code): Remove.
4240 * java/lang.c (tree_code_type): Remove.
4241 (tree_code_length, tree_code_name): Remove.
4242 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4243 * objc/objc-act.h (enum objc_tree_code): Remove.
4244 * objc/objc-lang.c (tree_code_type): Remove.
4245 (tree_code_length, tree_code_name): Remove.
4246 * objcp/objcp-lang.c (tree_code_type): Remove.
4247 (tree_code_length, tree_code_name): Remove.
4248 * ada/ada-tree.h (enum gnat_tree_code): Remove.
4249 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4250 * ada/misc.c (tree_code_type): Remove.
4251 (tree_code_length, tree_code_name): Remove.
4253 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
4255 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4256 the grand_bitmap_obstack.
4258 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4260 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4261 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4262 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4263 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4264 move_stmt_r, new_label_mapper): Likewise.
4265 * tree-complex.c (cvc_lookup): Likewise.
4266 * tree-dfa.c (create_function_ann): Likewise.
4267 * tree-dump.c (dump_register): Likewise.
4268 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4269 find_phi_replacement_condition): Likewise.
4270 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4271 tree_function_versioning): Likewise.
4272 * tree-into-ssa.c (cmp_dfsnum): Likewise.
4273 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4274 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4275 get_nonlocal_debug_decl, convert_nonlocal_reference,
4276 convert_nonlocal_omp_clauses, get_local_debug_decl,
4277 convert_local_reference, convert_local_omp_clauses,
4278 convert_nl_goto_reference, convert_nl_goto_receiver,
4279 convert_tramp_reference, convert_call_expr): Likewise.
4280 * tree-outof-ssa.c (contains_tree_r): Likewise.
4281 * tree-parloops.c (reduction_phi, initialize_reductions,
4282 eliminate_local_variables_1, add_field_for_reduction,
4283 add_field_for_name, create_phi_for_local_result,
4284 create_call_for_reduction_1, create_loads_for_reductions,
4285 create_stores_for_reduction, create_loads_and_stores_for_name):
4287 * tree-phinodes.c (allocate_phi_node): Likewise.
4288 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4289 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4290 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4291 * tree-ssa-coalesce.c (compare_pairs): Likewise.
4292 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4293 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4294 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4295 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4296 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4297 vn_nary_op_insert): Likewise.
4298 * tree-ssa.c (redirect_edge_var_map_add,
4299 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4300 * tree-vectorizer.c (vectorize_loops): Likewise.
4301 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4302 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4303 tree_cons_stat, build1_stat, build_variant_type_copy,
4304 decl_init_priority_lookup, decl_fini_priority_lookup,
4305 decl_priority_info, decl_restrict_base_lookup,
4306 decl_restrict_base_insert, decl_debug_expr_lookup,
4307 decl_debug_expr_insert, decl_value_expr_lookup,
4308 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4309 type_hash_add, get_file_function_name, tree_check_failed,
4310 tree_not_check_failed, tree_range_check_failed,
4311 omp_clause_range_check_failed, build_omp_clause,
4312 build_vl_exp_stat): Likewise.
4313 * value-prof.c (gimple_histogram_value,
4314 gimple_duplicate_stmt_histograms): Likewise.
4315 * var-tracking.c (attrs_list_insert, attrs_list_copy,
4316 unshare_variable, variable_union_info_cmp_pos, variable_union,
4317 dataflow_set_different_1, dataflow_set_different_2,
4318 vt_find_locations, variable_was_changed, set_variable_part,
4319 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4320 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4321 section_entry_hash, object_block_entry_eq,
4322 object_block_entry_hash, create_block_symbol,
4323 initialize_cold_section_name, default_function_rodata_section,
4324 strip_reg_name, set_user_assembler_name, const_desc_eq,
4325 build_constant_desc, output_constant_def, lookup_constant_def,
4326 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4327 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4328 default_internal_label): Likewise.
4329 * varray.c (varray_init, varray_grow): Likewise.
4330 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4332 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
4334 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4335 operators for "test" insn. Macroize insn using SWI mode macro.
4336 (*jcc_fused_2): Ditto.
4337 (*jcc_fused_3): Macroize insn using SWI mode macro.
4338 (*jcc_fused_4): Ditto.
4340 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
4342 * tree-ssa-pre.c: Fix typo in comment.
4343 (init_antic, fini_antic): Add explicit funtions for
4344 initializing and deinitializing ANTIC and AVAIL sets.
4345 (create_expression_by_pieces): Fix typo in comment.
4346 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4347 (execute_pre): Eventually dump details about ANTIC_IN.
4349 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4351 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4352 * gcc.c (translate_options, init_spec, store_arg, read_specs,
4353 add_to_obstack, file_at_path, find_a_file, execute,
4354 add_preprocessor_option, add_assembler_option, add_linker_option,
4355 process_command, insert_wrapper, do_option_spec, do_self_spec,
4356 spec_path, do_spec_1, is_directory, main, used_arg,
4357 getenv_spec_function): Likewise.
4358 * tlink.c (symbol_hash_lookup, file_hash_lookup,
4359 demangled_hash_lookup, symbol_push, file_push, frob_extension):
4362 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
4364 * doc/rtl.texi: Updated subreg section.
4366 2008-06-19 Jakub Jelinek <jakub@redhat.com>
4369 * cgraphunit.c (cgraph_process_new_functions): Don't clear
4370 node->needed and node->reachable.
4371 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4372 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4373 (expand_task_call): Don't call expand_task_copyfn.
4374 (expand_task_copyfn): Renamed to...
4375 (finalize_task_copyfn): ... this.
4377 2008-06-19 Jan Hubicka <jh@suse.cz>
4379 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4380 clobbering framepointer.
4382 2008-06-19 Jan Hubicka <jh@suse.cz>
4384 * tree-optimize.c (execute_early_local_optimizations): Set
4385 cgraph_state only at first invocation.
4387 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4389 * system.h (-Wc++-compat): Activate as a warning, no an error.
4391 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4393 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4394 instead of "#" in insn asm template.
4395 (*jcc_fused_2): Ditto.
4397 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4399 * config/i386/i386.h (ix86_tune_indices)
4400 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4401 (TARGET_FUSE_CMP_AND_BRANCH): New define.
4402 * config/i386/i386.md (*jcc_fused_1): New insn pattern
4403 (*jcc_fused_2): Ditto.
4404 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4405 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4406 (print operand): Handle 'E' and 'e' code.
4408 2008-06-19 Anatoly Sokolov <aesok@post.ru>
4410 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4411 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4412 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4414 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
4416 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4418 (cgraph_expand_function): Use local copy of decl.
4419 (cgraph_expand_all_functions): Remove redundant initialization of
4421 (cgraph_optimize): Reword internal_error message.
4423 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
4425 * arm-protos.h (arm_return_in_memory): Remove public
4426 arm_return_in_memory() prototype.
4427 * arm.c (arm_return_in_memory): Add static prototype, add target
4428 hook macro, change definition and comments.
4429 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4431 2008-06-19 Ben Elliston <bje@au.ibm.com>
4433 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4434 real.c: Remove references to IEEE 754R.
4435 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4436 * doc/libgcc.texi (Decimal float library routines): Likewise.
4438 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4440 * targhooks.h (struct gcc_target): New member unwind_word_mode.
4441 (default_unwind_word_mode): Add prototype.
4442 * targhooks.c (default_unwind_word_mode): New function.
4443 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4444 instead of word_mode.
4445 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4446 (TARGET_INITIALIZER): Use it.
4448 * c-common.c (handle_mode_attribute): Support "unwind_word"
4450 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4452 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4453 word_mode to access SjLj_Function_Context member "data".
4454 (sjlj_emit_dispatch_table): Likewise. Also, perform type
4455 conversion from targetm.eh_return_filter_mode () to
4456 targetm.unwind_word_mode () if they differ.
4458 * builtin-types.def (BT_UNWINDWORD): New primitive type.
4459 (BT_FN_UNWINDWORD_PTR): New function type.
4460 (BT_FN_WORD_PTR): Remove.
4461 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4462 * except.c (expand_builtin_extend_pointer): Convert pointer to
4463 targetm.unwind_word_mode () instead of word_mode.
4465 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4466 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4467 (spu_unwind_word_mode): New function.
4468 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4469 (TARGET_UNWIND_WORD_MODE): Define.
4470 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4472 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4474 * config/spu/spu.c (reg_align): Remove.
4475 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4476 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4477 (spu_split_store): Likewise.
4479 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
4481 * gcc/tree-vn.c: Fix typo in comment.
4483 2008-06-18 Jan Hubicka <jh@suse.cz>
4485 * cgraphunit.c (cgraph_optimize): Output debug info when doing
4486 toplevel reorder too.
4488 2008-06-18 Jan Hubicka <jh@suse.cz>
4490 * c-opts.c (c_common_post_options): PCH is not compatible with
4492 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4493 -fno-toplevel-reorder by default now.
4495 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4497 PR documentation/30739
4498 * doc/install.texi (Prerequisites): Document dependency on awk.
4500 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
4501 Ian Lance Taylor <iant@google.com>
4503 PR rtl-optimization/35604
4504 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4505 only want to change jump destinations, not eventual label comparisons.
4507 2008-06-16 Jan Hubicka <jh@suse.cz>
4509 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4511 (cgraph_analyze_function): Likewise.
4513 2008-06-16 Jan Hubicka <jh@suse.cz>
4515 * cgraph.h (cgraph_mark_if_needed): New function.
4516 * cgraphunit.c (cgraph_mark_if_needed): New function.
4517 * c-decl.c (duplicate_decl): Use it.
4519 2008-06-16 Jan Hubicka <jh@suse.cz>
4521 * cgraph.c (cgraph_add_new_function): When in expansion state, do
4524 2008-06-16 Jan Hubicka <jh@suse.cz>
4526 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4528 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
4529 Kazu Hirata <kazu@codesourcery.com>
4530 Maxim Kuvyrkov <maxim@codesourcery.com
4532 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4533 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4534 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4535 EXTRA_SPEC_FUNCTIONS.
4536 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4537 (DRIVER_SELF_SPECS): Adjust.
4538 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4539 * config/mips/st.h, config/mips/t-st: New.
4540 * config/mips/driver-native.c, config/mips/x-native: New.
4541 * doc/invoke.texi (MIPS): Document 'native' value for -march and
4544 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4546 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4548 (ISA_HAS_FP_CONDMOVE): New macro.
4549 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4550 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4551 (ISA_HAS_NMADD3_NMSUB3): New macro.
4552 * config/mips/mips.c (mips_rtx_costs): Update.
4553 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4554 compiling for ST Loongson 2E/2F.
4555 (madd<mode>): Rename to madd4<mode>. Update.
4556 (madd3<mode>): New pattern.
4557 (msub<mode>): Rename to msub4<mode>. Update.
4558 (msub3<mode>): New pattern.
4559 (nmadd<mode>): Rename to nmadd4<mode>. Update.
4560 (nmadd3<mode>): New pattern.
4561 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
4562 (nmadd3<mode>_fastmath): New pattern.
4563 (nmsub<mode>): Rename to nmsub4<mode>. Update.
4564 (nmsub3<mode>): New pattern.
4565 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
4566 (nmsub3<mode>_fastmath): New pattern.
4567 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4569 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
4571 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4572 (DF_REF_INSN_INFO): New.
4573 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4574 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4575 with a NULL DF_REF_INSN_INFO.
4576 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4578 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4579 DF_INSN_INFO_EQ_USES): New.
4580 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4581 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4582 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4583 * df-core.c: Update comment for above changes.
4584 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4585 DF_INSN_UID_* macros.
4586 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4587 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4588 insn rtx. Update all callers.
4589 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4590 df_ref_create_structure, df_insn_refs_collect): Likewise.
4591 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4592 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4593 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4594 macros to access the insn refs.
4595 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4596 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4597 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4598 for accessing the refs.
4599 (try_fwprop_subst): Likewise.
4600 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4601 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4602 for accessing the refs.
4603 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4604 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4605 to look at the insn refs.
4606 (record_uses): Likewise.
4607 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4609 (mark_artificial_uses): Don't mark_insn for artificial refs.
4610 (mark_reg_rependencies): Likewise.
4612 * doc/rtl.texi: Remove documentation of ADDRESSOF.
4614 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4616 * configure: Regenerate.
4618 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4620 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4621 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4622 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4624 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4626 * config/avr/avr.c (avr_mcu_t): Add attiny167.
4627 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4628 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4630 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4632 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4633 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4634 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4636 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4638 * tree-ssa-sccvn.c: Fix format of comments.
4640 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4642 * cgraph.c: Remove unneeded forward declarations of eq_node()
4645 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
4647 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4649 (see_update_relevancy): Likewise.
4650 * fwprop.c (try_fwprop_subst): Likewise.
4651 * rtlanal.c (noop_move_p): Likewise.
4652 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4653 notes to non-existing libcall blocks.
4654 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
4656 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4657 (dead_libcall_p): Remove.
4658 (delete_trivially_dead_insns): Don't use it.
4659 * web.c (union_defs): Remove comment about keeping nops.
4660 * gcse.c (hash_scan_insn): Don't take libcall pointers.
4661 (compute_hash_table_work): Don't track libcall notes.
4662 (do_local_cprop): Don't take libcall pointers. Don't update
4664 (adjust_libcall_notes): Deleted.
4665 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4666 ever have existed in the first place).
4667 (replace_store_insn): Don't try to remove libcall notes.
4668 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4669 (resolve_reg_notes): Don't call them.
4670 (resolve_simple_move): Likewise.
4671 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4672 Don't remove REG_RETVAL notes.
4673 * emit-rtl.c (try_split): Don't update libcall notes.
4674 (emit_copy_of_insn_after): Dito.
4675 * cselib.c (cselib_current_insn_in_libcall): Remove.
4676 (cselib_process_insn): Don't set/clear it.
4677 (new_elt_loc_list): Don't record it.
4678 (cselib_init): Don't initialize it.
4679 * cselib.c (struct elt_loc_list): Remove in_libcall field.
4680 * loop-invariant.c (find_invariant_insn): Don't look for libcall
4682 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4683 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4684 (init_deps): Don't initialize it.
4685 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4686 * combine.c (delete_noop_moves): Don't update libcall notes.
4687 (can_combine_p): Remove now pointless #if 0 block.
4688 (try_combine): Remove another obsolete #if 0 block.
4689 (distribute_notes): Don't distribute libcall notes.
4690 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4691 * dce.c (libcall_dead_p): Remove.
4692 (delete_unmarked_insns): Don't handle libcall blocks.
4693 (preserve_libcall_for_dce): Remove.
4694 (prescan_insns_for_dce): Don't special-case libcall block insns.
4695 * reload1 (reload): Don't handle libcall notes.
4696 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4699 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4701 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4702 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4703 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4705 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4707 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4708 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4709 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4711 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4713 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4715 2008-06-16 Ira Rosen <irar@il.ibm.com>
4717 PR tree-optimization/36493
4718 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4719 the arguments list. Use VECTYPE to create vector pointer.
4720 (vectorizable_store): Fail if accesses through a pointer to vectype
4721 do not alias the original memory reference operands.
4722 Call vect_create_data_ref_ptr without the removed argument.
4723 (vectorizable_load): Likewise.
4724 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4727 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
4730 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4733 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4735 * config/mips/loongson2ef.md: New file.
4736 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4737 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4738 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4739 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4740 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4742 (loongson2ef.md): New include.
4743 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4744 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4745 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4746 (loongson_gt_<mode>, loongson_extract_halfword)
4747 (loongson_insert_halfword_0, loongson_insert_halfword_2)
4748 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4749 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4750 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4751 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4752 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4753 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4754 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4755 (vec_interleave_low<mode>): Define type attribute.
4756 * config/mips/mips.c (mips_ls2): New static variable.
4757 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4758 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4759 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4760 Implement target scheduling hooks.
4761 (mips_multipass_dfa_lookahead): Update to handle tuning for
4763 (mips_sched_init): Initialize data for Loongson scheduling.
4764 (mips_ls2_variable_issue): New static function.
4765 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4767 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4768 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4769 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4770 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4771 Handle ST Loongson 2E/2F cores.
4772 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4774 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4776 * omp-low.c (extract_omp_for_data): Fix comment typo.
4779 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4781 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4782 FIXME note about gcc/config.guess.
4783 * doc/options.texi (Option file format): Remove non-ASCII bytes.
4784 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4785 * doc/cppopts.texi: Likewise.
4786 * doc/extend.texi: Likewise.
4787 * doc/gcc.texi: Likewise.
4788 * doc/gccint.texi: Likewise.
4789 * doc/gcov.texi: Likewise.
4790 * doc/gty.texi: Likewise.
4791 * doc/hostconfig.texi: Likewise.
4792 * doc/install.texi: Likewise.
4793 * doc/invoke.texi: Likewise.
4794 * doc/loop.texi: Likewise.
4795 * doc/makefile.texi: Likewise.
4796 * doc/md.texi: Likewise.
4797 * doc/passes.texi: Likewise.
4798 * doc/tm.texi: Likewise.
4799 * doc/tree-ssa.texi: Likewise.
4800 * doc/trouble.texi: Likewise.
4802 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
4803 Nathan Sidwell <nathan@codesourcery.com>
4804 Maxim Kuvyrkov <maxim@codesourcery.com>
4805 Richard Sandiford <rdsandiford@googlemail.com>
4807 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4808 * config/mips/mips-protos.h (mips_expand_vector_init): New.
4809 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4811 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4812 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4813 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4815 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4816 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4817 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4818 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4819 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4820 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4821 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4822 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4823 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4824 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4825 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4826 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4827 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4828 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4829 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4830 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4831 (mips_builtins): Add Loongson builtins.
4832 (mips_loongson_2ef_bdesc): New.
4833 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4834 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4835 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4836 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4838 (mips_expand_vector_init): New.
4839 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4840 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4842 * config/mips/mips.md: Add unspec numbers for Loongson
4843 builtins. Include loongson.md.
4844 (MOVE64): Include Loongson vector modes.
4845 (SPLITF): Include Loongson vector modes.
4846 (HALFMODE): Handle Loongson vector modes.
4847 * config/mips/loongson.md: New.
4848 * config/mips/loongson.h: New.
4849 * config.gcc: Add loongson.h header for mips*-*-* targets.
4850 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4852 2008-06-14 Joseph Myers <joseph@codesourcery.com>
4854 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4855 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4856 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4857 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4858 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4859 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4860 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4861 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4862 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4863 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4864 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4865 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4866 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4867 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4868 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4869 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4870 Remove use_fixproto=yes.
4871 (ia64*-*-hpux*): Remove comment about using fixproto.
4872 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4874 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4876 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4878 * configure: Regenerate.
4880 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
4883 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4884 before evaluating it.
4886 2008-06-13 Jakub Jelinek <jakub@redhat.com>
4889 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4890 nested inline functions.
4891 (start_decl, start_function): Don't invert DECL_EXTERNAL
4892 for nested inline functions.
4894 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4896 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4897 splits that must be made for correctness.
4899 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
4901 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4902 (AVAIL_NON_MIPS16): Likewise.
4903 (mips_builtin_description): Replace target_flags with a predicate.
4904 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4905 (dspr2_32): New availability predicates.
4906 (MIPS_BUILTIN): New macro.
4907 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4908 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4909 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4910 Replace the TARGET_FLAGS parameters with AVAIL parameters.
4911 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4912 (mips_dsp_32only_bdesc): Merge into...
4913 (mips_builtins): ...this new array.
4914 (mips_bdesc_map, mips_bdesc_arrays): Delete.
4915 (mips_init_builtins): Update after above changes.
4916 (mips_expand_builtin_1): Merge into...
4917 (mips_expand_builtin): ...here and update after above changes.
4919 2008-06-12 Paul Brook <paul@codesourcery.com>
4921 * longlong.h (__arm__): Define count_leading_zeros.
4922 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4923 (clzsi2, clzdi2): New functions.
4924 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4925 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4926 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4927 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4928 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4929 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4930 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4931 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4932 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4933 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4935 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
4937 * config/m68k/m68k.c (m68k_tune_flags): New.
4938 (override_options): Compute m68k_tune_flags.
4939 (MULL_COST, MULW_COST): Update for various variants of CFV2.
4940 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4942 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4945 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4947 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4949 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4950 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4952 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
4954 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4955 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4957 2008-06-12 Jakub Jelinek <jakub@redhat.com>
4960 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4963 2008-06-12 Richard Guenther <rguenther@suse.de>
4965 PR tree-optimization/36345
4966 * tree-flow.h (struct ptr_info_def): Align escape_mask,
4967 add memory_tag_needed flag.
4968 (may_alias_p): Declare.
4969 * tree-ssa-alias.c (may_alias_p): Export.
4970 (set_initial_properties): Use memory_tag_needed flag.
4971 (update_reference_counts): Likewise.
4972 (reset_alias_info): Reset memory_tag_needed flag.
4973 (create_name_tags): Check memory_tag_needed flag.
4974 (dump_points_to_info_for): Dump it.
4975 * tree-ssa-structalias.c (struct variable_info): Remove
4976 directly_dereferenced flag.
4977 (new_var_info): Do not initialize it.
4978 (process_constraint_1): Do not set it.
4979 (update_alias_info): Set is_dereferenced flag.
4980 (set_uids_in_ptset): Use may_alias_p.
4981 (set_used_smts): Check memory_tag_needed flag.
4982 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
4983 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4984 memory_tag_needed flag.
4985 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4988 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
4990 * config/i386/i386.c (ix86_compute_frame_layout): Disable
4991 red zone for w64 abi.
4992 (ix86_expand_prologue): Likewise.
4993 (ix86_force_to_memory): Likewise.
4994 (ix86_free_from_memory): Likewise.
4996 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
4999 * config/rs6000/rs6000.c (rs6000_override_options): Set
5000 rs6000_isel conditionally to the absence of comand line override.
5001 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5002 Remove duplicate rs6000_isel setting.
5003 * config/rs6000/eabispe.h: Ditto.
5005 2008-06-11 Richard Guenther <rguenther@suse.de>
5007 * alias.c (get_alias_set): Use the element alias-set for arrays.
5008 (record_component_aliases): For arrays and vectors do nothing.
5009 * c-common.c (strict_aliasing_warning): Handle the cases
5010 of alias set zero explicitly.
5011 * Makefile.in (dfp.o-warn): Add -Wno-error.
5013 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5015 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5017 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5018 tune_32 tune_64 to supported_defaults. Allow values not
5019 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5020 x86_64. Do not override cpu_32 or cpu_64 values from target name.
5021 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5022 with_cpu_64 to generic for 64-bit-supporting configurations, not
5023 with_cpu. Remove FIXMEs.
5024 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5025 --with-arch-64, --with-tune-32, --with-tune-64): Document.
5026 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5027 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5028 arch_32 and arch_64.
5030 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
5031 Olivier Hainque <hainque@adacore.com>
5033 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5034 Use DECL_SIZE_UNIT to retrieve the size of the field.
5036 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5038 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5039 with function calls after declarations. Lay out
5040 neon_float_type_node before further use.
5042 2008-06-11 Richard Guenther <rguenther@suse.de>
5044 * tree-flow.h (may_point_to_global_var): Declare.
5045 * tree-ssa-alias.c (may_point_to_global_var): New function.
5046 * tree-ssa-sink.c (is_hidden_global_store): Use it.
5048 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
5050 * configure.ac: Teach that fido supports .debug_line.
5051 * configure: Regenerate.
5053 2008-06-10 Tom Tromey <tromey@redhat.com>
5055 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5058 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5060 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5061 (encode_decimal64, decode_decimal64, encode_decimal128,
5062 decode_decimal128): Reverse order of 32-bit parts of value if host
5063 and target endianness differ.
5065 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
5067 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5068 Avoid division by 0.
5069 (tree_mod_pow2_value_transform): Likewise.
5070 (tree_ic_transform): Likewise.
5071 (tree_stringops_transform): Likewise.
5072 (tree_mod_subtract_transform): Likewise.
5073 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5074 (copy_edges_for_bb): Likewise.
5075 (initialize_cfun): Likewise.
5077 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5079 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5080 nonmemory_operand. Add "N" operand constraint.
5082 (*jcc_btdi_mask_rex64): New instruction and split pattern.
5083 (*jcc_btsi_mask): Ditto.
5084 (*jcc_btsi_mask_1): Ditto.
5086 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5088 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5089 TYPE_CANONICAL for copied element type.
5091 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5094 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5095 Add m_CORE2 and m_GENERIC.
5096 * config/i386/predicates.md (bt_comparison_operator): New predicate.
5097 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5099 (*jcc_btdi_rex64): New instruction and split pattern.
5101 (*jcc_btsi_1): Ditto.
5102 (*btsq): Fix Intel asm dialect operand order.
5106 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
5109 * simplify-rtx.c (simplify_subreg): Add check for shift count
5112 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
5114 * doc/md.texi: Synchronize with later constraints.md change.
5115 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5116 with a C implementation.
5117 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5119 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5120 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5121 when moving to and from MD_REGNUM.
5122 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5123 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5124 Handle byte and halfword moves.
5125 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5127 * config/mips/constraints.md (h): Turn into NO_REGS.
5128 (l, x): Update documentation.
5129 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5130 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5131 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5132 (HILO): New mode iterator.
5134 (any_div): New code iterator.
5135 (u): Extend code attribute to div and udiv.
5136 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5137 d_operand in the splitters. Remove redundant CONST_INT checks.
5138 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5139 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5140 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
5141 accordingly, using normal moves instead of unspecs to move LO into
5142 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
5143 (<u>mulsidi3): Handle expansion in C code.
5144 (<u>mulsidi3_32bit_internal): Rename to...
5145 (<u>mulsidi3_32bit): ...this.
5146 (<u>mulsidi3_32bit_r4000): Fix insn separator.
5147 (*<u>mulsidi3_64bit): Rename to...
5148 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
5149 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
5150 to set LO and HI to the multiplication result. Use a normal move
5151 for MFLO and an unspec for MFHI.
5152 (*<u>mulsidi3_64bit_parts): Replace with...
5153 (<u>mulsidi3_64bit_hilo): ...this new instruction.
5154 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5155 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5156 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
5157 instead of HI. Split the instruction into a separate multiplication
5158 and MFHI if !TARGET_FIX_R4000.
5159 (<su>muldi3_highpart): Likewise.
5160 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5161 and the "=h" clobber.
5162 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5163 (<u>mulditi3): New expander.
5164 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5165 (madsi): Remove "=h" clobber.
5166 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5167 Force the modulus result to be a GPR and split the instruction into
5168 a division followed by an MFHI after reload.
5169 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5170 (*lea_high64): Use d_operand in the define_peephole2. Likewise
5171 the MIPS16 HIGH define_split.
5172 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5173 of acc<->gpr moves to "multi".
5174 (*movdi_64bit): Replace the single "x" alternative with
5175 alternatives for moving into and out of "a".
5176 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
5177 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5178 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5179 Use d_operand in the splitters. Remove redundant CONST_INT checks.
5180 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
5181 (movti): New expander.
5182 (*movti, *movti_mips16): New insns.
5183 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5184 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5185 (mthi<GPR:mode>_<HILO:mode>): Likewise.
5186 * config/mips/predicates.md (fpr_operand): Delete.
5187 (d_operand): New predicate.
5189 2008-06-09 Michael Meissner <michael.meissner@amd.com>
5191 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5192 failure on some Bourne shells.
5193 (x86_64-*-*): Ditto.
5195 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
5197 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5199 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5201 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5202 (sparc-sun-solaris2*): Likewise.
5204 2008-06-09 Arnaud Charlet <charlet@adacore.com
5206 * doc/install.texi: Update requirements to build the Ada compiler.
5208 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
5210 * df-scan.c (struct df_scan_problem_data): Remove the
5211 mw_link_pool alloc pool.
5212 (df_scan_free_internal): Don't free it.
5213 (df_scan_alloc): Don't allocate it.
5214 * df.h (struct df_link): Update comment.
5216 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
5218 * except.h: Correct checks for when SJLJ exceptions must be used.
5220 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5222 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5225 2008-06-08 Joseph Myers <joseph@codesourcery.com>
5227 PR tree-optimization/36218
5228 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5229 configure for the build system.
5230 (BUILD_LDFLAGS): Define.
5231 * configure: Regenerate.
5232 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5234 2008-07-08 Anatoly Sokolov <aesok@post.ru>
5237 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5238 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5239 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5241 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
5243 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5245 2008-06-07 Joseph Myers <joseph@codesourcery.com>
5247 * config.gcc (Obsolete configurations): Remove list of
5249 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5250 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
5251 targets matched by those patterns.
5252 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5253 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5254 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5255 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5256 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5257 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5258 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5259 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5260 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5261 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5262 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5263 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5264 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5265 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5266 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5267 Make code for Solaris 7 and greater unconditional for Solaris.
5268 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5269 Remove --with-* handling.
5270 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5271 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5272 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5273 LINK_OS_WINDISS_SPEC): Remove.
5274 * config/rs6000/sysv4.opt (mwindiss): Remove.
5275 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5276 * configure: Regenerate.
5277 * doc/cpp.texi: Don't mention BeOS.
5278 * doc/extend.texi (interrupt): Don't mention MS1.
5279 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5280 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5281 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5282 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5283 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5285 * doc/invoke.texi (MT Options): Remove.
5286 (-mwindiss): Remove.
5287 (CRIS Options): Remove cris-axis-aout references.
5288 (HPPA Options): Don't mention hppa1.1-*-pro.
5289 * doc/md.texi: (MorphoTech family): Remove.
5290 * libgcc2.c: Don't handle UWIN.
5291 * config/alpha/t-unicosmk: Remove.
5292 * config/alpha/unicosmk.h: Remove.
5293 * config/arm/kaos-arm.h: Remove.
5294 * config/arm/kaos-strongarm.h: Remove.
5295 * config/arm/strongarm-coff.h: Remove.
5296 * config/arm/strongarm-elf.h: Remove.
5297 * config/arm/strongarm-pe.h: Remove.
5298 * config/arm/t-strongarm-pe: Remove.
5299 * config/arm/t-xscale-coff: Remove.
5300 * config/arm/t-xscale-elf: Remove.
5301 * config/arm/xscale-coff.h: Remove.
5302 * config/arm/xscale-elf.h: Remove.
5303 * config/chorus.h: Remove.
5304 * config/cris/aout.h: Remove.
5305 * config/cris/aout.opt: Remove.
5306 * config/cris/t-aout: Remove.
5307 * config/i386/beos-elf.h: Remove.
5308 * config/i386/kaos-i386.h: Remove.
5309 * config/i386/ptx4-i.h: Remove.
5310 * config/i386/sco5.h: Remove.
5311 * config/i386/sco5.opt: Remove.
5312 * config/i386/sysv4-cpp.h: Remove.
5313 * config/i386/sysv5.h: Remove.
5314 * config/i386/t-beos: Remove.
5315 * config/i386/t-sco5: Remove.
5316 * config/i386/t-uwin: Remove.
5317 * config/i386/uwin.asm: Remove.
5318 * config/i386/uwin.h: Remove.
5319 * config/kaos.h: Remove.
5320 * config/mips/windiss.h: Remove.
5321 * config/mt: Remove directory.
5322 * config/pa/pa-osf.h: Remove.
5323 * config/pa/pa-pro-end.h: Remove.
5324 * config/pa/t-pro: Remove.
5325 * config/ptx4.h: Remove.
5326 * config/rs6000/beos.h: Remove.
5327 * config/rs6000/kaos-ppc.h: Remove.
5328 * config/rs6000/t-beos: Remove.
5329 * config/rs6000/windiss.h: Remove.
5330 * config/sh/kaos-sh.h: Remove.
5331 * config/sol2-6.h: Remove.
5332 * config/sparc/sol26-sld.h: Remove.
5333 * config/sparc/sysv4-only.h: Remove.
5334 * config/vax/bsd.h: Remove.
5335 * config/vax/t-memfuncs: Remove.
5336 * config/vax/ultrix.h: Remove.
5337 * config/vax/vaxv.h: Remove.
5338 * config/windiss.h: Remove.
5340 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5342 PR rtl-optimization/36438
5343 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5344 for vector shifts with constant scalar shift operands.
5346 2008-06-06 Sandip Matte <sandip@rmicorp.com>
5348 * doc/invoke.texi: Document -march=xlr.
5349 * config/mips/xlr.md: New file.
5350 * config/mips/mips.md: Include it.
5352 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5353 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5354 (mips_rtx_cost_data): Likewise.
5356 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
5358 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5359 PRE_INC and PRE_DEC cases.
5361 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5363 PR rtl-optimization/36419
5364 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5365 the emitting jump insn.
5368 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5369 is not bool, boolify the whole *expr_p and convert to the desired type.
5371 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5373 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5374 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5375 Add omp_private_outer_ref hook, add another argument to
5376 omp_clause_default_ctor hook.
5377 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5378 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5379 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5380 hook_tree_tree_tree_tree_null.
5381 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5382 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5383 * hooks.c (hook_tree_tree_tree_tree_null): New function.
5384 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5385 * tree.def (OMP_TASK): New tree code.
5386 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5387 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5388 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5389 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5390 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5391 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5392 OMP_CLAUSE_COLLAPSE_EXPR): Define.
5393 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5394 (OMP_DIRECTIVE_P): Add OMP_TASK.
5395 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5396 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5397 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5398 and OMP_CLAUSE_UNTIED entries.
5399 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
5401 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5402 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5403 * tree-pretty-print.c (dump_omp_clause): Handle
5404 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5405 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5406 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5407 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
5408 warning about unsigned iterators. Change decl/init/cond/incr
5409 arguments to TREE_VECs, check arguments for all collapsed loops.
5410 (c_finish_omp_taskwait): New function.
5411 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5413 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
5414 default_function_array_conversion on init. Add par_clauses argument.
5415 If decl is present in parallel's lastprivate clause, change it to
5416 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5417 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
5418 collapse count in clauses.
5419 (c_parser_omp_for, c_parser_omp_parallel): Adjust
5420 c_parser_omp_for_loop callers.
5421 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5422 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5423 (c_parser_omp_clause_name): Handle collapse and untied clauses.
5424 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5426 (c_parser_omp_clause_schedule): Handle schedule(auto).
5427 Include correct location in the error message.
5428 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5429 and PRAGMA_OMP_CLAUSE_UNTIED.
5430 (OMP_TASK_CLAUSE_MASK): Define.
5431 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5432 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5433 * tree-nested.c (convert_nonlocal_omp_clauses,
5434 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5435 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5436 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5437 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5439 (conver_nonlocal_reference, convert_local_reference,
5440 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
5441 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5442 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5443 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5444 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5445 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5446 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5447 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5448 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5450 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5451 * c-common.h (c_finish_omp_taskwait): New prototype.
5452 * gimple-low.c (lower_stmt): Handle OMP_TASK.
5453 * tree-parloops.c (create_parallel_loop): Create 1 entry
5454 vectors for OMP_FOR_{INIT,COND,INCR}.
5455 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5456 (make_edges): Handle OMP_TASK.
5457 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5458 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5459 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5460 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5461 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5462 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5463 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5464 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5465 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5466 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5467 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5468 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5469 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5470 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5471 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5472 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5473 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5474 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5475 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5476 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5477 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5478 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5479 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5480 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5481 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5482 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5483 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
5484 original iterator is present in lastprivate clause or if
5485 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
5486 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5487 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5488 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5489 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5490 if it is set, lookup var in outer contexts too. Handle
5491 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
5492 to be implicitly determined firstprivate for task regions.
5493 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5494 if it is set, lookup var in outer contexts too. Set
5495 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5496 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5497 OMP_CLAUSE_UNTIED. Take region_type as last argument
5498 instead of in_parallel and in_combined_parallel.
5499 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5501 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5502 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
5503 (new_omp_context): Set default_kind to
5504 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5505 (omp_region_type): New enum.
5506 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5507 fields, add region_type.
5508 (new_omp_context): Take region_type as argument instead of is_parallel
5509 and is_combined_parallel.
5510 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5511 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5512 ctx->is_combined_parallel checks.
5513 (gimplify_omp_task): New function.
5514 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5516 * omp-low.c (extract_omp_for_data): Use schedule(static)
5517 for schedule(auto). Handle pointer and unsigned iterators.
5518 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
5519 Add loops argument. Extract data for collapsed OMP_FOR loops.
5520 (expand_parallel_call): Assert sched_kind isn't auto,
5521 map runtime schedule to index 3.
5522 (struct omp_for_data_loop): New type.
5523 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5524 Add loop, loops, collapse and iter_type fields.
5525 (workshare_safe_to_combine_p): Disallow combined for if
5526 iter_type is unsigned long long. Don't combine collapse > 1 loops
5527 unless all bounds and steps are constant. Adjust extract_omp_for_data
5529 (expand_omp_for_generic): Handle pointer, unsigned and long long
5530 iterators. Handle collapsed OMP_FOR loops. Adjust
5531 for struct omp_for_data changes. If libgomp function doesn't return
5532 boolean_type_node, add comparison of the return value with 0.
5533 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5534 pointer, unsigned and long long iterators. Adjust for struct
5535 omp_for_data changes.
5536 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5537 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
5538 unsigned long long. Allocate loops array, pass it to
5539 extract_omp_for_data. For collapse > 1 loops use always
5540 expand_omp_for_generic.
5541 (omp_context): Add sfield_map and srecord_type fields.
5542 (is_task_ctx, lookup_sfield): New functions.
5543 (use_pointer_for_field): Use is_task_ctx helper. Change first
5544 argument's type from const_tree to tree. Clarify comment.
5545 In OMP_TASK disallow copy-in/out sharing.
5546 (build_sender_ref): Call lookup_sfield instead of lookup_field.
5547 (install_var_field): Add mask argument. Populate both record_type
5548 and srecord_type if needed.
5549 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5551 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5552 and DECL_FIELD_OFFSET.
5553 (scan_sharing_clauses): Adjust install_var_field callers. For
5554 firstprivate clauses on explicit tasks allocate the var by value in
5555 record_type unconditionally, rather than by reference.
5556 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5557 Use is_taskreg_ctx instead of is_parallel_ctx.
5558 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5559 (create_omp_child_function_name): Add task_copy argument, use
5560 *_omp_cpyfn* names if it is true.
5561 (create_omp_child_function): Add task_copy argument, if true create
5562 *_omp_cpyfn* helper function.
5563 (scan_omp_parallel): Adjust create_omp_child_function callers.
5564 Rename parallel_nesting_level to taskreg_nesting_level.
5565 (scan_omp_task): New function.
5566 (lower_rec_input_clauses): Don't run constructors for firstprivate
5567 explicit task vars which are initialized by *_omp_cpyfn*.
5568 Pass outer var ref to omp_clause_default_ctor hook if
5569 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5570 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5571 OMP_CLAUSE_REDUCTION_INIT.
5572 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5573 avoid duplicate setting of fields. Handle
5574 OMP_CLAUSE_PRIVATE_OUTER_REF.
5575 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
5576 copy-out if TREE_READONLY, only copy-in.
5577 (expand_task_copyfn): New function.
5578 (expand_task_call): New function.
5579 (struct omp_taskcopy_context): New type.
5580 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5582 (lower_omp_parallel): Rename to...
5583 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5584 Call create_task_copyfn if srecord_type is needed. Adjust
5586 (task_shared_vars): New variable.
5587 (check_omp_nesting_restrictions): Warn if work-sharing,
5588 barrier, master or ordered region is closely nested inside OMP_TASK.
5589 Add warnings for barrier if closely nested inside of work-sharing,
5590 ordered, or master region.
5591 (scan_omp_1): Call check_omp_nesting_restrictions even for
5592 GOMP_barrier calls. Rename parallel_nesting_level to
5593 taskreg_nesting_level. Handle OMP_TASK.
5594 (lower_lastprivate_clauses): Even if some lastprivate is found on a
5595 work-sharing construct, continue looking for them on parent parallel
5597 (lower_omp_for_lastprivate): Add lastprivate clauses
5598 to the beginning of dlist rather than end. Adjust for struct
5599 omp_for_data changes.
5600 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5601 not after it. Handle collapsed OMP_FOR loops, adjust for
5602 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5603 (get_ws_args_for): Adjust extract_omp_for_data caller.
5604 (scan_omp_for): Handle collapsed OMP_FOR
5605 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5606 (lower_omp_single_simple): If libgomp function doesn't return
5607 boolean_type_node, add comparison of the return value with 0.
5608 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5609 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
5610 (parallel_nesting_level): Rename to...
5611 (taskreg_nesting_level): ... this.
5612 (is_taskreg_ctx): New function.
5613 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5615 (execute_lower_omp): Rename parallel_nesting_level to
5616 taskreg_nesting_level.
5617 (expand_omp_parallel): Rename to...
5618 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5619 Call omp_task_call for OMP_TASK regions.
5620 (expand_omp): Adjust caller, handle OMP_TASK.
5621 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5623 * bitmap.c (bitmap_default_obstack_depth): New variable.
5624 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5625 if argument is NULL and bitmap_default_obstack is already initialized.
5626 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5628 * matrix-reorg.c (matrix_reorg): Likewise.
5630 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5632 * config/i386/i386.md (*indirect_jump): Macroize using P
5633 mode iterator. Remove !TARGET_64BIT from insn constraints.
5634 (*tablejump_1): Ditto.
5635 (*indirect_jump_rex64): Remove insn pattern.
5636 (*tablejump_1_rex64): Ditto.
5637 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5638 and eh_return_si insn patterns.
5640 2008-06-06 Richard Guenther <rguenther@suse.de>
5642 * tree-ssa-structalias.c (merge_smts_into): Remove.
5643 (find_what_p_points_to): Do not bother to compute the
5644 points-to set for pt_anything pointers.
5645 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5646 for pt_anything pointers is ok.
5648 2008-06-06 Jan Hubicka <jh@suse.cz>
5650 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5652 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5654 * cgraph.c: Fix typos in comments.
5655 (cgraph_availability_names): Fix string typo.
5656 * fold-const.c: Fix typos in comments.
5657 (fold_binary): Fix typo in warning.
5658 * genautomata.c: Fix typos in comments.
5659 (check_presence_pattern_sets): Fix typo in local variable.
5660 (output_description): Fix typo in output.
5661 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5662 * hwint.h: Likewise.
5663 * matrix-reorg.c (check_allocation_function): Likewise.
5664 * omega.c (smooth_weird_equations): Likewise.
5665 * auto-inc-dec.c: Fix typos in comments.
5666 * bb-reorder.c: Likewise.
5667 * builtins.c: Likewise.
5668 * c-common.c: Likewise.
5669 * c-cppbuiltin.c: Likewise.
5670 * c-parser.c: Likewise.
5671 * c-pretty-print.c: Likewise.
5672 * cfgcleanup.c: Likewise.
5673 * cfgexpand.c: Likewise.
5674 * cfghooks.c: Likewise.
5675 * cfglayout.c: Likewise.
5676 * cfgloopmanip.c: Likewise.
5677 * cgraphunit.c: Likewise.
5678 * coverage.c: Likewise.
5679 * dbxout.c: Likewise.
5680 * df-byte-scan.c: Likewise.
5681 * df-core.c: Likewise.
5682 * df-problems.c: Likewise.
5683 * df-scan.c: Likewise.
5685 * dominance.c: Likewise.
5686 * domwalk.c: Likewise.
5688 * dwarf2out.c: Likewise.
5689 * emit-rtl.c: Likewise.
5690 * et-forest.c: Likewise.
5691 * function.c: Likewise.
5692 * function.h: Likewise.
5694 * gcov-io.c: Likewise.
5697 * genattrtab.c: Likewise.
5698 * ggc-page.c: Likewise.
5699 * gimplify.c: Likewise.
5700 * gthr-lynx.h: Likewise.
5701 * haifa-sched.c: Likewise.
5702 * ipa-cp.c: Likewise.
5703 * ipa-inline.c: Likewise.
5704 * ipa-prop.h: Likewise.
5705 * ipa-pure-const.c: Likewise.
5706 * ipa-struct-reorg.c: Likewise.
5707 * ipa-struct-reorg.h: Likewise.
5708 * ipa-type-escape.c: Likewise.
5710 * loop-doloop.c: Likewise.
5711 * mips-tfile.c: Likewise.
5712 * mkmap-flat.awk: Likewise.
5713 * mkmap-symver.awk: Likewise.
5714 * modulo-sched.c: Likewise.
5715 * omp-low.c: Likewise.
5716 * optabs.c: Likewise.
5717 * optabs.h: Likewise.
5719 * passes.c: Likewise.
5720 * postreload-gcse.c: Likewise.
5721 * postreload.c: Likewise.
5722 * predict.c: Likewise.
5723 * pretty-print.h: Likewise.
5724 * profile.c: Likewise.
5725 * protoize.c: Likewise.
5726 * ra-conflict.c: Likewise.
5728 * recog.c: Likewise.
5729 * regclass.c: Likewise.
5731 * reload.c: Likewise.
5732 * rtl-error.c: Likewise.
5733 * rtlanal.c: Likewise.
5735 * sched-rgn.c: Likewise.
5738 * target.h: Likewise.
5739 * tree-dfa.c: Likewise.
5740 * tree-eh.c: Likewise.
5741 * tree-flow-inline.h: Likewise.
5742 * tree-inline.c: Likewise.
5743 * tree-into-ssa.c: Likewise.
5744 * tree-loop-distribution.c: Likewise.
5745 * tree-nested.c: Likewise.
5746 * tree-parloops.c: Likewise.
5747 * tree-pass.h: Likewise.
5748 * tree-pretty-print.c: Likewise.
5749 * tree-profile.c: Likewise.
5750 * tree-scalar-evolution.c: Likewise.
5751 * tree-sra.c: Likewise.
5752 * tree-ssa-alias-warnings.c: Likewise.
5753 * tree-ssa-ccp.c: Likewise.
5754 * tree-ssa-coalesce.c: Likewise.
5755 * tree-ssa-dom.c: Likewise.
5756 * tree-ssa-dse.c: Likewise.
5757 * tree-ssa-forwprop.c: Likewise.
5758 * tree-ssa-live.c: Likewise.
5759 * tree-ssa-live.h: Likewise.
5760 * tree-ssa-loop-im.c: Likewise.
5761 * tree-ssa-loop-ivopts.c: Likewise.
5762 * tree-ssa-loop-niter.c: Likewise.
5763 * tree-ssa-loop-prefetch.c: Likewise.
5764 * tree-ssa-phiopt.c: Likewise.
5765 * tree-ssa-phiprop.c: Likewise.
5766 * tree-ssa-sccvn.c: Likewise.
5767 * tree-ssa-ter.c: Likewise.
5768 * tree-ssa-threadupdate.c: Likewise.
5769 * tree-ssa.c: Likewise.
5770 * tree-vect-analyze.c: Likewise.
5771 * tree-vect-transform.c: Likewise.
5772 * tree-vectorizer.c: Likewise.
5773 * tree-vn.c: Likewise.
5774 * tree-vrp.c: Likewise.
5776 * tree.def: Likewise.
5778 * unwind-dw2-fde.c: Likewise.
5779 * unwind.inc: Likewise.
5780 * value-prof.c: Likewise.
5781 * vmsdbgout.c: Likewise.
5783 2008-06-05 David Edelsohn <edelsohn@gnu.org>
5785 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5786 always place FP constants in the TOC for TARGET_POWERPC64.
5787 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5789 2008-06-05 Joseph Myers <joseph@codesourcery.com>
5791 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5792 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5793 enable for TARGET_E500_DOUBLE.
5794 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5795 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5796 floating-point modes like integer modes for E500 double.
5797 (rs6000_legitimate_offset_address_p): Likewise.
5798 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
5799 addressing for DDmode for E500 double.
5800 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5801 modes as using 64-bits of registers for E500 double.
5802 (spe_build_register_parallel): Do not handle DDmode or TDmode.
5803 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5804 specially for E500 double.
5805 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5806 TDmode for E500 double.
5807 (rs6000_gimplify_va_arg): Only handle SDmode in registers
5808 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5809 (rs6000_split_multireg_move): Do not handle TDmode specially for
5811 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5812 using 64-bit registers for E500 double.
5813 (emit_frame_save): Do not handle DDmode specially for E500 double.
5814 (gen_frame_mem_offset): Likewise.
5815 (rs6000_function_value): Do not call spe_build_register_parallel
5816 for DDmode or TDmode.
5817 (rs6000_libcall_value): Likewise.
5818 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5819 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5822 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
5824 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5827 2008-06-04 Junjie Gu <jgu@tensilica.com>
5829 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5830 comparison for frame pointers.
5832 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
5835 * config/avr/avr.h (PUSH_ROUNDING): Remove.
5837 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
5840 * builtins.c (expand_builtin_signbit): Don't take lowpart when
5841 register is already smaller or equal to required mode.
5843 2008-06-04 Xinliang David Li <davidxl@google.com>
5845 * tree-call-cdce.c: New file.
5846 (cond_dead_built_in_calls): New static variable.
5847 (input_domain): New struct.
5848 (check_pow): New function.
5849 (check_builtin_call): Ditto.
5850 (check_target_format): Ditto.
5851 (is_call_dce_candidate): Ditto.
5852 (gen_one_condition): Ditto.
5853 (gen_conditions_for_domain): Ditto.
5854 (get_domain): Ditto.
5855 (gen_conditions_for_pow_cst_base): Ditto.
5856 (gen_conditions_for_pow_int_base): Ditto.
5857 (gen_conditions_for_pow): Ditto.
5858 (get_no_error_domain): Ditto.
5859 (gen_shrink_wrap_conditions): Ditto.
5860 (shrink_wrap_one_built_in_call): Ditto.
5861 (shink_wrap_conditional_dead_built_in_calls): Ditto.
5862 (tree_call_cdce): Ditto.
5863 (gate_call_cdce): Ditto.
5864 (pass_call_cdce): New gimple pass.
5865 * passes.c: (init_optimization_passes): New pass.
5866 * tree-pass.h: New pass declaration.
5867 * opts.c (decode_options): New flag setting.
5868 * common.opt: Add -ftree-builtin-call-dce flag.
5869 * Makefile.in: Add new source file.
5870 * tempvar.def: New tv_id.
5871 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5873 2008-06-04 Richard Guenther <rguenther@suse.de>
5875 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5876 (is_call_clobbered): Always check var_ann->call_clobbered.
5877 (mark_call_clobbered): Always set var_ann->call_clobbered.
5878 (clear_call_clobbered): Always clear var_ann->call_clobbered.
5879 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5880 (reset_alias_info): Clear call clobbering info on MTAGs and
5882 (set_pt_anything): Set pt_global_mem.
5883 (create_tag_raw): Adjust comment.
5884 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5886 2008-06-04 Joseph Myers <joseph@codesourcery.com>
5887 Maxim Kuvyrkov <maxim@codesourcery.com>
5889 * config/m68k/m68k.opt (mxgot): New option.
5890 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5891 (m68k_output_addr_const_extra): New.
5892 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5893 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5894 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5895 * doc/invoke.texi (M680x0 Options): Document -mxgot.
5897 2008-06-04 Richard Guenther <rguenther@suse.de>
5899 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5900 negative or non-representable offsets.
5902 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
5904 * config/i386/i386.c (ix86_gen_leave): New.
5905 (ix86_gen_pop1): Likewise.
5906 (ix86_gen_add3): Likewise.
5907 (ix86_gen_sub3): Likewise.
5908 (ix86_gen_sub3_carry): Likewise.
5909 (ix86_gen_one_cmpl2): Likewise.
5910 (ix86_gen_monitor): Likewise.
5911 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5912 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5913 ix86_gen_one_cmpl2 and ix86_gen_monitor.
5914 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5915 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5916 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5917 (ix86_expand_epilogue): Updated.
5918 (print_operand): Handle integer register operand for 'z'.
5919 (ix86_expand_strlensi_unroll_1): Likewise.
5920 (ix86_expand_strlen): Likewise.
5921 (ix86_expand_builtin): Likewise.
5922 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5923 mov{q}/mov{l} and add{q}/add{l}.
5925 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5927 * config/i386/i386.md (P): New mode iterator.
5928 (SFmode push_operand splitter): Macroize DImode and SImode pushes
5929 using P mode iterator.
5930 (DFmode push_operand splitter): Ditto.
5931 (XFmode push_operand splitter): Ditto.
5932 (DFmode float_extend SFmode push_operand splitter): Ditto.
5933 (XFmode float_extend SFmode push_operand splitter): Do not generate
5934 SImode pushes for 64bit target. Macroize Dimode and SImode
5935 pushes using P mode iterator.
5936 (XFmode float_extend DFmode push_operand splitter): Ditto.
5938 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5940 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5941 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5942 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5944 (ix86_call_abi_override): Remove check for call_used_regs.
5946 2008-06-03 Richard Guenther <rguenther@suse.de>
5948 * tree-ssa-structalias.c (find_func_aliases): Add constraints
5949 for the lhs of calls if the return type contains pointers.
5951 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
5953 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5954 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5955 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5956 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5957 of cfun and DEFAULT_ABI to deceide abi mode.
5959 (REG_PARM_STACK_SPACE): Removed.
5960 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5961 (STACK_BOUNDARY): Use default target to deceide stack boundary.
5962 * config/i386/i386-protos.h (ix86_cfun_abi): New.
5963 (ix86_function_abi): Likewise.
5964 (ix86_function_type_abi): Likewise.
5965 (ix86_call_abi_override): Likewise.
5966 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5967 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5968 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5969 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5971 (X86_64_REGPARM_MAX): New.
5972 (X86_64_SSE_REGPARM_MAX): New.
5973 (X64_REGPARM_MAX): New.
5974 (X64_SSE_REGPARM_MAX): New.
5975 (X86_32_REGPARM_MAX): New.
5976 (X86_32_SSE_REGPARM_MAX): New.
5977 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5978 (ix86_function_regparm): Handle user calling abi.
5979 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5980 by DEFAULT_ABI versus SYSV_ABI check.
5981 (ix86_reg_parm_stack_space): New.
5982 (ix86_function_type_abi): New.
5983 (ix86_call_abi_override): New.
5984 (ix86_function_abi): New.
5985 (ix86_cfun_abi): New.
5986 (init_cumulative_args): Call abi specific initialization.
5987 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5988 (function_arg_64): Extend SSE_REGPARM_MAX check.
5989 (function_arg (): Remove TARGET_64BIT_MS_ABI.
5990 (ix86_pass_by_reference): Likewise.
5991 (ix86_function_value_regno_p): Likewise.
5992 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5993 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5994 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5995 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5996 (setup_incoming_varargs_64): Adjust regparm for call abi.
5997 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5998 (ix86_va_start): Likewise.
5999 (ix86_gimplify_va_arg): Likewise.
6000 (ix86_expand_prologue): Likewise.
6001 (output_pic_addr_const): Likewise.
6002 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6003 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6004 (x86_output_mi_thunk): Likewise.
6005 (x86_function_profiler): Likewise.
6006 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6007 (SYSV_ABI, MS_ABI): New constants.
6009 (init_regs): Add prototype of function in regclass.c file.
6010 (OVERRIDE_ABI_FORMAT): New.
6011 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6012 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6013 (OUTGOING_REG_PARM_STACK_SPACE): New.
6014 (ix86_reg_parm_stack_space): New prototype.
6015 (CUMULATIVE_ARGS): Add call_abi member.
6016 (machine_function): Add call_abi member.
6017 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6018 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6020 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
6023 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6024 (avr_builtin_setjmp_frame_value): New function.
6025 * config/avr/avr.md (nonlocal_goto_receiver): Define.
6026 (nonlocal_goto): Define.
6028 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
6030 * config/mips/mips.c (mips_emit_loadgp): Return early if
6031 there is nothing do to, otherwise emit a blockage if
6032 !TARGET_EXPLICIT_RELOCS || crtl->profile.
6033 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6035 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6037 * configure.ac: Drop unneeded backslash ending up in config.in.
6038 * acinclude.m4: Likewise.
6039 * config.in: Regenerate.
6041 2008-05-26 Jan Hubicka <jh@suse.cz>
6043 * predict.c (maybe_hot_frequency_p): Break out of...
6044 (maybe_hot_bb_p): ... here.
6045 (maybe_hot_edge_p): New.
6046 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6047 * basic-block.h (maybe_hot_edge_p): Declare.
6049 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6051 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6052 (*cmpfp_<mode>_cc): Ditto.
6053 (*fp_jcc_8<mode>_387): Ditto.
6054 (*fop_<MODEF:mode>_2_i387): Ditto.
6055 (*fop_<MODEF:mode>_3_i387): Ditto.
6056 (*fop_xf_2_i387): Ditto.
6057 (*fop_xf_3_i387): Ditto.
6059 2008-06-02 Tomas Bily <tbily@suse.cz>
6061 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6063 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6065 * config/mips/mips.c (mips_valid_offset_p): New function.
6066 (mips_valid_lo_sum_p): Likewise.
6067 (mips_classify_address): Use them.
6068 (mips_force_address): New function.
6069 (mips_legitimize_address): Use it.
6070 * config/mips/mips.md (MOVE128): New mode iterator.
6071 (movtf): Require TARGET_64BIT. Remove empty strings.
6072 (*movtf_internal): Rename to...
6073 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
6074 of "R" and use {,fp}{load,store} attributes instead of "multi".
6075 Use a separate define_split.
6076 (*movtf_mips16): New pattern.
6078 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6080 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6081 * config/mips/mips.c (mips_expand_before_return): New function.
6082 (mips_expand_epilogue): Call it.
6083 * config/mips/mips.md (return): Turn into a define_expand.
6084 (*return): New insn.
6086 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6088 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6089 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6090 functions. Do not emit uses and clobbers of CONCATs; individually
6091 use and clobber their operands.
6092 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6093 gen_clobber, emit_use and gen_use.
6094 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6095 (expand_builtin_return): Likewise.
6096 * cfgbuild.c (count_basic_blocks): Likewise.
6097 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6098 * explow.c (emit_stack_restore): Likewise.
6099 * expmed.c (extract_bit_field_1): Likewise.
6100 * expr.c (convert_move, emit_move_complex_parts): Likewise.
6101 (emit_move_multi_word, store_constructor): Likewise.
6102 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6103 (thread_prologue_and_epilogue_insns): Likewise.
6104 * lower-subreg.c (resolve_simple_move): Likewise.
6105 * optabs.c (widen_operand, expand_binop): Likewise.
6106 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6107 * reload.c (find_reloads): Likewise.
6108 * reload1.c (eliminate_regs_in_insn): Likewise.
6109 * stmt.c (expand_nl_goto_receiver): Likewise.
6110 * config/alpha/alpha.md (builtin_longjmp): Likewise.
6111 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6112 * config/arm/arm.c (arm_load_pic_register): Likewise.
6113 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6114 * config/arm/arm.md (untyped_return): Likewise.
6115 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6116 * config/avr/avr.c (expand_prologue): Likewise.
6117 * config/bfin/bfin.c (do_unlink): Likewise.
6118 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6119 * config/cris/cris.c (cris_expand_prologue): Likewise.
6120 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6121 (machopic_legitimize_pic_address): Likewise.
6122 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6123 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6124 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6125 (ix86_expand_convert_uns_didf_sse): Likewise.
6126 (ix86_expand_vector_init_general): Likewise.
6127 * config/ia64/ia64.md (eh_epilogue): Likewise.
6128 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6129 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6130 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6131 (config/iq2000/iq2000.c): Likewise.
6132 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6133 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6134 (builtin_longjmp): Likewise.
6135 * config/mn10300/mn10300.md (call, call_value): Likewise.
6136 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6137 * config/pdp11/pdp11.md (abshi2): Likewise.
6138 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6139 * config/s390/s390.c (s390_emit_prologue): Likewise.
6140 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6141 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6142 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6143 * config/sh/sh.c (prepare_move_operands): Likewise.
6144 (output_stack_adjust, sh_expand_epilogue): Likewise.
6145 (sh_set_return_address, sh_expand_t_scc): Likewise.
6146 * config/sparc/sparc.c (load_pic_register): Likewise.
6147 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6148 * config/spu/spu.c (spu_expand_epilogue): Likewise.
6149 * config/v850/v850.c (expand_epilogue): Likewise.
6151 2008-05-31 Anatoly Sokolov <aesok@post.ru>
6153 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6154 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6155 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6156 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6157 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6158 stack pointer register.
6159 (output_movhi): Remove code for interrupt specific writing to the
6160 stack pointer register.
6162 2008-05-31 Richard Guenther <rguenther@suse.de>
6164 PR tree-optimization/34244
6165 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6166 (tree_expr_nonzero_warnv_p): Likewise.
6167 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6168 ssa_name_nonnegative_p.
6169 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6170 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6171 not tree_expr_nonzero_warnv_p.
6173 PR tree-optimization/36262
6175 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
6177 PR tree-optimization/34244
6178 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6179 (record_numbers_of_iterations): New function.
6180 (execute_vrp): Cache the numbers of iterations of loops.
6181 * tree-scalar-evolution.c (scev_reset_except_niters):
6183 (scev_reset): Use scev_reset_except_niters.
6184 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6186 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
6188 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6189 __WORKAROUND_RETS when appropriate.
6191 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6193 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6194 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6196 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6197 *fop_df_comm_sse insn patterns using MODEF mode iterator.
6198 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6199 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6200 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6201 *fop_df_1_mixed insn patterns using MODEF mode iterator.
6202 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6203 *fop_df_1_sse insn patterns using MODEF mode iterator.
6204 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6205 *fop_df_1_i387 insn patterns using MODEF mode iterator.
6206 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6207 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6208 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6209 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6210 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6211 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6212 (*fop_xf_4_i387): Use <MODE> for mode attribute.
6213 (*fop_xf_5_i387): Ditto.
6214 (*fop_xf_6_i387): Ditto.
6216 2008-05-30 Richard Guenther <rguenther@suse.de>
6218 * builtins.c (build_string_literal): Avoid generating
6219 a non-gimple_val result.
6221 2008-05-30 DJ Delorie <dj@redhat.com>
6223 * exec-tool.in: Use an environment variable (private) instead of a
6224 file (shared) as a semaphore, so as to not break parallel builds.
6226 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6228 * optabs.c (maybe_encapsulate_block): Remove.
6229 (emit_libcall_block): Adjust accordingly.
6230 * optabs.h (maybe_encapsulate_block): Remove prototype.
6232 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6233 Don't use maybe_encapsulate_block.
6235 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6237 * config/rs6000/rs6000.c (rs6000_legitimize_address,
6238 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6239 rtx is a SYMBOL_REF before calling get_pool_constant.
6241 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
6243 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6245 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
6247 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6248 rather than OS names to choose INO_T_EQ definition.
6249 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6250 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6252 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
6255 * config/darwin-f.c: New.
6256 * config/t-darwin: Added rule to build darwin-f.o.
6257 * config.gcc: Defined new variable, fortran_target_objs.
6258 (*-*-darwin*): Set fortran_target_objs.
6259 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6260 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6261 * configure: Regenerated.
6263 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
6266 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6267 canonical type if needed.
6269 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
6271 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6273 2008-05-29 Richard Guenther <rguenther@suse.de>
6275 PR tree-optimization/36343
6276 PR tree-optimization/36346
6277 PR tree-optimization/36347
6278 * tree-flow.h (clobber_what_p_points_to): Declare.
6279 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6280 pointed-to variable is dereferenced is irrelevant to whether
6281 the pointer can access the pointed-to variable.
6282 (clobber_what_p_points_to): New function.
6283 * tree-ssa-alias.c (set_initial_properties): Use it.
6284 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6285 call clobber check for NMTs.
6287 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6289 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6290 for printing gcov_type.
6292 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6294 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6295 and the eh region information.
6296 * value-prof.c (gimple_move_stmt_histograms): New function.
6297 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6299 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
6301 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6303 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6305 * value-prof.c (tree_ic_transform): Print counts.
6306 * tree-profile.c (tree_gen_ic_func_profiler):
6307 Clear __gcov_indreict_call_callee variable to avoid misattribution
6310 2008-05-28 Rafael Espindola <espindola@google.com>
6312 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6315 2008-05-28 Richard Guenther <rguenther@suse.de>
6317 PR tree-optimization/36339
6318 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6319 and clobbering code out of the loop.
6321 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6323 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6326 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6327 s390_contiguous_bitmask_p, s390_symref_operand_p,
6328 s390_check_symref_alignment, s390_reload_larl_operand,
6329 s390_reload_symref_address): New functions.
6330 (s390_branch_condition_mnemonic): Support compare and branch
6332 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6333 and 'W' constraints.
6334 (s390_secondary_reload): Add secondary reloads for unaligned
6335 symbol refs or symbol refs to floating point or QI/TI mode
6337 (legitimate_address_p): Accept symbol references as addresses.
6338 (s390_expand_insv): Use rotate and insert selected bits
6339 instruction for insv when building for z10.
6340 (print_operand_address): Handle symbol ref addresses.
6341 (print_operand): Output modifier 'c' added for signed byte values.
6342 (s390_encode_section_info): Mark symbol refs with
6343 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6345 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6346 (length attribute): RRF, RRR have 4 byte length.
6347 (FPALL, INTALL): New mode iterators added.
6348 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6349 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6350 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6351 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6352 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6353 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6354 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6355 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6357 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6358 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6359 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6360 reload<INTALL:mode><P:mode>_toreg_z10,
6361 reload<FPALL:mode><P:mode>_tomem_z10,
6362 reload<FPALL:mode><P:mode>_toreg_z10,
6363 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6364 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6365 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6366 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6368 (movmem, clrmem, cmpmem): New splitters added.
6370 * config/s390/predicates.md (larl_operand): Use
6371 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6372 SYMBOL_REF_ALIGN1_P.
6373 (s390_signed_integer_comparison,
6374 s390_unsigned_integer_comparison): New predicates.
6376 * config/s390/s390-protos.h (s390_check_symref_alignment,
6377 s390_contiguous_bitmask_p, s390_reload_larl_operand,
6378 s390_reload_symref_address,
6379 s390_compare_and_branch_condition_mask): Prototypes added.
6381 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6382 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6383 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6385 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6387 * config/s390/s390.c (z10_cost): New cost function for z10.
6388 (s390_handle_arch_option, override_options): Support -march=z10 switch.
6389 (s390_issue_rate): Adjust issue rate for z10.
6390 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6391 (processor_flags): Add PF_Z10.
6392 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6393 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6394 * gcc/config.gcc: Add z10.
6396 2008-05-28 Richard Guenther <rguenther@suse.de>
6398 PR tree-optimization/36291
6399 * tree-flow. h (struct gimple_df): Remove var_anns member.
6400 * tree-flow-inline.h (gimple_var_anns): Remove.
6401 (var_ann): Simplify.
6402 * tree-dfa.c (create_var_ann): Simplify.
6403 (remove_referenced_var): Clear alias info from var_anns of globals.
6404 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6405 (delete_tree_ssa): Clear alias info from var_anns of globals.
6406 Do not free var_anns.
6407 (var_ann_eq): Remove.
6408 (var_ann_hash): Likewise.
6410 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
6412 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6413 and loongson2f entries.
6414 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6415 * config/mips/mips.h (processor_type): Add Loongson-2E
6416 and Loongson-2F entries.
6417 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6418 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6419 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6420 * doc/invoke.texi (MIPS Options): Document loongson2e
6421 and loongson2f processor names.
6423 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6427 * config/i386/i386.c (ix86_function_arg_boundary): Use
6428 alignment of canonical type.
6429 (ix86_expand_vector_move): Check unaligned memory access for
6432 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6434 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6435 Moved to the front of file.
6437 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
6438 H.J. Lu <hongjiu.lu@intel.com>
6440 * dwarf2out.c (current_fde): New.
6442 (lookup_cfa:): Likewise.
6443 (dwarf2out_end_epilogue): Likewise.
6444 (dwarf2out_note_section_used): Likewise.
6446 2008-05-27 Michael Matz <matz@suse.de>
6449 * c.opt (Wenum-compare): New warning option.
6450 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
6452 2008-05-27 Michael Matz <matz@suse.de>
6455 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6457 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6458 into memory as tail calls.
6460 2008-05-27 Richard Guenther <rguenther@suse.de>
6462 PR tree-optimization/36339
6463 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6464 pointers cause all addressable variables to be call clobbered.
6466 2008-05-27 Richard Guenther <rguenther@suse.de>
6468 PR tree-optimization/36245
6469 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6471 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6473 * config/s390/s390.md: Replace all occurences of the 'm'
6474 constraint with 'RT'.
6476 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6478 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6480 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6482 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6483 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6484 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6486 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6488 * reload.c: (find_reloads): Skip alternatives according to the
6489 "enabled" attribute. Constify the constraint variable.
6490 * recog.c (get_attr_enabled): Add default implementation.
6491 (extract_insn): Set the alternative_enabled_p array
6492 in the recog_data struct.
6493 (preprocess_constraints, constrain_operands): Skip
6494 alternatives according to the "enabled" attribute
6495 * recog.h (struct recog_data): New field alternative_enabled_p.
6496 (skip_alternative): New inline function.
6497 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6498 (record_reg_classes): Skip alternative according to the
6499 "enabled" attribute.
6501 * doc/md.texi: Add documention for the "enabled" attribute.
6503 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6505 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6506 * postreload.c (reload_cse_simplify_operands): Replace 'm'
6507 constraint with TARGET_MEM_CONSTRAINT.
6508 * recog.c (asm_operand_ok, preprocess_constraints,
6509 constrain_operands): Likewise.
6510 * regclass.c (record_reg_classes): Likewise.
6511 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6512 * reload1.c (maybe_fix_stack_asms): Likewise.
6513 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6514 * recog.h: Adjust comment.
6515 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6516 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6517 * doc/md.texi: Add a note to description of 'm' constraint.
6518 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6520 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6522 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6523 that the bitfield is of integral type before testing its precision.
6525 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6526 Sa Liu <saliu@de.ibm.com>
6528 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6529 __modti3, __udivti3, __umodti3 and __udivmodti4.
6530 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6531 that implement TImode mul and div functions.
6532 * config/spu/multi3.c: New. Implement __multi3.
6533 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6534 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6537 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
6539 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6540 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6541 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6542 tls_sysv_suffix): New mode and mode attribute iterators.
6543 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6544 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6545 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6546 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6547 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6550 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6552 PR tree-optimization/36329
6553 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6554 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6555 * cgraphbuild.c (initialize_inline_failed): Use the latter
6556 macro in lieu of the former.
6557 * ipa-inline.c (cgraph_mark_inline): Likewise.
6558 (cgraph_decide_inlining_of_small_function): Likewise.
6559 (cgraph_decide_inlining): Likewise.
6560 (cgraph_decide_inlining_incrementally): Likewise.
6562 2008-05-26 Tristan Gingold <gingold@adacore.com>
6563 Anatoly Sokolov <aesok@post.ru>
6565 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6566 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6567 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6568 optimization for 'avr6' architecture.
6570 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
6573 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6575 2008-05-26 Richard Guenther <rguenther@suse.de>
6577 * tree-ssa-sccvn.c (expr_has_constants): Declare.
6578 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6580 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
6583 * caller-save.c (insert_restore): Verify alignment of spill space.
6584 (insert_save): Likewise.
6585 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6586 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6587 (STACK_SLOT_ALIGNMENT): Likewise.
6588 * function.c (LOCAL_ALIGNMENT): Removed.
6589 (get_stack_local_alignment): New.
6590 (assign_stack_local): Use it. Set alignment on stack slot.
6591 (assign_stack_temp_for_type): Use get_stack_local_alignment.
6592 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6593 (STACK_SLOT_ALIGNMENT): New.
6594 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6595 stack slot in XFmode.
6597 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6599 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6602 * config/i386/i386.md (allocate_stack_worker_64): Make sure
6603 argument operand in rax isn't removed.
6605 2008-05-26 Richard Guenther <rguenther@suse.de>
6608 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6609 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
6611 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6614 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6616 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
6618 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6619 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6621 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6623 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6624 build a trampoline if we don't want one.
6625 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6626 return zero for nested functions if we don't want a trampoline.
6628 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6630 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6632 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6635 * c.opt: Removed undocumented option '-lang-fortran'.
6636 * c-common.h: Removed global variable 'lang_fortran'.
6637 * c-opts.c (c_common_handle_option): Removed code to handle
6638 option '-lang-fortran'. Updated includes.
6639 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6640 definition of '__GFORTRAN__'.
6641 (define__GNUC__): Reimplemented to use BASEVER and
6642 cpp_define_formatted.
6643 (builtin_define_with_value_n): Removed.
6644 * c-incpath.h: Renamed to ...
6645 * incpath.h: ... this.
6646 * c-incpath.c: Renamed to ...
6647 * incpath.c: ... this. Updated includes.
6648 * fix-header.c: Updated includes.
6649 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6650 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6651 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6653 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6655 * tree.h: Update the table of flags used on tree nodes.
6656 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6657 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6658 (FORCED_LABEL): Add access check.
6659 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6660 (ASM_INPUT_P): Likewise.
6661 (ASM_VOLATILE_P): Likewise.
6662 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6663 (OMP_SECTION_LAST): Access private_flag directly.
6664 (OMP_RETURN_NOWAIT): Likewise.
6665 (OMP_PARALLEL_COMBINED): Likewise.
6666 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6667 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6668 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6669 deprecated_flag directly.
6671 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
6673 * final.c (frame_pointer_needed): Removed.
6674 * flags.h (frame_pointer_needed): Likewise.
6676 * function.h (rtl_data): Add frame_pointer_needed.
6677 (frame_pointer_needed): New.
6679 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
6681 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6683 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
6685 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6688 2008-05-25 Alan Modra <amodra@bigpond.net.au>
6690 * c-common.c (strip_array_types): Move function to..
6692 (get_inner_array_type): Delete.
6693 * c-common.h (strip_array_types): Move declaration to..
6695 (get_inner_array_type): Delete.
6696 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6697 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6698 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6699 * config/pa/pa.c (emit_move_sequence): Likewise.
6701 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
6703 * config/i386/i386.md (*sse_prologue_save_insn): Set length
6706 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
6708 * function.c: Include target hook for nonlocal_goto frame value.
6710 2008-05-24 Richard Guenther <rguenther@suse.de>
6712 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6713 variable can be only accessed through a pointer or a union.
6715 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6717 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6718 * doc/extend.texi: Likewise.
6720 2008-05-23 DJ Delorie <dj@redhat.com>
6722 * config/m32c/jump.md (untyped_call): Add.
6724 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6726 (m32c_address_cost): Detail costs for indirect offsets.
6728 2008-05-23 Rafael Espindola <espindola@google.com>
6730 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6731 if a node is a SUBREG.
6732 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6735 2008-05-23 Paul Brook <paul@codesourcery.com>
6736 Carlos O'Donell <carlos@codesourcery.com>
6738 * doc/extend.texi: Clarify use of __attribute__((naked)).
6739 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6740 * target.h (gcc_target): Add allocate_stack_slots_for_args.
6741 * function.c (use_register_for_decl): Use
6742 targetm.calls.allocate_stack_slots_for_args.
6743 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6744 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6745 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6747 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6749 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6751 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
6753 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6754 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6755 is only rounded once.
6757 2008-05-23 Richard Guenther <rguenther@suse.de>
6759 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6761 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
6762 Jakub Jelinek <jakub@redhat.com>
6765 * configure.ac: Handle --enable-cld.
6766 * configure: Regenerated.
6767 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6768 * config/i386/i386.h (struct machine_function): Add needs_cld field.
6769 (ix86_current_function_needs_cld): New define.
6770 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6771 (cld): New isns pattern.
6772 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6773 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6774 * config/i386/i386.opt (mcld): New option.
6775 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6776 TARGET_CLD and ix86_current_function_needs_cld.
6777 (override_options): Use -mcld by default for 32-bit code if
6780 * doc/install.texi (Options specification): Document --enable-cld.
6781 * doc/invoke.texi (Machine Dependent Options)
6782 [i386 and x86-64 Options]: Add -mcld option.
6783 (Intel 386 and AMD x86-64 Options): Document -mcld option.
6785 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
6786 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6787 (return_in_memory_64): Likewise.
6788 (return_in_memory_ms_64): Likewise.
6790 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6792 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6793 * builtins.c (fold_builtin_fpclassify): New.
6794 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6795 * builtins.def (BUILT_IN_FPCLASSIFY): New.
6796 * c-common.c (handle_type_generic_attribute): Adjust to accept
6797 fixed arguments before an elipsis.
6798 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6799 * doc/extend.texi: Document __builtin_fpclassify.
6801 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
6803 * omp-low.c (gate_expand_omp_ssa): Remove.
6804 (pass_expand_omp_ssa): Remove.
6805 (gate_expand_omp): Do not check for flag_openmp_ssa.
6806 * common.opt (-fopenmp-ssa): Remove.
6807 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6809 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
6811 * config/sh/sh.opt (mfixed-range): New option.
6812 * config/sh/sh-protos.h (sh_fix_range): Declare.
6813 * config/sh/sh.c (sh_fix_range): New function.
6814 * config/sh/sh.h (sh_fixed_range_str): Declare.
6815 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6817 * doc/invoke.texi (SH Options): Document -mfixed-range.
6819 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
6821 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6822 it before the redeclaration.
6824 2008-05-22 Anatoly Sokolov <aesok@post.ru>
6826 * config/avr/avr.c (get_sequence_length): Add new function.
6827 (expand_prologue, expand_epilogue): Remove duplicate code.
6829 2008-05-22 Rafael Espindola <espindola@google.com>
6831 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6834 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
6836 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6837 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6839 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6840 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6841 (vect_update_misalignment_for_peel): Likewise.
6842 (vector_alignment_reachable_p): Likewise.
6843 * tree-vect-transform.c (vectorizable_load): Likewise.
6844 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6845 (get_vectype_for_scalar_type): Pass mode of scalar_type
6846 to UNITS_PER_SIMD_WORD.
6848 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6849 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6850 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6851 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6852 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6854 2008-05-22 Ira Rosen <irar@il.ibm.com>
6856 PR tree-optimization/36293
6857 * tree-vect-transform.c (vect_transform_strided_load): Don't check
6858 if the first load must be skipped because of a gap.
6860 2008-05-22 Richard Guenther <rguenther@suse.de>
6862 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
6863 more cases of offset disambiguation that is possible if
6864 strict-aliasing rules apply.
6865 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6866 for basic offset and type-based disambiguation.
6868 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6870 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6871 ix86_expand_vector_set on V16QImode for SSE4.1.
6873 2008-05-21 Tom Tromey <tromey@redhat.com>
6875 * c.opt (Wimport): Mark as undocumented.
6876 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6878 (Warning Options): Likewise.
6879 * doc/cppopts.texi: Don't mention -Wimport.
6881 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6883 PR tree-optimization/36287
6884 PR tree-optimization/36286
6885 * lambda-code.c (build_access_matrix): Do not use the loop->num
6886 for computing the number of induction variables: use the loop depth
6889 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
6892 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6893 option -f(no-)leading-underscore.
6895 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6897 * config/i386/i386.c (ix86_expand_vector_init_general): Use
6898 GET_MODE_NUNITS (mode).
6900 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
6902 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6903 (-mmulhw): Add 464 to description.
6904 (-mdlmzb): Likewise.
6905 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6906 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6908 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6909 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6910 * config/rs6000/rs6000.md: Update comments for 464.
6912 2008-05-21 Janis Johnson <janis187@us.ibm.com>
6914 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6916 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6918 * config/i386/sse.md (vec_extractv4sf): Removed.
6919 (vec_extractv2df): Likewise.
6920 (vec_extractv2di): Likewise.
6921 (vec_extractv4si): Likewise.
6922 (vec_extractv8hi): Likewise.
6923 (vec_extractv16qi): Likewise.
6924 (vec_extract<mode>): New.
6926 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6928 * config/i386/sse.md (vec_setv4sf): Removed.
6929 (vec_setv2df): Likewise.
6930 (vec_setv2di): Likewise.
6931 (vec_setv4si): Likewise.
6932 (vec_setv8hi): Likewise.
6933 (vec_setv16qi): Likewise.
6934 (vec_set<mode>): New.
6936 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6938 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6939 goto for vec_concat and vec_interleave.
6941 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
6943 * config/i386/sse.md (vec_initv4sf): Removed.
6944 (vec_initv2df): Likewise.
6945 (vec_initv2di): Likewise.
6946 (vec_initv4si): Likewise.
6947 (vec_initv8hi): Likewise.
6948 (vec_initv16qi): Likewise.
6949 (vec_init<mode>): New.
6951 2008-05-21 Joseph Myers <joseph@codesourcery.com>
6953 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6955 2008-05-21 Tom Tromey <tromey@redhat.com>
6957 * ggc-zone.c (lookup_page_table_if_allocated): New function.
6958 (zone_find_object_offset): Likewise.
6959 (gt_ggc_m_S): Likewise.
6960 (highest_bit): Likewise.
6961 * ggc-page.c (gt_ggc_m_S): New function.
6962 * stringpool.c (string_stack): Remove.
6963 (init_stringpool): Update.
6964 (ggc_alloc_string): Use ggc_alloc.
6965 (maybe_delete_ident): New function.
6966 (ggc_purge_stringpool): Likewise.
6967 (gt_ggc_m_S): Remove.
6968 * ggc-common.c (ggc_protect_identifiers): New global.
6969 (ggc_mark_roots): Call ggc_purge_stringpool. Use
6970 ggc_protect_identifiers.
6971 * ggc.h (ggc_protect_identifiers): Declare.
6972 (gt_ggc_m_S): Update.
6973 (ggc_purge_stringpool): Declare.
6974 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6975 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6977 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6979 2008-05-21 David S. Miller <davem@davemloft.net>
6981 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6984 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
6986 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6989 2008-05-20 David Daney <ddaney@avtrex.com>
6991 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6992 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6993 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6994 UNSPEC_UPDATE_GOT_VERSION): Renumber.
6995 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6996 (atomic_hiqi_op): New define_code_iterator.
6997 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6998 mips_expand_compare_and_swap_12.
6999 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7000 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
7001 (sync_<optab><mode>, sync_old_<optab><mode>,
7002 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7003 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7004 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7005 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7006 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7007 (test_and_set_12): New insn.
7008 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7009 sync_new_<optab><mode>, sync_old_nand<mode>,
7010 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
7011 clobber to operand 0 for SI and DI mode insns.
7012 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7013 mips_gen_fn_4): New typedefs.
7014 (mips_gen_fn_ptrs): Define new union type.
7015 (mips_expand_compare_and_swap_12): Remove declaration.
7016 (mips_expand_atomic_qihi): Declare function.
7017 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7018 (mips_expand_atomic_qihi): ... this. Use new generator function
7020 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7021 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7022 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7023 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7024 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7025 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7026 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7027 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7028 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7029 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7032 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
7034 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7037 2008-05-20 Anatoly Sokolov <aesok@post.ru>
7039 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7040 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7041 (avr_attribute_table): Add 'OS_main' function attribute.
7042 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7043 functions with 'OS_main' attribute.
7045 2008-05-20 Richard Guenther <rguenther@suse.de>
7047 PR tree-optimization/35204
7048 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7049 helper, split out from ...
7050 (DFS): ... here. Make the DFS walk non-recursive.
7052 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7053 Jan Sjodin <jan.sjodin@amd.com>
7055 PR tree-optimization/36181
7056 * tree-parloops.c (loop_has_vector_phi_nodes): New.
7057 (parallelize_loops): Don't parallelize when the loop has vector
7060 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7061 Sebastian Pop <sebastian.pop@amd.com>
7063 * tree-loop-linear.c (gather_interchange_stats): Look in the access
7064 matrix, and never look at the tree representation of the memory
7066 (linear_transform_loops): Computes parameters and access matrices.
7067 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7069 (access_matrix_get_index_for_parameter): New.
7070 * tree-data-ref.h (struct access_matrix): New.
7071 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7072 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7073 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7074 am_vector_index_for_loop): New.
7075 (struct data_reference): Add field access_matrix.
7076 (DR_ACCESS_MATRIX): New.
7077 (compute_data_dependences_for_loop): Update declaration.
7078 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7079 * lambda.h (lambda_vector_vec_p): Declared.
7080 * lambda-code.c: Depend on pointer-set.h.
7081 (lambda_collect_parameters_from_af, lambda_collect_parameters,
7082 av_for_af_base, av_for_af, build_access_matrix,
7083 lambda_compute_access_matrices): New.
7084 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7086 2008-05-20 Joseph Myers <joseph@codesourcery.com>
7088 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7091 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7092 Sebastian Pop <sebastian.pop@amd.com>
7094 PR tree-optimization/36206
7095 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7097 (instantiate_scev_1): Rename flags to fold_conversions.
7098 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7099 outeside instantiation_loop.
7100 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7101 (evolution_function_is_affine_or_constant_p): Removed.
7102 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7104 (analyze_siv_subscript): Pass in the loop nest number.
7105 Call evolution_function_is_affine_in_loop instead of
7106 evolution_function_is_affine_p.
7107 (analyze_overlapping_iterations): Pass in the loop nest number.
7109 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7110 Sebastian Pop <sebastian.pop@amd.com>
7112 PR tree-optimization/36206
7113 * tree-chrec.h (chrec_fold_op): New.
7114 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7117 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
7119 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7121 (remove_duplicates): Do not set inode on non-inode systems.
7124 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
7126 * config.gcc (tm_file): Update comments about relative pathnames.
7128 2008-05-20 Richard Guenther <rguenther@suse.de>
7130 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7131 * tree-ssa-sccvn.c (process_scc): Likewise.
7132 * tree-ssa-sink.c (execute_sink_code): Likewise.
7133 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7134 * tree-vrp.c (process_assert_insertions): Likewise.
7135 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7136 (perform_tree_ssa_dce): Likewise.
7137 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7138 (dump_dominator_optimization_stats): Likewise.
7139 * tree-vectorizer.c (vectorize_loops): Likewise.
7141 2008-05-20 Richard Guenther <rguenther@suse.de>
7143 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7145 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
7147 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7148 (ix86_i386elf_return_in_memory): Likewise.
7149 (ix86_i386interix_return_in_memory): Likewise.
7150 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7151 (SUBTARGET_RETURN_IN_MEMORY): New.
7152 * config/i386/i386elf.h: Likewise.
7153 * config/i386/ptx4-i.h: Likewise.
7154 * config/i386/sol2-10.h: Likewise.
7155 * config/i386/sysv4.h: Likewise.
7156 * config/i386/vx-common.h: Likewise.
7157 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7158 * config/i386/i386.c (ix86_return_in_memory): Made static and
7159 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7160 (ix86_i386elf_return_in_memory): Removed.
7161 (ix86_i386interix_return_in_memory): Removed.
7162 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7163 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7165 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
7167 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7169 2008-05-19 Xinliang David Li <davidxl@google.com>
7171 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7173 * common.opt: Ditto.
7174 * doc/invoke.texi: Ditto.
7176 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
7178 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7179 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7181 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7183 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7184 sizes of operand array from 8/4 to 4/2.
7185 (ix86_expand_vector_init_general): Change size of operand array
7186 from 32 to 16. Remove op0, op1 and half_mode.
7188 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7190 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7191 (ix86_expand_vector_init_interleave): Likewise.
7192 (ix86_expand_vector_init_general): Use them. Assert
7193 word_mode == SImode when n_words == 4.
7195 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
7197 * config/i386/i386.c (ix86_secondary_reload): New static function.
7198 (TARGET_SECONDARY_RELOAD): New define.
7199 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7200 * config/i386/i386.md (reload_outqi): Remove.
7202 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7205 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7206 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
7207 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7208 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7209 (fold_builtin_1): Likewise.
7210 * builtins.def (BUILT_IN_ISINF_SIGN): New.
7211 c-common.c (check_builtin_function_arguments): Handle
7212 BUILT_IN_ISINF_SIGN.
7213 * doc/extend.texi: Document __builtin_isinf_sign.
7214 * fold-const.c (operand_equal_p): Handle COND_EXPR.
7216 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
7218 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7219 EH cleanup at the end of the pass, search for those that have been
7220 turned into forwarder blocks and do the cleanup on their successor.
7222 2008-05-18 Richard Guenther <rguenther@suse.de>
7224 * tree-cfg.c (verify_gimple_expr): Allow conversions from
7225 pointers to sizetype and vice versa.
7227 2008-05-18 Xinliang David Li <davidxl@google.com>
7229 * gcc/tree-ssa-dce.c: Coding style fix.
7230 (check_pow): Documentation comment.
7231 (check_log): Documenation comment. Coding style fix.
7232 (is_unnecessary_except_errno_call): Ditto.
7233 (gen_conditions_for_pow): Ditto.
7234 (gen_conditions_for_log): Ditto.
7235 (gen_shrink_wrap_conditions): Ditto.
7236 (shrink_wrap_one_built_in_calls): Ditto.
7237 * gcc/doc/invoke.texi: Better documentation string.
7238 * ChangeLog: Fix wrong change log entries from
7239 May 17 checkin on function call DCE.
7241 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
7243 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7245 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
7247 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7248 * df-problems.c (simulation routines): Fixed block comment to
7249 properly say how to add forwards scanning functions.
7251 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7253 * tree-inline.c (setup_one_parameter): Remove dead code.
7255 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7257 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7258 a BIT_AND_EXPR only for an INTEGER_TYPE.
7260 2008-05-17 Xinliang David Li <davidxl@google.com>
7262 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7263 (check_pow, check_log, is_unnecessary_except_errno_call): New
7264 functions to check for eliminating math functions that are pure
7265 except for setting errno.
7266 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7267 general condition expressions for shrink-wrapping pow/log calls.
7268 (gen_shrink_wrap_conditions): Ditto.
7269 (shrink_wrap_one_built_in_call): Ditto.
7270 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7271 (mark_operand_necessary): If debugging, output if OP is necessary.
7272 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7274 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7276 * gcc/common.opt: New user flag -ftree-builtin-dce.
7277 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7279 2008-05-16 David S. Miller <davem@davemloft.net>
7281 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7282 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7284 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
7287 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7289 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7291 * ifcvt.c (dead_or_predicable): Rename
7292 df_simulate_one_insn_backwards to df_simulate_one_insn.
7293 * recog.c (peephole2_optimize): Ditto.
7294 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7296 * df.h: Rename df_simulate_one_insn_backwards to
7297 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
7298 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7299 scanning of defs and uses.
7300 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7301 (df_simulate_one_insn_forwards): Removed.
7303 2008-05-16 Doug Kwan <dougkwan@google.com>
7305 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7307 (real_from_string): Handle NaNs and Inf as approriate.
7309 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7311 * doc/gty.texi (Source Files Containing Type Information): Note
7312 that headers should appear first in the gtfiles list.
7314 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7316 * tree.def (COND_EXEC): Properly documented this code.
7318 2008-05-16 Diego Novillo <dnovillo@google.com>
7320 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7321 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7324 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7326 * tree-ssa-dse (max_stmt_uid): Removed.
7327 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7328 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7329 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7330 * function.h (cfun.last_stmt_uid): New field.
7331 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7332 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7334 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7335 (create_stmt_ann): Initialize the ann->uid field.
7336 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7338 * tree-flow.h (renumber_gimple_stmt_uids): New function.
7340 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7342 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7343 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7344 (init_empty_tree_cfg): Call it.
7346 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7348 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
7351 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7353 * doc/invoke.text (-fdump-tree-*-verbose): New option.
7354 * tree-dump.c (dump_options): New verbose option.
7355 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7357 * tree-pass.h (TDF_VERBOSE): New dump flag.
7358 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7359 (tree-flow.h): Added include.
7360 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
7362 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
7364 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7366 From Jie Zhang <jie.zhang@analog.com>
7367 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7368 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7369 mcpu=bf561-none and mcpu=bf561-0.2.
7370 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7371 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7372 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7373 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7374 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7375 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7376 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
7378 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7379 (cputype_selected): Remove.
7380 (bfin_handle_option): Don't use cputype_selected.
7381 (override_options): When no mcpu option, enable all workarounds.
7382 Don't use bfin_workarounds.
7383 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7385 (DEFAULT_CPU_TYPE): Don't define.
7387 2008-05-16 Richard Guenther <rguenther@suse.de>
7389 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7390 on deletion of the last stmt.
7392 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7394 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7395 V8HImode for SSE2 and V16QImode for SSE4.1.
7397 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
7399 * cgraph.h (compute_inline_parameters): Made public.
7400 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7401 variable_generate_summary, function_write_summary,
7402 variable_write_summary, variable_read_summary. Added generate_summary,
7403 write_summary, read_summary.
7404 * cgraphunit.c (cgraph_process_new_functions): Changed call from
7405 pass_ipa_inline.function_generate_summary, to
7406 compute_inline_parameters.
7407 * ipa-inline.c (compute_inline_parameters): Made public and added
7409 (compute_inline_parameters_for_current): New function.
7410 (pass_inline_param): Now calls compute_inline_parameters_for_current.
7411 (inline_generate_summary): Removed parameter and made to loop over
7413 (pass_ipa_inline): Updated for new IPA_PASS structure.
7414 * passes.c (execute_ipa_summary_passes): Now is called once per
7415 pass rather than once per node*pass.
7417 2008-05-15 Anatoly Sokolov <aesok@post.ru>
7419 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7420 avr_have_mul_p, avr_asm_only_p): Remove variables.
7421 (avr_override_options): Remove initialization of removed variables.
7422 (avr_file_start): Convert removed variables to fields of
7423 'struct base_arch_s *avr_current_arch'.
7424 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7425 (AVR_HAVE_MUL): (Ditto.).
7426 (AVR_HAVE_MOVW): (Ditto.).
7427 (AVR_HAVE_LPMX): (Ditto.).
7428 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7429 avr_asm_only_p): Remove declaration.
7431 2008-05-15 Diego Novillo <dnovillo@google.com>
7433 * config/arm/arm.c (arm_return_in_memory): Fix return type.
7434 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7436 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
7439 * combine.c (check_conversion): Rename back to check_promoted_subreg.
7440 Don't call record_truncated_value from here.
7441 (record_truncated_value): Turn it into a for_each_rtx callback.
7442 (record_truncated_values): New function.
7443 (combine_instructions): Call note_uses with record_truncated_values.
7444 Change name of check_conversion to check_promoted_subreg.
7446 2008-05-15 Janis Johnson <janis187@us.ibm.com>
7448 * doc/sourcebuild.texi: Document support for torture tests.
7450 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7452 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7453 to alternative 4 of operand 2.
7455 2008-05-15 Richard Guenther <rguenther@suse.de>
7457 * tree-pass.h (current_pass): Declare.
7458 (get_pass_for_id): Likewise.
7459 * passes.c (passes_by_id, passes_by_id_size): New globals.
7460 (set_pass_for_id): New function.
7461 (get_pass_for_id): Likewise.
7462 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7463 (execute_function_todo): Flush per function statistics.
7464 * toplev.c (compile_file): Init statistics.
7465 (general_init): Do early statistics initialization.
7466 (finalize): Finish statistics.
7467 * statistics.h (statistics_early_init): Declare.
7468 (statistics_init): Likewise.
7469 (statistics_fini): Likewise.
7470 (statistics_fini_pass): Likewise.
7471 (statistics_counter_event): Likewise.
7472 (statistics_histogram_event): Likewise.
7473 * statistics.c: New file.
7474 * Makefile.in (OBJS-common): Add statistics.o.
7475 (statistics.o): Add dependencies.
7476 * doc/invoke.texi (-fdump-statistics): Document.
7478 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7480 (execute_pre): Use statistics_counter_event.
7481 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7482 (substitute_and_fold): Increment it. Use statistics_counter_event.
7484 2008-05-15 Diego Novillo <dnovillo@google.com>
7486 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7488 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7489 * tree-ssa-alias.c (new_type_alias): Remove references to
7490 sub-variables from comment.
7491 * tree-ssa-operands.c (swap_tree_operands): Likewise.
7493 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7495 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7496 attribute to 1 only for insertps alternative.
7498 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7500 * config/bfin/bfin.md (loadbytes): New pattern.
7501 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7502 (bfin_init_builtins): Initialize it.
7503 (bdesc_1arg): Add it.
7505 2008-05-15 Sa Liu <saliu@de.ibm.com>
7507 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7508 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7509 * testsuite/lib/target-supports.exp: Add
7510 check_effective_target_fortran_integer_16.
7512 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7514 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7515 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7516 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
7517 (TARGET_RETURN_IN_MEMORY): Define.
7519 2008-05-15 Richard Guenther <rguenther@suse.de>
7522 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7523 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7524 represent unmodifiable vars.
7526 2008-05-15 Richard Guenther <rguenther@suse.de>
7528 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7529 INDIRECT_REF and TARGET_MEM_REF.
7530 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7533 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7534 H.J. Lu <hongjiu.lu@intel.com>
7536 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7537 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7538 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
7539 insn alternatives. Add missing alternatives.
7540 (*vec_concatv2di_rex64_sse4_1): Likewise.
7541 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7542 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7545 2008-05-15 Richard Guenther <rguenther@suse.de>
7547 PR tree-optimization/36009
7548 PR tree-optimization/36204
7549 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7550 (determine_invariantness_stmt): Record the loop a store is
7552 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7555 2008-05-15 Richard Guenther <rguenther@suse.de>
7557 PR tree-optimization/34330
7558 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7559 through the pointer will alias the SMT.
7561 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
7563 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7565 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
7567 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7569 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7570 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7572 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7573 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7574 (vashl_optab): New optab for vector/vector shifts.
7575 (vashr_optab): Ditto.
7576 (vlshr_optab): Ditto.
7577 (vrotl_optab): Ditto.
7578 (vrotr_optab): Ditto.
7579 (optab_subtype): New enum for optab_for_tree_code call.
7580 (optab_for_tree_code): Add enum optab_subtype argument.
7582 * optabs.c (optab_for_tree_code): Take an additional argument to
7583 distinguish between a vector shift by a scalar and vector shift by
7584 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
7585 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
7586 vector shift by a vector.
7587 (expand_widen_pattern_expr): Pass additional argument to
7588 optab_for_tree_code.
7590 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7591 vrotl_optab, vrotr_optab.
7593 * expr.c (expand_expr_real_1): Update calls to
7594 optab_for_tree_code to distinguish between vector shifted by a
7595 scalar and vector shifted by a vector.
7596 * tree-vectorizer.c (supportable_widening_operation): Ditto.
7597 (supportable_narrowing_operation): Ditto.
7598 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7599 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7600 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7601 (vect_create_epilog_for_reduction): Ditto.
7602 (vectorizable_reduction): Ditto.
7603 (vectorizable_operation): Ditto.
7604 (vect_strided_store_supported): Ditto.
7605 (vect_strided_load_supported): Ditto.
7606 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7607 * expmed.c (expand_shift): Ditto.
7609 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7611 (ashr@var{m}3): Ditto.
7612 (vashl@var{m}3): Document new vector/vector shift standard name.
7613 (vashr@var{m}3): Ditto.
7614 (vlshr@var{m}3): Ditto.
7615 (vrotl@var{m}3): Ditto.
7616 (vrotr@var{m}3): Ditto.
7618 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7619 (PPERM_INVERT): Ditto.
7620 (PPERM_REVERSE): Ditto.
7621 (PPERM_REV_INV): Ditto.
7622 (PPERM_ZERO): Ditto.
7623 (PPERM_ONES): Ditto.
7624 (PPERM_SIGN): Ditto.
7625 (PPERM_INV_SIGN): Ditto.
7626 (PPERM_SRC1): Ditto.
7627 (PPERM_SRC2): Ditto.
7629 * config/i386/sse.md (mulv2di3): Add SSE5 support.
7630 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7631 allows a memory operand to be the value being added, and split it
7632 to improve vectorization.
7633 (sse5_pmacsdqh_mem): Ditto.
7634 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7635 (sse5_mulv2div2di3_high): Ditto.
7636 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7637 (vec_pack_trunc_v4si): Ditto.
7638 (vec_pack_trunc_v2di): Ditto.
7639 (sse5_pcmov_<mode>): Remove code that tried to use use
7640 andps/andnps instead of pcmov.
7641 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7642 pmacsdqh instructions.
7643 (vec_widen_smult_lo_v4si): Ditto.
7645 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7646 (PPERM_INVERT): Ditto.
7647 (PPERM_REVERSE): Ditto.
7648 (PPERM_REV_INV): Ditto.
7649 (PPERM_ZERO): Ditto.
7650 (PPERM_ONES): Ditto.
7651 (PPERM_SIGN): Ditto.
7652 (PPERM_INV_SIGN): Ditto.
7653 (PPERM_SRC1): Ditto.
7654 (PPERM_SRC2): Ditto.
7655 (ix86_expand_sse_movcc): Move the SSE5 test after the if
7657 (ix86_expand_int_vcond): If SSE5 generate all possible integer
7659 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7660 says ignore whether the last reference is a memory operand.
7662 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7663 Paolo Bonzini <bonzini at gnu dot org>
7665 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7668 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7669 (vlshr<mode>3): Rename from vlshr<mode>3.
7670 (vashr<mode>3): Rename from vashr<mode>3.
7671 (mulv4sf3): Change the names of vector shift patterns.
7675 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7678 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7703 * config/spu/spu.md (v): New iterator macro to add v for vector types.
7704 (floatunssidf2_internal): Change vector/vector shift names.
7705 (floatunsdidf2_internal): Ditto.
7712 (vashl<mode>3): Rename from ashl<mode>3.
7713 (vashr<mode>3): Rename from ashr<mode>3.
7714 (vlshr<mode>3): Rename from lshr<mode>3.
7715 (vrotl<mode>3): Rename from rotl<mode>3.
7717 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7720 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7721 multiply gives the wrong value when doing widening multiplies.
7722 (vec_widen_smult_lo_v4si): Ditto.
7724 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7726 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7727 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7728 emit_library_call_value.
7729 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7730 * tree.h (ECF_LIBCALL_BLOCK): Removed.
7731 * calls.c (initialize_argument_information, precompute_arguments,
7732 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7733 (precompute_arguments): Removed flags parameter.
7734 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7736 2008-05-14 Richard Guenther <rguenther@suse.de>
7738 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7739 Make sure to register the store if the use is a PHI_NODE.
7741 2008-05-14 Olivier Hainque <hainque@adacore.com>
7743 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7744 memory if the component is to be referenced in BLKmode according
7745 to get_inner_reference.
7747 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
7749 * calls.c (emit_library_call_value_1): Restore code clearing
7750 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7752 2008-05-14 Olivier Hainque <hainque@adacore.com>
7753 Nicolas Roche <roche@adacore.com>
7755 * configure.ac: Add support for a "gcc_subdir" variable in
7756 config-lang.in, to denote a subdirectory where the language/GCC
7757 integration files are to be found.
7758 * configure: Regenerate.
7760 2008-05-14 Ira Rosen <irar@il.ibm.com>
7762 PR tree-optimization/36098
7763 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7764 value for the first load in the group in case of a gap.
7765 (vect_build_slp_tree): Check that there are no gaps in loads.
7767 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7769 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7770 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7771 expand_copysign_bit, ): Change call to emit_no_conflict_block to
7772 emit_insn and remove unneeded code to construct extra args.
7773 (emit_no_conflict_block): Removed.
7774 * optabls.h: (emit_no_conflict_block): Removed.
7775 * cse.c (cse_extended_basic_block): Remove search for
7776 REG_NO_CONFLICT note.
7777 * global.c: Removed incorrect comment added in revision 117.
7778 * expr.c (convert_move): Change call to emit_no_conflict_block to
7780 * recog.c: Change comments so that they do not mention
7782 * local_alloc.c (combine_regs): Removed last parameter.
7783 (no_conflict_p): Removed.
7784 (block_alloc): Removed note, no_conflict_combined_regno and set
7785 local vars. Removed all code to process REG_NO_CONFLICT blocks.
7786 (combine_regs): Removed already_dead and code to look for
7787 REG_NO_CONFLICT notes.
7788 * lower_subreg (remove_retval_note): Removed code to look for
7789 REG_NO_CONFLICT block.
7790 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7791 (resolve_clobber): Remove code to process libcalls that have
7792 REG_NO_CONFLICT notes.
7793 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7795 * combine.c (can_combine_p, distribute_notes): Removed
7796 REG_NO_CONFLICT case.
7797 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7799 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7800 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7802 * reg-notes.def (NO_CONFLICT): Removed.
7804 2008-05-14 David S. Miller <davem@davemloft.net>
7806 * config/sparc/sparc.c (sparc_profile_hook): If
7807 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7808 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7809 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7811 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
7813 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7815 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
7818 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7819 and op1 expansion before vector concat to have less live pseudos.
7821 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
7823 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7824 ix86_expand_vector_set if supported.
7826 2008-05-13 Diego Novillo <dnovillo@google.com>
7827 Kenneth Zadeck <zadeck@naturalbridge.com>
7829 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7831 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7832 phinodes_print_statistics, init_ssanames, fini_ssanames,
7833 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7834 release_ssa_name, release_defs, replace_ssa_name_symbol,
7835 ssanames_print_statistics): Move ...
7836 * tree-flow.h: ... here.
7837 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7838 Use FN instead of cfun.
7839 (make_ssa_name_fn): Rename from make_ssa_name.
7840 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7841 * tree-flow-inline.h (make_ssa_name): Move from
7842 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
7843 * omp-low.c (expand_omp_parallel):
7844 * tree-flow-inline.h (redirect_edge_var_map_result):
7845 * tree-ssa.c (init_tree_ssa): Add argument FN.
7846 Use it instead of cfun. Update all users.
7848 2008-05-13 Tom Tromey <tromey@redhat.com>
7850 PR preprocessor/22168:
7851 * doc/cpp.texi (Top): Update menu.
7852 (Alternatives to Wrapper #ifndef): New node.
7853 (Other Directives): Document deprecation.
7854 (Obsolete Features): Remove menu.
7855 (Assertions): Merge node into Obsolete Features.
7856 (Obsolete once-only headers): Move earlier; rename to Alternatives
7858 * doc/cppopts.texi: Update.
7859 * c.opt (Wdeprecated): Enable for C and ObjC.
7860 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7861 (C++ Dialect Options): Move -Wno-deprecated from here to...
7862 (Warning Options): ... here.
7864 2008-05-13 Richard Guenther <rguenther@suse.de>
7867 * fold-const.c (fold_sign_changed_comparison): Do not allow
7868 changes in pointer-ness.
7870 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
7873 * config/sh/sh.c (sh_expand_prologue): Don't clear
7874 RTX_FRAME_RELATED_P for push insns.
7876 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
7878 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7880 2008-05-12 Anatoly Sokolov <aesok@post.ru>
7882 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7883 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7884 Use 'machine->is_leaf' instead of 'leaf_func_p'.
7886 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
7888 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7889 (*vec_concatv4sf_sse): This.
7890 (*sse2_concatv2si): Renamed to ...
7891 (*vec_concatv2si_sse2): This.
7892 (*sse1_concatv2si): Renamed to ...
7893 (*vec_concatv2si_sse): This.
7894 (*vec_concatv2di_rex): Renamed to ...
7895 (*vec_concatv2di_rex64): This.
7896 (*vec_concatv2si_sse4_1): New.
7897 (*vec_concatv2di_rex64_sse4_1): Likewise.
7899 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
7901 PR rtl-optimization/36111
7902 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7903 that was created for swappable operands.
7905 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
7908 * Makefile.in: Substitute GNATMAKE and GNATBIND.
7909 * configure.ac: Add call to ACX_PROG_GNAT.
7911 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
7913 * optc-gen.awk: Fix comment typo.
7915 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7917 * pretty-print.c (pp_integer_with_precision): Use
7918 HOST_LONG_LONG_FORMAT.
7920 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
7922 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7924 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
7926 * config/i386/i386.c (bdesc_ptest): Removed.
7927 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7928 (bdesc_args): Add __builtin_ia32_ptestz128,
7929 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7930 (ix86_init_mmx_sse_builtins): Updated.
7931 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7932 (ix86_expand_builtin): Updated.
7934 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
7936 * tree-cfg.c (valid_fixed_convert_types_p): New function.
7937 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7939 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
7941 * value-prof.c (interesting_stringop_to_profile): Do not
7942 return early for BUILT_IN_MEMPCPY.
7944 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
7946 * calls.c (expand_call): Don't use callgraph to increase
7947 preferred_stack_boundary.
7949 * cgraph.h (cgraph_rtl_info): Use unsigned on
7950 preferred_incoming_stack_boundary.
7952 * final.c (rest_of_clean_state): Use unsigned on
7953 preferred_stack_boundary.
7955 2008-05-09 Tom Tromey <tromey@redhat.com>
7957 PR preprocessor/22231:
7958 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7961 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
7963 PR tree-optimization/36129
7964 * tree-ssa-ccp.c: Include value-prof.h.
7965 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7966 built-in function was folded to a constant.
7967 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7969 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
7970 Sebastian Pop <sebastian.pop@amd.com>
7972 * tree-scalar-evolution.c: Document instantiate_scev.
7973 (instantiate_parameters_1): Renamed instantiate_scev_1.
7974 Don't use the same loop for instantiation_loop and evolution_loop.
7975 (instantiate_scev): New.
7976 (instantiate_parameters): Moved...
7977 (resolve_mixers): Update call to instantiate_scev_1 to pass the
7978 same loop twice. Maintains the semantics for this function.
7979 * tree-scalar-evolution.h (instantiate_scev): Declare.
7980 (instantiate_parameters): ...here. Now static inline.
7981 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7982 instead of resolve_mixers.
7984 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7986 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7988 2008-05-09 Tomas Bily <tbily@suse.cz>
7990 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7991 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7992 * tree-ssa-structalias.c (get_constraint_for): Likewise.
7993 * c-common.c (c_common_truthvalue_conversion): Likewise.
7994 * tree-object-size.c (compute_object_offset): Likewise.
7995 * tree-inline.c (estimate_num_insns_1): Likewise.
7996 * varasm.c (const_hash_1, compare_constant, copy_constant)
7997 (compute_reloc_for_constant, output_addressed_constants)
7998 (initializer_constant_valid_p): Likewise.
7999 * c-omp.c (check_omp_for_incr_expr): Likewise.
8000 * gimplify.c (gimplify_expr): Likewise.
8001 * c-typeck.c (c_finish_return): Likewise.
8002 * tree-vectorizer.c (supportable_widening_operation)
8003 (supportable_narrowing_operation): Likewise.
8004 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8005 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8006 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8007 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8008 (descr_info_loc): Likewise.
8009 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8010 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8011 (fold_unary): Likewise.
8012 * builtins.c (get_pointer_alignment): Likewise.
8013 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8014 (instantiate_parameters_1): Likewise.
8015 * tree.c (expr_align, stabilize_reference): Likewise.
8016 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8017 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8018 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8019 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8020 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8021 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8023 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8024 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8025 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8026 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8027 (forward_propagate_comparison)
8028 (tree_ssa_forward_propagate_single_use_vars): Likewise.
8029 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8030 * emit-rtl.c (component_ref_for_mem_expr)
8031 (set_mem_attributes_minus_bitpos): Likewise.
8032 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8033 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8035 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8036 (build_function_call, pointer_diff, build_compound_expr)
8037 (c_finish_return): Likewise.
8038 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8039 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8041 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8042 * expr.c (is_aligning_offset): Likewise.
8043 * tree-ssa-alias.c (is_escape_site): Likewise.
8044 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8045 (check_all_va_list_escapes): Likewise.
8046 * tree-ssa-loop-ivopts.c (determine_base_object)
8047 (determine_common_wider_type): Likewise.
8048 * dojump.c (do_jump): Likewise.
8049 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8050 * tree-gimple.c (is_gimple_cast): Likewise.
8051 * fold-const.c (decode_field_reference, )
8052 (fold_sign_changed_comparison, fold_unary, fold_comparison)
8053 (fold_binary): Likewise.
8054 * tree-ssa-alias-warnings.c (find_alias_site_helper)
8055 (already_warned_in_frontend_p): Likewise.
8056 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8057 * tree.c (really_constant_p, get_unwidened): Likewise.
8058 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8059 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8060 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8062 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8064 (CONVERT_EXPR_P): Define.
8065 (CASE_CONVERT): Define.
8067 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8070 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8071 (delete_unmarked_insns): When deleting a call, call
8072 delete_unreachable_blocks.
8073 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8074 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8076 2008-05-08 Richard Guenther <rguenther@suse.de>
8078 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8079 (-ftree-salias): Likewise.
8080 (salias-max-implicit-fields): Remove param documentation.
8081 (salias-max-array-elements): Likewise.
8082 * tree-pass.h (pass_create_structure_vars): Remove.
8083 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8084 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8085 * tree-ssa-alias.c (create_structure_vars): Remove.
8086 (gate_structure_vars): Likewise.
8087 (pass_create_structure_vars): Likewise.
8088 (gate_build_alias): Likewise.
8089 (pass_build_alias): Adjust to run always and dump the function.
8090 * common.opt (ftree-salias): Hide.
8091 * passes.c (init_optimization_passes): Remove
8092 pass_create_structure_vars, adjust comment.
8093 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8094 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8095 * opts.c (decode_options): Do not set flag_tree_salias.
8096 (common_handle_option): Add OPT_ftree_salias to the backward
8097 compatibility section.
8099 2008-05-08 Richard Guenther <rguenther@suse.de>
8101 * tree-flow-inline.h (var_can_have_subvars): Move ...
8102 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8103 * tree-flow.h (var_can_have_subvars): Remove.
8104 (push_fields_onto_fieldstack): Remove.
8105 (sort_fieldstack): Likewise.
8106 (struct fieldoff): Move ...
8107 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
8108 alias_set and base_for_components fields.
8109 (sort_fieldstack): Make static.
8110 (push_fields_onto_fieldstack): Likewise. Remove code that
8111 handles anything but RECORD_TYPEs. Remove alias_set and
8112 base_for_components handling.
8113 (create_variable_info_for): Adjust.
8115 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
8117 * common.opt (Wframe-larger-than=): Shorten the help message
8119 * doc/invoke.texi (Wframe-larger-than=): Add more description.
8121 2008-05-08 Rafael Espindola <espindola@google.com>
8123 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8125 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8126 trap and that both operands are gimple values.
8127 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8128 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8131 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8133 * read-rtl.c (join_c_conditions): Return the first string if the
8134 two strings are equal.
8136 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8138 * gensupport.h (pred_data): Add a "num_codes" field.
8139 (add_predicate_code): Declare.
8140 * gensupport.c (add_predicate_code): New function.
8141 (std_pred_table): Add an "allows_const_p" field.
8142 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8143 Remove the (incomplete) list of such codes from the codes field.
8144 (init_predicate_table): Use add_predicate_code. Add all
8145 RTX_CONST_OBJs if allows_const_p is true.
8146 * genrecog.c (process_define_predicate): Use add_predicate_code.
8148 2008-05-08 David Daney <ddaney@avtrex.com>
8149 Richard Sandiford <rsandifo@nildram.co.uk>
8151 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8152 special case of constant zero operands.
8153 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8154 old and new values. Special case constant zero values.
8155 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8157 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8158 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8160 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
8163 * simplify-rtx.c (simplify_plus_minus): Create CONST of
8164 similar RTX_CONST_OBJ before CONST_INT.
8166 2008-05-08 Steve Ellcey <sje@cup.hp.com>
8168 * stmt.c (expand_stack_restore): Change sa mode if needed.
8170 2008-05-08 Richard Guenther <rguenther@suse.de>
8172 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8173 return type to bool.
8174 (ix86_sol10_return_in_memory): Likewise.
8175 (ix86_i386elf_return_in_memory): Likewise.
8176 (ix86_i386interix_return_in_memory): Likewise.
8177 * config/i386/i386.c (ix86_return_in_memory): Likewise.
8178 (ix86_sol10_return_in_memory): Likewise.
8179 (ix86_i386elf_return_in_memory): Likewise.
8180 (ix86_i386interix_return_in_memory): Likewise.
8182 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8185 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8187 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8188 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8191 2008-05-08 Richard Guenther <rguenther@suse.de>
8193 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8194 * tree-data-ref.h (struct dr_alias): Remove subvars field.
8195 (DR_SUBVARS): Remove.
8196 * tree-dfa.c (dump_subvars_for): Remove.
8197 (debug_subvars_for): Likewise.
8198 (dump_variable): Do not dump subvars.
8199 (remove_referenced_var): Do not remove subvars.
8200 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8201 (lookup_subvars_for_var): Remove.
8202 (get_subvars_for_var): Likewise.
8203 (get_subvars_at): Likewise.
8204 (get_first_overlapping_subvar): Likewise.
8205 (overlap_subvar): Likewise.
8206 * tree-flow.h (subvar_t): Remove.
8207 (struct var_ann_d): Remove subvars field.
8208 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8209 argument. Remove special handling of SFTs.
8210 (compute_tag_properties): Likewise.
8211 (set_initial_properties): Likewise.
8212 (compute_call_clobbered): Likewise.
8213 (count_mem_refs): Likewise.
8214 (compute_memory_partitions): Likewise.
8215 (compute_flow_insensitive_aliasing): Likewise.
8216 (setup_pointers_and_addressables): Likewise.
8217 (new_type_alias): Likewise.
8218 (struct used_part): Remove.
8219 (used_portions): Likewise.
8220 (struct used_part_map): Likewise.
8221 (used_part_map_eq): Likewise.
8222 (used_part_map_hash): Likewise.
8223 (free_used_part_map): Likewise.
8224 (up_lookup): Likewise.
8225 (up_insert): Likewise.
8226 (get_or_create_used_part_for): Likewise.
8227 (create_sft): Likewise.
8228 (create_overlap_variables_for): Likewise.
8229 (find_used_portions): Likewise.
8230 (create_structure_vars): Likewise.
8231 * tree.def (STRUCT_FIELD_TAG): Remove.
8232 * tree.h (MTAG_P): Adjust.
8233 (struct tree_memory_tag): Remove base_for_components and
8234 unpartitionable flags.
8235 (struct tree_struct_field_tag): Remove.
8236 (SFT_PARENT_VAR): Likewise.
8237 (SFT_OFFSET): Likewise.
8238 (SFT_SIZE): Likewise.
8239 (SFT_NONADDRESSABLE_P): Likewise.
8240 (SFT_ALIAS_SET): Likewise.
8241 (SFT_UNPARTITIONABLE_P): Likewise.
8242 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8243 (union tree_node): Remove sft field.
8244 * alias.c (get_alias_set): Remove special handling of SFTs.
8245 * print-tree.c (print_node): Remove handling of SFTs.
8246 * tree-dump.c (dequeue_and_dump): Likewise.
8247 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8248 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8249 * tree-predcom.c (set_alias_info): Do not set subvars.
8250 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8251 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8252 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8253 (add_vars_for_offset): Remove.
8254 (add_virtual_operand): Remove special handling of SFTs.
8255 (add_call_clobber_ops): Likewise.
8256 (add_call_read_ops): Likewise.
8257 (get_asm_expr_operands): Likewise.
8258 (get_modify_stmt_operands): Likewise.
8259 (get_expr_operands): Likewise.
8260 (add_to_addressable_set): Likewise.
8261 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8262 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8263 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8264 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8265 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8266 (tree_node_structure): Likewise.
8267 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8269 (find_what_p_points_to): Likewise.
8271 2008-05-08 Sa Liu <saliu@de.ibm.com>
8273 * config/spu/spu.md: Fixed subti3 pattern.
8275 2008-05-08 Richard Guenther <rguenther@suse.de>
8278 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8279 sure to create a representative for trailing arrays for PTA.
8281 2008-05-08 Richard Guenther <rguenther@suse.de>
8284 * fold-const.c (operand_equal_p): Two objects which types
8285 differ in pointerness are not equal.
8287 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8289 * calls.c (compute_argument_block_size): Add argument tree fndecl.
8290 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8291 (emit_library_call_value_1): Add new variable fndecl initialized by
8292 NULL_TREE. It should be the decl type of orgfun, but this information
8293 seems not to be available here, so it uses the default calling abi.
8294 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8295 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8296 by TARGET_RETURN_IN_MEMORY.
8297 * config/i386/i386-interix.h: Likewise.
8298 * config/i386/i386.h: Likewise.
8299 * config/i386/i386elf.h: Likewise.
8300 * config/i386/ptx4-i.h: Likewise.
8301 * config/i386/sol2-10.h: Likewise.
8302 * config/i386/sysv4.h: Likewise.
8303 * config/i386/vx-common.h: Likewise.
8304 * config/cris/cris.h: Removed #if 0 clause.
8305 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8306 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8308 (ix86_sol10_return_in_memory): Likewise.
8309 (ix86_i386elf_return_in_memory): New.
8310 (ix86_i386interix_return_in_memory): New.
8311 * config/mt/mt-protos.h (mt_return_in_memory): New.
8312 * config/mt/mt.c: Likewise.
8313 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8314 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
8315 * config/bfin/bfin.h: Likewise.
8316 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8318 * config/bfin/bfin.c: Likewise.
8319 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8320 * config/alpha/unicosmk.h: Likewise.
8321 * config/i386/cygming.h: Likewise.
8322 * config/iq2000/iq2000.h: Likewise.
8323 * config/mips/mips.h: Likewise.
8324 * config/mn10300/mn10300.h: Likewise.
8325 * config/rs6000/rs6000.h: Likewise.
8326 * config/score/score.h: Likewise.
8327 * config/spu/spu.h: Likewise.
8328 * config/v850/v850.h: Likewise.
8329 * defaults.h: Likewise.
8330 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8331 * expr.c (emit_block_move): Adjust use of
8332 OUTGOING_REG_PARM_STACK_SPACE.
8333 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8334 OUTGOING_REG_PARM_STACK_SPACE.
8335 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8337 2008-05-08 Jakub Jelinek <jakub@redhat.com>
8339 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8340 on OMP_RETURN for OMP_FOR.
8343 * dwarf2out.c (dw_expand_expr, common_check): Removed.
8344 (fortran_common): New function.
8345 (gen_variable_die): Call fortran_common instead of common_check,
8346 adjust for it returning tree instead of rtx. Formatting.
8348 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
8352 * see.c (see_copy_insn): Copy new pure const attributes for new call.
8353 * c-decl.c (merge_decls): Ditto.
8354 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8355 to RTL_CONST_OR_PURE_CALL_P.
8356 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8357 Initialized DECL_LOOPING_CONST_PURE.
8358 (process_call_operands): Set tree_side_effects properly.
8359 * tree.h (TREE_READONLY_DECL_P): Removed.
8360 (DECL_IS_PURE): Renamed to DECL_PURE_P.
8361 (DECL_LOOPING_OR_CONST_P): New macro.
8362 (struct tree_function_decl): Added looping_const_or_pure_p.
8364 (ECF_LOOPING_OR_CONST_P): New macro.
8365 * rtlanal.c (pure_const_p): Removed.
8366 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8367 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8368 to RTL_CONST_CALL_P.
8369 * ipa-pure-const.c (pure_const_state_e): Added looping field.
8370 (check_decl, check_tree, check_call, scan_function): Initialize
8372 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8373 (static_execute): Set looping true for recursive functions.
8374 Undo setting state to IPA_NEITHER for recursive functions.
8376 * ifcvt.c (noce_can_store_speculate_p): Changed
8377 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8378 RTL_CONST_OR_PURE_CALL_P.
8379 * dse.c (scan_insn): Ditto.
8380 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8381 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8382 RTL_CONST_OR_PURE_CALL_P.
8383 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8384 pure_call_p to RTL_CONST_CALL_P.
8385 * gimplify.c (gimplify_call_expr): Clear side effects for
8386 non-looping pure and constant calls.
8387 * calls.c (emit_call_1): Set rtl flags from ecf flags.
8388 (flags_from_decl_or_type): Set ecf flags from decl flags.
8389 (initialize_argument_information): Turn off
8390 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8391 Change const to pure if callee_copies is true rather than just
8393 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8394 way of marking pure calls.
8395 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8396 Remove hack that was supposed to fix pr7335 and remove old
8397 way of marking pure calls.
8398 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8399 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8400 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8401 RTL_CONST_OR_PURE_CALL_P.
8402 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8403 * loop-invariant.c (find_exits, find_invariant_bb): Changed
8404 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8405 * sched-deps.c (schedule_analyze): Ditto.
8406 * rtl.h (struct rtx_def): Use call field, unchanging field, and
8407 return_val field of calls to represent pure and const function info.
8408 (CONST_OR_PURE_CALL_P): Deleted macro.
8409 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8410 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8411 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8413 * tree-optimize.c (execute_fixup_cfg): Added test for
8414 ECF_LOOPING_CONST_OR_PURE.
8415 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8417 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8418 effects for looping pure or const calls.
8419 (verify_gimple_expr): Added verification code.
8420 * config/alpha/alpha.c (alpha_legitimize_address,
8421 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8423 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8424 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8425 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8426 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8427 RTL_CONST_OR_PURE_CALL_P.
8428 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8429 and const calls to be deleted.
8431 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8434 * config/i386/mmx.md (mmx_subv2sf3): New expander.
8435 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8436 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8437 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8438 to handle nonimmediate operands.
8439 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8440 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
8441 to handle nonimmediate operands.
8442 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8443 (mmx_pmulhrwv4hi3): New expander. Use
8444 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8445 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8446 (sse2_umulv1siv1di3): New expander. Use
8447 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8448 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8449 (mmx_eq<mode>3): New expander. Use
8450 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8451 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8452 (mmx_uavgv8qi3): New expander. Use
8453 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8454 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8455 (mmx_uavgv4hi3): New expander. Use
8456 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8458 * config/i386/sse.md
8459 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
8460 to handle nonimmediate operands.
8461 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
8462 to handle nonimmediate operands.
8463 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
8464 to handle nonimmediate operands.
8465 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
8466 to handle nonimmediate operands.
8467 (sse2_unpckhpd_exp): New expander. Use
8468 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8469 (sse2_unpcklpd_exp): New expander. Use
8470 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8471 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
8472 to handle nonimmediate operands.
8473 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
8474 to handle nonimmediate operands.
8475 (*sse2_<plusminus_insn><mode>3): Rename from
8476 sse2_<plusminus_insn><mode>3 insn pattern.
8477 (sse2_<plusminus_insn><mode>3): New expander. Use
8478 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8479 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8480 (sse2_umulv2siv2di3): New expander. Use
8481 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8482 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8483 (sse4_1_mulv2siv2di3): New expander. Use
8484 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8485 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8486 (sse2_pmaddwd): New expander. Use
8487 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8488 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8489 (sse2_eq<mode>3): New expander. Use
8490 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8491 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8492 (sse4_1_eqv2di3): New expander. Use
8493 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8494 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8495 (sse2_uavgv16qi3): New expander. Use
8496 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8497 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8498 (sse2_uavgv16qi3): New expander. Use
8499 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8500 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8501 (sse2_uavgv8hi3): New expander. Use
8502 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8503 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8504 (ssse3_pmulhrswv8hi3): New expander. Use
8505 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8506 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8507 (ssse3_pmulhrswv4hi3): New expander. Use
8508 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8510 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8511 (<sse>_vmmul<mode>3): Ditto.
8512 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8514 (ssse3_pmaddubsw128): Use register_operand for operand 1.
8515 (ssse3_pmaddubsw): Ditto.
8517 * config/i386/i386.c (struct_builtin_description)
8518 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8519 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8520 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8521 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8522 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8523 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8524 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8525 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8526 (ix86_fixup_binary_operands): Assert that src1
8527 and src2 must have the same mode when swapped.
8528 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8529 and ix86_binary_operator_ok. Do not force operands in registers
8532 2008-05-07 Jan Hubicka <jh@suse.cz>
8534 * cgraph.c (dump_cgraph_node): Update.
8535 * cgraph.h (cgraph_local_info): Break out inline summary.
8536 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8538 * ipa-inline (inline_summary): New accestor function.
8539 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8540 cgraph_decide_inlining, compute_inline_parameters): Update.
8541 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8543 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8545 Cleanup ColdFire scheduling support and add V4 pipeline model.
8547 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8548 (define_attr cpu): Add cfv4 value.
8549 (define_attr type, define_attr type1): Merge into a single 'type'
8550 attribute. Update all uses.
8551 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8552 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
8554 (define_attr opx_mem, define_attr opy_mem): Remove.
8555 (define_attr op_mem): Clean up, update comment.
8556 (define_attr size): Use specific values instead of general int.
8557 (define_attr guess, define_attr split): Remove. Update all uses.
8558 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8559 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8560 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8561 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8562 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8563 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8564 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8565 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8566 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8567 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8568 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8569 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8570 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8571 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8572 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8573 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8574 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8575 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8576 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8577 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8578 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8579 Update or set attributes.
8580 (stack_tie): New fake instruction.
8582 * config/m68k/m68k.h (TUNE_CFV4): New macro.
8583 (m68k_sched_attr_size): Update declaration.
8584 (m68k_sched_attr_type2): Remove.
8585 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8586 Declare new bypass predicates.
8588 * config/m68k/m68k.c (m68k_sched_issue_rate,
8589 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8591 (TARGET_SCHED_ISSUE_RATE,
8592 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8593 (override_options): Handle scheduling for ColdFire V4 core.
8594 (m68k_expand_prologue): Emit stack_tie.
8595 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8596 'OP_TYPE_FPN'. Update all uses.
8597 (sched_guess_p): Remove.
8598 (sched_address_type): Handle symbolic addresses.
8599 (sched_get_operand): New static function.
8600 (sched_operand_type): Merge into sched_attr_op_type.
8601 (sched_attr_op_type): Handle FP registers, handle quick constants,
8603 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8604 (m68k_sched_attr_size): Update. Move logic to ...
8605 (sched_get_attr_size_int): New static function.
8606 (sched_get_opxy_mem_type): New static function.
8607 (m68k_sched_attr_op_mem): Update.
8608 (m68k_sched_attr_type2): Remove.
8609 (sched_cfv4_bypass_data): New static variable.
8610 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8611 (m68k_sched_issue_rate): Implement scheduler hook.
8612 (struct _sched_ib: enabled_p): New field.
8613 (m68k_sched_variable_issue): Update. Handle V4.
8614 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8615 sched_dump_class_func_t, sched_dump_split_class,
8616 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8617 sched_dump_dfa_class, m68k_sched_dump): Remove.
8618 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8620 (m68k_sched_init_global): Remove statisctics dumping, introduce
8621 sanity check that all instructions have pipeline reservations. Handle
8623 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8624 Handle ColdFire V4 core.
8625 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8626 New static functions.
8627 (m68k_sched_address_bypass_p): New bypass predicate.
8628 (sched_get_indexed_address_scale): New static function.
8629 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8631 * cf.md: Update comments.
8632 (define_attr type2): Remove. Use 'type' attribute instead.
8634 (cf_ib): Rename to cfv123_ib. Update all uses.
8635 (cf_oep): Rename to cfv123_oep. Update all uses.
8636 (cf_chr): Rename to cfv123_chr. Update all uses.
8637 (cf_mem): Rename to cfv123_mem. Update all uses.
8638 (cf_mac): Move to more appropriate place.
8639 (cfv123_guess): New automaton and cpu_unit.
8640 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8641 Update uses of 'size' attribute. Handle before reload scheduling.
8642 (cfv123_guess): New dummy reservation for unhandled instructions.
8643 (cfv4_*): Pipeline description of ColdFire V4 core.
8644 (ignore): New reservation to handle 'ignore' type.
8646 2008-05-07 Ian Lance Taylor <iant@google.com>
8649 * gimplify.c (find_single_pointer_decl_1): Don't look through
8651 (find_single_pointer_decl): Adjust comments.
8653 2008-05-07 Jakub Jelinek <jakub@redhat.com>
8656 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8657 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8660 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8661 integral type rather than floating point, then VIEW_CONVERT_EXPR
8662 to the floating point type.
8664 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8666 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8667 TFmode op0 to register.
8669 2008-05-07 Alan Modra <amodra@bigpond.net.au>
8671 * c-decl.c (grokdeclarator): Comment typo.
8673 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
8675 * tree-flow.h: Remove prototype for computed_goto_p.
8676 * tree-cfg.c (computed_goto_p): Make static.
8678 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
8681 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8682 (contains_aligned_value_p): This. Handle _Decimal128.
8683 (ix86_function_arg_boundary): Only align _Decimal128 to its
8684 natural boundary and handle it properly.
8686 2008-05-06 Martin Jambor <mjambor@suse.cz>
8688 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8689 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8690 (ipcp_method_set_orig_node): Removed.
8691 (ipcp_cval_get_cvalue_type): Removed.
8692 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8693 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8694 (ipcp_cval_set_cvalue_type): Removed.
8695 (ipcp_cval_get_cvalue): Removed.
8696 (ipcp_cval_set_cvalue): Removed.
8697 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8698 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8699 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8700 (ipcp_cval_meet): Renamed to ipa_lattice_meet
8701 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8702 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8703 (ipcp_get_ith_lattice): Changed parameters.
8704 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8705 (ipcp_lattice_from_jfunc): Changed parameters.
8706 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8707 (ipcp_method_cval_print): Added temporary variable info.
8708 (ipcp_redirect): Removed already unused local variable caller.
8709 (ipcp_redirect): New temporary variable orig_callee_info
8710 (ipcp_redirect): Removed newly unused local variable callee.
8711 (ipcp_redirect): Removed (a bit confusing) local variable type.
8712 (ipcp_insert_stage): Added local variable info.
8713 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8715 (ipcp_formal_create): Removed.
8716 (ipcp_method_cval_set): Removed.
8717 (ipcp_propagate_stage): Renamed lattice variables.
8718 (ipcp_method_cval_set_cvalue_type): Removed.
8719 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8720 (ipcp_print_all_lattices): Changed printed strings to refer to
8721 lattices rather than cvals.
8722 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8723 (ipcp_propagate_const): Changed formal parameters.
8724 (build_const_val): Changed formal parameters.
8725 (ipcp_insert_stage): Removed useless variable cvalue
8726 (build_const_val): Changed formal parameters.
8727 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8728 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8729 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8730 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8731 (ipcp_print_func_profile_counts): Changed string from "method" to
8733 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8734 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8735 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8736 (ipcp_structures_print): Renamed to ipcp_print_all_structures
8737 (ipcp_profile_print): Renamed to ipcp_print_profile_data
8738 (ipcp_lat_is_const): Changed parameters and made inline.
8739 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8740 (ipcp_redirect): Renamed to ipcp_need_redirect_p
8741 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8742 the predicate condition directly
8743 (ipcp_propagate_stage): Added local variable args. Removed local
8744 variable callee. (Both are mere code simplifications.)
8745 (ipcp_method_dont_insert_const): Renamed to
8746 ipcp_node_not_modifiable_p.
8747 (ipcp_node_not_modifiable_p): Made inline.
8748 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8749 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8750 (ipcp_print_all_lattices): Removed variable cvalue
8751 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8754 2008-05-06 Olivier Hainque <hainque@adacore.com>
8756 * tree-sra.c (try_instantiate_multiple_fields): Early return
8757 if field has POINTER_TYPE.
8759 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
8761 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8762 by using 'q' specifier for instruction.
8763 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8765 2008-05-06 Anatoly Sokolov <aesok@post.ru>
8767 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8768 Change mode of zero_extract from QImode to HImode.
8769 (sign bit tests peepholes): (Ditto.).
8771 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
8773 * config/i386/mmx.md: Remove double backslashes from asm templates.
8774 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8775 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8776 to handle nonimmediate operands.
8777 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8778 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8779 to handle nonimmediate operands.
8780 (*mmx_<code>v2sf3_finite): New insn pattern.
8781 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8782 (mmx_<code>v2sf3): New expander. Use
8783 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8784 (mmx_<plusminus_insn><mode>3): New expander. Use
8785 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8786 (*mmx_<plusminus_insn><mode>3): New insn pattern.
8787 (mmx_add<mode>3): Removed.
8788 (mmx_ssadd<mode>3): Ditto.
8789 (mmx_usadd<mode>3): Ditto.
8790 (mmx_sub<mode>3): Ditto.
8791 (mmx_sssub<mode>3): Ditto.
8792 (mmx_ussub<mode>3): Ditto.
8793 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8794 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
8795 to handle nonimmediate operands.
8796 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8798 (mmx_smulv4hi3_highpart): New expander. Use
8799 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8800 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8802 (mmx_umulv4hi3_highpart): New expander. Use
8803 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8804 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8805 (mmx_<code>v4hi3): New expander. Use
8806 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8807 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8808 (mmx_<code>v8qi3): New expander. Use
8809 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8810 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8811 (mmx_<code><mode>3): New expander. Use
8812 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8814 2008-05-05 Jan Hubicka <jh@suse.cz>
8816 PR tree-optimization/36118
8817 * passes.c (pass_init_dump_file): Fix dump header.
8819 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
8822 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8823 VCE for function decls.
8825 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8827 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8829 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
8831 * config/i386/i386.md (sat_plusminus): New.
8832 (plusminus_insn): Likewise.
8833 (plusminus_mnemonic): Likewise.
8835 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8836 (*<addsub><mode>3_cc_overflow): Renamed to ...
8837 (*<plusminus_insn><mode>3_cc_overflow): This.
8838 (*<addsub>si3_zext_cc_overflow): Renamed to ...
8839 (*<plusminus_insn>si3_zext_cc_overflow): This.
8841 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8842 (<plusminus_insn><mode>3): This.
8843 (*<addsub><mode>3): Renamed to ...
8844 (*<plusminus_insn><mode>3): This.
8845 (<sse>_vm<addsub><mode>3): Renamed to ...
8846 (<sse>_vm<plusminus_insn><mode>3): This.
8847 (sse3_h<addsub>v4sf3): Renamed to ...
8848 (sse3_h<plusminus_insn>v4sf3): This.
8849 (sse3_h<addsub>v2df3): Renamed to ...
8850 (sse3_h<plusminus_insn>v2df3): This.
8851 (<plusminus_insn><mode>3): New.
8852 (*<plusminus_insn><mode>3): Likewise.
8853 (sse2_<plusminus_insn><mode>3): Likewise.
8854 (add<mode>): Removed.
8855 (*add<mode>3): Likewise.
8856 (sse2_ssadd<mode>3): Likewise.
8857 (sse2_usadd<mode>3): Likewise.
8858 (sub<mode>3): Likewise.
8859 (*sub<mode>3): Likewise.
8860 (sse2_sssub<mode>3): Likewise.
8861 (sse2_ussub<mode>3): Likewise.
8863 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
8865 * gthr-single.h: Add in required interface elements as per gthr.h.
8866 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8867 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8868 Generalize UNUSED macro.
8869 (__gthread_once): Add.
8870 (__gthread_key_create): Add.
8871 (__gthread_key_delete): Add.
8872 (__gthread_getspecific): Add.
8873 (__gthread_setspecific): Add.
8875 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
8877 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8878 the same size types for the indirect reference on the rhs, then
8881 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
8883 * config/i386/i386.md
8884 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8885 one insn template instead of template series.
8886 (*xordi_1_rex64): Ditto.
8887 (*xordi_2_rex64): Ditto.
8889 2008-05-05 Ira Rosen <irar@il.ibm.com>
8891 PR tree-optimization/36119
8892 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8895 2008-06-04 Jan Hubicka <jh@suse.cz>
8897 tree-optimization/36100
8898 * tree-pass.h (pass_O0_always_inline): Declare.
8899 * ipa-inline.c (inline_transform): Remove dead code.
8900 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8901 pass_O0_always_inline): New.
8902 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8904 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
8906 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8907 mnemonic in this_param move for TARGET_64BIT.
8909 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
8911 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8912 (*strmovsi_rex_1): Ditto.
8913 (*strsetsi_1): Ditto.
8914 (*strsetsi_rex_1): Ditto.
8916 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8917 adddicc expanders using SWI mode iterator.
8919 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
8922 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8925 2008-05-04 David S. Miller <davem@davemloft.net>
8927 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8928 (sparc*-*-linux*): Use linux.h in tm_file.
8929 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8930 compiler defaulting to 32-bit.
8931 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8933 * config/sparc/linux.h: Remove definitions now obtained
8934 properly from linux.h
8935 * config/sparc/linux64.h: Likewise.
8936 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8937 don't want this setting for 32-bit builds in a biarch compiler.
8938 * doc/install.texi: Add sparc-linux to list of targets
8939 supporting --enable-targets=all.
8941 2008-05-03 Andrew Pinski <pinskia@gmail.com>
8943 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8945 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
8947 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8948 after V4SI_FTYPE_V8HI.
8949 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8950 case V4SI_FTYPE_V2DF.
8952 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8954 * doc/invoke.texi (max-flow-memory-locations): Removed.
8955 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8957 2008-05-03 Richard Guenther <rguenther@suse.de>
8960 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8962 2008-05-02 David S. Miller <davem@davemloft.net>
8964 * config.gcc (need_64bit_hwint): Document libcpp dependency.
8966 2008-05-02 Simon Baldwin <simonb@google.com>
8969 * c-common.h (warn_array_subscript_range): Removed.
8970 * c-common.c (warn_array_subscript_range): Ditto.
8971 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8972 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8974 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
8976 * config/i386/i386.c (ix86_special_builtin_type): New.
8977 (bdesc_special_args): Likewise.
8978 (ix86_expand_special_args_builtin): Likewise.
8979 (ix86_init_mmx_sse_builtins): Updated.
8980 (ix86_expand_builtin): Updated.
8981 (ix86_expand_store_builtin): Removed.
8982 (ix86_expand_unop_builtin): Likewise.
8984 * config/i386/mm3dnow.h (__v2sf): Moved to ...
8985 * config/i386/mmintrin.h (__v2sf): Here.
8987 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8989 (_mm_loadl_pi): Likewise.
8990 (_mm_storeh_pi): Replace __v2si with __v2sf.
8991 (_mm_storel_pi): Likewise.
8993 * doc/extend.texi: Correct __builtin_ia32_loadhps,
8994 __builtin_ia32_loadlps, __builtin_ia32_storehps,
8995 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8996 __builtin_ia32_loadlpd.
8998 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9000 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9001 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9002 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
9003 (ix86_init_mmx_sse_builtins): Updated.
9004 (ix86_expand_args_builtin): Likewise.
9005 (ix86_expand_builtin): Likewise.
9006 (ix86_expand_unop1_builtin): Renamed to ...
9007 (ix86_expand_unop_vec_merge_builtin): This.
9009 2008-05-01 Jan Hubicka <jh@suse.cz>
9012 * ipa-inline.c (inline_generate_summary): Make static.
9013 (inline_transform): Do not call inlining at -O0; make static.
9014 * passes.c (execute_todo): Add sanity check.
9015 (execute_one_ipa_transform_pass): Execute proper flags.
9017 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
9019 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9020 (DECL_NONADDRESSABLE_P): Likewise.
9021 * alias.c (record_component_aliases): Fix comment.
9023 2008-05-01 Simon Baldwin <simonb@google.com>
9025 * c-common.h (warn_array_subscript_range): New function.
9026 * c-common.c (warn_array_subscript_range): Ditto.
9027 * tree-vrp.c (check_array_ref): Corrected code to agree with
9028 comment, ignoring only arrays of size 0 or size 1.
9029 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9031 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9033 * config/i386/i386.c (ix86_builtin_type): Replace
9034 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9035 (bdesc_args): Updated.
9036 (ix86_init_mmx_sse_builtins): Likewise.
9037 (ix86_expand_args_builtin): Likewise.
9039 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9042 * doc/extend.texi: Correct __builtin_ia32_palignr.
9044 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9047 * config/i386/i386.c (bdesc_crc32): Removed.
9048 (ix86_expand_crc32): Likewise.
9049 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9050 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9051 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
9052 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9053 UINT_FTYPE_UINT_UCHAR.
9054 (bdesc_args): Updated. Add crc32 builtins.
9055 (ix86_init_mmx_sse_builtins): Updated.
9056 (ix86_expand_args_builtin): Updated to support subreg.
9058 * doc/extend.texi: Correct __builtin_ia32_crc32di.
9060 2008-05-01 Jan Hubicka <jh@suse.cz>
9062 * tree-pass.h (opt_pass): Add IPA_PASS.
9063 (varpool_node, cgraph_node): Forward declare.
9064 (ipa_opt_pass): Define.
9065 (pass_ipa_inline): Turn into ipa_opt_pass.
9066 (pass_apply_inline): Remove.
9067 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9068 (apply_inline): Turn into ....
9069 (inline_transform): ... this one.
9070 (inline_generate_summary): New function.
9071 (pass_apply_inline): Remove.
9072 * function.h (ipa_opt_pass): Forward declare structure; typedef;
9074 (struct function): Add ipa_transforms_to_apply.
9075 * passes.c (register_one_dump_file): Work on IPA_PASS.
9076 (init_optimization_passes): Remove pass_inline_parameters and
9078 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9079 (execute_one_pass) ... here; apply transforms when possible.
9080 (add_ipa_transform_pass, execute_ipa_summary_asses,
9081 execute_one_ipa_transform_pass): New.
9082 (execute_ipa_pass_list): Update for IPA_PASS type.
9084 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9086 * config/i386/i386.c (ix86_builtin_type): Add
9087 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9088 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9089 (bdesc_args): Add SSE4a builtins.
9090 (ix86_init_mmx_sse_builtins): Updated.
9091 (ix86_expand_args_builtin): Likewise.
9092 (ix86_expand_builtin): Likewise.
9094 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9096 * config/i386/i386.c (ix86_builtin_type): Add
9097 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9098 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9099 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9100 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9101 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9102 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9103 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9104 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9105 and DI_FTYPE_DI_DI_INT.
9106 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9107 (ix86_init_mmx_sse_builtins): Updated.
9108 (ix86_expand_args_builtin): Likewise.
9109 (ix86_expand_builtin): Likewise.
9110 (ix86_expand_binop_imm_builtin): Removed.
9112 * doc/extend.texi: Correct __builtin_ia32_palignr128.
9114 2008-04-30 Richard Guenther <rguenther@suse.de>
9116 PR tree-optimization/32921
9117 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9119 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
9121 * config/arm/arm.c (arm_unwind_emit): Use
9122 crtl->all_throwers_are_sibcalls instead of
9123 cfun->all_throwers_are_sibcalls.
9124 (arm_output_fn_unwind): Likewise.
9125 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9126 instead of cfun->uses_pic_offset_table.
9127 (frv_expand_prologue): Likewise.
9128 (frv_frame_pointer_required): Likewise.
9129 (frv_expand_fdpic_call): Likewise.
9130 (frv_emit_movsi): Likewise.
9131 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9132 cfun->returns_pcc_struct instead of
9133 current_function_returns_pcc_struct.
9134 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9135 instead of cfun->calls_eh_return.
9136 (m32c_pushm_popm): Likewise.
9137 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9138 "extern" declaration.
9140 2008-04-30 Richard Guenther <rguenther@suse.de>
9142 PR tree-optimization/21636
9143 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9145 (evaluate_stmt): Print the likely value.
9146 (ccp_visit_stmt): Avoid excessive vertical spacing.
9148 2008-04-30 Rafael Espindola <espindola@google.com>
9150 * builtins.c (fold_call_expr): Return realret.
9151 * tree-ssa-threadedge.c
9152 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9153 __builtin_object_size.
9155 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
9157 * gcc.c (wrapper_string): New variable.
9158 (insert_wrapper): New function.
9159 (execute): New option -wrapper.
9160 * doc/invoke.texi (Overall Options): New driver option -wrapper.
9162 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
9164 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9165 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9166 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9168 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
9169 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9170 config/rs6000/e500crtres64gprctr.asm,
9171 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9172 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9173 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9174 config/rs6000/e500crtsav64gprctr.asm,
9175 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9176 config/rs6000/e500crtsavg64gprctr.asm: New files.
9177 * config/rs6000/t-ppccomm: Add build rules for new files.
9178 (LIB2FUNCS_STATIC_EXTRA): Add new files.
9179 * config/rs6000/t-netbsd: Add build rules for new files.
9180 (LIB2FUNCS_STATIC_EXTRA): New variable.
9181 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9182 (CRTSAVRES_DEFAULT_SPEC): Likewise.
9183 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9185 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
9187 * config/i386/i386.c (ix86_builtin_type): Add
9188 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9189 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9190 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9191 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9192 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9193 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9194 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9195 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9196 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9197 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9198 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9199 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9200 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9201 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9202 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9203 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9204 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9205 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9206 V1DI_FTYPE_V2SI_V2SI.
9207 (bdesc_2arg): Moved to ...
9209 (ix86_init_mmx_sse_builtins): Updated.
9210 (ix86_expand_args_builtin): Updated. Take a pointer
9211 to const struct builtin_description. Handle comparison
9213 (ix86_expand_sse_compare): Take a new argument for swapping operands.
9214 (ix86_expand_builtin): Updated.
9216 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9217 (ssse3_pmaddubsw128): This.
9218 (ssse3_pmaddubswv4hi3): Renamed to ...
9219 (ssse3_pmaddubsw): This.
9221 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9222 (__builtin_ia32_packssdw128): Likewise.
9223 (__builtin_ia32_packuswb128): Likewise.
9224 (__builtin_ia32_pmaddubsw): Likewise.
9225 (__builtin_ia32_pmaddubsw128): Likewise.
9227 2008-04-30 Richard Guenther <rguenther@suse.de>
9229 PR tree-optimization/14847
9230 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9231 (recognize_bits_test): Use it.
9232 (recognize_single_bit_test): Likewise.
9234 2008-04-30 Martin Jambor <mjambor@suse.cz>
9236 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9237 instead of setting number of formal parameters to zero.
9238 (ipcp_init_stage): Do not set the number of actual parameters to zero
9240 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9241 which are called with variable number of arguments.
9242 (ipcp_insert_stage): Explicitely skipping all nodes which are
9243 called with variable number of arguments.
9244 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9245 number of parameters.
9247 * ipa-prop.h (struct ipa_node_params): Added flag
9248 called_with_var_arguments
9249 (ipa_set_param_count): Added. Changed sole setter to use it.
9250 (ipa_get_param_count): Added. All readers of param_count
9251 converted to use it instead.
9252 (ipa_set_called_with_variable_arg): Added.
9253 (ipa_is_called_with_var_arguments): Added.
9254 (ipa_get_ith_param): Added. All readers of param_decls converted
9256 (ipa_set_cs_argument_count): Added, sole writer to argument_count
9258 (ipa_get_cs_argument_count): Added, all readers of argument_count
9260 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9263 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9264 (struct ipcp_lattice): Renamed cval_type to type
9265 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9267 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9268 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9269 (ipcp_insert_stage): Changed the type of variable cvalue to tree
9270 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9271 (build_const_val): Changed the type of parameter cvalue to tree
9272 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9273 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9275 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9278 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9279 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9280 (ipa_add_method): Renamed to ipa_push_func_to_list
9281 (ipa_remove_method): Renamed to ipa_pop_func_from_list
9282 (ipa_callsite_param_count): Removed.
9283 (ipa_callsite_param_count_set): Removed.
9284 (ipa_callsite_param): Removed.
9285 (ipa_callsite_callee): Removed.
9286 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9287 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9288 (ipa_method_formal_count): Removed.
9289 (ipa_method_formal_count_set): Removed.
9290 (ipa_method_get_tree): Removed.
9291 (ipa_method_tree_map_create): Removed.
9292 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9293 (ipa_create_param_decls_array): Creates the array itself
9294 (ipa_create_param_decls_array): Temporary variable info instead of
9296 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9297 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9298 (get_type): Removed.
9299 (ipa_jf_get_info_type): Removed.
9300 (ipa_node_create): Renamed to ipa_create_node_params
9301 (ipa_free): Renamed to ipa_free_all_node_params
9302 (ipa_nodes_create): Renamed to ipa_create_all_node_params
9303 (ipa_edges_create): Renamed to ipa_create_all_edge_args
9304 (ipa_edges_free): Renamed to ipa_free_all_edge_args
9305 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9306 (ipa_free_all_node_params): Deallocation to jump_functions moved to
9307 ipa_free_all_edge_args
9308 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9309 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9310 (ipa_create_methodlist_node): Removed.
9311 (ipa_methodlist_method): Removed.
9312 (ipa_methodlist_method_set): Removed.
9313 (ipa_methodlist_next_method): Removed.
9314 (ipa_methodlist_next_method_set): Removed.
9315 (ipa_method_is_modified): Removed.
9316 (ipa_method_modify_create): Removed.
9317 (ipa_method_modify_init): Temporary variable info instead of a few
9319 (ipa_detect_param_modifications): Temporary variable info instead of
9321 (ipa_compute_jump_functions): Temporary variable info instead of
9323 (ipa_method_modify_set): Removed.
9324 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9325 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9326 than craph_node as the first parameter.
9327 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9328 (ipa_method_modify_init): Removed.
9329 (ipa_compute_jump_functions): Added a temp variable instead of
9330 repeatadly dereferencing the cgraph_edge.aux pointer
9331 (ipa_callsite_param_set_type): Removed.
9332 (ipa_compute_jump_functions): i renamed to index and moved to
9334 (ipa_callsite_param_set_info_type_formal): Removed.
9335 (ipa_callsite_param_set_info_type): Removed.
9336 (ipa_callsite_param_map_create): Removed.
9337 (ipa_callsite_tree): Removed.
9338 (ipa_callsite_caller): Removed.
9339 (ipa_pop_func_from_list): return_method removed to return_func
9341 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9342 prefixed all values with IPA_. Changed all users.
9343 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9344 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9345 and FORMAL_IPATYPE IPA_PASS_THROUGH.
9346 (union parameter_info): Renamed to jump_func_value.
9347 (union jump_func_value): Renamed value to constant
9348 (struct ipa_jump_func): Renamed info_type to value
9349 (struct ipa_node): Renamed to ipa_node_params
9350 (struct ipa_node_params): Renamed ipa_arg_num to param_count
9351 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9352 (struct ipa_node_params): Renamed ipa_mod to modified_flags
9353 (struct ipa_edge): Renamed to ipa_edge_args
9354 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9355 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9356 (struct ipa_methodlist): Renamed to ipa_func_list
9357 (struct ipa_func_list): method_p renamed to node, next_method
9359 (ipa_methodlist_p): Removed, switched all users to struct pointer
9360 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9362 2008-04-30 Alan Modra <amodra@bigpond.net.au>
9364 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9365 (rs6000_emit_epilogue): Use backchain to restore only when we
9366 have a large frame. Make use of frame pointer to restore if we
9367 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9369 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
9371 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9372 Add mode to zero_extract.
9373 (sign bit tests peepholes): (Ditto.).
9375 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
9377 * config/i386/i386.c (ix86_builtins): Replace Prescott New
9378 Instructions in comments with SSE3.
9379 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
9380 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9381 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9382 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9383 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9384 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9385 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9386 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9387 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9388 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9389 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9390 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9391 (bdesc_sse_args): Renamed to ...
9392 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9393 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9394 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9396 (bdesc_1arg): Moved to ...
9398 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
9399 Instructions in comments with SSE3.
9400 (ix86_expand_sse_operands_builtin): Renamed to ...
9401 (ix86_expand_args_builtin): This. Updated.
9402 (ix86_expand_unop1_builtin): Update comments.
9403 (ix86_expand_builtin): Updated.
9405 2008-04-29 Richard Guenther <rguenther@suse.de>
9407 PR tree-optimization/36078
9408 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9409 Update virtual SSA form after cleaning up the CFG.
9411 2008-04-29 Richard Guenther <rguenther@suse.de>
9414 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9416 2008-04-29 Richard Guenther <rguenther@suse.de>
9418 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9419 (compute_may_aliases): Do not call finalize_ref_all_pointers.
9420 (compute_flow_insensitive_aliasing): Do not treat
9421 PTR_IS_REF_ALL pointers special.
9422 (get_smt_for): Likewise.
9423 (may_alias_p): Re-structure.
9424 (is_escape_site): A ref-all pointer conversion is not an escape site.
9425 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9426 PTR_IS_REF_ALL pointers special.
9427 * tree-ssa-structalias.h (struct alias_info): Remove
9428 ref_all_symbol_mem_tag field.
9429 (PTR_IS_REF_ALL): Remove.
9431 2008-04-29 Richard Guenther <rguenther@suse.de>
9434 * fold-const.c (extract_muldiv_1): In combining division constants
9435 make sure to never overflow.
9437 2008-04-29 Nick Clifton <nickc@redhat.com>
9439 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9441 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9444 * optc-gen.awk: Work around HP-UX/IA awk bug.
9446 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
9448 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9451 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9454 * config/i386/i386.md
9455 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9456 Change operand 1 predicate to nonimmediate_operand.
9458 2008-04-28 Jakub Jelinek <jakub@redhat.com>
9461 * dwarf2out.c (struct die_struct): Mark as chain_circular through
9463 * gengtype.c (walk_type, write_func_for_structure): Handle
9465 * doc/gty.texi: Document chain_circular.
9467 2008-04-28 Richard Guenther <rguenther@suse.de>
9469 PR tree-optimization/36066
9470 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9473 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9476 * config/i386/i386.md
9477 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9478 Use match_scratch instead of match_operand for operands 3 and 4.
9480 2008-04-27 Richard Guenther <rguenther@suse.de>
9482 PR tree-optimization/18754
9483 PR tree-optimization/34223
9484 * tree-pass.h (pass_complete_unrolli): Declare.
9485 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9486 loop size before and after unconditionally of UL_NO_GROWTH in effect.
9487 Rewrite loop into loop closed SSA form if it is not already.
9488 (tree_unroll_loops_completely): Re-structure to iterate over
9489 innermost loops with intermediate CFG cleanups.
9490 Unroll outermost loops only if requested or the code does not grow
9492 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9493 loops are available.
9494 (tree_vectorize): Instead do so here.
9495 (tree_complete_unroll): Also unroll outermost loops.
9496 (tree_complete_unroll_inner): New function.
9497 (gate_tree_complete_unroll_inner): Likewise.
9498 (pass_complete_unrolli): New pass.
9499 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9500 uses outside of the loop.
9501 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9502 form if it is available.
9503 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9504 * passes.c (init_optimization_passes): Schedule complete inner
9505 loop unrolling pass before the first CCP pass after final inlining.
9507 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
9509 * targhooks.h (default_emutls_var_fields,
9510 default_emutls_var_init): Declare.
9511 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9512 * target.h (struct gcc_target): Add struct emutls member.
9513 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9514 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9515 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9516 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9517 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9518 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9519 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9520 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9521 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9522 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9523 emit debug information.
9524 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9525 * varasm.c: Include targhooks.h.
9526 (emutls_object_section, emutls_tmpl_section): New.
9527 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9528 (EMUTLS_SEPARATOR): New.
9530 (get_emutls_object_name): New.
9531 (default_emutls_var_fields): New, broken out of ...
9532 (get_emutls_object_type): ... here. Adjust to use target hooks.
9533 (get_emutls_init_templ_addr): Adjust to use target hooks.
9534 (emutls_decl): Adjust to use target hooks.
9535 (emutls_finish): Likewise.
9536 (default_emutls_var_init): New, broken out of ...
9537 (assemble_variable): ... here. Adjust to use target hooks.
9538 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9540 * c-common.c (handle_section_attribute): Prevent overriding
9541 sections for emulated tls with special sections.
9542 * config/i386/i386.c (x86_64_elf_select_section): Add
9543 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9544 (x86_64_elf_unique_section): Likewise.
9545 * config/vxworks.c: Include tree.h.
9546 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9547 (vxworks_override_options): Set TLS scheme.
9548 * doc/tm.texi (Emulated TLS): New node.
9550 2008-04-26 Simon Baldwin <simonb@google.com>
9553 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9554 with propagated string constants.
9556 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
9558 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9559 constraint for operand 2 when operand 0 is memory operand.
9560 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9561 operand 0 is memory operand.
9562 (fix_trunc<mode>_i387_with_temp): Ditto.
9563 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9564 operand 2 when operand 1 is memory operand.
9565 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9566 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9567 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9568 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9569 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9570 operands 2,3 and 4 when operand 1 is memory operand.
9571 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9573 (fistdi2_floor_with_temp): Ditto.
9574 (fist<mode>2_floor_with_temp): Ditto.
9575 (fistdi2_ceil_with_temp): Ditto.
9576 (fist<mode>2_ceil_with_temp): Ditto.
9577 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9579 2008-04-26 David Daney <ddaney@avtrex.com>
9581 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9583 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9584 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9585 UNSPEC_UPDATE_GOT_VERSION): Renumber.
9586 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9587 (compare_and_swap_12): New insn.
9588 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9589 * config/mips/mips.c (mips_force_binary): New function.
9590 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9591 (mips_expand_compare_and_swap_12): New function.
9592 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9594 2008-04-25 Jan Hubicka <jh@suse.cz>
9597 * cfgexpand.c (pass_expand): Turn into RTL pass.
9598 * passes.c (execute_one_pass): Do pass typechecking after execution.
9599 * tree-pass.h (pass_expand): Turn into RTL pass.
9601 * function.h (struct rtl_data): Move here fields
9602 accesses_prior_frames, calls_eh_return, saves_all_registers,
9603 has_nonlocal_goto, has_asm_statement, is_thunk,
9604 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9605 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9606 arg_pointer_save_area_init from struct function; turn into bool.
9607 (struct function): Move
9608 calls_eh_return, saves_all_registers, has_nonlocal_goto,
9609 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9610 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9611 tail_call_emit, arg_pointer_save_area_init
9612 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
9613 (current_function_returns_struct, current_function_returns_pcc_struct,
9614 current_function_calls_setjmp, current_function_calls_alloca,
9615 current_function_accesses_prior_frames,
9616 current_function_calls_eh_return, current_function_is_thunk,
9617 current_function_stdarg, current_function_profile,
9618 current_function_limit_stack, current_function_uses_pic_offset_table,
9619 current_function_uses_const_pool, current_function_has_nonlocal_label,
9620 current_function_saves_all_registers,
9621 current_function_has_nonlocal_goto,
9622 current_function_has_asm_statement): Remove accesor macros.
9623 * ra-conflict.c (global_conflicts): Update.
9624 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9625 (suitable_for_tail_call_opt_p): Update.
9626 * builtins.c (expand_builtin_return_addr): Update.
9627 (expand_builtin_setjmp_setup): Update.
9628 (expand_builtin_nonlocal_goto): Update.
9629 * final.c (final_start_function): Update.
9630 (profile_function): Update.
9631 (leaf_function_p): Update.
9632 (only_leaf_regs_used): Update.
9633 * df-scan.c (df_get_exit_block_use_set): Update.
9634 * dojump.c (clear_pending_stack_adjust): Update.
9635 * tree-stdarg.c (gate_optimize_stdarg): Update.
9636 * gimple-low.c (lower_function_body): Update.
9637 * global.c (compute_regsets): Update.
9638 (global_alloc): Update.
9639 * dwarf2out.c (dwarf2out_begin_prologue): Update.
9640 * expr.c (expand_assignment): Update.
9641 * dse.c (dse_step0): Update.
9642 (dse_step1): Update.
9643 * c-decl.c (store_parm_decls): Update.
9644 * local-alloc.c (combine_regs): Update.
9645 (find_free_reg): Update.
9646 * function.c (assign_parms_augmented_arg_list): Update.
9647 (assign_parm_find_data_types): Update.
9648 (assign_parms): Update.
9649 (allocate_struct_function): Update.
9650 (expand_function_start): Update.
9651 (expand_function_end): Update.
9652 (get_arg_pointer_save_area): Update.
9653 (thread_prologue_and_epilogue_insns): Update.
9654 (rest_of_match_asm_constraints): Update.
9655 * stor-layout.c (variable_size): Update.
9656 * gcse.c (gcse_main): Update.
9657 (bypass_jumps): Update.
9658 * gimplify.c (gimplify_function_tree): Update.
9659 * calls.c (emit_call_1): Update.
9660 (expand_call): Update.
9661 * bt-load.c (compute_defs_uses_and_gen): Update.
9662 * except.c (sjlj_assign_call_site_values): Update.
9663 (sjlj_emit_function_enter): Update.
9664 (can_throw_external): Update.
9665 (set_nothrow_function_flags): Update.
9666 (expand_builtin_unwind_init): Update.
9667 (expand_eh_return): Update.
9668 (convert_to_eh_region_ranges): Update.
9669 (output_function_exception_table): Update.
9670 * emit-rtl.c (gen_tmp_stack_mem): Update.
9671 * cfgexpand.c (expand_used_vars): Update.
9672 (tree_expand_cfg): Update.
9673 * cfgcleanup.c (rest_of_handle_jump): Update.
9674 * explow.c (allocate_dynamic_stack_space): Update.
9675 * varasm.c (assemble_start_function): Update.
9676 (force_const_mem): Update.
9677 (mark_constant_pool): Update.
9678 * tree-optimize.c (tree_rest_of_compilation): Update.
9679 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9680 * tree-cfg.c (notice_special_calls): Update.
9681 (is_ctrl_altering_stmt): Update.
9682 (tree_can_make_abnormal_goto): Update.
9683 (tree_purge_dead_abnormal_call_edges): Update.
9684 * config/alpha/predicates.md: Update.
9685 * config/alpha/alpha.c (alpha_sa_mask): Update.
9686 (alpha_sa_size): Update.
9687 (alpha_does_function_need_gp): Update.
9688 (alpha_expand_prologue): Update.
9689 (alpha_start_function): Update.
9690 (alpha_output_function_end_prologue): Update.
9691 (alpha_expand_epilogue): Update.
9692 * config/frv/frv.c (frv_stack_info): Update.
9693 (frv_expand_epilogue): Update.
9694 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9695 (s390_register_info): Update.
9696 (s390_frame_info): Update.
9697 (s390_init_frame_layout): Update.
9698 (s390_can_eliminate): Update.
9699 (save_gprs): Update.
9700 * config/spu/spu.c (spu_split_immediate): Update.
9701 (need_to_save_reg): Update.
9702 (spu_expand_prologue): Update.
9703 (spu_expand_epilogue): Update.
9704 * config/sparc/sparc.md: Update.
9705 * config/sparc/sparc.c (eligible_for_return_delay): Update.
9706 (sparc_tls_got): Update.
9707 (legitimize_pic_address): Update.
9708 (sparc_emit_call_insn): Update.
9709 (sparc_expand_prologue): Update.
9710 (output_return): Update.
9711 (print_operand): Update.
9712 (sparc_function_ok_for_sibcall): Update.
9713 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9714 * config/m32r/m32r.md: Update.
9715 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9716 (m32r_compute_frame_size): Update.
9717 (m32r_expand_prologue): Update.
9718 (m32r_expand_epilogue): Update.
9719 (m32r_legitimize_pic_address): Update.
9720 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9721 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9722 * config/i386/i386.c (ix86_frame_pointer_required): Update.
9724 (ix86_save_reg): Update.
9725 (ix86_compute_frame_layout): Update.
9726 (ix86_expand_prologue): Update.
9727 (ix86_expand_epilogue): Update.
9728 * config/sh/sh.c (output_stack_adjust): Update.
9729 (calc_live_regs): Update.
9730 (sh5_schedule_saves): Update.
9731 (sh_expand_prologue): Update.
9732 (sh_expand_epilogue): Update.
9733 (sh_setup_incoming_varargs): Update.
9734 (sh_allocate_initial_value): Update.
9735 (sh_get_pr_initial_val): Update.
9736 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9737 * config/sh/sh.md (label:): Update.
9738 * config/avr/avr.c (out_movhi_mr_r): Update.
9739 * config/crx/crx.h (enum): Update.
9740 * config/xtensa/xtensa.h (along): Update.
9741 * config/stormy16/stormy16.c Update.
9742 (xstormy16_compute_stack_layout): Update.
9743 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9744 (fr30_expand_prologue): Update.
9745 * config/cris/cris.c (cris_conditional_register_usage): Update.
9746 (cris_reg_saved_in_regsave_area): Update.
9747 (cris_initial_frame_pointer_offset): Update.
9748 (cris_simple_epilogue): Update.
9749 (cris_expand_prologue): Update.
9750 (cris_expand_epilogue): Update.
9751 (cris_expand_pic_call_address): Update.
9752 (cris_asm_output_symbol_ref): Update.
9753 (cris_asm_output_label_ref): Update.
9754 * config/cris/cris.md Update.
9755 * config/iq2000/iq2000.c (compute_frame_size): Update.
9756 (iq2000_expand_epilogue): Update.
9757 * config/mt/mt.h (save_direction): Update.
9758 * config/mn10300/mn10300.c (mn10300_function_value): Update.
9759 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9760 (ia64_secondary_reload_class): Update.
9761 * config/m68k/m68k.c (m68k_save_reg): Update.
9762 (m68k_expand_prologue): Update.
9763 (m68k_expand_epilogue): Update.
9764 (legitimize_pic_address): Update.
9765 * config/rs6000/rs6000.c (rs6000_got_register): Update.
9766 (first_reg_to_save): Update.
9767 (first_altivec_reg_to_save): Update.
9768 (compute_vrsave_mask): Update.
9769 (compute_save_world_info): Update.
9770 (rs6000_stack_info): Update.
9771 (spe_func_has_64bit_regs_p): Update.
9772 (rs6000_ra_ever_killed): Update.
9773 (rs6000_emit_eh_reg_restore): Update.
9774 (rs6000_emit_allocate_stack): Update.
9775 (rs6000_emit_prologue): Update.
9776 (rs6000_emit_epilogue): Update.
9777 (rs6000_output_function_epilogue): Update.
9778 (output_profile_hook): Update.
9779 (rs6000_elf_declare_function_name): Update.
9780 * config/rs6000/rs6000.h (rs6000_args): Update.
9781 * config/rs6000/rs6000.md: Update.
9782 * config/mcore/mcore.c (mcore_expand_prolog): Update.
9783 * config/arc/arc.c (arc_output_function_epilogue): Update.
9784 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9785 * config/darwin.c (machopic_function_base_name): Update.
9786 * config/score/score3.c (score3_compute_frame_size): Update.
9789 (score3_epilogue): Update.
9790 * config/score/score7.c (score7_compute_frame_size): Update.
9791 (score7_prologue): Update.
9792 (score7_epilogue): Update.
9793 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9794 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9795 * config/arm/arm.c (use_return_insn): Update.
9796 (require_pic_register): Update.
9797 (arm_load_pic_register): Update.
9798 (arm_compute_save_reg0_reg12_mask): Update.
9799 (arm_compute_save_reg_mask): Update.
9800 (thumb1_compute_save_reg_mask): Update.
9801 (output_return_instruction): Update.
9802 (arm_output_function_prologue): Update.
9803 (arm_output_epilogue): Update.
9804 (arm_get_frame_offsets): Update.
9805 (arm_expand_prologue): Update.
9806 (thumb_pushpop): Update.
9807 (thumb_exit): Update.
9808 (thumb1_expand_prologue): Update.
9809 (thumb1_expand_epilogue): Update.
9810 (arm_unwind_emit): Update.
9811 (arm_output_fn_unwind): Update.
9812 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9813 * config/arm/arm.md: Update.
9814 * config/pa/pa.md: Update.
9815 * config/pa/pa.c (legitimize_pic_address): Update.
9816 (compute_frame_size): Update.
9817 (hppa_expand_prologue): Update.
9818 (hppa_expand_epilogue): Update.
9819 (borx_reg_operand): Update.
9820 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9821 (HARD_REGNO_RENAME_OK): Update.
9822 * config/mips/mips.c (mips_global_pointer): Update.
9823 (mips_save_reg_p): Update.
9824 (mips_compute_frame_info): Update.
9825 (mips_frame_pointer_required): Update.
9826 (mips_expand_prologue): Update.
9827 (mips_expand_epilogue): Update.
9828 (mips_can_use_return_insn): Update.
9829 (mips_reorg_process_insns): Update.
9830 * config/v850/v850.c (compute_register_save_size): Update.
9831 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9832 * config/mmix/mmix.c (along): Update.
9833 (mmix_expand_epilogue): Update.
9834 * config/bfin/bfin.c (legitimize_pic_address): Update.
9835 (must_save_p): Update.
9836 (stack_frame_needed_p): Update.
9837 (add_to_reg): Update.
9838 (bfin_expand_prologue): Update.
9839 * stmt.c (expand_asm_operands): Update.
9840 * reload1.c (reload): Update.
9841 (init_elim_table): Update.
9843 2008-04-25 Bob Wilson <bob.wilson@acm.org>
9845 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9847 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
9849 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9850 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
9851 (mov<mode>): Removed.
9852 (*movv4sf_internal): Likewise.
9853 (*movv2df_internal): Likewise.
9855 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9857 * config.gcc (crx-*-elf): Remove deprecation.
9859 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
9861 * config/i386/cygming-crtend.c (register_frame_ctor): Register
9862 __gcc_deregister_frame with atexit.
9863 (deregister_frame_dtor): Remove.
9865 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
9866 Nathan Sidwell <nathan@codesourcery.com>
9868 * config/rs6000/rs6000.opt (mspe): Remove Var property.
9870 * config/rs6000/rs6000.h (rs6000_spe): Declare.
9871 (rs6000_isel): Likewise.
9872 * config/rs6000/rs6000.c (rs6000_spe): New variable.
9873 (rs6000_isel): New variable.
9874 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9876 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9879 * c-common.c (handle_vector_size_attribute): Call
9880 lang_hooks.types.reconstruct_complex_type instead of
9881 reconstruct_complex_type.
9882 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9883 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9884 * langhooks.h (struct lang_hooks_for_types): Add
9885 reconstruct_complex_type hook.
9886 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9887 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9889 2008-04-24 Richard Guenther <rguenther@suse.de>
9891 * c-common.h (check_builtin_function_arguments): Declare.
9892 * c-common.c (validate_nargs): New function.
9893 (check_builtin_function_arguments): Likewise.
9894 * c-typeck.c (build_function_call): Call
9895 check_builtin_function_arguments.
9896 * builtins.c (fold_builtin_classify): Remove error reporting code.
9897 (fold_builtin_unordered_cmp): Likewise.
9898 (fold_builtin_1): Likewise.
9899 (fold_builtin_n): Likewise.
9901 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9903 PR tree-optimization/36008
9904 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9905 the original op1, rather than delta by step.
9907 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
9908 Sebastian Pop <sebastian.pop@amd.com>
9910 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9911 eliminate_local_variables_stmt, eliminate_local_variables,
9912 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9913 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9914 of code delimited by two edges in the CFG.
9915 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9916 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9917 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
9918 the case of parallelisation of reductions.
9919 (expr_invariant_in_region_p): New.
9921 * tree-flow.h (gather_blocks_in_sese_region): Declared.
9922 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9924 2008-04-24 Ira Rosen <irar@il.ibm.com>
9925 Richard Guenther <rguenther@suse.de>
9927 PR tree-optimization/36034
9928 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9929 incapable of dealing with loads with gaps.
9931 2008-04-24 Rafael Espindola <espindola@google.com>
9933 * tree-flow.h (vrp_evaluate_conditional): Change signature.
9934 * tree-ssa-propagate.c (fold_predicate_in): Update call to
9935 vrp_evaluate_conditional.
9936 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9937 (vrp_evaluate_conditional): Split the cond argument.
9938 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9939 (simplify_stmt_for_jump_threading): Update call to
9940 vrp_evaluate_conditional.
9942 2008-04-24 Ira Rosen <irar@il.ibm.com>
9944 PR tree-optimization/35982
9945 * tree-vect-analyze.c (vect_check_interleaving): Check that the
9946 interleaved data-refs are of the same type.
9948 2008-04-24 Danny Smith <dannysmith@users.net>
9950 * c-format.c (check_format_info_main): Use strncmp rather than a
9951 magic prefix to handle multichar length specs.
9952 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9953 Don't prefix "I64" and "I32" with '\0'.
9955 2008-04-24 Jakub Jelinek <jakub@redhat.com>
9958 * config/i386/i386.c (init_cumulative_args): Don't pass anything
9959 in registers for -m32 only if stdarg_p (fntype).
9961 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
9963 PR rtl-optimization/36006
9964 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9965 temp to op0 in order to avoid invalid rtx sharing.
9967 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9969 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
9970 check TREE_INVARIANT.
9971 * tree-gimple.c (is_gimple_address): New.
9972 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9973 * tree-gimple.h (is_gimple_address): New.
9974 * tree.h (decl_address_invariant_p): New.
9975 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9976 (build_string): Likewise.
9977 (decl_address_invariant_p): New, from is_gimple_invariant_address.
9978 (tree_invariant_p_1): Likewise.
9979 (save_expr): Use it.
9980 (tree_invariant_p): New.
9981 (skip_simple_arithmetic): Use it.
9982 (stabilize_reference_1): Use it.
9983 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9985 (build1_stat): Drop code to compute TREE_INVARIANT.
9986 (build2_stat): Drop code to compute TREE_INVARIANT.
9987 (build3_stat): Drop code to compute TREE_INVARIANT.
9988 (build4_stat): Drop code to compute TREE_INVARIANT.
9989 (build5_stat): Drop code to compute TREE_INVARIANT.
9990 (build7_stat): Drop code to compute TREE_INVARIANT.
9991 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9992 * tree.h (struct tree_base): Remove invariant_flag.
9993 (TREE_INVARIANT): Remove.
9994 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9995 (fold_builtin_expect): Check TREE_CONSTANT.
9996 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9997 * c-tree.h (c_expr_to_decl): Drop third parameter.
9998 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9999 (build_c_cast): Don't set TREE_INVARIANT.
10000 (pop_init_level): Don't set TREE_INVARIANT.
10001 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10002 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10004 (gimplify_init_constructor): Don't set TREE_INVARIANT.
10005 (gimplify_addr_expr): Adjust comment.
10006 * tree-mudflap.c (mf_build_string):
10007 * print-tree.c (print_node): Don't print TREE_INVARIANT.
10008 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10009 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10010 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10011 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10012 * langhooks.h (struct lang_hooks): Drop third parameter from
10015 2008-04-23 Richard Guenther <rguenther@suse.de>
10017 PR tree-optimization/27799
10018 PR tree-optimization/32921
10019 PR tree-optimization/32624
10020 * tree-ssa-structalias.c (merge_smts_into): Only merge the
10021 SMTs aliases and the tag itself into the solution.
10022 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10023 merge the points-to solution back into the SMT aliases.
10024 (may_alias_p): Use alias_set_subset_of instead of
10025 aliases_conflict_p. A pointer which points to
10026 memory with alias set zero may access any variable.
10028 2008-04-23 Richard Guenther <rguenther@suse.de>
10030 * alias.c (alias_set_subset_of): Correctly handle asking
10031 if zero is a subset of an alias set with zero child.
10032 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10033 (compute_flow_insensitive_aliasing): Correctly walk all
10034 pointers. Do not unnecessarily union sets.
10036 2008-04-23 Richard Guenther <rguenther@suse.de>
10038 PR middle-end/36021
10039 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10041 2008-04-22 Tomas Bily <tbily@suse.cz>
10043 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10045 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10047 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10048 * tree-ssa-structalias.c (get_constraint_for): Likewise.
10049 * tree-inline.c (estimate_num_insns_1): Likewise.
10050 * varasm.c (const_hash_1, compare_constant, copy_constant)
10051 (compute_reloc_for_constant, output_addressed_constants): Likewise.
10052 * emit-rtl.c (component_ref_for_mem_expr)
10053 (set_mem_attributes_minus_bitpos): Likewise.
10054 * expr.c (highest_pow2_factor, expand_expr_real_1, )
10055 (is_aligning_offset): Likewise.
10056 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10057 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10058 * dojump.c (do_jump): Likewise.
10059 * builtins.c (get_pointer_alignment, get_memory_rtx)
10060 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10061 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10063 2008-04-23 Jakub Jelinek <jakub@redhat.com>
10065 PR rtl-optimization/36017
10066 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10067 expanding the library call.
10069 2008-04-22 Ian Lance Taylor <iant@google.com>
10071 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10072 than size_in_bytes.
10074 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
10076 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10077 of LR/CTR moves for Power6.
10079 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
10081 PR middle-end/36003
10082 * passes.c (init_optimization_passes): Remove
10083 pass_fast_rtl_byte_dce.
10085 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
10088 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10089 builtin functions to generate faster code.
10090 (_mm_cvtpu16_ps): Ditto.
10091 (_mm_cvtpi32x2_ps): Ditto.
10093 2008-04-22 Nick Clifton <nickc@redhat.com>
10095 * common.opt (ftree-loop-distribution): Add Optimization
10098 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10099 (frv_expand_builtin_va_start): Likewise.
10101 * config/arm/arm.c (thumb_find_work_register): Fix location of
10102 argument register count.
10104 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10106 Support scheduling for ColdFire V1 and V3 microarchitecture.
10107 Improve scheduling of multiplication instructions.
10109 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
10110 (mac): New instruction attribute.
10111 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10112 (m68k_sched_mac): New variable.
10113 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10114 Handle cfv1 and cfv3.
10115 (max_insn_size): New static variable.
10116 (struct _sched_ib): New type.
10117 (sched_ib): New static variable.
10118 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10119 to fields of 'struct _sched_ib sched_ib'. Update all uses.
10120 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10122 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10123 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
10124 new variables. Update.
10125 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10126 Add modeling of cfv3 instruction buffer. Update.
10127 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10128 * config/m68k/m68k.h (TUNE_CFV3): New macro.
10129 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10130 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10131 a particular reservation applies to.
10132 (type2): Reorganize attribute values. Rename alu to alu_reg,
10133 alu_l to alu, move_l to omove. Join move to alu. Split mul
10134 to mul_l and mul_w.
10135 (cf_ib_*): Simplify description of instruction buffer.
10136 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10137 (cf_mem): Split into cf_mem1 and cf_mem2.
10138 (cf_v2_move_??): Rename to cfv12_alu_??.
10139 (cf_v2_move_l_??): Rename to cfv12_omove_??.
10140 (cf_v2_mul_??): Remove reservations.
10141 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10142 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10143 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10145 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10146 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10147 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10148 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10149 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10150 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10151 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10152 expansions of the above reservations for instructions of sizes
10155 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10157 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10159 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
10161 * coverage.c: Include tree-pass.h.
10162 (coverage_counter_alloc): Print da_file_name to the dump file.
10164 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
10166 * sbitmap.c (sbitmap_range_empty_p): New function.
10167 * sbitmap.h (sbitmap_range_empty_p): New function.
10168 * bitmap.h: Now includes obstack.h.
10170 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
10171 Kenneth Zadeck <zadeck@naturalbridge.com>
10173 * dbgcnt.def (ra_byte_scan): Added.
10174 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10175 when the last hit happens for a counter.
10176 * timevar.def (TV_DF_BYTE_LR): New variable.
10177 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10178 * passes.c (pass_fast_rtl_byte_dce): New pass.
10179 * fwprop.c (update_df): Added mode to call df_ref_create.
10180 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10181 DF_REF_EXTRACT_OFFSET.
10182 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10183 DF_BYTE_LR_OUT, df_byte_lr): New macro.
10185 (df_ref_extract): Added mode field.
10186 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10187 DF_REF_EXTRACT_OFFSET.
10188 (DF_REF_EXTRACT_MODE): New macro.
10189 (df_byte_lr_bb_info): New structure.
10190 (df_print_byte_regset, df_compute_accessed_bytes,
10191 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10192 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10193 df_byte_lr_simulate_uses,
10194 df_byte_lr_simulate_artificial_refs_at_top,
10195 df_byte_lr_simulate_artificial_refs_at_end,
10196 df_compute_accessed_bytes): New function.
10197 (df_ref_create): Add parameter.
10198 (df_byte_lr_get_bb_info): New inline function.
10199 * df-scan.c (df_ref_record, df_uses_record,
10200 df_ref_create_structure): Added mode parameter.
10201 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10202 df_defs_record, df_uses_record, df_get_conditional_uses,
10203 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10204 df_entry_block_defs_collect, df_exit_block_uses_collect):
10205 Added mode parameter to calls to df_ref_record, df_uses_record,
10206 df_ref_create_structure.
10207 (df_ref_equal_p, df_ref_compare): Added test for modes.
10208 (df_ref_create_structure): Added code to set mode. Renamed
10209 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10210 DF_REF_EXTRACT_OFFSET.
10211 * df-core.c (df_print_byte_regset): New function.
10212 * df-byte-scan.c: New file.
10213 * df-problems.c (df_rd_transfer_function): Removed unnecessary
10214 calls to BITMAP_FREE.
10215 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10216 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10217 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10218 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10219 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10220 df_byte_lr_local_compute, df_byte_lr_init,
10221 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10222 df_byte_lr_transfer_function, df_byte_lr_free,
10223 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10224 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10225 df_byte_lr_simulate_uses,
10226 df_byte_lr_simulate_artificial_refs_at_top,
10227 df_byte_lr_simulate_artificial_refs_at_end): New function.
10228 * dce.c (byte_dce_process_block): New function.
10229 (dce_process_block): au is now passed in rather than computed
10230 locally. Changed loops that look at artificial defs to not look
10231 for conditional or partial ones, because there never are any.
10232 (fast_dce): Now is able to drive byte_dce_process_block or
10233 dce_process_block depending on the kind of dce being done.
10234 (rest_of_handle_fast_dce): Add parameter to fast_dce.
10235 (rest_of_handle_fast_byte_dce): New function.
10236 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10237 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10239 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
10242 * gcc.h: Added fortran options that take arguments to
10243 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10246 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
10248 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10249 scalarization if on the LHS and not a full access.
10251 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10253 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10255 2008-04-18 Rafael Espindola <espindola@google.com>
10257 * tree-vrp.c (find_case_label_index): Fix the binary search.
10258 (find_case_label_range): New.
10259 (vrp_visit_switch_stmt): Use find_case_label_range.
10260 (simplify_switch_using_ranges): Use find_case_label_range.
10262 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
10264 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10265 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10267 2008-04-18 Tom Tromey <tromey@redhat.com>
10270 * doc/cpp.texi (Implementation-defined behavior): Mention
10273 2008-04-18 Ian Lance Taylor <iant@google.com>
10275 * fold-const.c (pointer_may_wrap_p): New static function.
10276 (fold_comparison): Add another test for pointer overflow. Use
10277 pointer_may_wrap_p to disable some false positives.
10279 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
10281 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10282 (fname_as_string): Match updated cpp_interpret_string prototype.
10283 (fix_string_type): Support char16_t* and char32_t*.
10284 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10285 derivative) nodes. Register as builtin if C++0x.
10286 (c_parse_error): Support CPP_CHAR{16,32}.
10287 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10288 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10289 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10290 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10291 CTI_CHAR32_ARRAY_TYPE>: New elements.
10292 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10293 char32_type_node, signed_char32_type_node, char16_array_type_node,
10294 char32_array_type_node): New defines.
10295 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10296 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10297 (lex_string): Support CPP_STRING{16,32}, match updated
10298 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10299 (lex_charconst): Support CPP_CHAR{16,32}.
10300 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10301 and CPP_STRING{16,32}.
10303 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10306 * aclocal.m4: Regenerate.
10307 * configure: Regenerate.
10309 2008-04-18 Jan Hubicka <jh@suse.cz>
10311 * except.c (dw2_size_of_call_site_table,
10312 sjlj_size_of_call_site_table): Use vector API for call_site_record.
10314 * cgraphbuild.c (build_cgraph_edges): Update.
10315 * tree-pass.h: Update comment.
10316 * final.c (leaf_function_p): Update.
10317 (leaf_renumber_regs): Update.
10318 (rest_of_clean_state): Update.
10319 * omp-low.c (expand_omp_parallel): Update.
10320 * ipa-reference.c (analyze_function): Update.
10321 * reorg.c (find_end_label): Update.
10322 (optimize_skip): Update.
10323 (fill_simple_delay_slots): Update.
10324 (fill_simple_delay_slots): Update.
10325 (make_return_insns): Update.
10326 (dbr_schedule): Update.
10327 * gimple-low.c (record_vars_into): Update.
10328 * cfgbuild.c (make_edges): Update.
10329 * function.c (assign_stack_local): Update.
10330 (assign_parm_adjust_stack_rtl): Update.
10331 (locate_and_pad_parm): Update.
10332 (allocate_struct_function): Do not initialize stack_alignment_needed
10333 and preferred_stack_boundary here.
10334 (stack_protect_prologue): Update.
10335 (stack_protect_epilogue): Update.
10336 (expand_function_start): Initialize stack_alignment_needed,
10337 preferred_stack_boundary and max_jumptable_ents.
10338 (expand_function_end): Update.
10339 (free_after_compilation): Do not NULLify epilogue_delay_list.
10340 * function.h (struct rtl_data): Add stack_protect_guard,
10341 stack_alignment_needed,
10342 preferred_stack_boundary, epilogue_delay_list.
10343 (struct function): Remove value_histograms, stack_alignment_needed,
10344 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10346 unexpanded_var_list, stack_protect_guard.
10347 (current_function_epilogue_delay_list): Remove.
10348 * ipa-type-escape.c (analyze_function): Update.
10349 * gimplify.c (pop_gimplify_context): Update comment.
10350 * calls.c (expand_call): Update.
10351 (emit_library_call_value_1): Update.
10352 * except.c (set_nothrow_function_flags): Update.
10353 * cfgexpand.c (get_decl_align_unit): Update.
10354 (create_stack_guard): Update.
10355 (estimated_stack_frame_size): Update.
10356 (expand_used_vars): Update.
10357 (tree_expand_cfg): Free histogram earliers, init expansion variables.
10358 * explow.c (allocate_dynamic_stack_space): Update.
10359 * tree-ssa-live.c (remove_unused_locals): Update.
10360 * varasm.c (mark_constant_pool): Update.
10361 * tree-inline.c (remap_decls): Update.
10362 (initialize_cfun): Update.
10363 (declare_return_variable): Update.
10364 (inline_forbidden_p): Update.
10365 (expand_call_inline): Update.
10366 (declare_inline_vars): Update.
10367 (tree_function_versioning): Update.
10368 * tree-flow.h (value_histograms): New.
10369 (VALUE_HISTOGRAMS): New macro.
10370 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10372 * tree-cfg.c (set_bb_for_stmt): Update.
10373 (replace_by_duplicate_decl): Update.
10374 (move_block_to_fn): Update.
10375 (new_label_mapper): Update.
10376 (dump_function_to_file): Update.
10377 * ipa-struct-reorg.c (build_data_structure): Update.
10378 * cfgrtl.c (print_rtl_with_bb): Update.
10379 * reload1.c (reload): Update.
10381 * config/i386/i386.c (setup_incoming_varargs_64,
10382 ix86_compute_frame_layout): Update.
10383 * config/arc/arc.c (arc_output_function_epilogue): Update.
10385 2008-04-18 Marius Strobl <marius@FreeBSD.org>
10387 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10388 for FreeBSD as well.
10389 * gthr-posix95.h: Likewise.
10391 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
10393 PR rtl-optimization/35838
10394 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10395 out the byte offset of the first subreg.
10397 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
10399 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10400 to split_ti instead of three separate calls with single member arrays.
10401 (subti3 splitter): Ditto.
10402 (adddi3 splitter): Ditto with split_di.
10403 (subdi3 splitter): Ditto.
10404 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10405 two separate calls with single member arrays. Swap match_dup
10406 operands 1 and 2 to better fit into the array.
10407 (negdi2 splitter): Ditto with split_di.
10408 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
10409 two separate calls with single member arrays. Swap match_dup operands
10410 6 and 7 to better fit into the array.
10412 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
10414 * config/i386/i386.c (sse_builtin_type): New.
10415 (bdesc_sse_args): Likewise.
10416 (bdesc_sse_3arg): Removed.
10417 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10418 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10419 IX86_BUILTIN_ROUNDPS.
10420 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
10421 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
10422 IX86_BUILTIN_ROUNDPS.
10423 (ix86_expand_sse_4_operands_builtin): Removed.
10424 (ix86_expand_sse_operands_builtin): New.
10425 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10426 and CODE_FOR_sse4_1_roundps.
10427 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10428 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
10430 2008-04-17 Alan Modra <amodra@bigpond.net.au>
10433 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10434 regs before frame pop when needed. If use_backchain_to_restore_sp
10435 then load backchain into a temp reg to restore vr and vrsave. Add
10436 code to restore vr after frame pop if possible.
10438 2008-04-17 Richard Guenther <rguenther@suse.de>
10440 * tree-vn.c (expressions_equal_p): Do not check type
10441 equality or compatibility before calling operand_equal_p.
10442 * fold-const.c (operand_equal_p): Check equivalence of
10443 integer constants before bailing out due to signedness or
10444 precision differences.
10445 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10446 spurious differences in type qualification. Ignore types
10447 for COMPONENT_REFs at all.
10449 2008-04-17 Christian Bruel <christian.bruel@st.com>
10451 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10452 msw_skip comparison.
10454 2008-04-16 Jakub Jelinek <jakub@redhat.com>
10457 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10460 PR tree-optimization/35899
10461 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10462 rather than TREE_OPERAND.
10464 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
10467 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10468 temporary registers. Change operand predicate to general_operand.
10469 (remainderxf3): Ditto.
10471 2008-04-16 Richard Guenther <rguenther@suse.de>
10473 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10474 * tree-affine.c (aff_combination_expand): Look through some
10477 2008-04-15 Doug Kwan <dougkwan@google.com>
10479 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10481 * tree-pretty-print.c (dump_generic_node): Ditto.
10482 * final.c (output_addr_const): Ditto.
10483 * dwarf2out.c (output_cfi): Ditto.
10484 * c-pretty-print.c (pp_c_integer_constant): Ditto.
10485 * print-rtl.c (print_rtx): Ditto.
10486 * print-tree.c (print_node_brief, print_node): Ditto.
10487 * c-common.c (match_case_to_enum_1): Ditto.
10488 * sched-vis.c (print_value): Ditto.
10489 * config/i386/i386.c (print_operand): Cast to long unsigned int
10492 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
10493 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
10494 MS Windows VirtualProtect function.
10496 2008-04-15 Jan Hubicka <jh@suse.cz>
10498 * gengtype.c (write_root): Param_is argument is OK.
10499 * expr.c (expand_expr_real_1): Update call of get_exception_*.
10500 * function.h: Include varray.h
10501 (rtl_eh): New stucture based on except.c one.
10502 (call_site_record): New forward declaration and vector type.
10503 * calls.c (emit_call_1): Do not call
10504 note_current_region_may_contain_throw.
10505 * except.c (eh_status): Remove cur_region, try_region since they are
10507 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10508 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10509 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10510 Remove call_site_data_used, call_site_data_size.
10511 Turn call_site_record into vector in function.h.
10512 (note_current_region_may_contain_throw): Remove.
10513 (get_exception_pointer, get_exception_filter): Do not take struct
10514 function argument; update.
10515 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10516 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10517 build_post_landing_pads, dw2_build_landing_pads,
10518 sjlj_assign_call_site_values, sjlj_mark_call_sites,
10519 sjlj_emit_function_enter, sjlj_emit_function_enter,
10520 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10521 sjlj_build_landing_pads, finish_eh_generation,
10522 remove_exception_handler_label, remove_eh_handler,
10523 maybe_remove_eh_handler, add_reachable_handler,
10524 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10525 add_action_record, collect_one_action_chain, add_call_site,
10526 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10527 sjlj_output_call_site_table, output_function_exception_table,
10528 * except.h (note_current_region_may_contain_throw): Remove
10529 (get_exception_pointer, get_exception_filter): Do not take struct
10531 * Makefile.in (GTFILES): Put varargs before struct function.
10533 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10535 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10536 punt for STRING_CST.
10537 (get_constraint_for): Deal with STRING_CST here instead.
10539 2008-04-15 Richard Guenther <rguenther@suse.de>
10541 * tree-ssa-propagate.c (substitute_and_fold): Substitute
10542 statements in a basic-block with a backward walk. Do not
10543 substitute into dead statements but instead remove those.
10545 2008-04-15 Richard Guenther <rguenther@suse.de>
10547 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10548 to zero, thus disable creation of SFTs.
10550 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10552 * tree-predcom.c (suitable_reference_p): Return false if the
10553 reference can throw.
10555 2008-04-15 Jakub Jelinek <jakub@redhat.com>
10558 * c-decl.c (finish_decl): If extern or static var has variable
10559 size, set TREE_TYPE (decl) to error_mark_node.
10561 2008-04-15 Rafael Espindola <espindola@google.com>
10563 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10566 2008-04-15 Richard Guenther <rguenther@suse.de>
10568 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10569 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10570 (visit_reference_op_load): Do walk vuse-vdef chains on
10571 vn_reference_lookup.
10572 (visit_reference_op_store): But do not here.
10573 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10574 vn_reference_lookup.
10575 (vn_lookup_with_vuses): But do so here.
10577 2008-04-14 Ian Lance Taylor <iant@google.com>
10579 * fold-const.c (fold_overflow_warning): Remove assertion.
10581 2008-04-15 Ben Elliston <bje@au.ibm.com>
10583 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10584 temp1 local variables.
10586 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
10589 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10590 ".text.unlikely" section as executable.
10592 2008-04-14 James E. Wilson <wilson@tuliptree.org>
10594 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10595 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10596 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10597 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10598 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10599 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10600 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10602 2008-04-14 Ian Lance Taylor <iant@google.com>
10604 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10605 * fold-const.c (fold_comparison): If appropriate, test
10606 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10607 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10608 reassociating a pointer type.
10609 * doc/invoke.texi (Optimize Options): Document that
10610 -fstrict-overflow applies to pointer wraparound.
10612 2008-04-13 Jan Hubicka <jh@suse.cz>
10614 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10616 2008-04-12 Andrew Pinski <pinskia@gmail.com>
10618 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10619 we are going to "save the world".
10621 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
10623 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10624 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10625 operand 0 constraint, not "=".
10627 2008-04-11 James E. Wilson <wilson@tuliptree.org>
10629 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10631 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10633 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10634 of size of positions_needed * CHAR_BIT.
10636 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10638 PR middle-end/35897
10639 * dse.c (store_info): Change positions_needed to unsigned
10641 (lowpart_bitmask): New.
10642 (record_store): Cast to unsigned HOST_WIDE_INT for
10643 positions_needed. Assert width <= size of positions_needed *
10644 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
10645 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
10646 lowpart_bitmask to set mask.
10648 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
10650 * config/bfin/constraints.md: New file.
10651 * config/bfin/bfin.md: Include it.
10652 (adddi3): Use satisfies_constraint functions instead of the old macros.
10653 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10654 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10655 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10656 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10657 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10658 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10659 EXTRA_CONSTRAINT): Delete.
10660 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10661 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10663 * config/bfin/bfin.c: Include "tm-constrs.h".
10664 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10665 Use satisfies_constraint functions instead of the old macros.
10666 * doc/md.texi (Blackfin Constraints): Update file name reference.
10668 2008-04-11 Richard Guenther <rguenther@suse.de>
10670 PR tree-optimization/35869
10671 * tree-vrp.c (execute_vrp): Move switch statement update after
10672 jump threading. Schedule another cfg cleanup run.
10674 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
10677 * attribs.c (decl_attributes): Return early on errorneous node.
10679 2008-04-10 Oleg Ryjkov <olegr@google.com>
10681 * tree.h (struct tree_base): Added a new flag default_def_flag.
10682 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10684 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10686 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10688 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10691 * pa.md: Define mode iterator P. Define mode attribute dwc.
10692 (dcacheflush): Update pattern to use iterator P and attribute dwc.
10693 (icacheflush): Likewise.
10694 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10695 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10697 2008-04-11 Ben Elliston <bje@au.ibm.com>
10699 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10701 2008-04-10 Rafael Espindola <espindola@google.com>
10703 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10704 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10705 (extract_range_from_expr): The same.
10707 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10709 * config/mips/mips.md (GPR2): New mode iterator.
10710 (seq): Add comment.
10711 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10712 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10713 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10714 Rewrite these to take two modes, the mode of comparison and the
10715 mode of the destination.
10716 * config/mips/mips.c (mips_expand_scc): Instead of having
10717 paradoxical subreg as destination, expand "narrowing" scc if mode
10718 of comparison is SI and target is requested in DI mode.
10719 (mips_emit_int_order_test): Update comment. Make mode of
10720 comparison match CMP0 rather than TARGET. When creating inverse
10721 target use mode of TARGET.
10723 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10725 * gcov-dump.c (tag_summary): Only print summaries for the first
10726 GCOV_COUNTERS_SUMMABLE counters.
10728 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
10730 * config/i386/i386.md (absneg): New code iterator.
10731 (absnegprefix): New code attribute.
10732 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10733 patterns using absneg code iterator.
10734 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10735 using absneg code iterator.
10736 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10737 *neg<mode>2 patterns using absneg code iterator.
10738 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10739 *negextendsfdf2 patterns using absneg code iterator.
10740 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10741 *negextendsfxf2 patterns using absneg code iterator.
10742 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10743 *negextendsfdf2 patterns using absneg code iterator.
10744 * config/i386/sse.md (<code><mode>2): Macroize expander from
10745 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10747 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
10749 * config/s390/s390.h: Remove the remains of the recent search
10750 & replace action of current_function_outgoing_args_size.
10752 2008-04-10 Ira Rosen <irar@il.ibm.com>
10754 PR tree-optimization/35821
10755 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10756 NEW_STMT_LIST is not NULL.
10758 2008-04-09 David Edelsohn <edelsohn@gnu.org>
10761 * toplev.c (process_options): Remove -ffunction-sections debugging
10764 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
10766 PR middle-end/PR28690
10767 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10768 than gen_rtx_fmt_ee to perform more canonicalizations.
10770 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10773 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10775 2008-04-09 Richard Guenther <rguenther@suse.de>
10777 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10778 (dump_function_to_file): Dump function arguments with types.
10780 2008-04-08 Richard Guenther <rguenther@suse.de>
10782 * fold-const.c (fold_widened_comparison): Do not allow
10783 sign-changes that change the result.
10785 2008-04-08 Janis Johnson <janis187@us.ibm.com>
10788 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10789 kinds of indirect references.
10791 2008-04-08 David Edelsohn <edelsohn@gnu.org>
10793 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10794 GNU Fortran language string.
10796 2008-04-08 Rafael Espindola <espindola@google.com>
10798 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10799 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10800 * tree.h (tree_call_nonnegative_warnv_p): New.
10802 2008-04-08 Jan Hubicka <jh@suse.cz>
10804 * function.c (free_after_compilation): Clear out regno_reg_rtx
10807 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
10810 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10812 PR middle-end/PR28690
10813 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10814 same precedence as REG_POINTER and MEM_POINTER operands.
10816 2008-04-08 Richard Guenther <rguenther@suse.de>
10818 PR middle-end/35834
10819 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10820 for adding index to base.
10822 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
10824 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10825 (MINGW_ENABLE_EXECUTE_STACK): New.
10826 (IN_LIBGCC2): For libgcc include windows.h file for
10827 function declarations.
10829 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
10831 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10832 and tem2 if tem1 is not a REG or MULT.
10834 2008-04-08 Jan Hubicka <jh@suse.cz>
10836 * function.h (incomming_args): Break out of struct function.
10837 (function_subsections): Break out of struct function.
10838 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10839 return_rtx and hard_reg_initial_vals from struct function.
10840 Kill inl_max_label_num.
10841 (current_function_pops_args, current_function_args_info,
10842 current_function_args_size, current_function_args_size,
10843 current_function_pretend_args_size,
10844 current_function_outgoing_args_size,
10845 current_function_internal_arg_pointer, current_function_return_rtx):
10846 Kill compatibility accestor macros.
10847 * builtins.c (expand_builtin_apply_args_1): Update.
10848 (expand_builtin_next_arg): Update.
10849 * df-scan.c (df_get_call_refs): Update.
10850 * dbxout.c (dbxout_function_end): Update.
10851 * dwarf2out.c (dwarf2out_switch_text_section): Update.
10852 (output_line_info): Update.
10853 (secname_for_decl): Update.
10854 (dwarf2out_var_location): Update.
10855 * function.c (free_after_compilation): Update.
10856 (assign_parm_find_stack_rtl): Update.
10857 (assign_parms): Update.
10858 (expand_dummy_function_end): Update.
10859 (expand_function_end): Update.
10860 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10861 (expand_call): Update.
10862 (emit_library_call_value_1): Update.
10863 (store_one_arg): Update.
10864 * varasm.c (initialize_cold_section_name): Update.
10865 (unlikely_text_section): Update.
10866 (unlikely_text_section_p): Update.
10867 (assemble_start_function): Update.
10868 (assemble_end_function): Update.
10869 (default_section_type_flags): Update.
10870 (switch_to_section): Update.
10871 * integrate.c (set_decl_abstract_flags): Update.
10872 (get_hard_reg_initial_val): Update.
10873 (has_hard_reg_initial_val): Update.
10874 (allocate_initial_values): Update.
10875 * resource.c (init_resource_info): Update.
10876 * config/alpha/alpha.c (NUM_ARGS): Update.
10877 (direct_return): Update.
10878 (alpha_va_start): Update.
10879 (alpha_sa_size): Update.
10880 (alpha_initial_elimination_offset): Update.
10881 (alpha_expand_prologue): Update.
10882 (alpha_start_function): Update.
10883 (alpha_expand_epilogue): Update.
10884 (unicosmk_initial_elimination_offset):
10885 * config/alpha/alpha.md (call expander): Update.
10886 * config/s390/s390.c (s390_register_info): Update.
10887 (s390_register_info): Update.
10888 (s390_frame_info): Update.
10889 (s390_initial_elimination_offset): Update.
10890 (s390_build_builtin_va_list): Update.
10891 (s390_va_start): Update.
10892 * config/spu/spu.c (direct_return): Update.
10893 (spu_expand_prologue): Update.
10894 (spu_initial_elimination_offset): Update.
10895 (spu_build_builtin_va_list): Update.
10896 (spu_va_start): Update.
10897 * config/sparc/sparc.c (sparc_init_modes): Update.
10898 (sparc_compute_frame_size): Update.
10899 (function_value): Update.
10900 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10901 * config/i386/i386.md (return expander): Update.
10902 * config/i386/i386.c (ix86_va_start): Update.
10903 (ix86_can_use_return_insn_p): Update.
10904 (ix86_compute_frame_layout): Update.
10905 (ix86_expand_epilogue): Update.
10906 * config/sh/sh.c (output_stack_adjust): Update.
10907 (calc_live_regs): Update.
10908 (sh_expand_prologue): Update.
10909 (sh_builtin_saveregs): Update.
10910 (sh_va_start): Update.
10911 (initial_elimination_offset): Update.
10912 (sh_allocate_initial_value): Update.
10913 (sh_function_ok_for_sibcall): Update.
10914 (sh_get_pr_initial_val): Update.
10915 * config/sh/sh.md (return expander): Update.
10916 * config/avr/avr.c (frame_pointer_required_p): UPdate.
10917 * config/crx/crx.c (crx_compute_frame): UPdate.
10918 (crx_initial_elimination_offset): UPdate.
10919 * config/xtensa/xtensa.c (compute_frame_size): Update
10920 (xtensa_builtin_saveregs): Update.
10921 (xtensa_va_start): Update.
10922 (order_regs_for_local_alloc): Update.
10923 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10924 (xstormy16_expand_builtin_va_start): Update.
10925 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10926 * config/m68hc11/m68hc11.md (return expanders): Update.
10927 * config/m68hc11/m68hc11.c (expand_prologue): Update.
10928 (expand_epilogue): Update.
10929 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10930 (cris_simple_epilogue): Update.
10931 (cris_expand_prologue): Update.
10932 (cris_expand_epilogue): Update.
10933 * config/iq2000/iq2000.c (iq2000_va_start): Update.
10934 (compute_frame_size): Update.
10935 * config/mt/mt.c (mt_compute_frame_size): Update.
10936 * config/mn10300/mn10300.c (expand_prologue): Update.
10937 (expand_epilogue): Update.
10938 (initial_offset): Update.
10939 (mn10300_builtin_saveregs):
10940 * config/mn10300/mn10300.md (return expander): Update.
10941 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10942 (ia64_initial_elimination_offset): Update.
10943 (ia64_initial_elimination_offset): Update.
10944 (ia64_expand_prologue): Update.
10945 * config/m68k/m68k.md (return expander): Update.
10946 * config/rs6000/rs6000.c (rs6000_va_start): Update.
10947 (rs6000_stack_info): Update.
10948 * config/mcore/mcore.c (layout_mcore_frame): Update.
10949 (mcore_expand_prolog): Update.
10950 * config/arc/arc.c (arc_compute_frame_size): Update.
10951 * config/score/score3.c (score3_compute_frame_size): Update.
10952 * config/score/score7.c (score7_compute_frame_size): Update.
10953 * config/arm/arm.c (use_return_insn): Update.
10954 (thumb_find_work_register): Update.
10955 (arm_compute_save_reg_mask): Update.
10956 (arm_output_function_prologue): Update.
10957 (arm_output_epilogue): Update.
10958 (arm_size_return_regs): Update.
10959 (arm_get_frame_offsets): Update.
10960 (arm_expand_prologue): Update.
10961 (thumb_exit): Update.
10962 (thumb_unexpanded_epilogue): Update.
10963 (thumb1_output_function_prologue): Update.
10964 * config/pa/pa.md (return expander): Update.
10965 * config/pa/pa.c (compute_frame_size): Update.
10966 (hppa_builtin_saveregs): Update.
10967 * config/mips/mips.c (mips_va_start): Update.
10968 (mips16_build_function_stub): Update.
10969 (mips_compute_frame_info): Update.
10970 (mips_restore_gp): Update.
10971 (mips_output_function_prologue): Update.
10972 (mips_expand_prologue): Update.
10973 * config/v850/v850.c (compute_frame_size): Update.
10974 (expand_prologue): * config/mmix/mmix.c (along): update.
10975 (mmix_initial_elimination_offset): update.
10976 (mmix_reorg): update.
10977 (mmix_use_simple_return): update.
10978 (mmix_expand_prologue): update.
10979 (mmix_expand_epilogue): Update.
10980 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10981 (emit_link_insn): Update.
10983 2008-04-08 Anatoly Sokolov <aesok@post.ru>
10985 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10986 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10988 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10991 2008-04-07 Jan Hubicka <jh@suse.cz>
10993 * function.h (rtl): Rename to x_rtl.
10994 (crtl): New define.
10995 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10996 frame_offset, stack_check_probe_note, arg_pointer_save_area,
10997 used_temp_slots avail_temp_slots, temp_slot_level,
10998 nonlocal_goto_handler_labels): Update accesstors.
10999 (rtl): New global variable.
11000 (struct function): Move some fileds to rtl_data.
11001 (get_arg_pointer_save_area): Update prototype.
11002 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11003 get_arg_pointer_save_area.
11004 * expr.c (init_expr): Update
11005 * function.c (get_frame_size): Update
11006 (assign_stack_local): Update
11007 (expand_function_end): Update.
11008 (get_art_pointer_save_area): Update
11010 * emit-rtl.c (rtl): Declare.
11011 (regno_reg_rtx): Declare.
11012 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11014 (gen_reg_rtx): Update.
11015 * varasm.c (n_deferred_constatns): Update accestor.
11016 (init_varasm_status): Do not allocate varasm_status.
11017 (force_const_mem, get_pool_size, output_constant_pool): Update.
11018 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11019 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11020 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11021 * sparc/sparc.h (INIT_EXPANDERS): Update.
11022 * ia64/ia64.h (INIT_EXPANDERS): Update.
11024 2008-04-07 James E. Wilson <wilson@tuliptree.org>
11026 * reload.c (push_secondary_reload): Add missing break to for loop.
11028 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11030 PR middle-end/PR28690
11031 * rtlanal.c: Update copyright years.
11032 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11033 as REG_POINTER and MEM_POINTER operands.
11034 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11035 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11036 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11037 * gcse.c: Update copyright years.
11038 (pre_delete): Call gen_reg_rtx_and_attrs.
11039 (hoist_code): Likewise.
11040 (build_store_vectors): Likewise.
11041 (delete_store): Likewise.
11042 * loop-invariant.c (move_invariant_reg): Likewise.
11043 Update copyright years.
11045 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
11047 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11048 control string instead of quoted.
11050 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
11052 * doc/rtl.texi: Rewrite of subreg section.
11054 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
11057 * config/i386/i386.c (legitimize_pic_address): Add treating
11058 of dllimport SYM_REF's.
11059 (legitimize_dllimport_symbol): Add prototype.
11061 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11063 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
11064 reference in constructor with non self-referential type.
11066 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11068 Removal of Return with Depressed Stack Pointer support
11069 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11070 (ECF_SP_DEPRESSED): Likewise.
11071 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11072 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11073 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11074 (expand_call): Do not test ECF_SP_DEPRESSED.
11075 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11076 * function.c (keep_stack_depressed): Delete.
11077 (handle_epilogue_set): Likewise.
11078 (update_epilogue_consts): Likewise.
11079 (emit_equiv_load): Likewise.
11080 (thread_prologue_and_epilogue_insns): Remove support for Return with
11081 Depressed Stack Pointer.
11082 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11084 2008-04-06 Richard Guenther <rguenther@suse.de>
11086 PR tree-optimization/35400
11087 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11088 information from SSA_NAMEs.
11090 2008-04-06 Anatoly Sokolov <aesok@post.ru>
11092 * config/avr/avr.h (avr_mega_p): Remove declaration.
11093 (AVR_MEGA): Remove macro.
11094 * config/avr/avr.c (avr_mega_p): Remove variable.
11095 (avr_override_options): Remove inicializion of avr_mega_p.
11096 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11097 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11098 (avr_jump_mode): (Ditto.).
11099 (avr_output_progmem_section_asm_op): (Ditto.).
11100 (avr_asm_init_sections): (Ditto.).
11101 (avr_asm_init_sections): (Ditto.).
11102 (avr_rtx_costs): (Ditto.).
11103 * config/avr/avr.md: (Ditto.).
11104 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11107 2008-04-06 Richard Guenther <rguenther@suse.de>
11109 PR tree-optimization/35842
11110 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11111 is_gimple_invariant_address.
11113 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11115 * gcc.c (default_compilers): Sync Fortran extensions list with
11116 that in fortran/lang-specs.h.
11117 * doc/invoke.texi: Likewise.
11118 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11119 * dwarf2out.c (gen_compile_unit_die): Likewise.
11121 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
11123 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11125 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
11128 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11129 attribute is used for nested functions.
11131 2008-04-05 Jan Hubicka <jh@suse.cz>
11133 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11135 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11137 (dump_files): Update.
11138 (enable_rtl_dump_file): Do not accept letter argument.
11139 * tree-pass.h (dump_file_info): Remove letter argument.
11140 * toplev.c (decode_d_option): Update -da handling.
11141 * toplev.h (enable_rtl_dump_file): Update prototype.
11142 * passes.c (register_one_dump_file): Do not accept IPA argument; work
11143 it out based on pass type.
11144 (register_dump_files_1): Likewise.
11145 (init_optimization_passes): Update register_one_dump_file calls.
11146 (execute_one_pass): Sanity check that IPA passes are called at IPA
11147 level and RTL passes at RTL level.
11148 (execute_pass_list): IPA pass can not be after or subpass of
11150 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11151 disallov RTL subpasses of IPA subpasses.
11153 2008-04-05 Ben Elliston <bje@au.ibm.com>
11155 * tree-cfg.c (need_fake_edge_p): Return false for calls to
11156 builtins that return exactly once and do not throw. Cache call to
11159 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11161 PR rtl-optimization/34916
11162 PR middle-end/35519
11163 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11164 between instruction pairs.
11166 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
11168 * doc/invoke.texi: Document -mbitops for SH.
11169 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11170 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11171 * config/sh/sh.c (print_operand): Add %t operand code.
11172 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11173 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11174 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11175 (extendqihi2): Likewise.
11176 (movqi_i): Likewise.
11177 (insv): Use bset, bclr and bst instructions for SH2A if possible.
11178 (extv): Use bld instruction for SH2A if possible.
11180 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11181 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11182 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11183 (bset.b, bclr.b): Define peepholes.
11184 * config/sh/sh.opt (mbitops): New option.
11186 2008-04-04 Janis Johnson <janis187@us.ibm.com>
11189 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11190 and view convert expression.
11192 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11195 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11197 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
11199 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11201 * config/i386/cpuid.h (bit_AES): New.
11202 (bit_PCLMUL): Likewise.
11204 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11205 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
11206 SSE2 if AES or PCLMUL is enabled.
11207 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11208 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11209 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11210 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11211 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11212 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11213 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11214 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11215 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11216 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11217 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11218 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11219 __builtin_ia32_aeskeygenassist128 and
11220 __builtin_ia32_pclmulqdq128.
11221 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11222 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11223 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
11225 * config/i386/i386.h (TARGET_AES): New.
11226 (TARGET_PCLMUL): Likewise.
11227 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11229 * config/i386/i386.md (UNSPEC_AESENC): New.
11230 (UNSPEC_AESENCLAST): Likewise.
11231 (UNSPEC_AESDEC): Likewise.
11232 (UNSPEC_AESDECLAST): Likewise.
11233 (UNSPEC_AESIMC): Likewise.
11234 (UNSPEC_AESKEYGENASSIST): Likewise.
11235 (UNSPEC_PCLMUL): Likewise.
11237 * config/i386/i386.opt (maes): New.
11238 (mpclmul): Likewise.
11240 * config/i386/sse.md (aesenc): New pattern.
11241 (aesenclast): Likewise.
11242 (aesdec): Likewise.
11243 (aesdeclast): Likewise.
11244 (aesimc): Likewise.
11245 (aeskeygenassist): Likewise.
11246 (pclmulqdq): Likewise.
11248 * config/i386/wmmintrin.h: New.
11250 * doc/extend.texi: Document AES and PCLMUL built-in function.
11252 * doc/invoke.texi: Document -maes and -mpclmul.
11254 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
11256 * function.c (free_after_parsing): Replace with
11257 cxx_push_function_context from C++ front-end.
11258 (allocate_struct_function): Don't call langhook.
11259 * langhooks.h (struct lang_hooks_for_functions): Delete.
11260 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11262 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11263 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11264 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11265 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11266 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11267 remove LANG_HOOKS_FUNCTION_INITIALIZER.
11268 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11270 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11271 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11273 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11276 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11279 2008-04-04 Richard Guenther <rguenther@suse.de>
11281 PR middle-end/35823
11282 * fold-const.c (optimize_minmax_comparison): Use the correct
11283 type for the constant in the simplified comparison.
11285 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
11287 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11288 Pass L2 size as "--param l2-cache-size" to the compiler.
11289 (decode_l2_cache): New function to decode L2 cache parameters using
11290 0x8000006 extended cpuid function.
11291 (detect_caches_amd): Determine parameters of L2 cache using
11292 decode_l2_caches function.
11293 (decode_caches_intel): Decode L2 cache parameters.
11294 (detect_caches_intel): Determine L2 cache parameters using
11295 decode_caches_intel and decode_l2_caches functions.
11297 2008-04-03 Bob Wilson <bob.wilson@acm.org>
11299 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11300 secondary input reload for subword loads from the constant pool.
11302 2008-04-03 Janis Johnson <janis187@us.ibm.com>
11305 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11306 constants of the appropriate size for runtime calculations.
11309 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11310 decimal-float literal constant zero.
11312 2008-04-03 Jakub Jelinek <jakub@redhat.com>
11315 * c-parser.c (c_parser_omp_atomic): Call
11316 default_function_array_conversion on the RHS.
11318 PR middle-end/35818
11319 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11320 call is_variable_sized if decl has incomplete type.
11322 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
11324 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11326 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
11328 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11330 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11331 (sgt<u>): Merge sgt and sgtu into new expander.
11332 (sgt, sgtu): Remove expanders.
11333 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11334 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11335 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11336 *sgtu_<mode>_mips16 into new pattern.
11337 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11338 (sge<u>): Merge sge and sgeu into new expander.
11339 (sge, sgeu): Remove expanders.
11340 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11342 (*sge_<mode>, second *sge_<mode>): Remove patterns.
11343 (slt<u>): Merge slt and sltu into new expander.
11344 (slt, sltu): Remove expanders.
11345 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11346 (*slt_<mode>, *sltu_<mode>): Remove patterns.
11347 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11348 *sltu_<mode>_mips16 into new pattern.
11349 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11350 (sle<u>): Merge sle and sleu into new expander.
11351 (sle, sleu): Remove expanders.
11352 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11353 (*sle_<mode>, *sleu_<mode>): Remove patterns.
11354 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11355 *sleu_<mode>_mips16 into new pattern.
11356 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11358 2008-04-03 Jan Hubicka <jh@suse.cz>
11360 PR tree-optimization/35795
11361 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11362 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11363 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11364 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11365 * score/score3.c (score3_output_mi_thunk): Likewise.
11366 * score/score7.c (score7_output_mi_thunk): Likewise.
11367 * mips/mips.c (mips_output_mi_thunk): Likewise.
11369 2008-04-03 Richard Guenther <rguenther@suse.de>
11371 * tree-vrp.c (extract_range_from_unary_expr): Handle all
11372 conversions. Simplify code.
11374 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11376 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11378 2008-04-03 Tom Tromey <tromey@redhat.com>
11379 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11381 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11382 * config/bfin/t-bfin-linux (generated_files): Add
11383 linux-sysroot-suffix.h.
11384 * doc/install.texi (Prerequisites): Require make 3.80.
11385 * doc/sourcebuild.texi (Front End Directory): Document new
11387 * Makefile.in (generated_files): New variable.
11388 (ALL_HOST_OBJS): New variable.
11389 ($(ALL_HOST_OBJS)): New target.
11391 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11393 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11394 (remap_block): Call id->transform_lang_insert_block instead
11396 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11397 Set id.transform_lang_insert_block to NULL.
11398 (clone_body): Move to cp/optimize.c
11399 * tree-inline.h (struct copy_body_data): Change
11400 transform_lang_insert_block to function pointer.
11401 (copy_generic_body, copy_decl_no_change): Export.
11402 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11403 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11404 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11406 * c-tree.h (insert_block): Kill.
11407 * c-decl.c (insert_block): Kill.
11409 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11411 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11412 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11413 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11415 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11416 argument, call {push,pop}_function_context from here.
11417 * c-parser.c: Use c_{push,pop}_function_context.
11419 * function.c (push_function_context_to): Move meat ...
11420 (push_function_context): ... here. Simplify.
11421 * function.c (pop_function_context_from): Move meat ...
11422 (pop_function_context): ... here. Simplify.
11423 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11425 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11426 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11427 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11428 * tree.h (push_function_context_to, pop_function_context_from): Remove.
11430 2008-04-03 Ben Elliston <bje@au.ibm.com>
11432 * expmed.c (extract_force_align_mem_bit_field): Remove.
11434 2008-04-03 Richard Guenther <rguenther@suse.de>
11436 PR middle-end/35800
11437 * expr.h (try_casesi): Adjust prototype.
11438 * expr.c (try_casesi): Take fallback label as extra parameter.
11439 Use that for gen_casesi if default_label is NULL.
11440 * stmt.c (expand_case): Pass fallback label to try_casesi,
11441 make sure to fill gaps with a fallback label if default_label
11444 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
11447 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11449 2008-04-03 Ben Elliston <bje@au.ibm.com>
11451 * expmed.c (extract_split_bit_field): Remove if (0) code.
11452 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11453 (do_ds_constraint): Likewise.
11455 2008-04-02 Joseph Myers <joseph@codesourcery.com>
11457 * doc/cppopts.texi (-dU): Document.
11458 * c-common.h (flag_dump_macros): Update comment.
11459 * c-opts.c (handle_OPT_d): Handle -dU.
11460 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11461 dump_queued_macros, cb_used_define, cb_used_undef): New.
11462 (init_pp_output): Handle -dU.
11463 (cb_line_change): Call dump_queued_macros.
11464 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11466 2008-04-02 Anatoly Sokolov <aesok@post.ru>
11468 * config/avr/predicates.md (io_address_operand): New predicate.
11469 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11470 * config/avr/avr.c (avr_io_address_p): Remove function.
11471 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11472 'avr_io_address_p' function.
11473 (out_movhi_r_mr): (Ditto.).
11474 (out_movqi_mr_r): (Ditto.).
11475 (out_movhi_mr_r): (Ditto.).
11476 (avr_address_cost): (Ditto.).
11478 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
11480 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11481 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11482 in 32bit mode when XMM registers are available to avoid store
11484 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11485 corresponding post-reload splitters.
11487 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11489 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11490 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
11491 __builtin_ia32_roundss.
11492 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11493 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11494 __builtin_ia32_roundss.
11495 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11496 IX86_BUILTIN_SHUFPD here.
11498 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11500 * config/i386/i386.md (plogic): New.
11501 (plogicprefix): Likewise.
11503 * config/i386/mmx.md (mmx_<code><mode>3): New.
11504 (mmx_and<mode>3): Removed.
11505 (mmx_ior<mode>3): Likewise.
11506 (mmx_xor<mode>3): Likewise.
11508 * config/i386/sse.md (<code><mode>3): New.
11509 (*<code><mode>3): Likewise.
11510 (*<code><mode>3): Likewise.
11511 (<code><mode>3): Likewise.
11512 (*sse_<code><mode>3): Likewise.
11513 (*sse2_<code><mode>3): Likewise.
11514 (<code>tf3): Likewise.
11515 (*<code>tf3): Likewise.
11516 (and<mode>3): Likewise.
11517 (*and<mode>3): Likewise.
11518 (ior<mode>3): Removed.
11519 (*ior<mode>3): Likewise.
11520 (xor<mode>3): Likewise.
11521 (*xor<mode>3): Likewise.
11522 (*and<mode>3): Likewise.
11523 (*ior<mode>3): Likewise.
11524 (*xor<mode>3): Likewise.
11525 (and<mode>3): Likewise.
11526 (*sse_and<mode>3): Likewise.
11527 (*sse2_and<mode>3): Likewise.
11528 (andtf3): Likewise.
11529 (*andtf3): Likewise.
11530 (ior<mode>3): Likewise.
11531 (*sse_ior<mode>3): Likewise.
11532 (*sse2_ior<mode>3): Likewise.
11533 (iortf3): Likewise.
11534 (*iortf3): Likewise.
11535 (xor<mode>3): Likewise.
11536 (*sse_xor<mode>3): Likewise.
11537 (*sse2_xor<mode>3): Likewise.
11538 (xortf3): Likewise.
11539 (*xortf3): Likewise.
11541 2008-04-02 Richard Guenther <rguenther@suse.de>
11543 PR tree-optimization/14495
11544 PR tree-optimization/34793
11545 * tree-vrp.c (struct switch_update): New structure.
11546 (to_remove_edges, to_update_switch_stmts): New VECs.
11547 (simplify_switch_using_ranges): New function. Remove not taken
11548 case labels and edges.
11549 (simplify_stmt_using_ranges): Call it.
11550 (identify_jump_threads): Mark edges we have queued for removal
11551 so we don't thread them.
11552 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11554 * tree-cfg.c (group_case_labels): Deal with missing default label.
11555 (tree_verify_flow_info): Allow missing default label.
11556 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11557 (emit_case_nodes): Likewise.
11558 (expand_case): Do not rely on the default label to be present.
11559 * expr.c (try_casesi): Deal with NULL default_label.
11560 (do_tablejump): Likewise.
11562 2008-04-02 Richard Guenther <rguenther@suse.de>
11564 PR tree-optimization/14495
11565 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11566 SWITCH_EXPR here ...
11567 (vrp_visit_switch_stmt): ... but here (new function).
11568 (find_case_label_index): New helper function.
11569 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11571 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11573 * fwprop.c: Fix ISO-C99ism.
11575 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11578 * Makefile.in (objdir): Set it here.
11579 * configure.ac: Not here. Find dynamic linker characteristics.
11580 * exec-tool.in: Use them.
11581 * aclocal.m4: Regenerate.
11582 * configure: Regenerate.
11584 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11586 * expr.c (expand_var): Delete it.
11587 * expr.h (expand_var): Delete prototype.
11588 * function.c (expand_function_start): Use expand_decl instead.
11589 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11592 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
11594 PR rtl-optimization/35542
11595 * fwprop.c (forward_propagate_and_simplify): Replace
11596 loc_reg_mentioned_in_p with reg_mentioned_p.
11598 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11600 PR rtl-optimization/35281
11601 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11602 (propagate_rtx_1): Handle PR_HANDLE_MEM.
11603 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11604 (varying_mem_p): Move above propagate_rtx.
11605 (all_uses_available_at): Do not check MEMs.
11607 2008-04-02 Rafael Espindola <espindola@google.com>
11609 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11610 (register_edge_assert_for_2): Split the cond argument.
11611 (register_edge_assert_for_1): Adjust for the change in
11612 register_edge_assert_for_2.
11613 (register_edge_assert_for): Split the cond argument.
11614 (find_switch_asserts): Adjust for the change in
11615 register_edge_assert_for.
11617 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
11619 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11620 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11621 offsets for 64-bit mingw.
11622 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11623 abi for x86_64-pc-mingw.
11625 2008-04-02 Richard Guenther <rguenther@suse.de>
11627 * tree-vrp.c (extract_range_from_assert): Make sure to not
11628 produce range min/max with TREE_OVERFOW set.
11629 If merging a anti-range and a range keep the anti-range if
11630 the range covers all values of the type.
11631 (register_edge_assert_for_2): Only allow sign-changing
11632 conversions in detecting canonical range checks. Also
11633 register an assert for the unsigned name if useful.
11635 PR tree-optimization/35787
11636 * tree-vrp.c (vrp_val_max): New function.
11637 (vrp_val_min): Likewise.
11638 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11639 (vrp_val_is_min): Likewise.
11640 (supports_overflow_infinity): Use vrp_val_{min,max}.
11641 (negative_overflow_infinity): Likewise.
11642 (positive_overflow_infinity): Likewise.
11643 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11644 (is_positive_overflow_infinity): Likewise.
11645 (is_overflow_infinity): Likewise.
11646 (avoid_overflow_infinity): Use vrp_val_{min,max} and
11647 vrp_val_is_{min,max}.
11648 (set_and_canonicalize_value_range): Canonicalize anti-ranges
11649 to ranges if possible. Avoid empty ranges.
11651 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11653 PR middle-end/35705
11654 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11655 the expression is a function address.
11657 2008-04-01 George Helffrich <george@gcc.gnu.org>
11659 PR fortran/35154, fortran/23057
11660 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11661 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11662 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11663 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11665 (dbxout_syms): Check for COMMON-based symbol and wrap in
11666 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11667 in bracket for efficiency.
11669 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11670 using DW_TAG_common_block + member offset.
11671 (add_pubname_string): New function.
11672 (dw_expand_expr): New function to find block name and offset for
11674 (common_check): New function to check whether symbol in Fortran COMMON.
11675 (gen_variable_die): If COMMON, use DW_TAG_common_block.
11677 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
11680 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11682 2008-04-02 Ben Elliston <bje@au.ibm.com>
11684 * config/v850/v850.md (casesi): Remove if (0) code.
11685 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11686 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11688 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
11690 * config/i386/i386.md (rex64suffix): New mode attribute.
11691 (floathi<mode>2): Disable expander for SSE math.
11692 (*floathi<mode>2_1): New insn insn_and_split pattern.
11693 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11694 corresponding post-reload splitters.
11695 (*floathi<mode>2_i387): New macroized insn pattern.
11696 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11697 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11698 insn_and_split pattern.
11699 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11700 New macroized instruction patterns and corresponding post-reload
11702 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11703 and corresponding post-reload splitters.
11704 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11705 New macroized instruction patterns.
11706 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11707 macroized instruction patterns and corresponding post-reload splitters.
11708 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11709 corresponding post-reload splitters.
11710 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11711 New macroized instruction patterns.
11712 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11713 corresponding post-reload splitters.
11714 (*floatsi<mode>2_i387): New macroized instruction patterns.
11716 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
11718 * config/i386/i386.md (smaxmin): New.
11719 (umaxmin): Likewise.
11720 (maxminiprefix): Likewise.
11721 (maxminfprefix): Likewise.
11722 (<code><mode>3): Likewise.
11723 (smin<mode>3): Removed.
11724 (smax<mode>3): Likewise.
11726 * config/i386/mmx.md (mmx_<code>v2sf3): New.
11727 (mmx_<code>v4hi3): Likewise.
11728 (mmx_<code>v8qi3): Likewise.
11729 (mmx_smaxv2sf3): Removed.
11730 (mmx_sminv2sf3): Likewise.
11731 (mmx_umaxv8qi3): Likewise.
11732 (mmx_smaxv4hi3): Likewise.
11733 (mmx_uminv8qi3): Likewise.
11734 (mmx_sminv4hi3): Likewise.
11736 * config/i386/sse.md (<addsub><mode>3): New.
11737 (*<addsub><mode>3): Likewise.
11738 (<sse>_vm<addsub><mode>3): Likewise.
11739 (<maxmin><mode>3): Likewise.
11740 (*<maxmin><mode>3_finite): Likewise.
11741 (*<maxmin><mode>3): Likewise.
11742 (<sse>_vm<maxmin><mode>3): Likewise.
11743 (sse3_h<addsub>v4sf3): Likewise.
11744 (sse3_h<addsub>v2df3): Likewise.
11745 (<maxmin>v16qi3): Likewise.
11746 (*<maxmin>v16qi3): Likewise.
11747 (<maxmin>v8hi3): Likewise.
11748 (*<maxmin>v8hi3): Likewise.
11749 (*sse4_1_<maxmin><mode>3): Likewise.
11750 (*sse4_1_<maxmin><mode>3): Likewise.
11751 (add<mode>3): Removed.
11752 (*add<mode>3): Likewise.
11753 (<sse>_vmadd<mode>3): Likewise.
11754 (sub<mode>3): Likewise.
11755 (*sub<mode>3): Likewise.
11756 (<sse>_vmsub<mode>3): Likewise.
11757 (smin<mode>3): Likewise.
11758 (*smin<mode>3_finite): Likewise.
11759 (*smin<mode>3): Likewise.
11760 (<sse>_vmsmin<mode>3): Likewise.
11761 (smax<mode>3): Likewise.
11762 (*smax<mode>3_finite): Likewise.
11763 (*smax<mode>3): Likewise.
11764 (<sse>_vmsmax<mode>3): Likewise.
11765 (sse3_haddv4sf3): Likewise.
11766 (sse3_haddv2df3): Likewise.
11767 (sse3_hsubv4sf3): Likewise.
11768 (sse3_hsubv2df3): Likewise.
11769 (umaxv16qi3): Likewise.
11770 (*umaxv16qi3): Likewise.
11771 (smaxv8hi3): Likewise.
11772 (*smaxv8hi3): Likewise.
11773 (*sse4_1_smax<mode>3): Likewise.
11774 (*sse4_1_umax<mode>3): Likewise.
11775 (uminv16qi3): Likewise.
11776 (*uminv16qi3): Likewise.
11777 (sminv8hi3): Likewise.
11778 (*sminv8hi3): Likewise.
11779 (*sse4_1_smin<mode>3): Likewise.
11780 (*sse4_1_umin<mode>3): Likewise.
11782 2008-04-01 Rafael Espindola <espindola@google.com>
11784 * tree-cfg.c (verify_expr): remove in_phi.
11785 (verify_stmt): Don't call walk_tree with verify_expr. Use
11786 is_gimple_min_invariant instead of is_gimple_val.
11788 2008-04-01 Joseph Myers <joseph@codesourcery.com>
11790 * doc/include/gpl_v3.texi: Update for manpage generation.
11791 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11793 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11794 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11795 gpl_v3.texi instead of gpl.texi.
11798 2008-04-01 Jakub Jelinek <jakub@redhat.com>
11801 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11803 2008-04-01 Rafael Espindola <espindola@google.com>
11805 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11806 (extract_code_and_val_from_cond): Use
11807 extract_code_and_val_from_cond_with_ops.
11809 2008-04-01 Jan Hubicka <jh@suse.cz>
11811 * function.c (free_after_compilation): Free epilogue_delay_list.
11812 (prepare_function_start): Assert that previous compilation was freed.
11814 2008-04-01 Jan Hubicka <jh@suse.cz>
11815 Jim Wilson <wilson@tuliptree.org>
11816 Andreas Tobler <andreast@gcc.gnu.org>
11818 PR middle-end/35781
11819 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11820 rtl.emit instead cfun->emit.
11821 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11822 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11824 2008-04-01 Ben Elliston <bje@au.ibm.com>
11826 * doc/c-tree.texi (Function Basics): Fix grammatical error.
11828 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
11830 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11832 (fprofile-use): Add var flag_profile_use
11833 * coverage.c (coverage_begin_output): Do not open a gcno file for
11834 output only if -ftest-coverage is set.
11835 Do not add getpwd() to gcda file path.
11836 (build_gcov_info): Check the new flag
11837 flag_profile_datafile_relative_path.
11838 (coverage_init): Use profile_data_prefix.
11839 Read profile counter only if flag_profile_use is set.
11840 * opts.c (common_handle_option): New option fprofile-use=,
11841 fprofile-dir=, fprofile-generate=.
11842 * toplev.c (profile_data_prefix): New variable definition.
11843 * toplev.h (profile_data_prefix): New declaration.
11844 * doc/invoke.tex (Option Summary, Optimization Options):
11847 2008-03-31 James E. Wilson <wilson@tuliptree.org>
11849 * varasm.c (output_constant_pool_1): In LABEL_REF check,
11850 use tmp consistently.
11853 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11854 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11855 UNSPEC_FR_RECIP_APPROX_RES.
11856 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11858 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
11861 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11863 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
11865 PR middle-end/30186
11866 * fold-const.c (fold_indirect_ref_1): Support accessing non first
11867 element of the vector via a pointer.
11869 2008-03-31 Ian Lance Taylor <iant@google.com>
11871 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11873 2008-03-31 Jan Hubicka <jh@suse.cz>
11875 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11876 get_arg_pointer_save_area.
11877 * expr.c (init_expr): Just clear out rtl.expr.
11878 * function.c (free_after_compilation): Clear out whole RTL structure.
11879 (get_func_frame_size): Merge into ...
11880 (get_frame_size): ... this one.
11881 (assign_stack_local_1): Merge into ...
11882 (assign_stack_local): ... this one.
11883 (expand_function_end): Update call of get_arg_pointer_save_area.
11884 (get_art_pointer_save_area): Remove cfun argument.
11885 * function.h (emit_status): regno_pointer_align does not need length
11886 attribute. Move x_regno_reg_rtx to ...
11887 (regno_reg_rtx): ... new global array.
11888 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11889 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11890 apply_args_value, forced_labels, stack_pointer_delta):
11892 (struct varasm_status): Move here from varasm.c
11893 (struct rtl_data): New. Move here some fields from struct function.
11894 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11895 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11896 used_temp_slots avail_temp_slots, temp_slot_level,
11897 nonlocal_goto_handler_labels): Update accesstors.
11898 (rtl): New global variable.
11899 (struct function): Move some fileds to rtl_data.
11900 (get_arg_pointer_save_area): Update prototype.
11901 * emit-rtl.c (rtl): Declare.
11902 (regno_reg_rtx): Declare.
11903 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11905 (gen_reg_rtx): Update.
11906 (init_virtual_regs): Do not tate emit_status argument.
11907 (init_emit): Do not allocate emit.
11908 * varasm.c (varasm_statuc): Move to function.h.
11909 (n_deferred_constatns): Update accestor.
11910 (init_varasm_status): Do not allocate varasm_status.
11911 (force_const_mem, get_pool_size, output_constant_pool): Update.
11912 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11913 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11915 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
11917 PR rtl-optimization/35729
11918 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11921 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
11924 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11925 load/store if memory is unaligned.
11926 (*movti_rex64): Likewise.
11928 * config/i386/predicates.md (misaligned_operand): New.
11930 2008-03-31 Andrew Pinski <pinskia@gmail.com>
11933 * tree-ssa-phiopt.c (conditional_replacement): Return early for
11936 2008-03-31 Jan Beulich <jbeulich@novell.com>
11938 * config/ia64/constraints.md: Add 'j' constraint.
11939 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11940 (movdi_internal): Likewise.
11942 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
11945 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11947 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
11950 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11951 proper error message for the third argument on blendpd and
11954 * config/i386/sse.md (blendbits): New.
11955 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11957 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
11959 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11961 2008-03-30 Richard Guenther <rguenther@suse.de>
11963 PR middle-end/31023
11964 * fold-const.c (fold_sign_changed_comparison): Do leave
11965 conversions to base-types alone.
11967 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
11969 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11970 the link register if one altivec register is be saved.
11972 2008-03-30 Ben Elliston <bje@au.ibm.com>
11974 * final.c (final_scan_insn): Remove if (0) code.
11976 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
11978 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11980 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
11982 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11983 of V4SFmode to ix86_binary_operator_ok.
11985 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
11987 * config/i386/i386.c (override_options): Initialize
11988 ix86_veclib_handler to ix86_veclibabi_svml when
11989 -mveclibabi=svml is used.
11990 (ix86_veclibabi_svml): New function for SVML ABI style
11991 vectorization support.
11992 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11994 2008-03-28 Rafael Espindola <espindola@google.com>
11996 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11997 (tree_binary_nonnegative_warnv_p): Make it public.
11998 (tree_single_nonnegative_warnv_p): Make it public.
11999 (tree_invalid_nonnegative_warnv_p): Make it public.
12000 (tree_unary_nonzero_warnv_p): Make it public.
12001 (tree_binary_nonzero_warnv_p): Make it public
12002 (tree_single_nonzero_warnv_p): Make it public.
12003 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12004 (extract_range_from_binary_expr): Split the expr argument.
12005 (extract_range_from_unary_expr): Split the expr argument.
12006 (extract_range_from_comparison): Split the expr argument.
12007 (extract_range_from_expr): Use the new aux functions.
12008 (vrp_evaluate_conditional_warnv): Use
12009 vrp_evaluate_conditional_warnv_with_ops.
12010 * tree.h (tree_unary_nonzero_warnv_p): Declare.
12011 (tree_binary_nonzero_warnv_p): Declare.
12012 (tree_single_nonzero_warnv_p): Declare.
12013 (tree_expr_nonzero_warnv_p): Declare.
12014 (tree_unary_nonnegative_warnv_p): Declare.
12015 (tree_binary_nonnegative_warnv_p): Declare.
12016 (tree_single_nonnegative_warnv_p): Declare.
12017 (tree_invalid_nonnegative_warnv_p): Declare.
12019 2008-03-28 Richard Guenther <rguenther@suse.de>
12021 PR tree-optimization/30317
12022 PR tree-optimization/30911
12023 PR tree-optimization/34793
12024 * tree-vrp.c (set_and_canonicalize_value_range): New function.
12025 (struct assert_locus_d): New member EXPR.
12026 (register_new_assert_for): Add EXPR parameter to support
12027 ASSERT_EXPR <name, expr OP limit>.
12028 (register_edge_assert_for_1): Adjust callers.
12029 (find_assert_locations): Likewise.
12030 (process_assert_insertions_for): Build condition from expression.
12031 (extract_range_from_assert): Handle ASSERT_EXPRs
12032 of the form ASSERT_EXPR <name, expr OP limit>.
12033 (register_edge_assert_for_2): New helper registering
12034 asserts for comparisons. Recognize range tests of the form
12035 (unsigned)i - CST1 OP CST2.
12036 (register_edge_assert_for_1): Use it.
12037 (register_edge_assert_for): Likewise.
12038 (needs_overflow_infinity): Integer sub-types
12039 do not need overflow infinities.
12040 (vrp_val_is_max): The extreme values of integer sub-types
12041 are those of the base type.
12042 (vrp_val_is_min): Likewise.
12043 * tree.def (ASSERT_EXPR): Document extra allowed conditional
12046 2008-03-28 Nick Clifton <nickc@redhat.com>
12049 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12050 Return GENERAL_REGS for stack adjustment reloads.
12052 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
12055 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12056 const_vector when all the vectors are constant.
12058 2008-03-27 Bob Wilson <bob.wilson@acm.org>
12060 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12062 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12063 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12065 (s<code>_sf): Use new scc_sf attribute for opcode names.
12067 2008-03-27 Tom Tromey <tromey@redhat.com>
12069 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12070 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12071 config/spu/t-spu-elf, config/i386/t-interix,
12072 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12073 config/i386/x-darwin, config/i386/x-mingw32,
12074 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12075 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12076 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12077 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12078 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12079 config/rs6000/x-darwin, config/rs6000/t-rs6000,
12080 config/score/t-score-elf, config/arm/t-strongarm-pe,
12081 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12082 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12083 Revert automatic dependency patch.
12085 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
12088 * config/i386/i386.c (ix86_function_arg_boundary): Align
12089 decimal floating point to its natural boundary.
12091 2008-03-27 Richard Guenther <rguenther@suse.de>
12093 PR middle-end/35716
12094 * fold-const.c (fold_comparison): Restrict distinct decl
12095 comparison folding to VAR_DECLs and PARM_DECLs. Do not
12096 solely rely on operand_equal_p.
12098 2008-03-27 Richard Guenther <rguenther@suse.de>
12101 * c-common.c (handle_weak_attribute): Reject combination of
12104 2008-03-27 Richard Guenther <rguenther@suse.de>
12106 PR tree-optimization/32810
12107 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12108 conversions from DECL_INITIAL.
12109 (fold_const_aggregate_ref): Likewise from constructor elements.
12111 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
12113 * tree-affine.h (aff_combination_expand): Declare.
12114 (get_inner_reference_aff): Likewise.
12115 * tree-affine.c (aff_combination_expand): Split out from
12116 tree_to_aff_combination_expand.
12117 (get_inner_reference_aff): New function.
12118 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12119 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12120 (struct lim_aux_data): sm_done field removed.
12121 (mem_ref_loc_p, mem_ref_locs_p): New types.
12122 (struct mem_ref): Added id, stored, accesses_in_loop,
12123 indep_loop, dep_loop, indep_ref, dep_ref fields.
12124 Removed is_stored, locs and next fields.
12125 (memory_accesses): New variable.
12126 (movement_possibility): Do not allow moving statements
12127 that store to memory.
12128 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12130 (determine_max_movement): For statements with memory references,
12131 find the outermost loop in that the reference is independent.
12132 (move_computations_stmt): Mark the virtual operands for renaming.
12133 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12134 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12135 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12136 add_vop_ref_mapping, create_vop_ref_mapping_loop,
12137 create_vop_ref_mapping, analyze_memory_references,
12138 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12139 get_all_locs_in_loop, ref_always_accessed_p,
12140 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12141 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12142 store_motion_loop, store_motion): New functions.
12143 (struct vop_to_refs_elt): New type.
12144 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12145 memref_hash, memref_eq, hoist_memory_references): Rewritten.
12146 (schedule_sm): Replaced by...
12147 (execute_sm): ... this.
12148 (determine_lsm_ref, hoist_memory_references,
12149 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12150 find_more_ref_vops, free_mem_ref, free_mem_refs,
12151 determine_lsm_loop, determine_lsm): Removed.
12152 (tree_ssa_lim_finalize): Free data structures used by store motion.
12153 (tree_ssa_lim): Call analyze_memory_references. Use
12154 store_motion instead of determine_lsm.
12156 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12158 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12159 rename tmake_file to m68hc11/t-m68hc11.
12160 (mcore): Set inhibit_libc to true.
12161 * config.host (alpha*-dec-*vms*): Set extra_programs.
12162 (interix3*): Don't use host_xmake_file.
12163 * configure.ac: Let config.gcc override inhibit_libc.
12164 * configure: Regenerate.
12166 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12167 * config/t-openbsd-thread: Remove commented out lines.
12169 * config/x-interix: Remove.
12171 * config/m68hc11/t-m68hc11-gas: Rename to...
12172 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
12174 * config/mcore/t-mcore: Remove T_CFLAGS.
12175 * config/mcore/t-mcore-pe: Likewise.
12177 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12179 * configure.ac: Replace custom __GNU_SOURCE test with
12180 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
12181 * aclocal.m4: Regenerate.
12182 * configure: Regenerate.
12183 * config.in: Regenerate.
12185 2008-03-27 Richard Guenther <rguenther@suse.de>
12187 * fold-const.c (target.h): Include.
12188 (fold_comparison): Fold comparison of addresses of decls
12189 that bind locally or of constants. Consolidate address folding code.
12190 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12191 results from fold_binary_to_constant.
12192 (compare_values_warnv): Likewise.
12194 2008-03-27 Andrew Pinski <pinskia@gmail.com>
12196 PR middle-end/35429
12197 * fold-const.c (fold_truthop): Check for integeral types when folding
12198 a == 0 && b == 0 and a != 0 || b != 0 .
12200 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
12202 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12204 2008-03-26 Andreas Schwab <schwab@suse.de>
12206 * doc/invoke.texi: Fix use of @item vs. @itemx.
12208 2008-03-26 Tom Tromey <tromey@redhat.com>
12210 * Makefile.in (build/gensupport.o, build/print-rtl.o,
12211 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12212 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12213 build/gencodes.o, build/genconditions.o, build/genconfig.o,
12214 build/genconstants.o, build/genemit.o, build/genextract.o,
12215 build/genflags.o, build/genmddeps.o, build/genopinit.o,
12216 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12219 2008-03-26 Richard Guenther <rguenther@suse.de>
12222 2008-03-26 Richard Guenther <rguenther@suse.de>
12224 * fold-const.c (target.h): Include.
12225 (fold_comparison): Fold comparison of addresses of two decls
12226 that bind locally. Consolidate address folding code.
12228 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12230 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12231 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12232 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12233 dconstsqrt2, dconstthird, dconste and/or dconst10.
12234 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12235 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12236 dconstsqrt2, dconste): Delete.
12237 (init_emit_once): Likewise. Simplify initializing dconstm1.
12239 * real.c (get_real_const): New.
12240 * real.h (dconst3, dconst10, dconstm2, dconstthird,
12241 dconstsqrt2, dconste): Delete.
12242 (real_value_const, get_real_const): New.
12244 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
12246 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12248 * config/i386/i386.c (ix86_function_arg_boundary): Check
12249 BIGGEST_ALIGNMENT instead of 128.
12250 (setup_incoming_varargs_64): Likewise.
12252 2008-03-26 Tom Tromey <tromey@redhat.com>
12254 * Makefile.in (DEPFILES): Add missing '/'.
12256 2008-03-26 Richard Guenther <rguenther@suse.de>
12258 * fold-const.c (target.h): Include.
12259 (fold_comparison): Fold comparison of addresses of two decls
12260 that bind locally. Consolidate address folding code.
12262 2008-03-26 Nick Clifton <nickc@redhat.com>
12265 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12266 not allow INT+INT as a legitimate addressing mode.
12268 2008-03-26 Richard Guenther <rguenther@suse.de>
12270 * tree-flow.h (widen_bitfield): Remove declaration.
12271 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12272 (widen_bitfield): Remove function.
12273 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12276 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12279 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12282 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
12284 PR rtl-optimization/35232
12285 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12286 (forget_old_reloads_1, forget_marked_reloads): Don't clear
12287 reg_reloaded_call_part_clobbered here.
12288 (reload_regs_reach_end_p): New function.
12289 (reload_reg_rtx_for_input): New variable.
12290 (reload_reg_rtx_for_output): Likewise.
12291 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12292 when reassigning a pseudo register. Load reloadreg from
12293 reload_reg_rtx_for_input, moving the mode and register
12295 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
12296 instead of the original when deciding whether an input reload
12297 would be a no-op or whether an output reload can be deleted.
12298 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12299 when setting up new_spill_reg_store. Load it from
12300 reload_reg_rtx_for_output, moving the mode and register
12302 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
12303 instead of the original when deciding whether an output reload
12304 would be a no-op. Do the same when modifying insn notes.
12305 Use rtx_equal_p instead of == to compare the registers.
12306 (inherit_piecemeal_p): Take a mode and two register numbers
12308 (emit_reload_insns): Clear new_spill_reg_store for every hard
12309 register in the reload register. Remove spill registers
12310 from reg_reloaded_valid before considering whether to record
12311 inheritance information for them. Use reload_reg_rtx_for_output
12312 instead of reg_rtx when recording output reloads. Use
12313 reload_reg_rtx_for_input instead of reg_rtx when recording
12314 input reloads. Set or clear reg_reloaded_call_part_clobbered
12315 at the same time as setting reg_reloaded_valid.
12316 (delete_output_reload): Add a new_reload_reg parameter and use it
12317 instead of rld[j].reg_rtx.
12318 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12321 2008-03-25 Tom Tromey <tromey@redhat.com>
12323 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12324 (build/genattr.o): Likewise.
12325 (build/genattrtab.o): Likewise.
12326 (build/gencodes.o): Likewise.
12327 (build/genconfig.o): Likewise.
12328 (build/genconstants.o): Likewise.
12329 (build/genemit.o): Likewise.
12330 (build/genextract.o): Likewise.
12331 (build/genflags.o): Likewise.
12333 2008-03-25 Bob Wilson <bob.wilson@acm.org>
12335 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12336 instead of size_int for integer types.
12337 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
12338 to match type of MINUS_EXPR.
12340 2008-03-25 Tom Tromey <tromey@redhat.com>
12342 * configure: Rebuilt.
12343 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12346 2008-03-25 Tom Tromey <tromey@redhat.com>
12348 * config/x-solaris (host-solaris.o): Update.
12349 * config/x-linux (host-linux.o): Update.
12350 * config/x-hpux (host-hpux.o): Update.
12351 * config/x-darwin (host-darwin.o): Update.
12352 * config/v850/t-v850e (v850-c.o): Update.
12353 * config/v850/t-v850 (v850-c.o): Update.
12354 * config/t-vxworks (vxworks.o): Update.
12355 * config/t-sol2 (sol2-c.o, sol2.o): Update.
12356 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12357 * config/spu/t-spu-elf (spu-c.o): Update.
12359 * config/sh/t-symbian (sh-c.o): Update.
12360 (symbian.o): Update.
12361 * config/sh/t-sh (sh-c.o): Update.
12362 * config/score/t-score-elf (score7.o, score3.o): Update.
12363 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12364 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12365 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12366 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12367 (rs6000.o): Remove.
12368 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12369 * config/m32c/t-m32c (m32c-pragma.o): Update.
12370 * config/ia64/t-ia64 (ia64-c.o): Update.
12371 * config/i386/x-mingw32 (host-mingw32.o): Update.
12372 * config/i386/x-i386 (driver-i386.o): Update.
12373 * config/i386/x-darwin (host-i386-darwin.o): Update.
12374 * config/i386/x-cygwin (host-cygwin.o): Update.
12375 * config/i386/t-nwld (nwld.o): Update.
12376 * config/i386/t-netware (netware.o): Update.
12377 * config/i386/t-interix (winnt.o): Update.
12378 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12379 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12380 msformat-c.o): Update.
12381 * config/bfin/t-bfin-linux (generated_files): Add
12382 linux-sysroot-suffix.h.
12383 * config/arm/t-wince-pe (pe.o): Update.
12384 * config/arm/t-strongarm-pe (pe.o): Update.
12385 * config/arm/t-pe (pe.o): Update.
12386 * config/arm/t-arm (arm-c.o): Update.
12387 * doc/install.texi (Prerequisites): Require make 3.80.
12388 * Makefile.in: Remove .o targets.
12389 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12390 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12391 (simple_generated_h, simple_generated_c): Move earlier.
12392 (generated_files): New variable.
12393 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12394 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12395 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12396 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12397 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12398 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12399 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12400 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12401 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12402 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12403 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12404 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12406 (COMPILE.base, COMPILE): New variables.
12407 (%.o): New pattern rule.
12408 (ALL_HOST_OBJS): New variable.
12409 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12410 (dummy-checksum.o, cc1-checksum.o): Remove.
12411 (DRIVER_SHLIB): New variable.
12412 (DRIVER_DEFINES): Use it.
12413 (gencondmd.c): Move out of build/.
12414 (s-conditions): Update.
12415 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12416 (ALL_BUILD_OBJS): Likewise.
12417 (build/%.o): Use BUILDCOMPILE.
12418 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12419 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12420 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12421 build/gencheck.o, build/gencodes.o, build/genconditions.o,
12422 build/genconfig.o, build/genconstants.o, build/genemit.o,
12423 build/genextract.o, build/genflags.o, build/genmddeps.o,
12424 build/genopinit.o, build/genoutput.o, build/genpeep.o,
12425 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12426 build/gen-protos.o, build/scan.o, build/fix-header.o,
12427 build/scan-decls.o): Simplify.
12428 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12429 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12430 prefix.o, toplev.o): Reduce to variable setting.
12431 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
12432 ($(out_object_file), gcc-options.o): New targets.
12433 ($(ALL_HOST_OBJS)): New target. Include dependency files.
12434 * configure: Rebuilt.
12435 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12436 * doc/sourcebuild.texi (Front End Directory): Document new variable.
12438 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
12440 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12441 complain when we hit an error, return ERROR_MARK_NODE.
12443 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12445 * config/sh/constraints.md (Pso, Psz): New constraints.
12446 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12447 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12449 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12451 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12452 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12454 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12456 * config/sh/sh.md (prefetch): Add condition for SH2A target.
12457 (prefetch_sh2a): New.
12459 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12460 Naveen.H.S <naveen.hs@kpitcummins.com>
12462 * config/sh/constraints.md (I28): New constraint.
12463 * config/sh/sh.c (broken_move): Add support for movi20s.
12464 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12466 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
12467 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12468 Naveen.H.S <naveen.hs@kpitcummins.com>
12470 * config/sh/sh.c (SH_ATTRIBUTES): Define.
12471 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12472 (print_operand): Handle resbank in %@ operand code.
12473 (sh_encode_section_info): New.
12474 (push_regs): Add conditions for resbank.
12475 (sh_expand_epilogue): Likewise.
12476 (sh_insert_attributes): Likewise.
12477 (sh_attribute_table): Likewise.
12478 (sh_handle_resbank_handler_attribute): New.
12479 (sh2a_handle_function_vector_handler_attribute): New.
12480 (sh2a_is_function_vector_call): New.
12481 (sh2a_get_function_vector_number): New.
12482 (sh2a_function_vector_p): New.
12483 (sh_cfun_resbank_handler_p): New.
12484 * config/sh/sh.md (calli): Emit jsr/n if possible.
12485 (calli_tbr_rel): New.
12486 (calli_pcrel): Emit jsr/n if possible.
12487 (return_i): Emit rts/n if possible.
12488 (call_valuei_tbr_rel): New.
12489 (call_valuei_pcrel): Add condition for SH2A target.
12490 (call_value): Likewise.
12491 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12492 (sh2a_get_function_vector_number): Likewise.
12493 (sh2a_is_function_vector_call): Likewise.
12494 * doc/extend.texi: Document TBR relative addressing of SH2A.
12495 (resbank): Add description for SH2A.
12497 2008-03-24 Richard Guenther <rguenther@suse.de>
12500 * gimplify.c (gimplify_modify_expr): For frontend type-correct
12501 pointer assignments change conversions according to middle-end rules.
12502 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12503 * configure.ac: Include type checking in yes.
12504 * configure: Regenerate.
12506 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12508 * diagnostic.c (diagnostic_count_diagnostic): Delete.
12509 (diagnostic_report_diagnostic): Update. Handle ICEs here.
12511 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
12513 * gthr-vxworks.h (UNUSED): Define.
12515 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
12517 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12519 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
12521 * doc/extend.texi (Function Attributes): Add missing comma in the
12522 example of the "alloc_size" attribute.
12524 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
12527 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12529 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12532 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12535 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12536 of the underlying type of a MS bitfield layout to the natural
12537 alignment of the type.
12539 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12541 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12542 to their natural alignment to avoid store forwarding stalls.
12544 2008-03-22 Richard Guenther <rguenther@suse.de>
12546 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12547 For PHI nodes verify the address is invariant.
12548 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12549 (get_symbol_constant_value): Use is_gimple_min_invariant.
12550 (maybe_fold_stmt_indirect): Likewise.
12552 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
12554 PR rtl-optimization/33927
12555 * Makefile.in (dse.o): Depend on $(TM_P_H).
12556 * expr.h (extract_low_bits): Declare.
12557 * expmed.c (extract_low_bits): New function.
12558 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12559 * dse.c: Include tm_p.h.
12560 (find_shift_sequence): Remove the read_reg argument and return the
12561 read value. Emit the instructions instead of returning them.
12562 Iterate on new_mode rather than calculating it each time.
12563 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
12564 source to NEW_MODE and extract_low_bits to convert the shifted
12565 value to READ_MODE.
12566 (replace_read): Allow the load and store to have different mode
12567 classes. Use extract_low_bits when SHIFT == 0. Create the shift
12568 or extraction instructions before trying the replacement. Update
12569 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12571 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12573 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12574 to their natural alignment to avoid store forwarding stalls.
12576 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12579 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12580 encouraging but not allowing gprs for input;
12581 change the input constraint to !f#r.
12582 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12584 change the output constraint to !f#r.
12586 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
12589 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12590 corresponding post-reload splitters.
12591 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12592 when x87 FP math is selected.
12593 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12594 New function prototype.
12595 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12596 unreachable function to ease macroization of insn patterns.
12598 2008-03-21 Martin Jambor <mjambor@suse.cz>
12600 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12601 reference dumps if ddr is NULL or dependence is unknown.
12603 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12605 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12606 unsigned extension into account.
12607 (ATOMIC_COMPARE_AND_SWAP): Likewise.
12608 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12609 Do computations on a scratch register.
12611 2008-03-21 Richard Guenther <rguenther@suse.de>
12613 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12614 Use is_gimple_min_invariant instead of TREE_INVARIANT.
12615 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12616 * tree-ssa-dom.c (record_equality): Likewise.
12617 * tree-inline.c (copy_body_r): Likewise.
12618 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12621 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12623 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12624 as 'delete_unused' argument.
12626 2008-03-20 Richard Guenther <rguenther@suse.de>
12628 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12629 special casing of constant qualifiers.
12630 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12631 care about them in general.
12632 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12633 regardless of their type.
12634 (fold_stmt_r): Forcefully fold *& if we end up with that.
12636 2008-03-20 Paul Brook <paul@codesourcery.com>
12638 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12639 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12641 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12643 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12644 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12646 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
12648 * common.opt (Wmudflap): New option.
12649 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12650 (mx_register_decls): Likewise.
12651 (mudflap_finish_file): Likewise.
12652 * doc/invoke.texi: Document -Wno-mudflap.
12654 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
12656 * c-format.c (replace_format_name_to_system_name): New.
12657 (cmp_attribs): New.
12658 (convert_format_name_to_system_name): New.
12659 (decode_format_attr): Add use of convert_format_name_to_system_name.
12660 (format_types_orig): Add gnu_ prefix to names.
12661 (check_format_info_main): Special treating of \0 escaped names for
12662 supporting multi-character format specifiers as I32, I64.
12663 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12664 (gnu_target_overrides_format_attributes): New.
12665 * c-format.h: Add structure target_ovr_attr to hold
12666 system specific formatter names.
12667 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12668 msformat-c.o file to c_target_objs and cxx_target_objs.
12669 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12670 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12671 (TARGET_N_FORMAT_TYPES): New.
12672 * config/i386/msformat-c.c: New.
12673 * config/i386/t-cygming: Add build rule for msformat-c.o.
12674 * doc/extend.texi: Add new format names gnu_* and ms_* and
12676 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12678 2008-03-20 Ira Rosen <irar@il.ibm.com>
12680 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12681 optimizations turned on under -O3.
12682 (ftree-vectorize): Add that the flag is turned on with -O3.
12684 2008-03-20 Ben Elliston <bje@au.ibm.com>
12686 * regmove.c (try_auto_increment): Fix spelling error in comment.
12687 * final.c (final_scan_insn): Likewise.
12689 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
12692 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12693 allocator preferences for "y" and "r" class registers.
12694 ("*mov<mode>_internal"): Ditto.
12695 ("*movv2sf_internal_rex64"): Ditto.
12696 ("*movv2sf_internal"): Ditto.
12698 2008-03-19 Michael Matz <matz@suse.de>
12700 PR middle-end/35616
12701 * calls.c (expand_call): Check overlap of arguments with call
12702 address for sibcalls.
12704 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12707 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12708 of the underlying type of a MS bitfield layout to the natural
12709 alignment of the type.
12711 2008-03-19 Jan Hubicka <jh@suse.cz>
12714 * toplev.c (decode_d_option): Handle all CPP flags.
12715 * tree-vrp.c: Update tree_pass descriptors.
12716 * regrename.c: Update tree_pass descriptors.
12717 * fwprop.c: Update tree_pass descriptors.
12718 * doc/invoke.texi: Remove documentation of dropped -d? flags.
12719 * tree-into-ssa.c: Update tree_pass descriptors.
12720 * tree-dump.c: Update tree_pass descriptors.
12721 * tree-complex.c: Update tree_pass descriptors.
12722 * tree-dump.h: Update tree_pass descriptors.
12723 * see.c: Update tree_pass descriptors.
12724 * cgraphbuild.c: Update tree_pass descriptors.
12725 * tracer.c: Update tree_pass descriptors.
12726 * tree-loop-distribution.c: Update tree_pass descriptors.
12727 * cgraph.c: Update tree_pass descriptors.
12728 * postreload-gcse.c: Update tree_pass descriptors.
12729 * postreload.c: Update tree_pass descriptors.
12730 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12731 * tree-tailcall.c: Update tree_pass descriptors.
12732 * tree-pass.h (tree_opt_pass): Rename to ...
12733 (opt_pass) ... this one; add "type" field and remove letter field.
12734 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12735 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12736 all_lowering_passes): Update declaration.
12737 * ipa-cp.c: Update tree_pass descriptors.
12738 * final.c: Update tree_pass descriptors.
12739 * omp-low.c: Update tree_pass descriptors.
12740 * tree-ssa-dse.c: Update tree_pass descriptors.
12741 * ipa-reference.c: Update tree_pass descriptors.
12742 * tree-ssa-uncprop.c: Update tree_pass descriptors.
12743 * auto-inc-dec.c: Update tree_pass descriptors.
12744 * reorg.c: Update tree_pass descriptors.
12745 * cgraphunit.c: Update tree_pass descriptors.
12746 * tree-ssa-copyrename.c: Update tree_pass descriptors.
12747 * tree-ssa-ccp.c: Update tree_pass descriptors.
12748 * df-core.c: Update tree_pass descriptors.
12749 * mode-switching.c: Update tree_pass descriptors.
12750 * tree-nomudflap.c: Update tree_pass descriptors.
12751 * modulo-sched.c: Update tree_pass descriptors.
12752 * ipa-pure-const.c: Update tree_pass descriptors.
12753 * cse.c: Update tree_pass descriptors.
12754 * web.c: Update tree_pass descriptors.
12755 * tree-stdarg.c: Update tree_pass descriptors.
12756 * tree-ssa-math-opts.c: Update tree_pass descriptors.
12757 * tree-ssa-dom.c: Update tree_pass descriptors.
12758 * tree-nrv.c: Update tree_pass descriptors.
12759 * tree-ssa-alias.c: Update tree_pass descriptors.
12760 * loop-init.c: Update tree_pass descriptors.
12761 * gimple-low.c: Update tree_pass descriptors.
12762 * ipa-inline.c: Update tree_pass descriptors.
12763 * tree-ssa-sink.c: Update tree_pass descriptors.
12764 * global.c: Update tree_pass descriptors.
12765 * ifcvt.c: Update tree_pass descriptors.
12766 * jump.c: Update tree_pass descriptors.
12767 * predict.c: Update tree_pass descriptors.
12768 * tree-ssa-loop.c: Update tree_pass descriptors.
12769 * recog.c: Update tree_pass descriptors.
12770 * dse.c: Update tree_pass descriptors.
12771 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12772 * tree-eh.c: Update tree_pass descriptors.
12773 * regmove.c: Update tree_pass descriptors.
12775 * function.c: Update tree_pass descriptors.
12776 * tree-vectorizer.c: Update tree_pass descriptors.
12777 * gcse.c: Update tree_pass descriptors.
12778 * ipa-type-escape.c: Update tree_pass descriptors.
12779 * tree-if-conv.c: Update tree_pass descriptors.
12780 * init-regs.c: Update tree_pass descriptors.
12781 * ipa.c: Update tree_pass descriptors.
12782 * tree-ssa-phiopt.c: Update tree_pass descriptors.
12783 * rtl-factoring.c: Update tree_pass descriptors.
12784 * lower-subreg.c: Update tree_pass descriptors.
12785 * bt-load.c: Update tree_pass descriptors.
12786 * tree-dfa.c: Update tree_pass descriptors.
12787 * except.c: Update tree_pass descriptors.
12788 * emit-rtl.c: Update tree_pass descriptors.
12789 * cfgexpand.c: Update tree_pass descriptors.
12790 * tree-cfgcleanup.c: Update tree_pass descriptors.
12791 * cfgcleanup.c: Update tree_pass descriptors.
12792 * tree-ssa-pre.c: Update tree_pass descriptors.
12793 * tree-sra.c: Update tree_pass descriptors.
12794 * tree-mudflap.c: Update tree_pass descriptors.
12795 * tree-ssa-copy.c: Update tree_pass descriptors.
12796 * cfglayout.c: Update tree_pass descriptors.
12797 * tree-ssa-forwprop.c: Update tree_pass descriptors.
12798 * tree-ssa-dce.c: Update tree_pass descriptors.
12799 * tree-ssa.c: Update tree_pass descriptors.
12800 * regclass.c: Update tree_pass descriptors.
12801 * integrate.c: Update tree_pass descriptors.
12802 * tree-optimize.c: Update tree_pass descriptors.
12803 * tree-ssa-phiprop.c: Update tree_pass descriptors.
12804 * tree-object-size.c: Update tree_pass descriptors.
12805 * combine.c: Update tree_pass descriptors.
12806 * tree-outof-ssa.c: Update tree_pass descriptors.
12807 * bb-reorder.c: Update tree_pass descriptors.
12808 * stack-ptr-mod.c: Update tree_pass descriptors.
12809 * var-tracking.c: Update tree_pass descriptors.
12810 * tree-profile.c: Update tree_pass descriptors.
12811 * tree-vect-generic.c: Update tree_pass descriptors.
12812 * reg-stack.c: Update tree_pass descriptors.
12813 * sched-rgn.c: Update tree_pass descriptors.
12814 * tree-ssa-structalias.c: Update tree_pass descriptors.
12815 * tree-cfg.c: Update tree_pass descriptors.
12816 * passes.c (current_pass): Update declaration.
12817 (finish_optimization_passes): Update.
12818 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12819 (register_one_dump_file, register_dump_files_1, next_pass_1):
12821 (init_optimization_passes): Update handling of new types.
12822 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12823 * ipa-struct-reorg.c: Update tree_pass descriptors.
12824 * tree-ssa-reassoc.c: Update tree_pass descriptors.
12825 * combine-stack-adj.c: Update tree_pass descriptors.
12826 * cfgrtl.c: Update tree_pass descriptors.
12827 * dce.c: Update tree_pass descriptors.
12828 * tree-ssanames.c: Update tree_pass descriptors.
12830 2008-03-19 Richard Guenther <rguenther@suse.de>
12832 PR middle-end/35609
12833 * tree-ssa.c (walk_data): New structure.
12834 (warn_uninitialized_var): If not always_executed warn with "maybe"
12836 (execute_early_warn_uninitialized): Compute post-dominators.
12837 Initialize always_executed before processing each basic block.
12839 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
12842 * config/i386/i386.c (x86_this_parameter): Calculate correct location
12843 of "this" pointer when "regparm = N" or "fastcall" is in effect.
12845 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12847 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12849 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
12851 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12853 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12854 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12855 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
12856 target after ignore has been set, and move there also the commputation
12857 of subtarget and original_target.
12858 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12859 (LANG_HOOKS_INITIALIZER): Remove it.
12860 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12862 2008-03-18 Richard Guenther <rguenther@suse.de>
12864 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12865 found an expression with constants, note that in the VN for the lhs.
12866 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12867 fold them to constants if possible. Run cleanup_cfg if done so.
12868 (execute_pre): Return todo.
12869 (do_pre): Likewise.
12870 (execute_fre): Likewise.
12871 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12873 (get_prop_source_stmt): Look through pointer conversions.
12875 2008-03-18 Jan Hubicka <jh@suse.cz>
12877 * tree-pretty-print.c: Include predict.h.
12878 (dump_generic_node): Dump predictor.
12879 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12880 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12881 * gimple-low.c (lower_stmt): Likewise.
12882 * expr.c (expand_expr_real): Likewise.
12883 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12885 (build_predict_expr, build_predict_expr): New.
12886 * predict.h (predictor_name, build_predict_expr): Update.
12887 * c-typeck.c (c_finish_bc_stmt): Add prediction.
12888 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12889 * predict.def (PRED_CONTINUE): Update hitrate.
12890 * tree.def (PREDICT_EXPR): Define.
12891 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12892 do not handle BIND_EXPR.
12893 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12894 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12895 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12898 2008-03-18 Michael Matz <matz@suse.de>
12900 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12902 2008-03-18 Richard Guenther <rguenther@suse.de>
12904 * tree-gimple.h (is_gimple_invariant_address): Declare.
12905 (is_gimple_constant): Likewise.
12906 * tree-gimple.c (is_gimple_constant): New function.
12907 (is_gimple_invariant_address): Likewise.
12908 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12909 and is_gimple_invariant_address.
12910 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12912 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12913 an addressable base.
12915 2008-03-18 Jakub Jelinek <jakub@redhat.com>
12917 PR middle-end/35611
12918 * gimplify.c (gimplify_expr): Gimplify second operand of
12921 2008-03-17 Richard Guenther <rguenther@suse.de>
12923 PR tree-optimization/19637
12924 * fold-const.c (fold_unary): Remove restrictions of removing
12925 intermediate pointer-conversions (P2)(P1)P0.
12926 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12927 conversion to void pointer.
12928 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12930 2008-03-16 James E. Wilson <wilson@tuliptree.org>
12933 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12934 emulated thread local variables.
12936 2008-03-16 Richard Guenther <rguenther@suse.de>
12938 PR middle-end/35607
12939 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12940 expand TREE_INVARIANT operations that are not gimple invariant.
12942 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
12944 * doc/extend.texi (Alignment): Say that the ABI controls
12945 the __alignof__ for non-strict-alignment targets rather
12946 than being a recommendation.
12948 2008-03-15 Paul Brook <paul@codesourcery.com>
12950 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12952 (arm_output_fn_unwind): Mark functions that can not be unwound.
12954 2008-03-15 Paul Brook <paul@codesourcery.com>
12956 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12957 extension instructions.
12959 2008-03-15 Richard Guenther <rguenther@suse.de>
12961 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12962 and fold constant aggregate refs.
12963 (fold_const_aggregate_ref): Handle string constants
12964 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
12965 (evaluate_stmt): Simplify now that ccp_fold folds constant
12968 2008-03-15 Paul Brook <paul@codesourcery.com>
12970 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12971 (extzv): Use gen_extzv_t2.
12972 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12974 2008-03-15 Richard Guenther <rguenther@suse.de>
12976 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12977 (fold_const_aggregate_ref): Likewise.
12978 (get_value): Return NULL if we don't have any values.
12979 (ccp_finalize): Set const_val to NULL after freeing it.
12980 * tree-flow.h (get_symbol_constant_value): Declare.
12981 (fold_const_aggregate_ref): Likewise.
12982 * tree-ssa-sccvn.c (try_to_simplify): Use them.
12984 2008-03-15 Richard Guenther <rguenther@suse.de>
12986 PR middle-end/35593
12987 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12988 to not produce negative array indices if not allowed. Add
12989 parameter to indicate that.
12990 (maybe_fold_offset_to_component_ref): Allow negative array
12991 indices only for the first member of a structure.
12992 (maybe_fold_offset_to_reference): Allow negative array indices.
12993 (maybe_fold_stmt_addition): Likewise.
12995 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
12996 Anatoly Sokolov <aesok@post.ru>
12998 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12999 (avr_arch): Add ARCH_AVR6.
13000 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13001 (initial_elimination_offset): Initialize and use 'avr_pc_size'
13002 instead of fixed value 2.
13003 (print_operand_address): Use gs() asm specifier instead of pm().
13004 (avr_assemble_integer): (Ditto.).
13005 (avr_output_addr_vec_elt): (Ditto.).
13006 (print_operand): Handle "!" code.
13007 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13008 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13009 (AVR_HAVE_EIJMP_EICALL): Define.
13010 (AVR_3_BYTE_PC): Redefine.
13011 (AVR_2_BYTE_PC): (Ditto.).
13012 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13013 (LINK_SPEC): Add atmega2560 and atmega2561.
13014 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13016 * config/avr/avr.md (call_insn): Use eicall instead of icall
13017 for 3 byte PC devices.
13018 (call_value_insn): (Ditto.).
13019 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13020 (indirect_jump): Use only for for 2 byte PC devices.
13021 (*tablejump): (Ditto.).
13022 (*indirect_jump_avr6): Add insn.
13023 (*tablejump_rjmp): Don't use for 3 byte PC devices.
13024 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13025 instead of ijmp for 3 byte PC devices.
13026 (__tablejump2__): (Ditto.).
13027 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13028 (MULITLIB_DIRNAMES): (Ditto.).
13029 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13031 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
13033 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13034 "sse2_umulsidi3". Use V1DI mode for operand 0.
13035 ("mmx_psadbw"): Use V1DI mode for operand 0.
13036 * config/i386/i386-modes.def (V1SI): New vector mode.
13037 * config/i386/i386.c (struct builtin_description)
13038 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13039 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13040 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13041 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13042 v1di_ftype_v8qi_v8qi type.
13043 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13045 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13046 __builtin_ia32_pmuludq]: Fix the mode of return value.
13048 2008-03-15 Richard Guenther <rguenther@suse.de>
13050 PR middle-end/35595
13051 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13054 2008-03-14 Bob Wilson <bob.wilson@acm.org>
13056 * doc/invoke.texi (Option Summary, Xtensa Options): Document
13057 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13058 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13059 unless TARGET_SERIALIZE_VOLATILE is enabled.
13060 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13061 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13062 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13064 2008-03-14 Richard Guenther <rguenther@suse.de>
13066 PR tree-optimization/34172
13067 * tree-flow.h (refs_may_alias_p): Declare.
13068 (get_single_def_stmt): Likewise.
13069 (get_single_def_stmt_from_phi): Likewise.
13070 (get_single_def_stmt_with_phi): Likewise.
13071 * tree-dfa.c (refs_may_alias_p): New function.
13072 (get_single_def_stmt): Likewise.
13073 (get_single_def_stmt_from_phi): Likewise.
13074 (get_single_def_stmt_with_phi): Likewise.
13075 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13076 (vn_reference_lookup_1): New helper function.
13077 (vn_reference_lookup): Walk the virtual use-def chain to
13078 continue searching for a match if the def does not alias the
13079 reference we are looking for.
13081 2008-03-14 David Edelsohn <edelsohn@gnu.org>
13083 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
13084 archive and Perzl. Update The Written Word listing.
13086 2008-03-14 Richard Guenther <rguenther@suse.de>
13088 PR tree-optimization/34043
13089 PR tree-optimization/33989
13090 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13092 (bitmap_find_leader): Use extra argument to verify dominance
13093 relationship inside a basic-block.
13094 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13095 (find_leader_in_sets): Adjust.
13096 (create_component_ref_by_pieces): Take extra argument for
13097 dominance check, handle lookup failures.
13098 (find_or_generate_expression): Likewise.
13099 (create_expression_by_pieces): Likewise.
13100 (insert_into_preds_of_block): Adjust.
13101 (create_value_expr_from): If asked for, verify all operands
13102 are in the blocks AVAIL_OUT set.
13103 (make_values_for_stmt): Check for SSA_NAMEs that are life
13104 over an abnormal edge.
13105 (compute_avail): Remove such check.
13106 (do_SCCVN_insertion): New function.
13107 (eliminate): If we do not find a leader suitable for replacement
13108 insert a replacement expression from SCCVN if available.
13109 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13110 (struct vn_ssa_aux): Add needs_insertion flag.
13111 * tree-ssa-sccvn.c (may_insert): New global flag.
13112 (copy_reference_ops_from_ref): Value-number union member access
13113 based on its size, not type and member if insertion is allowed.
13114 (visit_reference_op_load): For a weak match from union type
13115 punning lookup a view-converted value and insert a SSA_NAME
13116 for that value if that is not found.
13117 (visit_use): Make dumps shorter. Do not disallow value numbering
13118 SSA_NAMEs that are life over an abnormal edge to constants.
13119 (free_scc_vn): Release inserted SSA_NAMEs.
13120 (run_scc_vn): New flag to specify whether insertion is allowed.
13121 Process SSA_NAMEs in forward order.
13122 * tree-ssa-loop-im.c (for_each_index): Handle invariant
13123 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13124 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13125 pointer type to/from integral types that do not change the
13126 precision to regular conversions.
13128 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13130 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13131 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13132 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13133 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13134 input arguments and the mode of return value. Built-in functions
13135 that operate on whole 64-bit MMX register now use V1DI mode.
13137 2008-03-13 Alon Dayan <alond@il.ibm.com>
13138 Olga Golovanevsky <olga@il.ibm.com>
13140 PR tree-optimization/35041
13141 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13142 to locate the right position in a statement.
13144 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13148 * config/i386/xmmintrin.h: Change all static inline functions to
13149 extern inline and add __gnu_inline__ attribute.
13150 * config/i386/bmintrin.h: Ditto.
13151 * config/i386/smmintrin.h: Ditto.
13152 * config/i386/tmmintrin.h: Ditto.
13153 * config/i386/mmintrin-common.h: Ditto.
13154 * config/i386/ammintrin.h: Ditto.
13155 * config/i386/emmintrin.h: Ditto.
13156 * config/i386/pmmintrin.h: Ditto.
13157 * config/i386/mmintrin.h: Ditto.
13158 * config/i386/mm3dnow.h: Ditto.
13160 2008-03-13 Jakub Jelinek <jakub@redhat.com>
13162 PR middle-end/35185
13163 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13164 (lower_omp_2): New function.
13165 (lower_omp_1, lower_omp): Rewritten.
13167 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
13170 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13171 with the phrase "Microsoft Windows compilers".
13172 (Push/Pop Macro Pragmas): New subsection. Document
13173 #pragma push_macro and pragma pop_macro.
13175 2008-03-12 Paul Brook <paul@codesourcery.com>
13177 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13179 2008-03-12 Paul Brook <paul@codesourcery.com>
13181 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13182 (thumb2_alusi3_short): Exclude PLUS and MINUS.
13183 (thumb2_addsi_shortim): Rename ...
13184 (thumb2_addsi_short): ... to this. Allow register operands.
13185 (thumb2_subsi_short): New pattern.
13186 (thumb2_one_cmplsi2_short,
13187 thumb2_negsi2_short): New patterns and peepholes.
13189 2008-03-12 Paul Brook <paul@codesourcery.com>
13191 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13193 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
13195 * config/i386/i386.md (int_cond): New code iterator.
13197 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13198 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13199 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13200 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13201 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13202 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13203 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13204 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13206 2008-03-12 Paul Brook <paul@codesourcery.com>
13208 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13209 instead of {arm,thumb}_compute_save_reg_mask.
13210 (output_return_instruction): Ditto.
13211 (thumb_unexpanded_epilogue): Ditto.
13212 (thumb1_expand_prologue): Ditto.
13213 (thumb1_output_function_prologue): Ditto.
13214 (arm_set_return_address): Ditto.
13215 (thumb_set_return_address): Ditto.
13216 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
13217 regs to achieve stack alignment.
13218 (thumb1_compute_save_reg_mask): Fix compiler warning.
13219 (arm_output_epilogue): Use offsets->saved_regs_mask.
13220 Adjust stack pointer by poping call clobered registers.
13221 (arm_expand_prologue): Use offsets->saved_regs_mask.
13222 Adjust stack pointer by pushing extra registers.
13223 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13225 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
13228 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13229 conversion to the operands of a multiplication.
13231 2008-03-12 Richard Guenther <rguenther@suse.de>
13233 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13234 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13235 * timevar.def (TV_TREE_PHIPROP): Add.
13236 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13237 pass description. Use TV_TREE_PHIPROP.
13238 * tree-ssa-forwprop.c: Remove phiprop code.
13240 2008-03-12 Jakub Jelinek <jakub@redhat.com>
13242 PR middle-end/35549
13243 * omp-low.c (maybe_lookup_decl): Constify first argument.
13244 (use_pointer_for_field): Change last argument from bool to
13245 omp_context *. Disallow shared copy-in/out in nested
13246 parallel if decl is shared in outer parallel too.
13247 (build_outer_var_ref, scan_sharing_clauses,
13248 lower_rec_input_clauses, lower_copyprivate_clauses,
13249 lower_send_clauses, lower_send_shared_vars): Adjust callers.
13251 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
13252 Ira Rosen <irar@il.ibm.com>
13254 * tree-vectorizer.c (free_stmt_vec_info): New function.
13255 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13256 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13257 * tree-vectorizer.h (free_stmt_vec_info): Declare.
13258 * tree-vect-transform.c (vectorizable_conversion): Free
13259 vec_oprnds0 if it was allocated.
13260 (vect_permute_store_chain): Remove unused VECs.
13261 (vectorizable_store): Free VECs that are allocated in the..
13263 (vect_transform_strided_load, vectorizable_load): Likewise.
13264 (vect_remove_stores): Simplify the code.
13265 (vect_transform_loop): Move code to vect_remove_stores().
13266 Call vect_remove_stores() and free_stmt_vec_info().
13268 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13270 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13271 TARGET_HPUX. Revise comment.
13272 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13273 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13274 Use sr4 variant of `be' instruction when not generating PIC code.
13275 (attr_length_call): Adjust for above change.
13277 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13279 * ipa-reference.c (static_execute): Remove module_statics_const and
13280 associated setting code.
13282 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13285 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13286 predicate for operand 1.
13287 (paritysi2_cmp): Use register_operand predicate for operand 2.
13288 Use earlyclobber modifier for operand 1. Remove support for
13290 (paritydi2_cmp): Use register_operand predicate for operand 3.
13291 Use earlyclobber modifier for operand 1. Remove support for
13294 2008-03-11 Paul Brook <paul@codesourcery.com>
13295 Vladimir Prus <vladimir@codesourcery.com>
13297 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13298 (arm_compute_save_reg0_reg12_mask): Always
13299 check if register 11 must be saved. Always safe hard frame pointer
13300 when frame_pointer_needeed.
13301 (arm_compute_save_reg_mask): Save IP and PC
13302 only with apcs frames.
13303 (arm_output_epilogue): Adjust Thumb2 codepath to
13304 be also invoked and work for ARM non-apcs frames.
13305 (arm_expand_prologue): Don't bother saving IP
13306 for non-apcs frame, since it's not clobbered by
13307 prologue code. Implement non-apcs frame
13310 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13312 PR rtl-optimization/35281
13313 * expr.c (convert_move): Use a new pseudo for the intermediate
13314 from_mode->word_mode result.
13316 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13318 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13319 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13320 * toplev.c (compile_file): Don't call it.
13322 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13324 PR middle-end/35526
13325 * expr.c (store_expr): Call emit_block_move if the mode
13326 of "temp" RTX is BLKmode.
13328 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13329 Richard Guenther <rguenther@suse.de>
13331 PR tree-optimization/31358
13332 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13333 the step with a NULL_TREE.
13334 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13335 to sizetype if type is a pointer type.
13336 (add_candidate_1): Don't convert the base and step to
13337 the generic type if the orginal type is a pointer type.
13338 (add_iv_value_candidates): Use sizetype for the step
13339 if type is a pointer type.
13340 (cand_value_at): Likewise.
13341 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13343 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13344 Don't convert the tem affine to the type.
13345 (add_elt_to_tree): Use sizetype for the step if a pointer.
13346 Use POINTER_PLUS_EXPR for pointers.
13347 (aff_combination_to_tree): Use sizetype for the step if a
13350 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
13352 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13353 Remove commutativity hint.
13355 2008-03-10 Jakub Jelinek <jakub@redhat.com>
13359 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13360 errorneous type. Check that v is a VAR_DECL.
13362 PR middle-end/35099
13363 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13365 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
13367 PR tree-optimization/35494
13368 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13369 may be overriden at link and run time.
13371 2008-03-10 Richard Guenther <rguenther@suse.de>
13373 PR tree-optimization/34677
13374 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13375 (poolify_tree): Likewise.
13376 (modify_expr_template): Likewise.
13377 (poolify_modify_stmt): Likewise.
13378 (insert_fake_stores): Handle all component-ref style stores
13379 in addition to INDIRECT_REF. Also handle complex types.
13380 Do not poolify the inserted load.
13381 (realify_fake_stores): Do not rebuild the tree but only
13382 make it a SSA_NAME copy.
13383 (init_pre): Remove initialzation of modify_expr_template.
13384 Do not allocate modify_expr_node_pool.
13385 (fini_pre): Do not free modify_expr_node_pool.
13387 2008-03-10 Paul Brook <paul@codesourcery.com>
13389 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13390 to avoid conflicts.
13392 2008-03-10 Paul Brook <paul@codesourcery.com>
13393 Mark Shinwell <shinwell@codesourcery.com>
13395 * config/arm/cortex-r4.md: New.
13396 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13398 * config/arm/arm.md: Include cortex-r4.md.
13399 (insn): Add smmls, sdiv and udiv values.
13400 (generic_sched): Don't use generic scheduling for Cortex-R4.
13401 (arm_issue_rate): New function.
13402 (TARGET_SCHED_ISSUE_RATE): Define.
13404 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
13406 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13408 2008-03-10 Richard Guenther <rguenther@suse.de>
13410 * tree-ssa-pre.c (get_sccvn_value): Simplify.
13411 (compute_avail): Do not add stmt uses to AVAIL_OUT.
13413 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
13415 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13416 Set default to true.
13418 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13420 * c.opt (Wsynth): Deprecate.
13421 * doc/invoke.texi (Option Summary, Warning Options): Document
13422 -Wno-format-contains-nul.
13424 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
13427 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13428 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13430 2008-03-09 Ira Rosen <irar@il.ibm.com>
13432 * config/rs6000/rs6000.c (builtin_description): Rename vector
13433 left shift operations.
13434 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13435 (altivec_vsl<VI_char>): Rename to ...
13436 (ashl<mode>3): ... new name.
13437 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13439 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13441 2008-03-08 Richard Guenther <rguenther@suse.de>
13443 * coverage.h (tree_coverage_counter_addr): Declare.
13444 * coverage.c (tree_coverage_counter_addr): New function.
13445 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13446 before using again.
13447 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13448 (tree_gen_one_value_profiler): Likewise.
13449 (tree_gen_ic_profiler): Likewise.
13450 (tree_gen_average_profiler): Likewise.
13451 (tree_gen_ior_profiler): Likewise.
13453 2008-03-08 Richard Guenther <rguenther@suse.de>
13455 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13456 (vn_binary_op_insert): Likewise.
13457 (vn_unary_op_lookup): Likewise.
13458 (vn_unary_op_insert): Likewise.
13459 (vn_nary_op_lookup): Declare.
13460 (vn_nary_op_insert): Likewise.
13461 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13462 and binary hashes, use a single obstack for unary_op_pool
13463 and binary_op_pool.
13464 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13465 a single struct vn_nary_op_s. Store tree code length and
13466 a variable number of operands.
13467 (struct vn_reference_op_struct): Remove unused op2.
13468 (vn_reference_op_eq): Do not compare op2.
13469 (vn_reference_op_compute_hash): Do not compute hash of op2.
13470 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13471 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13472 with vn_nary_op_compute_hash.
13473 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13474 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13476 (vn_unary_op_insert, vn_binary_op_insert): Replace with
13478 (visit_unary_op): Call nary functions.
13479 (visit_binary_op): Likewise.
13480 (process_scc): Adjust for struct vn_tables_s changes.
13481 (allocate_vn_table): Likewise.
13482 (free_vn_table): Likewise.
13483 * tree-vn.c (vn_add): Call nary functions.
13484 (vn_lookup): Likewise.
13486 2008-03-08 Jakub Jelinek <jakub@redhat.com>
13489 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13490 wdst back after sync_compare_and_swapqhi_internal.
13492 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
13495 * config/i386/i386-modes.def (V1DI): New vector mode.
13496 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13497 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13498 (MMXMODE248): Ditto.
13499 (MMXMODE): Add V1DI mode.
13500 (mmxvecsize): Change DI mode to V1DI mode.
13501 ("mov<mode>): Use MMXMODEI8 mode iterator.
13502 ("*mov<mode>_internal_rex64"): Ditto.
13503 ("*mov<mode>_internal"): Ditto.
13504 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
13505 ("mmx_sub<mode>3"): Ditto.
13506 ("mmx_adddi3"): Remove insn pattern.
13507 ("mmx_subdi3"): Ditto.
13508 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13509 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13510 ("mmx_ashl<mode>3"): Ditto.
13511 ("mmx_lshrdi3"): Remove insn pattern.
13512 ("mmx_ashldi3"): Ditto.
13513 * config/i386/i386.c (classify_argument): Handle V1DImode.
13514 (function_arg_advance_32): Ditto.
13515 (function_arg_32): Ditto.
13516 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13517 mmx_addv1di3 insn pattern.
13518 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13519 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13520 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13521 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13522 Remove definitions of built-in functions.
13523 (V1DI_type_node): New node.
13524 (v1di_ftype_v1di_int): Ditto.
13525 (v1di_ftype_v1di_v1di): Ditto.
13526 (v2si_ftype_v2si_si): Ditto.
13527 (v4hi_ftype_v4hi_di): Remove node.
13528 (v2si_ftype_v2si_di): Ditto.
13529 (ix86_init_mmx_sse_builtins): Handle V1DImode.
13530 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13531 Redefine builtins using def_builtin_const with *_ftype_*_int node.
13532 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13533 Add new builtins using def_builtin_const.
13534 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13535 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13536 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13537 * config/i386/mmintrin.h (__v1di): New typedef.
13538 (_mm_add_si64): Cast arguments to __v1di type.
13539 (_mm_sub_si64): Ditto.
13540 (_mm_sll_pi16): Cast __count to __v4hi type.
13541 (_mm_sll_pi32): Cast __count to __v2si type.
13542 (_mm_sll_si64): Cast arguments to __v1di type.
13543 (_mm_srl_pi16): Cast __count to __v4hi type.
13544 (_mm_srl_pi32): Cast __count to __v2si type.
13545 (_mm_srl_si64): Cast arguments to __v1di type.
13546 (_mm_sra_pi16): Cast __count to __v4hi type.
13547 (_mm_sra_pi32): Cast __count to __v2si type.
13548 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13549 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13550 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13551 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13552 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13553 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13554 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13555 (_mm_srai_pi32): Use __builtin_ia32_psradi.
13556 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13557 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13558 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13559 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13561 2008-03-07 Joseph Myers <joseph@codesourcery.com>
13563 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13565 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
13568 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13569 reg+const addressing for Altivec modes. Don't generate reg+reg
13570 addressing for TFmode or TDmode quantities.
13572 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
13574 * c-common.c (vector_types_convertible_p): Call langhook
13575 instead of comptypes.
13577 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
13580 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13581 integral and scalar float variables which have a
13584 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
13586 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13587 dwarf_register_span hook when emitting unwind information for
13588 register-to-memory saves.
13589 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13590 (rs6000_frame_related): Remove call to spe_synthesize_frame.
13592 2008-03-06 Jakub Jelinek <jakub@redhat.com>
13594 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13595 for the same VAR_DECL.
13597 2008-03-06 Tom Tromey <tromey@redhat.com>
13599 * treelang: Delete.
13600 * doc/standards.texi (Standards): Don't mention treelang.
13601 * doc/invoke.texi (Overall Options): Don't mention treelang.
13602 * doc/install.texi (Prerequisites): Don't mention bison or
13604 (Configuration): Don't mention treelang.
13605 (Building): Likewise.
13606 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13608 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
13610 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13611 word-extractions out of a multi-word object.
13613 2008-03-06 Richard Guenther <rguenther@suse.de>
13615 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13616 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13617 result type and precision.
13618 * expr.c (get_inner_reference): Set unsignedp based on the result
13619 type of BIT_FIELD_REF.
13620 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13621 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13622 (try_instantiate_multiple_fields): Likewise. Use the correct type
13624 (sra_build_assignment): Likewise.
13625 (sra_build_elt_assignment): Likewise.
13626 (sra_explode_bitfield_assignment): Likewise.
13627 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13628 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13629 set BIT_FIELD_REF_UNSIGNED.
13630 (vectorizable_load): Likewise.
13632 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
13634 * cse.c (cse_extended_basic_block): Invalidate artificial defs
13637 2008-03-06 Richard Guenther <rguenther@suse.de>
13639 * alias.c (struct alias_set_entry): Move has_zero_child field
13640 to pack with alias_set.
13642 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13644 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13647 2008-03-05 Ian Lance Taylor <iant@google.com>
13649 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13651 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
13653 * fwprop.c (update_df): Support width and offset parameters of
13655 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13656 global_conflicts): Change DF_REF_EXTRACT to either
13657 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13658 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13659 * df-scan.c (df_ref_record, df_defs_record,
13660 df_ref_create_structure, df_def_record_1, df_uses_record,
13661 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13662 df_bb_refs_collect, df_entry_block_defs_collect,
13663 df_exit_block_uses_collect): Support new width and offset fields.
13664 (ref_extract_pool): New storage pool.
13665 (df_free_ref): New function.
13666 (df_reg_chain_unlink, df_free_collection_rec,
13667 df_sort_and_compress_refs): Call df_free_ref.
13668 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13670 (df_ref_create_structure): Allocate df_ref_extract if offset and
13671 width fields are used.
13672 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13673 (df_uses_record): Get offset and width from ZERO_EXTRACT
13675 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13676 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13677 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13678 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13679 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13680 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13681 (df_ref_extract): New structure.
13682 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13683 (df_ref_create): Add width and offset parameters.
13685 2008-03-05 Richard Guenther <rguenther@suse.de>
13687 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13688 Use ranges_overlap_p.
13689 (offset_overlaps_with_access): Rename
13690 to ranges_overlap_p and move ...
13691 * tree-flow-inline.h (ranges_overlap_p): ... here.
13693 * tree.h (get_inner_reference, handled_component_p): Update
13696 * tree.h (record_component_aliases, get_alias_set,
13697 alias_sets_conflict_p, alias_sets_must_conflict_p,
13698 objects_must_conflict_p): Move declarations ...
13699 * alias.h (record_component_aliases, get_alias_set,
13700 alias_sets_conflict_p, alias_sets_must_conflict_p,
13701 objects_must_conflict_p): ... here.
13702 Include coretypes.h.
13703 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13705 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
13707 * cfg.c: Include tree-flow.h.
13708 (remove_edge_raw): Call redirect_edge_var_map_clear.
13709 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13710 * tree-flow-inline.h (redirect_edge_var_map_def): New.
13711 (redirect_edge_var_map_result): New.
13712 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13713 PENDING_STMT use with redirect_edge_var_map_*.
13714 * tree-ssa.c (edge_var_maps): New definition.
13715 (redirect_edge_var_map_add): New.
13716 (redirect_edge_var_map_clear): New.
13717 (redirect_edge_var_map_dup): New.
13718 (redirect_edge_var_map_vector): New.
13719 (redirect_edge_var_map_destroy): New.
13720 (ssa_redirect_edge): Replace PENDING_STMT use with
13721 redirect_edge_var_map_*.
13722 (flush_pending_stmts): Same.
13723 (delete_tree_ssa): Destroy edge var map.
13724 * tree-flow.h (struct _edge_var_map): New.
13725 Define edge_var_map vector type.
13726 Declare redirect_edge_var_map_* prototypes.
13727 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13728 * tree-cfg.c (reinstall_phi_args): Replace
13729 PENDING_STMT use with redirect_edge_var_map_*.
13731 2008-03-05 Richard Guenther <rguenther@suse.de>
13733 PR tree-optimization/35472
13734 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13735 whose single use_stmt has a overlapping set of loaded and
13736 stored symbols as that use_stmt might be a noop assignment then.
13738 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
13740 * gthr-rtems.h: Implement __gthread_mutex_destroy.
13742 2008-03-05 Richard Guenther <rguenther@suse.de>
13745 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13746 should be constants.
13747 * tree-cfg.c (verify_expr): Verify it.
13748 * fold-const.c (fold_truthop): Remove code generating
13749 BIT_FIELD_REFs of structure bases.
13750 (fold_binary): Likewise.
13751 (fold_ternary): Position and size of BIT_FIELD_REFs are
13752 always host integers.
13753 (make_bit_field_ref): Remove.
13754 (optimize_bit_field_compare): Remove.
13755 (all_ones_mask_p): Remove.
13757 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
13760 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13761 (split_block_and_df_analyze): New. Split basic block and rebuild
13763 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13765 (split_pattern_seq): Likewise.
13766 (erase_matching_seqs): Likewise.
13767 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13769 2008-03-04 Geoff Keating <geoffk@apple.com>
13771 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13772 declaration and code.
13773 (tree_invalid_nonnegative_warnv_p): Likewise.
13775 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
13777 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13778 examples. Truncate option-names then causing overfull hbox.
13780 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13783 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13785 * configure: Rebuilt.
13787 2008-03-04 Rafael Espindola <espindola@google.com>
13789 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13790 (tree_unary_nonnegative_warnv_p): New.
13791 (tree_binary_nonnegative_warnv_p): New.
13792 (tree_single_nonnegative_warnv_p): New.
13793 (tree_invalid_nonnegative_warnv_p): New.
13794 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13796 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13799 * opts.c (handle_option): Postpone 'unknown option' errors only for
13802 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
13805 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13808 2008-03-04 Rafael Espindola <espindola@google.com>
13810 * fold-const.c (tree_unary_nonzero_warnv_p): New.
13811 (tree_binary_nonzero_warnv_p): New.
13812 (tree_single_nonzero_warnv_p): New.
13813 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13815 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
13817 PR middle-end/35456
13818 * fold-const.c (fold_cond_expr_with_comparison): Prevent
13819 transformations for modes that have signed zeros.
13820 * ifcvt.c (noce_try_abs): Ditto.
13822 2008-03-04 Joseph Myers <joseph@codesourcery.com>
13824 * config/i386/i386.c (override_options): Force
13825 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13827 2008-03-04 Jan Hubicka <jh@suse.cz>
13830 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13833 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13835 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
13836 label to probe the stack.
13838 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
13840 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13841 (__gthr_win32_mutex_destroy): Declare.
13842 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13843 __gthr_win32_mutex_destroy.
13844 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
13846 2008-03-03 Jan Hubicka <jh@suse.cz>
13849 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13850 aggressive on inlining cold calls.
13852 2008-03-03 Richard Guenther <rguenther@suse.de>
13854 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13855 struct copies into the expression table.
13856 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13857 (try_to_simplify): Likewise.
13858 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13859 integral and pointer arguments which do not change the
13860 precision to NOP_EXPRs.
13861 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13862 VIEW_CONVERT_EXPR case.
13864 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
13866 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13867 defined in a loop at depth 0 is invariant.
13868 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13869 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13870 be called at loop depth 0.
13872 2008-03-02 Jakub Jelinek <jakub@redhat.com>
13875 * gcc.c (process_command): Update copyright notice dates.
13876 * gcov.c (print_version): Likewise.
13877 * gcov-dump.c (print_version): Likewise.
13878 * mips-tfile.c (main): Likewise.
13879 * mips-tdump.c (main): Likewise.
13881 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13884 * c-common.c (flag_permissive): Delete.
13885 (constant_expression_warnings): Check flags first.
13886 (constant_expression_error): New.
13887 * c-common.h (flag_permissive): Delete.
13888 (constant_expression_error): Declare.
13889 * flags.h (flag_permissive): Declare. Update description.
13890 * diagnostic.c (pedwarn): Update.
13892 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13893 (permissive_error_kind): New.
13894 * toplev.c (flag_permissive): Define. Update description.
13895 * toplev.h (permissive_error_kind): Declare.
13896 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13897 (pedwarn_c90): Use pedantic_warning_kind.
13898 * c-opts.c (c_common_post_options): flag_permissive does not affect
13899 flag_pedantic_errors.
13901 2008-03-02 Joseph Myers <joseph@codesourcery.com>
13903 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13904 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13905 __absvsi2, __absvDI2): Use unsigned arithmetic.
13907 2008-03-02 Andi Kleen <ak@suse.de>
13908 Richard Guenther <rguenther@suse.de>
13910 * struct-equiv.c: Remove file.
13911 * cfg_cleanup.c (condjump_equiv_p): Remove.
13912 * Makefile.in (OBJS-common): Remove struct-equiv.o.
13913 (struct-equiv.o): Remove rule.
13914 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13915 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13916 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13918 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13920 * ifcvt.c (noce_process_if_block): Try to handle only the then
13921 block if the else block exists but isn't suitable.
13923 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13926 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13927 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13928 regression from previous patch.
13930 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
13933 * gthr.h: Add __gthread_mutex_destroy as a function that must be
13935 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13936 * gthr-single.h (__gthread_mutex_destroy): Likewise.
13937 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13938 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13939 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13940 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13941 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13942 (__gthread_mutex_destroy_function): Rename to
13943 __gthread_mutex_destroy.
13944 * gthr-dce.h (__gthread_mutex_destroy): Call
13945 pthread_mutex_destroy.
13946 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13947 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13948 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13950 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13952 * df-scan.c (df_ref_chain_change_bb): Simplify.
13953 (df_insn_change_bb): Add new_bb argument. Simplify. Call
13954 set_block_for_insn if there's any change.
13955 * df.h ((df_insn_change_bb): Fix prototype.
13956 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13957 df_insn_change_bb, don't call set_block_for_insn.
13958 * emit-rtl.c (reorder_insns): Likewise.
13959 * haifa-sched.c (move_insn): Likewise.
13961 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13963 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13965 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
13967 * tree-flow-inline.h (next_readonly_imm_use): Return
13968 NULL_USE_OPERAND_P after the end.
13970 2008-03-01 Richard Guenther <rguenther@suse.de>
13972 PR tree-optimization/35411
13973 * tree-sra.c (sra_build_assignment): Split conversion to
13974 final type to a separate statement if we are not assigning
13977 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
13979 * fold-const.c (fold_convertible_p): Correct the logic to follow
13980 that in fold_convert().
13982 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
13985 * tree-inline.c (build_duplicate_type): When we make a
13986 duplicate type, make it unique in the canonical types system.
13988 2008-02-29 Tom Tromey <tromey@redhat.com>
13990 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13991 input_file_stack_history, input_file_stack_restored): Remove.
13992 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13993 * input.h (struct file_stack): Remove.
13994 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13995 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13997 * diagnostic.h (struct diagnostic_context) <last_module>: Change
13999 (diagnostic_last_module_changed): Add 'map' argument.
14000 (diagnostic_set_last_function): Likewise.
14001 * diagnostic.c (undiagnostic_report_current_module): Iterate using
14002 line map, not input_file_stack.
14003 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14005 2008-02-29 Paul Brook <paul@codesourcery.com>
14007 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14009 2008-02-29 Paul Brook <paul@codesourcery.com>
14011 * config/arm/ieee754-df.S (muldf3): Use RET macros.
14013 2008-02-29 Richard Guenther <rguenther@suse.de>
14015 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14017 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14018 value for comparing for a store match.
14019 (simplify_unary_expression): Do nothing for SSA_NAMEs.
14020 (try_to_simplify): Do not do a full-blown reference lookup.
14022 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14024 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14025 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14027 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14029 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
14031 * tree-loop-linear.c (try_interchange_loops): Compare memory access
14032 strides against cache sizes.
14034 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14036 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14039 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
14041 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14042 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14043 is smaller than the original promoted value.
14044 (simplify_subreg): If OP is a SUBREG, try to preserve its
14045 SUBREG_PROMOTED_VAR_P information.
14047 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
14049 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14050 (VN_INFO_GET): Allocate new objects on the obstack.
14051 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
14052 for rpo_numbers_temp, for consistency.
14053 (free_scc_vn): Free the obstack.
14055 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
14057 * doc/invoke.texi: Document -ftree-loop-distribution.
14058 * tree-loop-distribution.c: New.
14059 * tree-pass.h (pass_loop_distribution): New.
14060 * graphds.h (struct graph): Add htab_t indices.
14061 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14062 * tree-vectorizer.c (rename_variables_in_loop): Extern.
14063 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14064 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14065 * tree-data-ref.c (debug_data_dependence_relations): New.
14066 (dump_data_dependence_relation): Also print data references.
14067 (free_data_ref): Extern.
14068 (same_access_functions): Moved...
14069 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14070 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14071 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14072 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14073 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14074 (stmts_from_loop): Skip LABEL_EXPR.
14075 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14077 (build_rdg): Initialize rdg->indices htab.
14078 (free_rdg, stores_from_loop, ref_base_address,
14079 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14080 have_similar_memory_accesses_1, ref_base_address_1,
14081 remove_similar_memory_refs): New.
14082 * tree-data-ref.h: Depend on tree-chrec.h.
14083 (debug_data_dependence_relations, free_data_ref): Declared.
14084 (same_access_functions): ... here.
14085 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14087 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14088 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14089 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14090 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14091 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14092 rdg_vertex_for_stmt): Declared.
14093 (struct rdg_edge): Add level.
14095 (free_rdg, stores_from_loop, remove_similar_memory_refs,
14096 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14098 (rdg_has_similar_memory_accesses): New.
14099 * tree-vect-analyze.c: Remove unused static decls.
14100 * lambda.h (dependence_level): New.
14101 * common.opt (ftree-loop-distribution): New.
14102 * tree-flow.h (mark_virtual_ops_in_bb,
14103 slpeel_tree_duplicate_loop_to_edge_cfg,
14104 rename_variables_in_loop): Declared.
14105 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14106 (OBJS-common): Add tree-loop-distribution.o.
14107 (tree-loop-distribution.o): New rule.
14108 * tree-cfg.c (mark_virtual_ops_in_bb): New.
14109 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14110 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14112 2008-02-28 Joseph Myers <joseph@codesourcery.com>
14115 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14116 other than structures and unions.
14118 2008-02-28 Richard Guenther <rguenther@suse.de>
14121 2008-02-26 Richard Guenther <rguenther@suse.de>
14123 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14124 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14125 (lookup_decl_from_uid): Declare.
14126 (remove_decl_from_map): Likewise.
14127 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14128 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14129 (decl_for_uid_map): New global hashtable mapping DECL_UID
14131 (init_ttree): Allocate it.
14132 (insert_decl_to_uid_decl_map): New helper function.
14133 (make_node_stat): Insert new decls into the map.
14134 (copy_node_stat): Likewise.
14135 (lookup_decl_from_uid): New function.
14136 (remove_decl_from_map): Likewise.
14137 (print_decl_for_uid_map_statistics): New helper.
14138 (dump_tree_statistics): Call it.
14140 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14141 (referenced_var_iterator): Adjust.
14142 (FOR_EACH_REFERENCED_VAR): Adjust.
14143 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14144 (num_referenced_vars): Adjust.
14145 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14146 (first_referenced_var): Remove.
14147 (end_referenced_vars_p): Likewise.
14148 (next_referenced_var): Likewise.
14149 (referenced_var_iterator_set): New helper function.
14150 * tree-dfa.c (referenced_var_lookup): Adjust.
14151 (referenced_var_check_and_insert): Likewise.
14152 (remove_referenced_var): Likewise.
14153 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14154 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14155 (verify_call_clobbering): Likewise.
14156 (verify_memory_partitions): Likewise.
14157 (init_tree_ssa): Allocate bitmap instead of hashtable for
14159 (delete_tree_ssa): Adjust.
14160 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14161 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14162 (compute_tag_properties): Likewise.
14163 (set_initial_properties): Likewise.
14164 (find_partition_for): Likewise.
14165 (update_reference_counts): Likewise.
14166 (dump_may_aliases_for): Likewise.
14167 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14168 (add_call_clobber_ops): Likewise.
14169 (add_call_read_ops): Likewise.
14170 (get_asm_expr_operands): Likewise.
14171 * tree-into-ssa.c (dump_decl_set): Likewise.
14172 (update_ssa): Likewise.
14173 * tree-sra.c (scan_function): Likewise.
14174 (decide_instantiations): Likewise.
14175 (scalarize_parms): Likewise.
14176 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14177 (dsa_named_for): Likewise.
14178 * tree-ssa-structalias.c (update_alias_info): Likewise.
14179 (merge_smts_into): Likewise.
14181 2008-02-27 David Daney <ddaney@avtrex.com>
14184 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14185 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14186 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14187 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14188 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14190 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
14193 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14194 (BUILT_IN_NEXTTOWARD): Remove.
14195 (BUILT_IN_NEXTTOWARDF): Ditto.
14196 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14197 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
14199 2008-02-27 Tom Tromey <tromey@redhat.com>
14201 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14202 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14204 2008-02-27 Jan Beulich <jbeulich@novell.com>
14206 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14207 update the respective field on newdecl.
14209 2008-02-27 Revital Eres <eres@il.ibm.com>
14211 PR rtl-optimization/34999
14212 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14213 crossing edges that ends with a call insn.
14214 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14215 call insn and clear the EDGE_CROSSING flag of the crossing edge
14216 when fixing fallthru edges.
14218 2008-02-27 Richard Guenther <rguenther@suse.de>
14220 PR middle-end/35390
14221 * fold-const.c (fold_unary): Return the correct argument,
14222 converted to the result type.
14224 2008-02-27 Richard Guenther <rguenther@suse.de>
14226 PR middle-end/34971
14227 * expr.c (expand_expr_real_1): Assert on rotates that operate
14229 * fold-const.c (fold_binary): Use the types precision, not the
14230 bitsize of the mode if folding rotate expressions. Build rotates
14231 only for full modes.
14233 2008-02-27 Jakub Jelinek <jakub@redhat.com>
14235 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14236 and CPP_PRAGMA_EOL.
14237 * c-pragma.c (pragma_ns_name): New typedef.
14238 (registered_pp_pragmas): New variable.
14239 (c_pp_lookup_pragma): New function.
14240 (c_register_pragma_1): If flag_preprocess_only, do nothing
14241 for non-expanded pragmas, for expanded ones push pragma's
14242 namespace and name into registered_pp_pragmas vector.
14243 (c_invoke_pragma_handler): Register OpenMP pragmas even when
14244 flag_preprocess_only, don't register GCC pch_preprocess
14245 pragma if flag_preprocess_only.
14246 * c-opts.c (c_common_init): Call init_pragma even if
14247 flag_preprocess_only.
14248 * c-pragma.c (c_pp_lookup_pragma): New prototype.
14249 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14250 cpp_register_pragma if flag_preprocess_only.
14252 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14255 * c-parser.c (c_parser_translation_unit): Warn for empty
14256 translation unit, not empty source file.
14258 2008-02-26 Paul Brook <paul@codesourcery.com>
14260 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14261 operand for Thumb-2.
14262 * config/arm/arm.h (reg_class): Add CORE_REGS.
14263 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14264 (BASE_REG_CLASS): Use CORE_REGS.
14265 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14266 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14267 (REGNO_OK_FOR_INDEX_P): Exclude SP.
14268 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
14269 ARM_REGNO_OK_FOR_INDEX_P.
14270 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14271 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14272 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14273 (ldm/stm peepholes): Ditto.
14274 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14275 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14276 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14277 * config/arm/constraints.md: Enable "k" constraint on ARM.
14279 2008-02-27 Ben Elliston <bje@au.ibm.com>
14281 * config/rs6000/rs6000.c: Annotate cache line size field in all
14282 instances of struct processor_costs.
14284 2008-02-26 David Edelsohn <edelsohn@gnu.org>
14286 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14287 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14288 jump_bypass): New counters.
14289 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14290 * dce.c (gate_ud_dce): Same.
14291 (gate_fast_dce): Same.
14292 * dse.c (gate_dse1): New function.
14293 (gate_dse2): New function.
14294 (gate_dse): Merge results of new gate functions.
14295 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14296 (gate_handle_jump_bypass): Add dbg_cnt.
14297 (gate_handle_gcse): Add dbg_cnt.
14298 * ifcvt.c (gate_handle_if_conversion): Same.
14299 (gate_handle_if_after_combine): Same.
14300 (gate_handle_if_after_reload): Same.
14301 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14303 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
14305 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14307 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14309 2008-02-26 Jason Merrill <jason@redhat.com>
14312 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14313 alone if it's the naming decl for the type's main variant.
14315 2008-02-26 Tom Tromey <tromey@redhat.com>
14317 * system.h (USE_MAPPED_LOCATION): Poison.
14318 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14319 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14320 (make_goto_expr_edges): Likewise.
14321 (remove_bb): Likewise.
14322 (execute_warn_function_return): Likewise.
14323 * basic-block.h (struct edge_def) <goto_locus>: Change type to
14325 * c-common.c (fname_decl): Remove old location code.
14326 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14328 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14330 (ASM_INPUT_SOURCE_LOCATION): Likewise.
14331 (gen_rtx_ASM_INPUT): Likewise.
14332 (gen_rtx_ASM_INPUT_loc): Likewise.
14333 (get_rtx_asm_OPERANDS): Remove.
14334 * cfglayout.c (insn_locators_alloc): Remove old location code.
14335 (set_curr_insn_source_location): Likewise.
14336 (curr_insn_locator): Likewise.
14337 * print-tree.c (print_node): Remove old location code.
14338 * tree-mudflap.c (mf_varname_tree): Remove old location code.
14339 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14340 * cfgexpand.c (expand_gimple_cond_expr): Don't use
14341 location_from_locus.
14342 (construct_exit_block): Remove old location code.
14343 * emit-rtl.c (force_next_line_note): Remove old location code.
14344 * profile.c (branch_prob): Remove old location code.
14345 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14346 LOC_LINE): Remove old-location variants.
14347 * langhooks.c (lhd_print_error_function): Remove old location
14349 * configure, config.in: Rebuilt.
14350 * configure.ac (--enable-mapped-location): Remove.
14351 * c-decl.c (c_init_decl_processing): Remove old location code.
14352 (finish_function): Likewise.
14353 * recog.c (decode_asm_operands): Remove old location code.
14354 * c-pch.c (c_common_read_pch): Remove old location code.
14355 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14357 * gimple-low.c (lower_function_body): Remove old location code.
14358 * toplev.c (unknown_location): Remove.
14359 (push_srcloc): Remove old-location variant.
14360 (process_options): Remove old location code.
14361 (lang_dependent_init): Likewise.
14362 * input.h (UNKNOWN_LOCATION): Move definition.
14363 (location_t): Undeprecate.
14364 (source_locus): Remove.
14365 (location_from_locus): Remove.
14366 (struct location_s): Remove.
14367 Remove all old-location code.
14368 (input_line, input_filename): Remove.
14369 * final.c (final_scan_insn): Remove old location code.
14370 * diagnostic.c (diagnostic_build_prefix): Remove
14371 USE_MAPPED_LOCATION test.
14372 * tree.h (gimple_stmt) <locus>: Now a location_t.
14373 (tree_exp) <locus>: Likewise.
14374 (DECL_IS_BUILTIN): Remove old-location variant.
14375 (annotate_with_file_line, annotate_with_locus): Likewise.
14376 (expr_locus, set_expr_locus): Update.
14377 * tree.c (build1_stat): Remove old location code.
14378 (last_annotated_node): Remove.
14379 (annotate_with_file_line): Remove old-location variant.
14380 (annotate_with_locus): Likewise.
14381 (expr_location): Remove old location code.
14382 (set_expr_location): Likewise.
14383 (expr_has_location): Likewise.
14384 (expr_locus): Likewise.
14385 (set_expr_locus): Likewise.
14386 (expr_filename): Don't use location_from_locus.
14387 (expr_lineno): Likewise.
14388 * rtl-error.c (location_for_asm): Remove old location code.
14389 * c-lex.c (cb_line_change): Remove old location code.
14390 (fe_file_change): Likewise.
14391 (cb_def_pragma): Likewise.
14392 (c_lex_with_flags): Likewise.
14393 * gengtype.c (do_typedef): Don't special-case location types.
14394 (define_location_structures): Remove.
14395 (main): Don't call define_location_structures.
14396 * tree-pretty-print.c (dump_implicit_edges): Remove old location
14399 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14402 * builtins.def (BUILT_IN_STDARG_START): Remove.
14403 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14404 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14405 * tree-inline.c (inline_forbidden_p_1): Likewise.
14407 2008-02-26 Richard Guenther <rguenther@suse.de>
14409 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14410 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14411 (lookup_decl_from_uid): Declare.
14412 (remove_decl_from_map): Likewise.
14413 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14414 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14415 (decl_for_uid_map): New global hashtable mapping DECL_UID
14417 (init_ttree): Allocate it.
14418 (insert_decl_to_uid_decl_map): New helper function.
14419 (make_node_stat): Insert new decls into the map.
14420 (copy_node_stat): Likewise.
14421 (lookup_decl_from_uid): New function.
14422 (remove_decl_from_map): Likewise.
14423 (print_decl_for_uid_map_statistics): New helper.
14424 (dump_tree_statistics): Call it.
14426 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14427 (referenced_var_iterator): Adjust.
14428 (FOR_EACH_REFERENCED_VAR): Adjust.
14429 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14430 (num_referenced_vars): Adjust.
14431 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14432 (first_referenced_var): Remove.
14433 (end_referenced_vars_p): Likewise.
14434 (next_referenced_var): Likewise.
14435 (referenced_var_iterator_set): New helper function.
14436 * tree-dfa.c (referenced_var_lookup): Adjust.
14437 (referenced_var_check_and_insert): Likewise.
14438 (remove_referenced_var): Likewise.
14439 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14440 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14441 (verify_call_clobbering): Likewise.
14442 (verify_memory_partitions): Likewise.
14443 (init_tree_ssa): Allocate bitmap instead of hashtable for
14445 (delete_tree_ssa): Adjust.
14446 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14447 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14448 (compute_tag_properties): Likewise.
14449 (set_initial_properties): Likewise.
14450 (find_partition_for): Likewise.
14451 (update_reference_counts): Likewise.
14452 (dump_may_aliases_for): Likewise.
14453 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14454 (add_call_clobber_ops): Likewise.
14455 (add_call_read_ops): Likewise.
14456 (get_asm_expr_operands): Likewise.
14457 * tree-into-ssa.c (dump_decl_set): Likewise.
14458 (update_ssa): Likewise.
14459 * tree-sra.c (scan_function): Likewise.
14460 (decide_instantiations): Likewise.
14461 (scalarize_parms): Likewise.
14462 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14463 (dsa_named_for): Likewise.
14464 * tree-ssa-structalias.c (update_alias_info): Likewise.
14465 (merge_smts_into): Likewise.
14467 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14470 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14471 * c-opts.c (c_common_handle_option): Wall enables
14472 Wvolatile-register-var.
14473 * common.opt: Move Wvolatile-register-var to...
14476 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14478 * common.opt (Wlarger-than=): New.
14479 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14481 * opts.c (common_handle_option): Handle -Wlarger-than=.
14482 * optc-gen.awk: Likewise.
14483 * opth-gen.awk: Likewise.
14484 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14485 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14487 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14489 * c-common.c (match_case_to_enum_1): Add appropriate
14490 OPT_W* parameter to warning.
14491 (c_do_switch_warnings): Likewise.
14492 * c-typeck.c (warning_init): Add one more parameter following
14493 'warning' function.
14494 (push_init_level): Update call to warning_init.
14495 (pop_init_level): Likewise.
14496 (add_pending_init): Likewise.
14497 (output_init_element: Likewise.
14499 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14502 * toplev.c (toplev_main): If there are warnings or error, print
14503 errors for ignored options.
14504 * opts.c (ignored_options): New static variable.
14505 (postpone_unknown_option_error): New.
14506 (print_ignored_options): New.
14507 (handle_option): Postpone errors for unknown -Wno-* options.
14508 * opts.h (print_ignored_options): Declare.
14510 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
14512 * config/mips/mips.md (loadgp_blockage, blockage): Change type
14515 2008-02-25 Richard Guenther <rguenther@suse.de>
14518 2008-02-25 Richard Guenther <rguenther@suse.de>
14520 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14521 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14522 (lookup_decl_from_uid): Declare.
14523 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14524 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14525 (decl_for_uid_map): New global hashtable mapping DECL_UID
14527 (init_ttree): Allocate it.
14528 (insert_decl_to_uid_decl_map): New helper function.
14529 (make_node_stat): Insert new decls into the map.
14530 (copy_node_stat): Likewise.
14531 (lookup_decl_from_uid): New function.
14532 (print_decl_for_uid_map_statistics): New helper.
14533 (dump_tree_statistics): Call it.
14535 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14536 (referenced_var_iterator): Adjust.
14537 (FOR_EACH_REFERENCED_VAR): Adjust.
14538 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14539 (num_referenced_vars): Adjust.
14540 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14541 (first_referenced_var): Remove.
14542 (end_referenced_vars_p): Likewise.
14543 (next_referenced_var): Likewise.
14544 (referenced_var_iterator_set): New helper function.
14545 * tree-dfa.c (referenced_var_lookup): Adjust.
14546 (referenced_var_check_and_insert): Likewise.
14547 (remove_referenced_var): Likewise.
14548 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14549 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14550 (verify_call_clobbering): Likewise.
14551 (verify_memory_partitions): Likewise.
14552 (init_tree_ssa): Allocate bitmap instead of hashtable for
14554 (delete_tree_ssa): Adjust.
14555 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14556 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14557 (compute_tag_properties): Likewise.
14558 (set_initial_properties): Likewise.
14559 (find_partition_for): Likewise.
14560 (update_reference_counts): Likewise.
14561 (dump_may_aliases_for): Likewise.
14562 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14563 (add_call_clobber_ops): Likewise.
14564 (add_call_read_ops): Likewise.
14565 (get_asm_expr_operands): Likewise.
14566 * tree-into-ssa.c (dump_decl_set): Likewise.
14567 (update_ssa): Likewise.
14568 * tree-sra.c (scan_function): Likewise.
14569 (decide_instantiations): Likewise.
14570 (scalarize_parms): Likewise.
14571 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14572 (dsa_named_for): Likewise.
14573 * tree-ssa-structalias.c (update_alias_info): Likewise.
14574 (merge_smts_into): Likewise.
14576 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14579 * doc/invoke.texi (-fcx-limited-range): Document new option.
14580 * toplev.c (process_options): Handle -fcx-fortran-rules.
14581 * common.opt: Add documentation for -fcx-fortran-rules.
14583 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14586 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14587 actual behaviour and C99.
14589 2008-02-26 Ben Elliston <bje@au.ibm.com>
14591 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14592 (ASM_CPU_POWER6_SPEC): Likewise.
14593 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14594 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14595 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14597 2008-02-25 Richard Guenther <rguenther@suse.de>
14599 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14600 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14601 (lookup_decl_from_uid): Declare.
14602 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14603 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14604 (decl_for_uid_map): New global hashtable mapping DECL_UID
14606 (init_ttree): Allocate it.
14607 (insert_decl_to_uid_decl_map): New helper function.
14608 (make_node_stat): Insert new decls into the map.
14609 (copy_node_stat): Likewise.
14610 (lookup_decl_from_uid): New function.
14611 (print_decl_for_uid_map_statistics): New helper.
14612 (dump_tree_statistics): Call it.
14614 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14615 (referenced_var_iterator): Adjust.
14616 (FOR_EACH_REFERENCED_VAR): Adjust.
14617 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14618 (num_referenced_vars): Adjust.
14619 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14620 (first_referenced_var): Remove.
14621 (end_referenced_vars_p): Likewise.
14622 (next_referenced_var): Likewise.
14623 (referenced_var_iterator_set): New helper function.
14624 * tree-dfa.c (referenced_var_lookup): Adjust.
14625 (referenced_var_check_and_insert): Likewise.
14626 (remove_referenced_var): Likewise.
14627 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14628 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14629 (verify_call_clobbering): Likewise.
14630 (verify_memory_partitions): Likewise.
14631 (init_tree_ssa): Allocate bitmap instead of hashtable for
14633 (delete_tree_ssa): Adjust.
14634 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14635 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14636 (compute_tag_properties): Likewise.
14637 (set_initial_properties): Likewise.
14638 (find_partition_for): Likewise.
14639 (update_reference_counts): Likewise.
14640 (dump_may_aliases_for): Likewise.
14641 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14642 (add_call_clobber_ops): Likewise.
14643 (add_call_read_ops): Likewise.
14644 (get_asm_expr_operands): Likewise.
14645 * tree-into-ssa.c (dump_decl_set): Likewise.
14646 (update_ssa): Likewise.
14647 * tree-sra.c (scan_function): Likewise.
14648 (decide_instantiations): Likewise.
14649 (scalarize_parms): Likewise.
14650 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14651 (dsa_named_for): Likewise.
14652 * tree-ssa-structalias.c (update_alias_info): Likewise.
14653 (merge_smts_into): Likewise.
14655 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
14658 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14659 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14660 * alias.h (nonoverlapping_memrefs_p): Likewise.
14662 2008-02-25 Jan Beulich <jbeulich@novell.com>
14664 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14665 * config/i386/netware-libgcc.exp: Add __bswap?i2,
14666 __emultls_get_address, __emultls_register_common,
14667 __floatundi?f, and _Unwind_GetIPInfo.
14668 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14669 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14670 (gen_regparm_prefix): Likewise.
14671 (i386_nlm_encode_section_info): Sync with
14672 config/i386/winnt.c:i386_pe_encode_section_info().
14673 (i386_nlm_maybe_mangle_decl_assembler_name): New.
14674 i386_nlm_mangle_decl_assembler_name): New.
14675 (netware_override_options): New.
14676 * config/i386/netware.h (netware_override_options): Declare.
14677 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14678 (i386_nlm_mangle_decl_assembler_name): Declare.
14679 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14681 2008-02-25 Ben Elliston <bje@au.ibm.com>
14684 * c-decl.c (grokdeclarator): Remove unused local variables
14685 `typedef_type' and `type_as_written'.
14687 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14688 unused local variable `has_hot_blocks'.
14689 (fix_crossing_conditional_branches): Remove unused local variable
14692 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
14694 PR middle-end/19984
14695 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14696 using DEF_C99_BUILTIN.
14697 (BUILT_IN_NANF): Ditto.
14698 (BUILT_IN_NANL): Ditto.
14700 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
14701 Revital Eres <eres@il.ibm.com>
14703 * modulo-sched.c (calculate_must_precede_follow): Address TODO
14704 regarding the order of two dependent insns in the same row.
14706 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
14708 * stor-layout.c (layout_decl): Do not bump the alignment of a
14709 bit-field to more than byte alignment if it is packed.
14711 2008-02-24 David Edelsohn <edelsohn@gnu.org>
14713 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14716 2008-02-24 Diego Novillo <dnovillo@google.com>
14718 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14721 * tree-vrp.c (vrp_evaluate_conditional): With
14722 -Wtype-limits, emit a warning when comparing against a
14723 constant outside the natural range of OP0's type.
14724 * c.opt (Wtype-limits): Move ...
14725 * common.opt (Wtype-limits): ... here.
14727 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
14729 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14730 * config/rs6000/e300c2c3.md: New file.
14731 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14733 (rs6000_override_options): Add e300c2 and e300c3 cases to
14734 processor_target_table. Do not allow usage of Altivec or Spe
14735 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14736 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14737 * config/rs6000/rs6000.h (processor_type): Add
14738 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14739 (ASM_CPU_SPEC): Add e300c2 and e300c3.
14740 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14741 and ppce300c3. Include e300c2c3.md.
14743 2008-02-23 David Edelsohn <edelsohn@gnu.org>
14745 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14746 instead of TARGET_STRICT_ALIGN.
14748 2008-02-23 Joseph Myers <joseph@codesourcery.com>
14750 * explow.c (memory_address): Assert that the generated address is
14753 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14756 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14757 * config/darwin-ppc-ldouble-patch.def: New file.
14758 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14759 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14760 SUBTARGET_INIT_BUILTINS if defined.
14761 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14764 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14767 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14768 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14770 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14773 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14774 file" warning condtional on -Winvalid-PCH.
14776 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
14778 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14780 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
14784 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14785 prevent reload from using MMX registers.
14786 (*mov<mode>_internal): Ditto.
14787 (*movv2sf_internal_rex64): Ditto.
14788 (*movv2sf_internal): Ditto.
14790 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14792 PR documentation/31569
14793 * doc/install.texi2html: Use makeinfo --no-number-sections.
14795 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14797 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14798 ensure that we can address an entire entity > 8 bytes. Don't
14799 generate reg+reg addressing for such data.
14801 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14803 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14804 strings when optimizing for size, unless the target cares about
14807 2008-02-22 Tom Tromey <tromey@redhat.com>
14809 * regclass.c (current_pass): Remove declaration.
14811 2008-02-22 Anatoly Sokolov <aesok@post.ru>
14813 * config/avr/libgcc.S (__RAMPZ__): Define.
14814 (__do_copy_data): Add for devices with 128KB code memory.
14816 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14818 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14820 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14822 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
14824 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14827 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14830 * c-typeck.c (build_binary_op): Warn about floating point
14831 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14833 2008-02-21 Janis Johnson <janis187@us.ibm.com>
14836 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14837 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14839 (rs6000_override_options): Set altivec_abi as default, not override,
14840 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14841 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14842 is used; use new member spe_abi.
14843 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14844 spe_abi and altivec_abi.
14846 2008-02-22 Tomas Bily <tbily@suse.cz>
14848 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14850 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14853 * config.build (build_file_translate): Set to `CMD //c' only if
14855 * Makefile.in (build_file_translate): Improve comment.
14857 2008-02-21 Jan Hubicka <jh@suse.cz>
14859 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14860 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14861 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14863 2008-02-21 Michael Matz <matz@suse.de>
14866 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14868 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
14870 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14871 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14872 as insn constraint.
14873 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14874 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14875 SSE_VEC_FLOAT_MODE_P as insn constraint.
14876 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14877 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14878 sse4a_movntdf using MODEF mode iterator.
14879 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14880 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14881 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14882 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14883 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14884 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14885 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14887 2008-02-21 Richard Guenther <rguenther@suse.de>
14889 * tree.def (PAREN_EXPR): New tree code.
14890 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14892 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14893 * expr.c (expand_expr_real_1): Likewise.
14894 * tree-inline.c (estimate_num_insns_1): Likewise.
14895 * tree-complex.c (expand_complex_move): Likewise.
14896 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14899 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14902 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14904 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
14907 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14909 * config/sh/sh.c (find_barrier): Don't go past
14910 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14912 2008-02-20 DJ Delorie <dj@redhat.com>
14914 * config/h8300/h8300.md (insv): Force source operand to be a register.
14916 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14917 as a jump, not as a plain insn.
14919 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
14921 * doc/invoke.texi (Warning Options): Add new option
14922 -Wframe-larger-than=.
14923 (-Wframe-larger-than): Document.
14925 * flags.h (warn_frame_larger_than, frame_larger_than_size):
14926 Add declarations for new option variables.
14928 * final.c (final_start_function): Check the frame size
14929 before emission and issue a Wframe-larger-than warning.
14931 * opts.c (warn_frame_larger_than, frame_larger_than_size):
14932 Add definitions for new option variables.
14933 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14935 * common.opt (Wframe-larger-than=): New option.
14937 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14939 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14940 (<sse>_div<mode>3): Ditto.
14941 (<sse>_vmdiv<mode>3): Ditto.
14942 (<sse>_vmsqrt<mode>2): Ditto.
14943 (*smax<mode>3): Ditto.
14944 (sse5_frcz<mode>2): Ditto.
14945 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
14946 as insn constraint.
14948 2008-02-20 Richard Guenther <rguenther@suse.de>
14950 PR middle-end/35265
14951 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14952 be happy with INTEGRAL_TYPE_P.
14954 2008-02-20 Richard Guenther <rguenther@suse.de>
14956 * fold-const.c (split_tree): Associate floatig-point expressions
14957 if flag_associative_math is set.
14959 2008-02-20 Richard Guenther <rguenther@suse.de>
14961 * tree.h (fold_real_zero_addition_p): Declare.
14962 * fold-const.c (fold_real_zero_addition_p): Export.
14963 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14964 floating-point operations with zero and one.
14966 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
14968 * doc/install.texi: Correct references to CFLAGS, replacing them
14969 with BOOT_CFLAGS. Document flags used during bootstrap for
14972 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
14974 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14975 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14976 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14978 (smin<mode>3): Ditto from similar patterns.
14979 (smax<mode>3): Ditto.
14980 (*ieee_smin<mode>3): Ditto.
14981 (*ieee_smax<mode>3): Ditto.
14982 * config/i386/sse.md (sse): New mode attribute.
14983 (mov<mode>): Macroize expander from movv4sf and movv2df using
14984 SSEMODEF2P mode iterator.
14985 (<sse>_movnt<mode>): Ditto from similar patterns. Use
14986 SSE_VEC_FLOAT_MODE_P as insn constraint.
14987 (storent<mode>): Ditto.
14988 (storent<mode>): Macroize expander from storentsf and storentdf using
14989 MODEF mode iterator.
14990 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14991 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14992 (abs<mode>2): Ditto from similar patterns.
14993 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14994 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14995 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14996 (<sse>_vmsqrt<mode>2): Ditto.
14997 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14998 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14999 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15000 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15001 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15002 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15003 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15005 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15006 iterator and SSE_FLOAT_MODE_P as insn constraint.
15007 (<sse>_ucomi): Ditto from similar patterns.
15008 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15009 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15010 SSE_VEC_FLOAT_MODE_P as insn constraint.
15011 (vcond<mode>): Ditto from similar patterns.
15012 (and<mode>3, *and<mode>3): Ditto.
15013 (<sse>_nand<mode>3): Ditto.
15014 (ior<mode>3, *ior<mode>3): Ditto.
15015 (xor<mode>3, *xor<mode>3): Ditto.
15016 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15017 iterator and SSE_FLOAT_MODE_P as insn constraint.
15018 (*nand<mode>3): Ditto from similar patterns.
15019 (*ior<mode>3): Ditto.
15020 (*xor<mode>3): Ditto.
15022 2008-02-20 Ira Rosen <irar@il.ibm.com>
15024 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15025 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15026 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15028 2008-02-19 Jan Hubicka <jh@suse.cz>
15030 * predict.c (tree_bb_level_predictions): Remove variable next
15031 mistakely introduced by previous commit.
15033 2008-02-19 Jan Hubicka <jh@suse.cz>
15035 * predict.c (predict_paths_leading_to): Rewrite.
15036 (predict_paths_for_bb): New.
15037 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15039 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15042 * Makefile.in (build_file_translate): New.
15043 (gcc-vers.texi): Use it for translating $(abs_srcdir).
15044 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15045 * configure.ac (build_file_translate): Substitute it.
15046 * configure: Regenerate.
15048 2008-02-19 Jan Hubicka <jh@suse.cz>
15050 PR rtl-optimization/34408
15051 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15054 2008-02-19 Jan Hubicka <jh@suse.cz>
15056 PR middle-end/28779
15057 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15060 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
15063 * config/i386/i386-modes.def: Revert the last DI alignment
15064 change until Ada people can look into it.
15066 2008-02-19 Nick Clifton <nickc@redhat.com>
15068 * opts.c (print_specific_help): Fix typo in --help text.
15070 2008-02-19 Jakub Jelinek <jakub@redhat.com>
15073 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15074 32-bit inline asm without asm alternatives for host GCC < 3.0.
15076 2008-02-19 Richard Guenther <rguenther@suse.de>
15078 PR tree-optimization/34989
15079 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15080 Allow propagation to INDIRECT_REF if we can simplify only.
15082 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15084 * c-common.c (warn_for_collisions_1): Use appropriate option when
15087 2008-02-19 Nick Clifton <nickc@redhat.com>
15090 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15091 (handle_options): Fix indentation.
15092 (print_filtered_help): If no language-specific options were
15093 displayed tell the user how to list all the options supported by
15094 the language's front-end.
15095 (print_specific_help): Fix indentation and remove duplicate line.
15096 (common_handle_option): Handle the -v option.
15097 For --help enable the display of undocumented options if the -v
15098 switch has been included on the command line.
15099 For --help= check for overlaps in the arguments between the option
15100 classes and the language names and issue a warning when they
15101 cannot be disambiguated.
15102 * c.opt (v): Pass on to the common option handler.
15104 2008-02-19 Revital Eres <eres@il.ibm.com>
15106 * modulo-sched.c (sms_schedule): Change dump message when
15107 create_ddg function fails.
15108 (try_scheduling_node_in_cycle): Rename row to cycle.
15109 (print_partial_schedule): Rename CYCLE to ROW.
15111 2008-02-19 Christian Bruel <christian.bruel@st.com>
15112 Zdenek Dvorak <ook@ucw.cz>
15114 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15116 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15119 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15120 (*x86_movdicc_0_m1_se): Ditto.
15122 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15124 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15125 (CMPtype): Define as __gcc_CMPtype.
15126 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15127 (CMPtype): Define as __gcc_CMPtype.
15129 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
15131 Support valgrind 3.3 for --enable-checking=valgrind.
15132 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15134 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15135 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15136 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15137 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15138 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15139 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15140 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15142 * ggc-zone.c: Similar.
15143 * ggc-page.c: Similar.
15145 2008-02-19 Paul Brook <paul@codesourcery.com>
15148 * config/arm/ieee754-df.S: Fix do_it typo.
15149 * config/arm/ieee754-sf.S: Fix do_it typo.
15151 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15154 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15155 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15156 (OPTION_MASK_ISA_SSE_SET): Likewise.
15157 (OPTION_MASK_ISA_SSE2_SET): Likewise.
15158 (OPTION_MASK_ISA_SSE3_SET): Likewise.
15159 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15160 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15161 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15162 (OPTION_MASK_ISA_SSE4_SET): Likewise.
15163 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15164 (OPTION_MASK_ISA_SSE5_SET): Likewise.
15165 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15166 (OPTION_MASK_ISA_MMX_UNSET): Updated.
15167 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15168 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15169 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15170 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15171 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15172 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15173 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15174 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15175 (OPTION_MASK_ISA_SSE4): Removed.
15176 (ix86_handle_option): Turn on bits in ix86_isa_flags and
15177 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15178 (override_options): Don't turn on implied SSE/MMX bits in
15181 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15183 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15186 2008-02-18 Joey Ye <joey.ye@intel.com>
15188 PR middle-end/34921
15189 * tree-nested.c (insert_field_into_struct): Set type alignment
15190 to field alignment if the former is less than the latter.
15192 2008-02-18 Jakub Jelinek <jakub@redhat.com>
15194 * BASE-VER: Set to 4.4.0.
15196 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15198 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15199 * doc/cfg.texi: Likewise.
15200 * doc/extend.texi: Likewise.
15201 * doc/gty.texi: Likewise.
15202 * doc/invoke.texi: Likewise.
15203 * doc/loop.texi: Likewise.
15204 * doc/md.texi: Likewise.
15205 * doc/passes.texi: Likewise.
15206 * doc/rtl.texi: Likewise.
15207 * doc/sourcebuild.texi: Likewise.
15208 * doc/tm.texi: Likewise.
15209 * doc/tree-ssa.texi: Likewise.
15211 2008-02-17 Richard Guenther <rguenther@suse.de>
15213 PR middle-end/35227
15214 * tree-complex.c (init_parameter_lattice_values): Handle parameters
15215 without default definition.
15217 2008-02-17 Richard Guenther <rguenther@suse.de>
15219 PR tree-optimization/35231
15220 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15223 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
15226 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15227 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15228 libgcc_cmp_return mode.
15230 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15233 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15235 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
15237 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15240 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15242 * doc/c-tree.texi: Use `@.' where appropriate.
15243 * doc/extend.texi: Likewise.
15244 * doc/install.texi: Likewise.
15245 * doc/invoke.texi: Likewise.
15246 * doc/loop.texi: Likewise.
15247 * doc/makefile.texi: Likewise.
15248 * doc/md.texi: Likewise.
15249 * doc/passes.texi: Likewise.
15250 * doc/standards.texi: Likewise.
15251 * doc/tm.texi: Likewise.
15253 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15255 PR middle-end/35196
15256 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15258 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15259 rather than in entry_bb.
15261 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15263 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15264 libgcc_cmp_return mode.
15266 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15268 PR middle-end/35130
15269 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15270 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15272 2008-02-15 Richard Guenther <rguenther@suse.de>
15273 Zdenek Dvorak <ook@ucw.cz>
15275 PR tree-optimization/35164
15276 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15277 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15278 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15279 Only propagate addresses which do not have abnormal SSA_NAMEs
15282 2008-02-15 Joseph Myers <joseph@codesourcery.com>
15285 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15287 2008-02-15 Jan Hubicka <jh@suse.cz>
15289 PR middle-end/35149
15290 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15292 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15294 PR middle-end/34621
15295 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15296 when calculating alignment_pad.
15298 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15300 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15301 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15302 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15303 and STACK_BOUNDARY define.
15305 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
15307 PR preprocessor/35061
15308 * c-pragma.c (handle_pragma_pop_macro): Check that
15309 pushed_macro_table has been allocated.
15311 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
15313 PR middle-end/35136
15314 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15315 (force_gimple_operand): Likewise.
15316 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15317 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15318 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15319 (find_interesting_uses_address): Check addressability and alignment
15320 of the base expression only after substituting bases of IVs into it.
15322 2008-02-14 Michael Matz <matz@suse.de>
15325 * function.c (instantiate_virtual_regs_in_insn): Reload address
15326 before falling back to reloading the whole operand.
15328 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
15330 * config/s390/s390.c (s390_mainpool_start): Emit the pool
15331 before the first section switch note.
15333 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15335 * doc/bugreport.texi: Update copyright years.
15336 * doc/c-tree.texi: Likewise.
15337 * doc/cfg.texi: Likewise.
15338 * doc/cpp.texi: Likewise.
15339 * doc/cppinternals.texi: Likewise.
15340 * doc/fragments.texi: Likewise.
15341 * doc/frontends.texi: Likewise.
15342 * doc/gcc.texi: Likewise.
15343 * doc/gty.texi: Likewise.
15344 * doc/hostconfig.texi: Likewise.
15345 * doc/implement-c.texi: Likewise.
15346 * doc/libgcc.texi: Likewise.
15347 * doc/loop.texi: Likewise.
15348 * doc/makefile.texi: Likewise.
15349 * doc/options.texi: Likewise.
15350 * doc/passes.texi: Likewise.
15351 * doc/rtl.texi: Likewise.
15352 * doc/sourcebuild.texi: Likewise.
15353 * doc/standards.texi: Likewise.
15354 * doc/tree-ssa.texi: Likewise.
15355 * doc/trouble.texi: Likewise.
15357 * doc/extend.texi: Use @: or add comma where appropriate.
15358 * doc/invoke.texi: Likewise.
15359 * doc/tm.texi: Likewise.
15361 2008-02-14 Alan Modra <amodra@bigpond.net.au>
15364 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15367 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
15369 * doc/md.texi (clz, ctz): Add reference.
15370 * doc/rtl.texi (clz, ctz): Likewise.
15372 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15375 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15378 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
15380 * config/s390/s390.c (struct constant_pool): New field
15381 emit_pool_after added.
15382 (s390_mainpool_start): Set the emit_pool_after flag according
15383 to the section switch notes.
15384 (s390_mainpool_finish): Consider emit_pool_after when emitting
15385 the literal pool at the end of the function.
15386 (s390_chunkify_start): Force literal pool splits at section
15389 2008-02-13 Michael Matz <matz@suse.de>
15392 * var-tracking.c (clobber_variable_part): Correctly traverse the
15395 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15398 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15399 Add -fdump-ipa-inline.
15400 * tree-dump.c (dump_files): Remove tree-inlined dump.
15401 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15403 2008-02-12 Richard Guenther <rguenther@suse.de>
15405 PR tree-optimization/35171
15406 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15409 2008-02-12 Richard Guenther <rguenther@suse.de>
15411 PR middle-end/35163
15412 * fold-const.c (fold_widened_comparison): Use get_unwidened in
15413 value-preserving mode. Disallow final truncation.
15415 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
15417 PR middle-end/35136
15418 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15419 code from here to...
15420 (force_gimple_operand): ...here.
15422 2008-02-12 Jakub Jelinek <jakub@redhat.com>
15425 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15426 non-compatible pointers.
15427 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15428 different FIELD_DECLs, try harder by comparing field offsets, sizes
15431 PR inline-asm/35160
15432 * function.c (match_asm_constraints_1): Don't replace the same input
15435 2008-02-12 Anatoly Sokolov <aesok@post.ru>
15437 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15438 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15439 (expand_epilogue): Restore RAMPZ register.
15440 * config/avr/avr.md (RAMPZ_ADDR): New constant.
15442 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
15444 * config/i386/cygwin.asm: (__alloca): Correct calling
15445 convention and alignment.
15446 (__chkstk): Force 8 byte stack alignment.
15448 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
15449 Richard Guenther <rguenther@suse.de>
15451 PR tree-optimization/33992
15452 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15453 the zero we compare against.
15455 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
15457 PR libfortran/35063
15458 * gthr-win32.h (__gthread_mutex_destroy_function): New function
15459 to CloseHandle after unlocking to prevent accumulation of handle
15462 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15464 PR middle_end/34150
15465 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15466 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
15467 and update LABEL_NUSES during and after reload.
15469 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
15471 PR middle-end/34627
15472 * combine.c (simplify_if_then_else): Make sure the comparison is
15473 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15475 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
15478 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15479 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15480 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15481 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15482 * tree.h (get_type_static_bounds): Likewise.
15484 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15486 * doc/invoke.texi (Option Summary, C++ Dialect Options)
15487 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15488 Make -Wfoo language annotations match what the compiler outputs.
15490 2008-02-08 Sa Liu <saliu@de.ibm.com>
15492 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15493 intrinsics spu_convts, spu_convtu, spu_convtf.
15495 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
15497 * doc/extend.texi (Function Attributes) <noinline>: Mention
15498 asm ("") as method to keep calls.
15500 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15503 * doc/options.texi (Options): Replace references to opts.sh with
15505 * opts-common.c: Likewise.
15506 * optc-gen.awk: Likewise.
15508 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15510 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15512 2008-02-07 Richard Henderson <rth@redhat.com>
15515 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15516 EXPR_LIST for the REG_EQUAL instead of a comparison with a
15519 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
15521 PR tree-optimization/35085
15522 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15523 for operand entry oe2 in addition to operand entry oe3 in order to
15524 expose more opportunities for vectorizer sum reduction.
15526 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15529 * Makefile.in (LIBS): Remove $(GMPLIBS).
15530 (cc1-dummy, cc1): Add $(GMPLIBS).
15532 2008-02-06 Jan Hubicka <jh@suse.cz>
15535 * i386.md (moddf_integer): Do not produce partial memory stalls for
15536 targets where it hurts.
15538 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
15541 * optabs.c (expand_float): Do not check for decimal modes when
15542 expanding unsigned integer through signed conversion.
15544 2008-02-06 Nick Clifton <nickc@redhat.com>
15546 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15547 inside the clobber with a match_operand and duplicated operand
15548 number in the constraint.
15549 (ineqbranchsi): Delete redundant comment.
15551 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
15553 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15554 builtin_define ("__USE_INIT_FINI__").
15555 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15557 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15559 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15561 PR documentation/30330
15562 * doc/invoke.texi (C++ Dialect Options)
15563 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15564 For each warning option -Wfoo that allows -Wno-foo, ensure both
15565 -Wfoo and -Wno-foo are listed in the option index. Fix index
15566 entry of -Wswitch-default, index -Wnormalized= including the
15567 `=', and -Wlarger-than-@var{len} including @var{len}.
15569 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15571 * config/i386/i386.md (floatunssisf2): Use
15572 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15573 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15574 Macroize expander using MODEF mode iterator.
15576 2008-02-05 Diego Novillo <dnovillo@google.com>
15578 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15581 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15583 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15586 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15588 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
15591 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15592 to indicate if a message should be generated.
15593 (init_cumulative_args): Updated.
15594 (function_value_32): Likewise.
15596 2008-02-05 Joseph Myers <joseph@codesourcery.com>
15598 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15600 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15603 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15604 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15606 2008-02-04 Diego Novillo <dnovillo@google.com>
15608 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15611 * tree-vrp.c (vrp_evaluate_conditional): With
15612 -Wtype-limits, emit a warning when comparing against a
15613 constant outside the natural range of OP0's type.
15615 2008-02-04 Richard Guenther <rguenther@suse.de>
15617 PR middle-end/33631
15618 * expr.c (count_type_elements): Give for unions instead of
15621 2008-02-04 Richard Guenther <rguenther@suse.de>
15623 PR middle-end/35043
15624 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15625 to TYPE_DOMAINs base type instead of using bitsizetype here.
15627 2008-02-03 Jason Merrill <jason@redhat.com>
15629 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15631 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15634 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15635 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15636 (RS/6000 and PowerPC Options): Fix typos and markup.
15637 * doc/passes.texi (Tree-SSA passes): Likewise.
15639 2008-02-02 Michael Matz <matz@suse.de>
15642 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15643 from record_last_reg_set_info.
15644 (record_last_reg_set_info): Take an RTX argument, iterate over all
15645 constituent hardregs.
15646 (record_last_set_info, record_opr_changes): Change calls to
15647 new signature or to record_last_reg_set_info_regno.
15649 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15651 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15653 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
15655 PR rtl-optimization/34773
15656 * reg-notes.def (EQUAL): Mention significance of combination of
15657 REG_EQUAL and REG_RETVAL.
15658 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15659 insn that has a REG_RETVAL.
15661 2008-02-01 Roger Sayle <roger@eyesopen.com>
15664 * configure.ac (--enable-fixed-point): Disable unless explicitly
15666 * configure: Regenerate.
15668 2008-02-01 Richard Guenther <rguenther@suse.de>
15671 * invoke.texi (-finline-limit): Remove no longer true parts
15672 of the documentation. Note that there is no default value.
15674 2008-02-01 Andrew Pinski <pinskia@gmail.com>
15675 Mark Mitchell <mark@codesourcery.com>
15676 Ben Elliston <bje@au.ibm.com>
15679 * doc/extend.texi (Other Builtins): Document.
15681 2008-01-31 Tom Browder <tom.browder@gmail.com>
15683 * doc/c-tree.texi (Types): Fix grammar.
15684 (Expression trees): Ditto.
15685 * doc/passes.texi (Tree-SSA passes): Ditto.
15687 * doc/configterms.texi (Configure Terms): Fix typo.
15688 * doc/cpp.texi (Common Predefined Macros): Ditto.
15689 * doc/md.texi (Machine Constraints): Ditto.
15691 * doc/makefile.texi (Makefile): Add comma.
15693 2008-01-31 Tom Browder <tom.browder@gmail.com>
15694 Gerald Pfeifer <gerald@pfeifer.com>
15696 * doc/sourcebuild.texi (Front End): Remove references to CVS
15697 and CVSROOT/modules.
15698 (Texinfo Manuals): Replace reference to CVS by one to SVN.
15699 (Back End): Remove reference to CVS.
15701 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15704 * config/mips/mips.c (gen_load_const_gp): New function, taking a
15706 (mips16_gp_pseudo_reg): ...here.
15707 * config/mips/mips.md (load_const_gp): Replace with...
15708 (load_const_gp_<mode>): ...this :P-based insn.
15710 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15712 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15713 options. Minor fixes.
15714 (-std): Move reference to standards closer to where language
15715 standards are first mentioned.
15717 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15719 PR rtl-optimization/34995
15720 * reload.c (alternative_allows_const_pool_ref): Take an rtx
15721 parameter and return a bool. If the rtx parameter is nonnull,
15722 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15723 (find_reloads): Update call accordingly. Pass the new operand
15724 if it needed no address reloads, otherwise pass null.
15726 2008-01-30 Richard Henderson <rth@redhat.com>
15729 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15730 for unbounded arrays.
15732 2008-01-30 Silvius Rus <rus@google.com>
15734 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15736 2008-01-30 Jan Hubicka <jh@suse.cz>
15739 * i386.c (init_cumulative_args): Use real function declaration when
15742 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
15744 PR rtl-optimization/34998
15745 * global.c (build_insn_chain): Treat non-subreg_lowpart
15746 SUBREGs of pseudos as clobbering all the words covered by the
15747 SUBREG, not just all the bytes.
15748 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
15749 original df_ref rather than an extract parameter.
15750 (global_conflicts): Update call accordingly.
15752 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
15754 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15755 the overflow check to make it easier to read.
15756 (__fixtfdi): Change the type of the ll member in union
15757 long_double to UDItype_x.
15759 2008-01-30 Jakub Jelinek <jakub@redhat.com>
15761 PR middle-end/34969
15762 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15763 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15764 * tree-inline.c (fold_marked_statements): Call
15765 cgraph_update_edges_for_call_stmt if folding a call statement.
15766 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15767 debug_generic_stmt calls, reset it back afterwards.
15770 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15772 * c-typeck.c (build_external_ref): Don't pedwarn about
15773 static vars in current function's scope.
15775 2008-01-29 Joseph Myers <joseph@codesourcery.com>
15777 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15779 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
15782 * ipa-struct-reorg.c: Fix spelling.
15783 * params.def: Ditto.
15785 2008-01-29 Richard Guenther <rguenther@suse.de>
15787 PR middle-end/35006
15788 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15790 * tree-inline.c (remap_type): Increment remapping_type_depth
15791 around remapping types.
15792 (copy_body_r): Only add referenced variables if they are referenced
15793 from code, not types.
15795 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
15806 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15807 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15809 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
15812 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15813 pointer for tiny stack.
15815 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15817 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15819 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
15821 * config/vx-common.h: Fix typo in comment.
15823 2008-01-28 Ian Lance Taylor <iant@google.com>
15827 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15828 coalesce pointers if they have different DECL_NO_TBAA_P values.
15829 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15830 between variables with different DECL_NO_TBAA_P values.
15832 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
15835 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15836 are not legitimate small data references on SPE targets.
15838 2008-01-28 David Daney <ddaney@avtrex.com>
15840 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15842 2008-01-28 David Daney <ddaney@avtrex.com>
15844 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
15846 2008-01-27 Joseph Myers <joseph@codesourcery.com>
15848 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15849 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15850 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15851 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15852 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15853 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15854 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15855 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15857 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15859 * basic-block.h (condjump_equiv_p): Fix comment.
15861 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15863 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15864 print_generic_stmt_indented): Fix comment.
15866 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
15868 * configure.ac (__stack_chk_fail): Add detecion for availability
15869 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15870 * configure: Regenerate.
15872 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
15874 PR middle-end/34688
15875 * final.c (output_addr_const): Handle TRUNCATE.
15877 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
15880 * tree-ssa-loop-ivopts.c (comp_cost): New type.
15881 (zero_cost, infinite_cost): New constants.
15882 (struct cost_pair): Change type of cost to comp_cost.
15883 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15884 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15886 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15887 split_address_cost, ptr_difference_cost, difference_cost,
15888 get_computation_cost_at, get_computation_cost,
15889 determine_use_iv_cost_generic, determine_use_iv_cost_address,
15890 determine_use_iv_cost_condition, determine_use_iv_costs,
15891 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15892 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15893 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15894 Change type of cost to comp_cost.
15895 (determine_iv_cost): Increase cost of non-original ivs, instead
15896 of decreasing the cost of original ones.
15897 (get_address_cost): Indicate the complexity of the addressing mode
15899 (try_add_cand_for): Prefer using ivs not specific to some object.
15900 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15902 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
15903 Janis Johnson <janis187@us.ibm.com>
15906 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15907 (TARGET_INSTANTIATE_DECLS): Likewise.
15908 * target.h (expand_to_rtl_hook): New target hook.
15909 (instantiate_decls): Likewise.
15910 * function.c (instantiate_decl): Make non-static. Rename to...
15911 (instantiate_decl_rtl): ... this.
15912 (instantiate_expr): Use instantiate_decl_rtl.
15913 (instantiate_decls_1): Likewise.
15914 (instantiate_decls): Likewise.
15915 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15916 * function.h (instantiate_decl_rtl): Add prototype.
15917 * cfgexpand.c (target.h): New include.
15918 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15919 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15920 (TARGET_INSTANTIATE_DECLS): Likewise.
15921 (TARGET_INITIALIZER): New target hooks added.
15922 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15924 * config/rs6000/rs6000.c (tree-flow.h): New include.
15925 (machine_function): Add sdmode_stack_slot field.
15926 (rs6000_alloc_sdmode_stack_slot): New function.
15927 (rs6000_instantiate_decls): Likewise.
15928 (rs6000_secondary_memory_needed_rtx): Likewise.
15929 (rs6000_check_sdmode): Likewise.
15930 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15931 (TARGET_INSTANTIATE_DECLS): Likewise.
15932 (rs6000_hard_regno_mode_ok): Allow SDmode.
15933 (num_insns_constant): Likewise. Handle _Decimal32 constants.
15934 (rs6000_emit_move): Handle SDmode.
15935 (function_arg_advance): Likewise.
15936 (function_arg): Likewise.
15937 (rs6000_gimplify_va_arg): Likewise. Add special handling of
15938 SDmode var args for 32-bit compiles.
15939 (rs6000_secondary_reload_class): Handle SDmode.
15940 (rs6000_output_function_epilogue): Likewise.
15941 (rs6000_function_value): Simplify if statement.
15942 (rs6000_libcall_value): Likewise.
15943 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15944 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15945 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15946 (movsd_hardfloat): New define_insn.
15947 (movsd_softfloat): Likewise.
15948 (movsd_store): Likewise.
15949 (movsd_load): Likewise.
15950 (extendsddd2): Likewise.
15951 (extendsdtd2): Likewise.
15952 (truncddsd2): Likewise.
15953 (movdd_hardfloat64): Fixup comment.
15954 (UNSPEC_MOVSD_LOAD): New constant.
15955 (UNSPEC_MOVSD_STORE): Likewise.
15957 2008-01-26 Jakub Jelinek <jakub@redhat.com>
15960 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15962 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15963 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15964 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15965 and TRUTH_XOR_EXPR.
15967 2008-01-26 David Edelsohn <edelsohn@gnu.org>
15970 * config.gcc: Separate AIX 5.3 from AIX 6.1.
15971 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15972 __LONGDOUBLE128 too.
15973 * config/rs6000/aix61.h: New file.
15975 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15977 PR rtl-optimization/34959
15978 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15979 popcount and parity rtxes the same mode as their operand.
15980 Truncate or extend the result to the return value's mode
15983 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
15986 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15987 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15988 to GOT_VERSION_REGNUM.
15989 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15990 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15991 * config/mips/mips.c (mips_emit_call_insn): New function.
15992 (mips_call_tls_get_addr): Call mips_expand_call directly.
15993 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15995 (mips16_build_call_stub): Likewise. Return the call insn or null.
15996 (mips_expand_call): Update the call to mips16_build_call_stub
15997 accordingly and a remove redundant condition. Assert that MIPS16
15998 stubs do not use lazy binding. Use mips_emit_call_insn and return
16000 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16002 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16003 (mips_avoid_hazard): Remove hazard_set handling.
16004 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16005 (UNSPEC_RESTORE_GP): ...this.
16006 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16007 (FAKE_CALL_REGNO): Rename to...
16008 (GOT_VERSION_REGNUM): ...this.
16009 (type): Add "ghost" value. Add an associated insn reservation.
16010 (hazard_set): Remove.
16011 (exception_receiver): Rename to...
16012 (restore_gp): ...this and update the unspec identifier accordingly.
16013 (exception_receiver, nonlocal_got_receiver): New expanders.
16014 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
16015 FAKE_CALL_REGNO. Remove hazard_set attribute.
16016 (set_got_version, update_got_version): New patterns.
16018 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
16021 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16023 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16026 * doc/install.texi2html: Generate gcc-vers.texi.
16028 2008-01-25 DJ Delorie <dj@redhat.com>
16030 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16032 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16034 * config/c4x: Remove directory.
16035 * config.gcc (crx-*, mt-*): Mark obsolete.
16036 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16037 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16038 sh-*-rtemscoff*): Remove cases.
16039 * defaults.h (C4X_FLOAT_FORMAT): Remove.
16040 * real.c (encode_c4x_single, decode_c4x_single,
16041 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16042 c4x_extended_format): Remove.
16043 * real.h (c4x_single_format, c4x_extended_format): Remove.
16044 * doc/extend.texi (interrupt, naked): Remove mention of attributes
16046 (Pragmas): Remove comment about c4x pragmas.
16047 * doc/install.texi (c4x): Remove target-specific instructions.
16048 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16049 * doc/md.texi (Machine Constraints): Remove C4x documentation.
16050 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16051 refer to C4x source files as examples.
16052 (C4X_FLOAT_FORMAT): Remove documentation.
16054 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
16056 * config/bfin/bfin.c (override_options): Reorder tests so that
16057 flag_pic gets enabled for -msep-data.
16059 2008-01-25 Richard Guenther <rguenther@suse.de>
16061 PR middle-end/32244
16062 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16063 to its bitfield precision if required.
16065 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16067 PR middle-end/33880
16068 * tree-nested.c (walk_omp_for): New function.
16069 (convert_nonlocal_reference, convert_local_reference): Call
16070 walk_omp_for on OMP_FOR.
16071 (convert_call_expr): Call walk_body on OMP_FOR's
16072 OMP_FOR_PRE_INIT_BODY.
16074 2008-01-25 Richard Guenther <rguenther@suse.de>
16076 PR tree-optimization/34966
16077 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16078 default defs and PHI_NODEs we have to insert after the
16079 defining statement.
16081 2008-01-24 Nick Clifton <nickc@redhat.com>
16083 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16084 Provide a default definition.
16085 (LIBGCC2_UNITS_PER_WORD): Likewise.
16087 * config/stormy16/stormy16.c: Include df.h for the prototype
16088 for df_regs_ever_live_p.
16089 (xstormy16_expand_builtin_va_start): Convert the stack offset
16090 into a component_ref and then use POINTER_PLUS_EXPR to add it
16091 to the incoming_virtual_args_rtx.
16092 (xstormy16_gimplify_va_arg_expr): Rename to
16093 xstormy16_gimplify_va_arg_expr.
16094 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16095 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16096 xstormy16_gimplify_va_arg_expr.
16097 Fix up some formatting issues.
16099 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16100 Move to predicates.md.
16101 (xs_hi_general_operand): Likewise.
16102 (xs_hi_nonmemory_operand): Likewise.
16103 * config/stormy16/predicates.md:
16104 (xstormy16_carry_plus_operand): New predicate.
16105 (xs_hi_general_operand): New predicate.
16106 (xs_hi_nonmemory_operand): New predicate.
16107 * config/stormy16/stormy16-protos.h:
16108 (xstormy16_carry_plus_operand): Delete prototype.
16109 (xs_hi_general_operand): Likewise.
16110 (xs_hi_nonmemory_operand): Likewise.
16112 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16113 modifiers as they are no longer needed and they can trigger
16114 reload spill failures.
16116 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16117 with a match_operand in order to help reload.
16119 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16120 constraint with 'e' for the 8th alternative as this version of
16121 the mov.w instruction only accepts the lower 8 registers.
16123 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
16126 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16127 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16130 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16132 PR middle-end/33333
16133 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16135 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16137 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16139 (remove_structure): Update allocations list before removing structure.
16141 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16143 * ipa-struct-reorg.c (is_safe_cond_expr,
16144 create_new_stmts_for_cond_expr): Use integer_zerop function,
16145 that recognize not only zero-pointer, but zero-integer too.
16147 2008-01-25 Ben Elliston <bje@au.ibm.com>
16150 * fixproto: Escape "." in sed expression that strips leading "./".
16152 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
16155 * gcc.c (SWITCH_OK): Removed.
16156 (SWITCH_LIVE): Changed to bit.
16157 (SWITCH_FALSE): Likewise.
16158 (SWITCH_IGNORE): Likewise.
16159 (switchstr): Change live_cond to unsigned int.
16160 (process_command): Replace SWITCH_OK with 0.
16161 (do_self_spec): Likewise.
16162 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16163 (give_switch): Likewise.
16164 (used_arg): Likewise.
16165 (do_spec_1): Set the SWITCH_IGNORE bit.
16166 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16167 bits. Set the SWITCH_LIVE bit.
16169 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
16171 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16173 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
16175 PR tree-optimization/34472
16176 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16177 parameter to a "bool *" and set *DATA to false if there is
16178 an unsafe access. Do not delete the structure here.
16179 (check_cond_exprs): Delete it here instead.
16180 (check_cond_exprs, exclude_cold_structs): Do not increase
16181 I when removing a structure.
16183 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
16186 * config/i386/i386.c (ix86_expand_vector_init): Consider only
16187 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16189 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
16191 PR middle-end/34934
16192 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16193 a fixed vector for stack.
16195 2008-01-24 Ben Elliston <bje@au.ibm.com>
16198 * doc/gcc.texi (Software development): Add a direntry for g++.
16200 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
16202 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16203 stale and straggling -fforce-addr comments above.
16205 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16207 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16208 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16210 2008-01-23 Michael Matz <matz@suse.de>
16213 * dwarf2out.c (force_type_die): Use modified_type_die instead of
16216 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
16218 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16219 malloc result type.
16221 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16223 * config/avr/avr.c (avr_current_arch): New variable.
16224 (avr_arch_types): Add 'avr31' and 'avr51' entries.
16225 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16226 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16227 (avr_override_options): Init 'avr_current_arch'.
16228 (base_arch_s): Move from here...
16229 * config/avr/avr.h (base_arch_s): ... here. Add new members
16230 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16231 'mega' to 'have_jmp_call'.
16232 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16233 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
16235 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16237 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16238 MULTILIB_MATCHES): Ditto.
16240 2008-01-23 Richard Guenther <rguenther@suse.de>
16242 PR middle-end/31529
16243 * cgraphunit.c (cgraph_reset_node): Always mark the node
16244 not reachable if it is not queued already.
16246 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
16248 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16249 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16250 (cputype_selected): New static variable.
16251 (bfin_handle_option): Set it if -mcpu is used.
16252 (override_option): Select default set of workarounds if no cpu type
16253 selected on the command line.
16254 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16256 From Michael Frysinger <michael.frysinger@analog.com>
16257 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16258 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16260 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16261 for bf547, bf523, bf524, and bf526.
16262 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
16264 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16265 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16266 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16267 __ADSPBF547__ and __ADSPBF54x__ for bf547.
16268 * doc/invoke.texi (Blackfin Options): Document that
16269 -mcpu now accept bf547, bf523, bf524, and bf526.
16271 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
16273 PR rtl-optimization/34628
16274 * combine.c (try_combine): Stop and undo after the first combination
16275 if an autoincrement side-effect on the first insn has effectively
16278 2008-01-22 David Edelsohn <edelsohn@gnu.org>
16281 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16282 Offset addresses are not valid for Altivec or paired float modes.
16284 2008-01-22 Jakub Jelinek <jakub@redhat.com>
16287 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16288 if DECL_INITIAL (decl) is error_mark_node.
16291 * c-common.c (handle_vector_size_attribute): Only allow
16292 integral, scalar float and fixed point types. Handle OFFSET_TYPE
16293 the same way as pointer, array etc. types.
16294 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16297 * tree.c (build_type_attribute_qual_variant): Call
16298 build_qualified_type if attributes are equal, but quals are not.
16300 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16303 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16304 * flags.h (warn_strict_aliasing): Remove.
16305 (warn_strict_overflow): Remove.
16306 * opts.c (warn_strict_aliasing): Remove.
16307 (warn_strict_overflow): Remove.
16308 * c-opts.c (c_common_handle_option): -Wall only sets
16309 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16310 (c_common_post_options): Give default values to -Wstrict-aliasing
16311 and -Wstrict-overflow if they are uninitialized.
16312 * common.opt (Wstrict-aliasing): Specify Var and Init.
16313 (Wstrict-overflow): Likewise.
16315 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
16317 PR rtl-optimization/26854
16318 PR rtl-optimization/34400
16319 PR rtl-optimization/34884
16320 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16322 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16323 (df_rd_bb_info.expanded_lr_out): Deleted
16324 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16325 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
16326 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16327 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16328 Removed code to allocate, initialize or free expanded_lr_out.
16329 (df_rd_bb_local_compute_process_def): Restructured to make more
16331 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16332 sets if the sets are being trimmed.
16334 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
16337 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16338 (as_vers): Likewise.
16339 * configure: Regenerated.
16341 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16343 PR middle-end/33092
16344 * tree-pass.h (pass_build_alias): New pass.
16345 * tree-ssa-alias.c (gate_build_alias): New.
16346 (pass_build_alias): New.
16347 * passes.c (init_optimization_passes): Add pass_build_alias after
16348 pass_create_structure_vars.
16350 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
16352 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16353 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16354 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16355 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16356 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16357 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16358 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16359 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16360 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16361 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16362 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16363 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16364 * config/s390/s390.md (FP_ALL): New mode iterator.
16365 (_d): New mode attribute.
16366 ("*signbit<mode>2>"): Changed mode of first operand.
16367 ("isinf<mode>2"): Changed mode of first operand.
16368 ("*TDC_insn"): Adaptation for DFP modes.
16370 2008-01-22 Ben Elliston <bje@au.ibm.com>
16372 * tree.c (check_qualified_type): Improve function description.
16374 2008-01-21 Jason Merrill <jason@redhat.com>
16377 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16378 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16381 2008-01-21 DJ Delorie <dj@redhat.com>
16383 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16386 2008-01-21 Richard Guenther <rguenther@suse.de>
16388 PR middle-end/34856
16389 * tree-cfg.c (verify_expr): Allow all invariant expressions
16390 instead of just constant class ones as reference argument.
16391 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16392 like any other constant.
16393 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16395 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
16397 * regmove.c (fixup_match_1): Update call crossed frequencies.
16399 2008-01-21 Richard Guenther <rguenther@suse.de>
16402 * tree-inline.c (setup_one_parameter): Deal with mismatched
16403 types using a VIEW_CONVERT_EXPR.
16405 2008-01-21 Alon Dayan <alond@il.ibm.com>
16406 Olga Golovanevsky <olga@il.ibm.com>
16408 PR tree-optimization/34701
16409 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16410 when the structure size is not a power of 2.
16412 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
16414 * doc/install.texi: Add doc for --enable-checking=df.
16416 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
16418 PR rtl-optimization/34808
16419 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16421 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16423 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16426 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
16428 PR rtl-optimization/26854
16429 PR rtl-optimization/34400
16430 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16432 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16433 (df_rd_bb_info.expanded_lr_out): New.
16434 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16435 * loop_iv.c (iv_analysis_loop_init): Ditto.
16436 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16437 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16438 Added code to allocate, initialize or free expanded_lr_out.
16439 (df_rd_bb_local_compute_process_def): Restructured to make
16440 more understandable.
16441 (df_rd_confluence_n): Add code to do nothing with fake edges and
16442 code to no apply invalidate_by_call sets if the sets are being trimmed.
16443 (df_lr_local_finalize): Renamed to df_lr_finalize.
16444 (df_live_local_finalize): Renamed to df_live_finalize.
16446 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16449 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16450 deciding whether to use reciprocal instructions.
16452 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
16454 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16455 dwarf2out_note_section_used if cold_text_section is NULL.
16457 2008-01-19 Jakub Jelinek <jakub@redhat.com>
16459 PR gcov-profile/34610
16460 * tree-cfg.c (make_edges): Mark both outgoing edges from
16461 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16462 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16463 from OMP_FOR and OMP_CONTINUE outgoing edges.
16465 * tree-profile.c (tree_profiling): Return early if
16466 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
16468 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16469 from cfun to child_cfun.
16470 * function.h (struct function): Add after_tree_profile bit.
16472 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16474 * config/avr/avr.S (_exit): Disable interrupt.
16476 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
16477 Steven Bosscher <stevenb.gcc@gmail.com>
16479 PR rtl-optimization/26854
16480 PR rtl-optimization/34400
16481 * df-problems.c (df_live_scratch): New scratch bitmap.
16482 (df_live_alloc): Allocate df_live_scratch when doing df_live.
16483 (df_live_reset): Clear the proper bitmaps.
16484 (df_live_bb_local_compute): Only process the artificial defs once
16485 since the order is not important.
16486 (df_live_init): Init the df_live sets only with the variables
16487 found live by df_lr.
16488 (df_live_transfer_function): Use the df_lr sets to prune the
16489 df_live sets as they are being computed.
16490 (df_live_free): Free df_live_scratch.
16492 2008-01-18 Ian Lance Taylor <iant@google.com>
16494 * common.opt: Add fmerge-debug-strings.
16495 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16496 flag_merge_debug_strings rather than flag_merge_constants.
16497 * doc/invoke.texi (Option Summary): Mention
16498 -fmerge-debug-strings.
16499 (Debugging Options): Document -fmerge-debug-strings.
16501 2008-01-18 Ian Lance Taylor <iant@google.com>
16504 * tree.h (DECL_IS_OPERATOR_NEW): Define.
16505 (struct tree_function_decl): Add new field operator_new_flag.
16506 * tree-inline.c (expand_call_inline): When inlining a call to
16507 operator new, force the return value to go into a variable, and
16508 set DECL_NO_TBAA_P on that variable.
16509 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16511 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
16514 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16515 DWARF2_DEBUGGING_INFO.
16516 (dwarf2out_note_section_used): Ditto. Add prototype.
16517 (have_multiple_function_sections, text_section_used,
16518 cold_text_section_used, *cold_text_sections): Move declarations
16521 2008-01-17 Bob Wilson <bob.wilson@acm.org>
16523 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16524 field and add signal_ra.
16525 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16526 assignments to frame state pc. Move end of stack check after
16527 MD_FALLBACK_FRAME_STATE_FOR.
16528 (uw_update_context_1): Use frame state signal_regs if set, instead
16529 of checking signal_frame flag.
16530 (uw_update_context): Use frame state signal_ra if set.
16531 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16532 * config/xtensa/linux-unwind.h: New file.
16534 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
16536 * modulo-sched.c (get_sched_window): Fix comment typo.
16538 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
16540 PR tree-optimization/34648
16541 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16543 2008-01-17 Anatoly Sokolov <aesok@post.ru>
16545 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16546 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16548 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
16550 PR rtl-optimization/34400
16551 * df-core.c (df_worklist_dataflow_overeager,
16552 df_worklist_dataflow_doublequeue): New functions.
16553 (df_worklist_dataflow): Two different worklist solvers.
16554 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16557 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16560 * doc/invoke.texi: Document the dependence on pthread for fopenmp
16561 and ftree-parallelize-loops.
16563 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
16565 PR rtl-optimization/34826
16566 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16568 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
16570 * global.c (find_reg): Mark the eh regs as used if necessary.
16571 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16572 * ra.h (struct allocno): no_eh_reg field added. Changed
16573 no_stack_reg type to bitfield.
16575 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
16577 * tree.c (substitute_in_expr): Add missing 'break'.
16579 2008-01-17 Richard Guenther <rguenther@suse.de>
16581 PR tree-optimization/34825
16582 * tree-ssa-math-opts.c (is_division_by): Do not recognize
16583 x / x as division to handle.
16585 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16587 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16588 "-pthread" is specified.
16589 * pa-hpux11.h (LIB_SPEC): Likewise.
16591 2008-01-16 Janis Johnson <janis187@us.ibm.com>
16592 Peter Bergner <bergner@vnet.ibm.com>
16594 PR rtl-optimization/33796
16595 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16597 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16599 PR libgfortran/34699
16600 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16602 * pa-hpux10.h (LINK_SPEC): Likewise.
16603 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16605 2008-01-16 Richard Guenther <rguenther@suse.de>
16607 PR middle-end/32628
16608 * fold-const.c (fold_convert_const_int_from_int): Do not
16609 set overflow if that occured only because of a sign extension
16610 change when converting from/to a sizetype with the same
16611 precision and signedness.
16613 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16616 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16617 location address to the correct place. Update copyright year.
16619 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16621 * lambda-code.c (lambda_transform_legal_p): Handle the case of
16622 no dependences in the dependence_relations vector.
16624 2008-01-16 Jan Hubicka <jh@suse.cz>
16626 PR rtl-optimization/31396
16627 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16628 * cfg.c (dump_reg_info): Print it.
16629 * regs.h (struct reg_info_t): add freq_calls_crossed.
16630 (REG_FREQ_CALLS_CROSSED): New macro.
16631 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16632 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16633 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16634 regmove_optimize): Update call crossed frequencies.
16635 * local-alloc.c (struct qty): Add freq_calls_crossed.
16636 (alloc_qty): Copute freq_calls_crossed.
16637 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16638 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16639 * ra.h (struct allocno): Add freq_calls_crossed.
16641 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16643 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16644 libgomp when compiling with ftree-parallelize-loops.
16645 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16647 2008-01-16 Richard Guenther <rguenther@suse.de>
16649 PR tree-optimization/34769
16650 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16651 * tree.c (int_cst_value): Instead make this function more
16652 permissive in what it accepts as valid input. Document this
16653 function always sign-extends the value.
16655 2008-01-16 Jakub Jelinek <jakub@redhat.com>
16656 Richard Guenther <rguenther@suse.de>
16659 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16660 (gimple_fold_indirect_ref_rhs): ... this.
16661 (gimple_fold_indirect_ref): New function with foldings
16662 that preserve lvalueness.
16663 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16664 * tree-flow.h (gimple_fold_indirect_ref): Declare.
16665 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16666 to fold an INDIRECT_REF, fall back to the old use of
16667 fold_indirect_ref_1.
16669 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16671 * tree-data-ref.c (subscript_dependence_tester_1): Call
16672 free_conflict_function.
16673 (compute_self_dependence): Same.
16675 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16678 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16679 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
16681 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16682 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16683 for DWARF2_UNWIND_INFO targets.
16685 2008-01-16 Richard Guenther <rguenther@suse.de>
16688 * c-typeck.c (common_pointer_type): Do not merge inconsistent
16689 type qualifiers for function types.
16691 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16693 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16694 loop_iterator li from previous commit.
16696 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
16698 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16700 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16702 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16703 (parallelize_loops): Don't parallelize irreducible components.
16705 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16708 * c-opts (c_common_post_options): Do not enable CPP
16709 flag_pedantic_errors by default.
16711 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
16713 PR rtl-optimization/31944
16714 * cse.c (remove_pseudo_from_table): New function.
16715 (merge_equiv_classes): Use above function to remove pseudo-registers.
16716 (invalidate): Likewise.
16718 2008-01-13 Richard Guenther <rguenther@suse.de>
16720 PR middle-end/34601
16721 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16722 instead of TYPE_MODE to deal with calls from expand_one_error_var.
16724 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
16726 * gcse.c (cprop_jump): Call validate_unshare_change instead of
16727 validate_change to unshare the source of the PC set.
16729 2008-01-12 Jan Hubicka <jh@suse.cz>
16731 PR middle-end/32135
16732 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16733 references above array bounds. This might trigger bounds checks for
16734 pointers to arrays.
16736 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16738 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16739 new_replaceable_dependencies.
16741 2008-01-12 Doug Kwan <dougkwan@google.com>
16743 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16744 instead of OPT_Wreturn_type in warning due to ignored return type
16746 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16747 options included in -Wextra.
16748 * c.opt: New option -Wignored_qualifiers.
16749 * doc/invoke.texi (Warning Options, -Wextra): Add new option
16750 -Wignore_qualifiers.
16751 (-Wignored-qualifiers): Document.
16752 (-Wreturn-type): Remove description of functionality now handled
16753 by -Wignored-qualifiers.
16755 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
16758 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16759 NOP_EXPR if it is between integral types with the same precision.
16761 2008-01-12 Jan Hubicka <jh@suse.cz>
16764 * invoke.texi (max-inline-recursive-depth): Fix default value.
16766 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
16768 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16771 2008-01-11 Bob Wilson <bob.wilson@acm.org>
16773 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16775 2008-01-11 James E. Wilson <wilson@specifix.com>
16778 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16780 2008-01-11 Anatoly Sokolov <aesok@post.ru>
16782 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16783 save/restore frame pointer register and don't use 'call-prologues'
16784 optimization in function with "OS_task" attribute.
16786 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
16788 PR middle-end/31309
16789 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16790 when copying to memory.
16792 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
16794 PR rtl-optimization/30905
16795 * cfgcleanup.c: Include dce.h
16796 (crossjumps_occured): New global variable.
16797 (try_crossjump_bb): Exit loop after finding a fallthru edge.
16798 If something changed, set crossjumps_occured to true.
16799 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16800 Don't add/remove fake edges to exit here...
16801 (cleanup_cfg): ...but do it here, when crossjumping.
16802 Run a fast DCE when successful crossjumps occured in the latest
16803 iteration of try_optimize_cfg.
16805 2008-01-11 Richard Guenther <rguenther@suse.de>
16807 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16808 (struct vn_unary_op_s): Likewise.
16809 (vn_reference_insert): Free old reference on hash collision.
16811 2008-01-10 Raksit Ashok <raksit@google.com>
16813 PR rtl-optimization/27971
16814 * combine.c (find_split_point): Split PLUS expressions which are
16815 inside a MEM rtx, and whose first operand is complex.
16817 2008-01-10 DJ Delorie <dj@redhat.com>
16819 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16820 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16821 (m32c_hard_regno_ok): Call the underlying function.
16823 2008-01-10 Richard Guenther <rguenther@suse.de>
16825 PR middle-end/34683
16826 * tree-cfg.c (tree_merge_blocks): Do not go through the
16827 full-blown folding and stmt updating path if we just deal
16828 with virtual operands.
16829 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16830 test for abnormal SSA_NAMEs.
16832 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
16834 PR middle-end/34641
16835 * reload.c (push_reload): Add assertions. All constants from
16836 reg_equiv_constant should have been used for replacing the respective
16838 (find_reloads_address): Invoke find_reloads_address_part for
16839 constant taken from the reg_equiv_constant array.
16841 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
16843 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16844 field (valnum) the first in the struct. Replace bools with
16847 2008-01-10 Richard Guenther <rguenther@suse.de>
16849 PR tree-optimization/34651
16850 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
16851 types and ordering for masking and converting.
16853 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
16855 PR tree-optimization/34017
16856 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16857 also for PHI_NODE expressions.
16859 2008-01-09 Jan Hubicka <jh@suse.cz>
16861 PR tree-optimization/34708
16862 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16863 based on number of case labels.
16864 (init_inline_once): Remove switch_cost.
16865 * tree-inline.h (eni_weights_d): Remove switch_cost.
16867 2008-01-09 Richard Guenther <rguenther@suse.de>
16868 Andrew Pinski <andrew_pinski@playstation.sony.com>
16870 PR middle-end/30132
16871 * gimplify.c (gimplify_cond_expr): Do not create an addressable
16872 temporary if an rvalue is ok or an lvalue is not required.
16874 2008-01-09 Richard Guenther <rguenther@suse.de>
16876 PR middle-end/34458
16877 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16878 adjust return type.
16880 2008-01-09 Richard Guenther <rguenther@suse.de>
16882 PR middle-end/34679
16883 * tree.c (host_integerp): Check for sizetype only if the
16884 type is an integer type.
16886 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
16889 * opts.c (decode_options): Disable inlining of functions called
16890 once if not in unit-at-a-time mode.
16892 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
16894 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16896 2008-01-08 Richard Guenther <rguenther@suse.de>
16898 PR middle-end/31863
16899 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16900 out early if the result will be unused.
16902 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16907 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
16908 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16911 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
16913 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16914 for vectorization tuned.
16916 2008-01-08 Richard Guenther <rguenther@suse.de>
16918 PR tree-optimization/34683
16919 * tree-ssa-operands.c (operand_build_cmp): Export.
16920 * tree-ssa-operands.h (operand_build_cmp): Declare.
16921 * tree-vn.c (vuses_compare): Remove.
16922 (sort_vuses): Use operand_build_cmp.
16923 (sort_vuses_heap): Likewise.
16924 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16925 to re-use old VEC if available. Do not sort already sorted VUSEs.
16926 (vdefs_to_vec): Do not sort already sorted VDEFs.
16928 2008-01-08 Jakub Jelinek <jakub@redhat.com>
16930 PR middle-end/34694
16931 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16933 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
16936 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16937 limitations of reciprocal sequences on x86 targets.
16939 2008-01-08 Richard Guenther <rguenther@suse.de>
16941 PR tree-optimization/34683
16942 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16944 2008-01-07 Jakub Jelinek <jakub@redhat.com>
16947 * config/darwin.c (darwin_mergeable_string_section): Don't use
16948 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16950 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
16953 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16954 negxf2. Macroize expander using X87MODEF mode iterator. Change
16955 predicates of op0 and op1 to register_operand.
16956 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
16957 expander using X87MODEF mode iterator. Change predicates of
16958 op0 and op1 to register_operand.
16959 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16960 corresponding patterns and macroize using MODEF macro. Change
16961 predicates of op0 and op1 to register_operand and remove
16962 "m" constraint. Disparage "r" alternative with "!".
16963 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16964 macroize using X87MODEF macro. Change predicates of op0 and op1
16965 to register_operand and remove "m" constraint. Disparage "r"
16966 alternative with "!".
16967 (absneg splitter with memory operands): Remove.
16968 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16969 patterns and macroize using X87MODEF mode iterator.
16970 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16971 Change predicate of op1 to register_operand.
16972 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16973 for memory operands.
16975 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
16977 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16979 2008-01-07 Richard Guenther <rguenther@suse.de>
16981 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16984 2008-01-07 Richard Guenther <rguenther@suse.de>
16986 PR tree-optimization/34683
16987 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16988 VOPs of the needed size to save memory. Use VEC_quick_push
16989 to save compile-time.
16990 (vdefs_to_vec): Likewise.
16992 2008-01-07 Sa Liu <saliu@de.ibm.com>
16994 * config/spu/spu.md (divdf3): Genetate inline code for double
16995 division. The implementation doesn't handle INF or NAN, therefore it
16996 only applies when -ffinite-math-only is given.
16998 2008-01-06 Paolo Carlini <pcarlini@suse.de>
17001 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17002 * doc/cpp.texi ([Common Predefined Macros]): Document.
17004 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
17006 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17007 order to use commutative addition instead of subtraction.
17009 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
17010 Mircea Namolaru <namolaru@il.ibm.com>
17011 Vladimir Yanovsky <yanov@il.ibm.com>
17012 Revital Eres <eres@il.ibm.com>
17014 PR tree-optimization/34263
17015 * tree-outof-ssa.c (process_single_block_loop_latch,
17016 contains_tree_r): New functions.
17017 (analyze_edges_for_bb): Call process_single_block_loop_latch
17018 function to empty single-basic-block latch block if possible.
17020 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17022 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17024 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17026 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17028 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17030 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17032 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17034 2008-01-05 Jakub Jelinek <jakub@redhat.com>
17036 PR tree-optimization/34618
17037 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17040 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17043 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17044 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
17045 Update copyright year.
17047 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17048 Update copyright year.
17049 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17052 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
17054 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17055 edge does not point to current bb before changing need_assert.
17057 2008-01-04 Richard Guenther <rguenther@suse.de>
17059 PR middle-end/34029
17060 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17061 for verifying purposes if they are is_gimple_min_invariant.
17063 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
17065 PR tree-optimization/34448
17066 PR tree-optimization/34465
17067 * gimplify.c (gimplify_init_constructor): Add new parameter
17068 notify_temp_creation. Use it.
17069 (gimplify_modify_expr_rhs): Take volatiles into account when
17070 optimizing constructors.
17071 Do not optimize constructors if gimplify_init_constructor will dump to
17073 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17074 * gcc.c-torture/compile/pr34448.c: New.
17076 2008-01-04 Jakub Jelinek <jakub@redhat.com>
17078 PR gcov-profile/34609
17079 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17080 return_slot if result is TREE_ADDRESSABLE.
17082 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
17084 * config/mips/mips.md (sqrt_condition): Tweak comment.
17085 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
17087 2008-01-03 Tom Tromey <tromey@redhat.com>
17090 * c-common.c (c_type_hash): Handle VLAs.
17092 2008-01-03 Jan Hubicka <jh@suse.cz>
17094 PR tree-optimization/31081
17095 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17096 0 when inlining and not inlining to first basic block.
17097 (remap_decl): When var is initialized to 0, don't set default_def.
17098 (expand_call_inline): Set entry_bb.
17099 * tree-inline.h (copy_body_data): Add entry_bb.
17101 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17104 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17107 PR tree-optimization/29484
17108 * tree-inline.c (inline_forbidden_p_2): New function.
17109 (inline_forbidden_p): Disallow inlining if some static var
17110 has an address of a local LABEL_DECL in its initializer.
17111 * doc/extend.texi (Labels as Values): Document &&foo behaviour
17114 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
17116 PR tree-optimization/34635
17117 * tree-data-ref.c (add_other_self_distances): Make sure that the
17118 evolution step is constant.
17120 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17122 PR middle-end/34608
17123 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17125 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
17127 * tree-sra.c (scalarize_init): Insert the generate_element_init
17128 statements after the generate_element_zero statements.
17130 2008-01-02 Richard Guenther <rguenther@suse.de>
17132 PR middle-end/34093
17133 PR middle-end/31976
17134 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17135 for very large number of operands instead of ICEing.
17137 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
17140 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17141 while stack probing.
17143 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
17145 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17148 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
17150 PR libmudflap/26442
17151 * tree-mudflap.c (mx_register_decls): Guard warning by
17152 !DECL_ARTIFICIAL check.
17154 2008-01-01 Jakub Jelinek <jakub@redhat.com>
17156 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17157 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17158 sse5_perm<mode>): Fix constraints.