1 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
4 * calls.c (expand_call): Use the biggest preferred stack
7 2008-08-06 Michael Matz <matz@suse.de>
10 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
11 for reused reload, instead of overwriting them.
13 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
16 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
17 for incoming stack boundary.
19 * function.c (assign_parm_find_entry_rtl): Update
22 * function.h (rtl_data): Add parm_stack_boundary.
24 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
25 parm_stack_boundary for incoming stack boundary.
27 2008-08-06 Joseph Myers <joseph@codesourcery.com>
29 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
30 for unrepresentable subregs or treat them as equal to other regs
31 or subregs with the same register number.
33 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
36 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
39 2008-08-06 Jan Hubicka <jh@suse.cz>
41 * predict.c (maybe_hot_frequency_p): When profile is absent, all
42 frequencies might be hot.
44 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
46 * reload.c (find_reloads): Force constants into literal pool
47 also if they are wrapped in a SUBREG.
49 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
52 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
53 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
54 Don't allow predicated instructions for data speculation.
55 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
58 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
60 * haifa-sched.c (extend_global): Split to extend_global_data and
61 extend_region_data. Update all uses.
62 (extend_all): Rename to extend_block_data.
64 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
66 * sched-rgn.c (new_ready): Check if instruction can be
67 speculatively scheduled before attempting speculation.
68 (debug_rgn_dependencies): Remove wrongful assert.
70 2008-08-05 Bob Wilson <bob.wilson@acm.org>
72 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
74 2008-08-05 Bob Wilson <bob.wilson@acm.org>
76 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
77 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
78 va_size, and type_size.
80 2008-08-04 Jason Merrill <jason@redhat.com>
83 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
84 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
86 2008-08-05 Richard Henderson <rth@redhat.com>
88 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
91 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
94 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
95 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
98 2008-08-05 Richard Henderson <rth@redhat.com>
100 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
101 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
102 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
103 * common.opt (fdwarf2-cfi-asm): New.
104 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
105 * config.in, configure: Rebuild.
106 * dwarf2asm.c (dw2_asm_output_data_raw): New.
107 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
108 (dw2_force_const_mem): Externalize.
109 * dwarf2asm.h: Update.
110 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
111 generate a real label.
112 (output_cfi_directive): New.
113 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
114 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
115 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
117 (dwarf2out_end_epilogue): Emit .cfi_endproc.
118 (output_loc_operands_raw, output_loc_sequence_raw): New.
119 (output_cfa_loc_raw): New.
121 2008-08-05 Paul Brook <paul@codesourcery.com>
123 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
124 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
125 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
126 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
127 * config/arm/arm.h (TARGET_VFPD32): Define.
128 (TARGET_VFP3): Use TARGET_VFPD32.
129 (fputype): Add FPUTYPE_VFP3D16.
130 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
131 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
132 * config/arm/arm-cores.def: Add cortex-r4f.
133 * config/arm/arm-tune.md: Regenerate.
135 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
137 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
138 Reword some comments throughout the file.
140 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
141 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
142 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
143 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
145 (MFC_START_ENABLE): Remove PPU-only define.
146 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
147 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
149 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
150 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
151 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
152 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
153 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
154 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
155 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
157 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
158 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
159 (mfc_sdcrt, mfc_sdcrtst): Likewise.
160 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
162 (spu_read_machine_status): Fix typo.
164 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
166 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
167 SUBREG of multi-word hard register.
168 * config/spu/spu.c (valid_subreg): Likewise.
169 (adjust_operand): Handle SUBREGs of multi-word hard registers.
171 2008-08-04 Richard Guenther <rguenther@suse.de>
173 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
174 the candidate with the stripped base if that base is different
175 from the original base even for offset zero.
177 2008-08-04 Richard Guenther <rguenther@suse.de>
180 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
181 check for no_overflow.
183 2008-08-04 Richard Guenther <rguenther@suse.de>
185 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
187 2008-08-04 Paul Brook <paul@codesourcery.com>
189 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
190 (arm_order_regs_for_local_alloc): New function.
191 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
193 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
195 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
198 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
199 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
200 (ix86_expand_epilogue): Likewise.
202 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
204 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
207 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
209 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
210 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
211 (*movv2sf_internal_rex64): Ditto.
213 2008-08-03 Jan Hubicka <jh@suse.cz>
215 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
216 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
217 * expmed.c (expand_smod_pow2): Likewise.
219 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
222 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
223 alternative 0 of operand 1.
224 (*vec_concatv2di_rex64_sse): Ditto.
225 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
227 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
228 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
229 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
230 (*movv2sf_internal_rex64): Ditto.
232 2008-08-02 Richard Guenther <rguenther@suse.de>
235 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
236 (ssedoublesizemode): New mode attribute.
237 (sse_shufps): Call gen_sse_shufps_v4sf.
238 (sse_shufps_1): Macroize.
239 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
240 (sse2_shufpd_1): Macroize.
241 (vec_extract_odd, vec_extract_even): New expanders.
242 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
243 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
244 * i386.c (ix86_expand_vector_init_one_nonzero): Call
245 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
246 (ix86_expand_vector_set): Likewise.
247 (ix86_expand_reduc_v4sf): Likewise.
249 2008-08-01 Doug Kwan <dougkwan@google.com>
251 * matrix-reorg.c: Re-enable all code.
252 (struct malloc_call_data): Change CALL_STMT to gimple type.
253 (collect_data_for_malloc_call): Tuplify.
254 (struct access_site_info): Change STMT to gimple type.
255 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
256 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
257 (struct free_info): Change STMT to gimple type.
258 (struct matrix_access_phi_node): Change PHI to gimple type.
259 (get_inner_of_cast_expr): Remove.
260 (may_flatten_matrices_1): Tuplify.
261 (may_flatten_matrices): Ditto.
262 (mark_min_matrix_escape_level): Ditto.
263 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
264 (ssa_accessed_in_call_rhs): New
265 (ssa_accessed_in_assign_rhs): New
266 (record_access_alloc_site_info): Tuplify.
267 (add_allocation_site): Ditto.
268 (analyze_matrix_allocation_site): Ditto.
269 (analyze_transpose): Ditto.
270 (get_index_from_offset): Ditto.
271 (update_type_size): Ditto.
272 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
273 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
274 (analyze_accesses_for_phi_node): Tuplify.
275 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
276 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
277 (analyze_matrix_accesses): Tuplify.
278 (check_var_data): New call-back type for check_var_notmodified_p.
279 (check_var_notmodified_p): Tuplify and use call-back struct to
280 return statement found.
281 (can_calculate_expr_before_stmt): Factor out statement related code
283 (can_calculate_stmt_before_stmt): New.
284 (check_allocation_function): Tuplify.
285 (find_sites_in_func): Ditto.
286 (record_all_accesses_in_func): Ditto.
287 (transform_access_sites): Ditto.
288 (transform_allocation_sites): Ditto.
289 (matrix_reorg): Re-enable.
290 (gate_matrix_reorg): Re-enable.
292 2008-08-01 Jakub Jelinek <jakub@redhat.com>
294 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
295 for labels for which it hasn't been set yet. If it has been set,
296 stop walking insns and continue with next worklist item.
297 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
298 if the only BARRIER is at the very end of a function.
300 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
302 * cfgexpand.c (expand_stack_alignment): Assert that
303 stack_realign_drap and drap_rtx must match.
305 * function.c (instantiate_new_reg): If DRAP is used to realign
306 stack, replace virtual_incoming_args_rtx with internal arg
309 2008-08-01 Richard Guenther <rguenther@suse.de>
311 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
312 loop information only if we initialized it.
313 (execute_pre): Call fini_pre with in_fre.
314 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
315 if we do not unroll because we hit max-completely-peeled-insns.
316 Use our estimation for consistency, do allow shrinking.
318 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
320 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
321 with MIN_STACK_BOUNDARY.
322 (ix86_update_stack_boundary): Likewise.
323 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
326 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
327 (MIN_STACK_BOUNDARY): This.
329 2008-08-01 Richard Guenther <rguenther@suse.de>
332 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
334 2008-08-01 Richard Guenther <rguenther@suse.de>
336 PR tree-optimization/36988
337 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
338 do not matter if that doesn't change volatile qualification.
340 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
342 * configure.ac: Do not generate libada-mk. Do not subst
344 * libada-mk.in: Remove.
345 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
346 * configure: Regenerate.
348 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
350 * tree-pass.h: Added comment about not dumping passes with name
351 starting with star in struct opt_pass.
352 * passes.c (register_dump_files_1): Don't do dump for a pass with
353 name starting with star.
354 * doc/passes.texi (Pass manager): Mention pass names and special
355 meaning of star prefix to avoid dump.
357 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
359 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
361 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
362 (ISA_MIPS64R2): New macro.
363 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
364 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
365 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
366 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
367 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
368 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
369 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
370 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
371 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
372 Move up to keep list alphabetically sorted.
373 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
374 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
376 * doc/invoke.texi (MIPS Options): Add -mips64r2.
377 (-march=@var{arch}): Add mips64r2.
379 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
381 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
383 2008-07-31 Steve Ellcey <sje@cup.hp.com>
385 * expr.c (expand_assignment): Check for complete type.
387 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
390 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
392 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
395 * function.h (rtl_data): Add stack_realign_tried. Update comments.
397 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
399 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
400 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
402 2008-07-31 Jakub Jelinek <jakub@redhat.com>
404 PR rtl-optimization/36419
405 * dwarf2out.c (barrier_args_size): New variable.
406 (compute_barrier_args_size, compute_barrier_args_size_1): New
408 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
409 if not called yet in the current function, use barrier_args_size
410 array to find the new args_size value.
411 (dwarf2out_frame_debug): Free and clear barrier_args_size.
413 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
416 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
419 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
422 * dwarf2out.c (dwarf2out_args_size_adjust): New.
423 (dwarf2out_stack_adjust): Use it.
424 (dwarf2out_frame_debug_expr): Likewise.
426 2008-07-31 Richard Guenther <rguenther@suse.de>
428 PR tree-optimization/36978
429 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
430 the generated condition.
432 2008-07-31 Richard Guenther <rguenther@suse.de>
434 * passes.c (init_optimization_passes): Always call
435 pass_early_warn_uninitialized.
436 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
437 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
438 * doc/passes.texi (Warn for uninitialized variables): Adjust.
440 2008-07-31 Jakub Jelinek <jakub@redhat.com>
443 * builtins.c (maybe_emit_free_warning): New function.
444 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
445 maybe_emit_free_warning for BUILT_IN_FREE.
448 * dwarf2out.c (get_context_die): New function.
449 (force_decl_die, force_type_die): Use it.
450 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
451 returns NULL, force generation of DW_TAG_typedef and put that into
454 PR preprocessor/36649
455 * c-pch.c (c_common_read_pch): Save and restore
456 line_table->trace_includes across PCH restore.
458 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
461 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
463 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
466 * final.c (call_from_call_insn): Handle COND_EXEC.
468 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
470 * builtins.c (std_gimplify_va_arg_expr): Replace
471 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
472 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
474 2008-07-30 Joey Ye <joey.ye@intel.com>
475 H.J. Lu <hongjiu.lu@intel.com>
477 * builtins.c (expand_builtin_setjmp_receiver): Replace
478 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
479 (expand_builtin_apply_args_1): Likewise.
480 (expand_builtin_longjmp): Need DRAP for stack alignment.
481 (expand_builtin_apply): Likewise.
483 * caller-save.c (setup_save_areas): Call assign_stack_local_1
484 instead of assign_stack_local to allow alignment reduction.
486 * calls.c (emit_call_1): Need DRAP for stack alignment if
488 (expand_call): Replace virtual_incoming_args_rtx with
489 crtl->args.internal_arg_pointer.
490 * stmt.c (expand_nl_goto_receiver): Likewise.
492 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
493 alignment and store to stack_alignment_estimated and
494 max_used_stack_slot_alignment.
495 (expand_one_var): Likewise.
496 (expand_stack_alignment): New function.
497 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
498 and stack_alignment_estimated fields in rtl_data. Call
499 expand_stack_alignment at end.
501 * defaults.h (INCOMING_STACK_BOUNDARY): New.
502 (MAX_STACK_ALIGNMENT): Likewise.
503 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
504 (SUPPORTS_STACK_ALIGNMENT): Likewise.
506 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
507 stack alignment when generating virtual registers.
509 * function.c (assign_stack_local): Renamed to ...
510 (assign_stack_local_1): This. Add a parameter to indicate
511 if it is OK to reduce alignment.
512 (assign_stack_local): Use it.
513 (instantiate_new_reg): Instantiate virtual incoming args rtx
514 to vDRAP if stack realignment and DRAP is needed.
515 (assign_parms): Collect parameter/return type alignment and
516 contribute to stack_alignment_estimated.
517 (locate_and_pad_parm): Likewise.
518 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
519 with crtl->args.internal_arg_pointer.
521 * function.h (rtl_data): Add new field drap_reg,
522 max_used_stack_slot_alignment, stack_alignment_estimated,
523 stack_realign_needed, need_drap, stack_realign_processed and
524 stack_realign_finalized.
525 (stack_realign_fp): New macro.
526 (stack_realign_drap): Likewise.
528 * global.c (compute_regsets): Frame pointer is needed when
529 stack is realigned. Can eliminate frame pointer when stack is
530 realigned and dynamic realigned argument pointer isn't used.
532 * reload1.c (update_eliminables): Frame pointer is needed
533 when stack is realigned.
534 (init_elim_table): Can eliminate frame pointer when stack is
535 realigned and dynamic realigned argument pointer isn't used.
537 * rtl.h (assign_stack_local_1): Declare new funtion.
539 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
540 (TARGET_GET_DRAP_RTX): Likewise.
541 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
544 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
546 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
547 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
549 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
550 H.J. Lu <hongjiu.lu@intel.com>
552 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
553 vdrap_reg, stack_realign and drap_reg_saved.
554 (add_cfi): Don't allow redefining CFA when DRAP is used.
555 (reg_save): Handle stack alignment.
556 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
557 alignment. Don't generate DWARF information for (set fp sp)
559 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
561 (int_loc_descriptor): Move prototype forward. Also define if
562 DWARF2_UNWIND_INFO is true.
563 (output_cfa_loc): Handle DW_CFA_expression.
564 (build_cfa_aligned_loc): New.
565 (based_loc_descr): Update assert for stack realign. For local
566 variables, use sp+offset when stack is aligned without drap and
567 fp+offset when stack is aligned with drap. For arguments, use
568 cfa+offset when drap is used to align stack.
570 2008-07-30 Joey Ye <joey.ye@intel.com>
571 H.J. Lu <hongjiu.lu@intel.com>
573 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
575 (ix86_gen_andsp): New.
576 (ix86_user_incoming_stack_boundary): Likewise.
577 (ix86_default_incoming_stack_boundary): Likewise.
578 (ix86_incoming_stack_boundary): Likewise.
579 (ix86_can_eliminate): Likewise.
580 (find_drap_reg): Likewise.
581 (ix86_update_stack_boundary): Likewise.
582 (ix86_get_drap_rtx): Likewise.
583 (ix86_finalize_stack_realign_flags): Likewise.
584 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
585 (TARGET_GET_DRAP_RTX): Likewise.
586 (override_options): Overide option value for new options.
587 (ix86_function_ok_for_sibcall): Remove check for
588 force_align_arg_pointer.
589 (ix86_handle_cconv_attribute): Likewise.
590 (ix86_function_regparm): Likewise.
591 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
592 (ix86_va_start): Replace virtual_incoming_args_rtx with
593 crtl->args.internal_arg_pointer.
594 (ix86_select_alt_pic_regnum): Check DRAP register.
595 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
596 (ix86_compute_frame_layout): Compute frame layout wrt stack
598 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
599 (ix86_expand_prologue): Decide if stack realignment is needed
600 and generate prologue code accordingly.
601 (ix86_expand_epilogue): Generate epilogue code wrt stack
602 realignment is really needed or not.
604 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
605 (ABI_STACK_BOUNDARY): Likewise.
606 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
607 (STACK_REALIGN_DEFAULT): Likewise.
608 (INCOMING_STACK_BOUNDARY): Likewise.
609 (MAX_STACK_ALIGNMENT): Likewise.
610 (ix86_incoming_stack_boundary): Likewise.
611 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
612 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
613 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
614 (machine_function): Remove force_align_arg_pointer.
616 * config/i386/i386.md (BX_REG): New.
619 * config/i386/i386.opt (mforce_drap): New.
620 (mincoming-stack-boundary): Likewise.
621 (mstackrealign): Add Init(-1).
623 * config/i386/i386-protos.h (ix86_can_eliminate): New
625 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
627 * doc/extend.texi: Update force_align_arg_pointer.
629 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
632 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
633 (INCOMING_STACK_BOUNDARY): Likewise.
634 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
635 (TARGET_GET_DRAP_RTX): Likewise.
637 2008-07-30 Andreas Schwab <schwab@suse.de>
639 PR rtl-optimization/36929
640 * dse.c (replace_inc_dec): Use emit_insn_before instead of
641 add_insn_before and fix argument order.
642 (replace_inc_dec_mem): Handle NULL rtx.
644 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
646 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
648 (arm_compute_initial_elimination_offset): Use it.
649 (arm_compute_save_reg_mask): Include static chain save slot when
650 calculating alignment.
651 (arm_get_frame_offsets): Ditto.
652 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
653 that we can use to decrement the stack when the stack decrement
654 could be too big for an immediate value in a single insn.
655 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
657 2008-07-30 Richard Guenther <rguenther@suse.de>
659 PR tree-optimization/36967
660 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
661 Release defs of statements we remove.
663 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
665 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
666 instead of NULL_RTVEC.
668 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
672 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
675 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
677 * final.c (call_from_call_insn): New.
678 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
680 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
682 * configure.ac: Substitute ADA_CFLAGS.
683 * configure: Regenerate.
684 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
685 * Makefile.in: Remove mention of X_* variables.
686 * config/pa/x-ada-hpux10: Remove.
687 * config/pa/x-ada: Remove.
689 * doc/fragments.texi: Update.
691 2008-07-30 Olivier Hainque <hainque@adacore.com>
693 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
694 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
695 __dso_handle explicitly here.
697 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
700 * c-typeck.c (build_binary_op): Encapsulate code into...
701 * c-common.c (shorten_binary_op): ...this new function.
702 (conversion_warning): Use the new function. Handle non-negative
703 constant in bitwise-and.
704 * c-common.h (shorten_binary_op): Declare.
706 2008-07-30 Olivier Hainque <hainque@adacore.com>
708 * scan.c (make_sstring_space): Add explicit conversions of
709 allocator's return value.
710 * fix-header.c (recognized_function): Likewise.
712 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
714 * doc/cpp.texi: Update to GFDL 1.2.
715 * doc/gcc.texi: Do not list GPL as Invariant Section.
716 * doc/gccint.texi: Likewise. Update copyright years.
717 * doc/install.texi: Update copyright years.
719 2008-07-30 Alan Modra <amodra@bigpond.net.au>
722 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
723 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
725 2008-07-29 Jan Hubicka <jh@suse.cz>
727 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
728 (grokdeclarator): Likewise.
729 * langhooks.c (lhd_warn_unused_global_decl): Use
730 DECL_DECLARED_INLINE_P.
731 * print-tree.c (print_node): Remove DECL_INLINE check.
733 2008-07-29 Richard Guenther <rguenther@suse.de>
735 PR tree-optimization/36945
736 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
737 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
738 Record invariant addresses un-decomposed.
739 (copy_reference_ops_from_call): Record reference call
740 arguments properly. Simplify.
741 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
742 helper split out from ...
743 (create_component_ref_by_pieces): ... here. Simplify.
744 Prepare for recursive invocation for call arguments.
745 (create_expression_by_pieces): Adjust call to
746 create_component_ref_by_pieces.
747 (compute_avail): Process operand 2 of reference ops.
749 2008-07-29 Richard Guenther <rguenther@suse.de>
751 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
753 2008-07-29 Jakub Jelinek <jakub@redhat.com>
755 * c-format.c (check_format_types): Revert unwanted checkin.
757 2008-07-29 Jan Hubicka <jh@suse.cz>
759 * flags.h (flag_really_no_inline): Remove.
760 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
761 * toplev.c (flag_really_no_inline): Remove.
762 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
763 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
764 (cgraph_decide_inlining_incrementally): Likewise.
765 (compute_inline_parameters): Likewise.
766 * opts.c (decode_options): Simplify.
767 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
768 * common.opt (finline): Initialize to 1.
769 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
771 2008-07-29 Jan Hubicka <jh@suse.cz>
773 * predict.c (always_optimize_for_size_p): New function.
774 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
775 optimize_edge_for_size_p, optimize_edge_for_speed_p,
776 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
778 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
779 * function.c (prepare_function_start): Set default profile.
780 * function.h (rtl_data): Add maybe_hot_insn_p.
781 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
782 (construct_exit_block): Likewise.
783 (tree_expand_cfg): Likewise.
785 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
786 optimize_edge_for_size_p, optimize_edge_for_speed_p,
787 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
788 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
791 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
794 * c-decl.c (merge_decls): Merge USED flags.
796 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
798 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
799 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
800 next_stack, lab_false and lab_over trees.
802 2008-07-28 Richard Guenther <rguenther@suse.de>
804 PR tree-optimization/36957
805 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
806 (useless_type_conversion_p): Remove.
807 (types_compatible_p): Remove.
808 * gimple.h (tree_ssa_useless_type_conversion): Declare.
809 (useless_type_conversion_p): Declare.
810 (types_compatible_p): Declare.
811 (gimple_expr_type): Return the base type only if it is
812 trivially convertible to the subtype.
814 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
816 * configure.ac: Use the m4_do macro to concatenate the warnings into
817 one string in ACX_PROG_CC_WARNING_OPTS,
818 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
819 * configure: Regenerate.
821 2008-07-28 Richard Guenther <rguenther@suse.de>
823 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
824 (insert_fake_stores): Remove.
825 (realify_fake_stores): Likewise.
826 (execute_pre): Remove dead code.
827 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
828 (find_func_aliases): Deal with it here instead.
829 Re-enable gcc_unreachable call.
831 2008-07-28 Richard Guenther <rguenther@suse.de>
833 Merge from gimple-tuples-branch.
835 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
836 * gimple.def: New file.
837 * gsstruct.def: Likewise.
838 * gimple-iterator.c: Likewise.
839 * gimple-pretty-print.c: Likewise.
840 * tree-gimple.c: Removed. Merged into ...
841 * gimple.c: ... here. New file.
842 * tree-gimple.h: Removed. Merged into ...
843 * gimple.h: ... here. New file.
845 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
846 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
847 --enable-checking=gimple flag.
848 * config.in: Likewise.
849 * configure: Regenerated.
851 * tree-ssa-operands.h: Tuplified.
852 * tree-vrp.c: Likewise.
853 * tree-loop-linear.c: Likewise.
854 * tree-into-ssa.c: Likewise.
855 * tree-ssa-loop-im.c: Likewise.
856 * tree-dump.c: Likewise.
857 * tree-complex.c: Likewise.
858 * cgraphbuild.c: Likewise.
859 * tree-ssa-threadupdate.c: Likewise.
860 * tree-ssa-loop-niter.c: Likewise.
861 * tree-pretty-print.c: Likewise.
862 * tracer.c: Likewise.
863 * gengtype.c: Likewise.
864 * tree-loop-distribution.c: Likewise.
865 * tree-ssa-loop-unswitch.c: Likewise.
866 * cgraph.c: Likewise.
867 * cgraph.h: Likewise.
868 * tree-ssa-loop-manip.c: Likewise.
869 * value-prof.c: Likewise.
870 * tree-ssa-loop-ch.c: Likewise.
871 * tree-tailcall.c: Likewise.
872 * value-prof.h: Likewise.
875 * tree-pass.h: Likewise.
876 * ipa-cp.c: Likewise.
877 * tree-scalar-evolution.c: Likewise.
878 * tree-scalar-evolution.h: Likewise.
879 * target.h: Likewise.
880 * lambda-mat.c: Likewise.
881 * tree-phinodes.c: Likewise.
882 * diagnostic.h: Likewise.
883 * builtins.c: Likewise.
884 * tree-ssa-alias-warnings.c: Likewise.
885 * cfghooks.c: Likewise.
886 * fold-const.c: Likewise.
887 * cfghooks.h: Likewise.
888 * omp-low.c: Likewise.
889 * tree-ssa-dse.c: Likewise.
890 * ipa-reference.c: Likewise.
891 * tree-ssa-uncprop.c: Likewise.
892 * toplev.c: Likewise.
893 * tree-gimple.c: Likewise.
894 * tree-gimple.h: Likewise.
895 * tree-chrec.c: Likewise.
896 * tree-chrec.h: Likewise.
897 * tree-ssa-sccvn.c: Likewise.
898 * tree-ssa-sccvn.h: Likewise.
899 * cgraphunit.c: Likewise.
900 * tree-ssa-copyrename.c: Likewise.
901 * tree-ssa-ccp.c: Likewise.
902 * tree-ssa-loop-ivopts.c: Likewise.
903 * tree-nomudflap.c: Likewise.
904 * tree-call-cdce.c: Likewise.
905 * ipa-pure-const.c: Likewise.
906 * c-format.c: Likewise.
907 * tree-stdarg.c: Likewise.
908 * tree-ssa-math-opts.c: Likewise.
909 * tree-ssa-dom.c: Likewise.
910 * tree-nrv.c: Likewise.
911 * tree-ssa-propagate.c: Likewise.
912 * ipa-utils.c: Likewise.
913 * tree-ssa-propagate.h: Likewise.
914 * tree-ssa-alias.c: Likewise.
915 * gimple-low.c: Likewise.
916 * tree-ssa-sink.c: Likewise.
917 * ipa-inline.c: Likewise.
918 * c-semantics.c: Likewise.
919 * dwarf2out.c: Likewise.
921 * tree-ssa-loop-ivcanon.c: Likewise.
922 * predict.c: Likewise.
923 * tree-ssa-loop.c: Likewise.
924 * tree-parloops.c: Likewise.
925 * tree-ssa-address.c: Likewise.
926 * tree-ssa-ifcombine.c: Likewise.
927 * matrix-reorg.c: Likewise.
928 * c-decl.c: Likewise.
929 * tree-eh.c: Likewise.
930 * c-pretty-print.c: Likewise.
931 * lambda-trans.c: Likewise.
932 * function.c: Likewise.
933 * langhooks.c: Likewise.
934 * ebitmap.h: Likewise.
935 * tree-vectorizer.c: Likewise.
936 * function.h: Likewise.
937 * langhooks.h: Likewise.
938 * tree-vectorizer.h: Likewise.
939 * ipa-type-escape.c: Likewise.
940 * ipa-type-escape.h: Likewise.
941 * domwalk.c: Likewise.
942 * tree-if-conv.c: Likewise.
943 * profile.c: Likewise.
944 * domwalk.h: Likewise.
945 * tree-data-ref.c: Likewise.
946 * tree-data-ref.h: Likewise.
947 * tree-flow-inline.h: Likewise.
948 * tree-affine.c: Likewise.
949 * tree-vect-analyze.c: Likewise.
950 * c-typeck.c: Likewise.
951 * gimplify.c: Likewise.
952 * coretypes.h: Likewise.
953 * tree-ssa-phiopt.c: Likewise.
955 * tree-ssa-coalesce.c: Likewise.
956 * tree.def: Likewise.
957 * tree-dfa.c: Likewise.
958 * except.c: Likewise.
959 * except.h: Likewise.
960 * cfgexpand.c: Likewise.
961 * tree-cfgcleanup.c: Likewise.
962 * tree-ssa-pre.c: Likewise.
963 * tree-ssa-live.c: Likewise.
964 * tree-sra.c: Likewise.
965 * tree-ssa-live.h: Likewise.
966 * tree-predcom.c: Likewise.
967 * lambda.h: Likewise.
968 * tree-mudflap.c: Likewise.
969 * ipa-prop.c: Likewise.
970 * print-tree.c: Likewise.
971 * tree-ssa-copy.c: Likewise.
972 * ipa-prop.h: Likewise.
973 * tree-ssa-forwprop.c: Likewise.
974 * ggc-page.c: Likewise.
976 * tree-ssa-dce.c: Likewise.
977 * tree-vect-patterns.c: Likewise.
978 * tree-ssa-ter.c: Likewise.
979 * tree-nested.c: Likewise.
980 * tree-ssa.c: Likewise.
981 * lambda-code.c: Likewise.
982 * tree-ssa-loop-prefetch.c: Likewise.
983 * tree-inline.c: Likewise.
984 * tree-inline.h: Likewise.
985 * tree-iterator.c: Likewise.
986 * tree-optimize.c: Likewise.
987 * tree-ssa-phiprop.c: Likewise.
988 * tree-vect-transform.c: Likewise.
989 * tree-object-size.c: Likewise.
990 * tree-outof-ssa.c: Likewise.
991 * cfgloop.c: Likewise.
992 * system.h: Likewise.
993 * tree-profile.c: Likewise.
994 * cfgloop.h: Likewise.
995 * c-gimplify.c: Likewise.
996 * c-common.c: Likewise.
997 * tree-vect-generic.c: Likewise.
998 * tree-flow.h: Likewise.
999 * c-common.h: Likewise.
1000 * basic-block.h: Likewise.
1001 * tree-ssa-structalias.c: Likewise.
1002 * tree-switch-conversion.c: Likewise.
1003 * tree-ssa-structalias.h: Likewise.
1004 * tree-cfg.c: Likewise.
1005 * passes.c: Likewise.
1006 * ipa-struct-reorg.c: Likewise.
1007 * ipa-struct-reorg.h: Likewise.
1008 * tree-ssa-reassoc.c: Likewise.
1009 * cfgrtl.c: Likewise.
1010 * varpool.c: Likewise.
1012 * tree-ssanames.c: Likewise.
1013 * tree-ssa-threadedge.c: Likewise.
1014 * langhooks-def.h: Likewise.
1015 * tree-ssa-operands.c: Likewise.
1016 * config/alpha/alpha.c: Likewise.
1017 * config/frv/frv.c: Likewise.
1018 * config/s390/s390.c: Likewise.
1019 * config/m32c/m32c.c: Likewise.
1020 * config/m32c/m32c-protos.h: Likewise.
1021 * config/spu/spu.c: Likewise.
1022 * config/sparc/sparc.c: Likewise.
1023 * config/i386/i386.c: Likewise.
1024 * config/sh/sh.c: Likewise.
1025 * config/xtensa/xtensa.c: Likewise.
1026 * config/stormy16/stormy16.c: Likewise.
1027 * config/ia64/ia64.c: Likewise.
1028 * config/rs6000/rs6000.c: Likewise.
1029 * config/pa/pa.c: Likewise.
1030 * config/mips/mips.c: Likewise.
1032 2008-07-28 Simon Baldwin <simonb@google.com>
1034 * c-pragma.c (handle_pragma_message): New function.
1035 (init_pragma): Register handle_pragma_message.
1036 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
1039 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
1041 PR tree-optimization/35252
1042 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
1043 REALPART_EXPR to be considered as same load operation.
1045 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
1047 PR tree-optimization/36830
1048 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
1049 (expressions_equal_p): Return false if only one operand is null.
1051 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
1053 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
1054 version requirements.
1056 2008-07-26 Olivier Hainque <hainque@adacore.com>
1058 * collect2.c (symkind): New enum. Symbol kinds we care about.
1059 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
1060 code and head comment accordingly.
1061 (scan_prog_file): Use symkind names instead of bare integers.
1063 2008-07-25 Jan Hubicka <jh@suse.cz>
1065 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
1067 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
1068 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
1069 * dojump.c (clear_pending_stack_adjust): Likewise.
1070 * print-tree.c (print_node): Ignore DECL_INLINE.
1071 * tree-inline.c (inlinable_function_p): Likewise.
1073 2008-07-25 Michael Meissner <gnu@the-meissners.org>
1075 * doc/extend.texi (hot attribute): Document that the hot attribute
1076 turns on -O3 for some ports.
1077 (cold attribute): Document that the cold attribute turns on -Os
1080 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1081 reflect function specific option support.
1083 * target.h (struct target_option_hooks): Add fields to say whether
1084 the cold attribute implies -Os and the hot attribute implies -O3.
1086 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1087 By default, do not turn on -Os for cold functions.
1088 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1089 not turn on -O3 for hot functions.
1091 * c-common.c (handle_hot_attribute): Use target hook to determine
1092 if hot functions should enable -O3.
1093 (handle_cold_attribute): Use target hook to determine if cold
1094 functions should enable -Os.
1096 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1097 (override_options): Move disable scheduling to
1098 optimization_options.
1099 (optimization_options): Disable scheduling here, not
1101 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1102 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1104 * config/ia64/ia64.c (ia64_override_options): Move setting
1105 scheduling flags to ia64_optimization_options.
1106 (ia64_optimization_options): Disable scheduling options here, and
1107 not in ia64_override_options.
1108 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1109 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1111 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
1114 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1116 2008-07-25 Martin Jambor <mjambor@suse.cz>
1118 PR tree-optimization/36926
1119 * ipa-prop.c (ipa_analyze_call_uses): Call
1120 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1122 2008-07-25 Joseph Myers <joseph@codesourcery.com>
1124 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1125 movv2si_internal): Add mem = reg alternative.
1127 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
1130 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1131 DEFAULT_PCC_STRUCT_RETURN to 127.
1133 2008-07-24 Jan Hubicka <jh@suse.cz>
1135 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1136 (build_cgraph_edges): Likewise.
1137 * cgraph.c (cgraph_node): Do not update assembler hash.
1138 (cgraph_remove_node): Drop non-unit-at-a-time code.
1139 * tree-pass.h (pass_O0_always_inline): Remove.
1140 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1141 * toplev.c (process_options): Flag unit-at-a-time does not imply
1143 * cgraphunit.c: Update comments.
1144 (decide_is_function_needed): Drop non-unit-at-a-time mode.
1145 (cgraph_assemble_pending_functions): Remove.
1146 (cgraph_reset_node): Drop non-unit-at-a-time code.
1147 (cgraph_finalize_function): Likewise.
1148 (cgraph_analyze_function): Likewise.
1149 (cgraph_finalize_compilation_unit): Likewise.
1150 (cgraph_expand_function): Likewise.
1151 (cgraph_optimize): Likesise.
1152 (save_inline_function_body): Likewise.
1153 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1154 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1155 * ipa-inline.c: Update comments.
1156 (enum inlining_mode): remove INLINE_SPEED.
1157 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1158 (cgraph_mark_inline_edge): Likewise.
1159 (try_inline): Likewise.
1160 (cgraph_decide_inlining_incrementally): Likewise.
1161 (cgraph_gate_inlining): Remove.
1162 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1163 (cgraph_gate_early_inlining): Likewise.
1164 (gate_inline_passes): Remove.
1165 (pass_inline_parameters, pass_ipa_inline): Remove gates.
1166 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1167 pass_O0_always_inline): Remove.
1168 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1169 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1170 * opts.c (no_unit_at_a_time_default): Remove.
1171 (decode_options): Remove flag_unit_at_a_time reset and warning.
1172 * opts.h (no_unit_at_a_time_default): Remove.
1173 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1174 early in GNU dialect.
1175 (merge_decls): Update comment; drop unit-at-a-time check.
1176 (finish_decl): Likewise.
1177 (grok_declaration): Remove flag_inline_trees code.
1178 (finish_functions): Return on function returning non-void on all
1180 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1181 * cfgexpand.c (expand_one_static_var): Remove.
1182 (expand_one_var): Remove expand_one_static_var call.
1183 (expand_used_vars_for_block): Remove flag_unit_a_time check.
1184 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1185 and flag_unit_at_a-time compatibility checks.
1186 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1187 * tree-inline.c (flag_inline_trees): Remove.
1188 (inlinable_function_p): Don't check it.
1189 (expand_call_inline): Remove non-unit-at-a-time code.
1190 * tree-inline.h (flag_inline_trees): Remove.
1191 * tree-optimize.c (execute_early_local_optimizations): Remove
1192 unit-at-a-time checks.
1193 (tree_rest_of_compilation): Likewise.
1194 * combine.c (setup_incoming_promotions): Likewise.
1195 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1196 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1197 * passes.c (pass_inline_parameters): Update comments; remove
1198 O0_alwaysinline pass.
1199 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1200 (execute_one_pass): Likewise.
1201 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1202 (ix86_function_sseregparm): Likewise.
1203 * arm.c (arm_function_in_section_p): Likewise.
1204 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1205 * varpool.c: Update comments.
1206 (decide_is_variable_needed): Remove unit-at-a-time checks.
1207 (varpool_finalize_decl): Likewise.
1209 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
1211 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1213 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1215 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
1217 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1218 imp symbol extension.
1220 2008-07-23 Ian Lance Taylor <iant@google.com>
1222 * tree-vrp.c (infer_value_range): Ignore asm statements when
1223 looking for memory accesses for -fdelete-null-pointer-checks.
1225 2008-07-24 Ben Elliston <bje@au.ibm.com>
1227 * config/spu/spu-c.c (__vector_keyword): New variable.
1228 (vector_keyword): Likewise.
1229 (spu_categorize_keyword): New function.
1230 (spu_macro_to_expand): Likewise.
1231 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1232 compiling an ISO C dialect.
1234 2008-07-24 Ben Elliston <bje@au.ibm.com>
1236 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1239 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1241 * configure: Regenerate.
1242 * configure.ac: Require texinfo 4.7.
1243 * doc/install.texi: Document texinfo 4.7 requirement.
1245 2008-07-23 Martin Jambor <mjambor@suse.cz>
1247 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1248 rather than for DECL_SAVED_TREE.
1249 * ipa-prop.c: Include diagnostic.h.
1250 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1252 (ipa_detect_param_modifications): Function rewritten from scratch.
1253 (ipa_compute_jump_functions): Changed accesses to modification flags.
1254 (ipa_free_node_params_substructures): Update flags destruction.
1255 (ipa_node_duplication_hook): Update flags duplication.
1256 (ipa_print_all_params_modified): Updated flag access.
1257 * ipa-prop.h (struct ipa_param_flags): New structure.
1258 (struct ipa_node_params): New field modification_analysis_done,
1259 modified_flags changed into param_flags.
1260 (ipa_is_ith_param_modified): Changed to use new flags.
1261 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1263 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1264 ipa-cp.c and split into two functions.
1265 (ipa_print_node_jump_functions): New function.
1266 (compute_scalar_jump_functions): New function.
1267 (type_like_member_ptr_p): New function.
1268 (compute_pass_through_member_ptrs): New function.
1269 (fill_member_ptr_cst_jump_function): New function.
1270 (determine_cst_member_ptr): New function.
1271 (compute_cst_member_ptr_arguments): New function.
1272 (ipa_compute_jump_functions): Complete rewrite.
1273 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1274 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1275 (struct ipa_member_ptr_cst): New structure.
1276 (union jump_func_value): New field member_cst.
1277 * ipa-cp.c (ipcp_lat_is_insertable): New function.
1278 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1279 jump function types.
1280 (ipcp_print_all_lattices): Slight fprintf rearrangement.
1281 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1282 instead of ipcp_print_all_jump_functions.
1283 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1284 only for replacable scalars.
1286 * doc/invoke.texi (Optimize options): Add description of
1287 -findirect-inlining.
1288 * common.opt (flag_indirect_inlining): New flag.
1289 * opts.c (decode_options): Set flag_indirect_inlining when
1292 * ipa-inline.c: Include ipa-prop.h.
1293 (inline_indirect_intraprocedural_analysis): New function.
1294 (inline_generate_summary): Allocate parameter and argument info
1295 structures, call inline_indirect_intraprocedural_analysis on each
1296 node when doing indirect inlining and deallocate indirect inlining
1297 data structures in the end.
1298 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1299 (free_all_ipa_structures_after_iinln): New function.
1300 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1302 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1304 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1305 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1306 of computing the frequency separately.
1307 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1308 of computing the frequency separately.
1309 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1310 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1311 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1312 (ipa_get_stmt_member_ptr_load_param): New function.
1313 (ipa_is_ssa_with_stmt_def): New function.
1314 (ipa_note_param_call): New function.
1315 (ipa_analyze_call_uses): New function.
1316 (ipa_analyze_stmt_uses): New function.
1317 (ipa_analyze_params_uses): New function.
1318 (ipa_free_node_params_substructures): Also free the param_calls linked
1320 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1321 (ipa_print_node_param_flags): New function.
1322 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1323 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1324 * ipa-prop.h (struct ipa_param_flags): New field called.
1325 (struct ipa_param_call_note): New structure.
1326 (struct ipa_node_params): New fields param_calls and
1328 (ipa_is_ith_param_called): New function.
1329 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1330 ipa_analyze_params_uses and dump parameter flags.
1332 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1333 ipa_propagate_indirect_call_infos if performing indirect inlining,
1334 pass a new parameter new_edges to it.
1335 (add_new_edges_to_heap): New fucntion.
1336 (cgraph_decide_inlining_of_small_functions): New vector
1337 new_indirect_edges for newly found indirect edges , call
1338 ipa_propagate_indirect_call_infos after inlining.
1339 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1340 inlining if performing indirect inlining. Call
1341 free_all_ipa_structures_after_iinln when doing so too.
1342 (inline_generate_summary): Do not call
1343 free_all_ipa_structures_after_iinln here.
1344 * ipa-prop.c (update_jump_functions_after_inlining): New function.
1345 (print_edge_addition_message): New function.
1346 (update_call_notes_after_inlining): New function.
1347 (propagate_info_to_inlined_callees): New function.
1348 (ipa_propagate_indirect_call_infos): New function.
1349 * ipa-prop.h: Include cgraph.h
1350 (struct ipa_param_call_note): Fields reordered, new field processed.
1351 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1353 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1354 rediscovered call statements.
1355 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1356 (dump_cgraph_node): Dump also the indirect_call flag.
1357 (cgraph_clone_edge): Copy also the indirect_call flag.
1358 * tree-inline.c (copy_bb): Do not check for fndecls from call
1359 expressions, check for edge availability when moving clones.
1360 (get_indirect_callee_fndecl): New function.
1361 (expand_call_inline): If callee declaration is not apprent from
1362 the statement, try calling get_indirect_callee_fndecl. Do not
1363 issue warnings or call sorry when not inlinings an indirect edge.
1364 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1366 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1367 bit more frandly to matching.
1368 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1369 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1370 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1372 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1375 * opth-gen.awk: Suppress function specific features when building
1377 * optc-gen.awk: Ditto.
1379 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1382 * diagnostic.c (pedwarn): Add opt parameter.
1384 * c-tree.h (pedwarn_init): Add opt parameter.
1385 (pedwarn_c90): Likewise.
1386 (pedwarn_c99): Likewise.
1387 * c-errors.c (pedwarn_c99): Likewise.
1388 (pedwarn_c90): Likewise.
1389 * toplev.h (pedwarn): Update declaration.
1390 (pedwarn0): Declare.
1391 * c-lex.c: All calls to pedwarn changed.
1392 * builtins.c: All calls to pedwarn changed.
1393 * toplev.c: All calls to pedwarn changed.
1394 * c-decl.c: All calls to pedwarn changed.
1395 * c-typeck.c: All calls to pedwarn changed.
1396 * c-common.c: All calls to pedwarn changed.
1397 * c-parser.c: All calls to pedwarn changed.
1399 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1400 Karthik Kumar <karthikkumar@gmail.com>
1402 * attribs.c (file scope): Include c-common.h.
1403 (decl_attributes): Add support for #pragma GCC optimize and
1406 * targhooks.c (default_can_inline_p): New function that is the
1407 default for the TARGET_CAN_INLINE_P target hook.
1409 * targhooks.h (default_can_inline_p): Add declaration.
1411 * tree.c (cl_optimization_node): New static tree for building
1412 OPTIMIZATION_NODE tree.
1413 (cl_target_option_node): New static tree for building
1414 TARGET_OPTION_NODE tree.
1415 (cl_option_hash_table): New hash table for hashing
1416 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1417 (cl_option_hash_hash): New function to provide the hash value for
1418 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1419 (cl_option_hash_eq): New function to provide an equality test for
1420 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1421 (tree_code_size): Add support for OPTIMIZATION_NODE and
1422 TARGET_OPTION_NODE trees.
1423 (tree_code_structure): Add support for OPTIMIZATION_NODE and
1424 TARGET_OPTION_NODE trees.
1425 (build_optimization_node): Build a tree that has all of the
1426 current optimization options.
1427 (build_target_option_node): Build a tree that has the target
1428 options that might be changed on a per function basis.
1430 * tree.h (file scope): Include options.h.
1431 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1432 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1433 (TREE_OPTIMIZATION): Ditto.
1434 (TREE_TARGET_SPECIFIC): Ditto.
1435 (struct tree_function_decl): Add fields for remembering the
1436 current optimization options and target specific options.
1437 (struct tree_optimization_option): New tree variant that remembers
1438 the optimization options.
1439 (struct tree_target_option): New tree variant that remembers the
1440 target specific flags that might change for compiling a particular
1442 (union tree_node): Include tree_optimization_option and
1443 tree_target_option fields.
1444 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1445 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1446 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1447 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1448 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1449 optimization and target options.
1450 (optimization_default_node): New macro to refer to global_trees
1452 (optimization_current_node): Ditto.
1453 (optimization_cold_node): Ditto.
1454 (optimization_hot_node): Ditto.
1455 (target_option_default_node): Ditto.
1456 (target_option_current_node): Ditto.
1457 (current_option_pragma): Ditto.
1458 (current_optimize_pragma): Ditto.
1460 * target.h (struct gcc_target): Add valid_option_attribute_p,
1461 target_option_save, target_option_restore, target_option_print,
1462 target_option_pragma_parse, and can_inline_p hooks.
1464 * toplev.h (parse_optimize_options): Add declaration.
1465 (fast_math_flags_struct_set_p): Ditto.
1467 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1468 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1471 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1472 tree_can_inline_p hook to see if one function can inline another.
1473 (cgraph_decide_inlining): Ditto.
1474 (cgraph_decide_inlining_incrementally): Ditto.
1476 * opts.c (decode_options): Add support for running multiple times
1477 to allow functions with different target or optimization options
1478 than was specified on the command line.
1479 (fast_math_flags_struct_set_p): New function that is similar to
1480 fast_math_flags_set_p, except it uses the values in the
1481 cl_optimization structure instead of global variables.
1483 * optc-gen.awk: Add support for TargetSave to allow a back end to
1484 declare new fields that need to be saved when using function
1485 specific options. Include flags.h and target.h in the options.c
1486 source. Add support for Save to indicate which options can be set
1487 for individual functions. Generate cl_optimize_save,
1488 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1489 cl_target_option_restore, cl_target_option_print functions to
1490 allow functions to use different optimization or target options.
1492 * opt-functions.awk (var_type_struct): Return the type used for
1493 storing the field in a structure.
1495 * opth-gen.awk: Add support for TargetSave to allow a back end to
1496 declare new fields that need to be saved when using function
1497 specific options. Add support for Save to indicate which options
1498 can be set for individual functions. Only generate one extern for
1499 Mask fields. Generate cl_optimization and cl_target_option
1500 structures to remember optimization and target options.
1502 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1503 collecting new tree nodes.
1504 (TS_TARGET_OPTION): Ditto.
1506 * c-decl.c (merge_decls): Merge function specific target and
1507 optimization options.
1509 * function.c (invoke_set_current_function_hook): If the function
1510 uses different optimization options, change the global variables
1513 * coretypes.h (struct cl_optimization): Add forward reference.
1514 (struct cl_target_option): Ditto.
1516 * c-pragma.c (option_stack): New static vector to remember the
1517 current #pragma GCC option stack.
1518 (handle_pragma_option): New function to support #pragma GCC option
1519 to change target options.
1520 (optimize_stack): New static vector to remember the current
1521 #pragma GCC optimize stack.
1522 (handle_pragma_optimize): New function to support #pragma GCC
1523 optimize to change optimization options.
1524 (init_pragma): Add support for #pragma GCC optimize and #pragma
1527 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1528 optimization options.
1529 (TARGET_OPTION_NODE): New tree code for remembering certain target
1532 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1533 TARGET_OPTION_NODE trees.
1535 * common.opt (-O): Add Optimization flag.
1537 (-fmath-errno): Ditto.
1538 (-falign-functions): Add UInteger flag to make sure flag gets full
1539 int in cl_optimization structure.
1540 (-falign-jumps): Ditto.
1541 (-falign-labels): Ditto.
1542 (-falign-loops): Ditto.
1543 (-fsched-stalled-insns): Ditto.
1544 (-fsched-stalled-insns-dep): Ditto.
1546 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1548 (TARGET_OPTION_SAVE): Ditto.
1549 (TARGET_OPTION_RESTORE): Ditto.
1550 (TARGET_OPTION_PRINT): Ditto.
1551 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1552 (TARGET_CAN_INLINE_P): Ditto.
1553 (TARGET_INITIALIZER): Add new hooks.
1555 * tree-inline.c (tree_can_inline_p): New function to determine
1556 whether one function can inline another. Check if the functions
1557 use compatible optimization options, and also call the backend
1560 * tree-inline.h (tree_can_inline_p): Add declaration.
1562 * c-common.c (c_common_attribute): Add support for option and
1563 optimize attributes.
1564 (handle_option_attribute): Add support for the option attribute to
1565 allow the user to specify different target options for compiling a
1567 (handle_optimize_attribute): Add support for the optimize
1568 attribute to allow the user to specify different optimization
1569 options for compiling a specific function.
1570 (handle_hot_attribute): Turn on -O3 optimization for this one
1571 function if it isn't the default optimization level.
1572 (handle_cold_attribute): Turn on -Os optimization for this one
1573 function if it insn't the default optimization.
1574 (const_char_p): New const char * typedef.
1575 (optimize_args): New static vector to remember the optimization
1577 (parse_optimize_options): New function to set up the optimization
1578 arguments from either the optimize attribute or #pragma GCC optimize.
1580 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1581 (builtin_define_std): Ditto.
1583 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1584 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
1585 (x86_64-*-*): Ditto.
1587 * Makefile.in (TREE_H): Add options.h.
1588 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1590 * doc/extend.texi (option attribute): Document new attribute.
1591 (optimize attribute): Ditto.
1592 (hot attribute): Document hot attribute sets -O3.
1593 (cold attribute): Document cold attribute sets -Os.
1594 (#pragma GCC option): Document new pragma.
1595 (#pragma GCC optimize): Ditto.
1597 * doc/options.texi (TargetSave): Document TargetSave syntax.
1598 (UInteger): Document UInteger must be used for certain flags.
1599 (Save): Document Save option to create target specific options
1600 that can be saved/restored on a function specific context.
1602 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
1603 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1605 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
1606 (TARGET_OPTION_SAVE): Ditto.
1607 (TARGET_OPTION_RESTORE): Ditto.
1608 (TARGET_OPTION_PRINT): Ditto.
1609 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1610 (TARGET_CAN_INLINE_P): Ditto.
1612 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1614 (-mfpmath=both): Ditto.
1616 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1617 Karthik Kumar <karthikkumar@gmail.com>
1619 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
1620 (TARGET_POPCNT): Ditto.
1621 (TARGET_SAHF): Ditto.
1622 (TARGET_AES): Ditto.
1623 (TARGET_PCLMUL): Ditto.
1624 (TARGET_CMPXCHG16B): Ditto.
1625 (TARGET_RECIP): Move switch into target_flags.
1626 (TARGET_FUSED_MADD): Ditto.
1627 (ix86_arch_features): Make an unsigned char type.
1628 (ix86_tune_features): Ditto.
1629 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1630 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1631 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1633 * config/i386/i386.opt (arch): New TargetSave field to define
1634 fields that need to be saved for function specific option support.
1637 (branch_cost): Ditto.
1638 (ix86_isa_flags_explicit): Ditto.
1639 (tune_defaulted): Ditto.
1640 (arch_specified): Ditto.
1641 (-m128-long-double): Add Save flag to save option for target
1642 specific option support.
1644 (-maccumulate-outgoing-args): Ditto.
1645 (-malign-double): Ditto.
1646 (-malign-stringops): Ditto.
1647 (-mfancy-math-387): Ditto.
1648 (-mhard-float): Ditto.
1650 (-minline-all-stringops): Ditto.
1651 (-minline-stringops-dynamically): Ditto.
1652 (-mms-bitfields): Ditto.
1653 (-mno-align-stringops): Ditto.
1654 (-mno-fancy-math-387): Ditto.
1655 (-mno-push-args): Ditto.
1656 (-mno-red-zone): Ditto.
1657 (-mpush-args): Ditto.
1658 (-mred-zone): Ditto.
1660 (-msseregparm): Ditto.
1661 (-mstack-arg-probe): Ditto.
1676 (-mrecip): Move flag into target_flags.
1678 (-mno-fused-madd): Ditto.
1679 (-mfused-madd): Ditto.
1680 (-mabm): Move flag into ix86_isa_flags.
1687 * config/i386/i386-c.c: New file for #pragma support.
1688 (ix86_target_macros_internal): New function to #define or #undef
1689 target macros based when the user uses the #pragma GCC option to
1690 change target options.
1691 (ix86_pragma_option_parse): New function to add #pragma GCC option
1693 (ix86_target_macros): Move defining the target macros here from
1694 TARGET_CPU_CPP_BUILTINS in i386.h.
1695 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1696 defined, initialize any subtarget #pragmas.
1698 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1699 REGISTER_TARGET_PRAGMAS.
1701 * config/i386/t-i386: New file for x86 dependencies.
1702 (i386.o): Make dependencies mirror the include files used.
1703 (i386-c.o): New file, add dependencies.
1705 * config/i386/i386-protos.h (override_options): Add bool argument.
1706 (ix86_valid_option_attribute_tree): Add declaration.
1707 (ix86_target_macros): Ditto.
1708 (ix86_register_macros): Ditto.
1710 * config/i386/i386.c (ix86_tune_features): Move initialization of
1711 the target masks to initial_ix86_tune_features to allow functions
1712 to have different target options. Make type unsigned char,
1713 instead of unsigned int.
1714 (initial_ix86_tune_features): New static vector to hold processor
1715 masks for the tune variables.
1716 (ix86_arch_features): Move initialization of the target masks to
1717 initial_ix86_arch_features to allow functions to have different
1718 target options. Make type unsigned char, instead of unsigned int.
1719 (initial_ix86_arch_features): New static vector to hold processor
1720 masks for the arch variables.
1721 (enum ix86_function_specific_strings): New enum to describe the
1722 string options used for attribute((option(...))).
1723 (ix86_target_string): New function to return a string that
1724 describes the target options.
1725 (ix86_debug_options): New function to print the current options in
1727 (ix86_function_specific_save): New function hook to save the
1728 function specific global variables in the cl_target_option structure.
1729 (ix86_function_specific_restore): New function hook to restore the
1730 function specific variables from the cl_target_option structure to
1731 the global variables.
1732 (ix86_function_specific_print): New function hook to print the
1733 target specific options in the cl_target_option structure.
1734 (ix86_valid_option_attribute_p): New function hook to validate
1735 attribute((option(...))) arguments.
1736 (ix86_valid_option_attribute_tree): New function that is common
1737 code between attribute((option(...))) and #pragma GCC option
1738 support that parses the options and returns a tree holding the options.
1739 (ix86_valid_option_attribute_inner_p): New helper function for
1740 ix86_valid_option_attribute_tree.
1741 (ix86_can_inline_p): New function hook to decide if one function
1742 can inline another on a target specific basis.
1743 (ix86_set_current_function); New function hook to switch target
1744 options if the user used attribute((option(...))) or #pragma GCC
1746 (ix86_tune_defaulted): Move to static file scope from
1748 (ix86_arch_specified): Ditto.
1749 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1751 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1752 (OPTION_MASK_ISA_ABM_SET): Ditto.
1753 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1754 (OPTION_MASK_ISA_CX16_SET): Ditto.
1755 (OPTION_MASK_ISA_SAHF_SET): Ditto.
1756 (OPTION_MASK_ISA_AES_UNSET): Ditto.
1757 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1758 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1759 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1760 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1761 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1762 (struct ptt): Move to static file scope from override_options.
1763 (processor_target_table): Ditto.
1765 (ix86_handle_option): Add support for options that are now isa options.
1766 (override_options): Add support for declaring functions that
1767 support different target options than were specified on the
1768 command line. Move struct ptt, processor_target_table, cpu_names,
1769 ix86_tune_defaulted, ix86_arch_specified to static file scope.
1770 Add bool argument. Fix up error messages so the appropriate error
1771 is given for either command line or attribute.
1772 (ix86_previous_fndecl): New static to remember previous function
1773 declaration to see if we need to change target options.
1774 (ix86_builtins_isa): New array to record the ISA of each builtin
1776 (def_builtin): Always create the builtin function, even if the
1777 current ISA doesn't support it.
1778 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1779 tests for those builtins.
1780 (ix86_init_builtins): Remove TARGET_MMX test for calling
1781 ix86_init_mmx_sse_builtins.
1782 (ix86_expand_builtin): If the current ISA doesn't support a given
1783 builtin, signal an error.
1784 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1785 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1786 (TARGET_OPTION_SAVE): Ditto.
1787 (TARGET_OPTION_RESTORE): Ditto.
1788 (TARGET_OPTION_PRINT): Ditto.
1789 (TARGET_CAN_INLINE_P): Ditto.
1791 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
1793 * c-typeck.c (build_external_ref): Don't call assemble_external.
1794 * final.c (output_operand): Call assemble_external.
1796 2008-07-21 DJ Delorie <dj@redhat.com>
1798 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1799 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1801 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1803 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1804 original insn and splitter contents into ...
1805 ("*div<mode>3_fast"): ... this new pattern. Enable only if
1806 flag_unsafe_math_optimizations. Add dummy scratch register.
1807 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
1808 !flag_unsafe_math_optimizations. Returns number with next
1809 highest magnitude if this is still less or equal to the true
1810 quotient in magnitude.
1812 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
1814 * Makefile.in: Replace toplev.h with TOPLEV_H.
1815 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1816 * c-lex.c (fe_file_change): Don't set in_system_header.
1817 * c-parser.c (c_token): Remove in_system_header.
1818 (c_lex_one_token): Don't set in_system_header.
1819 (c_parser_set_source_position_from_token): Don't set in_system_header.
1820 * diagnostic.c (diagnostic_report_diagnostic): Use location from
1823 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1824 * flags.h (in_system_header): Remove.
1825 * function.c (saved_in_system_header): Remove.
1826 (push_cfun): Don't set in_system_header.
1827 (pop_cfun): Don't set in_system_header.
1828 (push_struct_function): Don't set in_system_header.
1829 * input.h (expanded_location): Add sysp.
1830 (in_system_header_at): New.
1831 (in_system_header): New.
1832 * toplev.c (in_system_header): Remove.
1833 * toplev.h: Include input.h
1835 * tree-cfg.c (execute_warn_function_return): Call warning_at.
1836 * tree-ssa.c (warn_uninit): Call warning_at.
1837 (warn_uninitialized_var): Update calls to warn_uninit.
1838 (warn_uninitialized_phi): Update calls to warn_uninit.
1839 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1840 (expand_location): Initialize xloc.sysp.
1841 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1842 (tree_decl_with_vis): Remove in_system_header_flag.
1844 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
1847 * recog.c (asm_operand_ok): Change the order of the extra
1848 memory constraint checks.
1850 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
1853 * tree-switch-conversion.c (build_one_array): Call
1854 varpool_mark_needed_node and varpool_finalize_decl
1855 instead of assemble_variable.
1857 2008-07-19 Jan Hubicka <jh@suse.cz>
1859 * cgraph.c (cgraph_add_new_function): Do early local passes.
1860 * tree-nrv.c (gate_pass_return_slot): New gate.
1861 (pass_nrv): Add the gate.
1862 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1864 (coalesce_ssa_name): Coalesce SSA names.
1865 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1866 not optimizing so unused user vars remains visible.
1867 * common.opt (flag_tree_ter): Always enable by default.
1868 * tree-ssa-ter.c: Include flags.h
1869 (is_replaceable_p): Check that locations match; when aliasing is missing
1870 be conservative about loads.
1871 * tree-optimize.c (gate_init_datastructures): Remove.
1872 (pass_init_datastructures): New.
1873 * passes.c: Reorder passes so we always go into SSA.
1875 2008-07-19 Jan Hubicka <jh@suse.cz>
1877 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1878 * doc/invoke.texi (--combine): Likewise.
1879 (-finline-functions-called-once): Update levels when enabled.
1880 (-funit-at-a-time): Document new behaviour.
1881 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1882 -fno-section-anchors when disabled explicitly.
1883 (inline params): They are not ignored now.
1884 (precompiled headers): Remove unit-at-a-time as being incompatible.
1885 * opts.c (decode_options): Handle unit-at-a-time as alias;
1886 imply -fno-section-anchors when toplevel reorder is disabled
1888 * common.opt (ftoplevel-reorder): Set default value to 2.
1889 (funit-at-a-time): Set default value to 1.
1890 * config/rs6000/rs6000.c (optimization_options): Set section anchors
1893 2008-07-19 Jan Hubicka <jh@suse.cz>
1895 * builtins.c (expand_builtin_int_roundingfn,
1896 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1899 2008-07-19 Richard Guenther <rguenther@suse.de>
1902 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1903 * tree-ssa-sccvn.c (get_constant_value_id): New function.
1904 * tree-ssa-pre.c (get_expr_value_id): For newly created
1905 constant value-ids make sure to add the expression to its
1908 2008-07-19 Jakub Jelinek <jakub@redhat.com>
1911 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1912 return value of the builtin is ignored.
1914 2008-07-19 Olivier Hainque <hainque@adacore.com>
1916 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1917 bits, a C conformant malloc implementation has to provide.
1918 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1920 2008-07-19 Joseph Myers <joseph@codesourcery.com>
1924 * reload.c (find_reloads_subreg_address): Only reload address if
1925 reloaded == 0, not for reloaded != 1.
1928 2008-07-16 Joseph Myers <joseph@codesourcery.com>
1929 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1930 (m32c_legitimate_address_p): Handle "++rii" addresses created by
1931 m32c_legitimize_reload_address.
1933 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1934 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1935 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1937 2008-07-19 Olivier Hainque <hainque@adacore.com>
1939 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1940 argument, saying whether nested array are to be collapsed
1941 into a single array type DIE with multiple subscripts.
1942 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1943 issues, centralize the nested array types collapsing control and
1944 disable the transformation for Ada.
1946 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
1949 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1951 (x86_64_shift_adj_2): New expander.
1952 (x86_64_shift_adj_3): Ditto.
1953 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1954 to split TImode operands.
1955 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1956 (ix86_split_lshr): Ditto.
1958 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
1960 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1961 and __CHAR32_TYPE__.
1962 * c-typeck.c (digest_init): Support char16_t and char32_t.
1963 (set_nonincremental_init_from_string): Idem.
1965 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1968 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1969 PREFERRED_STACK_BOUNDARY.
1970 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1972 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
1975 * function.c (locate_and_pad_parm): Cap boundary earlier.
1977 2008-07-17 Julian Brown <julian@codesourcery.com>
1979 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1980 no-op for targets which don't use DLLs.
1982 2008-07-17 Martin Jambor <mjambor@suse.cz>
1984 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1985 that nodes are relevant by examining the node->analyzed flag.
1986 (ipcp_init_stage): Check which nodes are relevant, assert that the
1987 relevant ones are also required.
1988 (ipcp_propagate_stage): Check on the side arrays are properly
1990 (ipcp_print_all_jump_functions): Make sure not to touch any node
1991 that is not analyzed or an edge that does not have a corresponding
1992 entry in the on-the-side vectors.
1993 (ipcp_function_scale_print): Likewise.
1994 (ipcp_update_callgraph): Check that the node is relevant.
1995 (ipcp_insert_stage): Check that the node is relevant. Check there is
1996 an info for every node and edge.
1997 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1998 (ipa_print_all_tree_maps): Likewise and a new variable info.
1999 (ipa_print_all_params_modified): Likewise.
2000 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
2002 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
2005 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
2007 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
2009 PR rtl-optimization/36753
2010 * fwprop.c (use_killed_between): Don't shortcut
2011 single-definition global registers.
2013 2008-07-16 Jan Hubicka <jh@suse.cz>
2015 * cgraph.h (varpool_empty_needed_queue): Declare.
2016 * cgraphunit.c (output_in_order): Mark all variables as needed;
2018 * varpool.c (varpool_assemble_node): Update debug queue.
2019 (varpool_assemble_pending_decls): Don't do it here.
2020 (varpool_empty_needed_queue): New function.
2022 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2024 * recog.c (peephole2_optimize): Fix formatting.
2026 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2028 * c-pch.c (get_ident): Avoid C++ keywords.
2029 * combine-stack-adj.c (single_set_for_csa): Likewise.
2030 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
2031 output_asm_insn): Likewise.
2032 * reload.c (push_secondary_reload, find_reusable_reload,
2033 push_reload, combine_reloads, find_reloads,
2034 debug_reload_to_stream): Likewise.
2035 * reload.h (struct reload): Likewise.
2036 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
2037 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
2038 emit_output_reload_insns): Likewise.
2039 * targhooks.c (default_secondary_reload): Likewise.
2040 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
2042 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2044 * recog.c (validate_change_1, validate_change,
2045 validate_unshare_change, validate_replace_rtx_1, struct
2046 funny_match, constrain_operands, peephole2_optimize): Avoid C++
2048 * reload.c (push_secondary_reload, secondary_reload_class,
2049 scratch_reload_class, find_valid_class, find_reusable_reload,
2050 push_reload, find_dummy_reload, find_reloads_address_1,
2051 find_reloads_address_part, find_equiv_reg): Likewise.
2052 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
2053 choose_reload_regs): Likewise.
2054 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
2056 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2057 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2058 * sched-rgn.c (concat_INSN_LIST): Likewise.
2059 * stor-layout.c (mode_for_size, mode_for_size_tree,
2060 smallest_mode_for_size): Likewise.
2062 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2064 * cfg.c (dump_reg_info): Avoid C++ keywords.
2065 * dwarf2asm.c (dw2_force_const_mem,
2066 dw2_asm_output_encoded_addr_rtx): Likewise.
2067 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
2068 * expmed.c (expand_shift): Likewise.
2069 * global.c (find_reg): Likewise.
2070 * graph.c (draw_edge): Likewise.
2071 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
2072 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2073 widen_clz, widen_bswap, expand_parity, expand_unop,
2074 emit_cmp_and_jump_insn_1): Likewise.
2075 * postreload.c (reload_cse_simplify_operands): Likewise.
2076 * ra.h (add_neighbor): Likewise.
2077 * reg-stack.c (remove_regno_note, change_stack): Likewise.
2078 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2079 record_reg_classes, copy_cost, record_address_regs,
2080 invalid_mode_change_p): Likewise.
2081 * regrename.c (regrename_optimize, scan_rtx_reg,
2082 dump_def_use_chain, find_oldest_value_reg,
2083 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2085 2008-07-16 David Edelsohn <edelsohn@gnu.org>
2087 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2088 MASK_POWERPC64 for power4 in previous commit.
2090 2008-07-16 Olivier Hainque <hainque@adacore.com>
2092 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2093 instead of bare conversion to cast const-ness away.
2095 2008-07-16 Anatoly Sokolov <aesok@post.ru>
2097 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2098 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2099 * config/xtensa/xtensa.c (xtensa_function_value): New function.
2100 (TARGET_FUNCTION_VALUE): Define.
2102 2008-07-16 David Edelsohn <edelsohn@gnu.org>
2104 * config/rs6000/rs6000.c (processor_target_table): Add
2105 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2107 2008-07-16 Joseph Myers <joseph@codesourcery.com>
2110 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2111 (m32c_legitimate_address_p): Handle "++rii" addresses created by
2112 m32c_legitimize_reload_address.
2114 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
2116 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2117 DECL_IN_SYSTEM_HEADER in sync.
2119 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
2121 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2122 * tree-ssa-pre.c (pre_expr_eq): Ditto
2123 (get_constant_for_value_id): Take a type as an argument.
2124 (fully_constant_expression): Pass in type.
2125 (find_or_generate_expression): Short circuit constant case.
2126 (create_expression_by_pieces): Remove special casing of
2128 (do_regular_insertion): Short circuit constant case.
2129 (do_partial_partial_insertion): Ditto.
2131 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2134 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2136 2008-07-15 Bob Wilson <bob.wilson@acm.org>
2138 * config/xtensa/libgcc-xtensa.ver: New file.
2139 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
2141 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2143 * df-problems.c (df_set_note): Avoid C++ keywords.
2144 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2145 * dse.c (record_store, remove_useless_values): Likewise.
2146 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2147 gen_reg_rtx_offset, operand_subword, change_address_1,
2148 change_address, adjust_address_1, offset_address,
2149 widen_memory_access, emit_copy_of_insn_after): Likewise.
2150 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2151 * fwprop.c (should_replace_address, propagate_rtx_1,
2152 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2154 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2155 gcse_emit_move_after, update_ld_motion_stores): Likewise.
2156 * lcm.c (compute_insert_delete, pre_edge_lcm,
2157 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2158 * lower-subreg.c (resolve_reg_notes): Likewise.
2159 * mode-switching.c (optimize_mode_switching): Likewise.
2161 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2163 * bt-load.c (add_btr_def, migrate_btr_def,
2164 branch_target_load_optimize): Avoid C++ keywords.
2165 * caller-save.c (insert_restore, insert_save, insert_one_insn):
2167 * combine.c (subst, simplify_set, make_extraction,
2168 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
2169 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
2170 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
2172 2008-07-15 Richard Guenther <rguenther@suse.de>
2175 * c-common.c (strict_aliasing_warning): Do not warn for
2176 TYPE_REF_CAN_ALIAS_ALL pointers.
2177 (c_common_get_alias_set): may_alias types are not special.
2178 * tree.c (build_pointer_type_for_mode): Look up the may_alias
2179 attribute and set can_ref_all accordingly.
2180 (build_reference_type_for_mode): Likewise.
2181 * doc/extend.texi (may_alias): Clarify.
2183 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2186 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2187 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2189 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2192 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2193 gcc_assert, instead call output_operand_lossage.
2195 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
2197 * builtins.c (std_canonical_va_list): Treat structure based
2200 2008-07-15 Ben Elliston <bje@au.ibm.com>
2202 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2204 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
2206 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2209 2008-07-14 Jan Hubicka <jh@suse.cz>
2211 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2212 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2213 fix predicates and constraints.
2214 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2215 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2217 2008-07-14 Doug Kwan <dougkwan@google.com>
2219 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2220 additional option file arm/eabi.opt.
2221 * config/arm/eabi.h (File): New configuration file for EABI targets.
2222 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2223 SUBSUBTARGET_EXTRA_SPECS.
2224 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2225 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2226 from STARTFILE_SPEC so that it can be referenced in an override.
2227 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2228 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2229 can be referenced in an override.
2230 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2231 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2232 so that it can be referenced in an override.
2233 (LINK_SPEC): Use BPABI_LINK_SPEC.
2234 * config/arm/eabi.opt (File): New.
2236 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2238 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2239 (FIXED_VALUE_H): New variable.
2240 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2241 input.h, fixed-value.h.
2242 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2243 (BASIC_BLOCK_H): Use $(BITMAP_H).
2244 (FUNCTION_H): Add varray.h.
2245 (IPA_REFERENCE_H): Use $(BITMAP_H).
2246 (CGRAPH_H): Add $(BASIC_BLOCK_H).
2247 (DF_H): Use $(BITMAP_H).
2248 (GGC_H): Add statistics.h.
2250 (INSN_ATTR_H): Use it.
2251 (SYSTEM_H): Add safe-ctype.h, filenames.h.
2253 (SYMTAB_H): Add $(OBSTACK_H).
2254 (CPP_INTERNAL_H): New.
2255 (TREE_DUMP_H): Add tree-pass.h.
2256 (TREE_FLOW_H): Use $(BITMAP_H)
2257 (PRETTY_PRINT_H): Use $(INPUT_H).
2258 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2261 (many object files): Fix lots of header dependencies throughout.
2263 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2265 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2267 (s-gtyp-input): Use them to write tmp-gi.list.
2268 (echo_to_gi.list): Remove.
2270 2008-07-14 Richard Guenther <rguenther@suse.de>
2272 * tree-ssa-sccvn.c (pre_info): Remove.
2273 (switch_to_PRE_table): Likewise.
2274 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
2275 (set_hashtable_value_ids): Do not create value-ids for the
2277 (run_scc_vn): Remove double test. Remove bogus special-case
2278 in value-number printing.
2279 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2280 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2282 * tree-flow-inline.h (get_value_handle): Remove.
2283 * tree-flow.h (get_value_handle): Remove.
2285 2008-07-14 Martin Jambor <mjambor@suse.cz>
2287 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2288 in which we generate arithmetics is not a subrange.
2290 2008-07-14 Martin Jambor <mjambor@suse.cz>
2292 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2294 2008-07-14 Richard Guenther <rguenther@suse.de>
2296 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2298 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
2301 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2302 reload for symbol refs moved to r0 with -fPIC.
2303 (legitimize_pic_address): Use the target register as temporary
2305 (emit_symbolic_move): Adjust comment.
2306 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2309 2008-07-14 Ben Elliston <bje@au.ibm.com>
2311 * c-common.h (C_CPP_HASHNODE): New macro.
2312 * coretypes.h (struct cpp_token): Forward declare.
2313 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2314 the context-sensitive keyword method.
2315 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2316 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2317 expand_bool_pixel): New.
2318 (altivec_categorize_keyword): New function.
2319 (init_vector_keywords): New function.
2320 (rs6000_macro_to_expand): Likewise.
2321 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2322 compiling an ISO C dialect.
2324 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
2326 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2327 (create_expression_by_pieces): Fix typo.
2328 (do_regular_insertion): Use debug counter here too.
2330 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
2333 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2334 CONST_OK_FOR_LETTER_P. All port-local users changed.
2335 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2336 implement Kp matching power-of-two.
2337 (CONSTRAINT_LEN): Define to match.
2338 * config/cris/cris.md: Replace all use of constraint K with Kc.
2339 ("*btst*): Use Kp for operand 0 of last alternative.
2341 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2344 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2347 2008-07-13 Jan Hubicka <jh@suse.cz>
2349 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2352 2008-07-13 Richard Guenther <rguenther@suse.de>
2355 * langhooks.c (lhd_print_error_function): Deal with recursive
2358 2008-07-12 Jan Hubicka <jh@suse.cz>
2360 * cgraph.c (assembler_name_hash): New static var.
2361 (hash_node_by_assembler_name, eq_assembler_name): New.
2362 (cgraph_node_for_asm): Use hashtable.
2363 (cgraph_remove_node): Maintain hashtable.
2364 (change_decl_assembler_name): Sanity check that names are not changing
2365 after aliasing was processed.
2366 * cgraph.h (varpoon_node): Add next GGC marker.
2367 * tree.c (decl_assembler_name_equal): Constify.
2368 (decl_assembler_name_hash): New.
2369 * tree.h (decl_assembler_name_equal): Constify.
2370 (decl_assembler_name_hash): Update.
2372 2008-07-12 David Daney <ddaney@avtrex.com>
2374 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2377 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2379 * doc/md.texi: Document the MIPS "v" constraint.
2380 * config/mips/mips.h (reg_class): Revert last change.
2381 (REG_CLASS_NAMES): Likewise.
2382 (REG_CLASS_CONTENTS): Likewise.
2383 * config/mips/mips.c (mips_regno_to_class): Likewise.
2384 * config/mips/constraints.md (v): Likewise, but add documentation.
2385 Add a comment to say that this constraint should not be used in
2388 2008-07-11 DJ Delorie <dj@redhat.com>
2390 * config/h8300/h8300.md (length): Fix branch offset limit.
2392 2008-07-11 Anatoly Sokolov <aesok@post.ru>
2394 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2395 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2396 (avr_hard_regno_scratch_ok): New function.
2397 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2398 * config/avr/avr.md (all peepholes that request a scratch register):
2399 Remove avr_peep2_scratch_safe use.
2401 2008-07-11 Tom Tromey <tromey@redhat.com>
2402 Ian Lance Taylor <iant@google.com>
2404 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2405 (struct c_common_resword): Define.
2406 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2407 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2408 (c_common_reswords, num_c_common_reswords): Declare.
2409 * c-common.c (c_common_reswords): New global const array.
2410 (num_c_common_reswords): New const int.
2411 * c-parser.c (struct resword, reswords): Don't define.
2412 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2413 (c_parse_init): Clarify mask code. Use c_common_reswords rather
2414 than reswords. If warning about C++ keywords, give them a special
2416 (c_lex_one_token): Warn about C++ keywords. Call
2417 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2418 (c_parser_external_declaration): Look for RID_xxx rather than
2419 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2420 (c_parser_statement_after_labels): Likewise.
2421 (c_parser_objc_class_instance_variables): Likewise.
2422 (c_parser_objc_class_declaration): Likewise.
2423 (c_parser_objc_try_catch_statement): Likewise.
2424 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2425 (declspecs_add_type): Likewise.
2427 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
2429 * ggc-page.c (alloc_page):
2430 Substituting xmalloc, xcalloc with
2431 XNEWVEC and XCNEWVAR macros which add the
2434 2008-07-11 Richard Guenther <rguenther@suse.de>
2436 PR tree-optimization/36765
2437 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2438 aliases from HEAP vars to SMTs.
2440 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2442 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2443 * configure.ac (loose_warn): Move -Wc++-compat from here...
2444 (strict_warn): ...to here.
2445 * configure: Regenerate.
2447 2008-07-10 Joseph Myers <joseph@codesourcery.com>
2449 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2450 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2451 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2452 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2453 excluding more specific h8300-*-* and sh-*-* targets.
2455 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
2457 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2459 (execute_pre): Call loop_optimizer_finalize in early exit.
2461 2008-07-10 Jakub Jelinek <jakub@redhat.com>
2464 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2465 uids in the bitmap, not just VAR_DECL uids.
2467 PR rtl-optimization/36419
2468 * combine-stack-adj.c (adjust_frame_related_expr): New function.
2469 (combine_stack_adjustments_for_block): Call it if needed. Delete
2471 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2472 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2473 prologue sp adjustment.
2475 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
2478 * opts.c (print_ignored_options): Report postponed diagnostics for
2479 unknown -Wno-* options as warnings, not errors.
2480 (postpone_unknown_option_error): Renamed to...
2481 (postpone_unknown_option_warning): ... this.
2483 2008-07-09 Doug Kwan <dougkwan@google.com>
2486 2008-07-08 Doug Kwan <dougkwan@google.com>
2488 * config/arm/arm.opt (mandroid): New option.
2489 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2490 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2492 (CC1PLUS_SPEC): Same.
2494 (STARTFILE_SPEC): Same.
2495 (ENDFILE_SPEC): Same.
2496 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2499 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
2502 * config/mips/mips.h (reg_class): Remove V1_REG.
2503 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2504 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2506 (mips_get_tp): New function.
2507 (mips_legitimize_tls_address): Use it.
2508 * config/mips/constraints.md (v): Delete.
2509 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2510 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2511 After reload, split into a move and ...
2512 (*tls_get_tp_<mode>_split): ...this new instruction.
2514 2008-07-09 David Daney <ddaney@avtrex.com>
2516 * config/mips/driver-native.c: Include coretypes.h and tm.h.
2518 2008-07-09 Jakub Jelinek <jakub@redhat.com>
2520 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2521 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2523 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2524 htab_delete should be called. Don't free c.
2525 (lookup_tmp_var): Create temp_htab lazily.
2526 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2527 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2529 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2530 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2531 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2532 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2533 * tree-sra.c (generate_element_init): Likewise.
2534 * tree-mudflap.c (execute_mudflap_function_ops,
2535 execute_mudflap_function_decls): Likewise.
2536 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2537 * tree-gimple.h (struct gimplify_ctx): New type.
2538 (push_gimplify_context): Adjust prototype.
2540 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
2542 * tree-ssa-pre.c (phi_translate_1): Update placement of
2545 2008-07-09 Anatoly Sokolov <aesok@post.ru>
2547 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2548 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2549 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2550 * targhooks.c (default_hard_regno_scratch_ok): New function.
2551 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2552 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2553 * recog.c: Include "target.h".
2554 (peep2_find_free_register): Add check for global regs. Add target
2556 * Makefile.in (recog.o): Depend on target.h.
2558 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
2560 * config/sh/sh.c (sh_canonical_va_list_type): New.
2561 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2563 2008-07-09 Raksit Ashok <raksit@google.com>
2565 * doc/invoke.texi (Option Summary): Mention new option
2566 -Wdisallowed-function-list=...
2567 (Warning Options): Document -Wdisallowed-function-list=...
2568 * common.opt (Wdisallowed-function-list=): New flag.
2569 * flags.h (warn_disallowed_functions): External definition of new
2570 boolean warning flag.
2571 (warn_if_disallowed_function_p): Declare new function.
2572 * opts.c (warning_disallowed_functions): New static variable.
2573 (warn_disallowed_functions): New boolean warning flag.
2574 (warn_if_disallowed_function_p): New function.
2575 (add_comma_separated_to_vector): Rename
2576 add_instrument_functions_exclude_list to this.
2577 (common_handle_option): Handle new option. Rename calls to
2578 add_instrument_functions_exclude_list into calls to
2579 add_comma_separated_to_vector.
2580 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2581 based on flag warn_disallowed_functions.
2583 2008-07-09 Christian Bruel <christian.bruel@st.com>
2585 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2586 instead of get_attr_length.
2588 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2590 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2592 * genemit.c (gen_insn): Likewise.
2593 * gengtype.c (note_def_vec): Likewise.
2594 * gengtype.h (note_def_vec): Likewise.
2595 * genoutput.c (struct data, output_insn_data, process_template,
2596 gen_expand, gen_split, note_constraint): Likewise.
2597 * genrecog.c (new_decision, add_to_sequence, factor_tests,
2598 make_insn_sequence): Likewise.
2599 * gensupport.c (record_insn_name): Likewise.
2601 2008-07-08 Doug Kwan <dougkwan@google.com>
2603 * config/arm/arm.opt (mandroid): New option.
2604 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2605 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2607 (CC1PLUS_SPEC): Same.
2609 (STARTFILE_SPEC): Same.
2610 (ENDFILE_SPEC): Same.
2611 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2614 2008-07-08 Raksit Ashok <raksit@google.com>
2616 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2617 (set_storage_via_setmem): Fix expected_align parameter.
2618 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2619 missing from the list.
2620 * doc/md.texi (movmem): Explicitly state that expected alignment is
2621 to be expressed in bytes.
2622 (setmem): Explicitly state that expected alignment is to be expressed
2625 2008-07-08 Joseph Myers <joseph@codesourcery.com>
2627 * reload.c (find_reloads_subreg_address): Do not require validity
2628 of address in original mode before reloading address.
2630 2008-07-07 Tianwei Sheng <tianweis@google.com>
2632 * df-core.c (df_remove_problem): Adjust the access to avoid out of
2633 bounds array access.
2635 2008-07-08 Jakub Jelinek <jakub@redhat.com>
2637 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2639 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
2641 Fix PR tree-optimization/23455
2642 Fix PR tree-optimization/35286
2643 Fix PR tree-optimization/35287
2644 * Makefile.in (OBJS-common): Remove tree-vn.o.
2645 (tree-vn.o): Remove.
2646 * dbgcnt.def: Add treepre_insert debug counter.
2647 * gcc/tree-flow.h (add_to_value): Updated for other changes.
2648 (debug_value_expressions): Ditto.
2649 (print_value_expressions): Ditto.
2650 * tree-pretty-print.c (dump_generic_node): Updated for
2651 VALUE_HANDLE removal.
2652 * tree-ssa-dom.c (record_equality): Ditto.
2653 (cprop_operand): Ditto.
2654 (lookup_avail_expr): Ditto.
2655 * tree-ssa-threadedge.c
2656 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2657 (simplify_control_stmt_condition): Ditto.
2658 * tree.c (tree_code_size): Ditto.
2659 (tree_node_structure): Ditto.
2660 (iterative_hash_expr): Ditto.
2662 * tree.h (VALUE_HANDLE_ID): Ditto.
2663 (VALUE_HANDLE_EXPR_SET): Ditto.
2664 (struct tree_value_handle): Ditto.
2665 (union tree_node): Ditto.
2666 * treestruct.def: Ditto.
2667 * tree-vn.c: Removed.
2668 * tree-ssa-pre.c: Rewritten entirely.
2669 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2670 (constant_value_ids): Ditto.
2671 (vn_nary_op_t): Moved to header.
2673 (vn_reference_op_t): Ditto
2674 (vn_reference_t): Ditto.
2675 (next_value_id): New variable.
2676 (VN_INFO): Add an assert.
2677 (vn_constant_eq): New function.
2678 (vn_constant_hash): Ditto.
2679 (get_or_alloc_constant_value_id): Ditto.
2680 (value_id_constant_p): Ditto.
2681 (vn_reference_compute_hash): De-staticify.
2682 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2683 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2684 (valueize_refs): Update opcode if it changes from ssa name to constant.
2685 (vn_reference_lookup_1): Add new argument.
2686 (vn_reference_lookup): Ditto.
2687 (vn_reference_lookup_pieces): New function.
2688 (vn_reference_insert): Add return type. Modify to deal with value ids.
2689 (vn_reference_insert_pieces): New function.
2690 (vn_nary_op_compute_hash): De-staticify.
2691 (vn_nary_op_eq): Ditto.
2692 (vn_nary_op_lookup_pieces): New function.
2693 (vn_nary_op_lookup): Add new argument.
2694 (vn_nary_op_insert_pieces): New function.
2695 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2696 (vn_phi_insert): Ditto.
2697 (visit_unary_op): Update for callee changes.
2698 (visit_binary_op): Ditto.
2699 (visit_reference_op_load): Ditto.
2700 (visit_reference_op_store): Ditto.
2701 (init_scc_vn): Init next_value_id, constant_to_value_id and
2703 (free_scc_vn): Free them.
2704 (set_hashtable_value_ids): New function.
2705 (run_scc_vn): Use it.
2706 (get_max_value_id): New function.
2707 (get_next_value_id): Ditto.
2708 (expressions_equal_p): Moved from tree-vn.c
2709 (sort_vuses): Ditto.
2710 (sort_vuses_heap): Ditto.
2711 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2713 * tree.c (iterative_hash_hashval_t): Made non-static
2714 * tree.h (iterative_hash_hashval_t): Declare it.
2716 2008-07-08 Martin Jambor <mjambor@suse.cz>
2718 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2719 instead of ipa_create_node_params.
2720 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2721 ipa_check_create_edge_args, free them with
2722 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2724 * ipa-prop.c: Include flags.h and tree-inline.h.
2725 (ipa_node_params_vector): New variable.
2726 (ipa_edge_args_vector): New variable.
2727 (edge_removal_hook_holder): New variable.
2728 (node_removal_hook_holder): New variable.
2729 (edge_duplication_hook_holder): New variable.
2730 (node_duplication_hook_holder): New variable.
2731 (ipa_detect_param_modifications): Check for presence of modified flags.
2732 (ipa_compute_jump_functions): Check for presence of jump functions.
2733 (ipa_free_edge_args_substructures): New function.
2734 (ipa_create_node_params): Removed.
2735 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2736 (ipa_free_node_params_substructures): New function.
2737 (ipa_free_all_node_params): Changed to deallocate the on-the-side
2739 (ipa_edge_removal_hook): New function.
2740 (ipa_node_removal_hook): New function.
2741 (duplicate_array): New function.
2742 (ipa_edge_duplication_hook): New function.
2743 (ipa_node_duplication_hook): New function.
2744 (ipa_register_cgraph_hooks): New function.
2745 (ipa_unregister_cgraph_hooks): New function.
2746 (free_all_ipa_structures_after_ipa_cp): New function.
2748 * ipa-prop.h: Include vec.h.
2749 (ipa_node_params_t): New typedef with vector types for it.
2750 (ipa_edge_args_t): New typedef with vector types for it.
2751 (IPA_NODE_REF): Changed to access an on-the-side vector.
2752 (IPA_EDGE_REF): Changed to access an on-the-side vector.
2753 (ipa_check_create_node_params): New function.
2754 (ipa_check_create_edge_args): New function.
2756 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
2759 2008-07-07 Tom Tromey <tromey@redhat.com>
2761 * configure, config.in: Rebuilt.
2762 * configure.ac: Don't check for scandir or alphasort.
2764 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2766 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2767 types immediately after creating them.
2769 2008-07-07 Joseph Myers <joseph@codesourcery.com>
2771 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2773 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
2775 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2776 dump_constraint_graph.
2777 (dump_constraint_edge): New function.
2778 (dump_constraint_graph): New function.
2779 (debug_constraint_graph): New function.
2780 (dump_constraint): Removed useless comparison.
2781 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2782 (dump_constraint_graph): Declare.
2783 (debug_constraint_graph): Declare.
2784 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2786 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
2788 * config/i386/i386.c (is_va_list_char_pointer): New.
2789 (ix86_va_start): Replace compare with ms_va_list_type_node
2790 by is_va_list_char_pointer.
2791 (ix86_gimplify_va_arg): Likewise.
2793 2008-07-07 Martin Jambor <mjambor@suse.cz>
2795 * cgraph.c (cgraph_edge_max_uid): New variable.
2796 (struct cgraph_edge_hook_list): New type.
2797 (struct cgraph_node_hook_list): New type.
2798 (struct cgraph_2edge_hook_list): New type.
2799 (struct cgraph_2node_hook_list): New type.
2800 (first_cgraph_edge_removal_hook): New variable.
2801 (first_cgraph_node_removal_hook): New variable.
2802 (first_cgraph_edge_duplicated_hook): New variable.
2803 (first_cgraph_node_duplicated_hook): New variable.
2804 (cgraph_add_edge_removal_hook): New function.
2805 (cgraph_remove_edge_removal_hook): New function.
2806 (cgraph_call_edge_removal_hooks): New function.
2807 (cgraph_add_node_removal_hook): New function.
2808 (cgraph_remove_node_removal_hook): New function.
2809 (cgraph_call_node_removal_hooks): New function.
2810 (cgraph_add_edge_duplication_hook): New function.
2811 (cgraph_remove_edge_duplication_hook): New function.
2812 (cgraph_call_edge_duplication_hooks): New function.
2813 (cgraph_add_node_duplication_hook): New function.
2814 (cgraph_remove_node_duplication_hook): New function.
2815 (cgraph_call_node_duplication_hooks): New function.
2816 (cgraph_create_edge): Assign to edge uid.
2817 (cgraph_remove_edge): Call edge removal hooks.
2818 (cgraph_node_remove_callees): Call edge removal hooks.
2819 (cgraph_node_remove_callers): Call edge removal hooks.
2820 (cgraph_remove_node): Call node removal hooks.
2821 (cgraph_clone_edge): Call edge duplication hooks.
2822 (cgraph_clone_node): Call node duplication hooks.
2824 * cgraph.h (cgraph_edge): New field uid.
2825 (cgraph_edge_hook): New type.
2826 (cgraph_node_hook): New type.
2827 (cgraph_2edge_hook): New type.
2828 (cgraph_2node_hook): New type.
2830 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
2832 * config.in: Regenerate.
2834 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
2836 * gcc.c (print_sysroot): New.
2837 (option_map, display_help, process_command): Handle the
2838 -print-sysroot option.
2839 (main): Print the sysroot if requested.
2840 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2842 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2845 * unwind-pe.h (size_of_encoded_value): add attribute unused.
2847 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
2849 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2850 (assign_parm_setup_block_p): Also check mode of entry_parm.
2852 2008-07-07 Richard Guenther <rguenther@suse.de>
2854 * tree-ssa-structalias.h (set_used_smts): Remove.
2855 * tree-ssa-structalias.c (used_smts): Likewise.
2856 (set_used_smts): Likewise.
2857 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2858 call to set_used_smts.
2860 2008-07-07 Richard Guenther <rguenther@suse.de>
2862 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2863 (new_var_info): Set it to false.
2864 (solution_set_add): Correctly handle pointers outside a var and
2866 (type_safe): Treat variables with is_full_var properly.
2867 (do_sd_constraint): Likewise.
2868 (do_ds_constraint): Likewise.
2869 (process_constraint): Remove zeroing offset for !use_field_sensitive.
2870 (get_constraint_for_ptr_offset): New function.
2871 (get_constraint_for_component_ref): For addresses at least include
2872 the last field of the variable. Handle is_full_vars properly.
2873 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2874 (handle_ptr_arith): Remove.
2875 (find_func_aliases): Simplify assignment handling.
2876 (create_function_info_for): For parameter and result varinfos set
2878 (create_variable_info_for): Set is_full_var flag whenever we
2879 just created a single varinfo for a decl.
2880 (init_alias_vars): Initialize use_field_sensitive from
2881 max-fields-for-field-sensitive parameter.
2883 2008-07-07 Richard Guenther <rguenther@suse.de>
2885 PR tree-optimization/36713
2886 * tree-flow-inline.h (is_call_used): New function.
2887 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2888 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2889 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2891 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2893 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2895 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
2897 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2899 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
2900 Nathan Sidwell <nathan@codesourcery.com>
2902 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
2903 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2905 * config/m68k/t-linux: New.
2906 * doc/install.texi: Document m68k-*-linux is now multilibbed by
2909 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
2911 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2912 * config/m68k/m68k-devices.def: Remove multilibs that only differ
2915 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2917 * gcc.c (execute): Fix -Wc++-compat warning.
2919 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
2922 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2923 constant for little endian.
2925 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
2927 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2928 mips_base_mips16 instead of TARGET_MIPS16.
2929 (mips_base_mips16): Declare.
2930 * config/mips/mips.c (mips_base_mips16): Make global.
2931 (was_mips16_p): Remove GTY marker.
2932 (was_mips16_pch_p): New variable.
2933 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2934 (mips_override_options): Force to non-MIPS16 mode initially.
2935 Do not complain about MIPS16 PIC incompatibilities here.
2936 Only allow -mgpopt if -mexplicit-relocs is in force for
2939 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
2941 * configure.ac: Check for caddr_t, define to char * if not defined.
2942 * configure: Regenerate.
2943 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2944 (mmap_gt_pch_use_address): Likewise.
2945 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2947 2008-07-06 Richard Guenther <rguenther@suse.de>
2949 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2950 (new_var_info): Deal with it.
2951 (solution_set_add): Likewise.
2952 (bitpos_of_field): Make signed, fix.
2953 (struct fieldoff): Remove type and decl fields. Make size field
2954 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
2956 (fieldoff_compare): Deal with it.
2957 (push_fields_onto_fieldstack): Remove has_union argument, glob
2958 adjacent non-pointer fields together.
2959 (create_function_info_for): Do not set has_union.
2960 (create_variable_info_for): Simplify.
2962 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
2964 * config.gcc (extra_headers): Add cross-stdarg.h for target
2965 x86_64-*-* and i?86-*-*.
2966 * config/i386/cross-stdarg.h: New.
2967 * builtins.c (std_fn_abi_va_list): New.
2968 (std_canonical_va_list_type): New.
2969 (stabilize_va_list): Replace va_list_type_node use by
2970 mtarget.canonical_va_list_type.
2971 (gimplify_va_arg_expr): Likewise.
2972 (expand_builtin_va_copy): Replace va_list_type_node use by
2973 mtarget.fn_abi_va_list.
2974 * tree-sra.c (is_va_list_type): New helper.
2975 (decl_can_be_decomposed_p): Replace
2976 va_list_type_node use by is_va_list_type.
2977 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2978 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2979 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2980 * config/i386/i386-protos.h (ix86_get_valist_type): New.
2981 (ix86_enum_va_list): New.
2982 * config/i386/i386.c (sysv_va_list_type_node): New.
2983 (ms_va_list_type_node): New.
2984 (ix86_function_type_abi): Remove sorry.
2985 (ix86_build_builtin_va_list_abi): New.
2986 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2988 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2989 (ix86_init_builtins_va_builtins_abi): New.
2990 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2992 (ix86_handle_abi_attribute): New.
2993 (attribute_spec): Add sysv_abi and ms_abi.
2994 (ix86_fn_abi_va_list): New.
2995 (ix86_canonical_va_list_type): New.
2996 (ix86_enum_va_list): New.
2997 (TARGET_FN_ABI_VA_LIST): New.
2998 (TARGET_CANONICAL_VA_LIST_TYPE): New.
2999 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
3000 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
3001 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3002 (TARGET_ENUM_VA_LIST): New.
3003 * expr.h (std_fn_abi_va_list): New.
3004 (std_canonical_va_list_type): New.
3005 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
3006 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3007 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
3008 TARGET_CANONICAL_VA_LIST_TYPE.
3009 * target.h (struct gcc_target): Add fn_abi_va_list hook
3010 and canonical_va_list_type hook.
3012 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3014 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
3015 integral and pointer types.
3017 2008-07-04 Roger Sayle <roger@eyesopen.com>
3019 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
3020 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
3022 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
3025 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
3027 2008-07-04 Jakub Jelinek <jakub@redhat.com>
3029 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
3030 build_gimple_modify_stmt.
3031 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
3032 gimple operand. Use fold_build* instead of build*.
3034 2008-07-04 Richard Guenther <rguenther@suse.de>
3036 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
3037 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
3038 properly to compute the reachability set if we do field-sensitive PTA.
3039 * invoke.texi (max-fields-for-field-sensitive): Document default.
3040 * opts.c (decode_options): Set max-fields-for-field-sensitive to
3041 100 for optimize >= 2.
3043 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3045 * ggc-zone.c (lookup_page_table_if_allocated,
3046 set_page_table_entry, zone_find_object_size, alloc_small_page,
3047 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
3048 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
3049 -Wc++-compat and/or -Wcast-qual warnings.
3051 2008-07-04 Alan Modra <amodra@bigpond.net.au>
3054 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
3055 pic_offset_table_rtx to be marked as used here.
3056 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
3057 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
3058 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
3059 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
3062 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3064 * alloc-pool.c (hash_descriptor, eq_descriptor,
3065 alloc_pool_descriptor): Fix -Wc++-compat warnings.
3066 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
3068 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
3069 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
3070 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
3071 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
3074 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
3076 * tree-flow.h (loop_only_exit_p): Declare.
3077 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3078 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3079 the number of iterations if it is constant. Otherwise, if this is the
3080 only possible exit of the loop, use the conservative estimate on the
3081 number of iterations of the entire loop if available.
3083 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
3085 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3086 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3087 Add synchronization functions.
3088 * config/sync.c: New file.
3089 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3090 (LIBGCC_SYNC_CFLAGS): Likewise.
3092 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
3095 * config/i386/i386.md (mode): Add TF to "mode" attribute.
3096 (*pushtf_sse): New insn pattern.
3097 (pushtf splitters): New splitters.
3099 2008-07-03 Michael Meissner <gnu@the-meissners.org>
3102 * predict.c (build_predict_expr): Use void_type_node for the tree
3103 type, instead of NULL_TREE.
3105 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
3107 * config/i386/i386.c (contains_aligned_value_p): Return true
3109 (ix86_data_alignment): Align TCmode to 128bits.
3110 (ix86_local_alignment): Likewise.
3112 2008-07-03 Andrew Haley <aph@redhat.com>
3115 * vec.h (VEC_TA): New.
3116 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3117 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3118 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3119 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3120 (C_COMMON_FIXED_TYPES): Remove first arg.
3121 (C_COMMON_FIXED_MODE_TYPES): Likewise.
3122 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3123 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3124 not to use empty macro arguments.
3126 2008-07-02 Joseph Myers <joseph@codesourcery.com>
3128 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3129 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3130 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3131 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3132 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3133 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3134 config/ia64/crtn.asm, config/m68hc11/larith.asm,
3135 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3136 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3137 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3138 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3139 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3140 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3141 config/rs6000/e500crtres64gpr.asm,
3142 config/rs6000/e500crtres64gprctr.asm,
3143 config/rs6000/e500crtrest32gpr.asm,
3144 config/rs6000/e500crtrest64gpr.asm,
3145 config/rs6000/e500crtresx32gpr.asm,
3146 config/rs6000/e500crtresx64gpr.asm,
3147 config/rs6000/e500crtsav32gpr.asm,
3148 config/rs6000/e500crtsav64gpr.asm,
3149 config/rs6000/e500crtsav64gprctr.asm,
3150 config/rs6000/e500crtsavg32gpr.asm,
3151 config/rs6000/e500crtsavg64gpr.asm,
3152 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3153 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3154 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3155 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3156 config/sparc/sol2-cn.asm: Remove .file directives.
3158 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
3160 * resource.c (mark_referenced_resources): Look inside
3161 UNSPEC_VOLATILEs and ASM_INPUTs.
3163 2008-07-02 Ian Lance Taylor <iant@google.com>
3165 * rtlanal.c (add_reg_note): New function.
3166 * rtl.h (add_reg_note): Declare.
3167 * auto-inc-dec.c (attempt_change): Use add_reg_note.
3168 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3169 * builtins.c (expand_builtin_longjmp): Likewise.
3170 (expand_builtin_nonlocal_goto): Likewise.
3171 * calls.c (emit_call_1, expand_call): Likewise.
3172 * cfgexpand.c (add_reg_br_prob_note): Likewise.
3173 * cfglayout.c (fixup_reorder_chain): Likewise.
3174 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3175 (commit_one_edge_insertion): Likewise.
3176 * combine.c (move_deaths, distribute_notes): Likewise.
3177 * df-problems.c (df_set_note): Likewise.
3178 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3179 (set_unique_reg_note): Likewise.
3180 (emit_copy_of_insn_after): Likewise.
3181 * expr.c (expand_expr_real): Likewise.
3182 * gcse.c (add_label_notes): Likewise.
3183 * haifa-sched.c (create_check_block_twin): Likewise.
3184 * jump.c (mark_jump_label_1): Likewise.
3185 * loop-doloop.c (add_test, doloop_modify): Likewise.
3186 * loop-unswitch.c (compare_and_jump_seq): Likewise.
3187 * lower-subreg.c (move_eh_region_note): Likewise.
3188 * optabs.c (emit_libcall_block): Likewise.
3189 * predict.c (predict_insn): Likewise.
3190 (combine_predictions_for_insn): Likewise.
3191 * recog.c (peephole2_optimize): Likewise.
3192 * regmove.c (try_auto_increment): Likewise.
3193 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3194 * reload.c (find_reloads): Likewise.
3195 * reload1.c (fixup_eh_region_note): Likewise.
3196 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3197 * reorg.c (delete_prior_computation): Likewise.
3198 (delete_computation, dbr_schedule): Likewise.
3199 * config/pa/pa.c (legitimize_pic_address): Likewise.
3200 * config/sh/sh.c (sh_reorg): Likewise.
3202 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3205 * config/libgcc-glibc.ver: Add %exclude.
3206 * config/m32r/libgcc-glibc.ver: Likwise.
3207 * config/s390/libgcc-glibc.ver: Likwise.
3208 * config/sh/libgcc-glibc.ver: Likwise.
3209 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3211 * config/i386/libgcc-glibc.ver: New.
3213 * config/i386/libgcc-x86_64-glibc.ver: Removed.
3215 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3217 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3218 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3219 i[34567]86-*-linux*, x86_64-*-linux*. Add
3220 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3221 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3222 x86_64-*-linux*. Add i386/t-linux to tmake_file for
3223 i[34567]86-*-linux*, x86_64-*-linux*.
3225 * libgcc-std.ver: Add empty GCC_4.4.0.
3227 * mkmap-symver.awk: Support multiple versions per symbol.
3229 * config/i386/i386.c (ix86_init_builtins): Always define
3230 __builtin_fabsq and __builtin_copysignq with fallbacks.
3231 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3232 and __builtin_copysignq if SSE2 isn't available.
3234 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3235 (LIBGCC2_TF_CEXT): Likwise.
3238 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3240 * config/i386/sfp-machine.h: Moved to libgcc.
3242 * config/i386/sfp-machine.h: New.
3243 * config/i386/t-linux: Likwise.
3245 * config/i386/t-darwin: Remove softfp_wrap_start and
3247 * config/i386/t-darwin64: Likewise.
3249 * config/i386/t-fprules-softfp64: Renamed to ...
3250 * config/i386/t-fprules-softfp: This.
3252 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3253 and softfp_wrap_end.
3255 2008-07-02 Jason Merrill <jason@redhat.com>
3257 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3259 * tree.c (ctor_to_list): New fn.
3260 * tree.h: Declare it.
3261 (CONSTRUCTOR_ELT): New macro.
3262 (CONSTRUCTOR_NELTS): New macro.
3264 2008-07-02 Richard Guenther <rguenther@suse.de>
3266 * tree-ssa-structalias.c (struct variable_info): Reorder
3267 to fill padding on 64bit hosts. Make collapsed_to an int.
3268 (get_varinfo_fc): Deal with that.
3269 (new_var_info): Likewise.
3270 (collapse_rest_of_var): Likewise.
3272 2008-07-02 Joshua Sumali <jsumali@redhat.com>
3274 * doc/install.texi (--enable-java-home): Document.
3275 (--enable-aot-compile-rpm): Likewise.
3276 (--with-arch-directory): Likewise.
3277 (--with-os-directory): Likewise.
3278 (--with-origin-name): Likewise.
3279 (--with-arch-suffix): Likewise.
3280 (--with-jvm-root-dir): Likewise.
3281 (--with-jvm-jar-dir): Likewise.
3282 (--with-python-dir): Likewise.
3284 2008-07-02 Richard Guenther <rguenther@suse.de>
3286 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3287 from decls explicitly. Merge operand checking from tuples.
3289 2008-07-02 Martin Jambor <mjambor@suse.cz>
3291 * tree-switch-conversion.c: Included timevar.h which I forgot before.
3293 2008-07-02 Martin Jambor <mjambor@suse.cz>
3295 * tree-switch-conversion.c: Included timevar.h
3296 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3298 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3300 2008-07-02 Martin Jambor <mjambor@suse.cz>
3302 * tree-switch-conversion.c: Corrected various comments and
3304 (build_constructors): Fixed minor formatting mistakes.
3306 * invoke.texi (Optimize Options): Corrected the
3307 switch-conversion-max-branch-ratio parameter.
3309 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
3311 * final.c (asm_insn_count): Return zero for an empty asm body.
3313 2008-07-02 Richard Guenther <rguenther@suse.de>
3315 * bitmap.h (bitmap_set_bit): Return bool.
3316 (bitmap_clear_bit): Likewise.
3317 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
3318 write to the bitmap if it would.
3319 (bitmap_clear_bit): Likewise.
3320 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3321 bitmap_set_bit return value.
3322 (add_pred_graph_edge): Likewise.
3323 (add_graph_edge): Likewise.
3324 (do_sd_constraint): Likewise.
3325 (do_ds_constraint): Likewise.
3327 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3329 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3330 Fix -Wc++-compat and/or -Wcast-qual warnings.
3331 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3332 gen_regparm_prefix): Likewise.
3333 * vmsdbgout.c (write_modbeg, lookup_filename,
3334 vmsdbgout_source_line, vmsdbgout_init): Likewise.
3336 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3338 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3339 defaults.h definition apply.
3341 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3343 * function.c (assign_parm_remove_parallels): New.
3344 (assign_parm_setup_block_p): Do not return true for non-BLKmode
3346 (assign_parm_setup_block): Do not handle them.
3347 (assign_parm_setup_reg, assign_parm_setup_stack): Call
3348 assign_parm_remove_parallels.
3350 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3352 * c-typeck.c (convert_for_assignment): Use
3353 vector_targets_convertible_p.
3354 * c-common.c (vector_targets_convertible_p): New.
3355 * c-common.h (vector_targets_convertible_p): New prototype.
3356 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3357 opaque_p_V2SI_type_node.
3359 2008-07-01 Steve Ellcey <sje@cup.hp.com>
3361 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3364 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
3366 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3367 TFmode constants via two element DImode vector for hosts with
3368 HOST_BITS_PER_WIDE_INT < 64.
3369 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3370 also for HOST_BITS_PER_WIDE_INT < 64.
3372 2008-07-01 Richard Guenther <rguenther@suse.de>
3374 PR tree-optimization/36666
3375 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3376 (get_constraint_exp_from_ssa_var): Split into ...
3377 (get_constraint_exp_for_temp): ... this ...
3378 (get_constraint_for_ssa_var): ... and that.
3379 Return constraint expressions for all touched sub-fields
3380 if the results address is not taken.
3381 (process_constraint): Remove assertion that aggregate
3382 assignments do not happen at this place.
3383 (get_constraint_for_component_ref): Add address_p argument.
3384 Return constraint expressions for all touched sub-fields
3385 if the results address is not taken.
3386 (do_deref): Use get_constraint_exp_for_temp.
3387 (get_constraint_for_1): Rename from ...
3388 (get_constraint_for): ... this. Add the old function as wrapper.
3389 (do_structure_copy): Use get_constraint_for_1.
3391 2008-07-01 Martin Jambor <mjambor@suse.cz>
3393 * Makefile.in (tree-switch-conversion.o): Add.
3394 (OBJS-common): Add tree-swtch-conversion.o.
3395 * passes.c (init_optimization_passes): Add pass_convert_switch.
3396 * tree-pass.h: (pass_convert_switch): Add.
3397 * tree-switch-conversion.c: New file.
3398 * gcc.dg/tree-ssa/cswtch.c: New testcase.
3399 * common.opt (ftree-cswtch): New option.
3400 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3401 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3402 * opts.c (decode_options): Set flag_tree_switch_conversion when
3403 optimization level is >= 2.
3404 * doc/invoke.texi (Optimize Options): Added description of
3405 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3407 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3409 * config/darwin-driver.c (darwin_default_min_version): Fix
3410 -Wc++-compat warnings.
3412 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
3414 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3417 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3419 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3421 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3423 PR rtl-optimization/34744
3424 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3425 (df_scan_free_internal): Free data structures not
3426 allocated in storage pools.
3427 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3428 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3429 df_scan_free_mws_vec.
3430 * dse.c (dse_step6): Free offset_map_p and offset_map_n
3433 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
3435 * config/i386/i386.c (contains_aligned_value_p): Return true
3437 (ix86_function_arg_boundary): Return its natural boundary
3439 (return_in_memory_32): Don't check TDmode.
3440 (ix86_split_to_parts): Support splitting into 4 parts and
3441 support TFmode for 32bit target.
3442 (ix86_split_long_move): Support splitting into 4 parts.
3443 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3445 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3446 (ix86_init_builtins): Here.
3447 (ix86_scalar_mode_supported_p): Always return true for TFmode.
3448 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3449 'q' and 'w', respectively.
3451 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3453 (movtf_internal): Likewise.
3454 (<code>tf2): Likewise.
3455 (*absnegtf2_sse): Likewise.
3456 (copysign<mode>3): Likewise.
3457 (copysign<mode>3_const): Likewise.
3458 (copysign<mode>3_var): Likewise.
3459 (define_split UNSPEC_COPYSIGN): Likewise.
3460 * config/i386/sse.md (*nandtf3): Likewise.
3461 (<code>tf3): Likewise.
3462 (*<code>tf3): Likewise.
3464 2008-06-30 Joey Ye <joey.ye@intel.com>
3465 H.J. Lu <hongjiu.lu@intel.com>
3467 * global.c (compute_regsets): Set frame_pointer_needed here.
3468 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3470 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3472 * doc/install.texi (specific): Expand Windows build notes.
3474 2008-06-30 Ira Rosen <irar@il.ibm.com>
3476 PR tree-optimization/36648
3477 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3478 number of prolog iterations by step. Fix the comment.
3480 2008-06-30 Richard Guenther <rguenther@suse.de>
3483 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3484 handle calls from ECF_MALLOC functions.
3485 (handle_pure_call): ECF_MALLOC functions do not return
3487 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3489 2008-06-29 Andreas Schwab <schwab@suse.de>
3491 * config/m68k/m68k.c (print_operand): Always print a float
3493 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3494 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3497 * config/rs6000/x-linux64: Remove never used file.
3499 2008-06-29 Richard Guenther <rguenther@suse.de>
3501 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3503 (struct alias_info): Move ...
3504 * tree-ssa-alias.c: ... here.
3505 (update_alias_info): Declare.
3506 (compute_may_aliases): Call it.
3507 (update_alias_info): New function.
3508 * tree-ssa-structalias.c (update_alias_info): Move ...
3509 * tree-ssa-alias.c (update_alias_info_1): ... here.
3510 * tree-ssa-structalias.c (process_constraint_1): Remove
3511 unused from_call argument. Rename to ...
3512 (process_constraint): ... this. Delete old wrapper.
3513 (make_constraint_to): Adjust callers.
3514 (handle_const_call): Likewise.
3515 (handle_pure_call): Likewise.
3516 (init_base_vars): Likewise.
3517 (handle_lhs_call): Likewise. Remove unnecessary constraint.
3518 (find_func_aliases): We don't need structure copies for
3520 (make_constraint_from_anything): Remove.
3521 (create_variable_info_for): For globals make constraints
3522 from escaped, not from anything.
3523 (compute_points_to_sets): Do not call update_alias_info.
3524 (ipa_pta_execute): Use make_constraint_from.
3526 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3528 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3529 (bitmap.o-warn, dominance.o-warn): New.
3530 * configure.ac (cxx_compat_warn): Delete.
3531 (loose_warn): Add -Wcast-qual and -Wc++-compat.
3532 * system.h: Remove #pragma diagnostic for -Wcast-qual and
3534 * configure: Regenerate.
3536 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3539 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3541 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3542 * df-scan.c (df_notes_rescan): Likewise.
3543 * ggc-page.c (set_page_table_entry): Likewise.
3544 * intl.c (gcc_gettext_width): Likewise.
3545 * varasm.c (get_unnamed_section, get_noswitch_section,
3546 get_section): Likewise.
3548 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
3550 * regrename.c (build_def_use): Don't copy RTX.
3552 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
3554 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3555 (Type Attributes): Fix nesting of @table and @subsection. Adjust
3556 punctuation. Use @ref instead of @xref.
3557 (Function Names): Remove stray @display/@end display.
3558 (C++ Attributes): Use @ref instead of @xref.
3559 (Deprecated Features): Fix punctuation around @xref.
3560 (Backwards Compatibility): Likewise.
3561 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3563 2008-06-28 Joseph Myers <joseph@codesourcery.com>
3565 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3566 constants for E500 double.
3568 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3570 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3571 element type of const_vector.
3573 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
3575 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3576 Remove FLAGS_REG clobber from expander pattern.
3577 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3578 (anddi3, andsi3, andhi3, andqi3): Ditto.
3579 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3580 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3581 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3582 (ashlsi3, ashlhi3, ashlqi3): Ditto.
3583 (ashrsi3, ashrhi3, ashrqi3): Ditto.
3584 (lshrsi3, lshrhi3, lshrqi3): Ditto.
3585 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3586 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3588 2008-06-28 Richard Guenther <rguenther@suse.de>
3590 * tree-ssa-structalias.c (callused_id, var_callused,
3591 callused_tree): Add.
3592 (handle_pure_call): New function.
3593 (find_func_aliases): Call it.
3594 (find_what_p_points_to): Handle the call-used set.
3595 (clobber_what_escaped): Likewise.
3596 (compute_call_used_vars): New function.
3597 (init_base_vars): Init the call-used variable.
3598 (do_sd_constraint): Do not propagate the solution from CALLUSED
3599 but use CALLUSED as a placeholder.
3600 (solve_graph): Likewise.
3601 * tree-flow-inline.h (gimple_call_used_vars): New function.
3602 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3603 (compute_call_used_vars): Declare.
3604 * tree-ssa-alias.c (set_initial_properties): Call
3605 compute_call_used_vars.
3606 (reset_alias_info): Clear call-used variables.
3607 (add_call_clobber_ops): Assert we are not called for const/pure
3608 functions. Remove handling of them.
3609 (add_call_read_ops): Handle pure functions by adding the
3610 call-used set of variables as VUSEs.
3611 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3612 (delete_tree_ssa): Free it.
3613 * tree-dfa.c (remove_referenced_var): Clear the var from the
3616 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
3618 * tree.c (build_varargs_function_type_list): New.
3619 (build_function_type_list_1): New.
3620 (build_function_type_list): Use build_function_type_list_1.
3621 * tree.h (build_varargs_function_type_list): New.
3623 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3626 * config/spu/spu.c (spu_builtin_splats): Do not generate
3627 invalid CONST_VECTOR expressions.
3628 (spu_expand_vector_init): Likewise.
3630 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
3632 * optabs.c (libfunc_decls): New variable.
3633 (libfunc_decl_hash, libfunc_decl_eq): New functions.
3634 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3635 for the same function twice.
3637 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
3639 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3640 ix86_expand_binary_operator directly.
3641 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
3643 (*ashrti3_1): Ditto.
3644 (*lshrti3_1): Ditto.
3645 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3646 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3647 using only one splitter. Conditionaly execute splitter before or
3648 after peephole2 pass.
3649 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3650 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
3651 Use only one alternative in asm template.
3652 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3654 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3655 "J" operand constraint for operand 2.
3656 (*ashldi3_cconly_rex64): Ditto.
3657 (*ashrdi3_cmp_rex64): Ditto.
3658 (*ashrdi3_cconly_rex64): Ditto.
3659 (*lshrdi3_cmp_rex64): Ditto.
3660 (*lshrdi3_cconly_rex64): Ditto.
3661 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3662 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3663 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3666 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3668 * gimplify.c (omp_is_private): Don't return true if decl is not
3669 already private on #pragma omp for or #pragma omp parallel for.
3672 * tree-cfg.c (struct move_stmt_d): Replace block field with
3673 orig_block and new_block fields.
3674 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3675 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3676 (move_block_to_fn): Replace vars_map and new_label_map arguments
3677 with struct move_stmt_d pointer.
3678 (replace_block_vars_by_duplicates): New function.
3679 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
3680 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
3681 all subblocks of ORIG_BLOCK to the new function. Call
3682 replace_block_vars_by_duplicates.
3683 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3684 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3685 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
3686 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3687 (expand_omp): Temporarily set input_location to the location of
3688 region's controlling stmt.
3689 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3690 BIND_EXPR, push ctx->block_vars and gimplification vars into
3691 the BIND_EXPR and its block's BLOCK_VARS instead of directly
3693 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3694 there are any BLOCK_VARS.
3695 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3696 OMP_PARALLEL or OMP_TASK stmt.
3697 (lower_omp): Save and restore input_location around the lower_omp_1
3700 2008-06-27 Richard Guenther <rguenther@suse.de>
3702 PR tree-optimization/36400
3703 PR tree-optimization/36373
3704 PR tree-optimization/36344
3705 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3706 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3707 (update_alias_info): Remove call clobbering code.
3708 (make_constraint_to): New helper function.
3709 (make_escape_constraint): Likewise.
3710 (handle_rhs_call): Use it on all pointer containing arguments.
3711 Also mark the static chain escaped.
3712 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3713 instead of ANYTHING.
3714 (make_constraint_from): New helper split out from ...
3715 (make_constraint_from_anything): ... here.
3716 (find_func_aliases): Add constraints for escape sites.
3717 (intra_create_variable_infos): Make constraints from NONLOCAL
3719 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3721 (clobber_what_p_points_to): Remove.
3722 (clobber_what_escaped): New function.
3723 (init_base_vars): Init NONLOCAL and ESCAPED.
3724 (do_sd_constraint): Do not propagate the solution from ESCAPED
3725 but use ESCAPED as a placeholder.
3726 (solve_graph): Likewise.
3727 * tree-flow.h (clobber_what_p_points_to): Remove.
3728 (clobber_what_escaped): Declare.
3729 * tree-ssa-alias.c (set_initial_properties): Call it.
3730 Remove code clobbering escaped pointers.
3732 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3734 * function.c (allocate_struct_function): Only allocate a unique
3735 funcdef_no if the decl is nonzero.
3737 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
3739 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3740 * config/mips/mips.c (mips_split_const_insns): New function.
3741 * config/mips/mips.md (move_type): New attribute.
3742 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
3743 (dword_mode): New attribute.
3744 (type): Avoid long line. Map "move_type"s to "type"s,
3745 choosing "multi" for doubleword moves if appropriate.
3746 Swap MTC/MFC comments to match their declaration order.
3747 (extended_mips16): Default to "yes" if "move_type" is "sll0",
3748 "type" is "branch" or "jal" is "direct".
3749 (length): Handle "extended_mips16" first. Make the default
3750 "0" for "ghost" instructions. Set the length from "move_type".
3751 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3752 of "type", with "sll0" for the register alternative. Remove the
3753 "extended_mips16" attribute.
3754 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3755 of "type", with "shift_shift" for the register alternative.
3756 Remove the "length" attribute.
3757 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3758 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3759 of "type", with "andi" for the register alternative.
3760 (*zero_extendqihi2): Likewise.
3761 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3762 of "andi" instead of a "type" of "arith".
3763 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3765 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3766 (mov_<store>r, *mov<mode>_ra): Likewise.
3767 (extendsidi2): Use "move_type" instead of "type", with "move"
3768 for the register alternative.
3769 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3770 of "type", with "signext" for the register alternative.
3771 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3772 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3773 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3774 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3775 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3776 (unnamed branch insn): Likewise.
3777 (*movdi_gp32_fp64): Fold into...
3778 (*movdi_32bit): ...here.
3779 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3780 (*movdf_hardfloat): ...this new pattern.
3781 (*movdf_softfloat): Remove redundant FPR alternatives.
3782 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3783 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3784 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
3785 the "move" attribute.
3786 (*movdi_32bit): Use "move_type" instead of "type" and remove the
3787 "length" attribute. Use "fpload" and "fpstore" instead of "load"
3788 and "store" for COP loads and stores.
3789 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3790 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3791 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3792 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3793 (*movtf_mips16, *movv2sf): Likewise.
3794 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3795 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3796 (mfhc1<mode>): Use "move_type" instead of "move".
3797 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3798 (loadgp_blockage): Remove the "length" attribute.
3799 (blockage, set_got_version, update_got_version): Likewise.
3800 (call_internal): Remove the "extended_mips16" attribute.
3801 (call_value_internal, call_value_multiple_internal): Likewise.
3802 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3804 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3805 the "length" attribute.
3807 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3809 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3810 -Wcast-qual warnings.
3811 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3812 handle_pragma_pop_macro): Likewise.
3813 * collect2.c (resolve_lib_name): Likewise.
3814 * config/arc/arc.c (arc_init): Likewise.
3815 * config/arm/arm.c (neon_builtin_compare,
3816 locate_neon_builtin_icode): Likewise.
3817 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3818 * config/bfin/bfin.c (bfin_init_machine_status,
3819 bfin_optimize_loop): Likewise.
3820 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3821 * config/cris/cris.c (cris_init_expanders): Likewise.
3822 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3823 * config/darwin.c (machopic_indirection_eq,
3824 machopic_indirection_name, machopic_output_indirection): Likewise.
3825 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3826 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3827 frv_optimize_membar): Likewise.
3828 * config/i386/cygwin.h (mingw_scan,
3829 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3830 * config/i386/cygwin1.c (mingw_scan): Likewise.
3831 * config/i386/i386.c (machopic_output_stub): Likewise.
3832 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3833 i386_pe_unique_section): Likewise.
3834 * config/ia64/ia64.c (ia64_init_machine_status,
3835 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3837 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3838 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3839 * config/m68k/m68k.c (m68k_handle_option,
3840 m68k_sched_md_init_global): Likewise.
3841 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3842 mcore_unique_section): Likewise.
3843 * config/mips/mips.c (mips_block_move_straight,
3844 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3846 * config/mmix/mmix.c (mmix_init_machine_status,
3847 mmix_encode_section_info): Likewise.
3848 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3849 * config/rs6000/rs6000.c (rs6000_init_machine_status,
3850 print_operand_address, output_toc, redefine_groups,
3851 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3852 * config/s390/s390.c (s390_init_machine_status): Likewise.
3853 * config/score/score.c (score_block_move_straight,
3854 score_block_move_loop_body): Likewise.
3855 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3856 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3857 * emit-rtl.c (find_auto_inc): Likewise.
3858 * gcc.c (translate_options, process_command): Likewise.
3859 * reorg.c (dbr_schedule): Likewise.
3860 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3861 * xcoffout.c (xcoffout_declare_function): Likewise.
3863 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
3865 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3866 ipa-pta working again.
3868 2008-06-27 David Edelsohn <edelsohn@gnu.org>
3870 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3873 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
3875 * config.gcc (powerpc*-*-*): Add new core e500mc.
3876 * config/rs6000/e500mc.md: New file.
3877 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3879 (rs6000_override_options): Add e500mc case to
3880 processor_target_table. Altivec and Spe options not allowed
3881 with e500mc. Add isel instruction to e500mc by
3882 default. Initialize rs6000_cost for e500mc.
3883 (rs6000_issue_rate): Set issue rate for e500mc.
3884 * config/rs6000/rs6000.h (processor_type): Add
3885 PROCESSOR_PPCE500MC.
3886 (ASM_CPU_SPEC): Add e500mc.
3887 Set TARGET_ISEL to rs6000_isel.
3888 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3889 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3890 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3892 * doc/invoke.texi: Add e500mc to list of cpus.
3894 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3897 * c-lex.c (lex_charconst): Initialize unsignedp.
3899 2008-06-27 Olivier Hainque <hainque@adacore.com>
3901 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3902 documented assumptions.
3904 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
3906 * dwarf2out.c: Remove trailing white spaces. Break long line
3909 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
3911 * libfuncs.h (LTI_synchronize): New libfunc_index.
3912 (synchronize_libfunc): Declare.
3913 * builtins.c (expand_builtin_synchronize): Consider using
3914 synchronize_libfunc before falling back on an asm blockage.
3915 * config/mips/mips.c: Include libfuncs.h
3916 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3918 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
3920 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3921 parameter. Copy stack_reg to r11 where appropriate.
3922 (no_global_regs_above): Add gpr parameter.
3923 (rs6000_stack_info): Only add padding for SPE save area if we
3924 are saving SPE GPRs and CR.
3925 (saveres_routine_syms): New variable.
3926 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3928 (rs6000_savres_routine_sym): New function.
3929 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3931 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
3932 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
3933 Tweak FPR out-of-line saving.
3934 (rs6000_make_savres_rtx): New function.
3935 (rs6000_use_multiple_p): New function.
3936 (rs6000_savres_strategy): New function.
3937 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
3938 out-of-line if appropriate.
3939 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3940 if we are optimizing for size.
3941 (GP_SAVE_INLINE): Define.
3942 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3943 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3944 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3945 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3946 (*save_fpregs_<mode>): Add use of r11.
3947 (*restore_gpregs_<mode>): New insn.
3948 (*return_and_restore_gpregs_<mode>): New insn.
3949 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3951 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3952 (*restore_gpregs_spe): New insn.
3953 (*return_and_restore_gpregs_spe): New insn.
3954 * config/rs6000/predicates.md (save_world_operation): Fix check.
3956 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3958 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3959 this point, so assert that.
3961 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
3963 * cfganal.c: Include vec.h and vecprim.h.
3964 (compute_idf): Import from...
3965 * tree-into-ssa (compute_idf): ...here.
3966 * basic-block.h (compute_idf): Export.
3968 2008-06-26 Joseph Myers <joseph@codesourcery.com>
3970 * c-decl.c (merge_decls): Use !current_function_decl to check for
3971 extern declaration of C99 inline function being at file scope.
3973 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
3975 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3977 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3979 * alias.c (record_alias_subset, init_alias_analysis): Fix
3980 -Wc++-compat and/or -Wcast-qual warnings.
3981 * attribs.c (lookup_attribute_spec): Likewise.
3982 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3983 copy_bb, connect_traces,
3984 find_rarely_executed_basic_blocks_and_cr): Likewise.
3985 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3986 note_btr_set, migrate_btr_defs): Likewise.
3987 * builtins.c (result_vector, expand_builtin_memcpy,
3988 expand_builtin_mempcpy_args, expand_builtin_strncpy,
3989 builtin_memset_read_str, expand_builtin_printf,
3990 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3992 * caller-save.c (mark_set_regs): Likewise.
3993 * calls.c (expand_call, emit_library_call_value_1): Likewise.
3994 * cgraph.c (cgraph_edge): Likewise.
3995 * combine.c (likely_spilled_retval_1): Likewise.
3996 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3997 htab_counts_entry_del, get_coverage_counts): Likewise.
3998 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3999 new_cselib_val): Likewise.
4000 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
4001 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
4003 * df-core.c (df_compact_blocks): Likewise.
4004 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
4005 * df-scan.c (df_grow_reg_info, df_ref_create,
4006 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
4007 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
4008 df_record_entry_block_defs, df_record_exit_block_uses,
4009 df_bb_verify): Likewise.
4010 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
4011 DF_REF_EXTRACT_MODE_CONST): New.
4012 * dominance.c (get_immediate_dominator, get_dominated_by,
4013 nearest_common_dominator, root_of_dom_tree,
4014 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
4015 -Wc++-compat and/or -Wcast-qual warnings.
4016 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
4017 record_store, replace_read, check_mem_read_rtx, scan_insn,
4018 dse_step1, dse_record_singleton_alias_set): Likewise.
4019 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4021 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4023 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
4024 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
4025 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
4026 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
4027 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
4028 add_ranges_num, add_ranges_by_labels, file_info_cmp,
4029 file_name_acquire, output_file_names, add_const_value_attribute,
4030 premark_used_types_helper, file_table_eq, file_table_hash,
4031 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
4032 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
4033 -Wcast-qual warnings.
4034 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
4035 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
4036 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
4037 gen_reg_rtx, start_sequence, init_emit): Likewise.
4038 * et-forest.c (et_new_occ, et_new_tree): Likewise.
4039 * except.c (init_eh_for_function, gen_eh_region,
4040 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
4041 arh_to_landing_pad, arh_to_label, add_action_record,
4042 add_call_site, switch_to_exception_section): Likewise.
4043 * expmed.c (synth_mult): Likewise.
4044 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
4045 store_expr): Likewise.
4046 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
4048 * function.c (assign_stack_temp_for_type,
4049 allocate_struct_function, match_asm_constraints_1): Likewise.
4050 * gcov-io.c (gcov_allocate): Likewise.
4051 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
4052 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
4053 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
4054 record_one_set, insert_expr_in_table, insert_set_in_table,
4055 dump_hash_table, compute_hash_table_work, alloc_hash_table,
4056 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
4057 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
4058 -Wcast-qual warnings.
4060 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4062 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
4063 -Wcast-qual warnings.
4064 * gcc.c (process_command): Likewise.
4065 * genattrtab.c (oballoc): Use XOBNEW.
4066 (oballocvec): Define.
4067 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
4068 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
4069 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
4070 -Wc++-compat and/or -Wcast-qual warnings.
4071 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
4072 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4073 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4074 gen_presence_absence_set, gen_automaton, gen_regexp_el,
4075 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4076 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4077 add_excls, process_presence_absence_names,
4078 process_presence_absence_patterns, add_presence_absence,
4079 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4080 get_free_state, add_arc, get_free_automata_list_el,
4081 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4082 transform_3, cache_presence, create_ainsns, create_automata,
4083 create_state_ainsn_table, dfa_insn_code_enlarge,
4084 output_trans_func, output_min_issue_delay_func,
4085 output_dead_lock_func, output_reset_func,
4086 output_get_cpu_unit_code_func, output_dfa_start_func,
4087 expand_automata): Likewise.
4088 * genextract.c (gen_insn): Likewise.
4089 * gengtype-lex.l: Likewise.
4090 * gengtype.c (read_input_list, adjust_field_type,
4091 process_gc_options): Likewise.
4092 * genoutput.c (note_constraint): Likewise.
4093 * genpreds.c (mangle, add_constraint): Likewise.
4094 * genrecog.c (process_define_predicate, new_decision,
4095 add_to_sequence): Likewise.
4096 * gensupport.c (record_insn_name): Likewise.
4098 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4100 * config/i386/driver-i386.c (detect_caches_amd,
4101 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4102 and/or -Wcast-qual warnings.
4103 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4104 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4105 gt_pch_save): Likewise.
4106 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4107 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4108 * global.c (compute_regsets): Likewise.
4109 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4110 finish_graph_dump_file): Likewise.
4111 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4112 unlink_bb_notes): Likewise.
4113 * integrate.c (get_hard_reg_initial_val): Likewise.
4114 * ipa-prop.c (ipa_push_func_to_list): Likewise.
4115 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4116 * local-alloc.c (update_equiv_regs): Likewise.
4117 * loop-invariant.c (check_invariant_table_size,
4118 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4120 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4121 altered_reg_used, mark_altered): Likewise.
4122 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4123 insert_var_expansion_initialization,
4124 combine_var_copies_in_loop_exit, apply_opt_in_copies,
4125 release_var_copies): Likewise.
4126 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4127 analyze_matrix_decl, add_allocation_site, analyze_transpose,
4128 analyze_accesses_for_phi_node, check_var_notmodified_p,
4129 check_allocation_function, find_sites_in_func,
4130 record_all_accesses_in_func, transform_access_sites,
4131 transform_allocation_sites): Likewise.
4132 * omp-low.c (new_omp_region, create_omp_child_function_name,
4133 check_omp_nesting_restrictions, check_combined_parallel,
4134 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4135 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4136 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4137 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4139 * opts-common.c (prune_options): Likewise.
4140 * opts.c (add_input_filename, print_filtered_help,
4141 get_option_state): Likewise.
4142 * params.c (add_params): Likewise.
4143 * passes.c (set_pass_for_id, next_pass_1,
4144 do_per_function_toporder, pass_fini_dump_file): Likewise.
4145 * postreload.c (reload_cse_simplify_operands): Likewise.
4146 * predict.c (tree_predicted_by_p, tree_predict_edge,
4147 clear_bb_predictions, combine_predictions_for_bb): Likewise.
4149 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4151 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4153 * recog.c (check_asm_operands, validate_change_1): Likewise.
4154 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4155 subst_asm_stack_regs): Likewise.
4156 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4157 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4158 * regmove.c (reg_is_remote_constant_p): Likewise.
4159 * regrename.c (regrename_optimize, scan_rtx_reg,
4160 kill_clobbered_value, kill_set_value, kill_autoinc_value):
4162 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4163 regstat_compute_calls_crossed): Likewise.
4164 * reload1.c (init_reload, new_insn_chain,
4165 has_nonexceptional_receiver, reload, copy_reloads,
4166 calculate_needs_all_insns, init_elim_table): Likewise.
4167 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4168 * rtl.c (shallow_copy_rtx_stat): Likewise.
4169 * rtlanal.c (parms_set): Likewise.
4170 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4171 sbitmap_resize, sbitmap_vector_alloc): Likewise.
4172 * sched-ebb.c (earliest_block_with_similiar_load,
4173 add_deps_for_risky_insns): Likewise.
4174 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4175 schedule_region): Likewise.
4176 * see.c (eq_descriptor_pre_extension,
4177 hash_descriptor_pre_extension, hash_del_pre_extension,
4178 eq_descriptor_properties, hash_descriptor_properties,
4179 hash_del_properties, see_seek_pre_extension_expr,
4180 see_initialize_data_structures, see_print_register_properties,
4181 see_print_pre_extension_expr, see_delete_merged_def_extension,
4182 see_delete_unmerged_def_extension, see_emit_use_extension,
4183 see_pre_delete_extension, see_map_extension, see_commit_changes,
4184 see_analyze_merged_def_local_prop,
4185 see_analyze_merged_def_local_prop,
4186 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4187 see_set_prop_merged_def, see_set_prop_unmerged_def,
4188 see_set_prop_unmerged_use, see_print_one_extension,
4189 see_merge_one_use_extension, see_merge_one_def_extension,
4190 see_store_reference_and_extension, see_update_uses_relevancy,
4191 see_update_defs_relevancy): Likewise.
4192 * statistics.c (hash_statistics_hash, hash_statistics_eq,
4193 hash_statistics_free, curr_statistics_hash): Likewise.
4194 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4195 expand_asm_operands, expand_return, case_bit_test_cmp,
4196 expand_case): Likewise.
4197 * stor-layout.c (start_record_layout): Likewise.
4198 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4199 gt_pch_save_stringpool): Likewise.
4200 * tree-data-ref.c (hash_stmt_vertex_info,
4201 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4202 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4204 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
4207 * config/i386/i386.md : Change constraints of HImode and QImode
4208 immediate operands from "i" to "n". Change SImode "ni" constraint to
4209 "i" and SImode "rmi" constraint to "g". Remove all constraints
4210 from const0_operand and const1_operand predicated operands.
4211 (i): Change QImode and HImode attribute from "i" to "n".
4212 (*subqi_2): Change HImode operands to QImode.
4215 2008-06-25 Olivier Hainque <hainque@adacore.com>
4217 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4220 2008-06-25 Richard Guenther <rguenther@suse.de>
4222 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4223 not overflow the result type.
4225 2008-06-25 Richard Guenther <rguenther@suse.de>
4227 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4228 (vn_lookup): Likewise.
4230 2008-06-25 Richard Guenther <rguenther@suse.de>
4232 PR tree-optimization/35518
4233 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4234 * tree-sra.c (instantiate_element): Use fold_build3 to build
4236 (try_instantiate_multiple_fields): Likewise.
4238 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4240 * config/rs6000/rs6000.md: Change all string instruction's clobber to
4243 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4245 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4246 use_backchain_to_restore_sp to true
4247 if the offset of the link register save area would go over the 32k - 1
4248 offset limit of the load
4251 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
4253 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4254 anchor for the type-punning blurb. Cross-reference "Structures
4255 unions enumerations and bit-fields implementation". Provide a
4256 cast-through-pointer example. Make final sentence self-contained.
4257 * doc/implement-c.texi (Structures unions enumerations and
4258 bit-fields implementation): Cross-reference the type-punning blurb
4259 in the -fstrict-aliasing documentation.
4261 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4264 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4265 the memory instead of the memory itself for the save area.
4267 2008-06-24 Olivier Hainque <hainque@adacore.com>
4268 Nicolas Roche <roche@adacore.com>
4270 * gengtype.c (srcdir_len): size_t instead of int.
4271 (get_file_realbasename): New function. For F a filename, the real
4272 basename of F, with all the path components stripped.
4273 (get_file_srcdir_relative_path): New function. For F a filename, the
4274 relative path to F from $(srcdir).
4275 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4276 get_file_realbasename. Adjust the head comment.
4277 (get_prefix_langdir_index): New function. For F a filename, return the
4278 lang_dir_names[] relative index of the language directory that is
4280 (get_file_langdir): For F a filename, return the name of the language
4281 directory where F is located.
4282 (get_file_gtfilename): New function. The gt- output file name for an
4284 (get_output_file_with_visibility): Replace in-line computations with
4285 uses of get_file_gtfilename and get_prefix_langdir_index.
4286 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4288 2008-06-24 Jakub Jelinek <jakub@redhat.com>
4290 PR tree-optimization/36504
4291 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4292 references without base address.
4294 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4297 * calls.c (expand_call): Increase alignment for recursive functions.
4299 2008-06-23 Anatoly Sokolov <aesok@post.ru>
4301 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4302 (TARGET_FUNCTION_VALUE): New define.
4303 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4304 * config/avr/avr.h (FUNCTION_VALUE): Remove.
4306 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4308 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4309 (fmod<mode>3): Ditto.
4310 (remainderxf3): Ditto.
4311 (remainder<mode>3): Ditto.
4313 2008-06-23 Jakub Jelinek <jakub@redhat.com>
4316 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4317 REG is a hard register.
4319 PR tree-optimization/36508
4320 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4321 499, don't check it at all in release compilers.
4323 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4325 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4326 together with SSE_TARGET_MATH to disable insn pattern.
4327 (*fop_<MODEF:mode>_2_i387): Ditto.
4328 (*fop_<MODEF:mode>_3_i387): Ditto.
4330 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
4332 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4334 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4337 * gimplify.c (gimplify_asm_expr): Check the return code of
4338 parse_output_constraint call, set function return and is_inout
4341 2008-06-22 Ian Lance Taylor <iant@google.com>
4343 * c-lex.c (narrowest_unsigned_type): Change itk to int.
4344 (narrowest_signed_type): Likewise.
4345 * c-typeck.c (c_common_type): Change local variable mclass to enum
4347 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4348 tcc_comparison, not the tree code itself.
4349 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4350 (c_expand_expr): Cast modifier to enum expand_modifier.
4351 * c-common.h (C_RID_CODE): Add casts.
4352 (C_SET_RID_CODE): Define.
4353 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4354 (c_lex_one_token): Add cast to avoid warning.
4355 (c_parser_objc_type_name): Rename local typename to type_name.
4356 (check_no_duplicate_clause): Change code parameter to enum
4358 (c_parser_omp_var_list_parens): Change kind parameter to enum
4360 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4361 c_parser_omp_list_var_parens.
4362 (c_parser_omp_threadprivate): Likewise.
4363 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4364 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4365 * c-format.c (NO_FMT): Define.
4366 (printf_length_specs): Use NO_FMT.
4367 (asm_fprintf_length_specs): Likewise.
4368 (gcc_diag_length_specs): Likewise.
4369 (scanf_length_specs): Likewise.
4370 (strfmon_length_specs): Likewise.
4371 (gcc_gfc_length_specs): Likewise.
4372 (printf_flag_specs): Change 0 to STD_C89.
4373 (asm_fprintf_flag_specs): Likewise.
4374 (gcc_diag_flag_specs): Likewise.
4375 (gcc_cxxdiag_flag_specs): Likewise.
4376 (scanf_flag_specs): Likewise.
4377 (strftime_flag_specs): Likewise.
4378 (strfmon_flag_specs): Likewise.
4379 (print_char_table): Likewise.
4380 (asm_fprintf_char_table): Likewise.
4381 (gcc_diag_char_table): Likewise.
4382 (gcc_tdiag_char_table): Likewise.
4383 (gcc_cdiag_char_table): Likewise.
4384 (gcc_cxxdiag_char_table): Likewise.
4385 (gcc_gfc_char_table): Likewise.
4386 (scan_char_table): Likewise.
4387 (time_char_table): Likewis.
4388 (monetary_char_table): Likewise.
4389 * c-format.h (BADLEN): Likewise.
4391 2008-06-21 Ian Lance Taylor <iant@google.com>
4393 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4394 Define END_OF_BASE_TREE_CODES around inclusion.
4395 * tree.c (tree_code_type): New global array.
4396 (tree_code_length, tree_code_name): Likewise.
4397 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4399 (all-tree.def, s-alltree): New targets.
4400 (gencheck.h, s-gencheck): Remove.
4401 (tree.o): Depend upon all-tree.def.
4402 (build/gencheck.o): Remove gencheck.h dependency.
4403 (mostlyclean): Don't remove gencheck.h.
4404 * c-common.h (enum c_tree_code): Remove.
4405 * c-lang.c (tree_code_type): Remove.
4406 (tree_code_length, tree_code_name): Remove.
4407 * gencheck.c (tree_codes): Include all-tree.def, rather than
4408 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
4410 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4412 * cp/cp-tree.h (enum cplus_tree_code): Remove.
4413 (operator_name_info): Size to MAX_TREE_CODES.
4414 (assignment_operator_name_info): Likewise.
4415 * cp/cp-lang.c (tree_code_type): Remove.
4416 (tree_code_length, tree_code_name): Remove.
4417 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4418 (assignment_operator_name_info): Likewise.
4419 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4421 * cp/mangle.c (write_expression): Likewise.
4422 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4423 * fortran/f95-lang.c (tree_code_type): Remove.
4424 (tree_code_length, tree_code_name): Remove.
4425 * java/java-tree.h (enum java_tree_code): Remove.
4426 * java/lang.c (tree_code_type): Remove.
4427 (tree_code_length, tree_code_name): Remove.
4428 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4429 * objc/objc-act.h (enum objc_tree_code): Remove.
4430 * objc/objc-lang.c (tree_code_type): Remove.
4431 (tree_code_length, tree_code_name): Remove.
4432 * objcp/objcp-lang.c (tree_code_type): Remove.
4433 (tree_code_length, tree_code_name): Remove.
4434 * ada/ada-tree.h (enum gnat_tree_code): Remove.
4435 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4436 * ada/misc.c (tree_code_type): Remove.
4437 (tree_code_length, tree_code_name): Remove.
4439 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
4441 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4442 the grand_bitmap_obstack.
4444 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4446 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4447 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4448 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4449 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4450 move_stmt_r, new_label_mapper): Likewise.
4451 * tree-complex.c (cvc_lookup): Likewise.
4452 * tree-dfa.c (create_function_ann): Likewise.
4453 * tree-dump.c (dump_register): Likewise.
4454 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4455 find_phi_replacement_condition): Likewise.
4456 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4457 tree_function_versioning): Likewise.
4458 * tree-into-ssa.c (cmp_dfsnum): Likewise.
4459 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4460 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4461 get_nonlocal_debug_decl, convert_nonlocal_reference,
4462 convert_nonlocal_omp_clauses, get_local_debug_decl,
4463 convert_local_reference, convert_local_omp_clauses,
4464 convert_nl_goto_reference, convert_nl_goto_receiver,
4465 convert_tramp_reference, convert_call_expr): Likewise.
4466 * tree-outof-ssa.c (contains_tree_r): Likewise.
4467 * tree-parloops.c (reduction_phi, initialize_reductions,
4468 eliminate_local_variables_1, add_field_for_reduction,
4469 add_field_for_name, create_phi_for_local_result,
4470 create_call_for_reduction_1, create_loads_for_reductions,
4471 create_stores_for_reduction, create_loads_and_stores_for_name):
4473 * tree-phinodes.c (allocate_phi_node): Likewise.
4474 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4475 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4476 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4477 * tree-ssa-coalesce.c (compare_pairs): Likewise.
4478 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4479 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4480 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4481 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4482 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4483 vn_nary_op_insert): Likewise.
4484 * tree-ssa.c (redirect_edge_var_map_add,
4485 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4486 * tree-vectorizer.c (vectorize_loops): Likewise.
4487 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4488 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4489 tree_cons_stat, build1_stat, build_variant_type_copy,
4490 decl_init_priority_lookup, decl_fini_priority_lookup,
4491 decl_priority_info, decl_restrict_base_lookup,
4492 decl_restrict_base_insert, decl_debug_expr_lookup,
4493 decl_debug_expr_insert, decl_value_expr_lookup,
4494 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4495 type_hash_add, get_file_function_name, tree_check_failed,
4496 tree_not_check_failed, tree_range_check_failed,
4497 omp_clause_range_check_failed, build_omp_clause,
4498 build_vl_exp_stat): Likewise.
4499 * value-prof.c (gimple_histogram_value,
4500 gimple_duplicate_stmt_histograms): Likewise.
4501 * var-tracking.c (attrs_list_insert, attrs_list_copy,
4502 unshare_variable, variable_union_info_cmp_pos, variable_union,
4503 dataflow_set_different_1, dataflow_set_different_2,
4504 vt_find_locations, variable_was_changed, set_variable_part,
4505 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4506 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4507 section_entry_hash, object_block_entry_eq,
4508 object_block_entry_hash, create_block_symbol,
4509 initialize_cold_section_name, default_function_rodata_section,
4510 strip_reg_name, set_user_assembler_name, const_desc_eq,
4511 build_constant_desc, output_constant_def, lookup_constant_def,
4512 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4513 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4514 default_internal_label): Likewise.
4515 * varray.c (varray_init, varray_grow): Likewise.
4516 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4518 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
4520 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4521 operators for "test" insn. Macroize insn using SWI mode macro.
4522 (*jcc_fused_2): Ditto.
4523 (*jcc_fused_3): Macroize insn using SWI mode macro.
4524 (*jcc_fused_4): Ditto.
4526 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
4528 * tree-ssa-pre.c: Fix typo in comment.
4529 (init_antic, fini_antic): Add explicit funtions for
4530 initializing and deinitializing ANTIC and AVAIL sets.
4531 (create_expression_by_pieces): Fix typo in comment.
4532 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4533 (execute_pre): Eventually dump details about ANTIC_IN.
4535 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4537 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4538 * gcc.c (translate_options, init_spec, store_arg, read_specs,
4539 add_to_obstack, file_at_path, find_a_file, execute,
4540 add_preprocessor_option, add_assembler_option, add_linker_option,
4541 process_command, insert_wrapper, do_option_spec, do_self_spec,
4542 spec_path, do_spec_1, is_directory, main, used_arg,
4543 getenv_spec_function): Likewise.
4544 * tlink.c (symbol_hash_lookup, file_hash_lookup,
4545 demangled_hash_lookup, symbol_push, file_push, frob_extension):
4548 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
4550 * doc/rtl.texi: Updated subreg section.
4552 2008-06-19 Jakub Jelinek <jakub@redhat.com>
4555 * cgraphunit.c (cgraph_process_new_functions): Don't clear
4556 node->needed and node->reachable.
4557 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4558 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4559 (expand_task_call): Don't call expand_task_copyfn.
4560 (expand_task_copyfn): Renamed to...
4561 (finalize_task_copyfn): ... this.
4563 2008-06-19 Jan Hubicka <jh@suse.cz>
4565 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4566 clobbering framepointer.
4568 2008-06-19 Jan Hubicka <jh@suse.cz>
4570 * tree-optimize.c (execute_early_local_optimizations): Set
4571 cgraph_state only at first invocation.
4573 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4575 * system.h (-Wc++-compat): Activate as a warning, no an error.
4577 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4579 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4580 instead of "#" in insn asm template.
4581 (*jcc_fused_2): Ditto.
4583 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4585 * config/i386/i386.h (ix86_tune_indices)
4586 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4587 (TARGET_FUSE_CMP_AND_BRANCH): New define.
4588 * config/i386/i386.md (*jcc_fused_1): New insn pattern
4589 (*jcc_fused_2): Ditto.
4590 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4591 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4592 (print operand): Handle 'E' and 'e' code.
4594 2008-06-19 Anatoly Sokolov <aesok@post.ru>
4596 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4597 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4598 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4600 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
4602 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4604 (cgraph_expand_function): Use local copy of decl.
4605 (cgraph_expand_all_functions): Remove redundant initialization of
4607 (cgraph_optimize): Reword internal_error message.
4609 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
4611 * arm-protos.h (arm_return_in_memory): Remove public
4612 arm_return_in_memory() prototype.
4613 * arm.c (arm_return_in_memory): Add static prototype, add target
4614 hook macro, change definition and comments.
4615 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4617 2008-06-19 Ben Elliston <bje@au.ibm.com>
4619 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4620 real.c: Remove references to IEEE 754R.
4621 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4622 * doc/libgcc.texi (Decimal float library routines): Likewise.
4624 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4626 * targhooks.h (struct gcc_target): New member unwind_word_mode.
4627 (default_unwind_word_mode): Add prototype.
4628 * targhooks.c (default_unwind_word_mode): New function.
4629 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4630 instead of word_mode.
4631 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4632 (TARGET_INITIALIZER): Use it.
4634 * c-common.c (handle_mode_attribute): Support "unwind_word"
4636 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4638 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4639 word_mode to access SjLj_Function_Context member "data".
4640 (sjlj_emit_dispatch_table): Likewise. Also, perform type
4641 conversion from targetm.eh_return_filter_mode () to
4642 targetm.unwind_word_mode () if they differ.
4644 * builtin-types.def (BT_UNWINDWORD): New primitive type.
4645 (BT_FN_UNWINDWORD_PTR): New function type.
4646 (BT_FN_WORD_PTR): Remove.
4647 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4648 * except.c (expand_builtin_extend_pointer): Convert pointer to
4649 targetm.unwind_word_mode () instead of word_mode.
4651 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4652 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4653 (spu_unwind_word_mode): New function.
4654 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4655 (TARGET_UNWIND_WORD_MODE): Define.
4656 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4658 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4660 * config/spu/spu.c (reg_align): Remove.
4661 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4662 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4663 (spu_split_store): Likewise.
4665 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
4667 * gcc/tree-vn.c: Fix typo in comment.
4669 2008-06-18 Jan Hubicka <jh@suse.cz>
4671 * cgraphunit.c (cgraph_optimize): Output debug info when doing
4672 toplevel reorder too.
4674 2008-06-18 Jan Hubicka <jh@suse.cz>
4676 * c-opts.c (c_common_post_options): PCH is not compatible with
4678 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4679 -fno-toplevel-reorder by default now.
4681 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4683 PR documentation/30739
4684 * doc/install.texi (Prerequisites): Document dependency on awk.
4686 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
4687 Ian Lance Taylor <iant@google.com>
4689 PR rtl-optimization/35604
4690 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4691 only want to change jump destinations, not eventual label comparisons.
4693 2008-06-16 Jan Hubicka <jh@suse.cz>
4695 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4697 (cgraph_analyze_function): Likewise.
4699 2008-06-16 Jan Hubicka <jh@suse.cz>
4701 * cgraph.h (cgraph_mark_if_needed): New function.
4702 * cgraphunit.c (cgraph_mark_if_needed): New function.
4703 * c-decl.c (duplicate_decl): Use it.
4705 2008-06-16 Jan Hubicka <jh@suse.cz>
4707 * cgraph.c (cgraph_add_new_function): When in expansion state, do
4710 2008-06-16 Jan Hubicka <jh@suse.cz>
4712 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4714 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
4715 Kazu Hirata <kazu@codesourcery.com>
4716 Maxim Kuvyrkov <maxim@codesourcery.com
4718 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4719 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4720 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4721 EXTRA_SPEC_FUNCTIONS.
4722 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4723 (DRIVER_SELF_SPECS): Adjust.
4724 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4725 * config/mips/st.h, config/mips/t-st: New.
4726 * config/mips/driver-native.c, config/mips/x-native: New.
4727 * doc/invoke.texi (MIPS): Document 'native' value for -march and
4730 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4732 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4734 (ISA_HAS_FP_CONDMOVE): New macro.
4735 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4736 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4737 (ISA_HAS_NMADD3_NMSUB3): New macro.
4738 * config/mips/mips.c (mips_rtx_costs): Update.
4739 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4740 compiling for ST Loongson 2E/2F.
4741 (madd<mode>): Rename to madd4<mode>. Update.
4742 (madd3<mode>): New pattern.
4743 (msub<mode>): Rename to msub4<mode>. Update.
4744 (msub3<mode>): New pattern.
4745 (nmadd<mode>): Rename to nmadd4<mode>. Update.
4746 (nmadd3<mode>): New pattern.
4747 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
4748 (nmadd3<mode>_fastmath): New pattern.
4749 (nmsub<mode>): Rename to nmsub4<mode>. Update.
4750 (nmsub3<mode>): New pattern.
4751 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
4752 (nmsub3<mode>_fastmath): New pattern.
4753 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4755 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
4757 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4758 (DF_REF_INSN_INFO): New.
4759 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4760 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4761 with a NULL DF_REF_INSN_INFO.
4762 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4764 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4765 DF_INSN_INFO_EQ_USES): New.
4766 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4767 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4768 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4769 * df-core.c: Update comment for above changes.
4770 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4771 DF_INSN_UID_* macros.
4772 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4773 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4774 insn rtx. Update all callers.
4775 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4776 df_ref_create_structure, df_insn_refs_collect): Likewise.
4777 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4778 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4779 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4780 macros to access the insn refs.
4781 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4782 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4783 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4784 for accessing the refs.
4785 (try_fwprop_subst): Likewise.
4786 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4787 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4788 for accessing the refs.
4789 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4790 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4791 to look at the insn refs.
4792 (record_uses): Likewise.
4793 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4795 (mark_artificial_uses): Don't mark_insn for artificial refs.
4796 (mark_reg_rependencies): Likewise.
4798 * doc/rtl.texi: Remove documentation of ADDRESSOF.
4800 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4802 * configure: Regenerate.
4804 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4806 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4807 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4808 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4810 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4812 * config/avr/avr.c (avr_mcu_t): Add attiny167.
4813 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4814 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4816 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
4818 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4819 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4820 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4822 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4824 * tree-ssa-sccvn.c: Fix format of comments.
4826 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
4828 * cgraph.c: Remove unneeded forward declarations of eq_node()
4831 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
4833 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4835 (see_update_relevancy): Likewise.
4836 * fwprop.c (try_fwprop_subst): Likewise.
4837 * rtlanal.c (noop_move_p): Likewise.
4838 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4839 notes to non-existing libcall blocks.
4840 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
4842 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4843 (dead_libcall_p): Remove.
4844 (delete_trivially_dead_insns): Don't use it.
4845 * web.c (union_defs): Remove comment about keeping nops.
4846 * gcse.c (hash_scan_insn): Don't take libcall pointers.
4847 (compute_hash_table_work): Don't track libcall notes.
4848 (do_local_cprop): Don't take libcall pointers. Don't update
4850 (adjust_libcall_notes): Deleted.
4851 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4852 ever have existed in the first place).
4853 (replace_store_insn): Don't try to remove libcall notes.
4854 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4855 (resolve_reg_notes): Don't call them.
4856 (resolve_simple_move): Likewise.
4857 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4858 Don't remove REG_RETVAL notes.
4859 * emit-rtl.c (try_split): Don't update libcall notes.
4860 (emit_copy_of_insn_after): Dito.
4861 * cselib.c (cselib_current_insn_in_libcall): Remove.
4862 (cselib_process_insn): Don't set/clear it.
4863 (new_elt_loc_list): Don't record it.
4864 (cselib_init): Don't initialize it.
4865 * cselib.c (struct elt_loc_list): Remove in_libcall field.
4866 * loop-invariant.c (find_invariant_insn): Don't look for libcall
4868 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4869 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4870 (init_deps): Don't initialize it.
4871 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4872 * combine.c (delete_noop_moves): Don't update libcall notes.
4873 (can_combine_p): Remove now pointless #if 0 block.
4874 (try_combine): Remove another obsolete #if 0 block.
4875 (distribute_notes): Don't distribute libcall notes.
4876 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4877 * dce.c (libcall_dead_p): Remove.
4878 (delete_unmarked_insns): Don't handle libcall blocks.
4879 (preserve_libcall_for_dce): Remove.
4880 (prescan_insns_for_dce): Don't special-case libcall block insns.
4881 * reload1 (reload): Don't handle libcall notes.
4882 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4885 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4887 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4888 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4889 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4891 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
4893 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4894 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4895 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4897 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4899 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4901 2008-06-16 Ira Rosen <irar@il.ibm.com>
4903 PR tree-optimization/36493
4904 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4905 the arguments list. Use VECTYPE to create vector pointer.
4906 (vectorizable_store): Fail if accesses through a pointer to vectype
4907 do not alias the original memory reference operands.
4908 Call vect_create_data_ref_ptr without the removed argument.
4909 (vectorizable_load): Likewise.
4910 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4913 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
4916 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4919 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4921 * config/mips/loongson2ef.md: New file.
4922 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4923 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4924 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4925 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4926 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4928 (loongson2ef.md): New include.
4929 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4930 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4931 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4932 (loongson_gt_<mode>, loongson_extract_halfword)
4933 (loongson_insert_halfword_0, loongson_insert_halfword_2)
4934 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4935 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4936 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4937 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4938 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4939 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4940 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4941 (vec_interleave_low<mode>): Define type attribute.
4942 * config/mips/mips.c (mips_ls2): New static variable.
4943 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4944 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4945 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4946 Implement target scheduling hooks.
4947 (mips_multipass_dfa_lookahead): Update to handle tuning for
4949 (mips_sched_init): Initialize data for Loongson scheduling.
4950 (mips_ls2_variable_issue): New static function.
4951 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4953 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4954 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4955 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4956 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4957 Handle ST Loongson 2E/2F cores.
4958 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4960 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4962 * omp-low.c (extract_omp_for_data): Fix comment typo.
4965 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4967 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4968 FIXME note about gcc/config.guess.
4969 * doc/options.texi (Option file format): Remove non-ASCII bytes.
4970 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4971 * doc/cppopts.texi: Likewise.
4972 * doc/extend.texi: Likewise.
4973 * doc/gcc.texi: Likewise.
4974 * doc/gccint.texi: Likewise.
4975 * doc/gcov.texi: Likewise.
4976 * doc/gty.texi: Likewise.
4977 * doc/hostconfig.texi: Likewise.
4978 * doc/install.texi: Likewise.
4979 * doc/invoke.texi: Likewise.
4980 * doc/loop.texi: Likewise.
4981 * doc/makefile.texi: Likewise.
4982 * doc/md.texi: Likewise.
4983 * doc/passes.texi: Likewise.
4984 * doc/tm.texi: Likewise.
4985 * doc/tree-ssa.texi: Likewise.
4986 * doc/trouble.texi: Likewise.
4988 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
4989 Nathan Sidwell <nathan@codesourcery.com>
4990 Maxim Kuvyrkov <maxim@codesourcery.com>
4991 Richard Sandiford <rdsandiford@googlemail.com>
4993 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4994 * config/mips/mips-protos.h (mips_expand_vector_init): New.
4995 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4997 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4998 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4999 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
5001 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
5002 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
5003 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
5004 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
5005 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
5006 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
5007 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
5008 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
5009 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
5010 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
5011 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
5012 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
5013 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
5014 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
5015 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
5016 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
5017 (mips_builtins): Add Loongson builtins.
5018 (mips_loongson_2ef_bdesc): New.
5019 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
5020 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
5021 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
5022 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
5024 (mips_expand_vector_init): New.
5025 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
5026 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
5028 * config/mips/mips.md: Add unspec numbers for Loongson
5029 builtins. Include loongson.md.
5030 (MOVE64): Include Loongson vector modes.
5031 (SPLITF): Include Loongson vector modes.
5032 (HALFMODE): Handle Loongson vector modes.
5033 * config/mips/loongson.md: New.
5034 * config/mips/loongson.h: New.
5035 * config.gcc: Add loongson.h header for mips*-*-* targets.
5036 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
5038 2008-06-14 Joseph Myers <joseph@codesourcery.com>
5040 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
5041 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
5042 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
5043 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
5044 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
5045 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
5046 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
5047 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
5048 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
5049 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
5050 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
5051 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
5052 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
5053 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
5054 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
5055 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
5056 Remove use_fixproto=yes.
5057 (ia64*-*-hpux*): Remove comment about using fixproto.
5058 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
5060 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5062 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
5064 * configure: Regenerate.
5066 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
5069 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5070 before evaluating it.
5072 2008-06-13 Jakub Jelinek <jakub@redhat.com>
5075 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5076 nested inline functions.
5077 (start_decl, start_function): Don't invert DECL_EXTERNAL
5078 for nested inline functions.
5080 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5082 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5083 splits that must be made for correctness.
5085 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5087 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5088 (AVAIL_NON_MIPS16): Likewise.
5089 (mips_builtin_description): Replace target_flags with a predicate.
5090 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5091 (dspr2_32): New availability predicates.
5092 (MIPS_BUILTIN): New macro.
5093 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5094 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5095 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5096 Replace the TARGET_FLAGS parameters with AVAIL parameters.
5097 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5098 (mips_dsp_32only_bdesc): Merge into...
5099 (mips_builtins): ...this new array.
5100 (mips_bdesc_map, mips_bdesc_arrays): Delete.
5101 (mips_init_builtins): Update after above changes.
5102 (mips_expand_builtin_1): Merge into...
5103 (mips_expand_builtin): ...here and update after above changes.
5105 2008-06-12 Paul Brook <paul@codesourcery.com>
5107 * longlong.h (__arm__): Define count_leading_zeros.
5108 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5109 (clzsi2, clzdi2): New functions.
5110 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5111 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5112 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5113 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5114 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5115 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5116 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5117 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5118 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5119 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5121 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
5123 * config/m68k/m68k.c (m68k_tune_flags): New.
5124 (override_options): Compute m68k_tune_flags.
5125 (MULL_COST, MULW_COST): Update for various variants of CFV2.
5126 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5128 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5131 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
5133 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5135 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5136 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5138 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5140 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5141 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5143 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5146 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5149 2008-06-12 Richard Guenther <rguenther@suse.de>
5151 PR tree-optimization/36345
5152 * tree-flow.h (struct ptr_info_def): Align escape_mask,
5153 add memory_tag_needed flag.
5154 (may_alias_p): Declare.
5155 * tree-ssa-alias.c (may_alias_p): Export.
5156 (set_initial_properties): Use memory_tag_needed flag.
5157 (update_reference_counts): Likewise.
5158 (reset_alias_info): Reset memory_tag_needed flag.
5159 (create_name_tags): Check memory_tag_needed flag.
5160 (dump_points_to_info_for): Dump it.
5161 * tree-ssa-structalias.c (struct variable_info): Remove
5162 directly_dereferenced flag.
5163 (new_var_info): Do not initialize it.
5164 (process_constraint_1): Do not set it.
5165 (update_alias_info): Set is_dereferenced flag.
5166 (set_uids_in_ptset): Use may_alias_p.
5167 (set_used_smts): Check memory_tag_needed flag.
5168 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
5169 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5170 memory_tag_needed flag.
5171 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5174 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
5176 * config/i386/i386.c (ix86_compute_frame_layout): Disable
5177 red zone for w64 abi.
5178 (ix86_expand_prologue): Likewise.
5179 (ix86_force_to_memory): Likewise.
5180 (ix86_free_from_memory): Likewise.
5182 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
5185 * config/rs6000/rs6000.c (rs6000_override_options): Set
5186 rs6000_isel conditionally to the absence of comand line override.
5187 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5188 Remove duplicate rs6000_isel setting.
5189 * config/rs6000/eabispe.h: Ditto.
5191 2008-06-11 Richard Guenther <rguenther@suse.de>
5193 * alias.c (get_alias_set): Use the element alias-set for arrays.
5194 (record_component_aliases): For arrays and vectors do nothing.
5195 * c-common.c (strict_aliasing_warning): Handle the cases
5196 of alias set zero explicitly.
5197 * Makefile.in (dfp.o-warn): Add -Wno-error.
5199 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5201 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5203 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5204 tune_32 tune_64 to supported_defaults. Allow values not
5205 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5206 x86_64. Do not override cpu_32 or cpu_64 values from target name.
5207 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5208 with_cpu_64 to generic for 64-bit-supporting configurations, not
5209 with_cpu. Remove FIXMEs.
5210 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5211 --with-arch-64, --with-tune-32, --with-tune-64): Document.
5212 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5213 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5214 arch_32 and arch_64.
5216 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
5217 Olivier Hainque <hainque@adacore.com>
5219 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5220 Use DECL_SIZE_UNIT to retrieve the size of the field.
5222 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5224 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5225 with function calls after declarations. Lay out
5226 neon_float_type_node before further use.
5228 2008-06-11 Richard Guenther <rguenther@suse.de>
5230 * tree-flow.h (may_point_to_global_var): Declare.
5231 * tree-ssa-alias.c (may_point_to_global_var): New function.
5232 * tree-ssa-sink.c (is_hidden_global_store): Use it.
5234 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
5236 * configure.ac: Teach that fido supports .debug_line.
5237 * configure: Regenerate.
5239 2008-06-10 Tom Tromey <tromey@redhat.com>
5241 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5244 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5246 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5247 (encode_decimal64, decode_decimal64, encode_decimal128,
5248 decode_decimal128): Reverse order of 32-bit parts of value if host
5249 and target endianness differ.
5251 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
5253 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5254 Avoid division by 0.
5255 (tree_mod_pow2_value_transform): Likewise.
5256 (tree_ic_transform): Likewise.
5257 (tree_stringops_transform): Likewise.
5258 (tree_mod_subtract_transform): Likewise.
5259 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5260 (copy_edges_for_bb): Likewise.
5261 (initialize_cfun): Likewise.
5263 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5265 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5266 nonmemory_operand. Add "N" operand constraint.
5268 (*jcc_btdi_mask_rex64): New instruction and split pattern.
5269 (*jcc_btsi_mask): Ditto.
5270 (*jcc_btsi_mask_1): Ditto.
5272 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5274 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5275 TYPE_CANONICAL for copied element type.
5277 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5280 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5281 Add m_CORE2 and m_GENERIC.
5282 * config/i386/predicates.md (bt_comparison_operator): New predicate.
5283 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5285 (*jcc_btdi_rex64): New instruction and split pattern.
5287 (*jcc_btsi_1): Ditto.
5288 (*btsq): Fix Intel asm dialect operand order.
5292 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
5295 * simplify-rtx.c (simplify_subreg): Add check for shift count
5298 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
5300 * doc/md.texi: Synchronize with later constraints.md change.
5301 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5302 with a C implementation.
5303 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5305 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5306 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5307 when moving to and from MD_REGNUM.
5308 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5309 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5310 Handle byte and halfword moves.
5311 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5313 * config/mips/constraints.md (h): Turn into NO_REGS.
5314 (l, x): Update documentation.
5315 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5316 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5317 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5318 (HILO): New mode iterator.
5320 (any_div): New code iterator.
5321 (u): Extend code attribute to div and udiv.
5322 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5323 d_operand in the splitters. Remove redundant CONST_INT checks.
5324 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5325 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5326 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
5327 accordingly, using normal moves instead of unspecs to move LO into
5328 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
5329 (<u>mulsidi3): Handle expansion in C code.
5330 (<u>mulsidi3_32bit_internal): Rename to...
5331 (<u>mulsidi3_32bit): ...this.
5332 (<u>mulsidi3_32bit_r4000): Fix insn separator.
5333 (*<u>mulsidi3_64bit): Rename to...
5334 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
5335 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
5336 to set LO and HI to the multiplication result. Use a normal move
5337 for MFLO and an unspec for MFHI.
5338 (*<u>mulsidi3_64bit_parts): Replace with...
5339 (<u>mulsidi3_64bit_hilo): ...this new instruction.
5340 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5341 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5342 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
5343 instead of HI. Split the instruction into a separate multiplication
5344 and MFHI if !TARGET_FIX_R4000.
5345 (<su>muldi3_highpart): Likewise.
5346 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5347 and the "=h" clobber.
5348 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5349 (<u>mulditi3): New expander.
5350 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5351 (madsi): Remove "=h" clobber.
5352 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5353 Force the modulus result to be a GPR and split the instruction into
5354 a division followed by an MFHI after reload.
5355 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5356 (*lea_high64): Use d_operand in the define_peephole2. Likewise
5357 the MIPS16 HIGH define_split.
5358 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5359 of acc<->gpr moves to "multi".
5360 (*movdi_64bit): Replace the single "x" alternative with
5361 alternatives for moving into and out of "a".
5362 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
5363 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5364 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5365 Use d_operand in the splitters. Remove redundant CONST_INT checks.
5366 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
5367 (movti): New expander.
5368 (*movti, *movti_mips16): New insns.
5369 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5370 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5371 (mthi<GPR:mode>_<HILO:mode>): Likewise.
5372 * config/mips/predicates.md (fpr_operand): Delete.
5373 (d_operand): New predicate.
5375 2008-06-09 Michael Meissner <michael.meissner@amd.com>
5377 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5378 failure on some Bourne shells.
5379 (x86_64-*-*): Ditto.
5381 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
5383 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5385 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5387 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5388 (sparc-sun-solaris2*): Likewise.
5390 2008-06-09 Arnaud Charlet <charlet@adacore.com
5392 * doc/install.texi: Update requirements to build the Ada compiler.
5394 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
5396 * df-scan.c (struct df_scan_problem_data): Remove the
5397 mw_link_pool alloc pool.
5398 (df_scan_free_internal): Don't free it.
5399 (df_scan_alloc): Don't allocate it.
5400 * df.h (struct df_link): Update comment.
5402 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
5404 * except.h: Correct checks for when SJLJ exceptions must be used.
5406 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5408 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5411 2008-06-08 Joseph Myers <joseph@codesourcery.com>
5413 PR tree-optimization/36218
5414 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5415 configure for the build system.
5416 (BUILD_LDFLAGS): Define.
5417 * configure: Regenerate.
5418 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5420 2008-07-08 Anatoly Sokolov <aesok@post.ru>
5423 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5424 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5425 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5427 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
5429 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5431 2008-06-07 Joseph Myers <joseph@codesourcery.com>
5433 * config.gcc (Obsolete configurations): Remove list of
5435 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5436 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
5437 targets matched by those patterns.
5438 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5439 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5440 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5441 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5442 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5443 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5444 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5445 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5446 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5447 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5448 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5449 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5450 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5451 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5452 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5453 Make code for Solaris 7 and greater unconditional for Solaris.
5454 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5455 Remove --with-* handling.
5456 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5457 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5458 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5459 LINK_OS_WINDISS_SPEC): Remove.
5460 * config/rs6000/sysv4.opt (mwindiss): Remove.
5461 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5462 * configure: Regenerate.
5463 * doc/cpp.texi: Don't mention BeOS.
5464 * doc/extend.texi (interrupt): Don't mention MS1.
5465 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5466 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5467 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5468 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5469 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5471 * doc/invoke.texi (MT Options): Remove.
5472 (-mwindiss): Remove.
5473 (CRIS Options): Remove cris-axis-aout references.
5474 (HPPA Options): Don't mention hppa1.1-*-pro.
5475 * doc/md.texi: (MorphoTech family): Remove.
5476 * libgcc2.c: Don't handle UWIN.
5477 * config/alpha/t-unicosmk: Remove.
5478 * config/alpha/unicosmk.h: Remove.
5479 * config/arm/kaos-arm.h: Remove.
5480 * config/arm/kaos-strongarm.h: Remove.
5481 * config/arm/strongarm-coff.h: Remove.
5482 * config/arm/strongarm-elf.h: Remove.
5483 * config/arm/strongarm-pe.h: Remove.
5484 * config/arm/t-strongarm-pe: Remove.
5485 * config/arm/t-xscale-coff: Remove.
5486 * config/arm/t-xscale-elf: Remove.
5487 * config/arm/xscale-coff.h: Remove.
5488 * config/arm/xscale-elf.h: Remove.
5489 * config/chorus.h: Remove.
5490 * config/cris/aout.h: Remove.
5491 * config/cris/aout.opt: Remove.
5492 * config/cris/t-aout: Remove.
5493 * config/i386/beos-elf.h: Remove.
5494 * config/i386/kaos-i386.h: Remove.
5495 * config/i386/ptx4-i.h: Remove.
5496 * config/i386/sco5.h: Remove.
5497 * config/i386/sco5.opt: Remove.
5498 * config/i386/sysv4-cpp.h: Remove.
5499 * config/i386/sysv5.h: Remove.
5500 * config/i386/t-beos: Remove.
5501 * config/i386/t-sco5: Remove.
5502 * config/i386/t-uwin: Remove.
5503 * config/i386/uwin.asm: Remove.
5504 * config/i386/uwin.h: Remove.
5505 * config/kaos.h: Remove.
5506 * config/mips/windiss.h: Remove.
5507 * config/mt: Remove directory.
5508 * config/pa/pa-osf.h: Remove.
5509 * config/pa/pa-pro-end.h: Remove.
5510 * config/pa/t-pro: Remove.
5511 * config/ptx4.h: Remove.
5512 * config/rs6000/beos.h: Remove.
5513 * config/rs6000/kaos-ppc.h: Remove.
5514 * config/rs6000/t-beos: Remove.
5515 * config/rs6000/windiss.h: Remove.
5516 * config/sh/kaos-sh.h: Remove.
5517 * config/sol2-6.h: Remove.
5518 * config/sparc/sol26-sld.h: Remove.
5519 * config/sparc/sysv4-only.h: Remove.
5520 * config/vax/bsd.h: Remove.
5521 * config/vax/t-memfuncs: Remove.
5522 * config/vax/ultrix.h: Remove.
5523 * config/vax/vaxv.h: Remove.
5524 * config/windiss.h: Remove.
5526 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5528 PR rtl-optimization/36438
5529 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5530 for vector shifts with constant scalar shift operands.
5532 2008-06-06 Sandip Matte <sandip@rmicorp.com>
5534 * doc/invoke.texi: Document -march=xlr.
5535 * config/mips/xlr.md: New file.
5536 * config/mips/mips.md: Include it.
5538 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5539 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5540 (mips_rtx_cost_data): Likewise.
5542 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
5544 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5545 PRE_INC and PRE_DEC cases.
5547 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5549 PR rtl-optimization/36419
5550 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5551 the emitting jump insn.
5554 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5555 is not bool, boolify the whole *expr_p and convert to the desired type.
5557 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5559 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5560 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5561 Add omp_private_outer_ref hook, add another argument to
5562 omp_clause_default_ctor hook.
5563 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5564 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5565 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5566 hook_tree_tree_tree_tree_null.
5567 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5568 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5569 * hooks.c (hook_tree_tree_tree_tree_null): New function.
5570 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5571 * tree.def (OMP_TASK): New tree code.
5572 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5573 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5574 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5575 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5576 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5577 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5578 OMP_CLAUSE_COLLAPSE_EXPR): Define.
5579 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5580 (OMP_DIRECTIVE_P): Add OMP_TASK.
5581 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5582 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5583 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5584 and OMP_CLAUSE_UNTIED entries.
5585 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
5587 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5588 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5589 * tree-pretty-print.c (dump_omp_clause): Handle
5590 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5591 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5592 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5593 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
5594 warning about unsigned iterators. Change decl/init/cond/incr
5595 arguments to TREE_VECs, check arguments for all collapsed loops.
5596 (c_finish_omp_taskwait): New function.
5597 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5599 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
5600 default_function_array_conversion on init. Add par_clauses argument.
5601 If decl is present in parallel's lastprivate clause, change it to
5602 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5603 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
5604 collapse count in clauses.
5605 (c_parser_omp_for, c_parser_omp_parallel): Adjust
5606 c_parser_omp_for_loop callers.
5607 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5608 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5609 (c_parser_omp_clause_name): Handle collapse and untied clauses.
5610 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5612 (c_parser_omp_clause_schedule): Handle schedule(auto).
5613 Include correct location in the error message.
5614 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5615 and PRAGMA_OMP_CLAUSE_UNTIED.
5616 (OMP_TASK_CLAUSE_MASK): Define.
5617 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5618 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5619 * tree-nested.c (convert_nonlocal_omp_clauses,
5620 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5621 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5622 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5623 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5625 (conver_nonlocal_reference, convert_local_reference,
5626 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
5627 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5628 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5629 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5630 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5631 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5632 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5633 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5634 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5636 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5637 * c-common.h (c_finish_omp_taskwait): New prototype.
5638 * gimple-low.c (lower_stmt): Handle OMP_TASK.
5639 * tree-parloops.c (create_parallel_loop): Create 1 entry
5640 vectors for OMP_FOR_{INIT,COND,INCR}.
5641 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5642 (make_edges): Handle OMP_TASK.
5643 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5644 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5645 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5646 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5647 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5648 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5649 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5650 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5651 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5652 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5653 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5654 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5655 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5656 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5657 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5658 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5659 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5660 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5661 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5662 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5663 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5664 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5665 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5666 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5667 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5668 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5669 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
5670 original iterator is present in lastprivate clause or if
5671 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
5672 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5673 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5674 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5675 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5676 if it is set, lookup var in outer contexts too. Handle
5677 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
5678 to be implicitly determined firstprivate for task regions.
5679 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5680 if it is set, lookup var in outer contexts too. Set
5681 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5682 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5683 OMP_CLAUSE_UNTIED. Take region_type as last argument
5684 instead of in_parallel and in_combined_parallel.
5685 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5687 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5688 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
5689 (new_omp_context): Set default_kind to
5690 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5691 (omp_region_type): New enum.
5692 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5693 fields, add region_type.
5694 (new_omp_context): Take region_type as argument instead of is_parallel
5695 and is_combined_parallel.
5696 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5697 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5698 ctx->is_combined_parallel checks.
5699 (gimplify_omp_task): New function.
5700 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5702 * omp-low.c (extract_omp_for_data): Use schedule(static)
5703 for schedule(auto). Handle pointer and unsigned iterators.
5704 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
5705 Add loops argument. Extract data for collapsed OMP_FOR loops.
5706 (expand_parallel_call): Assert sched_kind isn't auto,
5707 map runtime schedule to index 3.
5708 (struct omp_for_data_loop): New type.
5709 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5710 Add loop, loops, collapse and iter_type fields.
5711 (workshare_safe_to_combine_p): Disallow combined for if
5712 iter_type is unsigned long long. Don't combine collapse > 1 loops
5713 unless all bounds and steps are constant. Adjust extract_omp_for_data
5715 (expand_omp_for_generic): Handle pointer, unsigned and long long
5716 iterators. Handle collapsed OMP_FOR loops. Adjust
5717 for struct omp_for_data changes. If libgomp function doesn't return
5718 boolean_type_node, add comparison of the return value with 0.
5719 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5720 pointer, unsigned and long long iterators. Adjust for struct
5721 omp_for_data changes.
5722 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5723 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
5724 unsigned long long. Allocate loops array, pass it to
5725 extract_omp_for_data. For collapse > 1 loops use always
5726 expand_omp_for_generic.
5727 (omp_context): Add sfield_map and srecord_type fields.
5728 (is_task_ctx, lookup_sfield): New functions.
5729 (use_pointer_for_field): Use is_task_ctx helper. Change first
5730 argument's type from const_tree to tree. Clarify comment.
5731 In OMP_TASK disallow copy-in/out sharing.
5732 (build_sender_ref): Call lookup_sfield instead of lookup_field.
5733 (install_var_field): Add mask argument. Populate both record_type
5734 and srecord_type if needed.
5735 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5737 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5738 and DECL_FIELD_OFFSET.
5739 (scan_sharing_clauses): Adjust install_var_field callers. For
5740 firstprivate clauses on explicit tasks allocate the var by value in
5741 record_type unconditionally, rather than by reference.
5742 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5743 Use is_taskreg_ctx instead of is_parallel_ctx.
5744 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5745 (create_omp_child_function_name): Add task_copy argument, use
5746 *_omp_cpyfn* names if it is true.
5747 (create_omp_child_function): Add task_copy argument, if true create
5748 *_omp_cpyfn* helper function.
5749 (scan_omp_parallel): Adjust create_omp_child_function callers.
5750 Rename parallel_nesting_level to taskreg_nesting_level.
5751 (scan_omp_task): New function.
5752 (lower_rec_input_clauses): Don't run constructors for firstprivate
5753 explicit task vars which are initialized by *_omp_cpyfn*.
5754 Pass outer var ref to omp_clause_default_ctor hook if
5755 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5756 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5757 OMP_CLAUSE_REDUCTION_INIT.
5758 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5759 avoid duplicate setting of fields. Handle
5760 OMP_CLAUSE_PRIVATE_OUTER_REF.
5761 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
5762 copy-out if TREE_READONLY, only copy-in.
5763 (expand_task_copyfn): New function.
5764 (expand_task_call): New function.
5765 (struct omp_taskcopy_context): New type.
5766 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5768 (lower_omp_parallel): Rename to...
5769 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5770 Call create_task_copyfn if srecord_type is needed. Adjust
5772 (task_shared_vars): New variable.
5773 (check_omp_nesting_restrictions): Warn if work-sharing,
5774 barrier, master or ordered region is closely nested inside OMP_TASK.
5775 Add warnings for barrier if closely nested inside of work-sharing,
5776 ordered, or master region.
5777 (scan_omp_1): Call check_omp_nesting_restrictions even for
5778 GOMP_barrier calls. Rename parallel_nesting_level to
5779 taskreg_nesting_level. Handle OMP_TASK.
5780 (lower_lastprivate_clauses): Even if some lastprivate is found on a
5781 work-sharing construct, continue looking for them on parent parallel
5783 (lower_omp_for_lastprivate): Add lastprivate clauses
5784 to the beginning of dlist rather than end. Adjust for struct
5785 omp_for_data changes.
5786 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5787 not after it. Handle collapsed OMP_FOR loops, adjust for
5788 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5789 (get_ws_args_for): Adjust extract_omp_for_data caller.
5790 (scan_omp_for): Handle collapsed OMP_FOR
5791 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5792 (lower_omp_single_simple): If libgomp function doesn't return
5793 boolean_type_node, add comparison of the return value with 0.
5794 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5795 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
5796 (parallel_nesting_level): Rename to...
5797 (taskreg_nesting_level): ... this.
5798 (is_taskreg_ctx): New function.
5799 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5801 (execute_lower_omp): Rename parallel_nesting_level to
5802 taskreg_nesting_level.
5803 (expand_omp_parallel): Rename to...
5804 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
5805 Call omp_task_call for OMP_TASK regions.
5806 (expand_omp): Adjust caller, handle OMP_TASK.
5807 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5809 * bitmap.c (bitmap_default_obstack_depth): New variable.
5810 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5811 if argument is NULL and bitmap_default_obstack is already initialized.
5812 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5814 * matrix-reorg.c (matrix_reorg): Likewise.
5816 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5818 * config/i386/i386.md (*indirect_jump): Macroize using P
5819 mode iterator. Remove !TARGET_64BIT from insn constraints.
5820 (*tablejump_1): Ditto.
5821 (*indirect_jump_rex64): Remove insn pattern.
5822 (*tablejump_1_rex64): Ditto.
5823 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5824 and eh_return_si insn patterns.
5826 2008-06-06 Richard Guenther <rguenther@suse.de>
5828 * tree-ssa-structalias.c (merge_smts_into): Remove.
5829 (find_what_p_points_to): Do not bother to compute the
5830 points-to set for pt_anything pointers.
5831 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5832 for pt_anything pointers is ok.
5834 2008-06-06 Jan Hubicka <jh@suse.cz>
5836 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5838 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5840 * cgraph.c: Fix typos in comments.
5841 (cgraph_availability_names): Fix string typo.
5842 * fold-const.c: Fix typos in comments.
5843 (fold_binary): Fix typo in warning.
5844 * genautomata.c: Fix typos in comments.
5845 (check_presence_pattern_sets): Fix typo in local variable.
5846 (output_description): Fix typo in output.
5847 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5848 * hwint.h: Likewise.
5849 * matrix-reorg.c (check_allocation_function): Likewise.
5850 * omega.c (smooth_weird_equations): Likewise.
5851 * auto-inc-dec.c: Fix typos in comments.
5852 * bb-reorder.c: Likewise.
5853 * builtins.c: Likewise.
5854 * c-common.c: Likewise.
5855 * c-cppbuiltin.c: Likewise.
5856 * c-parser.c: Likewise.
5857 * c-pretty-print.c: Likewise.
5858 * cfgcleanup.c: Likewise.
5859 * cfgexpand.c: Likewise.
5860 * cfghooks.c: Likewise.
5861 * cfglayout.c: Likewise.
5862 * cfgloopmanip.c: Likewise.
5863 * cgraphunit.c: Likewise.
5864 * coverage.c: Likewise.
5865 * dbxout.c: Likewise.
5866 * df-byte-scan.c: Likewise.
5867 * df-core.c: Likewise.
5868 * df-problems.c: Likewise.
5869 * df-scan.c: Likewise.
5871 * dominance.c: Likewise.
5872 * domwalk.c: Likewise.
5874 * dwarf2out.c: Likewise.
5875 * emit-rtl.c: Likewise.
5876 * et-forest.c: Likewise.
5877 * function.c: Likewise.
5878 * function.h: Likewise.
5880 * gcov-io.c: Likewise.
5883 * genattrtab.c: Likewise.
5884 * ggc-page.c: Likewise.
5885 * gimplify.c: Likewise.
5886 * gthr-lynx.h: Likewise.
5887 * haifa-sched.c: Likewise.
5888 * ipa-cp.c: Likewise.
5889 * ipa-inline.c: Likewise.
5890 * ipa-prop.h: Likewise.
5891 * ipa-pure-const.c: Likewise.
5892 * ipa-struct-reorg.c: Likewise.
5893 * ipa-struct-reorg.h: Likewise.
5894 * ipa-type-escape.c: Likewise.
5896 * loop-doloop.c: Likewise.
5897 * mips-tfile.c: Likewise.
5898 * mkmap-flat.awk: Likewise.
5899 * mkmap-symver.awk: Likewise.
5900 * modulo-sched.c: Likewise.
5901 * omp-low.c: Likewise.
5902 * optabs.c: Likewise.
5903 * optabs.h: Likewise.
5905 * passes.c: Likewise.
5906 * postreload-gcse.c: Likewise.
5907 * postreload.c: Likewise.
5908 * predict.c: Likewise.
5909 * pretty-print.h: Likewise.
5910 * profile.c: Likewise.
5911 * protoize.c: Likewise.
5912 * ra-conflict.c: Likewise.
5914 * recog.c: Likewise.
5915 * regclass.c: Likewise.
5917 * reload.c: Likewise.
5918 * rtl-error.c: Likewise.
5919 * rtlanal.c: Likewise.
5921 * sched-rgn.c: Likewise.
5924 * target.h: Likewise.
5925 * tree-dfa.c: Likewise.
5926 * tree-eh.c: Likewise.
5927 * tree-flow-inline.h: Likewise.
5928 * tree-inline.c: Likewise.
5929 * tree-into-ssa.c: Likewise.
5930 * tree-loop-distribution.c: Likewise.
5931 * tree-nested.c: Likewise.
5932 * tree-parloops.c: Likewise.
5933 * tree-pass.h: Likewise.
5934 * tree-pretty-print.c: Likewise.
5935 * tree-profile.c: Likewise.
5936 * tree-scalar-evolution.c: Likewise.
5937 * tree-sra.c: Likewise.
5938 * tree-ssa-alias-warnings.c: Likewise.
5939 * tree-ssa-ccp.c: Likewise.
5940 * tree-ssa-coalesce.c: Likewise.
5941 * tree-ssa-dom.c: Likewise.
5942 * tree-ssa-dse.c: Likewise.
5943 * tree-ssa-forwprop.c: Likewise.
5944 * tree-ssa-live.c: Likewise.
5945 * tree-ssa-live.h: Likewise.
5946 * tree-ssa-loop-im.c: Likewise.
5947 * tree-ssa-loop-ivopts.c: Likewise.
5948 * tree-ssa-loop-niter.c: Likewise.
5949 * tree-ssa-loop-prefetch.c: Likewise.
5950 * tree-ssa-phiopt.c: Likewise.
5951 * tree-ssa-phiprop.c: Likewise.
5952 * tree-ssa-sccvn.c: Likewise.
5953 * tree-ssa-ter.c: Likewise.
5954 * tree-ssa-threadupdate.c: Likewise.
5955 * tree-ssa.c: Likewise.
5956 * tree-vect-analyze.c: Likewise.
5957 * tree-vect-transform.c: Likewise.
5958 * tree-vectorizer.c: Likewise.
5959 * tree-vn.c: Likewise.
5960 * tree-vrp.c: Likewise.
5962 * tree.def: Likewise.
5964 * unwind-dw2-fde.c: Likewise.
5965 * unwind.inc: Likewise.
5966 * value-prof.c: Likewise.
5967 * vmsdbgout.c: Likewise.
5969 2008-06-05 David Edelsohn <edelsohn@gnu.org>
5971 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5972 always place FP constants in the TOC for TARGET_POWERPC64.
5973 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5975 2008-06-05 Joseph Myers <joseph@codesourcery.com>
5977 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5978 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5979 enable for TARGET_E500_DOUBLE.
5980 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5981 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5982 floating-point modes like integer modes for E500 double.
5983 (rs6000_legitimate_offset_address_p): Likewise.
5984 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
5985 addressing for DDmode for E500 double.
5986 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5987 modes as using 64-bits of registers for E500 double.
5988 (spe_build_register_parallel): Do not handle DDmode or TDmode.
5989 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5990 specially for E500 double.
5991 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5992 TDmode for E500 double.
5993 (rs6000_gimplify_va_arg): Only handle SDmode in registers
5994 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5995 (rs6000_split_multireg_move): Do not handle TDmode specially for
5997 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5998 using 64-bit registers for E500 double.
5999 (emit_frame_save): Do not handle DDmode specially for E500 double.
6000 (gen_frame_mem_offset): Likewise.
6001 (rs6000_function_value): Do not call spe_build_register_parallel
6002 for DDmode or TDmode.
6003 (rs6000_libcall_value): Likewise.
6004 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
6005 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
6008 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
6010 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
6013 2008-06-04 Junjie Gu <jgu@tensilica.com>
6015 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
6016 comparison for frame pointers.
6018 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6021 * config/avr/avr.h (PUSH_ROUNDING): Remove.
6023 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6026 * builtins.c (expand_builtin_signbit): Don't take lowpart when
6027 register is already smaller or equal to required mode.
6029 2008-06-04 Xinliang David Li <davidxl@google.com>
6031 * tree-call-cdce.c: New file.
6032 (cond_dead_built_in_calls): New static variable.
6033 (input_domain): New struct.
6034 (check_pow): New function.
6035 (check_builtin_call): Ditto.
6036 (check_target_format): Ditto.
6037 (is_call_dce_candidate): Ditto.
6038 (gen_one_condition): Ditto.
6039 (gen_conditions_for_domain): Ditto.
6040 (get_domain): Ditto.
6041 (gen_conditions_for_pow_cst_base): Ditto.
6042 (gen_conditions_for_pow_int_base): Ditto.
6043 (gen_conditions_for_pow): Ditto.
6044 (get_no_error_domain): Ditto.
6045 (gen_shrink_wrap_conditions): Ditto.
6046 (shrink_wrap_one_built_in_call): Ditto.
6047 (shink_wrap_conditional_dead_built_in_calls): Ditto.
6048 (tree_call_cdce): Ditto.
6049 (gate_call_cdce): Ditto.
6050 (pass_call_cdce): New gimple pass.
6051 * passes.c: (init_optimization_passes): New pass.
6052 * tree-pass.h: New pass declaration.
6053 * opts.c (decode_options): New flag setting.
6054 * common.opt: Add -ftree-builtin-call-dce flag.
6055 * Makefile.in: Add new source file.
6056 * tempvar.def: New tv_id.
6057 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
6059 2008-06-04 Richard Guenther <rguenther@suse.de>
6061 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
6062 (is_call_clobbered): Always check var_ann->call_clobbered.
6063 (mark_call_clobbered): Always set var_ann->call_clobbered.
6064 (clear_call_clobbered): Always clear var_ann->call_clobbered.
6065 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
6066 (reset_alias_info): Clear call clobbering info on MTAGs and
6068 (set_pt_anything): Set pt_global_mem.
6069 (create_tag_raw): Adjust comment.
6070 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
6072 2008-06-04 Joseph Myers <joseph@codesourcery.com>
6073 Maxim Kuvyrkov <maxim@codesourcery.com>
6075 * config/m68k/m68k.opt (mxgot): New option.
6076 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6077 (m68k_output_addr_const_extra): New.
6078 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6079 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6080 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6081 * doc/invoke.texi (M680x0 Options): Document -mxgot.
6083 2008-06-04 Richard Guenther <rguenther@suse.de>
6085 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6086 negative or non-representable offsets.
6088 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
6090 * config/i386/i386.c (ix86_gen_leave): New.
6091 (ix86_gen_pop1): Likewise.
6092 (ix86_gen_add3): Likewise.
6093 (ix86_gen_sub3): Likewise.
6094 (ix86_gen_sub3_carry): Likewise.
6095 (ix86_gen_one_cmpl2): Likewise.
6096 (ix86_gen_monitor): Likewise.
6097 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6098 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6099 ix86_gen_one_cmpl2 and ix86_gen_monitor.
6100 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6101 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6102 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6103 (ix86_expand_epilogue): Updated.
6104 (print_operand): Handle integer register operand for 'z'.
6105 (ix86_expand_strlensi_unroll_1): Likewise.
6106 (ix86_expand_strlen): Likewise.
6107 (ix86_expand_builtin): Likewise.
6108 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6109 mov{q}/mov{l} and add{q}/add{l}.
6111 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6113 * config/i386/i386.md (P): New mode iterator.
6114 (SFmode push_operand splitter): Macroize DImode and SImode pushes
6115 using P mode iterator.
6116 (DFmode push_operand splitter): Ditto.
6117 (XFmode push_operand splitter): Ditto.
6118 (DFmode float_extend SFmode push_operand splitter): Ditto.
6119 (XFmode float_extend SFmode push_operand splitter): Do not generate
6120 SImode pushes for 64bit target. Macroize Dimode and SImode
6121 pushes using P mode iterator.
6122 (XFmode float_extend DFmode push_operand splitter): Ditto.
6124 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6126 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
6127 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
6128 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6130 (ix86_call_abi_override): Remove check for call_used_regs.
6132 2008-06-03 Richard Guenther <rguenther@suse.de>
6134 * tree-ssa-structalias.c (find_func_aliases): Add constraints
6135 for the lhs of calls if the return type contains pointers.
6137 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6139 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6140 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
6141 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
6142 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6143 of cfun and DEFAULT_ABI to deceide abi mode.
6145 (REG_PARM_STACK_SPACE): Removed.
6146 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6147 (STACK_BOUNDARY): Use default target to deceide stack boundary.
6148 * config/i386/i386-protos.h (ix86_cfun_abi): New.
6149 (ix86_function_abi): Likewise.
6150 (ix86_function_type_abi): Likewise.
6151 (ix86_call_abi_override): Likewise.
6152 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6153 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6154 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6155 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6157 (X86_64_REGPARM_MAX): New.
6158 (X86_64_SSE_REGPARM_MAX): New.
6159 (X64_REGPARM_MAX): New.
6160 (X64_SSE_REGPARM_MAX): New.
6161 (X86_32_REGPARM_MAX): New.
6162 (X86_32_SSE_REGPARM_MAX): New.
6163 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6164 (ix86_function_regparm): Handle user calling abi.
6165 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6166 by DEFAULT_ABI versus SYSV_ABI check.
6167 (ix86_reg_parm_stack_space): New.
6168 (ix86_function_type_abi): New.
6169 (ix86_call_abi_override): New.
6170 (ix86_function_abi): New.
6171 (ix86_cfun_abi): New.
6172 (init_cumulative_args): Call abi specific initialization.
6173 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6174 (function_arg_64): Extend SSE_REGPARM_MAX check.
6175 (function_arg (): Remove TARGET_64BIT_MS_ABI.
6176 (ix86_pass_by_reference): Likewise.
6177 (ix86_function_value_regno_p): Likewise.
6178 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6179 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6180 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6181 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6182 (setup_incoming_varargs_64): Adjust regparm for call abi.
6183 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6184 (ix86_va_start): Likewise.
6185 (ix86_gimplify_va_arg): Likewise.
6186 (ix86_expand_prologue): Likewise.
6187 (output_pic_addr_const): Likewise.
6188 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6189 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6190 (x86_output_mi_thunk): Likewise.
6191 (x86_function_profiler): Likewise.
6192 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6193 (SYSV_ABI, MS_ABI): New constants.
6195 (init_regs): Add prototype of function in regclass.c file.
6196 (OVERRIDE_ABI_FORMAT): New.
6197 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6198 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6199 (OUTGOING_REG_PARM_STACK_SPACE): New.
6200 (ix86_reg_parm_stack_space): New prototype.
6201 (CUMULATIVE_ARGS): Add call_abi member.
6202 (machine_function): Add call_abi member.
6203 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6204 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6206 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
6209 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6210 (avr_builtin_setjmp_frame_value): New function.
6211 * config/avr/avr.md (nonlocal_goto_receiver): Define.
6212 (nonlocal_goto): Define.
6214 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
6216 * config/mips/mips.c (mips_emit_loadgp): Return early if
6217 there is nothing do to, otherwise emit a blockage if
6218 !TARGET_EXPLICIT_RELOCS || crtl->profile.
6219 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6221 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6223 * configure.ac: Drop unneeded backslash ending up in config.in.
6224 * acinclude.m4: Likewise.
6225 * config.in: Regenerate.
6227 2008-05-26 Jan Hubicka <jh@suse.cz>
6229 * predict.c (maybe_hot_frequency_p): Break out of...
6230 (maybe_hot_bb_p): ... here.
6231 (maybe_hot_edge_p): New.
6232 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6233 * basic-block.h (maybe_hot_edge_p): Declare.
6235 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6237 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6238 (*cmpfp_<mode>_cc): Ditto.
6239 (*fp_jcc_8<mode>_387): Ditto.
6240 (*fop_<MODEF:mode>_2_i387): Ditto.
6241 (*fop_<MODEF:mode>_3_i387): Ditto.
6242 (*fop_xf_2_i387): Ditto.
6243 (*fop_xf_3_i387): Ditto.
6245 2008-06-02 Tomas Bily <tbily@suse.cz>
6247 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6249 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6251 * config/mips/mips.c (mips_valid_offset_p): New function.
6252 (mips_valid_lo_sum_p): Likewise.
6253 (mips_classify_address): Use them.
6254 (mips_force_address): New function.
6255 (mips_legitimize_address): Use it.
6256 * config/mips/mips.md (MOVE128): New mode iterator.
6257 (movtf): Require TARGET_64BIT. Remove empty strings.
6258 (*movtf_internal): Rename to...
6259 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
6260 of "R" and use {,fp}{load,store} attributes instead of "multi".
6261 Use a separate define_split.
6262 (*movtf_mips16): New pattern.
6264 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6266 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6267 * config/mips/mips.c (mips_expand_before_return): New function.
6268 (mips_expand_epilogue): Call it.
6269 * config/mips/mips.md (return): Turn into a define_expand.
6270 (*return): New insn.
6272 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6274 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6275 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6276 functions. Do not emit uses and clobbers of CONCATs; individually
6277 use and clobber their operands.
6278 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6279 gen_clobber, emit_use and gen_use.
6280 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6281 (expand_builtin_return): Likewise.
6282 * cfgbuild.c (count_basic_blocks): Likewise.
6283 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6284 * explow.c (emit_stack_restore): Likewise.
6285 * expmed.c (extract_bit_field_1): Likewise.
6286 * expr.c (convert_move, emit_move_complex_parts): Likewise.
6287 (emit_move_multi_word, store_constructor): Likewise.
6288 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6289 (thread_prologue_and_epilogue_insns): Likewise.
6290 * lower-subreg.c (resolve_simple_move): Likewise.
6291 * optabs.c (widen_operand, expand_binop): Likewise.
6292 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6293 * reload.c (find_reloads): Likewise.
6294 * reload1.c (eliminate_regs_in_insn): Likewise.
6295 * stmt.c (expand_nl_goto_receiver): Likewise.
6296 * config/alpha/alpha.md (builtin_longjmp): Likewise.
6297 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6298 * config/arm/arm.c (arm_load_pic_register): Likewise.
6299 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6300 * config/arm/arm.md (untyped_return): Likewise.
6301 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6302 * config/avr/avr.c (expand_prologue): Likewise.
6303 * config/bfin/bfin.c (do_unlink): Likewise.
6304 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6305 * config/cris/cris.c (cris_expand_prologue): Likewise.
6306 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6307 (machopic_legitimize_pic_address): Likewise.
6308 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6309 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6310 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6311 (ix86_expand_convert_uns_didf_sse): Likewise.
6312 (ix86_expand_vector_init_general): Likewise.
6313 * config/ia64/ia64.md (eh_epilogue): Likewise.
6314 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6315 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6316 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6317 (config/iq2000/iq2000.c): Likewise.
6318 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6319 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6320 (builtin_longjmp): Likewise.
6321 * config/mn10300/mn10300.md (call, call_value): Likewise.
6322 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6323 * config/pdp11/pdp11.md (abshi2): Likewise.
6324 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6325 * config/s390/s390.c (s390_emit_prologue): Likewise.
6326 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6327 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6328 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6329 * config/sh/sh.c (prepare_move_operands): Likewise.
6330 (output_stack_adjust, sh_expand_epilogue): Likewise.
6331 (sh_set_return_address, sh_expand_t_scc): Likewise.
6332 * config/sparc/sparc.c (load_pic_register): Likewise.
6333 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6334 * config/spu/spu.c (spu_expand_epilogue): Likewise.
6335 * config/v850/v850.c (expand_epilogue): Likewise.
6337 2008-05-31 Anatoly Sokolov <aesok@post.ru>
6339 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6340 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6341 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6342 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6343 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6344 stack pointer register.
6345 (output_movhi): Remove code for interrupt specific writing to the
6346 stack pointer register.
6348 2008-05-31 Richard Guenther <rguenther@suse.de>
6350 PR tree-optimization/34244
6351 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6352 (tree_expr_nonzero_warnv_p): Likewise.
6353 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6354 ssa_name_nonnegative_p.
6355 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6356 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6357 not tree_expr_nonzero_warnv_p.
6359 PR tree-optimization/36262
6361 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
6363 PR tree-optimization/34244
6364 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6365 (record_numbers_of_iterations): New function.
6366 (execute_vrp): Cache the numbers of iterations of loops.
6367 * tree-scalar-evolution.c (scev_reset_except_niters):
6369 (scev_reset): Use scev_reset_except_niters.
6370 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6372 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
6374 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6375 __WORKAROUND_RETS when appropriate.
6377 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6379 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6380 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6382 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6383 *fop_df_comm_sse insn patterns using MODEF mode iterator.
6384 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6385 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6386 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6387 *fop_df_1_mixed insn patterns using MODEF mode iterator.
6388 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6389 *fop_df_1_sse insn patterns using MODEF mode iterator.
6390 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6391 *fop_df_1_i387 insn patterns using MODEF mode iterator.
6392 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6393 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6394 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6395 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6396 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6397 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6398 (*fop_xf_4_i387): Use <MODE> for mode attribute.
6399 (*fop_xf_5_i387): Ditto.
6400 (*fop_xf_6_i387): Ditto.
6402 2008-05-30 Richard Guenther <rguenther@suse.de>
6404 * builtins.c (build_string_literal): Avoid generating
6405 a non-gimple_val result.
6407 2008-05-30 DJ Delorie <dj@redhat.com>
6409 * exec-tool.in: Use an environment variable (private) instead of a
6410 file (shared) as a semaphore, so as to not break parallel builds.
6412 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6414 * optabs.c (maybe_encapsulate_block): Remove.
6415 (emit_libcall_block): Adjust accordingly.
6416 * optabs.h (maybe_encapsulate_block): Remove prototype.
6418 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6419 Don't use maybe_encapsulate_block.
6421 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6423 * config/rs6000/rs6000.c (rs6000_legitimize_address,
6424 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6425 rtx is a SYMBOL_REF before calling get_pool_constant.
6427 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
6429 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6431 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
6433 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6434 rather than OS names to choose INO_T_EQ definition.
6435 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6436 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6438 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
6441 * config/darwin-f.c: New.
6442 * config/t-darwin: Added rule to build darwin-f.o.
6443 * config.gcc: Defined new variable, fortran_target_objs.
6444 (*-*-darwin*): Set fortran_target_objs.
6445 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6446 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6447 * configure: Regenerated.
6449 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
6452 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6453 canonical type if needed.
6455 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
6457 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6459 2008-05-29 Richard Guenther <rguenther@suse.de>
6461 PR tree-optimization/36343
6462 PR tree-optimization/36346
6463 PR tree-optimization/36347
6464 * tree-flow.h (clobber_what_p_points_to): Declare.
6465 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6466 pointed-to variable is dereferenced is irrelevant to whether
6467 the pointer can access the pointed-to variable.
6468 (clobber_what_p_points_to): New function.
6469 * tree-ssa-alias.c (set_initial_properties): Use it.
6470 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6471 call clobber check for NMTs.
6473 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6475 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6476 for printing gcov_type.
6478 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6480 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6481 and the eh region information.
6482 * value-prof.c (gimple_move_stmt_histograms): New function.
6483 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6485 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
6487 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6489 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6491 * value-prof.c (tree_ic_transform): Print counts.
6492 * tree-profile.c (tree_gen_ic_func_profiler):
6493 Clear __gcov_indreict_call_callee variable to avoid misattribution
6496 2008-05-28 Rafael Espindola <espindola@google.com>
6498 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6501 2008-05-28 Richard Guenther <rguenther@suse.de>
6503 PR tree-optimization/36339
6504 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6505 and clobbering code out of the loop.
6507 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6509 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6512 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6513 s390_contiguous_bitmask_p, s390_symref_operand_p,
6514 s390_check_symref_alignment, s390_reload_larl_operand,
6515 s390_reload_symref_address): New functions.
6516 (s390_branch_condition_mnemonic): Support compare and branch
6518 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6519 and 'W' constraints.
6520 (s390_secondary_reload): Add secondary reloads for unaligned
6521 symbol refs or symbol refs to floating point or QI/TI mode
6523 (legitimate_address_p): Accept symbol references as addresses.
6524 (s390_expand_insv): Use rotate and insert selected bits
6525 instruction for insv when building for z10.
6526 (print_operand_address): Handle symbol ref addresses.
6527 (print_operand): Output modifier 'c' added for signed byte values.
6528 (s390_encode_section_info): Mark symbol refs with
6529 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6531 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6532 (length attribute): RRF, RRR have 4 byte length.
6533 (FPALL, INTALL): New mode iterators added.
6534 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6535 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6536 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6537 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6538 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6539 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6540 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6541 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6543 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6544 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6545 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6546 reload<INTALL:mode><P:mode>_toreg_z10,
6547 reload<FPALL:mode><P:mode>_tomem_z10,
6548 reload<FPALL:mode><P:mode>_toreg_z10,
6549 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6550 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6551 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6552 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6554 (movmem, clrmem, cmpmem): New splitters added.
6556 * config/s390/predicates.md (larl_operand): Use
6557 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6558 SYMBOL_REF_ALIGN1_P.
6559 (s390_signed_integer_comparison,
6560 s390_unsigned_integer_comparison): New predicates.
6562 * config/s390/s390-protos.h (s390_check_symref_alignment,
6563 s390_contiguous_bitmask_p, s390_reload_larl_operand,
6564 s390_reload_symref_address,
6565 s390_compare_and_branch_condition_mask): Prototypes added.
6567 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6568 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6569 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6571 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6573 * config/s390/s390.c (z10_cost): New cost function for z10.
6574 (s390_handle_arch_option, override_options): Support -march=z10 switch.
6575 (s390_issue_rate): Adjust issue rate for z10.
6576 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6577 (processor_flags): Add PF_Z10.
6578 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6579 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6580 * gcc/config.gcc: Add z10.
6582 2008-05-28 Richard Guenther <rguenther@suse.de>
6584 PR tree-optimization/36291
6585 * tree-flow. h (struct gimple_df): Remove var_anns member.
6586 * tree-flow-inline.h (gimple_var_anns): Remove.
6587 (var_ann): Simplify.
6588 * tree-dfa.c (create_var_ann): Simplify.
6589 (remove_referenced_var): Clear alias info from var_anns of globals.
6590 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6591 (delete_tree_ssa): Clear alias info from var_anns of globals.
6592 Do not free var_anns.
6593 (var_ann_eq): Remove.
6594 (var_ann_hash): Likewise.
6596 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
6598 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6599 and loongson2f entries.
6600 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6601 * config/mips/mips.h (processor_type): Add Loongson-2E
6602 and Loongson-2F entries.
6603 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6604 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6605 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6606 * doc/invoke.texi (MIPS Options): Document loongson2e
6607 and loongson2f processor names.
6609 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6613 * config/i386/i386.c (ix86_function_arg_boundary): Use
6614 alignment of canonical type.
6615 (ix86_expand_vector_move): Check unaligned memory access for
6618 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6620 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6621 Moved to the front of file.
6623 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
6624 H.J. Lu <hongjiu.lu@intel.com>
6626 * dwarf2out.c (current_fde): New.
6628 (lookup_cfa:): Likewise.
6629 (dwarf2out_end_epilogue): Likewise.
6630 (dwarf2out_note_section_used): Likewise.
6632 2008-05-27 Michael Matz <matz@suse.de>
6635 * c.opt (Wenum-compare): New warning option.
6636 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
6638 2008-05-27 Michael Matz <matz@suse.de>
6641 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6643 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6644 into memory as tail calls.
6646 2008-05-27 Richard Guenther <rguenther@suse.de>
6648 PR tree-optimization/36339
6649 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6650 pointers cause all addressable variables to be call clobbered.
6652 2008-05-27 Richard Guenther <rguenther@suse.de>
6654 PR tree-optimization/36245
6655 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6657 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6659 * config/s390/s390.md: Replace all occurences of the 'm'
6660 constraint with 'RT'.
6662 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6664 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6666 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6668 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6669 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6670 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6672 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6674 * reload.c: (find_reloads): Skip alternatives according to the
6675 "enabled" attribute. Constify the constraint variable.
6676 * recog.c (get_attr_enabled): Add default implementation.
6677 (extract_insn): Set the alternative_enabled_p array
6678 in the recog_data struct.
6679 (preprocess_constraints, constrain_operands): Skip
6680 alternatives according to the "enabled" attribute
6681 * recog.h (struct recog_data): New field alternative_enabled_p.
6682 (skip_alternative): New inline function.
6683 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6684 (record_reg_classes): Skip alternative according to the
6685 "enabled" attribute.
6687 * doc/md.texi: Add documention for the "enabled" attribute.
6689 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6691 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6692 * postreload.c (reload_cse_simplify_operands): Replace 'm'
6693 constraint with TARGET_MEM_CONSTRAINT.
6694 * recog.c (asm_operand_ok, preprocess_constraints,
6695 constrain_operands): Likewise.
6696 * regclass.c (record_reg_classes): Likewise.
6697 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6698 * reload1.c (maybe_fix_stack_asms): Likewise.
6699 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6700 * recog.h: Adjust comment.
6701 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6702 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6703 * doc/md.texi: Add a note to description of 'm' constraint.
6704 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6706 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6708 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6709 that the bitfield is of integral type before testing its precision.
6711 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6712 Sa Liu <saliu@de.ibm.com>
6714 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6715 __modti3, __udivti3, __umodti3 and __udivmodti4.
6716 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6717 that implement TImode mul and div functions.
6718 * config/spu/multi3.c: New. Implement __multi3.
6719 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6720 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6723 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
6725 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6726 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6727 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6728 tls_sysv_suffix): New mode and mode attribute iterators.
6729 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6730 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6731 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6732 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6733 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6736 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6738 PR tree-optimization/36329
6739 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6740 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6741 * cgraphbuild.c (initialize_inline_failed): Use the latter
6742 macro in lieu of the former.
6743 * ipa-inline.c (cgraph_mark_inline): Likewise.
6744 (cgraph_decide_inlining_of_small_function): Likewise.
6745 (cgraph_decide_inlining): Likewise.
6746 (cgraph_decide_inlining_incrementally): Likewise.
6748 2008-05-26 Tristan Gingold <gingold@adacore.com>
6749 Anatoly Sokolov <aesok@post.ru>
6751 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6752 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6753 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6754 optimization for 'avr6' architecture.
6756 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
6759 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6761 2008-05-26 Richard Guenther <rguenther@suse.de>
6763 * tree-ssa-sccvn.c (expr_has_constants): Declare.
6764 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6766 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
6769 * caller-save.c (insert_restore): Verify alignment of spill space.
6770 (insert_save): Likewise.
6771 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6772 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6773 (STACK_SLOT_ALIGNMENT): Likewise.
6774 * function.c (LOCAL_ALIGNMENT): Removed.
6775 (get_stack_local_alignment): New.
6776 (assign_stack_local): Use it. Set alignment on stack slot.
6777 (assign_stack_temp_for_type): Use get_stack_local_alignment.
6778 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6779 (STACK_SLOT_ALIGNMENT): New.
6780 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6781 stack slot in XFmode.
6783 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6785 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6788 * config/i386/i386.md (allocate_stack_worker_64): Make sure
6789 argument operand in rax isn't removed.
6791 2008-05-26 Richard Guenther <rguenther@suse.de>
6794 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6795 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
6797 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6800 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6802 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
6804 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6805 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6807 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6809 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6810 build a trampoline if we don't want one.
6811 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6812 return zero for nested functions if we don't want a trampoline.
6814 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6816 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6818 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
6821 * c.opt: Removed undocumented option '-lang-fortran'.
6822 * c-common.h: Removed global variable 'lang_fortran'.
6823 * c-opts.c (c_common_handle_option): Removed code to handle
6824 option '-lang-fortran'. Updated includes.
6825 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6826 definition of '__GFORTRAN__'.
6827 (define__GNUC__): Reimplemented to use BASEVER and
6828 cpp_define_formatted.
6829 (builtin_define_with_value_n): Removed.
6830 * c-incpath.h: Renamed to ...
6831 * incpath.h: ... this.
6832 * c-incpath.c: Renamed to ...
6833 * incpath.c: ... this. Updated includes.
6834 * fix-header.c: Updated includes.
6835 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6836 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6837 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6839 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6841 * tree.h: Update the table of flags used on tree nodes.
6842 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6843 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6844 (FORCED_LABEL): Add access check.
6845 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6846 (ASM_INPUT_P): Likewise.
6847 (ASM_VOLATILE_P): Likewise.
6848 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6849 (OMP_SECTION_LAST): Access private_flag directly.
6850 (OMP_RETURN_NOWAIT): Likewise.
6851 (OMP_PARALLEL_COMBINED): Likewise.
6852 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6853 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6854 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6855 deprecated_flag directly.
6857 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
6859 * final.c (frame_pointer_needed): Removed.
6860 * flags.h (frame_pointer_needed): Likewise.
6862 * function.h (rtl_data): Add frame_pointer_needed.
6863 (frame_pointer_needed): New.
6865 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
6867 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6869 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
6871 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6874 2008-05-25 Alan Modra <amodra@bigpond.net.au>
6876 * c-common.c (strip_array_types): Move function to..
6878 (get_inner_array_type): Delete.
6879 * c-common.h (strip_array_types): Move declaration to..
6881 (get_inner_array_type): Delete.
6882 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6883 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6884 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6885 * config/pa/pa.c (emit_move_sequence): Likewise.
6887 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
6889 * config/i386/i386.md (*sse_prologue_save_insn): Set length
6892 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
6894 * function.c: Include target hook for nonlocal_goto frame value.
6896 2008-05-24 Richard Guenther <rguenther@suse.de>
6898 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6899 variable can be only accessed through a pointer or a union.
6901 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6903 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6904 * doc/extend.texi: Likewise.
6906 2008-05-23 DJ Delorie <dj@redhat.com>
6908 * config/m32c/jump.md (untyped_call): Add.
6910 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6912 (m32c_address_cost): Detail costs for indirect offsets.
6914 2008-05-23 Rafael Espindola <espindola@google.com>
6916 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6917 if a node is a SUBREG.
6918 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6921 2008-05-23 Paul Brook <paul@codesourcery.com>
6922 Carlos O'Donell <carlos@codesourcery.com>
6924 * doc/extend.texi: Clarify use of __attribute__((naked)).
6925 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6926 * target.h (gcc_target): Add allocate_stack_slots_for_args.
6927 * function.c (use_register_for_decl): Use
6928 targetm.calls.allocate_stack_slots_for_args.
6929 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6930 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6931 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6933 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6935 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6937 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
6939 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6940 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6941 is only rounded once.
6943 2008-05-23 Richard Guenther <rguenther@suse.de>
6945 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6947 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
6948 Jakub Jelinek <jakub@redhat.com>
6951 * configure.ac: Handle --enable-cld.
6952 * configure: Regenerated.
6953 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6954 * config/i386/i386.h (struct machine_function): Add needs_cld field.
6955 (ix86_current_function_needs_cld): New define.
6956 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6957 (cld): New isns pattern.
6958 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6959 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6960 * config/i386/i386.opt (mcld): New option.
6961 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6962 TARGET_CLD and ix86_current_function_needs_cld.
6963 (override_options): Use -mcld by default for 32-bit code if
6966 * doc/install.texi (Options specification): Document --enable-cld.
6967 * doc/invoke.texi (Machine Dependent Options)
6968 [i386 and x86-64 Options]: Add -mcld option.
6969 (Intel 386 and AMD x86-64 Options): Document -mcld option.
6971 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
6972 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6973 (return_in_memory_64): Likewise.
6974 (return_in_memory_ms_64): Likewise.
6976 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6978 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6979 * builtins.c (fold_builtin_fpclassify): New.
6980 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6981 * builtins.def (BUILT_IN_FPCLASSIFY): New.
6982 * c-common.c (handle_type_generic_attribute): Adjust to accept
6983 fixed arguments before an elipsis.
6984 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6985 * doc/extend.texi: Document __builtin_fpclassify.
6987 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
6989 * omp-low.c (gate_expand_omp_ssa): Remove.
6990 (pass_expand_omp_ssa): Remove.
6991 (gate_expand_omp): Do not check for flag_openmp_ssa.
6992 * common.opt (-fopenmp-ssa): Remove.
6993 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6995 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
6997 * config/sh/sh.opt (mfixed-range): New option.
6998 * config/sh/sh-protos.h (sh_fix_range): Declare.
6999 * config/sh/sh.c (sh_fix_range): New function.
7000 * config/sh/sh.h (sh_fixed_range_str): Declare.
7001 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
7003 * doc/invoke.texi (SH Options): Document -mfixed-range.
7005 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
7007 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
7008 it before the redeclaration.
7010 2008-05-22 Anatoly Sokolov <aesok@post.ru>
7012 * config/avr/avr.c (get_sequence_length): Add new function.
7013 (expand_prologue, expand_epilogue): Remove duplicate code.
7015 2008-05-22 Rafael Espindola <espindola@google.com>
7017 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
7020 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
7022 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
7023 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
7025 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
7026 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
7027 (vect_update_misalignment_for_peel): Likewise.
7028 (vector_alignment_reachable_p): Likewise.
7029 * tree-vect-transform.c (vectorizable_load): Likewise.
7030 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
7031 (get_vectype_for_scalar_type): Pass mode of scalar_type
7032 to UNITS_PER_SIMD_WORD.
7034 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
7035 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7036 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7037 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7038 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7040 2008-05-22 Ira Rosen <irar@il.ibm.com>
7042 PR tree-optimization/36293
7043 * tree-vect-transform.c (vect_transform_strided_load): Don't check
7044 if the first load must be skipped because of a gap.
7046 2008-05-22 Richard Guenther <rguenther@suse.de>
7048 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
7049 more cases of offset disambiguation that is possible if
7050 strict-aliasing rules apply.
7051 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
7052 for basic offset and type-based disambiguation.
7054 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7056 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
7057 ix86_expand_vector_set on V16QImode for SSE4.1.
7059 2008-05-21 Tom Tromey <tromey@redhat.com>
7061 * c.opt (Wimport): Mark as undocumented.
7062 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
7064 (Warning Options): Likewise.
7065 * doc/cppopts.texi: Don't mention -Wimport.
7067 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7069 PR tree-optimization/36287
7070 PR tree-optimization/36286
7071 * lambda-code.c (build_access_matrix): Do not use the loop->num
7072 for computing the number of induction variables: use the loop depth
7075 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
7078 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7079 option -f(no-)leading-underscore.
7081 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7083 * config/i386/i386.c (ix86_expand_vector_init_general): Use
7084 GET_MODE_NUNITS (mode).
7086 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
7088 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7089 (-mmulhw): Add 464 to description.
7090 (-mdlmzb): Likewise.
7091 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7092 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7094 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7095 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7096 * config/rs6000/rs6000.md: Update comments for 464.
7098 2008-05-21 Janis Johnson <janis187@us.ibm.com>
7100 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7102 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7104 * config/i386/sse.md (vec_extractv4sf): Removed.
7105 (vec_extractv2df): Likewise.
7106 (vec_extractv2di): Likewise.
7107 (vec_extractv4si): Likewise.
7108 (vec_extractv8hi): Likewise.
7109 (vec_extractv16qi): Likewise.
7110 (vec_extract<mode>): New.
7112 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7114 * config/i386/sse.md (vec_setv4sf): Removed.
7115 (vec_setv2df): Likewise.
7116 (vec_setv2di): Likewise.
7117 (vec_setv4si): Likewise.
7118 (vec_setv8hi): Likewise.
7119 (vec_setv16qi): Likewise.
7120 (vec_set<mode>): New.
7122 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7124 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7125 goto for vec_concat and vec_interleave.
7127 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7129 * config/i386/sse.md (vec_initv4sf): Removed.
7130 (vec_initv2df): Likewise.
7131 (vec_initv2di): Likewise.
7132 (vec_initv4si): Likewise.
7133 (vec_initv8hi): Likewise.
7134 (vec_initv16qi): Likewise.
7135 (vec_init<mode>): New.
7137 2008-05-21 Joseph Myers <joseph@codesourcery.com>
7139 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7141 2008-05-21 Tom Tromey <tromey@redhat.com>
7143 * ggc-zone.c (lookup_page_table_if_allocated): New function.
7144 (zone_find_object_offset): Likewise.
7145 (gt_ggc_m_S): Likewise.
7146 (highest_bit): Likewise.
7147 * ggc-page.c (gt_ggc_m_S): New function.
7148 * stringpool.c (string_stack): Remove.
7149 (init_stringpool): Update.
7150 (ggc_alloc_string): Use ggc_alloc.
7151 (maybe_delete_ident): New function.
7152 (ggc_purge_stringpool): Likewise.
7153 (gt_ggc_m_S): Remove.
7154 * ggc-common.c (ggc_protect_identifiers): New global.
7155 (ggc_mark_roots): Call ggc_purge_stringpool. Use
7156 ggc_protect_identifiers.
7157 * ggc.h (ggc_protect_identifiers): Declare.
7158 (gt_ggc_m_S): Update.
7159 (ggc_purge_stringpool): Declare.
7160 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7161 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7163 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7165 2008-05-21 David S. Miller <davem@davemloft.net>
7167 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7170 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
7172 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7175 2008-05-20 David Daney <ddaney@avtrex.com>
7177 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
7178 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7179 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7180 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7181 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7182 (atomic_hiqi_op): New define_code_iterator.
7183 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
7184 mips_expand_compare_and_swap_12.
7185 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7186 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
7187 (sync_<optab><mode>, sync_old_<optab><mode>,
7188 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7189 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7190 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7191 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7192 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7193 (test_and_set_12): New insn.
7194 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7195 sync_new_<optab><mode>, sync_old_nand<mode>,
7196 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
7197 clobber to operand 0 for SI and DI mode insns.
7198 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7199 mips_gen_fn_4): New typedefs.
7200 (mips_gen_fn_ptrs): Define new union type.
7201 (mips_expand_compare_and_swap_12): Remove declaration.
7202 (mips_expand_atomic_qihi): Declare function.
7203 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7204 (mips_expand_atomic_qihi): ... this. Use new generator function
7206 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7207 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7208 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7209 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7210 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7211 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7212 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7213 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7214 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7215 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7218 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
7220 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7223 2008-05-20 Anatoly Sokolov <aesok@post.ru>
7225 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7226 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7227 (avr_attribute_table): Add 'OS_main' function attribute.
7228 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7229 functions with 'OS_main' attribute.
7231 2008-05-20 Richard Guenther <rguenther@suse.de>
7233 PR tree-optimization/35204
7234 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7235 helper, split out from ...
7236 (DFS): ... here. Make the DFS walk non-recursive.
7238 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7239 Jan Sjodin <jan.sjodin@amd.com>
7241 PR tree-optimization/36181
7242 * tree-parloops.c (loop_has_vector_phi_nodes): New.
7243 (parallelize_loops): Don't parallelize when the loop has vector
7246 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7247 Sebastian Pop <sebastian.pop@amd.com>
7249 * tree-loop-linear.c (gather_interchange_stats): Look in the access
7250 matrix, and never look at the tree representation of the memory
7252 (linear_transform_loops): Computes parameters and access matrices.
7253 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7255 (access_matrix_get_index_for_parameter): New.
7256 * tree-data-ref.h (struct access_matrix): New.
7257 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7258 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7259 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7260 am_vector_index_for_loop): New.
7261 (struct data_reference): Add field access_matrix.
7262 (DR_ACCESS_MATRIX): New.
7263 (compute_data_dependences_for_loop): Update declaration.
7264 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7265 * lambda.h (lambda_vector_vec_p): Declared.
7266 * lambda-code.c: Depend on pointer-set.h.
7267 (lambda_collect_parameters_from_af, lambda_collect_parameters,
7268 av_for_af_base, av_for_af, build_access_matrix,
7269 lambda_compute_access_matrices): New.
7270 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7272 2008-05-20 Joseph Myers <joseph@codesourcery.com>
7274 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7277 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7278 Sebastian Pop <sebastian.pop@amd.com>
7280 PR tree-optimization/36206
7281 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7283 (instantiate_scev_1): Rename flags to fold_conversions.
7284 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7285 outeside instantiation_loop.
7286 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7287 (evolution_function_is_affine_or_constant_p): Removed.
7288 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7290 (analyze_siv_subscript): Pass in the loop nest number.
7291 Call evolution_function_is_affine_in_loop instead of
7292 evolution_function_is_affine_p.
7293 (analyze_overlapping_iterations): Pass in the loop nest number.
7295 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7296 Sebastian Pop <sebastian.pop@amd.com>
7298 PR tree-optimization/36206
7299 * tree-chrec.h (chrec_fold_op): New.
7300 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7303 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
7305 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7307 (remove_duplicates): Do not set inode on non-inode systems.
7310 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
7312 * config.gcc (tm_file): Update comments about relative pathnames.
7314 2008-05-20 Richard Guenther <rguenther@suse.de>
7316 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7317 * tree-ssa-sccvn.c (process_scc): Likewise.
7318 * tree-ssa-sink.c (execute_sink_code): Likewise.
7319 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7320 * tree-vrp.c (process_assert_insertions): Likewise.
7321 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7322 (perform_tree_ssa_dce): Likewise.
7323 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7324 (dump_dominator_optimization_stats): Likewise.
7325 * tree-vectorizer.c (vectorize_loops): Likewise.
7327 2008-05-20 Richard Guenther <rguenther@suse.de>
7329 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7331 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
7333 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7334 (ix86_i386elf_return_in_memory): Likewise.
7335 (ix86_i386interix_return_in_memory): Likewise.
7336 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7337 (SUBTARGET_RETURN_IN_MEMORY): New.
7338 * config/i386/i386elf.h: Likewise.
7339 * config/i386/ptx4-i.h: Likewise.
7340 * config/i386/sol2-10.h: Likewise.
7341 * config/i386/sysv4.h: Likewise.
7342 * config/i386/vx-common.h: Likewise.
7343 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7344 * config/i386/i386.c (ix86_return_in_memory): Made static and
7345 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7346 (ix86_i386elf_return_in_memory): Removed.
7347 (ix86_i386interix_return_in_memory): Removed.
7348 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7349 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7351 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
7353 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7355 2008-05-19 Xinliang David Li <davidxl@google.com>
7357 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7359 * common.opt: Ditto.
7360 * doc/invoke.texi: Ditto.
7362 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
7364 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7365 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7367 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7369 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7370 sizes of operand array from 8/4 to 4/2.
7371 (ix86_expand_vector_init_general): Change size of operand array
7372 from 32 to 16. Remove op0, op1 and half_mode.
7374 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7376 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7377 (ix86_expand_vector_init_interleave): Likewise.
7378 (ix86_expand_vector_init_general): Use them. Assert
7379 word_mode == SImode when n_words == 4.
7381 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
7383 * config/i386/i386.c (ix86_secondary_reload): New static function.
7384 (TARGET_SECONDARY_RELOAD): New define.
7385 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7386 * config/i386/i386.md (reload_outqi): Remove.
7388 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7391 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7392 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
7393 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7394 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7395 (fold_builtin_1): Likewise.
7396 * builtins.def (BUILT_IN_ISINF_SIGN): New.
7397 c-common.c (check_builtin_function_arguments): Handle
7398 BUILT_IN_ISINF_SIGN.
7399 * doc/extend.texi: Document __builtin_isinf_sign.
7400 * fold-const.c (operand_equal_p): Handle COND_EXPR.
7402 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
7404 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7405 EH cleanup at the end of the pass, search for those that have been
7406 turned into forwarder blocks and do the cleanup on their successor.
7408 2008-05-18 Richard Guenther <rguenther@suse.de>
7410 * tree-cfg.c (verify_gimple_expr): Allow conversions from
7411 pointers to sizetype and vice versa.
7413 2008-05-18 Xinliang David Li <davidxl@google.com>
7415 * gcc/tree-ssa-dce.c: Coding style fix.
7416 (check_pow): Documentation comment.
7417 (check_log): Documenation comment. Coding style fix.
7418 (is_unnecessary_except_errno_call): Ditto.
7419 (gen_conditions_for_pow): Ditto.
7420 (gen_conditions_for_log): Ditto.
7421 (gen_shrink_wrap_conditions): Ditto.
7422 (shrink_wrap_one_built_in_calls): Ditto.
7423 * gcc/doc/invoke.texi: Better documentation string.
7424 * ChangeLog: Fix wrong change log entries from
7425 May 17 checkin on function call DCE.
7427 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
7429 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7431 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
7433 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7434 * df-problems.c (simulation routines): Fixed block comment to
7435 properly say how to add forwards scanning functions.
7437 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7439 * tree-inline.c (setup_one_parameter): Remove dead code.
7441 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7443 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7444 a BIT_AND_EXPR only for an INTEGER_TYPE.
7446 2008-05-17 Xinliang David Li <davidxl@google.com>
7448 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7449 (check_pow, check_log, is_unnecessary_except_errno_call): New
7450 functions to check for eliminating math functions that are pure
7451 except for setting errno.
7452 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7453 general condition expressions for shrink-wrapping pow/log calls.
7454 (gen_shrink_wrap_conditions): Ditto.
7455 (shrink_wrap_one_built_in_call): Ditto.
7456 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7457 (mark_operand_necessary): If debugging, output if OP is necessary.
7458 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7460 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7462 * gcc/common.opt: New user flag -ftree-builtin-dce.
7463 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7465 2008-05-16 David S. Miller <davem@davemloft.net>
7467 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7468 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7470 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
7473 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7475 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7477 * ifcvt.c (dead_or_predicable): Rename
7478 df_simulate_one_insn_backwards to df_simulate_one_insn.
7479 * recog.c (peephole2_optimize): Ditto.
7480 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7482 * df.h: Rename df_simulate_one_insn_backwards to
7483 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
7484 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7485 scanning of defs and uses.
7486 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7487 (df_simulate_one_insn_forwards): Removed.
7489 2008-05-16 Doug Kwan <dougkwan@google.com>
7491 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7493 (real_from_string): Handle NaNs and Inf as approriate.
7495 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7497 * doc/gty.texi (Source Files Containing Type Information): Note
7498 that headers should appear first in the gtfiles list.
7500 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7502 * tree.def (COND_EXEC): Properly documented this code.
7504 2008-05-16 Diego Novillo <dnovillo@google.com>
7506 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7507 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7510 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7512 * tree-ssa-dse (max_stmt_uid): Removed.
7513 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7514 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7515 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7516 * function.h (cfun.last_stmt_uid): New field.
7517 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7518 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7520 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7521 (create_stmt_ann): Initialize the ann->uid field.
7522 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7524 * tree-flow.h (renumber_gimple_stmt_uids): New function.
7526 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7528 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7529 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7530 (init_empty_tree_cfg): Call it.
7532 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7534 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
7537 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7539 * doc/invoke.text (-fdump-tree-*-verbose): New option.
7540 * tree-dump.c (dump_options): New verbose option.
7541 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7543 * tree-pass.h (TDF_VERBOSE): New dump flag.
7544 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7545 (tree-flow.h): Added include.
7546 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
7548 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
7550 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7552 From Jie Zhang <jie.zhang@analog.com>
7553 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7554 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7555 mcpu=bf561-none and mcpu=bf561-0.2.
7556 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7557 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7558 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7559 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7560 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7561 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7562 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
7564 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7565 (cputype_selected): Remove.
7566 (bfin_handle_option): Don't use cputype_selected.
7567 (override_options): When no mcpu option, enable all workarounds.
7568 Don't use bfin_workarounds.
7569 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7571 (DEFAULT_CPU_TYPE): Don't define.
7573 2008-05-16 Richard Guenther <rguenther@suse.de>
7575 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7576 on deletion of the last stmt.
7578 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7580 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7581 V8HImode for SSE2 and V16QImode for SSE4.1.
7583 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
7585 * cgraph.h (compute_inline_parameters): Made public.
7586 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7587 variable_generate_summary, function_write_summary,
7588 variable_write_summary, variable_read_summary. Added generate_summary,
7589 write_summary, read_summary.
7590 * cgraphunit.c (cgraph_process_new_functions): Changed call from
7591 pass_ipa_inline.function_generate_summary, to
7592 compute_inline_parameters.
7593 * ipa-inline.c (compute_inline_parameters): Made public and added
7595 (compute_inline_parameters_for_current): New function.
7596 (pass_inline_param): Now calls compute_inline_parameters_for_current.
7597 (inline_generate_summary): Removed parameter and made to loop over
7599 (pass_ipa_inline): Updated for new IPA_PASS structure.
7600 * passes.c (execute_ipa_summary_passes): Now is called once per
7601 pass rather than once per node*pass.
7603 2008-05-15 Anatoly Sokolov <aesok@post.ru>
7605 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7606 avr_have_mul_p, avr_asm_only_p): Remove variables.
7607 (avr_override_options): Remove initialization of removed variables.
7608 (avr_file_start): Convert removed variables to fields of
7609 'struct base_arch_s *avr_current_arch'.
7610 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7611 (AVR_HAVE_MUL): (Ditto.).
7612 (AVR_HAVE_MOVW): (Ditto.).
7613 (AVR_HAVE_LPMX): (Ditto.).
7614 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7615 avr_asm_only_p): Remove declaration.
7617 2008-05-15 Diego Novillo <dnovillo@google.com>
7619 * config/arm/arm.c (arm_return_in_memory): Fix return type.
7620 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7622 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
7625 * combine.c (check_conversion): Rename back to check_promoted_subreg.
7626 Don't call record_truncated_value from here.
7627 (record_truncated_value): Turn it into a for_each_rtx callback.
7628 (record_truncated_values): New function.
7629 (combine_instructions): Call note_uses with record_truncated_values.
7630 Change name of check_conversion to check_promoted_subreg.
7632 2008-05-15 Janis Johnson <janis187@us.ibm.com>
7634 * doc/sourcebuild.texi: Document support for torture tests.
7636 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7638 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7639 to alternative 4 of operand 2.
7641 2008-05-15 Richard Guenther <rguenther@suse.de>
7643 * tree-pass.h (current_pass): Declare.
7644 (get_pass_for_id): Likewise.
7645 * passes.c (passes_by_id, passes_by_id_size): New globals.
7646 (set_pass_for_id): New function.
7647 (get_pass_for_id): Likewise.
7648 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7649 (execute_function_todo): Flush per function statistics.
7650 * toplev.c (compile_file): Init statistics.
7651 (general_init): Do early statistics initialization.
7652 (finalize): Finish statistics.
7653 * statistics.h (statistics_early_init): Declare.
7654 (statistics_init): Likewise.
7655 (statistics_fini): Likewise.
7656 (statistics_fini_pass): Likewise.
7657 (statistics_counter_event): Likewise.
7658 (statistics_histogram_event): Likewise.
7659 * statistics.c: New file.
7660 * Makefile.in (OBJS-common): Add statistics.o.
7661 (statistics.o): Add dependencies.
7662 * doc/invoke.texi (-fdump-statistics): Document.
7664 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7666 (execute_pre): Use statistics_counter_event.
7667 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7668 (substitute_and_fold): Increment it. Use statistics_counter_event.
7670 2008-05-15 Diego Novillo <dnovillo@google.com>
7672 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7674 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7675 * tree-ssa-alias.c (new_type_alias): Remove references to
7676 sub-variables from comment.
7677 * tree-ssa-operands.c (swap_tree_operands): Likewise.
7679 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7681 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7682 attribute to 1 only for insertps alternative.
7684 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7686 * config/bfin/bfin.md (loadbytes): New pattern.
7687 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7688 (bfin_init_builtins): Initialize it.
7689 (bdesc_1arg): Add it.
7691 2008-05-15 Sa Liu <saliu@de.ibm.com>
7693 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7694 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7695 * testsuite/lib/target-supports.exp: Add
7696 check_effective_target_fortran_integer_16.
7698 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7700 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7701 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7702 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
7703 (TARGET_RETURN_IN_MEMORY): Define.
7705 2008-05-15 Richard Guenther <rguenther@suse.de>
7708 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7709 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7710 represent unmodifiable vars.
7712 2008-05-15 Richard Guenther <rguenther@suse.de>
7714 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7715 INDIRECT_REF and TARGET_MEM_REF.
7716 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7719 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7720 H.J. Lu <hongjiu.lu@intel.com>
7722 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7723 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7724 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
7725 insn alternatives. Add missing alternatives.
7726 (*vec_concatv2di_rex64_sse4_1): Likewise.
7727 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7728 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7731 2008-05-15 Richard Guenther <rguenther@suse.de>
7733 PR tree-optimization/36009
7734 PR tree-optimization/36204
7735 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7736 (determine_invariantness_stmt): Record the loop a store is
7738 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7741 2008-05-15 Richard Guenther <rguenther@suse.de>
7743 PR tree-optimization/34330
7744 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7745 through the pointer will alias the SMT.
7747 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
7749 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7751 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
7753 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7755 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7756 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7758 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7759 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7760 (vashl_optab): New optab for vector/vector shifts.
7761 (vashr_optab): Ditto.
7762 (vlshr_optab): Ditto.
7763 (vrotl_optab): Ditto.
7764 (vrotr_optab): Ditto.
7765 (optab_subtype): New enum for optab_for_tree_code call.
7766 (optab_for_tree_code): Add enum optab_subtype argument.
7768 * optabs.c (optab_for_tree_code): Take an additional argument to
7769 distinguish between a vector shift by a scalar and vector shift by
7770 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
7771 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
7772 vector shift by a vector.
7773 (expand_widen_pattern_expr): Pass additional argument to
7774 optab_for_tree_code.
7776 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7777 vrotl_optab, vrotr_optab.
7779 * expr.c (expand_expr_real_1): Update calls to
7780 optab_for_tree_code to distinguish between vector shifted by a
7781 scalar and vector shifted by a vector.
7782 * tree-vectorizer.c (supportable_widening_operation): Ditto.
7783 (supportable_narrowing_operation): Ditto.
7784 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7785 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7786 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7787 (vect_create_epilog_for_reduction): Ditto.
7788 (vectorizable_reduction): Ditto.
7789 (vectorizable_operation): Ditto.
7790 (vect_strided_store_supported): Ditto.
7791 (vect_strided_load_supported): Ditto.
7792 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7793 * expmed.c (expand_shift): Ditto.
7795 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7797 (ashr@var{m}3): Ditto.
7798 (vashl@var{m}3): Document new vector/vector shift standard name.
7799 (vashr@var{m}3): Ditto.
7800 (vlshr@var{m}3): Ditto.
7801 (vrotl@var{m}3): Ditto.
7802 (vrotr@var{m}3): Ditto.
7804 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7805 (PPERM_INVERT): Ditto.
7806 (PPERM_REVERSE): Ditto.
7807 (PPERM_REV_INV): Ditto.
7808 (PPERM_ZERO): Ditto.
7809 (PPERM_ONES): Ditto.
7810 (PPERM_SIGN): Ditto.
7811 (PPERM_INV_SIGN): Ditto.
7812 (PPERM_SRC1): Ditto.
7813 (PPERM_SRC2): Ditto.
7815 * config/i386/sse.md (mulv2di3): Add SSE5 support.
7816 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7817 allows a memory operand to be the value being added, and split it
7818 to improve vectorization.
7819 (sse5_pmacsdqh_mem): Ditto.
7820 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7821 (sse5_mulv2div2di3_high): Ditto.
7822 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7823 (vec_pack_trunc_v4si): Ditto.
7824 (vec_pack_trunc_v2di): Ditto.
7825 (sse5_pcmov_<mode>): Remove code that tried to use use
7826 andps/andnps instead of pcmov.
7827 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7828 pmacsdqh instructions.
7829 (vec_widen_smult_lo_v4si): Ditto.
7831 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7832 (PPERM_INVERT): Ditto.
7833 (PPERM_REVERSE): Ditto.
7834 (PPERM_REV_INV): Ditto.
7835 (PPERM_ZERO): Ditto.
7836 (PPERM_ONES): Ditto.
7837 (PPERM_SIGN): Ditto.
7838 (PPERM_INV_SIGN): Ditto.
7839 (PPERM_SRC1): Ditto.
7840 (PPERM_SRC2): Ditto.
7841 (ix86_expand_sse_movcc): Move the SSE5 test after the if
7843 (ix86_expand_int_vcond): If SSE5 generate all possible integer
7845 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7846 says ignore whether the last reference is a memory operand.
7848 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7849 Paolo Bonzini <bonzini at gnu dot org>
7851 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7854 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7855 (vlshr<mode>3): Rename from vlshr<mode>3.
7856 (vashr<mode>3): Rename from vashr<mode>3.
7857 (mulv4sf3): Change the names of vector shift patterns.
7861 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7864 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7889 * config/spu/spu.md (v): New iterator macro to add v for vector types.
7890 (floatunssidf2_internal): Change vector/vector shift names.
7891 (floatunsdidf2_internal): Ditto.
7898 (vashl<mode>3): Rename from ashl<mode>3.
7899 (vashr<mode>3): Rename from ashr<mode>3.
7900 (vlshr<mode>3): Rename from lshr<mode>3.
7901 (vrotl<mode>3): Rename from rotl<mode>3.
7903 2008-05-14 Michael Meissner <michael.meissner@amd.com>
7906 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7907 multiply gives the wrong value when doing widening multiplies.
7908 (vec_widen_smult_lo_v4si): Ditto.
7910 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7912 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7913 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7914 emit_library_call_value.
7915 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7916 * tree.h (ECF_LIBCALL_BLOCK): Removed.
7917 * calls.c (initialize_argument_information, precompute_arguments,
7918 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7919 (precompute_arguments): Removed flags parameter.
7920 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7922 2008-05-14 Richard Guenther <rguenther@suse.de>
7924 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7925 Make sure to register the store if the use is a PHI_NODE.
7927 2008-05-14 Olivier Hainque <hainque@adacore.com>
7929 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7930 memory if the component is to be referenced in BLKmode according
7931 to get_inner_reference.
7933 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
7935 * calls.c (emit_library_call_value_1): Restore code clearing
7936 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7938 2008-05-14 Olivier Hainque <hainque@adacore.com>
7939 Nicolas Roche <roche@adacore.com>
7941 * configure.ac: Add support for a "gcc_subdir" variable in
7942 config-lang.in, to denote a subdirectory where the language/GCC
7943 integration files are to be found.
7944 * configure: Regenerate.
7946 2008-05-14 Ira Rosen <irar@il.ibm.com>
7948 PR tree-optimization/36098
7949 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7950 value for the first load in the group in case of a gap.
7951 (vect_build_slp_tree): Check that there are no gaps in loads.
7953 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
7955 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7956 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7957 expand_copysign_bit, ): Change call to emit_no_conflict_block to
7958 emit_insn and remove unneeded code to construct extra args.
7959 (emit_no_conflict_block): Removed.
7960 * optabls.h: (emit_no_conflict_block): Removed.
7961 * cse.c (cse_extended_basic_block): Remove search for
7962 REG_NO_CONFLICT note.
7963 * global.c: Removed incorrect comment added in revision 117.
7964 * expr.c (convert_move): Change call to emit_no_conflict_block to
7966 * recog.c: Change comments so that they do not mention
7968 * local_alloc.c (combine_regs): Removed last parameter.
7969 (no_conflict_p): Removed.
7970 (block_alloc): Removed note, no_conflict_combined_regno and set
7971 local vars. Removed all code to process REG_NO_CONFLICT blocks.
7972 (combine_regs): Removed already_dead and code to look for
7973 REG_NO_CONFLICT notes.
7974 * lower_subreg (remove_retval_note): Removed code to look for
7975 REG_NO_CONFLICT block.
7976 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7977 (resolve_clobber): Remove code to process libcalls that have
7978 REG_NO_CONFLICT notes.
7979 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7981 * combine.c (can_combine_p, distribute_notes): Removed
7982 REG_NO_CONFLICT case.
7983 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7985 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7986 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7988 * reg-notes.def (NO_CONFLICT): Removed.
7990 2008-05-14 David S. Miller <davem@davemloft.net>
7992 * config/sparc/sparc.c (sparc_profile_hook): If
7993 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7994 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7995 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7997 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
7999 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
8001 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
8004 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
8005 and op1 expansion before vector concat to have less live pseudos.
8007 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
8009 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8010 ix86_expand_vector_set if supported.
8012 2008-05-13 Diego Novillo <dnovillo@google.com>
8013 Kenneth Zadeck <zadeck@naturalbridge.com>
8015 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
8017 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
8018 phinodes_print_statistics, init_ssanames, fini_ssanames,
8019 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
8020 release_ssa_name, release_defs, replace_ssa_name_symbol,
8021 ssanames_print_statistics): Move ...
8022 * tree-flow.h: ... here.
8023 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
8024 Use FN instead of cfun.
8025 (make_ssa_name_fn): Rename from make_ssa_name.
8026 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
8027 * tree-flow-inline.h (make_ssa_name): Move from
8028 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
8029 * omp-low.c (expand_omp_parallel):
8030 * tree-flow-inline.h (redirect_edge_var_map_result):
8031 * tree-ssa.c (init_tree_ssa): Add argument FN.
8032 Use it instead of cfun. Update all users.
8034 2008-05-13 Tom Tromey <tromey@redhat.com>
8036 PR preprocessor/22168:
8037 * doc/cpp.texi (Top): Update menu.
8038 (Alternatives to Wrapper #ifndef): New node.
8039 (Other Directives): Document deprecation.
8040 (Obsolete Features): Remove menu.
8041 (Assertions): Merge node into Obsolete Features.
8042 (Obsolete once-only headers): Move earlier; rename to Alternatives
8044 * doc/cppopts.texi: Update.
8045 * c.opt (Wdeprecated): Enable for C and ObjC.
8046 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
8047 (C++ Dialect Options): Move -Wno-deprecated from here to...
8048 (Warning Options): ... here.
8050 2008-05-13 Richard Guenther <rguenther@suse.de>
8053 * fold-const.c (fold_sign_changed_comparison): Do not allow
8054 changes in pointer-ness.
8056 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
8059 * config/sh/sh.c (sh_expand_prologue): Don't clear
8060 RTX_FRAME_RELATED_P for push insns.
8062 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
8064 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
8066 2008-05-12 Anatoly Sokolov <aesok@post.ru>
8068 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8069 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
8070 Use 'machine->is_leaf' instead of 'leaf_func_p'.
8072 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
8074 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8075 (*vec_concatv4sf_sse): This.
8076 (*sse2_concatv2si): Renamed to ...
8077 (*vec_concatv2si_sse2): This.
8078 (*sse1_concatv2si): Renamed to ...
8079 (*vec_concatv2si_sse): This.
8080 (*vec_concatv2di_rex): Renamed to ...
8081 (*vec_concatv2di_rex64): This.
8082 (*vec_concatv2si_sse4_1): New.
8083 (*vec_concatv2di_rex64_sse4_1): Likewise.
8085 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
8087 PR rtl-optimization/36111
8088 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8089 that was created for swappable operands.
8091 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
8094 * Makefile.in: Substitute GNATMAKE and GNATBIND.
8095 * configure.ac: Add call to ACX_PROG_GNAT.
8097 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
8099 * optc-gen.awk: Fix comment typo.
8101 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8103 * pretty-print.c (pp_integer_with_precision): Use
8104 HOST_LONG_LONG_FORMAT.
8106 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
8108 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
8110 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
8112 * config/i386/i386.c (bdesc_ptest): Removed.
8113 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8114 (bdesc_args): Add __builtin_ia32_ptestz128,
8115 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8116 (ix86_init_mmx_sse_builtins): Updated.
8117 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8118 (ix86_expand_builtin): Updated.
8120 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
8122 * tree-cfg.c (valid_fixed_convert_types_p): New function.
8123 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8125 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
8127 * value-prof.c (interesting_stringop_to_profile): Do not
8128 return early for BUILT_IN_MEMPCPY.
8130 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
8132 * calls.c (expand_call): Don't use callgraph to increase
8133 preferred_stack_boundary.
8135 * cgraph.h (cgraph_rtl_info): Use unsigned on
8136 preferred_incoming_stack_boundary.
8138 * final.c (rest_of_clean_state): Use unsigned on
8139 preferred_stack_boundary.
8141 2008-05-09 Tom Tromey <tromey@redhat.com>
8143 PR preprocessor/22231:
8144 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8147 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
8149 PR tree-optimization/36129
8150 * tree-ssa-ccp.c: Include value-prof.h.
8151 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8152 built-in function was folded to a constant.
8153 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
8155 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
8156 Sebastian Pop <sebastian.pop@amd.com>
8158 * tree-scalar-evolution.c: Document instantiate_scev.
8159 (instantiate_parameters_1): Renamed instantiate_scev_1.
8160 Don't use the same loop for instantiation_loop and evolution_loop.
8161 (instantiate_scev): New.
8162 (instantiate_parameters): Moved...
8163 (resolve_mixers): Update call to instantiate_scev_1 to pass the
8164 same loop twice. Maintains the semantics for this function.
8165 * tree-scalar-evolution.h (instantiate_scev): Declare.
8166 (instantiate_parameters): ...here. Now static inline.
8167 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8168 instead of resolve_mixers.
8170 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
8172 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8174 2008-05-09 Tomas Bily <tbily@suse.cz>
8176 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8177 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8178 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8179 * c-common.c (c_common_truthvalue_conversion): Likewise.
8180 * tree-object-size.c (compute_object_offset): Likewise.
8181 * tree-inline.c (estimate_num_insns_1): Likewise.
8182 * varasm.c (const_hash_1, compare_constant, copy_constant)
8183 (compute_reloc_for_constant, output_addressed_constants)
8184 (initializer_constant_valid_p): Likewise.
8185 * c-omp.c (check_omp_for_incr_expr): Likewise.
8186 * gimplify.c (gimplify_expr): Likewise.
8187 * c-typeck.c (c_finish_return): Likewise.
8188 * tree-vectorizer.c (supportable_widening_operation)
8189 (supportable_narrowing_operation): Likewise.
8190 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8191 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8192 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8193 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8194 (descr_info_loc): Likewise.
8195 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8196 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8197 (fold_unary): Likewise.
8198 * builtins.c (get_pointer_alignment): Likewise.
8199 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8200 (instantiate_parameters_1): Likewise.
8201 * tree.c (expr_align, stabilize_reference): Likewise.
8202 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8203 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8204 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8205 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8206 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8207 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8209 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8210 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8211 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8212 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8213 (forward_propagate_comparison)
8214 (tree_ssa_forward_propagate_single_use_vars): Likewise.
8215 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8216 * emit-rtl.c (component_ref_for_mem_expr)
8217 (set_mem_attributes_minus_bitpos): Likewise.
8218 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8219 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8221 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8222 (build_function_call, pointer_diff, build_compound_expr)
8223 (c_finish_return): Likewise.
8224 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8225 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8227 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8228 * expr.c (is_aligning_offset): Likewise.
8229 * tree-ssa-alias.c (is_escape_site): Likewise.
8230 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8231 (check_all_va_list_escapes): Likewise.
8232 * tree-ssa-loop-ivopts.c (determine_base_object)
8233 (determine_common_wider_type): Likewise.
8234 * dojump.c (do_jump): Likewise.
8235 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8236 * tree-gimple.c (is_gimple_cast): Likewise.
8237 * fold-const.c (decode_field_reference, )
8238 (fold_sign_changed_comparison, fold_unary, fold_comparison)
8239 (fold_binary): Likewise.
8240 * tree-ssa-alias-warnings.c (find_alias_site_helper)
8241 (already_warned_in_frontend_p): Likewise.
8242 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8243 * tree.c (really_constant_p, get_unwidened): Likewise.
8244 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8245 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8246 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8248 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8250 (CONVERT_EXPR_P): Define.
8251 (CASE_CONVERT): Define.
8253 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8256 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8257 (delete_unmarked_insns): When deleting a call, call
8258 delete_unreachable_blocks.
8259 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8260 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8262 2008-05-08 Richard Guenther <rguenther@suse.de>
8264 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8265 (-ftree-salias): Likewise.
8266 (salias-max-implicit-fields): Remove param documentation.
8267 (salias-max-array-elements): Likewise.
8268 * tree-pass.h (pass_create_structure_vars): Remove.
8269 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8270 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8271 * tree-ssa-alias.c (create_structure_vars): Remove.
8272 (gate_structure_vars): Likewise.
8273 (pass_create_structure_vars): Likewise.
8274 (gate_build_alias): Likewise.
8275 (pass_build_alias): Adjust to run always and dump the function.
8276 * common.opt (ftree-salias): Hide.
8277 * passes.c (init_optimization_passes): Remove
8278 pass_create_structure_vars, adjust comment.
8279 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8280 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8281 * opts.c (decode_options): Do not set flag_tree_salias.
8282 (common_handle_option): Add OPT_ftree_salias to the backward
8283 compatibility section.
8285 2008-05-08 Richard Guenther <rguenther@suse.de>
8287 * tree-flow-inline.h (var_can_have_subvars): Move ...
8288 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8289 * tree-flow.h (var_can_have_subvars): Remove.
8290 (push_fields_onto_fieldstack): Remove.
8291 (sort_fieldstack): Likewise.
8292 (struct fieldoff): Move ...
8293 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
8294 alias_set and base_for_components fields.
8295 (sort_fieldstack): Make static.
8296 (push_fields_onto_fieldstack): Likewise. Remove code that
8297 handles anything but RECORD_TYPEs. Remove alias_set and
8298 base_for_components handling.
8299 (create_variable_info_for): Adjust.
8301 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
8303 * common.opt (Wframe-larger-than=): Shorten the help message
8305 * doc/invoke.texi (Wframe-larger-than=): Add more description.
8307 2008-05-08 Rafael Espindola <espindola@google.com>
8309 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8311 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8312 trap and that both operands are gimple values.
8313 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8314 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8317 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8319 * read-rtl.c (join_c_conditions): Return the first string if the
8320 two strings are equal.
8322 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8324 * gensupport.h (pred_data): Add a "num_codes" field.
8325 (add_predicate_code): Declare.
8326 * gensupport.c (add_predicate_code): New function.
8327 (std_pred_table): Add an "allows_const_p" field.
8328 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8329 Remove the (incomplete) list of such codes from the codes field.
8330 (init_predicate_table): Use add_predicate_code. Add all
8331 RTX_CONST_OBJs if allows_const_p is true.
8332 * genrecog.c (process_define_predicate): Use add_predicate_code.
8334 2008-05-08 David Daney <ddaney@avtrex.com>
8335 Richard Sandiford <rsandifo@nildram.co.uk>
8337 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8338 special case of constant zero operands.
8339 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8340 old and new values. Special case constant zero values.
8341 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8343 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8344 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8346 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
8349 * simplify-rtx.c (simplify_plus_minus): Create CONST of
8350 similar RTX_CONST_OBJ before CONST_INT.
8352 2008-05-08 Steve Ellcey <sje@cup.hp.com>
8354 * stmt.c (expand_stack_restore): Change sa mode if needed.
8356 2008-05-08 Richard Guenther <rguenther@suse.de>
8358 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8359 return type to bool.
8360 (ix86_sol10_return_in_memory): Likewise.
8361 (ix86_i386elf_return_in_memory): Likewise.
8362 (ix86_i386interix_return_in_memory): Likewise.
8363 * config/i386/i386.c (ix86_return_in_memory): Likewise.
8364 (ix86_sol10_return_in_memory): Likewise.
8365 (ix86_i386elf_return_in_memory): Likewise.
8366 (ix86_i386interix_return_in_memory): Likewise.
8368 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8371 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8373 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8374 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8377 2008-05-08 Richard Guenther <rguenther@suse.de>
8379 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8380 * tree-data-ref.h (struct dr_alias): Remove subvars field.
8381 (DR_SUBVARS): Remove.
8382 * tree-dfa.c (dump_subvars_for): Remove.
8383 (debug_subvars_for): Likewise.
8384 (dump_variable): Do not dump subvars.
8385 (remove_referenced_var): Do not remove subvars.
8386 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8387 (lookup_subvars_for_var): Remove.
8388 (get_subvars_for_var): Likewise.
8389 (get_subvars_at): Likewise.
8390 (get_first_overlapping_subvar): Likewise.
8391 (overlap_subvar): Likewise.
8392 * tree-flow.h (subvar_t): Remove.
8393 (struct var_ann_d): Remove subvars field.
8394 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8395 argument. Remove special handling of SFTs.
8396 (compute_tag_properties): Likewise.
8397 (set_initial_properties): Likewise.
8398 (compute_call_clobbered): Likewise.
8399 (count_mem_refs): Likewise.
8400 (compute_memory_partitions): Likewise.
8401 (compute_flow_insensitive_aliasing): Likewise.
8402 (setup_pointers_and_addressables): Likewise.
8403 (new_type_alias): Likewise.
8404 (struct used_part): Remove.
8405 (used_portions): Likewise.
8406 (struct used_part_map): Likewise.
8407 (used_part_map_eq): Likewise.
8408 (used_part_map_hash): Likewise.
8409 (free_used_part_map): Likewise.
8410 (up_lookup): Likewise.
8411 (up_insert): Likewise.
8412 (get_or_create_used_part_for): Likewise.
8413 (create_sft): Likewise.
8414 (create_overlap_variables_for): Likewise.
8415 (find_used_portions): Likewise.
8416 (create_structure_vars): Likewise.
8417 * tree.def (STRUCT_FIELD_TAG): Remove.
8418 * tree.h (MTAG_P): Adjust.
8419 (struct tree_memory_tag): Remove base_for_components and
8420 unpartitionable flags.
8421 (struct tree_struct_field_tag): Remove.
8422 (SFT_PARENT_VAR): Likewise.
8423 (SFT_OFFSET): Likewise.
8424 (SFT_SIZE): Likewise.
8425 (SFT_NONADDRESSABLE_P): Likewise.
8426 (SFT_ALIAS_SET): Likewise.
8427 (SFT_UNPARTITIONABLE_P): Likewise.
8428 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8429 (union tree_node): Remove sft field.
8430 * alias.c (get_alias_set): Remove special handling of SFTs.
8431 * print-tree.c (print_node): Remove handling of SFTs.
8432 * tree-dump.c (dequeue_and_dump): Likewise.
8433 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8434 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8435 * tree-predcom.c (set_alias_info): Do not set subvars.
8436 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8437 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8438 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8439 (add_vars_for_offset): Remove.
8440 (add_virtual_operand): Remove special handling of SFTs.
8441 (add_call_clobber_ops): Likewise.
8442 (add_call_read_ops): Likewise.
8443 (get_asm_expr_operands): Likewise.
8444 (get_modify_stmt_operands): Likewise.
8445 (get_expr_operands): Likewise.
8446 (add_to_addressable_set): Likewise.
8447 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8448 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8449 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8450 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8451 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8452 (tree_node_structure): Likewise.
8453 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8455 (find_what_p_points_to): Likewise.
8457 2008-05-08 Sa Liu <saliu@de.ibm.com>
8459 * config/spu/spu.md: Fixed subti3 pattern.
8461 2008-05-08 Richard Guenther <rguenther@suse.de>
8464 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8465 sure to create a representative for trailing arrays for PTA.
8467 2008-05-08 Richard Guenther <rguenther@suse.de>
8470 * fold-const.c (operand_equal_p): Two objects which types
8471 differ in pointerness are not equal.
8473 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8475 * calls.c (compute_argument_block_size): Add argument tree fndecl.
8476 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8477 (emit_library_call_value_1): Add new variable fndecl initialized by
8478 NULL_TREE. It should be the decl type of orgfun, but this information
8479 seems not to be available here, so it uses the default calling abi.
8480 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8481 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8482 by TARGET_RETURN_IN_MEMORY.
8483 * config/i386/i386-interix.h: Likewise.
8484 * config/i386/i386.h: Likewise.
8485 * config/i386/i386elf.h: Likewise.
8486 * config/i386/ptx4-i.h: Likewise.
8487 * config/i386/sol2-10.h: Likewise.
8488 * config/i386/sysv4.h: Likewise.
8489 * config/i386/vx-common.h: Likewise.
8490 * config/cris/cris.h: Removed #if 0 clause.
8491 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8492 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8494 (ix86_sol10_return_in_memory): Likewise.
8495 (ix86_i386elf_return_in_memory): New.
8496 (ix86_i386interix_return_in_memory): New.
8497 * config/mt/mt-protos.h (mt_return_in_memory): New.
8498 * config/mt/mt.c: Likewise.
8499 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8500 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
8501 * config/bfin/bfin.h: Likewise.
8502 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8504 * config/bfin/bfin.c: Likewise.
8505 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8506 * config/alpha/unicosmk.h: Likewise.
8507 * config/i386/cygming.h: Likewise.
8508 * config/iq2000/iq2000.h: Likewise.
8509 * config/mips/mips.h: Likewise.
8510 * config/mn10300/mn10300.h: Likewise.
8511 * config/rs6000/rs6000.h: Likewise.
8512 * config/score/score.h: Likewise.
8513 * config/spu/spu.h: Likewise.
8514 * config/v850/v850.h: Likewise.
8515 * defaults.h: Likewise.
8516 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8517 * expr.c (emit_block_move): Adjust use of
8518 OUTGOING_REG_PARM_STACK_SPACE.
8519 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8520 OUTGOING_REG_PARM_STACK_SPACE.
8521 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8523 2008-05-08 Jakub Jelinek <jakub@redhat.com>
8525 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8526 on OMP_RETURN for OMP_FOR.
8529 * dwarf2out.c (dw_expand_expr, common_check): Removed.
8530 (fortran_common): New function.
8531 (gen_variable_die): Call fortran_common instead of common_check,
8532 adjust for it returning tree instead of rtx. Formatting.
8534 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
8538 * see.c (see_copy_insn): Copy new pure const attributes for new call.
8539 * c-decl.c (merge_decls): Ditto.
8540 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8541 to RTL_CONST_OR_PURE_CALL_P.
8542 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8543 Initialized DECL_LOOPING_CONST_PURE.
8544 (process_call_operands): Set tree_side_effects properly.
8545 * tree.h (TREE_READONLY_DECL_P): Removed.
8546 (DECL_IS_PURE): Renamed to DECL_PURE_P.
8547 (DECL_LOOPING_OR_CONST_P): New macro.
8548 (struct tree_function_decl): Added looping_const_or_pure_p.
8550 (ECF_LOOPING_OR_CONST_P): New macro.
8551 * rtlanal.c (pure_const_p): Removed.
8552 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8553 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8554 to RTL_CONST_CALL_P.
8555 * ipa-pure-const.c (pure_const_state_e): Added looping field.
8556 (check_decl, check_tree, check_call, scan_function): Initialize
8558 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8559 (static_execute): Set looping true for recursive functions.
8560 Undo setting state to IPA_NEITHER for recursive functions.
8562 * ifcvt.c (noce_can_store_speculate_p): Changed
8563 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8564 RTL_CONST_OR_PURE_CALL_P.
8565 * dse.c (scan_insn): Ditto.
8566 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8567 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8568 RTL_CONST_OR_PURE_CALL_P.
8569 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8570 pure_call_p to RTL_CONST_CALL_P.
8571 * gimplify.c (gimplify_call_expr): Clear side effects for
8572 non-looping pure and constant calls.
8573 * calls.c (emit_call_1): Set rtl flags from ecf flags.
8574 (flags_from_decl_or_type): Set ecf flags from decl flags.
8575 (initialize_argument_information): Turn off
8576 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8577 Change const to pure if callee_copies is true rather than just
8579 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8580 way of marking pure calls.
8581 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8582 Remove hack that was supposed to fix pr7335 and remove old
8583 way of marking pure calls.
8584 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8585 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8586 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8587 RTL_CONST_OR_PURE_CALL_P.
8588 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8589 * loop-invariant.c (find_exits, find_invariant_bb): Changed
8590 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8591 * sched-deps.c (schedule_analyze): Ditto.
8592 * rtl.h (struct rtx_def): Use call field, unchanging field, and
8593 return_val field of calls to represent pure and const function info.
8594 (CONST_OR_PURE_CALL_P): Deleted macro.
8595 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8596 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8597 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8599 * tree-optimize.c (execute_fixup_cfg): Added test for
8600 ECF_LOOPING_CONST_OR_PURE.
8601 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8603 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8604 effects for looping pure or const calls.
8605 (verify_gimple_expr): Added verification code.
8606 * config/alpha/alpha.c (alpha_legitimize_address,
8607 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8609 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8610 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8611 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8612 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8613 RTL_CONST_OR_PURE_CALL_P.
8614 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8615 and const calls to be deleted.
8617 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8620 * config/i386/mmx.md (mmx_subv2sf3): New expander.
8621 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8622 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8623 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8624 to handle nonimmediate operands.
8625 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8626 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
8627 to handle nonimmediate operands.
8628 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8629 (mmx_pmulhrwv4hi3): New expander. Use
8630 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8631 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8632 (sse2_umulv1siv1di3): New expander. Use
8633 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8634 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8635 (mmx_eq<mode>3): New expander. Use
8636 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8637 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8638 (mmx_uavgv8qi3): New expander. Use
8639 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8640 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8641 (mmx_uavgv4hi3): New expander. Use
8642 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8644 * config/i386/sse.md
8645 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
8646 to handle nonimmediate operands.
8647 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
8648 to handle nonimmediate operands.
8649 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
8650 to handle nonimmediate operands.
8651 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
8652 to handle nonimmediate operands.
8653 (sse2_unpckhpd_exp): New expander. Use
8654 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8655 (sse2_unpcklpd_exp): New expander. Use
8656 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8657 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
8658 to handle nonimmediate operands.
8659 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
8660 to handle nonimmediate operands.
8661 (*sse2_<plusminus_insn><mode>3): Rename from
8662 sse2_<plusminus_insn><mode>3 insn pattern.
8663 (sse2_<plusminus_insn><mode>3): New expander. Use
8664 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8665 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8666 (sse2_umulv2siv2di3): New expander. Use
8667 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8668 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8669 (sse4_1_mulv2siv2di3): New expander. Use
8670 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8671 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8672 (sse2_pmaddwd): New expander. Use
8673 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8674 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8675 (sse2_eq<mode>3): New expander. Use
8676 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8677 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8678 (sse4_1_eqv2di3): New expander. Use
8679 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8680 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8681 (sse2_uavgv16qi3): New expander. Use
8682 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8683 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8684 (sse2_uavgv16qi3): New expander. Use
8685 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8686 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8687 (sse2_uavgv8hi3): New expander. Use
8688 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8689 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8690 (ssse3_pmulhrswv8hi3): New expander. Use
8691 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8692 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8693 (ssse3_pmulhrswv4hi3): New expander. Use
8694 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8696 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8697 (<sse>_vmmul<mode>3): Ditto.
8698 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8700 (ssse3_pmaddubsw128): Use register_operand for operand 1.
8701 (ssse3_pmaddubsw): Ditto.
8703 * config/i386/i386.c (struct_builtin_description)
8704 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8705 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8706 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8707 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8708 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8709 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8710 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8711 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8712 (ix86_fixup_binary_operands): Assert that src1
8713 and src2 must have the same mode when swapped.
8714 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8715 and ix86_binary_operator_ok. Do not force operands in registers
8718 2008-05-07 Jan Hubicka <jh@suse.cz>
8720 * cgraph.c (dump_cgraph_node): Update.
8721 * cgraph.h (cgraph_local_info): Break out inline summary.
8722 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8724 * ipa-inline (inline_summary): New accestor function.
8725 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8726 cgraph_decide_inlining, compute_inline_parameters): Update.
8727 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8729 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
8731 Cleanup ColdFire scheduling support and add V4 pipeline model.
8733 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8734 (define_attr cpu): Add cfv4 value.
8735 (define_attr type, define_attr type1): Merge into a single 'type'
8736 attribute. Update all uses.
8737 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8738 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
8740 (define_attr opx_mem, define_attr opy_mem): Remove.
8741 (define_attr op_mem): Clean up, update comment.
8742 (define_attr size): Use specific values instead of general int.
8743 (define_attr guess, define_attr split): Remove. Update all uses.
8744 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8745 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8746 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8747 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8748 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8749 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8750 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8751 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8752 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8753 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8754 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8755 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8756 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8757 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8758 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8759 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8760 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8761 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8762 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8763 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8764 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8765 Update or set attributes.
8766 (stack_tie): New fake instruction.
8768 * config/m68k/m68k.h (TUNE_CFV4): New macro.
8769 (m68k_sched_attr_size): Update declaration.
8770 (m68k_sched_attr_type2): Remove.
8771 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8772 Declare new bypass predicates.
8774 * config/m68k/m68k.c (m68k_sched_issue_rate,
8775 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8777 (TARGET_SCHED_ISSUE_RATE,
8778 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8779 (override_options): Handle scheduling for ColdFire V4 core.
8780 (m68k_expand_prologue): Emit stack_tie.
8781 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8782 'OP_TYPE_FPN'. Update all uses.
8783 (sched_guess_p): Remove.
8784 (sched_address_type): Handle symbolic addresses.
8785 (sched_get_operand): New static function.
8786 (sched_operand_type): Merge into sched_attr_op_type.
8787 (sched_attr_op_type): Handle FP registers, handle quick constants,
8789 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8790 (m68k_sched_attr_size): Update. Move logic to ...
8791 (sched_get_attr_size_int): New static function.
8792 (sched_get_opxy_mem_type): New static function.
8793 (m68k_sched_attr_op_mem): Update.
8794 (m68k_sched_attr_type2): Remove.
8795 (sched_cfv4_bypass_data): New static variable.
8796 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8797 (m68k_sched_issue_rate): Implement scheduler hook.
8798 (struct _sched_ib: enabled_p): New field.
8799 (m68k_sched_variable_issue): Update. Handle V4.
8800 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8801 sched_dump_class_func_t, sched_dump_split_class,
8802 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8803 sched_dump_dfa_class, m68k_sched_dump): Remove.
8804 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8806 (m68k_sched_init_global): Remove statisctics dumping, introduce
8807 sanity check that all instructions have pipeline reservations. Handle
8809 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8810 Handle ColdFire V4 core.
8811 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8812 New static functions.
8813 (m68k_sched_address_bypass_p): New bypass predicate.
8814 (sched_get_indexed_address_scale): New static function.
8815 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8817 * cf.md: Update comments.
8818 (define_attr type2): Remove. Use 'type' attribute instead.
8820 (cf_ib): Rename to cfv123_ib. Update all uses.
8821 (cf_oep): Rename to cfv123_oep. Update all uses.
8822 (cf_chr): Rename to cfv123_chr. Update all uses.
8823 (cf_mem): Rename to cfv123_mem. Update all uses.
8824 (cf_mac): Move to more appropriate place.
8825 (cfv123_guess): New automaton and cpu_unit.
8826 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8827 Update uses of 'size' attribute. Handle before reload scheduling.
8828 (cfv123_guess): New dummy reservation for unhandled instructions.
8829 (cfv4_*): Pipeline description of ColdFire V4 core.
8830 (ignore): New reservation to handle 'ignore' type.
8832 2008-05-07 Ian Lance Taylor <iant@google.com>
8835 * gimplify.c (find_single_pointer_decl_1): Don't look through
8837 (find_single_pointer_decl): Adjust comments.
8839 2008-05-07 Jakub Jelinek <jakub@redhat.com>
8842 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8843 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8846 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8847 integral type rather than floating point, then VIEW_CONVERT_EXPR
8848 to the floating point type.
8850 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8852 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8853 TFmode op0 to register.
8855 2008-05-07 Alan Modra <amodra@bigpond.net.au>
8857 * c-decl.c (grokdeclarator): Comment typo.
8859 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
8861 * tree-flow.h: Remove prototype for computed_goto_p.
8862 * tree-cfg.c (computed_goto_p): Make static.
8864 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
8867 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8868 (contains_aligned_value_p): This. Handle _Decimal128.
8869 (ix86_function_arg_boundary): Only align _Decimal128 to its
8870 natural boundary and handle it properly.
8872 2008-05-06 Martin Jambor <mjambor@suse.cz>
8874 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8875 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8876 (ipcp_method_set_orig_node): Removed.
8877 (ipcp_cval_get_cvalue_type): Removed.
8878 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8879 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8880 (ipcp_cval_set_cvalue_type): Removed.
8881 (ipcp_cval_get_cvalue): Removed.
8882 (ipcp_cval_set_cvalue): Removed.
8883 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8884 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8885 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8886 (ipcp_cval_meet): Renamed to ipa_lattice_meet
8887 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8888 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8889 (ipcp_get_ith_lattice): Changed parameters.
8890 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8891 (ipcp_lattice_from_jfunc): Changed parameters.
8892 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8893 (ipcp_method_cval_print): Added temporary variable info.
8894 (ipcp_redirect): Removed already unused local variable caller.
8895 (ipcp_redirect): New temporary variable orig_callee_info
8896 (ipcp_redirect): Removed newly unused local variable callee.
8897 (ipcp_redirect): Removed (a bit confusing) local variable type.
8898 (ipcp_insert_stage): Added local variable info.
8899 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8901 (ipcp_formal_create): Removed.
8902 (ipcp_method_cval_set): Removed.
8903 (ipcp_propagate_stage): Renamed lattice variables.
8904 (ipcp_method_cval_set_cvalue_type): Removed.
8905 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8906 (ipcp_print_all_lattices): Changed printed strings to refer to
8907 lattices rather than cvals.
8908 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8909 (ipcp_propagate_const): Changed formal parameters.
8910 (build_const_val): Changed formal parameters.
8911 (ipcp_insert_stage): Removed useless variable cvalue
8912 (build_const_val): Changed formal parameters.
8913 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8914 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8915 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8916 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8917 (ipcp_print_func_profile_counts): Changed string from "method" to
8919 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8920 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8921 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8922 (ipcp_structures_print): Renamed to ipcp_print_all_structures
8923 (ipcp_profile_print): Renamed to ipcp_print_profile_data
8924 (ipcp_lat_is_const): Changed parameters and made inline.
8925 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8926 (ipcp_redirect): Renamed to ipcp_need_redirect_p
8927 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8928 the predicate condition directly
8929 (ipcp_propagate_stage): Added local variable args. Removed local
8930 variable callee. (Both are mere code simplifications.)
8931 (ipcp_method_dont_insert_const): Renamed to
8932 ipcp_node_not_modifiable_p.
8933 (ipcp_node_not_modifiable_p): Made inline.
8934 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8935 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8936 (ipcp_print_all_lattices): Removed variable cvalue
8937 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8940 2008-05-06 Olivier Hainque <hainque@adacore.com>
8942 * tree-sra.c (try_instantiate_multiple_fields): Early return
8943 if field has POINTER_TYPE.
8945 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
8947 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8948 by using 'q' specifier for instruction.
8949 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8951 2008-05-06 Anatoly Sokolov <aesok@post.ru>
8953 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8954 Change mode of zero_extract from QImode to HImode.
8955 (sign bit tests peepholes): (Ditto.).
8957 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
8959 * config/i386/mmx.md: Remove double backslashes from asm templates.
8960 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8961 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8962 to handle nonimmediate operands.
8963 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8964 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8965 to handle nonimmediate operands.
8966 (*mmx_<code>v2sf3_finite): New insn pattern.
8967 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8968 (mmx_<code>v2sf3): New expander. Use
8969 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8970 (mmx_<plusminus_insn><mode>3): New expander. Use
8971 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8972 (*mmx_<plusminus_insn><mode>3): New insn pattern.
8973 (mmx_add<mode>3): Removed.
8974 (mmx_ssadd<mode>3): Ditto.
8975 (mmx_usadd<mode>3): Ditto.
8976 (mmx_sub<mode>3): Ditto.
8977 (mmx_sssub<mode>3): Ditto.
8978 (mmx_ussub<mode>3): Ditto.
8979 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8980 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
8981 to handle nonimmediate operands.
8982 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8984 (mmx_smulv4hi3_highpart): New expander. Use
8985 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8986 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8988 (mmx_umulv4hi3_highpart): New expander. Use
8989 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8990 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8991 (mmx_<code>v4hi3): New expander. Use
8992 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8993 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8994 (mmx_<code>v8qi3): New expander. Use
8995 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8996 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8997 (mmx_<code><mode>3): New expander. Use
8998 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9000 2008-05-05 Jan Hubicka <jh@suse.cz>
9002 PR tree-optimization/36118
9003 * passes.c (pass_init_dump_file): Fix dump header.
9005 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9008 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
9009 VCE for function decls.
9011 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9013 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
9015 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9017 * config/i386/i386.md (sat_plusminus): New.
9018 (plusminus_insn): Likewise.
9019 (plusminus_mnemonic): Likewise.
9021 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
9022 (*<addsub><mode>3_cc_overflow): Renamed to ...
9023 (*<plusminus_insn><mode>3_cc_overflow): This.
9024 (*<addsub>si3_zext_cc_overflow): Renamed to ...
9025 (*<plusminus_insn>si3_zext_cc_overflow): This.
9027 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
9028 (<plusminus_insn><mode>3): This.
9029 (*<addsub><mode>3): Renamed to ...
9030 (*<plusminus_insn><mode>3): This.
9031 (<sse>_vm<addsub><mode>3): Renamed to ...
9032 (<sse>_vm<plusminus_insn><mode>3): This.
9033 (sse3_h<addsub>v4sf3): Renamed to ...
9034 (sse3_h<plusminus_insn>v4sf3): This.
9035 (sse3_h<addsub>v2df3): Renamed to ...
9036 (sse3_h<plusminus_insn>v2df3): This.
9037 (<plusminus_insn><mode>3): New.
9038 (*<plusminus_insn><mode>3): Likewise.
9039 (sse2_<plusminus_insn><mode>3): Likewise.
9040 (add<mode>): Removed.
9041 (*add<mode>3): Likewise.
9042 (sse2_ssadd<mode>3): Likewise.
9043 (sse2_usadd<mode>3): Likewise.
9044 (sub<mode>3): Likewise.
9045 (*sub<mode>3): Likewise.
9046 (sse2_sssub<mode>3): Likewise.
9047 (sse2_ussub<mode>3): Likewise.
9049 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
9051 * gthr-single.h: Add in required interface elements as per gthr.h.
9052 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
9053 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
9054 Generalize UNUSED macro.
9055 (__gthread_once): Add.
9056 (__gthread_key_create): Add.
9057 (__gthread_key_delete): Add.
9058 (__gthread_getspecific): Add.
9059 (__gthread_setspecific): Add.
9061 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
9063 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
9064 the same size types for the indirect reference on the rhs, then
9067 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
9069 * config/i386/i386.md
9070 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
9071 one insn template instead of template series.
9072 (*xordi_1_rex64): Ditto.
9073 (*xordi_2_rex64): Ditto.
9075 2008-05-05 Ira Rosen <irar@il.ibm.com>
9077 PR tree-optimization/36119
9078 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9081 2008-06-04 Jan Hubicka <jh@suse.cz>
9083 tree-optimization/36100
9084 * tree-pass.h (pass_O0_always_inline): Declare.
9085 * ipa-inline.c (inline_transform): Remove dead code.
9086 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9087 pass_O0_always_inline): New.
9088 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9090 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
9092 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9093 mnemonic in this_param move for TARGET_64BIT.
9095 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
9097 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9098 (*strmovsi_rex_1): Ditto.
9099 (*strsetsi_1): Ditto.
9100 (*strsetsi_rex_1): Ditto.
9102 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9103 adddicc expanders using SWI mode iterator.
9105 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
9108 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9111 2008-05-04 David S. Miller <davem@davemloft.net>
9113 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9114 (sparc*-*-linux*): Use linux.h in tm_file.
9115 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9116 compiler defaulting to 32-bit.
9117 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9119 * config/sparc/linux.h: Remove definitions now obtained
9120 properly from linux.h
9121 * config/sparc/linux64.h: Likewise.
9122 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9123 don't want this setting for 32-bit builds in a biarch compiler.
9124 * doc/install.texi: Add sparc-linux to list of targets
9125 supporting --enable-targets=all.
9127 2008-05-03 Andrew Pinski <pinskia@gmail.com>
9129 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9131 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
9133 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9134 after V4SI_FTYPE_V8HI.
9135 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9136 case V4SI_FTYPE_V2DF.
9138 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9140 * doc/invoke.texi (max-flow-memory-locations): Removed.
9141 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
9143 2008-05-03 Richard Guenther <rguenther@suse.de>
9146 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9148 2008-05-02 David S. Miller <davem@davemloft.net>
9150 * config.gcc (need_64bit_hwint): Document libcpp dependency.
9152 2008-05-02 Simon Baldwin <simonb@google.com>
9155 * c-common.h (warn_array_subscript_range): Removed.
9156 * c-common.c (warn_array_subscript_range): Ditto.
9157 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9158 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9160 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9162 * config/i386/i386.c (ix86_special_builtin_type): New.
9163 (bdesc_special_args): Likewise.
9164 (ix86_expand_special_args_builtin): Likewise.
9165 (ix86_init_mmx_sse_builtins): Updated.
9166 (ix86_expand_builtin): Updated.
9167 (ix86_expand_store_builtin): Removed.
9168 (ix86_expand_unop_builtin): Likewise.
9170 * config/i386/mm3dnow.h (__v2sf): Moved to ...
9171 * config/i386/mmintrin.h (__v2sf): Here.
9173 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9175 (_mm_loadl_pi): Likewise.
9176 (_mm_storeh_pi): Replace __v2si with __v2sf.
9177 (_mm_storel_pi): Likewise.
9179 * doc/extend.texi: Correct __builtin_ia32_loadhps,
9180 __builtin_ia32_loadlps, __builtin_ia32_storehps,
9181 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9182 __builtin_ia32_loadlpd.
9184 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9186 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9187 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9188 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
9189 (ix86_init_mmx_sse_builtins): Updated.
9190 (ix86_expand_args_builtin): Likewise.
9191 (ix86_expand_builtin): Likewise.
9192 (ix86_expand_unop1_builtin): Renamed to ...
9193 (ix86_expand_unop_vec_merge_builtin): This.
9195 2008-05-01 Jan Hubicka <jh@suse.cz>
9198 * ipa-inline.c (inline_generate_summary): Make static.
9199 (inline_transform): Do not call inlining at -O0; make static.
9200 * passes.c (execute_todo): Add sanity check.
9201 (execute_one_ipa_transform_pass): Execute proper flags.
9203 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
9205 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9206 (DECL_NONADDRESSABLE_P): Likewise.
9207 * alias.c (record_component_aliases): Fix comment.
9209 2008-05-01 Simon Baldwin <simonb@google.com>
9211 * c-common.h (warn_array_subscript_range): New function.
9212 * c-common.c (warn_array_subscript_range): Ditto.
9213 * tree-vrp.c (check_array_ref): Corrected code to agree with
9214 comment, ignoring only arrays of size 0 or size 1.
9215 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9217 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9219 * config/i386/i386.c (ix86_builtin_type): Replace
9220 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9221 (bdesc_args): Updated.
9222 (ix86_init_mmx_sse_builtins): Likewise.
9223 (ix86_expand_args_builtin): Likewise.
9225 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9228 * doc/extend.texi: Correct __builtin_ia32_palignr.
9230 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9233 * config/i386/i386.c (bdesc_crc32): Removed.
9234 (ix86_expand_crc32): Likewise.
9235 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9236 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9237 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
9238 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9239 UINT_FTYPE_UINT_UCHAR.
9240 (bdesc_args): Updated. Add crc32 builtins.
9241 (ix86_init_mmx_sse_builtins): Updated.
9242 (ix86_expand_args_builtin): Updated to support subreg.
9244 * doc/extend.texi: Correct __builtin_ia32_crc32di.
9246 2008-05-01 Jan Hubicka <jh@suse.cz>
9248 * tree-pass.h (opt_pass): Add IPA_PASS.
9249 (varpool_node, cgraph_node): Forward declare.
9250 (ipa_opt_pass): Define.
9251 (pass_ipa_inline): Turn into ipa_opt_pass.
9252 (pass_apply_inline): Remove.
9253 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9254 (apply_inline): Turn into ....
9255 (inline_transform): ... this one.
9256 (inline_generate_summary): New function.
9257 (pass_apply_inline): Remove.
9258 * function.h (ipa_opt_pass): Forward declare structure; typedef;
9260 (struct function): Add ipa_transforms_to_apply.
9261 * passes.c (register_one_dump_file): Work on IPA_PASS.
9262 (init_optimization_passes): Remove pass_inline_parameters and
9264 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9265 (execute_one_pass) ... here; apply transforms when possible.
9266 (add_ipa_transform_pass, execute_ipa_summary_asses,
9267 execute_one_ipa_transform_pass): New.
9268 (execute_ipa_pass_list): Update for IPA_PASS type.
9270 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9272 * config/i386/i386.c (ix86_builtin_type): Add
9273 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9274 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9275 (bdesc_args): Add SSE4a builtins.
9276 (ix86_init_mmx_sse_builtins): Updated.
9277 (ix86_expand_args_builtin): Likewise.
9278 (ix86_expand_builtin): Likewise.
9280 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9282 * config/i386/i386.c (ix86_builtin_type): Add
9283 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9284 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9285 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9286 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9287 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9288 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9289 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9290 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9291 and DI_FTYPE_DI_DI_INT.
9292 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9293 (ix86_init_mmx_sse_builtins): Updated.
9294 (ix86_expand_args_builtin): Likewise.
9295 (ix86_expand_builtin): Likewise.
9296 (ix86_expand_binop_imm_builtin): Removed.
9298 * doc/extend.texi: Correct __builtin_ia32_palignr128.
9300 2008-04-30 Richard Guenther <rguenther@suse.de>
9302 PR tree-optimization/32921
9303 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9305 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
9307 * config/arm/arm.c (arm_unwind_emit): Use
9308 crtl->all_throwers_are_sibcalls instead of
9309 cfun->all_throwers_are_sibcalls.
9310 (arm_output_fn_unwind): Likewise.
9311 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9312 instead of cfun->uses_pic_offset_table.
9313 (frv_expand_prologue): Likewise.
9314 (frv_frame_pointer_required): Likewise.
9315 (frv_expand_fdpic_call): Likewise.
9316 (frv_emit_movsi): Likewise.
9317 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9318 cfun->returns_pcc_struct instead of
9319 current_function_returns_pcc_struct.
9320 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9321 instead of cfun->calls_eh_return.
9322 (m32c_pushm_popm): Likewise.
9323 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9324 "extern" declaration.
9326 2008-04-30 Richard Guenther <rguenther@suse.de>
9328 PR tree-optimization/21636
9329 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9331 (evaluate_stmt): Print the likely value.
9332 (ccp_visit_stmt): Avoid excessive vertical spacing.
9334 2008-04-30 Rafael Espindola <espindola@google.com>
9336 * builtins.c (fold_call_expr): Return realret.
9337 * tree-ssa-threadedge.c
9338 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9339 __builtin_object_size.
9341 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
9343 * gcc.c (wrapper_string): New variable.
9344 (insert_wrapper): New function.
9345 (execute): New option -wrapper.
9346 * doc/invoke.texi (Overall Options): New driver option -wrapper.
9348 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
9350 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9351 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9352 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9354 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
9355 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9356 config/rs6000/e500crtres64gprctr.asm,
9357 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9358 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9359 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9360 config/rs6000/e500crtsav64gprctr.asm,
9361 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9362 config/rs6000/e500crtsavg64gprctr.asm: New files.
9363 * config/rs6000/t-ppccomm: Add build rules for new files.
9364 (LIB2FUNCS_STATIC_EXTRA): Add new files.
9365 * config/rs6000/t-netbsd: Add build rules for new files.
9366 (LIB2FUNCS_STATIC_EXTRA): New variable.
9367 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9368 (CRTSAVRES_DEFAULT_SPEC): Likewise.
9369 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9371 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
9373 * config/i386/i386.c (ix86_builtin_type): Add
9374 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9375 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9376 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9377 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9378 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9379 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9380 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9381 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9382 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9383 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9384 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9385 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9386 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9387 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9388 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9389 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9390 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9391 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9392 V1DI_FTYPE_V2SI_V2SI.
9393 (bdesc_2arg): Moved to ...
9395 (ix86_init_mmx_sse_builtins): Updated.
9396 (ix86_expand_args_builtin): Updated. Take a pointer
9397 to const struct builtin_description. Handle comparison
9399 (ix86_expand_sse_compare): Take a new argument for swapping operands.
9400 (ix86_expand_builtin): Updated.
9402 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9403 (ssse3_pmaddubsw128): This.
9404 (ssse3_pmaddubswv4hi3): Renamed to ...
9405 (ssse3_pmaddubsw): This.
9407 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9408 (__builtin_ia32_packssdw128): Likewise.
9409 (__builtin_ia32_packuswb128): Likewise.
9410 (__builtin_ia32_pmaddubsw): Likewise.
9411 (__builtin_ia32_pmaddubsw128): Likewise.
9413 2008-04-30 Richard Guenther <rguenther@suse.de>
9415 PR tree-optimization/14847
9416 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9417 (recognize_bits_test): Use it.
9418 (recognize_single_bit_test): Likewise.
9420 2008-04-30 Martin Jambor <mjambor@suse.cz>
9422 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9423 instead of setting number of formal parameters to zero.
9424 (ipcp_init_stage): Do not set the number of actual parameters to zero
9426 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9427 which are called with variable number of arguments.
9428 (ipcp_insert_stage): Explicitely skipping all nodes which are
9429 called with variable number of arguments.
9430 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9431 number of parameters.
9433 * ipa-prop.h (struct ipa_node_params): Added flag
9434 called_with_var_arguments
9435 (ipa_set_param_count): Added. Changed sole setter to use it.
9436 (ipa_get_param_count): Added. All readers of param_count
9437 converted to use it instead.
9438 (ipa_set_called_with_variable_arg): Added.
9439 (ipa_is_called_with_var_arguments): Added.
9440 (ipa_get_ith_param): Added. All readers of param_decls converted
9442 (ipa_set_cs_argument_count): Added, sole writer to argument_count
9444 (ipa_get_cs_argument_count): Added, all readers of argument_count
9446 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9449 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9450 (struct ipcp_lattice): Renamed cval_type to type
9451 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9453 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9454 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9455 (ipcp_insert_stage): Changed the type of variable cvalue to tree
9456 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9457 (build_const_val): Changed the type of parameter cvalue to tree
9458 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9459 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9461 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9464 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9465 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9466 (ipa_add_method): Renamed to ipa_push_func_to_list
9467 (ipa_remove_method): Renamed to ipa_pop_func_from_list
9468 (ipa_callsite_param_count): Removed.
9469 (ipa_callsite_param_count_set): Removed.
9470 (ipa_callsite_param): Removed.
9471 (ipa_callsite_callee): Removed.
9472 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9473 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9474 (ipa_method_formal_count): Removed.
9475 (ipa_method_formal_count_set): Removed.
9476 (ipa_method_get_tree): Removed.
9477 (ipa_method_tree_map_create): Removed.
9478 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9479 (ipa_create_param_decls_array): Creates the array itself
9480 (ipa_create_param_decls_array): Temporary variable info instead of
9482 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9483 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9484 (get_type): Removed.
9485 (ipa_jf_get_info_type): Removed.
9486 (ipa_node_create): Renamed to ipa_create_node_params
9487 (ipa_free): Renamed to ipa_free_all_node_params
9488 (ipa_nodes_create): Renamed to ipa_create_all_node_params
9489 (ipa_edges_create): Renamed to ipa_create_all_edge_args
9490 (ipa_edges_free): Renamed to ipa_free_all_edge_args
9491 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9492 (ipa_free_all_node_params): Deallocation to jump_functions moved to
9493 ipa_free_all_edge_args
9494 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9495 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9496 (ipa_create_methodlist_node): Removed.
9497 (ipa_methodlist_method): Removed.
9498 (ipa_methodlist_method_set): Removed.
9499 (ipa_methodlist_next_method): Removed.
9500 (ipa_methodlist_next_method_set): Removed.
9501 (ipa_method_is_modified): Removed.
9502 (ipa_method_modify_create): Removed.
9503 (ipa_method_modify_init): Temporary variable info instead of a few
9505 (ipa_detect_param_modifications): Temporary variable info instead of
9507 (ipa_compute_jump_functions): Temporary variable info instead of
9509 (ipa_method_modify_set): Removed.
9510 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9511 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9512 than craph_node as the first parameter.
9513 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9514 (ipa_method_modify_init): Removed.
9515 (ipa_compute_jump_functions): Added a temp variable instead of
9516 repeatadly dereferencing the cgraph_edge.aux pointer
9517 (ipa_callsite_param_set_type): Removed.
9518 (ipa_compute_jump_functions): i renamed to index and moved to
9520 (ipa_callsite_param_set_info_type_formal): Removed.
9521 (ipa_callsite_param_set_info_type): Removed.
9522 (ipa_callsite_param_map_create): Removed.
9523 (ipa_callsite_tree): Removed.
9524 (ipa_callsite_caller): Removed.
9525 (ipa_pop_func_from_list): return_method removed to return_func
9527 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9528 prefixed all values with IPA_. Changed all users.
9529 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9530 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9531 and FORMAL_IPATYPE IPA_PASS_THROUGH.
9532 (union parameter_info): Renamed to jump_func_value.
9533 (union jump_func_value): Renamed value to constant
9534 (struct ipa_jump_func): Renamed info_type to value
9535 (struct ipa_node): Renamed to ipa_node_params
9536 (struct ipa_node_params): Renamed ipa_arg_num to param_count
9537 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9538 (struct ipa_node_params): Renamed ipa_mod to modified_flags
9539 (struct ipa_edge): Renamed to ipa_edge_args
9540 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9541 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9542 (struct ipa_methodlist): Renamed to ipa_func_list
9543 (struct ipa_func_list): method_p renamed to node, next_method
9545 (ipa_methodlist_p): Removed, switched all users to struct pointer
9546 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9548 2008-04-30 Alan Modra <amodra@bigpond.net.au>
9550 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9551 (rs6000_emit_epilogue): Use backchain to restore only when we
9552 have a large frame. Make use of frame pointer to restore if we
9553 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9555 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
9557 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9558 Add mode to zero_extract.
9559 (sign bit tests peepholes): (Ditto.).
9561 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
9563 * config/i386/i386.c (ix86_builtins): Replace Prescott New
9564 Instructions in comments with SSE3.
9565 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
9566 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9567 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9568 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9569 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9570 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9571 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9572 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9573 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9574 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9575 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9576 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9577 (bdesc_sse_args): Renamed to ...
9578 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9579 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9580 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9582 (bdesc_1arg): Moved to ...
9584 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
9585 Instructions in comments with SSE3.
9586 (ix86_expand_sse_operands_builtin): Renamed to ...
9587 (ix86_expand_args_builtin): This. Updated.
9588 (ix86_expand_unop1_builtin): Update comments.
9589 (ix86_expand_builtin): Updated.
9591 2008-04-29 Richard Guenther <rguenther@suse.de>
9593 PR tree-optimization/36078
9594 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9595 Update virtual SSA form after cleaning up the CFG.
9597 2008-04-29 Richard Guenther <rguenther@suse.de>
9600 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9602 2008-04-29 Richard Guenther <rguenther@suse.de>
9604 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9605 (compute_may_aliases): Do not call finalize_ref_all_pointers.
9606 (compute_flow_insensitive_aliasing): Do not treat
9607 PTR_IS_REF_ALL pointers special.
9608 (get_smt_for): Likewise.
9609 (may_alias_p): Re-structure.
9610 (is_escape_site): A ref-all pointer conversion is not an escape site.
9611 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9612 PTR_IS_REF_ALL pointers special.
9613 * tree-ssa-structalias.h (struct alias_info): Remove
9614 ref_all_symbol_mem_tag field.
9615 (PTR_IS_REF_ALL): Remove.
9617 2008-04-29 Richard Guenther <rguenther@suse.de>
9620 * fold-const.c (extract_muldiv_1): In combining division constants
9621 make sure to never overflow.
9623 2008-04-29 Nick Clifton <nickc@redhat.com>
9625 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9627 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9630 * optc-gen.awk: Work around HP-UX/IA awk bug.
9632 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
9634 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9637 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9640 * config/i386/i386.md
9641 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9642 Change operand 1 predicate to nonimmediate_operand.
9644 2008-04-28 Jakub Jelinek <jakub@redhat.com>
9647 * dwarf2out.c (struct die_struct): Mark as chain_circular through
9649 * gengtype.c (walk_type, write_func_for_structure): Handle
9651 * doc/gty.texi: Document chain_circular.
9653 2008-04-28 Richard Guenther <rguenther@suse.de>
9655 PR tree-optimization/36066
9656 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9659 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9662 * config/i386/i386.md
9663 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9664 Use match_scratch instead of match_operand for operands 3 and 4.
9666 2008-04-27 Richard Guenther <rguenther@suse.de>
9668 PR tree-optimization/18754
9669 PR tree-optimization/34223
9670 * tree-pass.h (pass_complete_unrolli): Declare.
9671 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9672 loop size before and after unconditionally of UL_NO_GROWTH in effect.
9673 Rewrite loop into loop closed SSA form if it is not already.
9674 (tree_unroll_loops_completely): Re-structure to iterate over
9675 innermost loops with intermediate CFG cleanups.
9676 Unroll outermost loops only if requested or the code does not grow
9678 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9679 loops are available.
9680 (tree_vectorize): Instead do so here.
9681 (tree_complete_unroll): Also unroll outermost loops.
9682 (tree_complete_unroll_inner): New function.
9683 (gate_tree_complete_unroll_inner): Likewise.
9684 (pass_complete_unrolli): New pass.
9685 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9686 uses outside of the loop.
9687 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9688 form if it is available.
9689 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9690 * passes.c (init_optimization_passes): Schedule complete inner
9691 loop unrolling pass before the first CCP pass after final inlining.
9693 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
9695 * targhooks.h (default_emutls_var_fields,
9696 default_emutls_var_init): Declare.
9697 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9698 * target.h (struct gcc_target): Add struct emutls member.
9699 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9700 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9701 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9702 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9703 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9704 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9705 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9706 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9707 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9708 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9709 emit debug information.
9710 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9711 * varasm.c: Include targhooks.h.
9712 (emutls_object_section, emutls_tmpl_section): New.
9713 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9714 (EMUTLS_SEPARATOR): New.
9716 (get_emutls_object_name): New.
9717 (default_emutls_var_fields): New, broken out of ...
9718 (get_emutls_object_type): ... here. Adjust to use target hooks.
9719 (get_emutls_init_templ_addr): Adjust to use target hooks.
9720 (emutls_decl): Adjust to use target hooks.
9721 (emutls_finish): Likewise.
9722 (default_emutls_var_init): New, broken out of ...
9723 (assemble_variable): ... here. Adjust to use target hooks.
9724 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9726 * c-common.c (handle_section_attribute): Prevent overriding
9727 sections for emulated tls with special sections.
9728 * config/i386/i386.c (x86_64_elf_select_section): Add
9729 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9730 (x86_64_elf_unique_section): Likewise.
9731 * config/vxworks.c: Include tree.h.
9732 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9733 (vxworks_override_options): Set TLS scheme.
9734 * doc/tm.texi (Emulated TLS): New node.
9736 2008-04-26 Simon Baldwin <simonb@google.com>
9739 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9740 with propagated string constants.
9742 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
9744 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9745 constraint for operand 2 when operand 0 is memory operand.
9746 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9747 operand 0 is memory operand.
9748 (fix_trunc<mode>_i387_with_temp): Ditto.
9749 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9750 operand 2 when operand 1 is memory operand.
9751 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9752 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9753 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9754 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9755 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9756 operands 2,3 and 4 when operand 1 is memory operand.
9757 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9759 (fistdi2_floor_with_temp): Ditto.
9760 (fist<mode>2_floor_with_temp): Ditto.
9761 (fistdi2_ceil_with_temp): Ditto.
9762 (fist<mode>2_ceil_with_temp): Ditto.
9763 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9765 2008-04-26 David Daney <ddaney@avtrex.com>
9767 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9769 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9770 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9771 UNSPEC_UPDATE_GOT_VERSION): Renumber.
9772 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9773 (compare_and_swap_12): New insn.
9774 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9775 * config/mips/mips.c (mips_force_binary): New function.
9776 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9777 (mips_expand_compare_and_swap_12): New function.
9778 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9780 2008-04-25 Jan Hubicka <jh@suse.cz>
9783 * cfgexpand.c (pass_expand): Turn into RTL pass.
9784 * passes.c (execute_one_pass): Do pass typechecking after execution.
9785 * tree-pass.h (pass_expand): Turn into RTL pass.
9787 * function.h (struct rtl_data): Move here fields
9788 accesses_prior_frames, calls_eh_return, saves_all_registers,
9789 has_nonlocal_goto, has_asm_statement, is_thunk,
9790 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9791 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9792 arg_pointer_save_area_init from struct function; turn into bool.
9793 (struct function): Move
9794 calls_eh_return, saves_all_registers, has_nonlocal_goto,
9795 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9796 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9797 tail_call_emit, arg_pointer_save_area_init
9798 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
9799 (current_function_returns_struct, current_function_returns_pcc_struct,
9800 current_function_calls_setjmp, current_function_calls_alloca,
9801 current_function_accesses_prior_frames,
9802 current_function_calls_eh_return, current_function_is_thunk,
9803 current_function_stdarg, current_function_profile,
9804 current_function_limit_stack, current_function_uses_pic_offset_table,
9805 current_function_uses_const_pool, current_function_has_nonlocal_label,
9806 current_function_saves_all_registers,
9807 current_function_has_nonlocal_goto,
9808 current_function_has_asm_statement): Remove accesor macros.
9809 * ra-conflict.c (global_conflicts): Update.
9810 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9811 (suitable_for_tail_call_opt_p): Update.
9812 * builtins.c (expand_builtin_return_addr): Update.
9813 (expand_builtin_setjmp_setup): Update.
9814 (expand_builtin_nonlocal_goto): Update.
9815 * final.c (final_start_function): Update.
9816 (profile_function): Update.
9817 (leaf_function_p): Update.
9818 (only_leaf_regs_used): Update.
9819 * df-scan.c (df_get_exit_block_use_set): Update.
9820 * dojump.c (clear_pending_stack_adjust): Update.
9821 * tree-stdarg.c (gate_optimize_stdarg): Update.
9822 * gimple-low.c (lower_function_body): Update.
9823 * global.c (compute_regsets): Update.
9824 (global_alloc): Update.
9825 * dwarf2out.c (dwarf2out_begin_prologue): Update.
9826 * expr.c (expand_assignment): Update.
9827 * dse.c (dse_step0): Update.
9828 (dse_step1): Update.
9829 * c-decl.c (store_parm_decls): Update.
9830 * local-alloc.c (combine_regs): Update.
9831 (find_free_reg): Update.
9832 * function.c (assign_parms_augmented_arg_list): Update.
9833 (assign_parm_find_data_types): Update.
9834 (assign_parms): Update.
9835 (allocate_struct_function): Update.
9836 (expand_function_start): Update.
9837 (expand_function_end): Update.
9838 (get_arg_pointer_save_area): Update.
9839 (thread_prologue_and_epilogue_insns): Update.
9840 (rest_of_match_asm_constraints): Update.
9841 * stor-layout.c (variable_size): Update.
9842 * gcse.c (gcse_main): Update.
9843 (bypass_jumps): Update.
9844 * gimplify.c (gimplify_function_tree): Update.
9845 * calls.c (emit_call_1): Update.
9846 (expand_call): Update.
9847 * bt-load.c (compute_defs_uses_and_gen): Update.
9848 * except.c (sjlj_assign_call_site_values): Update.
9849 (sjlj_emit_function_enter): Update.
9850 (can_throw_external): Update.
9851 (set_nothrow_function_flags): Update.
9852 (expand_builtin_unwind_init): Update.
9853 (expand_eh_return): Update.
9854 (convert_to_eh_region_ranges): Update.
9855 (output_function_exception_table): Update.
9856 * emit-rtl.c (gen_tmp_stack_mem): Update.
9857 * cfgexpand.c (expand_used_vars): Update.
9858 (tree_expand_cfg): Update.
9859 * cfgcleanup.c (rest_of_handle_jump): Update.
9860 * explow.c (allocate_dynamic_stack_space): Update.
9861 * varasm.c (assemble_start_function): Update.
9862 (force_const_mem): Update.
9863 (mark_constant_pool): Update.
9864 * tree-optimize.c (tree_rest_of_compilation): Update.
9865 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9866 * tree-cfg.c (notice_special_calls): Update.
9867 (is_ctrl_altering_stmt): Update.
9868 (tree_can_make_abnormal_goto): Update.
9869 (tree_purge_dead_abnormal_call_edges): Update.
9870 * config/alpha/predicates.md: Update.
9871 * config/alpha/alpha.c (alpha_sa_mask): Update.
9872 (alpha_sa_size): Update.
9873 (alpha_does_function_need_gp): Update.
9874 (alpha_expand_prologue): Update.
9875 (alpha_start_function): Update.
9876 (alpha_output_function_end_prologue): Update.
9877 (alpha_expand_epilogue): Update.
9878 * config/frv/frv.c (frv_stack_info): Update.
9879 (frv_expand_epilogue): Update.
9880 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9881 (s390_register_info): Update.
9882 (s390_frame_info): Update.
9883 (s390_init_frame_layout): Update.
9884 (s390_can_eliminate): Update.
9885 (save_gprs): Update.
9886 * config/spu/spu.c (spu_split_immediate): Update.
9887 (need_to_save_reg): Update.
9888 (spu_expand_prologue): Update.
9889 (spu_expand_epilogue): Update.
9890 * config/sparc/sparc.md: Update.
9891 * config/sparc/sparc.c (eligible_for_return_delay): Update.
9892 (sparc_tls_got): Update.
9893 (legitimize_pic_address): Update.
9894 (sparc_emit_call_insn): Update.
9895 (sparc_expand_prologue): Update.
9896 (output_return): Update.
9897 (print_operand): Update.
9898 (sparc_function_ok_for_sibcall): Update.
9899 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9900 * config/m32r/m32r.md: Update.
9901 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9902 (m32r_compute_frame_size): Update.
9903 (m32r_expand_prologue): Update.
9904 (m32r_expand_epilogue): Update.
9905 (m32r_legitimize_pic_address): Update.
9906 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9907 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9908 * config/i386/i386.c (ix86_frame_pointer_required): Update.
9910 (ix86_save_reg): Update.
9911 (ix86_compute_frame_layout): Update.
9912 (ix86_expand_prologue): Update.
9913 (ix86_expand_epilogue): Update.
9914 * config/sh/sh.c (output_stack_adjust): Update.
9915 (calc_live_regs): Update.
9916 (sh5_schedule_saves): Update.
9917 (sh_expand_prologue): Update.
9918 (sh_expand_epilogue): Update.
9919 (sh_setup_incoming_varargs): Update.
9920 (sh_allocate_initial_value): Update.
9921 (sh_get_pr_initial_val): Update.
9922 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9923 * config/sh/sh.md (label:): Update.
9924 * config/avr/avr.c (out_movhi_mr_r): Update.
9925 * config/crx/crx.h (enum): Update.
9926 * config/xtensa/xtensa.h (along): Update.
9927 * config/stormy16/stormy16.c Update.
9928 (xstormy16_compute_stack_layout): Update.
9929 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9930 (fr30_expand_prologue): Update.
9931 * config/cris/cris.c (cris_conditional_register_usage): Update.
9932 (cris_reg_saved_in_regsave_area): Update.
9933 (cris_initial_frame_pointer_offset): Update.
9934 (cris_simple_epilogue): Update.
9935 (cris_expand_prologue): Update.
9936 (cris_expand_epilogue): Update.
9937 (cris_expand_pic_call_address): Update.
9938 (cris_asm_output_symbol_ref): Update.
9939 (cris_asm_output_label_ref): Update.
9940 * config/cris/cris.md Update.
9941 * config/iq2000/iq2000.c (compute_frame_size): Update.
9942 (iq2000_expand_epilogue): Update.
9943 * config/mt/mt.h (save_direction): Update.
9944 * config/mn10300/mn10300.c (mn10300_function_value): Update.
9945 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9946 (ia64_secondary_reload_class): Update.
9947 * config/m68k/m68k.c (m68k_save_reg): Update.
9948 (m68k_expand_prologue): Update.
9949 (m68k_expand_epilogue): Update.
9950 (legitimize_pic_address): Update.
9951 * config/rs6000/rs6000.c (rs6000_got_register): Update.
9952 (first_reg_to_save): Update.
9953 (first_altivec_reg_to_save): Update.
9954 (compute_vrsave_mask): Update.
9955 (compute_save_world_info): Update.
9956 (rs6000_stack_info): Update.
9957 (spe_func_has_64bit_regs_p): Update.
9958 (rs6000_ra_ever_killed): Update.
9959 (rs6000_emit_eh_reg_restore): Update.
9960 (rs6000_emit_allocate_stack): Update.
9961 (rs6000_emit_prologue): Update.
9962 (rs6000_emit_epilogue): Update.
9963 (rs6000_output_function_epilogue): Update.
9964 (output_profile_hook): Update.
9965 (rs6000_elf_declare_function_name): Update.
9966 * config/rs6000/rs6000.h (rs6000_args): Update.
9967 * config/rs6000/rs6000.md: Update.
9968 * config/mcore/mcore.c (mcore_expand_prolog): Update.
9969 * config/arc/arc.c (arc_output_function_epilogue): Update.
9970 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9971 * config/darwin.c (machopic_function_base_name): Update.
9972 * config/score/score3.c (score3_compute_frame_size): Update.
9975 (score3_epilogue): Update.
9976 * config/score/score7.c (score7_compute_frame_size): Update.
9977 (score7_prologue): Update.
9978 (score7_epilogue): Update.
9979 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9980 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9981 * config/arm/arm.c (use_return_insn): Update.
9982 (require_pic_register): Update.
9983 (arm_load_pic_register): Update.
9984 (arm_compute_save_reg0_reg12_mask): Update.
9985 (arm_compute_save_reg_mask): Update.
9986 (thumb1_compute_save_reg_mask): Update.
9987 (output_return_instruction): Update.
9988 (arm_output_function_prologue): Update.
9989 (arm_output_epilogue): Update.
9990 (arm_get_frame_offsets): Update.
9991 (arm_expand_prologue): Update.
9992 (thumb_pushpop): Update.
9993 (thumb_exit): Update.
9994 (thumb1_expand_prologue): Update.
9995 (thumb1_expand_epilogue): Update.
9996 (arm_unwind_emit): Update.
9997 (arm_output_fn_unwind): Update.
9998 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9999 * config/arm/arm.md: Update.
10000 * config/pa/pa.md: Update.
10001 * config/pa/pa.c (legitimize_pic_address): Update.
10002 (compute_frame_size): Update.
10003 (hppa_expand_prologue): Update.
10004 (hppa_expand_epilogue): Update.
10005 (borx_reg_operand): Update.
10006 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
10007 (HARD_REGNO_RENAME_OK): Update.
10008 * config/mips/mips.c (mips_global_pointer): Update.
10009 (mips_save_reg_p): Update.
10010 (mips_compute_frame_info): Update.
10011 (mips_frame_pointer_required): Update.
10012 (mips_expand_prologue): Update.
10013 (mips_expand_epilogue): Update.
10014 (mips_can_use_return_insn): Update.
10015 (mips_reorg_process_insns): Update.
10016 * config/v850/v850.c (compute_register_save_size): Update.
10017 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
10018 * config/mmix/mmix.c (along): Update.
10019 (mmix_expand_epilogue): Update.
10020 * config/bfin/bfin.c (legitimize_pic_address): Update.
10021 (must_save_p): Update.
10022 (stack_frame_needed_p): Update.
10023 (add_to_reg): Update.
10024 (bfin_expand_prologue): Update.
10025 * stmt.c (expand_asm_operands): Update.
10026 * reload1.c (reload): Update.
10027 (init_elim_table): Update.
10029 2008-04-25 Bob Wilson <bob.wilson@acm.org>
10031 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
10033 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
10035 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
10036 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
10037 (mov<mode>): Removed.
10038 (*movv4sf_internal): Likewise.
10039 (*movv2df_internal): Likewise.
10041 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
10043 * config.gcc (crx-*-elf): Remove deprecation.
10045 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
10047 * config/i386/cygming-crtend.c (register_frame_ctor): Register
10048 __gcc_deregister_frame with atexit.
10049 (deregister_frame_dtor): Remove.
10051 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
10052 Nathan Sidwell <nathan@codesourcery.com>
10054 * config/rs6000/rs6000.opt (mspe): Remove Var property.
10056 * config/rs6000/rs6000.h (rs6000_spe): Declare.
10057 (rs6000_isel): Likewise.
10058 * config/rs6000/rs6000.c (rs6000_spe): New variable.
10059 (rs6000_isel): New variable.
10060 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
10062 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10065 * c-common.c (handle_vector_size_attribute): Call
10066 lang_hooks.types.reconstruct_complex_type instead of
10067 reconstruct_complex_type.
10068 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
10069 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
10070 * langhooks.h (struct lang_hooks_for_types): Add
10071 reconstruct_complex_type hook.
10072 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10073 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10075 2008-04-24 Richard Guenther <rguenther@suse.de>
10077 * c-common.h (check_builtin_function_arguments): Declare.
10078 * c-common.c (validate_nargs): New function.
10079 (check_builtin_function_arguments): Likewise.
10080 * c-typeck.c (build_function_call): Call
10081 check_builtin_function_arguments.
10082 * builtins.c (fold_builtin_classify): Remove error reporting code.
10083 (fold_builtin_unordered_cmp): Likewise.
10084 (fold_builtin_1): Likewise.
10085 (fold_builtin_n): Likewise.
10087 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10089 PR tree-optimization/36008
10090 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10091 the original op1, rather than delta by step.
10093 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
10094 Sebastian Pop <sebastian.pop@amd.com>
10096 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10097 eliminate_local_variables_stmt, eliminate_local_variables,
10098 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10099 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10100 of code delimited by two edges in the CFG.
10101 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10102 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
10103 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
10104 the case of parallelisation of reductions.
10105 (expr_invariant_in_region_p): New.
10107 * tree-flow.h (gather_blocks_in_sese_region): Declared.
10108 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10110 2008-04-24 Ira Rosen <irar@il.ibm.com>
10111 Richard Guenther <rguenther@suse.de>
10113 PR tree-optimization/36034
10114 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10115 incapable of dealing with loads with gaps.
10117 2008-04-24 Rafael Espindola <espindola@google.com>
10119 * tree-flow.h (vrp_evaluate_conditional): Change signature.
10120 * tree-ssa-propagate.c (fold_predicate_in): Update call to
10121 vrp_evaluate_conditional.
10122 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
10123 (vrp_evaluate_conditional): Split the cond argument.
10124 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10125 (simplify_stmt_for_jump_threading): Update call to
10126 vrp_evaluate_conditional.
10128 2008-04-24 Ira Rosen <irar@il.ibm.com>
10130 PR tree-optimization/35982
10131 * tree-vect-analyze.c (vect_check_interleaving): Check that the
10132 interleaved data-refs are of the same type.
10134 2008-04-24 Danny Smith <dannysmith@users.net>
10136 * c-format.c (check_format_info_main): Use strncmp rather than a
10137 magic prefix to handle multichar length specs.
10138 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10139 Don't prefix "I64" and "I32" with '\0'.
10141 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10144 * config/i386/i386.c (init_cumulative_args): Don't pass anything
10145 in registers for -m32 only if stdarg_p (fntype).
10147 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
10149 PR rtl-optimization/36006
10150 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10151 temp to op0 in order to avoid invalid rtx sharing.
10153 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
10155 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
10156 check TREE_INVARIANT.
10157 * tree-gimple.c (is_gimple_address): New.
10158 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10159 * tree-gimple.h (is_gimple_address): New.
10160 * tree.h (decl_address_invariant_p): New.
10161 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10162 (build_string): Likewise.
10163 (decl_address_invariant_p): New, from is_gimple_invariant_address.
10164 (tree_invariant_p_1): Likewise.
10165 (save_expr): Use it.
10166 (tree_invariant_p): New.
10167 (skip_simple_arithmetic): Use it.
10168 (stabilize_reference_1): Use it.
10169 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10171 (build1_stat): Drop code to compute TREE_INVARIANT.
10172 (build2_stat): Drop code to compute TREE_INVARIANT.
10173 (build3_stat): Drop code to compute TREE_INVARIANT.
10174 (build4_stat): Drop code to compute TREE_INVARIANT.
10175 (build5_stat): Drop code to compute TREE_INVARIANT.
10176 (build7_stat): Drop code to compute TREE_INVARIANT.
10177 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10178 * tree.h (struct tree_base): Remove invariant_flag.
10179 (TREE_INVARIANT): Remove.
10180 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10181 (fold_builtin_expect): Check TREE_CONSTANT.
10182 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10183 * c-tree.h (c_expr_to_decl): Drop third parameter.
10184 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10185 (build_c_cast): Don't set TREE_INVARIANT.
10186 (pop_init_level): Don't set TREE_INVARIANT.
10187 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10188 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10190 (gimplify_init_constructor): Don't set TREE_INVARIANT.
10191 (gimplify_addr_expr): Adjust comment.
10192 * tree-mudflap.c (mf_build_string):
10193 * print-tree.c (print_node): Don't print TREE_INVARIANT.
10194 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10195 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10196 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10197 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10198 * langhooks.h (struct lang_hooks): Drop third parameter from
10201 2008-04-23 Richard Guenther <rguenther@suse.de>
10203 PR tree-optimization/27799
10204 PR tree-optimization/32921
10205 PR tree-optimization/32624
10206 * tree-ssa-structalias.c (merge_smts_into): Only merge the
10207 SMTs aliases and the tag itself into the solution.
10208 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10209 merge the points-to solution back into the SMT aliases.
10210 (may_alias_p): Use alias_set_subset_of instead of
10211 aliases_conflict_p. A pointer which points to
10212 memory with alias set zero may access any variable.
10214 2008-04-23 Richard Guenther <rguenther@suse.de>
10216 * alias.c (alias_set_subset_of): Correctly handle asking
10217 if zero is a subset of an alias set with zero child.
10218 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10219 (compute_flow_insensitive_aliasing): Correctly walk all
10220 pointers. Do not unnecessarily union sets.
10222 2008-04-23 Richard Guenther <rguenther@suse.de>
10224 PR middle-end/36021
10225 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10227 2008-04-22 Tomas Bily <tbily@suse.cz>
10229 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10231 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10233 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10234 * tree-ssa-structalias.c (get_constraint_for): Likewise.
10235 * tree-inline.c (estimate_num_insns_1): Likewise.
10236 * varasm.c (const_hash_1, compare_constant, copy_constant)
10237 (compute_reloc_for_constant, output_addressed_constants): Likewise.
10238 * emit-rtl.c (component_ref_for_mem_expr)
10239 (set_mem_attributes_minus_bitpos): Likewise.
10240 * expr.c (highest_pow2_factor, expand_expr_real_1, )
10241 (is_aligning_offset): Likewise.
10242 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10243 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10244 * dojump.c (do_jump): Likewise.
10245 * builtins.c (get_pointer_alignment, get_memory_rtx)
10246 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10247 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10249 2008-04-23 Jakub Jelinek <jakub@redhat.com>
10251 PR rtl-optimization/36017
10252 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10253 expanding the library call.
10255 2008-04-22 Ian Lance Taylor <iant@google.com>
10257 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10258 than size_in_bytes.
10260 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
10262 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10263 of LR/CTR moves for Power6.
10265 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
10267 PR middle-end/36003
10268 * passes.c (init_optimization_passes): Remove
10269 pass_fast_rtl_byte_dce.
10271 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
10274 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10275 builtin functions to generate faster code.
10276 (_mm_cvtpu16_ps): Ditto.
10277 (_mm_cvtpi32x2_ps): Ditto.
10279 2008-04-22 Nick Clifton <nickc@redhat.com>
10281 * common.opt (ftree-loop-distribution): Add Optimization
10284 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10285 (frv_expand_builtin_va_start): Likewise.
10287 * config/arm/arm.c (thumb_find_work_register): Fix location of
10288 argument register count.
10290 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10292 Support scheduling for ColdFire V1 and V3 microarchitecture.
10293 Improve scheduling of multiplication instructions.
10295 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
10296 (mac): New instruction attribute.
10297 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10298 (m68k_sched_mac): New variable.
10299 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10300 Handle cfv1 and cfv3.
10301 (max_insn_size): New static variable.
10302 (struct _sched_ib): New type.
10303 (sched_ib): New static variable.
10304 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10305 to fields of 'struct _sched_ib sched_ib'. Update all uses.
10306 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10308 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10309 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
10310 new variables. Update.
10311 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10312 Add modeling of cfv3 instruction buffer. Update.
10313 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10314 * config/m68k/m68k.h (TUNE_CFV3): New macro.
10315 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10316 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10317 a particular reservation applies to.
10318 (type2): Reorganize attribute values. Rename alu to alu_reg,
10319 alu_l to alu, move_l to omove. Join move to alu. Split mul
10320 to mul_l and mul_w.
10321 (cf_ib_*): Simplify description of instruction buffer.
10322 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10323 (cf_mem): Split into cf_mem1 and cf_mem2.
10324 (cf_v2_move_??): Rename to cfv12_alu_??.
10325 (cf_v2_move_l_??): Rename to cfv12_omove_??.
10326 (cf_v2_mul_??): Remove reservations.
10327 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10328 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10329 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10331 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10332 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10333 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10334 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10335 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10336 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10337 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10338 expansions of the above reservations for instructions of sizes
10341 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10343 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10345 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
10347 * coverage.c: Include tree-pass.h.
10348 (coverage_counter_alloc): Print da_file_name to the dump file.
10350 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
10352 * sbitmap.c (sbitmap_range_empty_p): New function.
10353 * sbitmap.h (sbitmap_range_empty_p): New function.
10354 * bitmap.h: Now includes obstack.h.
10356 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
10357 Kenneth Zadeck <zadeck@naturalbridge.com>
10359 * dbgcnt.def (ra_byte_scan): Added.
10360 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10361 when the last hit happens for a counter.
10362 * timevar.def (TV_DF_BYTE_LR): New variable.
10363 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10364 * passes.c (pass_fast_rtl_byte_dce): New pass.
10365 * fwprop.c (update_df): Added mode to call df_ref_create.
10366 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10367 DF_REF_EXTRACT_OFFSET.
10368 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10369 DF_BYTE_LR_OUT, df_byte_lr): New macro.
10371 (df_ref_extract): Added mode field.
10372 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10373 DF_REF_EXTRACT_OFFSET.
10374 (DF_REF_EXTRACT_MODE): New macro.
10375 (df_byte_lr_bb_info): New structure.
10376 (df_print_byte_regset, df_compute_accessed_bytes,
10377 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10378 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10379 df_byte_lr_simulate_uses,
10380 df_byte_lr_simulate_artificial_refs_at_top,
10381 df_byte_lr_simulate_artificial_refs_at_end,
10382 df_compute_accessed_bytes): New function.
10383 (df_ref_create): Add parameter.
10384 (df_byte_lr_get_bb_info): New inline function.
10385 * df-scan.c (df_ref_record, df_uses_record,
10386 df_ref_create_structure): Added mode parameter.
10387 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10388 df_defs_record, df_uses_record, df_get_conditional_uses,
10389 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10390 df_entry_block_defs_collect, df_exit_block_uses_collect):
10391 Added mode parameter to calls to df_ref_record, df_uses_record,
10392 df_ref_create_structure.
10393 (df_ref_equal_p, df_ref_compare): Added test for modes.
10394 (df_ref_create_structure): Added code to set mode. Renamed
10395 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10396 DF_REF_EXTRACT_OFFSET.
10397 * df-core.c (df_print_byte_regset): New function.
10398 * df-byte-scan.c: New file.
10399 * df-problems.c (df_rd_transfer_function): Removed unnecessary
10400 calls to BITMAP_FREE.
10401 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10402 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10403 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10404 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10405 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10406 df_byte_lr_local_compute, df_byte_lr_init,
10407 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10408 df_byte_lr_transfer_function, df_byte_lr_free,
10409 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10410 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10411 df_byte_lr_simulate_uses,
10412 df_byte_lr_simulate_artificial_refs_at_top,
10413 df_byte_lr_simulate_artificial_refs_at_end): New function.
10414 * dce.c (byte_dce_process_block): New function.
10415 (dce_process_block): au is now passed in rather than computed
10416 locally. Changed loops that look at artificial defs to not look
10417 for conditional or partial ones, because there never are any.
10418 (fast_dce): Now is able to drive byte_dce_process_block or
10419 dce_process_block depending on the kind of dce being done.
10420 (rest_of_handle_fast_dce): Add parameter to fast_dce.
10421 (rest_of_handle_fast_byte_dce): New function.
10422 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10423 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10425 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
10428 * gcc.h: Added fortran options that take arguments to
10429 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10432 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
10434 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10435 scalarization if on the LHS and not a full access.
10437 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10439 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10441 2008-04-18 Rafael Espindola <espindola@google.com>
10443 * tree-vrp.c (find_case_label_index): Fix the binary search.
10444 (find_case_label_range): New.
10445 (vrp_visit_switch_stmt): Use find_case_label_range.
10446 (simplify_switch_using_ranges): Use find_case_label_range.
10448 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
10450 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10451 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10453 2008-04-18 Tom Tromey <tromey@redhat.com>
10456 * doc/cpp.texi (Implementation-defined behavior): Mention
10459 2008-04-18 Ian Lance Taylor <iant@google.com>
10461 * fold-const.c (pointer_may_wrap_p): New static function.
10462 (fold_comparison): Add another test for pointer overflow. Use
10463 pointer_may_wrap_p to disable some false positives.
10465 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
10467 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10468 (fname_as_string): Match updated cpp_interpret_string prototype.
10469 (fix_string_type): Support char16_t* and char32_t*.
10470 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10471 derivative) nodes. Register as builtin if C++0x.
10472 (c_parse_error): Support CPP_CHAR{16,32}.
10473 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10474 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10475 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10476 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10477 CTI_CHAR32_ARRAY_TYPE>: New elements.
10478 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10479 char32_type_node, signed_char32_type_node, char16_array_type_node,
10480 char32_array_type_node): New defines.
10481 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10482 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10483 (lex_string): Support CPP_STRING{16,32}, match updated
10484 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10485 (lex_charconst): Support CPP_CHAR{16,32}.
10486 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10487 and CPP_STRING{16,32}.
10489 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10492 * aclocal.m4: Regenerate.
10493 * configure: Regenerate.
10495 2008-04-18 Jan Hubicka <jh@suse.cz>
10497 * except.c (dw2_size_of_call_site_table,
10498 sjlj_size_of_call_site_table): Use vector API for call_site_record.
10500 * cgraphbuild.c (build_cgraph_edges): Update.
10501 * tree-pass.h: Update comment.
10502 * final.c (leaf_function_p): Update.
10503 (leaf_renumber_regs): Update.
10504 (rest_of_clean_state): Update.
10505 * omp-low.c (expand_omp_parallel): Update.
10506 * ipa-reference.c (analyze_function): Update.
10507 * reorg.c (find_end_label): Update.
10508 (optimize_skip): Update.
10509 (fill_simple_delay_slots): Update.
10510 (fill_simple_delay_slots): Update.
10511 (make_return_insns): Update.
10512 (dbr_schedule): Update.
10513 * gimple-low.c (record_vars_into): Update.
10514 * cfgbuild.c (make_edges): Update.
10515 * function.c (assign_stack_local): Update.
10516 (assign_parm_adjust_stack_rtl): Update.
10517 (locate_and_pad_parm): Update.
10518 (allocate_struct_function): Do not initialize stack_alignment_needed
10519 and preferred_stack_boundary here.
10520 (stack_protect_prologue): Update.
10521 (stack_protect_epilogue): Update.
10522 (expand_function_start): Initialize stack_alignment_needed,
10523 preferred_stack_boundary and max_jumptable_ents.
10524 (expand_function_end): Update.
10525 (free_after_compilation): Do not NULLify epilogue_delay_list.
10526 * function.h (struct rtl_data): Add stack_protect_guard,
10527 stack_alignment_needed,
10528 preferred_stack_boundary, epilogue_delay_list.
10529 (struct function): Remove value_histograms, stack_alignment_needed,
10530 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10532 unexpanded_var_list, stack_protect_guard.
10533 (current_function_epilogue_delay_list): Remove.
10534 * ipa-type-escape.c (analyze_function): Update.
10535 * gimplify.c (pop_gimplify_context): Update comment.
10536 * calls.c (expand_call): Update.
10537 (emit_library_call_value_1): Update.
10538 * except.c (set_nothrow_function_flags): Update.
10539 * cfgexpand.c (get_decl_align_unit): Update.
10540 (create_stack_guard): Update.
10541 (estimated_stack_frame_size): Update.
10542 (expand_used_vars): Update.
10543 (tree_expand_cfg): Free histogram earliers, init expansion variables.
10544 * explow.c (allocate_dynamic_stack_space): Update.
10545 * tree-ssa-live.c (remove_unused_locals): Update.
10546 * varasm.c (mark_constant_pool): Update.
10547 * tree-inline.c (remap_decls): Update.
10548 (initialize_cfun): Update.
10549 (declare_return_variable): Update.
10550 (inline_forbidden_p): Update.
10551 (expand_call_inline): Update.
10552 (declare_inline_vars): Update.
10553 (tree_function_versioning): Update.
10554 * tree-flow.h (value_histograms): New.
10555 (VALUE_HISTOGRAMS): New macro.
10556 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10558 * tree-cfg.c (set_bb_for_stmt): Update.
10559 (replace_by_duplicate_decl): Update.
10560 (move_block_to_fn): Update.
10561 (new_label_mapper): Update.
10562 (dump_function_to_file): Update.
10563 * ipa-struct-reorg.c (build_data_structure): Update.
10564 * cfgrtl.c (print_rtl_with_bb): Update.
10565 * reload1.c (reload): Update.
10567 * config/i386/i386.c (setup_incoming_varargs_64,
10568 ix86_compute_frame_layout): Update.
10569 * config/arc/arc.c (arc_output_function_epilogue): Update.
10571 2008-04-18 Marius Strobl <marius@FreeBSD.org>
10573 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10574 for FreeBSD as well.
10575 * gthr-posix95.h: Likewise.
10577 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
10579 PR rtl-optimization/35838
10580 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10581 out the byte offset of the first subreg.
10583 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
10585 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10586 to split_ti instead of three separate calls with single member arrays.
10587 (subti3 splitter): Ditto.
10588 (adddi3 splitter): Ditto with split_di.
10589 (subdi3 splitter): Ditto.
10590 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10591 two separate calls with single member arrays. Swap match_dup
10592 operands 1 and 2 to better fit into the array.
10593 (negdi2 splitter): Ditto with split_di.
10594 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
10595 two separate calls with single member arrays. Swap match_dup operands
10596 6 and 7 to better fit into the array.
10598 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
10600 * config/i386/i386.c (sse_builtin_type): New.
10601 (bdesc_sse_args): Likewise.
10602 (bdesc_sse_3arg): Removed.
10603 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10604 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10605 IX86_BUILTIN_ROUNDPS.
10606 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
10607 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
10608 IX86_BUILTIN_ROUNDPS.
10609 (ix86_expand_sse_4_operands_builtin): Removed.
10610 (ix86_expand_sse_operands_builtin): New.
10611 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10612 and CODE_FOR_sse4_1_roundps.
10613 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10614 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
10616 2008-04-17 Alan Modra <amodra@bigpond.net.au>
10619 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10620 regs before frame pop when needed. If use_backchain_to_restore_sp
10621 then load backchain into a temp reg to restore vr and vrsave. Add
10622 code to restore vr after frame pop if possible.
10624 2008-04-17 Richard Guenther <rguenther@suse.de>
10626 * tree-vn.c (expressions_equal_p): Do not check type
10627 equality or compatibility before calling operand_equal_p.
10628 * fold-const.c (operand_equal_p): Check equivalence of
10629 integer constants before bailing out due to signedness or
10630 precision differences.
10631 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10632 spurious differences in type qualification. Ignore types
10633 for COMPONENT_REFs at all.
10635 2008-04-17 Christian Bruel <christian.bruel@st.com>
10637 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10638 msw_skip comparison.
10640 2008-04-16 Jakub Jelinek <jakub@redhat.com>
10643 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10646 PR tree-optimization/35899
10647 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10648 rather than TREE_OPERAND.
10650 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
10653 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10654 temporary registers. Change operand predicate to general_operand.
10655 (remainderxf3): Ditto.
10657 2008-04-16 Richard Guenther <rguenther@suse.de>
10659 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10660 * tree-affine.c (aff_combination_expand): Look through some
10663 2008-04-15 Doug Kwan <dougkwan@google.com>
10665 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10667 * tree-pretty-print.c (dump_generic_node): Ditto.
10668 * final.c (output_addr_const): Ditto.
10669 * dwarf2out.c (output_cfi): Ditto.
10670 * c-pretty-print.c (pp_c_integer_constant): Ditto.
10671 * print-rtl.c (print_rtx): Ditto.
10672 * print-tree.c (print_node_brief, print_node): Ditto.
10673 * c-common.c (match_case_to_enum_1): Ditto.
10674 * sched-vis.c (print_value): Ditto.
10675 * config/i386/i386.c (print_operand): Cast to long unsigned int
10678 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
10679 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
10680 MS Windows VirtualProtect function.
10682 2008-04-15 Jan Hubicka <jh@suse.cz>
10684 * gengtype.c (write_root): Param_is argument is OK.
10685 * expr.c (expand_expr_real_1): Update call of get_exception_*.
10686 * function.h: Include varray.h
10687 (rtl_eh): New stucture based on except.c one.
10688 (call_site_record): New forward declaration and vector type.
10689 * calls.c (emit_call_1): Do not call
10690 note_current_region_may_contain_throw.
10691 * except.c (eh_status): Remove cur_region, try_region since they are
10693 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10694 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10695 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10696 Remove call_site_data_used, call_site_data_size.
10697 Turn call_site_record into vector in function.h.
10698 (note_current_region_may_contain_throw): Remove.
10699 (get_exception_pointer, get_exception_filter): Do not take struct
10700 function argument; update.
10701 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10702 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10703 build_post_landing_pads, dw2_build_landing_pads,
10704 sjlj_assign_call_site_values, sjlj_mark_call_sites,
10705 sjlj_emit_function_enter, sjlj_emit_function_enter,
10706 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10707 sjlj_build_landing_pads, finish_eh_generation,
10708 remove_exception_handler_label, remove_eh_handler,
10709 maybe_remove_eh_handler, add_reachable_handler,
10710 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10711 add_action_record, collect_one_action_chain, add_call_site,
10712 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10713 sjlj_output_call_site_table, output_function_exception_table,
10714 * except.h (note_current_region_may_contain_throw): Remove
10715 (get_exception_pointer, get_exception_filter): Do not take struct
10717 * Makefile.in (GTFILES): Put varargs before struct function.
10719 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10721 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10722 punt for STRING_CST.
10723 (get_constraint_for): Deal with STRING_CST here instead.
10725 2008-04-15 Richard Guenther <rguenther@suse.de>
10727 * tree-ssa-propagate.c (substitute_and_fold): Substitute
10728 statements in a basic-block with a backward walk. Do not
10729 substitute into dead statements but instead remove those.
10731 2008-04-15 Richard Guenther <rguenther@suse.de>
10733 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10734 to zero, thus disable creation of SFTs.
10736 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
10738 * tree-predcom.c (suitable_reference_p): Return false if the
10739 reference can throw.
10741 2008-04-15 Jakub Jelinek <jakub@redhat.com>
10744 * c-decl.c (finish_decl): If extern or static var has variable
10745 size, set TREE_TYPE (decl) to error_mark_node.
10747 2008-04-15 Rafael Espindola <espindola@google.com>
10749 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10752 2008-04-15 Richard Guenther <rguenther@suse.de>
10754 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10755 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10756 (visit_reference_op_load): Do walk vuse-vdef chains on
10757 vn_reference_lookup.
10758 (visit_reference_op_store): But do not here.
10759 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10760 vn_reference_lookup.
10761 (vn_lookup_with_vuses): But do so here.
10763 2008-04-14 Ian Lance Taylor <iant@google.com>
10765 * fold-const.c (fold_overflow_warning): Remove assertion.
10767 2008-04-15 Ben Elliston <bje@au.ibm.com>
10769 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10770 temp1 local variables.
10772 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
10775 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10776 ".text.unlikely" section as executable.
10778 2008-04-14 James E. Wilson <wilson@tuliptree.org>
10780 * config/ia64/ia64.c (rtx_needs_barrier): Handle
10781 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10782 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10783 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10784 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10785 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10786 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10788 2008-04-14 Ian Lance Taylor <iant@google.com>
10790 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10791 * fold-const.c (fold_comparison): If appropriate, test
10792 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10793 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10794 reassociating a pointer type.
10795 * doc/invoke.texi (Optimize Options): Document that
10796 -fstrict-overflow applies to pointer wraparound.
10798 2008-04-13 Jan Hubicka <jh@suse.cz>
10800 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10802 2008-04-12 Andrew Pinski <pinskia@gmail.com>
10804 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10805 we are going to "save the world".
10807 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
10809 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10810 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10811 operand 0 constraint, not "=".
10813 2008-04-11 James E. Wilson <wilson@tuliptree.org>
10815 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10817 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10819 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10820 of size of positions_needed * CHAR_BIT.
10822 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
10824 PR middle-end/35897
10825 * dse.c (store_info): Change positions_needed to unsigned
10827 (lowpart_bitmask): New.
10828 (record_store): Cast to unsigned HOST_WIDE_INT for
10829 positions_needed. Assert width <= size of positions_needed *
10830 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
10831 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
10832 lowpart_bitmask to set mask.
10834 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
10836 * config/bfin/constraints.md: New file.
10837 * config/bfin/bfin.md: Include it.
10838 (adddi3): Use satisfies_constraint functions instead of the old macros.
10839 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10840 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10841 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10842 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10843 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10844 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10845 EXTRA_CONSTRAINT): Delete.
10846 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10847 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10849 * config/bfin/bfin.c: Include "tm-constrs.h".
10850 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10851 Use satisfies_constraint functions instead of the old macros.
10852 * doc/md.texi (Blackfin Constraints): Update file name reference.
10854 2008-04-11 Richard Guenther <rguenther@suse.de>
10856 PR tree-optimization/35869
10857 * tree-vrp.c (execute_vrp): Move switch statement update after
10858 jump threading. Schedule another cfg cleanup run.
10860 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
10863 * attribs.c (decl_attributes): Return early on errorneous node.
10865 2008-04-10 Oleg Ryjkov <olegr@google.com>
10867 * tree.h (struct tree_base): Added a new flag default_def_flag.
10868 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10870 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
10872 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10874 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10877 * pa.md: Define mode iterator P. Define mode attribute dwc.
10878 (dcacheflush): Update pattern to use iterator P and attribute dwc.
10879 (icacheflush): Likewise.
10880 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10881 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10883 2008-04-11 Ben Elliston <bje@au.ibm.com>
10885 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10887 2008-04-10 Rafael Espindola <espindola@google.com>
10889 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10890 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10891 (extract_range_from_expr): The same.
10893 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10895 * config/mips/mips.md (GPR2): New mode iterator.
10896 (seq): Add comment.
10897 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10898 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10899 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10900 Rewrite these to take two modes, the mode of comparison and the
10901 mode of the destination.
10902 * config/mips/mips.c (mips_expand_scc): Instead of having
10903 paradoxical subreg as destination, expand "narrowing" scc if mode
10904 of comparison is SI and target is requested in DI mode.
10905 (mips_emit_int_order_test): Update comment. Make mode of
10906 comparison match CMP0 rather than TARGET. When creating inverse
10907 target use mode of TARGET.
10909 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
10911 * gcov-dump.c (tag_summary): Only print summaries for the first
10912 GCOV_COUNTERS_SUMMABLE counters.
10914 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
10916 * config/i386/i386.md (absneg): New code iterator.
10917 (absnegprefix): New code attribute.
10918 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10919 patterns using absneg code iterator.
10920 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10921 using absneg code iterator.
10922 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10923 *neg<mode>2 patterns using absneg code iterator.
10924 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10925 *negextendsfdf2 patterns using absneg code iterator.
10926 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10927 *negextendsfxf2 patterns using absneg code iterator.
10928 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10929 *negextendsfdf2 patterns using absneg code iterator.
10930 * config/i386/sse.md (<code><mode>2): Macroize expander from
10931 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10933 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
10935 * config/s390/s390.h: Remove the remains of the recent search
10936 & replace action of current_function_outgoing_args_size.
10938 2008-04-10 Ira Rosen <irar@il.ibm.com>
10940 PR tree-optimization/35821
10941 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10942 NEW_STMT_LIST is not NULL.
10944 2008-04-09 David Edelsohn <edelsohn@gnu.org>
10947 * toplev.c (process_options): Remove -ffunction-sections debugging
10950 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
10952 PR middle-end/PR28690
10953 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10954 than gen_rtx_fmt_ee to perform more canonicalizations.
10956 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10959 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10961 2008-04-09 Richard Guenther <rguenther@suse.de>
10963 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10964 (dump_function_to_file): Dump function arguments with types.
10966 2008-04-08 Richard Guenther <rguenther@suse.de>
10968 * fold-const.c (fold_widened_comparison): Do not allow
10969 sign-changes that change the result.
10971 2008-04-08 Janis Johnson <janis187@us.ibm.com>
10974 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10975 kinds of indirect references.
10977 2008-04-08 David Edelsohn <edelsohn@gnu.org>
10979 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10980 GNU Fortran language string.
10982 2008-04-08 Rafael Espindola <espindola@google.com>
10984 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10985 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10986 * tree.h (tree_call_nonnegative_warnv_p): New.
10988 2008-04-08 Jan Hubicka <jh@suse.cz>
10990 * function.c (free_after_compilation): Clear out regno_reg_rtx
10993 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
10996 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
10998 PR middle-end/PR28690
10999 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
11000 same precedence as REG_POINTER and MEM_POINTER operands.
11002 2008-04-08 Richard Guenther <rguenther@suse.de>
11004 PR middle-end/35834
11005 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
11006 for adding index to base.
11008 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
11010 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
11011 (MINGW_ENABLE_EXECUTE_STACK): New.
11012 (IN_LIBGCC2): For libgcc include windows.h file for
11013 function declarations.
11015 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
11017 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
11018 and tem2 if tem1 is not a REG or MULT.
11020 2008-04-08 Jan Hubicka <jh@suse.cz>
11022 * function.h (incomming_args): Break out of struct function.
11023 (function_subsections): Break out of struct function.
11024 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
11025 return_rtx and hard_reg_initial_vals from struct function.
11026 Kill inl_max_label_num.
11027 (current_function_pops_args, current_function_args_info,
11028 current_function_args_size, current_function_args_size,
11029 current_function_pretend_args_size,
11030 current_function_outgoing_args_size,
11031 current_function_internal_arg_pointer, current_function_return_rtx):
11032 Kill compatibility accestor macros.
11033 * builtins.c (expand_builtin_apply_args_1): Update.
11034 (expand_builtin_next_arg): Update.
11035 * df-scan.c (df_get_call_refs): Update.
11036 * dbxout.c (dbxout_function_end): Update.
11037 * dwarf2out.c (dwarf2out_switch_text_section): Update.
11038 (output_line_info): Update.
11039 (secname_for_decl): Update.
11040 (dwarf2out_var_location): Update.
11041 * function.c (free_after_compilation): Update.
11042 (assign_parm_find_stack_rtl): Update.
11043 (assign_parms): Update.
11044 (expand_dummy_function_end): Update.
11045 (expand_function_end): Update.
11046 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
11047 (expand_call): Update.
11048 (emit_library_call_value_1): Update.
11049 (store_one_arg): Update.
11050 * varasm.c (initialize_cold_section_name): Update.
11051 (unlikely_text_section): Update.
11052 (unlikely_text_section_p): Update.
11053 (assemble_start_function): Update.
11054 (assemble_end_function): Update.
11055 (default_section_type_flags): Update.
11056 (switch_to_section): Update.
11057 * integrate.c (set_decl_abstract_flags): Update.
11058 (get_hard_reg_initial_val): Update.
11059 (has_hard_reg_initial_val): Update.
11060 (allocate_initial_values): Update.
11061 * resource.c (init_resource_info): Update.
11062 * config/alpha/alpha.c (NUM_ARGS): Update.
11063 (direct_return): Update.
11064 (alpha_va_start): Update.
11065 (alpha_sa_size): Update.
11066 (alpha_initial_elimination_offset): Update.
11067 (alpha_expand_prologue): Update.
11068 (alpha_start_function): Update.
11069 (alpha_expand_epilogue): Update.
11070 (unicosmk_initial_elimination_offset):
11071 * config/alpha/alpha.md (call expander): Update.
11072 * config/s390/s390.c (s390_register_info): Update.
11073 (s390_register_info): Update.
11074 (s390_frame_info): Update.
11075 (s390_initial_elimination_offset): Update.
11076 (s390_build_builtin_va_list): Update.
11077 (s390_va_start): Update.
11078 * config/spu/spu.c (direct_return): Update.
11079 (spu_expand_prologue): Update.
11080 (spu_initial_elimination_offset): Update.
11081 (spu_build_builtin_va_list): Update.
11082 (spu_va_start): Update.
11083 * config/sparc/sparc.c (sparc_init_modes): Update.
11084 (sparc_compute_frame_size): Update.
11085 (function_value): Update.
11086 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11087 * config/i386/i386.md (return expander): Update.
11088 * config/i386/i386.c (ix86_va_start): Update.
11089 (ix86_can_use_return_insn_p): Update.
11090 (ix86_compute_frame_layout): Update.
11091 (ix86_expand_epilogue): Update.
11092 * config/sh/sh.c (output_stack_adjust): Update.
11093 (calc_live_regs): Update.
11094 (sh_expand_prologue): Update.
11095 (sh_builtin_saveregs): Update.
11096 (sh_va_start): Update.
11097 (initial_elimination_offset): Update.
11098 (sh_allocate_initial_value): Update.
11099 (sh_function_ok_for_sibcall): Update.
11100 (sh_get_pr_initial_val): Update.
11101 * config/sh/sh.md (return expander): Update.
11102 * config/avr/avr.c (frame_pointer_required_p): UPdate.
11103 * config/crx/crx.c (crx_compute_frame): UPdate.
11104 (crx_initial_elimination_offset): UPdate.
11105 * config/xtensa/xtensa.c (compute_frame_size): Update
11106 (xtensa_builtin_saveregs): Update.
11107 (xtensa_va_start): Update.
11108 (order_regs_for_local_alloc): Update.
11109 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11110 (xstormy16_expand_builtin_va_start): Update.
11111 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11112 * config/m68hc11/m68hc11.md (return expanders): Update.
11113 * config/m68hc11/m68hc11.c (expand_prologue): Update.
11114 (expand_epilogue): Update.
11115 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11116 (cris_simple_epilogue): Update.
11117 (cris_expand_prologue): Update.
11118 (cris_expand_epilogue): Update.
11119 * config/iq2000/iq2000.c (iq2000_va_start): Update.
11120 (compute_frame_size): Update.
11121 * config/mt/mt.c (mt_compute_frame_size): Update.
11122 * config/mn10300/mn10300.c (expand_prologue): Update.
11123 (expand_epilogue): Update.
11124 (initial_offset): Update.
11125 (mn10300_builtin_saveregs):
11126 * config/mn10300/mn10300.md (return expander): Update.
11127 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11128 (ia64_initial_elimination_offset): Update.
11129 (ia64_initial_elimination_offset): Update.
11130 (ia64_expand_prologue): Update.
11131 * config/m68k/m68k.md (return expander): Update.
11132 * config/rs6000/rs6000.c (rs6000_va_start): Update.
11133 (rs6000_stack_info): Update.
11134 * config/mcore/mcore.c (layout_mcore_frame): Update.
11135 (mcore_expand_prolog): Update.
11136 * config/arc/arc.c (arc_compute_frame_size): Update.
11137 * config/score/score3.c (score3_compute_frame_size): Update.
11138 * config/score/score7.c (score7_compute_frame_size): Update.
11139 * config/arm/arm.c (use_return_insn): Update.
11140 (thumb_find_work_register): Update.
11141 (arm_compute_save_reg_mask): Update.
11142 (arm_output_function_prologue): Update.
11143 (arm_output_epilogue): Update.
11144 (arm_size_return_regs): Update.
11145 (arm_get_frame_offsets): Update.
11146 (arm_expand_prologue): Update.
11147 (thumb_exit): Update.
11148 (thumb_unexpanded_epilogue): Update.
11149 (thumb1_output_function_prologue): Update.
11150 * config/pa/pa.md (return expander): Update.
11151 * config/pa/pa.c (compute_frame_size): Update.
11152 (hppa_builtin_saveregs): Update.
11153 * config/mips/mips.c (mips_va_start): Update.
11154 (mips16_build_function_stub): Update.
11155 (mips_compute_frame_info): Update.
11156 (mips_restore_gp): Update.
11157 (mips_output_function_prologue): Update.
11158 (mips_expand_prologue): Update.
11159 * config/v850/v850.c (compute_frame_size): Update.
11160 (expand_prologue): * config/mmix/mmix.c (along): update.
11161 (mmix_initial_elimination_offset): update.
11162 (mmix_reorg): update.
11163 (mmix_use_simple_return): update.
11164 (mmix_expand_prologue): update.
11165 (mmix_expand_epilogue): Update.
11166 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11167 (emit_link_insn): Update.
11169 2008-04-08 Anatoly Sokolov <aesok@post.ru>
11171 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11172 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
11174 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
11177 2008-04-07 Jan Hubicka <jh@suse.cz>
11179 * function.h (rtl): Rename to x_rtl.
11180 (crtl): New define.
11181 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11182 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11183 used_temp_slots avail_temp_slots, temp_slot_level,
11184 nonlocal_goto_handler_labels): Update accesstors.
11185 (rtl): New global variable.
11186 (struct function): Move some fileds to rtl_data.
11187 (get_arg_pointer_save_area): Update prototype.
11188 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11189 get_arg_pointer_save_area.
11190 * expr.c (init_expr): Update
11191 * function.c (get_frame_size): Update
11192 (assign_stack_local): Update
11193 (expand_function_end): Update.
11194 (get_art_pointer_save_area): Update
11196 * emit-rtl.c (rtl): Declare.
11197 (regno_reg_rtx): Declare.
11198 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11200 (gen_reg_rtx): Update.
11201 * varasm.c (n_deferred_constatns): Update accestor.
11202 (init_varasm_status): Do not allocate varasm_status.
11203 (force_const_mem, get_pool_size, output_constant_pool): Update.
11204 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11205 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11206 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11207 * sparc/sparc.h (INIT_EXPANDERS): Update.
11208 * ia64/ia64.h (INIT_EXPANDERS): Update.
11210 2008-04-07 James E. Wilson <wilson@tuliptree.org>
11212 * reload.c (push_secondary_reload): Add missing break to for loop.
11214 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11216 PR middle-end/PR28690
11217 * rtlanal.c: Update copyright years.
11218 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11219 as REG_POINTER and MEM_POINTER operands.
11220 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11221 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11222 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11223 * gcse.c: Update copyright years.
11224 (pre_delete): Call gen_reg_rtx_and_attrs.
11225 (hoist_code): Likewise.
11226 (build_store_vectors): Likewise.
11227 (delete_store): Likewise.
11228 * loop-invariant.c (move_invariant_reg): Likewise.
11229 Update copyright years.
11231 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
11233 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11234 control string instead of quoted.
11236 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
11238 * doc/rtl.texi: Rewrite of subreg section.
11240 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
11243 * config/i386/i386.c (legitimize_pic_address): Add treating
11244 of dllimport SYM_REF's.
11245 (legitimize_dllimport_symbol): Add prototype.
11247 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11249 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
11250 reference in constructor with non self-referential type.
11252 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11254 Removal of Return with Depressed Stack Pointer support
11255 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11256 (ECF_SP_DEPRESSED): Likewise.
11257 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11258 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11259 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11260 (expand_call): Do not test ECF_SP_DEPRESSED.
11261 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11262 * function.c (keep_stack_depressed): Delete.
11263 (handle_epilogue_set): Likewise.
11264 (update_epilogue_consts): Likewise.
11265 (emit_equiv_load): Likewise.
11266 (thread_prologue_and_epilogue_insns): Remove support for Return with
11267 Depressed Stack Pointer.
11268 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11270 2008-04-06 Richard Guenther <rguenther@suse.de>
11272 PR tree-optimization/35400
11273 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11274 information from SSA_NAMEs.
11276 2008-04-06 Anatoly Sokolov <aesok@post.ru>
11278 * config/avr/avr.h (avr_mega_p): Remove declaration.
11279 (AVR_MEGA): Remove macro.
11280 * config/avr/avr.c (avr_mega_p): Remove variable.
11281 (avr_override_options): Remove inicializion of avr_mega_p.
11282 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11283 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11284 (avr_jump_mode): (Ditto.).
11285 (avr_output_progmem_section_asm_op): (Ditto.).
11286 (avr_asm_init_sections): (Ditto.).
11287 (avr_asm_init_sections): (Ditto.).
11288 (avr_rtx_costs): (Ditto.).
11289 * config/avr/avr.md: (Ditto.).
11290 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11293 2008-04-06 Richard Guenther <rguenther@suse.de>
11295 PR tree-optimization/35842
11296 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11297 is_gimple_invariant_address.
11299 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11301 * gcc.c (default_compilers): Sync Fortran extensions list with
11302 that in fortran/lang-specs.h.
11303 * doc/invoke.texi: Likewise.
11304 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11305 * dwarf2out.c (gen_compile_unit_die): Likewise.
11307 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
11309 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11311 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
11314 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11315 attribute is used for nested functions.
11317 2008-04-05 Jan Hubicka <jh@suse.cz>
11319 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11321 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11323 (dump_files): Update.
11324 (enable_rtl_dump_file): Do not accept letter argument.
11325 * tree-pass.h (dump_file_info): Remove letter argument.
11326 * toplev.c (decode_d_option): Update -da handling.
11327 * toplev.h (enable_rtl_dump_file): Update prototype.
11328 * passes.c (register_one_dump_file): Do not accept IPA argument; work
11329 it out based on pass type.
11330 (register_dump_files_1): Likewise.
11331 (init_optimization_passes): Update register_one_dump_file calls.
11332 (execute_one_pass): Sanity check that IPA passes are called at IPA
11333 level and RTL passes at RTL level.
11334 (execute_pass_list): IPA pass can not be after or subpass of
11336 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11337 disallov RTL subpasses of IPA subpasses.
11339 2008-04-05 Ben Elliston <bje@au.ibm.com>
11341 * tree-cfg.c (need_fake_edge_p): Return false for calls to
11342 builtins that return exactly once and do not throw. Cache call to
11345 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11347 PR rtl-optimization/34916
11348 PR middle-end/35519
11349 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11350 between instruction pairs.
11352 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
11354 * doc/invoke.texi: Document -mbitops for SH.
11355 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11356 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11357 * config/sh/sh.c (print_operand): Add %t operand code.
11358 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11359 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11360 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11361 (extendqihi2): Likewise.
11362 (movqi_i): Likewise.
11363 (insv): Use bset, bclr and bst instructions for SH2A if possible.
11364 (extv): Use bld instruction for SH2A if possible.
11366 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11367 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11368 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11369 (bset.b, bclr.b): Define peepholes.
11370 * config/sh/sh.opt (mbitops): New option.
11372 2008-04-04 Janis Johnson <janis187@us.ibm.com>
11375 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11376 and view convert expression.
11378 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11381 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11383 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
11385 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11387 * config/i386/cpuid.h (bit_AES): New.
11388 (bit_PCLMUL): Likewise.
11390 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11391 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
11392 SSE2 if AES or PCLMUL is enabled.
11393 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11394 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11395 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11396 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11397 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11398 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11399 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11400 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11401 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11402 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11403 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11404 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11405 __builtin_ia32_aeskeygenassist128 and
11406 __builtin_ia32_pclmulqdq128.
11407 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11408 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11409 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
11411 * config/i386/i386.h (TARGET_AES): New.
11412 (TARGET_PCLMUL): Likewise.
11413 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11415 * config/i386/i386.md (UNSPEC_AESENC): New.
11416 (UNSPEC_AESENCLAST): Likewise.
11417 (UNSPEC_AESDEC): Likewise.
11418 (UNSPEC_AESDECLAST): Likewise.
11419 (UNSPEC_AESIMC): Likewise.
11420 (UNSPEC_AESKEYGENASSIST): Likewise.
11421 (UNSPEC_PCLMUL): Likewise.
11423 * config/i386/i386.opt (maes): New.
11424 (mpclmul): Likewise.
11426 * config/i386/sse.md (aesenc): New pattern.
11427 (aesenclast): Likewise.
11428 (aesdec): Likewise.
11429 (aesdeclast): Likewise.
11430 (aesimc): Likewise.
11431 (aeskeygenassist): Likewise.
11432 (pclmulqdq): Likewise.
11434 * config/i386/wmmintrin.h: New.
11436 * doc/extend.texi: Document AES and PCLMUL built-in function.
11438 * doc/invoke.texi: Document -maes and -mpclmul.
11440 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
11442 * function.c (free_after_parsing): Replace with
11443 cxx_push_function_context from C++ front-end.
11444 (allocate_struct_function): Don't call langhook.
11445 * langhooks.h (struct lang_hooks_for_functions): Delete.
11446 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11448 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11449 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11450 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11451 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11452 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11453 remove LANG_HOOKS_FUNCTION_INITIALIZER.
11454 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11456 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11457 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11459 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11462 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11465 2008-04-04 Richard Guenther <rguenther@suse.de>
11467 PR middle-end/35823
11468 * fold-const.c (optimize_minmax_comparison): Use the correct
11469 type for the constant in the simplified comparison.
11471 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
11473 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11474 Pass L2 size as "--param l2-cache-size" to the compiler.
11475 (decode_l2_cache): New function to decode L2 cache parameters using
11476 0x8000006 extended cpuid function.
11477 (detect_caches_amd): Determine parameters of L2 cache using
11478 decode_l2_caches function.
11479 (decode_caches_intel): Decode L2 cache parameters.
11480 (detect_caches_intel): Determine L2 cache parameters using
11481 decode_caches_intel and decode_l2_caches functions.
11483 2008-04-03 Bob Wilson <bob.wilson@acm.org>
11485 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11486 secondary input reload for subword loads from the constant pool.
11488 2008-04-03 Janis Johnson <janis187@us.ibm.com>
11491 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11492 constants of the appropriate size for runtime calculations.
11495 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11496 decimal-float literal constant zero.
11498 2008-04-03 Jakub Jelinek <jakub@redhat.com>
11501 * c-parser.c (c_parser_omp_atomic): Call
11502 default_function_array_conversion on the RHS.
11504 PR middle-end/35818
11505 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11506 call is_variable_sized if decl has incomplete type.
11508 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
11510 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11512 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
11514 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11516 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11517 (sgt<u>): Merge sgt and sgtu into new expander.
11518 (sgt, sgtu): Remove expanders.
11519 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11520 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11521 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11522 *sgtu_<mode>_mips16 into new pattern.
11523 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11524 (sge<u>): Merge sge and sgeu into new expander.
11525 (sge, sgeu): Remove expanders.
11526 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11528 (*sge_<mode>, second *sge_<mode>): Remove patterns.
11529 (slt<u>): Merge slt and sltu into new expander.
11530 (slt, sltu): Remove expanders.
11531 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11532 (*slt_<mode>, *sltu_<mode>): Remove patterns.
11533 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11534 *sltu_<mode>_mips16 into new pattern.
11535 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11536 (sle<u>): Merge sle and sleu into new expander.
11537 (sle, sleu): Remove expanders.
11538 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11539 (*sle_<mode>, *sleu_<mode>): Remove patterns.
11540 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11541 *sleu_<mode>_mips16 into new pattern.
11542 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11544 2008-04-03 Jan Hubicka <jh@suse.cz>
11546 PR tree-optimization/35795
11547 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11548 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11549 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11550 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11551 * score/score3.c (score3_output_mi_thunk): Likewise.
11552 * score/score7.c (score7_output_mi_thunk): Likewise.
11553 * mips/mips.c (mips_output_mi_thunk): Likewise.
11555 2008-04-03 Richard Guenther <rguenther@suse.de>
11557 * tree-vrp.c (extract_range_from_unary_expr): Handle all
11558 conversions. Simplify code.
11560 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11562 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11564 2008-04-03 Tom Tromey <tromey@redhat.com>
11565 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11567 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11568 * config/bfin/t-bfin-linux (generated_files): Add
11569 linux-sysroot-suffix.h.
11570 * doc/install.texi (Prerequisites): Require make 3.80.
11571 * doc/sourcebuild.texi (Front End Directory): Document new
11573 * Makefile.in (generated_files): New variable.
11574 (ALL_HOST_OBJS): New variable.
11575 ($(ALL_HOST_OBJS)): New target.
11577 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11579 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11580 (remap_block): Call id->transform_lang_insert_block instead
11582 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11583 Set id.transform_lang_insert_block to NULL.
11584 (clone_body): Move to cp/optimize.c
11585 * tree-inline.h (struct copy_body_data): Change
11586 transform_lang_insert_block to function pointer.
11587 (copy_generic_body, copy_decl_no_change): Export.
11588 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11589 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11590 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11592 * c-tree.h (insert_block): Kill.
11593 * c-decl.c (insert_block): Kill.
11595 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11597 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11598 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11599 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11601 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11602 argument, call {push,pop}_function_context from here.
11603 * c-parser.c: Use c_{push,pop}_function_context.
11605 * function.c (push_function_context_to): Move meat ...
11606 (push_function_context): ... here. Simplify.
11607 * function.c (pop_function_context_from): Move meat ...
11608 (pop_function_context): ... here. Simplify.
11609 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11611 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11612 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11613 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11614 * tree.h (push_function_context_to, pop_function_context_from): Remove.
11616 2008-04-03 Ben Elliston <bje@au.ibm.com>
11618 * expmed.c (extract_force_align_mem_bit_field): Remove.
11620 2008-04-03 Richard Guenther <rguenther@suse.de>
11622 PR middle-end/35800
11623 * expr.h (try_casesi): Adjust prototype.
11624 * expr.c (try_casesi): Take fallback label as extra parameter.
11625 Use that for gen_casesi if default_label is NULL.
11626 * stmt.c (expand_case): Pass fallback label to try_casesi,
11627 make sure to fill gaps with a fallback label if default_label
11630 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
11633 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11635 2008-04-03 Ben Elliston <bje@au.ibm.com>
11637 * expmed.c (extract_split_bit_field): Remove if (0) code.
11638 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11639 (do_ds_constraint): Likewise.
11641 2008-04-02 Joseph Myers <joseph@codesourcery.com>
11643 * doc/cppopts.texi (-dU): Document.
11644 * c-common.h (flag_dump_macros): Update comment.
11645 * c-opts.c (handle_OPT_d): Handle -dU.
11646 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11647 dump_queued_macros, cb_used_define, cb_used_undef): New.
11648 (init_pp_output): Handle -dU.
11649 (cb_line_change): Call dump_queued_macros.
11650 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11652 2008-04-02 Anatoly Sokolov <aesok@post.ru>
11654 * config/avr/predicates.md (io_address_operand): New predicate.
11655 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11656 * config/avr/avr.c (avr_io_address_p): Remove function.
11657 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11658 'avr_io_address_p' function.
11659 (out_movhi_r_mr): (Ditto.).
11660 (out_movqi_mr_r): (Ditto.).
11661 (out_movhi_mr_r): (Ditto.).
11662 (avr_address_cost): (Ditto.).
11664 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
11666 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11667 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11668 in 32bit mode when XMM registers are available to avoid store
11670 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11671 corresponding post-reload splitters.
11673 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11675 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11676 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
11677 __builtin_ia32_roundss.
11678 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11679 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11680 __builtin_ia32_roundss.
11681 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11682 IX86_BUILTIN_SHUFPD here.
11684 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11686 * config/i386/i386.md (plogic): New.
11687 (plogicprefix): Likewise.
11689 * config/i386/mmx.md (mmx_<code><mode>3): New.
11690 (mmx_and<mode>3): Removed.
11691 (mmx_ior<mode>3): Likewise.
11692 (mmx_xor<mode>3): Likewise.
11694 * config/i386/sse.md (<code><mode>3): New.
11695 (*<code><mode>3): Likewise.
11696 (*<code><mode>3): Likewise.
11697 (<code><mode>3): Likewise.
11698 (*sse_<code><mode>3): Likewise.
11699 (*sse2_<code><mode>3): Likewise.
11700 (<code>tf3): Likewise.
11701 (*<code>tf3): Likewise.
11702 (and<mode>3): Likewise.
11703 (*and<mode>3): Likewise.
11704 (ior<mode>3): Removed.
11705 (*ior<mode>3): Likewise.
11706 (xor<mode>3): Likewise.
11707 (*xor<mode>3): Likewise.
11708 (*and<mode>3): Likewise.
11709 (*ior<mode>3): Likewise.
11710 (*xor<mode>3): Likewise.
11711 (and<mode>3): Likewise.
11712 (*sse_and<mode>3): Likewise.
11713 (*sse2_and<mode>3): Likewise.
11714 (andtf3): Likewise.
11715 (*andtf3): Likewise.
11716 (ior<mode>3): Likewise.
11717 (*sse_ior<mode>3): Likewise.
11718 (*sse2_ior<mode>3): Likewise.
11719 (iortf3): Likewise.
11720 (*iortf3): Likewise.
11721 (xor<mode>3): Likewise.
11722 (*sse_xor<mode>3): Likewise.
11723 (*sse2_xor<mode>3): Likewise.
11724 (xortf3): Likewise.
11725 (*xortf3): Likewise.
11727 2008-04-02 Richard Guenther <rguenther@suse.de>
11729 PR tree-optimization/14495
11730 PR tree-optimization/34793
11731 * tree-vrp.c (struct switch_update): New structure.
11732 (to_remove_edges, to_update_switch_stmts): New VECs.
11733 (simplify_switch_using_ranges): New function. Remove not taken
11734 case labels and edges.
11735 (simplify_stmt_using_ranges): Call it.
11736 (identify_jump_threads): Mark edges we have queued for removal
11737 so we don't thread them.
11738 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11740 * tree-cfg.c (group_case_labels): Deal with missing default label.
11741 (tree_verify_flow_info): Allow missing default label.
11742 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11743 (emit_case_nodes): Likewise.
11744 (expand_case): Do not rely on the default label to be present.
11745 * expr.c (try_casesi): Deal with NULL default_label.
11746 (do_tablejump): Likewise.
11748 2008-04-02 Richard Guenther <rguenther@suse.de>
11750 PR tree-optimization/14495
11751 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11752 SWITCH_EXPR here ...
11753 (vrp_visit_switch_stmt): ... but here (new function).
11754 (find_case_label_index): New helper function.
11755 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11757 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11759 * fwprop.c: Fix ISO-C99ism.
11761 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11764 * Makefile.in (objdir): Set it here.
11765 * configure.ac: Not here. Find dynamic linker characteristics.
11766 * exec-tool.in: Use them.
11767 * aclocal.m4: Regenerate.
11768 * configure: Regenerate.
11770 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11772 * expr.c (expand_var): Delete it.
11773 * expr.h (expand_var): Delete prototype.
11774 * function.c (expand_function_start): Use expand_decl instead.
11775 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11778 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
11780 PR rtl-optimization/35542
11781 * fwprop.c (forward_propagate_and_simplify): Replace
11782 loc_reg_mentioned_in_p with reg_mentioned_p.
11784 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
11786 PR rtl-optimization/35281
11787 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11788 (propagate_rtx_1): Handle PR_HANDLE_MEM.
11789 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11790 (varying_mem_p): Move above propagate_rtx.
11791 (all_uses_available_at): Do not check MEMs.
11793 2008-04-02 Rafael Espindola <espindola@google.com>
11795 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11796 (register_edge_assert_for_2): Split the cond argument.
11797 (register_edge_assert_for_1): Adjust for the change in
11798 register_edge_assert_for_2.
11799 (register_edge_assert_for): Split the cond argument.
11800 (find_switch_asserts): Adjust for the change in
11801 register_edge_assert_for.
11803 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
11805 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11806 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11807 offsets for 64-bit mingw.
11808 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11809 abi for x86_64-pc-mingw.
11811 2008-04-02 Richard Guenther <rguenther@suse.de>
11813 * tree-vrp.c (extract_range_from_assert): Make sure to not
11814 produce range min/max with TREE_OVERFOW set.
11815 If merging a anti-range and a range keep the anti-range if
11816 the range covers all values of the type.
11817 (register_edge_assert_for_2): Only allow sign-changing
11818 conversions in detecting canonical range checks. Also
11819 register an assert for the unsigned name if useful.
11821 PR tree-optimization/35787
11822 * tree-vrp.c (vrp_val_max): New function.
11823 (vrp_val_min): Likewise.
11824 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11825 (vrp_val_is_min): Likewise.
11826 (supports_overflow_infinity): Use vrp_val_{min,max}.
11827 (negative_overflow_infinity): Likewise.
11828 (positive_overflow_infinity): Likewise.
11829 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11830 (is_positive_overflow_infinity): Likewise.
11831 (is_overflow_infinity): Likewise.
11832 (avoid_overflow_infinity): Use vrp_val_{min,max} and
11833 vrp_val_is_{min,max}.
11834 (set_and_canonicalize_value_range): Canonicalize anti-ranges
11835 to ranges if possible. Avoid empty ranges.
11837 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11839 PR middle-end/35705
11840 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11841 the expression is a function address.
11843 2008-04-01 George Helffrich <george@gcc.gnu.org>
11845 PR fortran/35154, fortran/23057
11846 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11847 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11848 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11849 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11851 (dbxout_syms): Check for COMMON-based symbol and wrap in
11852 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11853 in bracket for efficiency.
11855 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11856 using DW_TAG_common_block + member offset.
11857 (add_pubname_string): New function.
11858 (dw_expand_expr): New function to find block name and offset for
11860 (common_check): New function to check whether symbol in Fortran COMMON.
11861 (gen_variable_die): If COMMON, use DW_TAG_common_block.
11863 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
11866 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11868 2008-04-02 Ben Elliston <bje@au.ibm.com>
11870 * config/v850/v850.md (casesi): Remove if (0) code.
11871 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11872 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11874 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
11876 * config/i386/i386.md (rex64suffix): New mode attribute.
11877 (floathi<mode>2): Disable expander for SSE math.
11878 (*floathi<mode>2_1): New insn insn_and_split pattern.
11879 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11880 corresponding post-reload splitters.
11881 (*floathi<mode>2_i387): New macroized insn pattern.
11882 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11883 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11884 insn_and_split pattern.
11885 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11886 New macroized instruction patterns and corresponding post-reload
11888 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11889 and corresponding post-reload splitters.
11890 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11891 New macroized instruction patterns.
11892 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11893 macroized instruction patterns and corresponding post-reload splitters.
11894 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11895 corresponding post-reload splitters.
11896 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11897 New macroized instruction patterns.
11898 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11899 corresponding post-reload splitters.
11900 (*floatsi<mode>2_i387): New macroized instruction patterns.
11902 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
11904 * config/i386/i386.md (smaxmin): New.
11905 (umaxmin): Likewise.
11906 (maxminiprefix): Likewise.
11907 (maxminfprefix): Likewise.
11908 (<code><mode>3): Likewise.
11909 (smin<mode>3): Removed.
11910 (smax<mode>3): Likewise.
11912 * config/i386/mmx.md (mmx_<code>v2sf3): New.
11913 (mmx_<code>v4hi3): Likewise.
11914 (mmx_<code>v8qi3): Likewise.
11915 (mmx_smaxv2sf3): Removed.
11916 (mmx_sminv2sf3): Likewise.
11917 (mmx_umaxv8qi3): Likewise.
11918 (mmx_smaxv4hi3): Likewise.
11919 (mmx_uminv8qi3): Likewise.
11920 (mmx_sminv4hi3): Likewise.
11922 * config/i386/sse.md (<addsub><mode>3): New.
11923 (*<addsub><mode>3): Likewise.
11924 (<sse>_vm<addsub><mode>3): Likewise.
11925 (<maxmin><mode>3): Likewise.
11926 (*<maxmin><mode>3_finite): Likewise.
11927 (*<maxmin><mode>3): Likewise.
11928 (<sse>_vm<maxmin><mode>3): Likewise.
11929 (sse3_h<addsub>v4sf3): Likewise.
11930 (sse3_h<addsub>v2df3): Likewise.
11931 (<maxmin>v16qi3): Likewise.
11932 (*<maxmin>v16qi3): Likewise.
11933 (<maxmin>v8hi3): Likewise.
11934 (*<maxmin>v8hi3): Likewise.
11935 (*sse4_1_<maxmin><mode>3): Likewise.
11936 (*sse4_1_<maxmin><mode>3): Likewise.
11937 (add<mode>3): Removed.
11938 (*add<mode>3): Likewise.
11939 (<sse>_vmadd<mode>3): Likewise.
11940 (sub<mode>3): Likewise.
11941 (*sub<mode>3): Likewise.
11942 (<sse>_vmsub<mode>3): Likewise.
11943 (smin<mode>3): Likewise.
11944 (*smin<mode>3_finite): Likewise.
11945 (*smin<mode>3): Likewise.
11946 (<sse>_vmsmin<mode>3): Likewise.
11947 (smax<mode>3): Likewise.
11948 (*smax<mode>3_finite): Likewise.
11949 (*smax<mode>3): Likewise.
11950 (<sse>_vmsmax<mode>3): Likewise.
11951 (sse3_haddv4sf3): Likewise.
11952 (sse3_haddv2df3): Likewise.
11953 (sse3_hsubv4sf3): Likewise.
11954 (sse3_hsubv2df3): Likewise.
11955 (umaxv16qi3): Likewise.
11956 (*umaxv16qi3): Likewise.
11957 (smaxv8hi3): Likewise.
11958 (*smaxv8hi3): Likewise.
11959 (*sse4_1_smax<mode>3): Likewise.
11960 (*sse4_1_umax<mode>3): Likewise.
11961 (uminv16qi3): Likewise.
11962 (*uminv16qi3): Likewise.
11963 (sminv8hi3): Likewise.
11964 (*sminv8hi3): Likewise.
11965 (*sse4_1_smin<mode>3): Likewise.
11966 (*sse4_1_umin<mode>3): Likewise.
11968 2008-04-01 Rafael Espindola <espindola@google.com>
11970 * tree-cfg.c (verify_expr): remove in_phi.
11971 (verify_stmt): Don't call walk_tree with verify_expr. Use
11972 is_gimple_min_invariant instead of is_gimple_val.
11974 2008-04-01 Joseph Myers <joseph@codesourcery.com>
11976 * doc/include/gpl_v3.texi: Update for manpage generation.
11977 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11979 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11980 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11981 gpl_v3.texi instead of gpl.texi.
11984 2008-04-01 Jakub Jelinek <jakub@redhat.com>
11987 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11989 2008-04-01 Rafael Espindola <espindola@google.com>
11991 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11992 (extract_code_and_val_from_cond): Use
11993 extract_code_and_val_from_cond_with_ops.
11995 2008-04-01 Jan Hubicka <jh@suse.cz>
11997 * function.c (free_after_compilation): Free epilogue_delay_list.
11998 (prepare_function_start): Assert that previous compilation was freed.
12000 2008-04-01 Jan Hubicka <jh@suse.cz>
12001 Jim Wilson <wilson@tuliptree.org>
12002 Andreas Tobler <andreast@gcc.gnu.org>
12004 PR middle-end/35781
12005 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
12006 rtl.emit instead cfun->emit.
12007 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
12008 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
12010 2008-04-01 Ben Elliston <bje@au.ibm.com>
12012 * doc/c-tree.texi (Function Basics): Fix grammatical error.
12014 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
12016 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
12018 (fprofile-use): Add var flag_profile_use
12019 * coverage.c (coverage_begin_output): Do not open a gcno file for
12020 output only if -ftest-coverage is set.
12021 Do not add getpwd() to gcda file path.
12022 (build_gcov_info): Check the new flag
12023 flag_profile_datafile_relative_path.
12024 (coverage_init): Use profile_data_prefix.
12025 Read profile counter only if flag_profile_use is set.
12026 * opts.c (common_handle_option): New option fprofile-use=,
12027 fprofile-dir=, fprofile-generate=.
12028 * toplev.c (profile_data_prefix): New variable definition.
12029 * toplev.h (profile_data_prefix): New declaration.
12030 * doc/invoke.tex (Option Summary, Optimization Options):
12033 2008-03-31 James E. Wilson <wilson@tuliptree.org>
12035 * varasm.c (output_constant_pool_1): In LABEL_REF check,
12036 use tmp consistently.
12039 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
12040 * config/ia64/ia64.c (rtx_needs_barrier): Handle
12041 UNSPEC_FR_RECIP_APPROX_RES.
12042 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
12044 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
12047 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
12049 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
12051 PR middle-end/30186
12052 * fold-const.c (fold_indirect_ref_1): Support accessing non first
12053 element of the vector via a pointer.
12055 2008-03-31 Ian Lance Taylor <iant@google.com>
12057 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
12059 2008-03-31 Jan Hubicka <jh@suse.cz>
12061 * builtins.c (expand_builtin_setjmp_receiver): Update call of
12062 get_arg_pointer_save_area.
12063 * expr.c (init_expr): Just clear out rtl.expr.
12064 * function.c (free_after_compilation): Clear out whole RTL structure.
12065 (get_func_frame_size): Merge into ...
12066 (get_frame_size): ... this one.
12067 (assign_stack_local_1): Merge into ...
12068 (assign_stack_local): ... this one.
12069 (expand_function_end): Update call of get_arg_pointer_save_area.
12070 (get_art_pointer_save_area): Remove cfun argument.
12071 * function.h (emit_status): regno_pointer_align does not need length
12072 attribute. Move x_regno_reg_rtx to ...
12073 (regno_reg_rtx): ... new global array.
12074 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12075 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
12076 apply_args_value, forced_labels, stack_pointer_delta):
12078 (struct varasm_status): Move here from varasm.c
12079 (struct rtl_data): New. Move here some fields from struct function.
12080 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12081 frame_offset, stack_check_probe_note, arg_pointer_save_area,
12082 used_temp_slots avail_temp_slots, temp_slot_level,
12083 nonlocal_goto_handler_labels): Update accesstors.
12084 (rtl): New global variable.
12085 (struct function): Move some fileds to rtl_data.
12086 (get_arg_pointer_save_area): Update prototype.
12087 * emit-rtl.c (rtl): Declare.
12088 (regno_reg_rtx): Declare.
12089 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12091 (gen_reg_rtx): Update.
12092 (init_virtual_regs): Do not tate emit_status argument.
12093 (init_emit): Do not allocate emit.
12094 * varasm.c (varasm_statuc): Move to function.h.
12095 (n_deferred_constatns): Update accestor.
12096 (init_varasm_status): Do not allocate varasm_status.
12097 (force_const_mem, get_pool_size, output_constant_pool): Update.
12098 * stmt.c (force_label_rtx): Do not use x_ prefixes.
12099 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12101 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
12103 PR rtl-optimization/35729
12104 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12107 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
12110 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12111 load/store if memory is unaligned.
12112 (*movti_rex64): Likewise.
12114 * config/i386/predicates.md (misaligned_operand): New.
12116 2008-03-31 Andrew Pinski <pinskia@gmail.com>
12119 * tree-ssa-phiopt.c (conditional_replacement): Return early for
12122 2008-03-31 Jan Beulich <jbeulich@novell.com>
12124 * config/ia64/constraints.md: Add 'j' constraint.
12125 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12126 (movdi_internal): Likewise.
12128 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
12131 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12133 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
12136 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12137 proper error message for the third argument on blendpd and
12140 * config/i386/sse.md (blendbits): New.
12141 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12143 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
12145 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12147 2008-03-30 Richard Guenther <rguenther@suse.de>
12149 PR middle-end/31023
12150 * fold-const.c (fold_sign_changed_comparison): Do leave
12151 conversions to base-types alone.
12153 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
12155 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12156 the link register if one altivec register is be saved.
12158 2008-03-30 Ben Elliston <bje@au.ibm.com>
12160 * final.c (final_scan_insn): Remove if (0) code.
12162 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
12164 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12166 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
12168 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12169 of V4SFmode to ix86_binary_operator_ok.
12171 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
12173 * config/i386/i386.c (override_options): Initialize
12174 ix86_veclib_handler to ix86_veclibabi_svml when
12175 -mveclibabi=svml is used.
12176 (ix86_veclibabi_svml): New function for SVML ABI style
12177 vectorization support.
12178 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12180 2008-03-28 Rafael Espindola <espindola@google.com>
12182 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12183 (tree_binary_nonnegative_warnv_p): Make it public.
12184 (tree_single_nonnegative_warnv_p): Make it public.
12185 (tree_invalid_nonnegative_warnv_p): Make it public.
12186 (tree_unary_nonzero_warnv_p): Make it public.
12187 (tree_binary_nonzero_warnv_p): Make it public
12188 (tree_single_nonzero_warnv_p): Make it public.
12189 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12190 (extract_range_from_binary_expr): Split the expr argument.
12191 (extract_range_from_unary_expr): Split the expr argument.
12192 (extract_range_from_comparison): Split the expr argument.
12193 (extract_range_from_expr): Use the new aux functions.
12194 (vrp_evaluate_conditional_warnv): Use
12195 vrp_evaluate_conditional_warnv_with_ops.
12196 * tree.h (tree_unary_nonzero_warnv_p): Declare.
12197 (tree_binary_nonzero_warnv_p): Declare.
12198 (tree_single_nonzero_warnv_p): Declare.
12199 (tree_expr_nonzero_warnv_p): Declare.
12200 (tree_unary_nonnegative_warnv_p): Declare.
12201 (tree_binary_nonnegative_warnv_p): Declare.
12202 (tree_single_nonnegative_warnv_p): Declare.
12203 (tree_invalid_nonnegative_warnv_p): Declare.
12205 2008-03-28 Richard Guenther <rguenther@suse.de>
12207 PR tree-optimization/30317
12208 PR tree-optimization/30911
12209 PR tree-optimization/34793
12210 * tree-vrp.c (set_and_canonicalize_value_range): New function.
12211 (struct assert_locus_d): New member EXPR.
12212 (register_new_assert_for): Add EXPR parameter to support
12213 ASSERT_EXPR <name, expr OP limit>.
12214 (register_edge_assert_for_1): Adjust callers.
12215 (find_assert_locations): Likewise.
12216 (process_assert_insertions_for): Build condition from expression.
12217 (extract_range_from_assert): Handle ASSERT_EXPRs
12218 of the form ASSERT_EXPR <name, expr OP limit>.
12219 (register_edge_assert_for_2): New helper registering
12220 asserts for comparisons. Recognize range tests of the form
12221 (unsigned)i - CST1 OP CST2.
12222 (register_edge_assert_for_1): Use it.
12223 (register_edge_assert_for): Likewise.
12224 (needs_overflow_infinity): Integer sub-types
12225 do not need overflow infinities.
12226 (vrp_val_is_max): The extreme values of integer sub-types
12227 are those of the base type.
12228 (vrp_val_is_min): Likewise.
12229 * tree.def (ASSERT_EXPR): Document extra allowed conditional
12232 2008-03-28 Nick Clifton <nickc@redhat.com>
12235 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12236 Return GENERAL_REGS for stack adjustment reloads.
12238 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
12241 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12242 const_vector when all the vectors are constant.
12244 2008-03-27 Bob Wilson <bob.wilson@acm.org>
12246 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12248 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12249 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12251 (s<code>_sf): Use new scc_sf attribute for opcode names.
12253 2008-03-27 Tom Tromey <tromey@redhat.com>
12255 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12256 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12257 config/spu/t-spu-elf, config/i386/t-interix,
12258 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12259 config/i386/x-darwin, config/i386/x-mingw32,
12260 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12261 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12262 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12263 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12264 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12265 config/rs6000/x-darwin, config/rs6000/t-rs6000,
12266 config/score/t-score-elf, config/arm/t-strongarm-pe,
12267 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12268 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12269 Revert automatic dependency patch.
12271 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
12274 * config/i386/i386.c (ix86_function_arg_boundary): Align
12275 decimal floating point to its natural boundary.
12277 2008-03-27 Richard Guenther <rguenther@suse.de>
12279 PR middle-end/35716
12280 * fold-const.c (fold_comparison): Restrict distinct decl
12281 comparison folding to VAR_DECLs and PARM_DECLs. Do not
12282 solely rely on operand_equal_p.
12284 2008-03-27 Richard Guenther <rguenther@suse.de>
12287 * c-common.c (handle_weak_attribute): Reject combination of
12290 2008-03-27 Richard Guenther <rguenther@suse.de>
12292 PR tree-optimization/32810
12293 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12294 conversions from DECL_INITIAL.
12295 (fold_const_aggregate_ref): Likewise from constructor elements.
12297 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
12299 * tree-affine.h (aff_combination_expand): Declare.
12300 (get_inner_reference_aff): Likewise.
12301 * tree-affine.c (aff_combination_expand): Split out from
12302 tree_to_aff_combination_expand.
12303 (get_inner_reference_aff): New function.
12304 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12305 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12306 (struct lim_aux_data): sm_done field removed.
12307 (mem_ref_loc_p, mem_ref_locs_p): New types.
12308 (struct mem_ref): Added id, stored, accesses_in_loop,
12309 indep_loop, dep_loop, indep_ref, dep_ref fields.
12310 Removed is_stored, locs and next fields.
12311 (memory_accesses): New variable.
12312 (movement_possibility): Do not allow moving statements
12313 that store to memory.
12314 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12316 (determine_max_movement): For statements with memory references,
12317 find the outermost loop in that the reference is independent.
12318 (move_computations_stmt): Mark the virtual operands for renaming.
12319 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12320 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12321 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12322 add_vop_ref_mapping, create_vop_ref_mapping_loop,
12323 create_vop_ref_mapping, analyze_memory_references,
12324 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12325 get_all_locs_in_loop, ref_always_accessed_p,
12326 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12327 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12328 store_motion_loop, store_motion): New functions.
12329 (struct vop_to_refs_elt): New type.
12330 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12331 memref_hash, memref_eq, hoist_memory_references): Rewritten.
12332 (schedule_sm): Replaced by...
12333 (execute_sm): ... this.
12334 (determine_lsm_ref, hoist_memory_references,
12335 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12336 find_more_ref_vops, free_mem_ref, free_mem_refs,
12337 determine_lsm_loop, determine_lsm): Removed.
12338 (tree_ssa_lim_finalize): Free data structures used by store motion.
12339 (tree_ssa_lim): Call analyze_memory_references. Use
12340 store_motion instead of determine_lsm.
12342 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12344 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12345 rename tmake_file to m68hc11/t-m68hc11.
12346 (mcore): Set inhibit_libc to true.
12347 * config.host (alpha*-dec-*vms*): Set extra_programs.
12348 (interix3*): Don't use host_xmake_file.
12349 * configure.ac: Let config.gcc override inhibit_libc.
12350 * configure: Regenerate.
12352 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12353 * config/t-openbsd-thread: Remove commented out lines.
12355 * config/x-interix: Remove.
12357 * config/m68hc11/t-m68hc11-gas: Rename to...
12358 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
12360 * config/mcore/t-mcore: Remove T_CFLAGS.
12361 * config/mcore/t-mcore-pe: Likewise.
12363 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12365 * configure.ac: Replace custom __GNU_SOURCE test with
12366 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
12367 * aclocal.m4: Regenerate.
12368 * configure: Regenerate.
12369 * config.in: Regenerate.
12371 2008-03-27 Richard Guenther <rguenther@suse.de>
12373 * fold-const.c (target.h): Include.
12374 (fold_comparison): Fold comparison of addresses of decls
12375 that bind locally or of constants. Consolidate address folding code.
12376 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12377 results from fold_binary_to_constant.
12378 (compare_values_warnv): Likewise.
12380 2008-03-27 Andrew Pinski <pinskia@gmail.com>
12382 PR middle-end/35429
12383 * fold-const.c (fold_truthop): Check for integeral types when folding
12384 a == 0 && b == 0 and a != 0 || b != 0 .
12386 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
12388 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12390 2008-03-26 Andreas Schwab <schwab@suse.de>
12392 * doc/invoke.texi: Fix use of @item vs. @itemx.
12394 2008-03-26 Tom Tromey <tromey@redhat.com>
12396 * Makefile.in (build/gensupport.o, build/print-rtl.o,
12397 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12398 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12399 build/gencodes.o, build/genconditions.o, build/genconfig.o,
12400 build/genconstants.o, build/genemit.o, build/genextract.o,
12401 build/genflags.o, build/genmddeps.o, build/genopinit.o,
12402 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12405 2008-03-26 Richard Guenther <rguenther@suse.de>
12408 2008-03-26 Richard Guenther <rguenther@suse.de>
12410 * fold-const.c (target.h): Include.
12411 (fold_comparison): Fold comparison of addresses of two decls
12412 that bind locally. Consolidate address folding code.
12414 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12416 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12417 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12418 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12419 dconstsqrt2, dconstthird, dconste and/or dconst10.
12420 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12421 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12422 dconstsqrt2, dconste): Delete.
12423 (init_emit_once): Likewise. Simplify initializing dconstm1.
12425 * real.c (get_real_const): New.
12426 * real.h (dconst3, dconst10, dconstm2, dconstthird,
12427 dconstsqrt2, dconste): Delete.
12428 (real_value_const, get_real_const): New.
12430 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
12432 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12434 * config/i386/i386.c (ix86_function_arg_boundary): Check
12435 BIGGEST_ALIGNMENT instead of 128.
12436 (setup_incoming_varargs_64): Likewise.
12438 2008-03-26 Tom Tromey <tromey@redhat.com>
12440 * Makefile.in (DEPFILES): Add missing '/'.
12442 2008-03-26 Richard Guenther <rguenther@suse.de>
12444 * fold-const.c (target.h): Include.
12445 (fold_comparison): Fold comparison of addresses of two decls
12446 that bind locally. Consolidate address folding code.
12448 2008-03-26 Nick Clifton <nickc@redhat.com>
12451 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12452 not allow INT+INT as a legitimate addressing mode.
12454 2008-03-26 Richard Guenther <rguenther@suse.de>
12456 * tree-flow.h (widen_bitfield): Remove declaration.
12457 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12458 (widen_bitfield): Remove function.
12459 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12462 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12465 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12468 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
12470 PR rtl-optimization/35232
12471 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12472 (forget_old_reloads_1, forget_marked_reloads): Don't clear
12473 reg_reloaded_call_part_clobbered here.
12474 (reload_regs_reach_end_p): New function.
12475 (reload_reg_rtx_for_input): New variable.
12476 (reload_reg_rtx_for_output): Likewise.
12477 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12478 when reassigning a pseudo register. Load reloadreg from
12479 reload_reg_rtx_for_input, moving the mode and register
12481 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
12482 instead of the original when deciding whether an input reload
12483 would be a no-op or whether an output reload can be deleted.
12484 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12485 when setting up new_spill_reg_store. Load it from
12486 reload_reg_rtx_for_output, moving the mode and register
12488 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
12489 instead of the original when deciding whether an output reload
12490 would be a no-op. Do the same when modifying insn notes.
12491 Use rtx_equal_p instead of == to compare the registers.
12492 (inherit_piecemeal_p): Take a mode and two register numbers
12494 (emit_reload_insns): Clear new_spill_reg_store for every hard
12495 register in the reload register. Remove spill registers
12496 from reg_reloaded_valid before considering whether to record
12497 inheritance information for them. Use reload_reg_rtx_for_output
12498 instead of reg_rtx when recording output reloads. Use
12499 reload_reg_rtx_for_input instead of reg_rtx when recording
12500 input reloads. Set or clear reg_reloaded_call_part_clobbered
12501 at the same time as setting reg_reloaded_valid.
12502 (delete_output_reload): Add a new_reload_reg parameter and use it
12503 instead of rld[j].reg_rtx.
12504 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12507 2008-03-25 Tom Tromey <tromey@redhat.com>
12509 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12510 (build/genattr.o): Likewise.
12511 (build/genattrtab.o): Likewise.
12512 (build/gencodes.o): Likewise.
12513 (build/genconfig.o): Likewise.
12514 (build/genconstants.o): Likewise.
12515 (build/genemit.o): Likewise.
12516 (build/genextract.o): Likewise.
12517 (build/genflags.o): Likewise.
12519 2008-03-25 Bob Wilson <bob.wilson@acm.org>
12521 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12522 instead of size_int for integer types.
12523 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
12524 to match type of MINUS_EXPR.
12526 2008-03-25 Tom Tromey <tromey@redhat.com>
12528 * configure: Rebuilt.
12529 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12532 2008-03-25 Tom Tromey <tromey@redhat.com>
12534 * config/x-solaris (host-solaris.o): Update.
12535 * config/x-linux (host-linux.o): Update.
12536 * config/x-hpux (host-hpux.o): Update.
12537 * config/x-darwin (host-darwin.o): Update.
12538 * config/v850/t-v850e (v850-c.o): Update.
12539 * config/v850/t-v850 (v850-c.o): Update.
12540 * config/t-vxworks (vxworks.o): Update.
12541 * config/t-sol2 (sol2-c.o, sol2.o): Update.
12542 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12543 * config/spu/t-spu-elf (spu-c.o): Update.
12545 * config/sh/t-symbian (sh-c.o): Update.
12546 (symbian.o): Update.
12547 * config/sh/t-sh (sh-c.o): Update.
12548 * config/score/t-score-elf (score7.o, score3.o): Update.
12549 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12550 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12551 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12552 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12553 (rs6000.o): Remove.
12554 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12555 * config/m32c/t-m32c (m32c-pragma.o): Update.
12556 * config/ia64/t-ia64 (ia64-c.o): Update.
12557 * config/i386/x-mingw32 (host-mingw32.o): Update.
12558 * config/i386/x-i386 (driver-i386.o): Update.
12559 * config/i386/x-darwin (host-i386-darwin.o): Update.
12560 * config/i386/x-cygwin (host-cygwin.o): Update.
12561 * config/i386/t-nwld (nwld.o): Update.
12562 * config/i386/t-netware (netware.o): Update.
12563 * config/i386/t-interix (winnt.o): Update.
12564 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12565 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12566 msformat-c.o): Update.
12567 * config/bfin/t-bfin-linux (generated_files): Add
12568 linux-sysroot-suffix.h.
12569 * config/arm/t-wince-pe (pe.o): Update.
12570 * config/arm/t-strongarm-pe (pe.o): Update.
12571 * config/arm/t-pe (pe.o): Update.
12572 * config/arm/t-arm (arm-c.o): Update.
12573 * doc/install.texi (Prerequisites): Require make 3.80.
12574 * Makefile.in: Remove .o targets.
12575 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12576 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12577 (simple_generated_h, simple_generated_c): Move earlier.
12578 (generated_files): New variable.
12579 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12580 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12581 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12582 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12583 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12584 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12585 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12586 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12587 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12588 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12589 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12590 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12592 (COMPILE.base, COMPILE): New variables.
12593 (%.o): New pattern rule.
12594 (ALL_HOST_OBJS): New variable.
12595 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12596 (dummy-checksum.o, cc1-checksum.o): Remove.
12597 (DRIVER_SHLIB): New variable.
12598 (DRIVER_DEFINES): Use it.
12599 (gencondmd.c): Move out of build/.
12600 (s-conditions): Update.
12601 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12602 (ALL_BUILD_OBJS): Likewise.
12603 (build/%.o): Use BUILDCOMPILE.
12604 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12605 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12606 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12607 build/gencheck.o, build/gencodes.o, build/genconditions.o,
12608 build/genconfig.o, build/genconstants.o, build/genemit.o,
12609 build/genextract.o, build/genflags.o, build/genmddeps.o,
12610 build/genopinit.o, build/genoutput.o, build/genpeep.o,
12611 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12612 build/gen-protos.o, build/scan.o, build/fix-header.o,
12613 build/scan-decls.o): Simplify.
12614 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12615 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12616 prefix.o, toplev.o): Reduce to variable setting.
12617 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
12618 ($(out_object_file), gcc-options.o): New targets.
12619 ($(ALL_HOST_OBJS)): New target. Include dependency files.
12620 * configure: Rebuilt.
12621 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12622 * doc/sourcebuild.texi (Front End Directory): Document new variable.
12624 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
12626 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12627 complain when we hit an error, return ERROR_MARK_NODE.
12629 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12631 * config/sh/constraints.md (Pso, Psz): New constraints.
12632 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12633 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12635 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12637 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12638 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12640 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12642 * config/sh/sh.md (prefetch): Add condition for SH2A target.
12643 (prefetch_sh2a): New.
12645 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12646 Naveen.H.S <naveen.hs@kpitcummins.com>
12648 * config/sh/constraints.md (I28): New constraint.
12649 * config/sh/sh.c (broken_move): Add support for movi20s.
12650 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12652 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
12653 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12654 Naveen.H.S <naveen.hs@kpitcummins.com>
12656 * config/sh/sh.c (SH_ATTRIBUTES): Define.
12657 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12658 (print_operand): Handle resbank in %@ operand code.
12659 (sh_encode_section_info): New.
12660 (push_regs): Add conditions for resbank.
12661 (sh_expand_epilogue): Likewise.
12662 (sh_insert_attributes): Likewise.
12663 (sh_attribute_table): Likewise.
12664 (sh_handle_resbank_handler_attribute): New.
12665 (sh2a_handle_function_vector_handler_attribute): New.
12666 (sh2a_is_function_vector_call): New.
12667 (sh2a_get_function_vector_number): New.
12668 (sh2a_function_vector_p): New.
12669 (sh_cfun_resbank_handler_p): New.
12670 * config/sh/sh.md (calli): Emit jsr/n if possible.
12671 (calli_tbr_rel): New.
12672 (calli_pcrel): Emit jsr/n if possible.
12673 (return_i): Emit rts/n if possible.
12674 (call_valuei_tbr_rel): New.
12675 (call_valuei_pcrel): Add condition for SH2A target.
12676 (call_value): Likewise.
12677 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12678 (sh2a_get_function_vector_number): Likewise.
12679 (sh2a_is_function_vector_call): Likewise.
12680 * doc/extend.texi: Document TBR relative addressing of SH2A.
12681 (resbank): Add description for SH2A.
12683 2008-03-24 Richard Guenther <rguenther@suse.de>
12686 * gimplify.c (gimplify_modify_expr): For frontend type-correct
12687 pointer assignments change conversions according to middle-end rules.
12688 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12689 * configure.ac: Include type checking in yes.
12690 * configure: Regenerate.
12692 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12694 * diagnostic.c (diagnostic_count_diagnostic): Delete.
12695 (diagnostic_report_diagnostic): Update. Handle ICEs here.
12697 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
12699 * gthr-vxworks.h (UNUSED): Define.
12701 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
12703 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12705 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
12707 * doc/extend.texi (Function Attributes): Add missing comma in the
12708 example of the "alloc_size" attribute.
12710 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
12713 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
12715 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12718 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12721 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12722 of the underlying type of a MS bitfield layout to the natural
12723 alignment of the type.
12725 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12727 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12728 to their natural alignment to avoid store forwarding stalls.
12730 2008-03-22 Richard Guenther <rguenther@suse.de>
12732 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12733 For PHI nodes verify the address is invariant.
12734 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12735 (get_symbol_constant_value): Use is_gimple_min_invariant.
12736 (maybe_fold_stmt_indirect): Likewise.
12738 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
12740 PR rtl-optimization/33927
12741 * Makefile.in (dse.o): Depend on $(TM_P_H).
12742 * expr.h (extract_low_bits): Declare.
12743 * expmed.c (extract_low_bits): New function.
12744 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12745 * dse.c: Include tm_p.h.
12746 (find_shift_sequence): Remove the read_reg argument and return the
12747 read value. Emit the instructions instead of returning them.
12748 Iterate on new_mode rather than calculating it each time.
12749 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
12750 source to NEW_MODE and extract_low_bits to convert the shifted
12751 value to READ_MODE.
12752 (replace_read): Allow the load and store to have different mode
12753 classes. Use extract_low_bits when SHIFT == 0. Create the shift
12754 or extraction instructions before trying the replacement. Update
12755 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12757 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
12759 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12760 to their natural alignment to avoid store forwarding stalls.
12762 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12765 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12766 encouraging but not allowing gprs for input;
12767 change the input constraint to !f#r.
12768 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12770 change the output constraint to !f#r.
12772 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
12775 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12776 corresponding post-reload splitters.
12777 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12778 when x87 FP math is selected.
12779 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12780 New function prototype.
12781 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12782 unreachable function to ease macroization of insn patterns.
12784 2008-03-21 Martin Jambor <mjambor@suse.cz>
12786 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12787 reference dumps if ddr is NULL or dependence is unknown.
12789 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12791 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12792 unsigned extension into account.
12793 (ATOMIC_COMPARE_AND_SWAP): Likewise.
12794 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12795 Do computations on a scratch register.
12797 2008-03-21 Richard Guenther <rguenther@suse.de>
12799 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12800 Use is_gimple_min_invariant instead of TREE_INVARIANT.
12801 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12802 * tree-ssa-dom.c (record_equality): Likewise.
12803 * tree-inline.c (copy_body_r): Likewise.
12804 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12807 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
12809 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12810 as 'delete_unused' argument.
12812 2008-03-20 Richard Guenther <rguenther@suse.de>
12814 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12815 special casing of constant qualifiers.
12816 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12817 care about them in general.
12818 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12819 regardless of their type.
12820 (fold_stmt_r): Forcefully fold *& if we end up with that.
12822 2008-03-20 Paul Brook <paul@codesourcery.com>
12824 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12825 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12827 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12829 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12830 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12832 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
12834 * common.opt (Wmudflap): New option.
12835 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12836 (mx_register_decls): Likewise.
12837 (mudflap_finish_file): Likewise.
12838 * doc/invoke.texi: Document -Wno-mudflap.
12840 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
12842 * c-format.c (replace_format_name_to_system_name): New.
12843 (cmp_attribs): New.
12844 (convert_format_name_to_system_name): New.
12845 (decode_format_attr): Add use of convert_format_name_to_system_name.
12846 (format_types_orig): Add gnu_ prefix to names.
12847 (check_format_info_main): Special treating of \0 escaped names for
12848 supporting multi-character format specifiers as I32, I64.
12849 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12850 (gnu_target_overrides_format_attributes): New.
12851 * c-format.h: Add structure target_ovr_attr to hold
12852 system specific formatter names.
12853 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12854 msformat-c.o file to c_target_objs and cxx_target_objs.
12855 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12856 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12857 (TARGET_N_FORMAT_TYPES): New.
12858 * config/i386/msformat-c.c: New.
12859 * config/i386/t-cygming: Add build rule for msformat-c.o.
12860 * doc/extend.texi: Add new format names gnu_* and ms_* and
12862 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12864 2008-03-20 Ira Rosen <irar@il.ibm.com>
12866 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12867 optimizations turned on under -O3.
12868 (ftree-vectorize): Add that the flag is turned on with -O3.
12870 2008-03-20 Ben Elliston <bje@au.ibm.com>
12872 * regmove.c (try_auto_increment): Fix spelling error in comment.
12873 * final.c (final_scan_insn): Likewise.
12875 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
12878 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12879 allocator preferences for "y" and "r" class registers.
12880 ("*mov<mode>_internal"): Ditto.
12881 ("*movv2sf_internal_rex64"): Ditto.
12882 ("*movv2sf_internal"): Ditto.
12884 2008-03-19 Michael Matz <matz@suse.de>
12886 PR middle-end/35616
12887 * calls.c (expand_call): Check overlap of arguments with call
12888 address for sibcalls.
12890 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
12893 * stor-layout.c (update_alignment_for_field): Set minimum alignment
12894 of the underlying type of a MS bitfield layout to the natural
12895 alignment of the type.
12897 2008-03-19 Jan Hubicka <jh@suse.cz>
12900 * toplev.c (decode_d_option): Handle all CPP flags.
12901 * tree-vrp.c: Update tree_pass descriptors.
12902 * regrename.c: Update tree_pass descriptors.
12903 * fwprop.c: Update tree_pass descriptors.
12904 * doc/invoke.texi: Remove documentation of dropped -d? flags.
12905 * tree-into-ssa.c: Update tree_pass descriptors.
12906 * tree-dump.c: Update tree_pass descriptors.
12907 * tree-complex.c: Update tree_pass descriptors.
12908 * tree-dump.h: Update tree_pass descriptors.
12909 * see.c: Update tree_pass descriptors.
12910 * cgraphbuild.c: Update tree_pass descriptors.
12911 * tracer.c: Update tree_pass descriptors.
12912 * tree-loop-distribution.c: Update tree_pass descriptors.
12913 * cgraph.c: Update tree_pass descriptors.
12914 * postreload-gcse.c: Update tree_pass descriptors.
12915 * postreload.c: Update tree_pass descriptors.
12916 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12917 * tree-tailcall.c: Update tree_pass descriptors.
12918 * tree-pass.h (tree_opt_pass): Rename to ...
12919 (opt_pass) ... this one; add "type" field and remove letter field.
12920 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12921 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12922 all_lowering_passes): Update declaration.
12923 * ipa-cp.c: Update tree_pass descriptors.
12924 * final.c: Update tree_pass descriptors.
12925 * omp-low.c: Update tree_pass descriptors.
12926 * tree-ssa-dse.c: Update tree_pass descriptors.
12927 * ipa-reference.c: Update tree_pass descriptors.
12928 * tree-ssa-uncprop.c: Update tree_pass descriptors.
12929 * auto-inc-dec.c: Update tree_pass descriptors.
12930 * reorg.c: Update tree_pass descriptors.
12931 * cgraphunit.c: Update tree_pass descriptors.
12932 * tree-ssa-copyrename.c: Update tree_pass descriptors.
12933 * tree-ssa-ccp.c: Update tree_pass descriptors.
12934 * df-core.c: Update tree_pass descriptors.
12935 * mode-switching.c: Update tree_pass descriptors.
12936 * tree-nomudflap.c: Update tree_pass descriptors.
12937 * modulo-sched.c: Update tree_pass descriptors.
12938 * ipa-pure-const.c: Update tree_pass descriptors.
12939 * cse.c: Update tree_pass descriptors.
12940 * web.c: Update tree_pass descriptors.
12941 * tree-stdarg.c: Update tree_pass descriptors.
12942 * tree-ssa-math-opts.c: Update tree_pass descriptors.
12943 * tree-ssa-dom.c: Update tree_pass descriptors.
12944 * tree-nrv.c: Update tree_pass descriptors.
12945 * tree-ssa-alias.c: Update tree_pass descriptors.
12946 * loop-init.c: Update tree_pass descriptors.
12947 * gimple-low.c: Update tree_pass descriptors.
12948 * ipa-inline.c: Update tree_pass descriptors.
12949 * tree-ssa-sink.c: Update tree_pass descriptors.
12950 * global.c: Update tree_pass descriptors.
12951 * ifcvt.c: Update tree_pass descriptors.
12952 * jump.c: Update tree_pass descriptors.
12953 * predict.c: Update tree_pass descriptors.
12954 * tree-ssa-loop.c: Update tree_pass descriptors.
12955 * recog.c: Update tree_pass descriptors.
12956 * dse.c: Update tree_pass descriptors.
12957 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12958 * tree-eh.c: Update tree_pass descriptors.
12959 * regmove.c: Update tree_pass descriptors.
12961 * function.c: Update tree_pass descriptors.
12962 * tree-vectorizer.c: Update tree_pass descriptors.
12963 * gcse.c: Update tree_pass descriptors.
12964 * ipa-type-escape.c: Update tree_pass descriptors.
12965 * tree-if-conv.c: Update tree_pass descriptors.
12966 * init-regs.c: Update tree_pass descriptors.
12967 * ipa.c: Update tree_pass descriptors.
12968 * tree-ssa-phiopt.c: Update tree_pass descriptors.
12969 * rtl-factoring.c: Update tree_pass descriptors.
12970 * lower-subreg.c: Update tree_pass descriptors.
12971 * bt-load.c: Update tree_pass descriptors.
12972 * tree-dfa.c: Update tree_pass descriptors.
12973 * except.c: Update tree_pass descriptors.
12974 * emit-rtl.c: Update tree_pass descriptors.
12975 * cfgexpand.c: Update tree_pass descriptors.
12976 * tree-cfgcleanup.c: Update tree_pass descriptors.
12977 * cfgcleanup.c: Update tree_pass descriptors.
12978 * tree-ssa-pre.c: Update tree_pass descriptors.
12979 * tree-sra.c: Update tree_pass descriptors.
12980 * tree-mudflap.c: Update tree_pass descriptors.
12981 * tree-ssa-copy.c: Update tree_pass descriptors.
12982 * cfglayout.c: Update tree_pass descriptors.
12983 * tree-ssa-forwprop.c: Update tree_pass descriptors.
12984 * tree-ssa-dce.c: Update tree_pass descriptors.
12985 * tree-ssa.c: Update tree_pass descriptors.
12986 * regclass.c: Update tree_pass descriptors.
12987 * integrate.c: Update tree_pass descriptors.
12988 * tree-optimize.c: Update tree_pass descriptors.
12989 * tree-ssa-phiprop.c: Update tree_pass descriptors.
12990 * tree-object-size.c: Update tree_pass descriptors.
12991 * combine.c: Update tree_pass descriptors.
12992 * tree-outof-ssa.c: Update tree_pass descriptors.
12993 * bb-reorder.c: Update tree_pass descriptors.
12994 * stack-ptr-mod.c: Update tree_pass descriptors.
12995 * var-tracking.c: Update tree_pass descriptors.
12996 * tree-profile.c: Update tree_pass descriptors.
12997 * tree-vect-generic.c: Update tree_pass descriptors.
12998 * reg-stack.c: Update tree_pass descriptors.
12999 * sched-rgn.c: Update tree_pass descriptors.
13000 * tree-ssa-structalias.c: Update tree_pass descriptors.
13001 * tree-cfg.c: Update tree_pass descriptors.
13002 * passes.c (current_pass): Update declaration.
13003 (finish_optimization_passes): Update.
13004 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
13005 (register_one_dump_file, register_dump_files_1, next_pass_1):
13007 (init_optimization_passes): Update handling of new types.
13008 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
13009 * ipa-struct-reorg.c: Update tree_pass descriptors.
13010 * tree-ssa-reassoc.c: Update tree_pass descriptors.
13011 * combine-stack-adj.c: Update tree_pass descriptors.
13012 * cfgrtl.c: Update tree_pass descriptors.
13013 * dce.c: Update tree_pass descriptors.
13014 * tree-ssanames.c: Update tree_pass descriptors.
13016 2008-03-19 Richard Guenther <rguenther@suse.de>
13018 PR middle-end/35609
13019 * tree-ssa.c (walk_data): New structure.
13020 (warn_uninitialized_var): If not always_executed warn with "maybe"
13022 (execute_early_warn_uninitialized): Compute post-dominators.
13023 Initialize always_executed before processing each basic block.
13025 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
13028 * config/i386/i386.c (x86_this_parameter): Calculate correct location
13029 of "this" pointer when "regparm = N" or "fastcall" is in effect.
13031 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13033 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
13035 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
13037 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
13039 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
13040 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
13041 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
13042 target after ignore has been set, and move there also the commputation
13043 of subtarget and original_target.
13044 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
13045 (LANG_HOOKS_INITIALIZER): Remove it.
13046 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
13048 2008-03-18 Richard Guenther <rguenther@suse.de>
13050 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
13051 found an expression with constants, note that in the VN for the lhs.
13052 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
13053 fold them to constants if possible. Run cleanup_cfg if done so.
13054 (execute_pre): Return todo.
13055 (do_pre): Likewise.
13056 (execute_fre): Likewise.
13057 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
13059 (get_prop_source_stmt): Look through pointer conversions.
13061 2008-03-18 Jan Hubicka <jh@suse.cz>
13063 * tree-pretty-print.c: Include predict.h.
13064 (dump_generic_node): Dump predictor.
13065 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
13066 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
13067 * gimple-low.c (lower_stmt): Likewise.
13068 * expr.c (expand_expr_real): Likewise.
13069 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
13071 (build_predict_expr, build_predict_expr): New.
13072 * predict.h (predictor_name, build_predict_expr): Update.
13073 * c-typeck.c (c_finish_bc_stmt): Add prediction.
13074 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13075 * predict.def (PRED_CONTINUE): Update hitrate.
13076 * tree.def (PREDICT_EXPR): Define.
13077 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13078 do not handle BIND_EXPR.
13079 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13080 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13081 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13084 2008-03-18 Michael Matz <matz@suse.de>
13086 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13088 2008-03-18 Richard Guenther <rguenther@suse.de>
13090 * tree-gimple.h (is_gimple_invariant_address): Declare.
13091 (is_gimple_constant): Likewise.
13092 * tree-gimple.c (is_gimple_constant): New function.
13093 (is_gimple_invariant_address): Likewise.
13094 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13095 and is_gimple_invariant_address.
13096 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13098 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13099 an addressable base.
13101 2008-03-18 Jakub Jelinek <jakub@redhat.com>
13103 PR middle-end/35611
13104 * gimplify.c (gimplify_expr): Gimplify second operand of
13107 2008-03-17 Richard Guenther <rguenther@suse.de>
13109 PR tree-optimization/19637
13110 * fold-const.c (fold_unary): Remove restrictions of removing
13111 intermediate pointer-conversions (P2)(P1)P0.
13112 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13113 conversion to void pointer.
13114 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13116 2008-03-16 James E. Wilson <wilson@tuliptree.org>
13119 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13120 emulated thread local variables.
13122 2008-03-16 Richard Guenther <rguenther@suse.de>
13124 PR middle-end/35607
13125 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13126 expand TREE_INVARIANT operations that are not gimple invariant.
13128 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
13130 * doc/extend.texi (Alignment): Say that the ABI controls
13131 the __alignof__ for non-strict-alignment targets rather
13132 than being a recommendation.
13134 2008-03-15 Paul Brook <paul@codesourcery.com>
13136 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13138 (arm_output_fn_unwind): Mark functions that can not be unwound.
13140 2008-03-15 Paul Brook <paul@codesourcery.com>
13142 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13143 extension instructions.
13145 2008-03-15 Richard Guenther <rguenther@suse.de>
13147 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13148 and fold constant aggregate refs.
13149 (fold_const_aggregate_ref): Handle string constants
13150 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
13151 (evaluate_stmt): Simplify now that ccp_fold folds constant
13154 2008-03-15 Paul Brook <paul@codesourcery.com>
13156 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13157 (extzv): Use gen_extzv_t2.
13158 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13160 2008-03-15 Richard Guenther <rguenther@suse.de>
13162 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13163 (fold_const_aggregate_ref): Likewise.
13164 (get_value): Return NULL if we don't have any values.
13165 (ccp_finalize): Set const_val to NULL after freeing it.
13166 * tree-flow.h (get_symbol_constant_value): Declare.
13167 (fold_const_aggregate_ref): Likewise.
13168 * tree-ssa-sccvn.c (try_to_simplify): Use them.
13170 2008-03-15 Richard Guenther <rguenther@suse.de>
13172 PR middle-end/35593
13173 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13174 to not produce negative array indices if not allowed. Add
13175 parameter to indicate that.
13176 (maybe_fold_offset_to_component_ref): Allow negative array
13177 indices only for the first member of a structure.
13178 (maybe_fold_offset_to_reference): Allow negative array indices.
13179 (maybe_fold_stmt_addition): Likewise.
13181 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
13182 Anatoly Sokolov <aesok@post.ru>
13184 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
13185 (avr_arch): Add ARCH_AVR6.
13186 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13187 (initial_elimination_offset): Initialize and use 'avr_pc_size'
13188 instead of fixed value 2.
13189 (print_operand_address): Use gs() asm specifier instead of pm().
13190 (avr_assemble_integer): (Ditto.).
13191 (avr_output_addr_vec_elt): (Ditto.).
13192 (print_operand): Handle "!" code.
13193 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13194 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13195 (AVR_HAVE_EIJMP_EICALL): Define.
13196 (AVR_3_BYTE_PC): Redefine.
13197 (AVR_2_BYTE_PC): (Ditto.).
13198 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13199 (LINK_SPEC): Add atmega2560 and atmega2561.
13200 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13202 * config/avr/avr.md (call_insn): Use eicall instead of icall
13203 for 3 byte PC devices.
13204 (call_value_insn): (Ditto.).
13205 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13206 (indirect_jump): Use only for for 2 byte PC devices.
13207 (*tablejump): (Ditto.).
13208 (*indirect_jump_avr6): Add insn.
13209 (*tablejump_rjmp): Don't use for 3 byte PC devices.
13210 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13211 instead of ijmp for 3 byte PC devices.
13212 (__tablejump2__): (Ditto.).
13213 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13214 (MULITLIB_DIRNAMES): (Ditto.).
13215 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13217 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
13219 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13220 "sse2_umulsidi3". Use V1DI mode for operand 0.
13221 ("mmx_psadbw"): Use V1DI mode for operand 0.
13222 * config/i386/i386-modes.def (V1SI): New vector mode.
13223 * config/i386/i386.c (struct builtin_description)
13224 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13225 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13226 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13227 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13228 v1di_ftype_v8qi_v8qi type.
13229 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13231 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13232 __builtin_ia32_pmuludq]: Fix the mode of return value.
13234 2008-03-15 Richard Guenther <rguenther@suse.de>
13236 PR middle-end/35595
13237 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13240 2008-03-14 Bob Wilson <bob.wilson@acm.org>
13242 * doc/invoke.texi (Option Summary, Xtensa Options): Document
13243 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13244 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13245 unless TARGET_SERIALIZE_VOLATILE is enabled.
13246 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13247 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13248 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13250 2008-03-14 Richard Guenther <rguenther@suse.de>
13252 PR tree-optimization/34172
13253 * tree-flow.h (refs_may_alias_p): Declare.
13254 (get_single_def_stmt): Likewise.
13255 (get_single_def_stmt_from_phi): Likewise.
13256 (get_single_def_stmt_with_phi): Likewise.
13257 * tree-dfa.c (refs_may_alias_p): New function.
13258 (get_single_def_stmt): Likewise.
13259 (get_single_def_stmt_from_phi): Likewise.
13260 (get_single_def_stmt_with_phi): Likewise.
13261 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13262 (vn_reference_lookup_1): New helper function.
13263 (vn_reference_lookup): Walk the virtual use-def chain to
13264 continue searching for a match if the def does not alias the
13265 reference we are looking for.
13267 2008-03-14 David Edelsohn <edelsohn@gnu.org>
13269 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
13270 archive and Perzl. Update The Written Word listing.
13272 2008-03-14 Richard Guenther <rguenther@suse.de>
13274 PR tree-optimization/34043
13275 PR tree-optimization/33989
13276 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13278 (bitmap_find_leader): Use extra argument to verify dominance
13279 relationship inside a basic-block.
13280 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13281 (find_leader_in_sets): Adjust.
13282 (create_component_ref_by_pieces): Take extra argument for
13283 dominance check, handle lookup failures.
13284 (find_or_generate_expression): Likewise.
13285 (create_expression_by_pieces): Likewise.
13286 (insert_into_preds_of_block): Adjust.
13287 (create_value_expr_from): If asked for, verify all operands
13288 are in the blocks AVAIL_OUT set.
13289 (make_values_for_stmt): Check for SSA_NAMEs that are life
13290 over an abnormal edge.
13291 (compute_avail): Remove such check.
13292 (do_SCCVN_insertion): New function.
13293 (eliminate): If we do not find a leader suitable for replacement
13294 insert a replacement expression from SCCVN if available.
13295 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13296 (struct vn_ssa_aux): Add needs_insertion flag.
13297 * tree-ssa-sccvn.c (may_insert): New global flag.
13298 (copy_reference_ops_from_ref): Value-number union member access
13299 based on its size, not type and member if insertion is allowed.
13300 (visit_reference_op_load): For a weak match from union type
13301 punning lookup a view-converted value and insert a SSA_NAME
13302 for that value if that is not found.
13303 (visit_use): Make dumps shorter. Do not disallow value numbering
13304 SSA_NAMEs that are life over an abnormal edge to constants.
13305 (free_scc_vn): Release inserted SSA_NAMEs.
13306 (run_scc_vn): New flag to specify whether insertion is allowed.
13307 Process SSA_NAMEs in forward order.
13308 * tree-ssa-loop-im.c (for_each_index): Handle invariant
13309 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13310 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13311 pointer type to/from integral types that do not change the
13312 precision to regular conversions.
13314 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13316 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13317 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13318 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13319 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13320 input arguments and the mode of return value. Built-in functions
13321 that operate on whole 64-bit MMX register now use V1DI mode.
13323 2008-03-13 Alon Dayan <alond@il.ibm.com>
13324 Olga Golovanevsky <olga@il.ibm.com>
13326 PR tree-optimization/35041
13327 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13328 to locate the right position in a statement.
13330 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13334 * config/i386/xmmintrin.h: Change all static inline functions to
13335 extern inline and add __gnu_inline__ attribute.
13336 * config/i386/bmintrin.h: Ditto.
13337 * config/i386/smmintrin.h: Ditto.
13338 * config/i386/tmmintrin.h: Ditto.
13339 * config/i386/mmintrin-common.h: Ditto.
13340 * config/i386/ammintrin.h: Ditto.
13341 * config/i386/emmintrin.h: Ditto.
13342 * config/i386/pmmintrin.h: Ditto.
13343 * config/i386/mmintrin.h: Ditto.
13344 * config/i386/mm3dnow.h: Ditto.
13346 2008-03-13 Jakub Jelinek <jakub@redhat.com>
13348 PR middle-end/35185
13349 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13350 (lower_omp_2): New function.
13351 (lower_omp_1, lower_omp): Rewritten.
13353 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
13356 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13357 with the phrase "Microsoft Windows compilers".
13358 (Push/Pop Macro Pragmas): New subsection. Document
13359 #pragma push_macro and pragma pop_macro.
13361 2008-03-12 Paul Brook <paul@codesourcery.com>
13363 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13365 2008-03-12 Paul Brook <paul@codesourcery.com>
13367 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13368 (thumb2_alusi3_short): Exclude PLUS and MINUS.
13369 (thumb2_addsi_shortim): Rename ...
13370 (thumb2_addsi_short): ... to this. Allow register operands.
13371 (thumb2_subsi_short): New pattern.
13372 (thumb2_one_cmplsi2_short,
13373 thumb2_negsi2_short): New patterns and peepholes.
13375 2008-03-12 Paul Brook <paul@codesourcery.com>
13377 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13379 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
13381 * config/i386/i386.md (int_cond): New code iterator.
13383 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13384 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13385 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13386 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13387 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13388 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13389 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13390 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13392 2008-03-12 Paul Brook <paul@codesourcery.com>
13394 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13395 instead of {arm,thumb}_compute_save_reg_mask.
13396 (output_return_instruction): Ditto.
13397 (thumb_unexpanded_epilogue): Ditto.
13398 (thumb1_expand_prologue): Ditto.
13399 (thumb1_output_function_prologue): Ditto.
13400 (arm_set_return_address): Ditto.
13401 (thumb_set_return_address): Ditto.
13402 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
13403 regs to achieve stack alignment.
13404 (thumb1_compute_save_reg_mask): Fix compiler warning.
13405 (arm_output_epilogue): Use offsets->saved_regs_mask.
13406 Adjust stack pointer by poping call clobered registers.
13407 (arm_expand_prologue): Use offsets->saved_regs_mask.
13408 Adjust stack pointer by pushing extra registers.
13409 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13411 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
13414 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13415 conversion to the operands of a multiplication.
13417 2008-03-12 Richard Guenther <rguenther@suse.de>
13419 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13420 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13421 * timevar.def (TV_TREE_PHIPROP): Add.
13422 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13423 pass description. Use TV_TREE_PHIPROP.
13424 * tree-ssa-forwprop.c: Remove phiprop code.
13426 2008-03-12 Jakub Jelinek <jakub@redhat.com>
13428 PR middle-end/35549
13429 * omp-low.c (maybe_lookup_decl): Constify first argument.
13430 (use_pointer_for_field): Change last argument from bool to
13431 omp_context *. Disallow shared copy-in/out in nested
13432 parallel if decl is shared in outer parallel too.
13433 (build_outer_var_ref, scan_sharing_clauses,
13434 lower_rec_input_clauses, lower_copyprivate_clauses,
13435 lower_send_clauses, lower_send_shared_vars): Adjust callers.
13437 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
13438 Ira Rosen <irar@il.ibm.com>
13440 * tree-vectorizer.c (free_stmt_vec_info): New function.
13441 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13442 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13443 * tree-vectorizer.h (free_stmt_vec_info): Declare.
13444 * tree-vect-transform.c (vectorizable_conversion): Free
13445 vec_oprnds0 if it was allocated.
13446 (vect_permute_store_chain): Remove unused VECs.
13447 (vectorizable_store): Free VECs that are allocated in the..
13449 (vect_transform_strided_load, vectorizable_load): Likewise.
13450 (vect_remove_stores): Simplify the code.
13451 (vect_transform_loop): Move code to vect_remove_stores().
13452 Call vect_remove_stores() and free_stmt_vec_info().
13454 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13456 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13457 TARGET_HPUX. Revise comment.
13458 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13459 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13460 Use sr4 variant of `be' instruction when not generating PIC code.
13461 (attr_length_call): Adjust for above change.
13463 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13465 * ipa-reference.c (static_execute): Remove module_statics_const and
13466 associated setting code.
13468 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13471 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13472 predicate for operand 1.
13473 (paritysi2_cmp): Use register_operand predicate for operand 2.
13474 Use earlyclobber modifier for operand 1. Remove support for
13476 (paritydi2_cmp): Use register_operand predicate for operand 3.
13477 Use earlyclobber modifier for operand 1. Remove support for
13480 2008-03-11 Paul Brook <paul@codesourcery.com>
13481 Vladimir Prus <vladimir@codesourcery.com>
13483 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13484 (arm_compute_save_reg0_reg12_mask): Always
13485 check if register 11 must be saved. Always safe hard frame pointer
13486 when frame_pointer_needeed.
13487 (arm_compute_save_reg_mask): Save IP and PC
13488 only with apcs frames.
13489 (arm_output_epilogue): Adjust Thumb2 codepath to
13490 be also invoked and work for ARM non-apcs frames.
13491 (arm_expand_prologue): Don't bother saving IP
13492 for non-apcs frame, since it's not clobbered by
13493 prologue code. Implement non-apcs frame
13496 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13498 PR rtl-optimization/35281
13499 * expr.c (convert_move): Use a new pseudo for the intermediate
13500 from_mode->word_mode result.
13502 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13504 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13505 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13506 * toplev.c (compile_file): Don't call it.
13508 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13510 PR middle-end/35526
13511 * expr.c (store_expr): Call emit_block_move if the mode
13512 of "temp" RTX is BLKmode.
13514 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13515 Richard Guenther <rguenther@suse.de>
13517 PR tree-optimization/31358
13518 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13519 the step with a NULL_TREE.
13520 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13521 to sizetype if type is a pointer type.
13522 (add_candidate_1): Don't convert the base and step to
13523 the generic type if the orginal type is a pointer type.
13524 (add_iv_value_candidates): Use sizetype for the step
13525 if type is a pointer type.
13526 (cand_value_at): Likewise.
13527 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13529 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13530 Don't convert the tem affine to the type.
13531 (add_elt_to_tree): Use sizetype for the step if a pointer.
13532 Use POINTER_PLUS_EXPR for pointers.
13533 (aff_combination_to_tree): Use sizetype for the step if a
13536 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
13538 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13539 Remove commutativity hint.
13541 2008-03-10 Jakub Jelinek <jakub@redhat.com>
13545 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13546 errorneous type. Check that v is a VAR_DECL.
13548 PR middle-end/35099
13549 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13551 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
13553 PR tree-optimization/35494
13554 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13555 may be overriden at link and run time.
13557 2008-03-10 Richard Guenther <rguenther@suse.de>
13559 PR tree-optimization/34677
13560 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13561 (poolify_tree): Likewise.
13562 (modify_expr_template): Likewise.
13563 (poolify_modify_stmt): Likewise.
13564 (insert_fake_stores): Handle all component-ref style stores
13565 in addition to INDIRECT_REF. Also handle complex types.
13566 Do not poolify the inserted load.
13567 (realify_fake_stores): Do not rebuild the tree but only
13568 make it a SSA_NAME copy.
13569 (init_pre): Remove initialzation of modify_expr_template.
13570 Do not allocate modify_expr_node_pool.
13571 (fini_pre): Do not free modify_expr_node_pool.
13573 2008-03-10 Paul Brook <paul@codesourcery.com>
13575 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13576 to avoid conflicts.
13578 2008-03-10 Paul Brook <paul@codesourcery.com>
13579 Mark Shinwell <shinwell@codesourcery.com>
13581 * config/arm/cortex-r4.md: New.
13582 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13584 * config/arm/arm.md: Include cortex-r4.md.
13585 (insn): Add smmls, sdiv and udiv values.
13586 (generic_sched): Don't use generic scheduling for Cortex-R4.
13587 (arm_issue_rate): New function.
13588 (TARGET_SCHED_ISSUE_RATE): Define.
13590 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
13592 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13594 2008-03-10 Richard Guenther <rguenther@suse.de>
13596 * tree-ssa-pre.c (get_sccvn_value): Simplify.
13597 (compute_avail): Do not add stmt uses to AVAIL_OUT.
13599 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
13601 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13602 Set default to true.
13604 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13606 * c.opt (Wsynth): Deprecate.
13607 * doc/invoke.texi (Option Summary, Warning Options): Document
13608 -Wno-format-contains-nul.
13610 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
13613 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13614 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13616 2008-03-09 Ira Rosen <irar@il.ibm.com>
13618 * config/rs6000/rs6000.c (builtin_description): Rename vector
13619 left shift operations.
13620 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13621 (altivec_vsl<VI_char>): Rename to ...
13622 (ashl<mode>3): ... new name.
13623 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13625 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13627 2008-03-08 Richard Guenther <rguenther@suse.de>
13629 * coverage.h (tree_coverage_counter_addr): Declare.
13630 * coverage.c (tree_coverage_counter_addr): New function.
13631 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13632 before using again.
13633 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13634 (tree_gen_one_value_profiler): Likewise.
13635 (tree_gen_ic_profiler): Likewise.
13636 (tree_gen_average_profiler): Likewise.
13637 (tree_gen_ior_profiler): Likewise.
13639 2008-03-08 Richard Guenther <rguenther@suse.de>
13641 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13642 (vn_binary_op_insert): Likewise.
13643 (vn_unary_op_lookup): Likewise.
13644 (vn_unary_op_insert): Likewise.
13645 (vn_nary_op_lookup): Declare.
13646 (vn_nary_op_insert): Likewise.
13647 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13648 and binary hashes, use a single obstack for unary_op_pool
13649 and binary_op_pool.
13650 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13651 a single struct vn_nary_op_s. Store tree code length and
13652 a variable number of operands.
13653 (struct vn_reference_op_struct): Remove unused op2.
13654 (vn_reference_op_eq): Do not compare op2.
13655 (vn_reference_op_compute_hash): Do not compute hash of op2.
13656 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13657 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13658 with vn_nary_op_compute_hash.
13659 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13660 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13662 (vn_unary_op_insert, vn_binary_op_insert): Replace with
13664 (visit_unary_op): Call nary functions.
13665 (visit_binary_op): Likewise.
13666 (process_scc): Adjust for struct vn_tables_s changes.
13667 (allocate_vn_table): Likewise.
13668 (free_vn_table): Likewise.
13669 * tree-vn.c (vn_add): Call nary functions.
13670 (vn_lookup): Likewise.
13672 2008-03-08 Jakub Jelinek <jakub@redhat.com>
13675 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13676 wdst back after sync_compare_and_swapqhi_internal.
13678 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
13681 * config/i386/i386-modes.def (V1DI): New vector mode.
13682 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13683 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13684 (MMXMODE248): Ditto.
13685 (MMXMODE): Add V1DI mode.
13686 (mmxvecsize): Change DI mode to V1DI mode.
13687 ("mov<mode>): Use MMXMODEI8 mode iterator.
13688 ("*mov<mode>_internal_rex64"): Ditto.
13689 ("*mov<mode>_internal"): Ditto.
13690 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
13691 ("mmx_sub<mode>3"): Ditto.
13692 ("mmx_adddi3"): Remove insn pattern.
13693 ("mmx_subdi3"): Ditto.
13694 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13695 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13696 ("mmx_ashl<mode>3"): Ditto.
13697 ("mmx_lshrdi3"): Remove insn pattern.
13698 ("mmx_ashldi3"): Ditto.
13699 * config/i386/i386.c (classify_argument): Handle V1DImode.
13700 (function_arg_advance_32): Ditto.
13701 (function_arg_32): Ditto.
13702 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13703 mmx_addv1di3 insn pattern.
13704 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13705 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13706 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13707 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13708 Remove definitions of built-in functions.
13709 (V1DI_type_node): New node.
13710 (v1di_ftype_v1di_int): Ditto.
13711 (v1di_ftype_v1di_v1di): Ditto.
13712 (v2si_ftype_v2si_si): Ditto.
13713 (v4hi_ftype_v4hi_di): Remove node.
13714 (v2si_ftype_v2si_di): Ditto.
13715 (ix86_init_mmx_sse_builtins): Handle V1DImode.
13716 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13717 Redefine builtins using def_builtin_const with *_ftype_*_int node.
13718 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13719 Add new builtins using def_builtin_const.
13720 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13721 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13722 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13723 * config/i386/mmintrin.h (__v1di): New typedef.
13724 (_mm_add_si64): Cast arguments to __v1di type.
13725 (_mm_sub_si64): Ditto.
13726 (_mm_sll_pi16): Cast __count to __v4hi type.
13727 (_mm_sll_pi32): Cast __count to __v2si type.
13728 (_mm_sll_si64): Cast arguments to __v1di type.
13729 (_mm_srl_pi16): Cast __count to __v4hi type.
13730 (_mm_srl_pi32): Cast __count to __v2si type.
13731 (_mm_srl_si64): Cast arguments to __v1di type.
13732 (_mm_sra_pi16): Cast __count to __v4hi type.
13733 (_mm_sra_pi32): Cast __count to __v2si type.
13734 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13735 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13736 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13737 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13738 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13739 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13740 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13741 (_mm_srai_pi32): Use __builtin_ia32_psradi.
13742 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13743 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13744 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13745 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13747 2008-03-07 Joseph Myers <joseph@codesourcery.com>
13749 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13751 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
13754 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13755 reg+const addressing for Altivec modes. Don't generate reg+reg
13756 addressing for TFmode or TDmode quantities.
13758 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
13760 * c-common.c (vector_types_convertible_p): Call langhook
13761 instead of comptypes.
13763 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
13766 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13767 integral and scalar float variables which have a
13770 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
13772 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13773 dwarf_register_span hook when emitting unwind information for
13774 register-to-memory saves.
13775 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13776 (rs6000_frame_related): Remove call to spe_synthesize_frame.
13778 2008-03-06 Jakub Jelinek <jakub@redhat.com>
13780 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13781 for the same VAR_DECL.
13783 2008-03-06 Tom Tromey <tromey@redhat.com>
13785 * treelang: Delete.
13786 * doc/standards.texi (Standards): Don't mention treelang.
13787 * doc/invoke.texi (Overall Options): Don't mention treelang.
13788 * doc/install.texi (Prerequisites): Don't mention bison or
13790 (Configuration): Don't mention treelang.
13791 (Building): Likewise.
13792 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13794 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
13796 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13797 word-extractions out of a multi-word object.
13799 2008-03-06 Richard Guenther <rguenther@suse.de>
13801 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13802 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13803 result type and precision.
13804 * expr.c (get_inner_reference): Set unsignedp based on the result
13805 type of BIT_FIELD_REF.
13806 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13807 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13808 (try_instantiate_multiple_fields): Likewise. Use the correct type
13810 (sra_build_assignment): Likewise.
13811 (sra_build_elt_assignment): Likewise.
13812 (sra_explode_bitfield_assignment): Likewise.
13813 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13814 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13815 set BIT_FIELD_REF_UNSIGNED.
13816 (vectorizable_load): Likewise.
13818 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
13820 * cse.c (cse_extended_basic_block): Invalidate artificial defs
13823 2008-03-06 Richard Guenther <rguenther@suse.de>
13825 * alias.c (struct alias_set_entry): Move has_zero_child field
13826 to pack with alias_set.
13828 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13830 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13833 2008-03-05 Ian Lance Taylor <iant@google.com>
13835 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13837 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
13839 * fwprop.c (update_df): Support width and offset parameters of
13841 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13842 global_conflicts): Change DF_REF_EXTRACT to either
13843 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13844 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13845 * df-scan.c (df_ref_record, df_defs_record,
13846 df_ref_create_structure, df_def_record_1, df_uses_record,
13847 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13848 df_bb_refs_collect, df_entry_block_defs_collect,
13849 df_exit_block_uses_collect): Support new width and offset fields.
13850 (ref_extract_pool): New storage pool.
13851 (df_free_ref): New function.
13852 (df_reg_chain_unlink, df_free_collection_rec,
13853 df_sort_and_compress_refs): Call df_free_ref.
13854 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13856 (df_ref_create_structure): Allocate df_ref_extract if offset and
13857 width fields are used.
13858 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13859 (df_uses_record): Get offset and width from ZERO_EXTRACT
13861 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13862 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13863 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13864 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13865 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
13866 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13867 (df_ref_extract): New structure.
13868 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13869 (df_ref_create): Add width and offset parameters.
13871 2008-03-05 Richard Guenther <rguenther@suse.de>
13873 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13874 Use ranges_overlap_p.
13875 (offset_overlaps_with_access): Rename
13876 to ranges_overlap_p and move ...
13877 * tree-flow-inline.h (ranges_overlap_p): ... here.
13879 * tree.h (get_inner_reference, handled_component_p): Update
13882 * tree.h (record_component_aliases, get_alias_set,
13883 alias_sets_conflict_p, alias_sets_must_conflict_p,
13884 objects_must_conflict_p): Move declarations ...
13885 * alias.h (record_component_aliases, get_alias_set,
13886 alias_sets_conflict_p, alias_sets_must_conflict_p,
13887 objects_must_conflict_p): ... here.
13888 Include coretypes.h.
13889 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13891 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
13893 * cfg.c: Include tree-flow.h.
13894 (remove_edge_raw): Call redirect_edge_var_map_clear.
13895 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13896 * tree-flow-inline.h (redirect_edge_var_map_def): New.
13897 (redirect_edge_var_map_result): New.
13898 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13899 PENDING_STMT use with redirect_edge_var_map_*.
13900 * tree-ssa.c (edge_var_maps): New definition.
13901 (redirect_edge_var_map_add): New.
13902 (redirect_edge_var_map_clear): New.
13903 (redirect_edge_var_map_dup): New.
13904 (redirect_edge_var_map_vector): New.
13905 (redirect_edge_var_map_destroy): New.
13906 (ssa_redirect_edge): Replace PENDING_STMT use with
13907 redirect_edge_var_map_*.
13908 (flush_pending_stmts): Same.
13909 (delete_tree_ssa): Destroy edge var map.
13910 * tree-flow.h (struct _edge_var_map): New.
13911 Define edge_var_map vector type.
13912 Declare redirect_edge_var_map_* prototypes.
13913 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13914 * tree-cfg.c (reinstall_phi_args): Replace
13915 PENDING_STMT use with redirect_edge_var_map_*.
13917 2008-03-05 Richard Guenther <rguenther@suse.de>
13919 PR tree-optimization/35472
13920 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13921 whose single use_stmt has a overlapping set of loaded and
13922 stored symbols as that use_stmt might be a noop assignment then.
13924 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
13926 * gthr-rtems.h: Implement __gthread_mutex_destroy.
13928 2008-03-05 Richard Guenther <rguenther@suse.de>
13931 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13932 should be constants.
13933 * tree-cfg.c (verify_expr): Verify it.
13934 * fold-const.c (fold_truthop): Remove code generating
13935 BIT_FIELD_REFs of structure bases.
13936 (fold_binary): Likewise.
13937 (fold_ternary): Position and size of BIT_FIELD_REFs are
13938 always host integers.
13939 (make_bit_field_ref): Remove.
13940 (optimize_bit_field_compare): Remove.
13941 (all_ones_mask_p): Remove.
13943 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
13946 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13947 (split_block_and_df_analyze): New. Split basic block and rebuild
13949 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13951 (split_pattern_seq): Likewise.
13952 (erase_matching_seqs): Likewise.
13953 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13955 2008-03-04 Geoff Keating <geoffk@apple.com>
13957 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13958 declaration and code.
13959 (tree_invalid_nonnegative_warnv_p): Likewise.
13961 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
13963 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13964 examples. Truncate option-names then causing overfull hbox.
13966 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13969 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13971 * configure: Rebuilt.
13973 2008-03-04 Rafael Espindola <espindola@google.com>
13975 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13976 (tree_unary_nonnegative_warnv_p): New.
13977 (tree_binary_nonnegative_warnv_p): New.
13978 (tree_single_nonnegative_warnv_p): New.
13979 (tree_invalid_nonnegative_warnv_p): New.
13980 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13982 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13985 * opts.c (handle_option): Postpone 'unknown option' errors only for
13988 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
13991 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13994 2008-03-04 Rafael Espindola <espindola@google.com>
13996 * fold-const.c (tree_unary_nonzero_warnv_p): New.
13997 (tree_binary_nonzero_warnv_p): New.
13998 (tree_single_nonzero_warnv_p): New.
13999 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
14001 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
14003 PR middle-end/35456
14004 * fold-const.c (fold_cond_expr_with_comparison): Prevent
14005 transformations for modes that have signed zeros.
14006 * ifcvt.c (noce_try_abs): Ditto.
14008 2008-03-04 Joseph Myers <joseph@codesourcery.com>
14010 * config/i386/i386.c (override_options): Force
14011 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
14013 2008-03-04 Jan Hubicka <jh@suse.cz>
14016 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
14019 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14021 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
14022 label to probe the stack.
14024 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14026 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
14027 (__gthr_win32_mutex_destroy): Declare.
14028 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
14029 __gthr_win32_mutex_destroy.
14030 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
14032 2008-03-03 Jan Hubicka <jh@suse.cz>
14035 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
14036 aggressive on inlining cold calls.
14038 2008-03-03 Richard Guenther <rguenther@suse.de>
14040 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
14041 struct copies into the expression table.
14042 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
14043 (try_to_simplify): Likewise.
14044 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
14045 integral and pointer arguments which do not change the
14046 precision to NOP_EXPRs.
14047 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
14048 VIEW_CONVERT_EXPR case.
14050 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
14052 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
14053 defined in a loop at depth 0 is invariant.
14054 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14055 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
14056 be called at loop depth 0.
14058 2008-03-02 Jakub Jelinek <jakub@redhat.com>
14061 * gcc.c (process_command): Update copyright notice dates.
14062 * gcov.c (print_version): Likewise.
14063 * gcov-dump.c (print_version): Likewise.
14064 * mips-tfile.c (main): Likewise.
14065 * mips-tdump.c (main): Likewise.
14067 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14070 * c-common.c (flag_permissive): Delete.
14071 (constant_expression_warnings): Check flags first.
14072 (constant_expression_error): New.
14073 * c-common.h (flag_permissive): Delete.
14074 (constant_expression_error): Declare.
14075 * flags.h (flag_permissive): Declare. Update description.
14076 * diagnostic.c (pedwarn): Update.
14078 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14079 (permissive_error_kind): New.
14080 * toplev.c (flag_permissive): Define. Update description.
14081 * toplev.h (permissive_error_kind): Declare.
14082 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14083 (pedwarn_c90): Use pedantic_warning_kind.
14084 * c-opts.c (c_common_post_options): flag_permissive does not affect
14085 flag_pedantic_errors.
14087 2008-03-02 Joseph Myers <joseph@codesourcery.com>
14089 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14090 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14091 __absvsi2, __absvDI2): Use unsigned arithmetic.
14093 2008-03-02 Andi Kleen <ak@suse.de>
14094 Richard Guenther <rguenther@suse.de>
14096 * struct-equiv.c: Remove file.
14097 * cfg_cleanup.c (condjump_equiv_p): Remove.
14098 * Makefile.in (OBJS-common): Remove struct-equiv.o.
14099 (struct-equiv.o): Remove rule.
14100 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14101 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
14102 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14104 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14106 * ifcvt.c (noce_process_if_block): Try to handle only the then
14107 block if the else block exists but isn't suitable.
14109 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14112 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14113 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14114 regression from previous patch.
14116 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14119 * gthr.h: Add __gthread_mutex_destroy as a function that must be
14121 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14122 * gthr-single.h (__gthread_mutex_destroy): Likewise.
14123 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14124 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14125 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14126 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14127 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14128 (__gthread_mutex_destroy_function): Rename to
14129 __gthread_mutex_destroy.
14130 * gthr-dce.h (__gthread_mutex_destroy): Call
14131 pthread_mutex_destroy.
14132 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14133 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14134 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14136 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14138 * df-scan.c (df_ref_chain_change_bb): Simplify.
14139 (df_insn_change_bb): Add new_bb argument. Simplify. Call
14140 set_block_for_insn if there's any change.
14141 * df.h ((df_insn_change_bb): Fix prototype.
14142 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14143 df_insn_change_bb, don't call set_block_for_insn.
14144 * emit-rtl.c (reorder_insns): Likewise.
14145 * haifa-sched.c (move_insn): Likewise.
14147 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14149 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14151 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14153 * tree-flow-inline.h (next_readonly_imm_use): Return
14154 NULL_USE_OPERAND_P after the end.
14156 2008-03-01 Richard Guenther <rguenther@suse.de>
14158 PR tree-optimization/35411
14159 * tree-sra.c (sra_build_assignment): Split conversion to
14160 final type to a separate statement if we are not assigning
14163 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14165 * fold-const.c (fold_convertible_p): Correct the logic to follow
14166 that in fold_convert().
14168 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
14171 * tree-inline.c (build_duplicate_type): When we make a
14172 duplicate type, make it unique in the canonical types system.
14174 2008-02-29 Tom Tromey <tromey@redhat.com>
14176 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14177 input_file_stack_history, input_file_stack_restored): Remove.
14178 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14179 * input.h (struct file_stack): Remove.
14180 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14181 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14183 * diagnostic.h (struct diagnostic_context) <last_module>: Change
14185 (diagnostic_last_module_changed): Add 'map' argument.
14186 (diagnostic_set_last_function): Likewise.
14187 * diagnostic.c (undiagnostic_report_current_module): Iterate using
14188 line map, not input_file_stack.
14189 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14191 2008-02-29 Paul Brook <paul@codesourcery.com>
14193 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14195 2008-02-29 Paul Brook <paul@codesourcery.com>
14197 * config/arm/ieee754-df.S (muldf3): Use RET macros.
14199 2008-02-29 Richard Guenther <rguenther@suse.de>
14201 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14203 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14204 value for comparing for a store match.
14205 (simplify_unary_expression): Do nothing for SSA_NAMEs.
14206 (try_to_simplify): Do not do a full-blown reference lookup.
14208 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14210 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14211 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14213 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14215 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
14217 * tree-loop-linear.c (try_interchange_loops): Compare memory access
14218 strides against cache sizes.
14220 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14222 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14225 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
14227 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14228 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14229 is smaller than the original promoted value.
14230 (simplify_subreg): If OP is a SUBREG, try to preserve its
14231 SUBREG_PROMOTED_VAR_P information.
14233 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
14235 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14236 (VN_INFO_GET): Allocate new objects on the obstack.
14237 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
14238 for rpo_numbers_temp, for consistency.
14239 (free_scc_vn): Free the obstack.
14241 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
14243 * doc/invoke.texi: Document -ftree-loop-distribution.
14244 * tree-loop-distribution.c: New.
14245 * tree-pass.h (pass_loop_distribution): New.
14246 * graphds.h (struct graph): Add htab_t indices.
14247 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14248 * tree-vectorizer.c (rename_variables_in_loop): Extern.
14249 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14250 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14251 * tree-data-ref.c (debug_data_dependence_relations): New.
14252 (dump_data_dependence_relation): Also print data references.
14253 (free_data_ref): Extern.
14254 (same_access_functions): Moved...
14255 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14256 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14257 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14258 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14259 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14260 (stmts_from_loop): Skip LABEL_EXPR.
14261 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14263 (build_rdg): Initialize rdg->indices htab.
14264 (free_rdg, stores_from_loop, ref_base_address,
14265 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14266 have_similar_memory_accesses_1, ref_base_address_1,
14267 remove_similar_memory_refs): New.
14268 * tree-data-ref.h: Depend on tree-chrec.h.
14269 (debug_data_dependence_relations, free_data_ref): Declared.
14270 (same_access_functions): ... here.
14271 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14273 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14274 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14275 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14276 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14277 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14278 rdg_vertex_for_stmt): Declared.
14279 (struct rdg_edge): Add level.
14281 (free_rdg, stores_from_loop, remove_similar_memory_refs,
14282 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14284 (rdg_has_similar_memory_accesses): New.
14285 * tree-vect-analyze.c: Remove unused static decls.
14286 * lambda.h (dependence_level): New.
14287 * common.opt (ftree-loop-distribution): New.
14288 * tree-flow.h (mark_virtual_ops_in_bb,
14289 slpeel_tree_duplicate_loop_to_edge_cfg,
14290 rename_variables_in_loop): Declared.
14291 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14292 (OBJS-common): Add tree-loop-distribution.o.
14293 (tree-loop-distribution.o): New rule.
14294 * tree-cfg.c (mark_virtual_ops_in_bb): New.
14295 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14296 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14298 2008-02-28 Joseph Myers <joseph@codesourcery.com>
14301 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14302 other than structures and unions.
14304 2008-02-28 Richard Guenther <rguenther@suse.de>
14307 2008-02-26 Richard Guenther <rguenther@suse.de>
14309 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14310 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14311 (lookup_decl_from_uid): Declare.
14312 (remove_decl_from_map): Likewise.
14313 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14314 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14315 (decl_for_uid_map): New global hashtable mapping DECL_UID
14317 (init_ttree): Allocate it.
14318 (insert_decl_to_uid_decl_map): New helper function.
14319 (make_node_stat): Insert new decls into the map.
14320 (copy_node_stat): Likewise.
14321 (lookup_decl_from_uid): New function.
14322 (remove_decl_from_map): Likewise.
14323 (print_decl_for_uid_map_statistics): New helper.
14324 (dump_tree_statistics): Call it.
14326 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14327 (referenced_var_iterator): Adjust.
14328 (FOR_EACH_REFERENCED_VAR): Adjust.
14329 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14330 (num_referenced_vars): Adjust.
14331 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14332 (first_referenced_var): Remove.
14333 (end_referenced_vars_p): Likewise.
14334 (next_referenced_var): Likewise.
14335 (referenced_var_iterator_set): New helper function.
14336 * tree-dfa.c (referenced_var_lookup): Adjust.
14337 (referenced_var_check_and_insert): Likewise.
14338 (remove_referenced_var): Likewise.
14339 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14340 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14341 (verify_call_clobbering): Likewise.
14342 (verify_memory_partitions): Likewise.
14343 (init_tree_ssa): Allocate bitmap instead of hashtable for
14345 (delete_tree_ssa): Adjust.
14346 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14347 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14348 (compute_tag_properties): Likewise.
14349 (set_initial_properties): Likewise.
14350 (find_partition_for): Likewise.
14351 (update_reference_counts): Likewise.
14352 (dump_may_aliases_for): Likewise.
14353 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14354 (add_call_clobber_ops): Likewise.
14355 (add_call_read_ops): Likewise.
14356 (get_asm_expr_operands): Likewise.
14357 * tree-into-ssa.c (dump_decl_set): Likewise.
14358 (update_ssa): Likewise.
14359 * tree-sra.c (scan_function): Likewise.
14360 (decide_instantiations): Likewise.
14361 (scalarize_parms): Likewise.
14362 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14363 (dsa_named_for): Likewise.
14364 * tree-ssa-structalias.c (update_alias_info): Likewise.
14365 (merge_smts_into): Likewise.
14367 2008-02-27 David Daney <ddaney@avtrex.com>
14370 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14371 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14372 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14373 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14374 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14376 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
14379 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14380 (BUILT_IN_NEXTTOWARD): Remove.
14381 (BUILT_IN_NEXTTOWARDF): Ditto.
14382 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14383 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
14385 2008-02-27 Tom Tromey <tromey@redhat.com>
14387 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14388 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14390 2008-02-27 Jan Beulich <jbeulich@novell.com>
14392 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14393 update the respective field on newdecl.
14395 2008-02-27 Revital Eres <eres@il.ibm.com>
14397 PR rtl-optimization/34999
14398 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14399 crossing edges that ends with a call insn.
14400 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14401 call insn and clear the EDGE_CROSSING flag of the crossing edge
14402 when fixing fallthru edges.
14404 2008-02-27 Richard Guenther <rguenther@suse.de>
14406 PR middle-end/35390
14407 * fold-const.c (fold_unary): Return the correct argument,
14408 converted to the result type.
14410 2008-02-27 Richard Guenther <rguenther@suse.de>
14412 PR middle-end/34971
14413 * expr.c (expand_expr_real_1): Assert on rotates that operate
14415 * fold-const.c (fold_binary): Use the types precision, not the
14416 bitsize of the mode if folding rotate expressions. Build rotates
14417 only for full modes.
14419 2008-02-27 Jakub Jelinek <jakub@redhat.com>
14421 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14422 and CPP_PRAGMA_EOL.
14423 * c-pragma.c (pragma_ns_name): New typedef.
14424 (registered_pp_pragmas): New variable.
14425 (c_pp_lookup_pragma): New function.
14426 (c_register_pragma_1): If flag_preprocess_only, do nothing
14427 for non-expanded pragmas, for expanded ones push pragma's
14428 namespace and name into registered_pp_pragmas vector.
14429 (c_invoke_pragma_handler): Register OpenMP pragmas even when
14430 flag_preprocess_only, don't register GCC pch_preprocess
14431 pragma if flag_preprocess_only.
14432 * c-opts.c (c_common_init): Call init_pragma even if
14433 flag_preprocess_only.
14434 * c-pragma.c (c_pp_lookup_pragma): New prototype.
14435 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14436 cpp_register_pragma if flag_preprocess_only.
14438 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14441 * c-parser.c (c_parser_translation_unit): Warn for empty
14442 translation unit, not empty source file.
14444 2008-02-26 Paul Brook <paul@codesourcery.com>
14446 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14447 operand for Thumb-2.
14448 * config/arm/arm.h (reg_class): Add CORE_REGS.
14449 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14450 (BASE_REG_CLASS): Use CORE_REGS.
14451 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14452 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14453 (REGNO_OK_FOR_INDEX_P): Exclude SP.
14454 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
14455 ARM_REGNO_OK_FOR_INDEX_P.
14456 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14457 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14458 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14459 (ldm/stm peepholes): Ditto.
14460 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14461 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14462 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14463 * config/arm/constraints.md: Enable "k" constraint on ARM.
14465 2008-02-27 Ben Elliston <bje@au.ibm.com>
14467 * config/rs6000/rs6000.c: Annotate cache line size field in all
14468 instances of struct processor_costs.
14470 2008-02-26 David Edelsohn <edelsohn@gnu.org>
14472 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14473 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14474 jump_bypass): New counters.
14475 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14476 * dce.c (gate_ud_dce): Same.
14477 (gate_fast_dce): Same.
14478 * dse.c (gate_dse1): New function.
14479 (gate_dse2): New function.
14480 (gate_dse): Merge results of new gate functions.
14481 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14482 (gate_handle_jump_bypass): Add dbg_cnt.
14483 (gate_handle_gcse): Add dbg_cnt.
14484 * ifcvt.c (gate_handle_if_conversion): Same.
14485 (gate_handle_if_after_combine): Same.
14486 (gate_handle_if_after_reload): Same.
14487 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14489 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
14491 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14493 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14495 2008-02-26 Jason Merrill <jason@redhat.com>
14498 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14499 alone if it's the naming decl for the type's main variant.
14501 2008-02-26 Tom Tromey <tromey@redhat.com>
14503 * system.h (USE_MAPPED_LOCATION): Poison.
14504 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14505 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14506 (make_goto_expr_edges): Likewise.
14507 (remove_bb): Likewise.
14508 (execute_warn_function_return): Likewise.
14509 * basic-block.h (struct edge_def) <goto_locus>: Change type to
14511 * c-common.c (fname_decl): Remove old location code.
14512 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14514 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14516 (ASM_INPUT_SOURCE_LOCATION): Likewise.
14517 (gen_rtx_ASM_INPUT): Likewise.
14518 (gen_rtx_ASM_INPUT_loc): Likewise.
14519 (get_rtx_asm_OPERANDS): Remove.
14520 * cfglayout.c (insn_locators_alloc): Remove old location code.
14521 (set_curr_insn_source_location): Likewise.
14522 (curr_insn_locator): Likewise.
14523 * print-tree.c (print_node): Remove old location code.
14524 * tree-mudflap.c (mf_varname_tree): Remove old location code.
14525 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14526 * cfgexpand.c (expand_gimple_cond_expr): Don't use
14527 location_from_locus.
14528 (construct_exit_block): Remove old location code.
14529 * emit-rtl.c (force_next_line_note): Remove old location code.
14530 * profile.c (branch_prob): Remove old location code.
14531 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14532 LOC_LINE): Remove old-location variants.
14533 * langhooks.c (lhd_print_error_function): Remove old location
14535 * configure, config.in: Rebuilt.
14536 * configure.ac (--enable-mapped-location): Remove.
14537 * c-decl.c (c_init_decl_processing): Remove old location code.
14538 (finish_function): Likewise.
14539 * recog.c (decode_asm_operands): Remove old location code.
14540 * c-pch.c (c_common_read_pch): Remove old location code.
14541 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14543 * gimple-low.c (lower_function_body): Remove old location code.
14544 * toplev.c (unknown_location): Remove.
14545 (push_srcloc): Remove old-location variant.
14546 (process_options): Remove old location code.
14547 (lang_dependent_init): Likewise.
14548 * input.h (UNKNOWN_LOCATION): Move definition.
14549 (location_t): Undeprecate.
14550 (source_locus): Remove.
14551 (location_from_locus): Remove.
14552 (struct location_s): Remove.
14553 Remove all old-location code.
14554 (input_line, input_filename): Remove.
14555 * final.c (final_scan_insn): Remove old location code.
14556 * diagnostic.c (diagnostic_build_prefix): Remove
14557 USE_MAPPED_LOCATION test.
14558 * tree.h (gimple_stmt) <locus>: Now a location_t.
14559 (tree_exp) <locus>: Likewise.
14560 (DECL_IS_BUILTIN): Remove old-location variant.
14561 (annotate_with_file_line, annotate_with_locus): Likewise.
14562 (expr_locus, set_expr_locus): Update.
14563 * tree.c (build1_stat): Remove old location code.
14564 (last_annotated_node): Remove.
14565 (annotate_with_file_line): Remove old-location variant.
14566 (annotate_with_locus): Likewise.
14567 (expr_location): Remove old location code.
14568 (set_expr_location): Likewise.
14569 (expr_has_location): Likewise.
14570 (expr_locus): Likewise.
14571 (set_expr_locus): Likewise.
14572 (expr_filename): Don't use location_from_locus.
14573 (expr_lineno): Likewise.
14574 * rtl-error.c (location_for_asm): Remove old location code.
14575 * c-lex.c (cb_line_change): Remove old location code.
14576 (fe_file_change): Likewise.
14577 (cb_def_pragma): Likewise.
14578 (c_lex_with_flags): Likewise.
14579 * gengtype.c (do_typedef): Don't special-case location types.
14580 (define_location_structures): Remove.
14581 (main): Don't call define_location_structures.
14582 * tree-pretty-print.c (dump_implicit_edges): Remove old location
14585 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14588 * builtins.def (BUILT_IN_STDARG_START): Remove.
14589 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14590 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14591 * tree-inline.c (inline_forbidden_p_1): Likewise.
14593 2008-02-26 Richard Guenther <rguenther@suse.de>
14595 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14596 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14597 (lookup_decl_from_uid): Declare.
14598 (remove_decl_from_map): Likewise.
14599 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14600 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14601 (decl_for_uid_map): New global hashtable mapping DECL_UID
14603 (init_ttree): Allocate it.
14604 (insert_decl_to_uid_decl_map): New helper function.
14605 (make_node_stat): Insert new decls into the map.
14606 (copy_node_stat): Likewise.
14607 (lookup_decl_from_uid): New function.
14608 (remove_decl_from_map): Likewise.
14609 (print_decl_for_uid_map_statistics): New helper.
14610 (dump_tree_statistics): Call it.
14612 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14613 (referenced_var_iterator): Adjust.
14614 (FOR_EACH_REFERENCED_VAR): Adjust.
14615 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14616 (num_referenced_vars): Adjust.
14617 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14618 (first_referenced_var): Remove.
14619 (end_referenced_vars_p): Likewise.
14620 (next_referenced_var): Likewise.
14621 (referenced_var_iterator_set): New helper function.
14622 * tree-dfa.c (referenced_var_lookup): Adjust.
14623 (referenced_var_check_and_insert): Likewise.
14624 (remove_referenced_var): Likewise.
14625 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14626 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14627 (verify_call_clobbering): Likewise.
14628 (verify_memory_partitions): Likewise.
14629 (init_tree_ssa): Allocate bitmap instead of hashtable for
14631 (delete_tree_ssa): Adjust.
14632 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14633 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14634 (compute_tag_properties): Likewise.
14635 (set_initial_properties): Likewise.
14636 (find_partition_for): Likewise.
14637 (update_reference_counts): Likewise.
14638 (dump_may_aliases_for): Likewise.
14639 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14640 (add_call_clobber_ops): Likewise.
14641 (add_call_read_ops): Likewise.
14642 (get_asm_expr_operands): Likewise.
14643 * tree-into-ssa.c (dump_decl_set): Likewise.
14644 (update_ssa): Likewise.
14645 * tree-sra.c (scan_function): Likewise.
14646 (decide_instantiations): Likewise.
14647 (scalarize_parms): Likewise.
14648 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14649 (dsa_named_for): Likewise.
14650 * tree-ssa-structalias.c (update_alias_info): Likewise.
14651 (merge_smts_into): Likewise.
14653 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14656 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14657 * c-opts.c (c_common_handle_option): Wall enables
14658 Wvolatile-register-var.
14659 * common.opt: Move Wvolatile-register-var to...
14662 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14664 * common.opt (Wlarger-than=): New.
14665 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14667 * opts.c (common_handle_option): Handle -Wlarger-than=.
14668 * optc-gen.awk: Likewise.
14669 * opth-gen.awk: Likewise.
14670 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14671 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14673 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14675 * c-common.c (match_case_to_enum_1): Add appropriate
14676 OPT_W* parameter to warning.
14677 (c_do_switch_warnings): Likewise.
14678 * c-typeck.c (warning_init): Add one more parameter following
14679 'warning' function.
14680 (push_init_level): Update call to warning_init.
14681 (pop_init_level): Likewise.
14682 (add_pending_init): Likewise.
14683 (output_init_element: Likewise.
14685 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14688 * toplev.c (toplev_main): If there are warnings or error, print
14689 errors for ignored options.
14690 * opts.c (ignored_options): New static variable.
14691 (postpone_unknown_option_error): New.
14692 (print_ignored_options): New.
14693 (handle_option): Postpone errors for unknown -Wno-* options.
14694 * opts.h (print_ignored_options): Declare.
14696 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
14698 * config/mips/mips.md (loadgp_blockage, blockage): Change type
14701 2008-02-25 Richard Guenther <rguenther@suse.de>
14704 2008-02-25 Richard Guenther <rguenther@suse.de>
14706 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14707 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14708 (lookup_decl_from_uid): Declare.
14709 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14710 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14711 (decl_for_uid_map): New global hashtable mapping DECL_UID
14713 (init_ttree): Allocate it.
14714 (insert_decl_to_uid_decl_map): New helper function.
14715 (make_node_stat): Insert new decls into the map.
14716 (copy_node_stat): Likewise.
14717 (lookup_decl_from_uid): New function.
14718 (print_decl_for_uid_map_statistics): New helper.
14719 (dump_tree_statistics): Call it.
14721 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14722 (referenced_var_iterator): Adjust.
14723 (FOR_EACH_REFERENCED_VAR): Adjust.
14724 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14725 (num_referenced_vars): Adjust.
14726 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14727 (first_referenced_var): Remove.
14728 (end_referenced_vars_p): Likewise.
14729 (next_referenced_var): Likewise.
14730 (referenced_var_iterator_set): New helper function.
14731 * tree-dfa.c (referenced_var_lookup): Adjust.
14732 (referenced_var_check_and_insert): Likewise.
14733 (remove_referenced_var): Likewise.
14734 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14735 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14736 (verify_call_clobbering): Likewise.
14737 (verify_memory_partitions): Likewise.
14738 (init_tree_ssa): Allocate bitmap instead of hashtable for
14740 (delete_tree_ssa): Adjust.
14741 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14742 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14743 (compute_tag_properties): Likewise.
14744 (set_initial_properties): Likewise.
14745 (find_partition_for): Likewise.
14746 (update_reference_counts): Likewise.
14747 (dump_may_aliases_for): Likewise.
14748 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14749 (add_call_clobber_ops): Likewise.
14750 (add_call_read_ops): Likewise.
14751 (get_asm_expr_operands): Likewise.
14752 * tree-into-ssa.c (dump_decl_set): Likewise.
14753 (update_ssa): Likewise.
14754 * tree-sra.c (scan_function): Likewise.
14755 (decide_instantiations): Likewise.
14756 (scalarize_parms): Likewise.
14757 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14758 (dsa_named_for): Likewise.
14759 * tree-ssa-structalias.c (update_alias_info): Likewise.
14760 (merge_smts_into): Likewise.
14762 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14765 * doc/invoke.texi (-fcx-limited-range): Document new option.
14766 * toplev.c (process_options): Handle -fcx-fortran-rules.
14767 * common.opt: Add documentation for -fcx-fortran-rules.
14769 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
14772 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14773 actual behaviour and C99.
14775 2008-02-26 Ben Elliston <bje@au.ibm.com>
14777 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14778 (ASM_CPU_POWER6_SPEC): Likewise.
14779 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14780 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14781 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14783 2008-02-25 Richard Guenther <rguenther@suse.de>
14785 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14786 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14787 (lookup_decl_from_uid): Declare.
14788 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14789 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14790 (decl_for_uid_map): New global hashtable mapping DECL_UID
14792 (init_ttree): Allocate it.
14793 (insert_decl_to_uid_decl_map): New helper function.
14794 (make_node_stat): Insert new decls into the map.
14795 (copy_node_stat): Likewise.
14796 (lookup_decl_from_uid): New function.
14797 (print_decl_for_uid_map_statistics): New helper.
14798 (dump_tree_statistics): Call it.
14800 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14801 (referenced_var_iterator): Adjust.
14802 (FOR_EACH_REFERENCED_VAR): Adjust.
14803 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14804 (num_referenced_vars): Adjust.
14805 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14806 (first_referenced_var): Remove.
14807 (end_referenced_vars_p): Likewise.
14808 (next_referenced_var): Likewise.
14809 (referenced_var_iterator_set): New helper function.
14810 * tree-dfa.c (referenced_var_lookup): Adjust.
14811 (referenced_var_check_and_insert): Likewise.
14812 (remove_referenced_var): Likewise.
14813 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14814 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14815 (verify_call_clobbering): Likewise.
14816 (verify_memory_partitions): Likewise.
14817 (init_tree_ssa): Allocate bitmap instead of hashtable for
14819 (delete_tree_ssa): Adjust.
14820 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14821 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14822 (compute_tag_properties): Likewise.
14823 (set_initial_properties): Likewise.
14824 (find_partition_for): Likewise.
14825 (update_reference_counts): Likewise.
14826 (dump_may_aliases_for): Likewise.
14827 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14828 (add_call_clobber_ops): Likewise.
14829 (add_call_read_ops): Likewise.
14830 (get_asm_expr_operands): Likewise.
14831 * tree-into-ssa.c (dump_decl_set): Likewise.
14832 (update_ssa): Likewise.
14833 * tree-sra.c (scan_function): Likewise.
14834 (decide_instantiations): Likewise.
14835 (scalarize_parms): Likewise.
14836 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14837 (dsa_named_for): Likewise.
14838 * tree-ssa-structalias.c (update_alias_info): Likewise.
14839 (merge_smts_into): Likewise.
14841 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
14844 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14845 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14846 * alias.h (nonoverlapping_memrefs_p): Likewise.
14848 2008-02-25 Jan Beulich <jbeulich@novell.com>
14850 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14851 * config/i386/netware-libgcc.exp: Add __bswap?i2,
14852 __emultls_get_address, __emultls_register_common,
14853 __floatundi?f, and _Unwind_GetIPInfo.
14854 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14855 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14856 (gen_regparm_prefix): Likewise.
14857 (i386_nlm_encode_section_info): Sync with
14858 config/i386/winnt.c:i386_pe_encode_section_info().
14859 (i386_nlm_maybe_mangle_decl_assembler_name): New.
14860 i386_nlm_mangle_decl_assembler_name): New.
14861 (netware_override_options): New.
14862 * config/i386/netware.h (netware_override_options): Declare.
14863 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14864 (i386_nlm_mangle_decl_assembler_name): Declare.
14865 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14867 2008-02-25 Ben Elliston <bje@au.ibm.com>
14870 * c-decl.c (grokdeclarator): Remove unused local variables
14871 `typedef_type' and `type_as_written'.
14873 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14874 unused local variable `has_hot_blocks'.
14875 (fix_crossing_conditional_branches): Remove unused local variable
14878 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
14880 PR middle-end/19984
14881 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14882 using DEF_C99_BUILTIN.
14883 (BUILT_IN_NANF): Ditto.
14884 (BUILT_IN_NANL): Ditto.
14886 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
14887 Revital Eres <eres@il.ibm.com>
14889 * modulo-sched.c (calculate_must_precede_follow): Address TODO
14890 regarding the order of two dependent insns in the same row.
14892 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
14894 * stor-layout.c (layout_decl): Do not bump the alignment of a
14895 bit-field to more than byte alignment if it is packed.
14897 2008-02-24 David Edelsohn <edelsohn@gnu.org>
14899 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14902 2008-02-24 Diego Novillo <dnovillo@google.com>
14904 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14907 * tree-vrp.c (vrp_evaluate_conditional): With
14908 -Wtype-limits, emit a warning when comparing against a
14909 constant outside the natural range of OP0's type.
14910 * c.opt (Wtype-limits): Move ...
14911 * common.opt (Wtype-limits): ... here.
14913 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
14915 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14916 * config/rs6000/e300c2c3.md: New file.
14917 * config/rs6000/rs6000.c (processor_costs): Add new costs for
14919 (rs6000_override_options): Add e300c2 and e300c3 cases to
14920 processor_target_table. Do not allow usage of Altivec or Spe
14921 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14922 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14923 * config/rs6000/rs6000.h (processor_type): Add
14924 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14925 (ASM_CPU_SPEC): Add e300c2 and e300c3.
14926 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14927 and ppce300c3. Include e300c2c3.md.
14929 2008-02-23 David Edelsohn <edelsohn@gnu.org>
14931 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14932 instead of TARGET_STRICT_ALIGN.
14934 2008-02-23 Joseph Myers <joseph@codesourcery.com>
14936 * explow.c (memory_address): Assert that the generated address is
14939 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14942 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14943 * config/darwin-ppc-ldouble-patch.def: New file.
14944 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14945 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14946 SUBTARGET_INIT_BUILTINS if defined.
14947 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14950 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14953 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14954 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14956 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
14959 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14960 file" warning condtional on -Winvalid-PCH.
14962 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
14964 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14966 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
14970 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14971 prevent reload from using MMX registers.
14972 (*mov<mode>_internal): Ditto.
14973 (*movv2sf_internal_rex64): Ditto.
14974 (*movv2sf_internal): Ditto.
14976 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14978 PR documentation/31569
14979 * doc/install.texi2html: Use makeinfo --no-number-sections.
14981 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14983 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14984 ensure that we can address an entire entity > 8 bytes. Don't
14985 generate reg+reg addressing for such data.
14987 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
14989 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14990 strings when optimizing for size, unless the target cares about
14993 2008-02-22 Tom Tromey <tromey@redhat.com>
14995 * regclass.c (current_pass): Remove declaration.
14997 2008-02-22 Anatoly Sokolov <aesok@post.ru>
14999 * config/avr/libgcc.S (__RAMPZ__): Define.
15000 (__do_copy_data): Add for devices with 128KB code memory.
15002 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15004 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15006 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
15008 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
15010 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
15013 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15016 * c-typeck.c (build_binary_op): Warn about floating point
15017 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
15019 2008-02-21 Janis Johnson <janis187@us.ibm.com>
15022 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
15023 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
15025 (rs6000_override_options): Set altivec_abi as default, not override,
15026 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
15027 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
15028 is used; use new member spe_abi.
15029 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
15030 spe_abi and altivec_abi.
15032 2008-02-22 Tomas Bily <tbily@suse.cz>
15034 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
15036 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15039 * config.build (build_file_translate): Set to `CMD //c' only if
15041 * Makefile.in (build_file_translate): Improve comment.
15043 2008-02-21 Jan Hubicka <jh@suse.cz>
15045 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
15046 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
15047 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
15049 2008-02-21 Michael Matz <matz@suse.de>
15052 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
15054 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
15056 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
15057 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
15058 as insn constraint.
15059 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
15060 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
15061 SSE_VEC_FLOAT_MODE_P as insn constraint.
15062 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
15063 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
15064 sse4a_movntdf using MODEF mode iterator.
15065 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
15066 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
15067 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
15068 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
15069 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
15070 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
15071 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
15073 2008-02-21 Richard Guenther <rguenther@suse.de>
15075 * tree.def (PAREN_EXPR): New tree code.
15076 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15078 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15079 * expr.c (expand_expr_real_1): Likewise.
15080 * tree-inline.c (estimate_num_insns_1): Likewise.
15081 * tree-complex.c (expand_complex_move): Likewise.
15082 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15085 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15088 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15090 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15093 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15095 * config/sh/sh.c (find_barrier): Don't go past
15096 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15098 2008-02-20 DJ Delorie <dj@redhat.com>
15100 * config/h8300/h8300.md (insv): Force source operand to be a register.
15102 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15103 as a jump, not as a plain insn.
15105 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
15107 * doc/invoke.texi (Warning Options): Add new option
15108 -Wframe-larger-than=.
15109 (-Wframe-larger-than): Document.
15111 * flags.h (warn_frame_larger_than, frame_larger_than_size):
15112 Add declarations for new option variables.
15114 * final.c (final_start_function): Check the frame size
15115 before emission and issue a Wframe-larger-than warning.
15117 * opts.c (warn_frame_larger_than, frame_larger_than_size):
15118 Add definitions for new option variables.
15119 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15121 * common.opt (Wframe-larger-than=): New option.
15123 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
15125 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15126 (<sse>_div<mode>3): Ditto.
15127 (<sse>_vmdiv<mode>3): Ditto.
15128 (<sse>_vmsqrt<mode>2): Ditto.
15129 (*smax<mode>3): Ditto.
15130 (sse5_frcz<mode>2): Ditto.
15131 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
15132 as insn constraint.
15134 2008-02-20 Richard Guenther <rguenther@suse.de>
15136 PR middle-end/35265
15137 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15138 be happy with INTEGRAL_TYPE_P.
15140 2008-02-20 Richard Guenther <rguenther@suse.de>
15142 * fold-const.c (split_tree): Associate floatig-point expressions
15143 if flag_associative_math is set.
15145 2008-02-20 Richard Guenther <rguenther@suse.de>
15147 * tree.h (fold_real_zero_addition_p): Declare.
15148 * fold-const.c (fold_real_zero_addition_p): Export.
15149 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15150 floating-point operations with zero and one.
15152 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
15154 * doc/install.texi: Correct references to CFLAGS, replacing them
15155 with BOOT_CFLAGS. Document flags used during bootstrap for
15158 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
15160 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15161 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15162 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15164 (smin<mode>3): Ditto from similar patterns.
15165 (smax<mode>3): Ditto.
15166 (*ieee_smin<mode>3): Ditto.
15167 (*ieee_smax<mode>3): Ditto.
15168 * config/i386/sse.md (sse): New mode attribute.
15169 (mov<mode>): Macroize expander from movv4sf and movv2df using
15170 SSEMODEF2P mode iterator.
15171 (<sse>_movnt<mode>): Ditto from similar patterns. Use
15172 SSE_VEC_FLOAT_MODE_P as insn constraint.
15173 (storent<mode>): Ditto.
15174 (storent<mode>): Macroize expander from storentsf and storentdf using
15175 MODEF mode iterator.
15176 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15177 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15178 (abs<mode>2): Ditto from similar patterns.
15179 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15180 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15181 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15182 (<sse>_vmsqrt<mode>2): Ditto.
15183 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15184 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15185 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15186 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15187 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15188 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15189 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15191 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15192 iterator and SSE_FLOAT_MODE_P as insn constraint.
15193 (<sse>_ucomi): Ditto from similar patterns.
15194 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15195 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15196 SSE_VEC_FLOAT_MODE_P as insn constraint.
15197 (vcond<mode>): Ditto from similar patterns.
15198 (and<mode>3, *and<mode>3): Ditto.
15199 (<sse>_nand<mode>3): Ditto.
15200 (ior<mode>3, *ior<mode>3): Ditto.
15201 (xor<mode>3, *xor<mode>3): Ditto.
15202 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15203 iterator and SSE_FLOAT_MODE_P as insn constraint.
15204 (*nand<mode>3): Ditto from similar patterns.
15205 (*ior<mode>3): Ditto.
15206 (*xor<mode>3): Ditto.
15208 2008-02-20 Ira Rosen <irar@il.ibm.com>
15210 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15211 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15212 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15214 2008-02-19 Jan Hubicka <jh@suse.cz>
15216 * predict.c (tree_bb_level_predictions): Remove variable next
15217 mistakely introduced by previous commit.
15219 2008-02-19 Jan Hubicka <jh@suse.cz>
15221 * predict.c (predict_paths_leading_to): Rewrite.
15222 (predict_paths_for_bb): New.
15223 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15225 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15228 * Makefile.in (build_file_translate): New.
15229 (gcc-vers.texi): Use it for translating $(abs_srcdir).
15230 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15231 * configure.ac (build_file_translate): Substitute it.
15232 * configure: Regenerate.
15234 2008-02-19 Jan Hubicka <jh@suse.cz>
15236 PR rtl-optimization/34408
15237 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15240 2008-02-19 Jan Hubicka <jh@suse.cz>
15242 PR middle-end/28779
15243 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15246 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
15249 * config/i386/i386-modes.def: Revert the last DI alignment
15250 change until Ada people can look into it.
15252 2008-02-19 Nick Clifton <nickc@redhat.com>
15254 * opts.c (print_specific_help): Fix typo in --help text.
15256 2008-02-19 Jakub Jelinek <jakub@redhat.com>
15259 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15260 32-bit inline asm without asm alternatives for host GCC < 3.0.
15262 2008-02-19 Richard Guenther <rguenther@suse.de>
15264 PR tree-optimization/34989
15265 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15266 Allow propagation to INDIRECT_REF if we can simplify only.
15268 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15270 * c-common.c (warn_for_collisions_1): Use appropriate option when
15273 2008-02-19 Nick Clifton <nickc@redhat.com>
15276 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15277 (handle_options): Fix indentation.
15278 (print_filtered_help): If no language-specific options were
15279 displayed tell the user how to list all the options supported by
15280 the language's front-end.
15281 (print_specific_help): Fix indentation and remove duplicate line.
15282 (common_handle_option): Handle the -v option.
15283 For --help enable the display of undocumented options if the -v
15284 switch has been included on the command line.
15285 For --help= check for overlaps in the arguments between the option
15286 classes and the language names and issue a warning when they
15287 cannot be disambiguated.
15288 * c.opt (v): Pass on to the common option handler.
15290 2008-02-19 Revital Eres <eres@il.ibm.com>
15292 * modulo-sched.c (sms_schedule): Change dump message when
15293 create_ddg function fails.
15294 (try_scheduling_node_in_cycle): Rename row to cycle.
15295 (print_partial_schedule): Rename CYCLE to ROW.
15297 2008-02-19 Christian Bruel <christian.bruel@st.com>
15298 Zdenek Dvorak <ook@ucw.cz>
15300 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15302 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15305 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15306 (*x86_movdicc_0_m1_se): Ditto.
15308 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15310 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15311 (CMPtype): Define as __gcc_CMPtype.
15312 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15313 (CMPtype): Define as __gcc_CMPtype.
15315 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
15317 Support valgrind 3.3 for --enable-checking=valgrind.
15318 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15320 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15321 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15322 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15323 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15324 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15325 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15326 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15328 * ggc-zone.c: Similar.
15329 * ggc-page.c: Similar.
15331 2008-02-19 Paul Brook <paul@codesourcery.com>
15334 * config/arm/ieee754-df.S: Fix do_it typo.
15335 * config/arm/ieee754-sf.S: Fix do_it typo.
15337 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15340 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15341 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15342 (OPTION_MASK_ISA_SSE_SET): Likewise.
15343 (OPTION_MASK_ISA_SSE2_SET): Likewise.
15344 (OPTION_MASK_ISA_SSE3_SET): Likewise.
15345 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15346 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15347 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15348 (OPTION_MASK_ISA_SSE4_SET): Likewise.
15349 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15350 (OPTION_MASK_ISA_SSE5_SET): Likewise.
15351 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15352 (OPTION_MASK_ISA_MMX_UNSET): Updated.
15353 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15354 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15355 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15356 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15357 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15358 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15359 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15360 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15361 (OPTION_MASK_ISA_SSE4): Removed.
15362 (ix86_handle_option): Turn on bits in ix86_isa_flags and
15363 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15364 (override_options): Don't turn on implied SSE/MMX bits in
15367 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15369 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15372 2008-02-18 Joey Ye <joey.ye@intel.com>
15374 PR middle-end/34921
15375 * tree-nested.c (insert_field_into_struct): Set type alignment
15376 to field alignment if the former is less than the latter.
15378 2008-02-18 Jakub Jelinek <jakub@redhat.com>
15380 * BASE-VER: Set to 4.4.0.
15382 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15384 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15385 * doc/cfg.texi: Likewise.
15386 * doc/extend.texi: Likewise.
15387 * doc/gty.texi: Likewise.
15388 * doc/invoke.texi: Likewise.
15389 * doc/loop.texi: Likewise.
15390 * doc/md.texi: Likewise.
15391 * doc/passes.texi: Likewise.
15392 * doc/rtl.texi: Likewise.
15393 * doc/sourcebuild.texi: Likewise.
15394 * doc/tm.texi: Likewise.
15395 * doc/tree-ssa.texi: Likewise.
15397 2008-02-17 Richard Guenther <rguenther@suse.de>
15399 PR middle-end/35227
15400 * tree-complex.c (init_parameter_lattice_values): Handle parameters
15401 without default definition.
15403 2008-02-17 Richard Guenther <rguenther@suse.de>
15405 PR tree-optimization/35231
15406 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15409 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
15412 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15413 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15414 libgcc_cmp_return mode.
15416 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15419 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15421 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
15423 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15426 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15428 * doc/c-tree.texi: Use `@.' where appropriate.
15429 * doc/extend.texi: Likewise.
15430 * doc/install.texi: Likewise.
15431 * doc/invoke.texi: Likewise.
15432 * doc/loop.texi: Likewise.
15433 * doc/makefile.texi: Likewise.
15434 * doc/md.texi: Likewise.
15435 * doc/passes.texi: Likewise.
15436 * doc/standards.texi: Likewise.
15437 * doc/tm.texi: Likewise.
15439 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15441 PR middle-end/35196
15442 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15444 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15445 rather than in entry_bb.
15447 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15449 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15450 libgcc_cmp_return mode.
15452 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15454 PR middle-end/35130
15455 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15456 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15458 2008-02-15 Richard Guenther <rguenther@suse.de>
15459 Zdenek Dvorak <ook@ucw.cz>
15461 PR tree-optimization/35164
15462 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15463 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15464 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15465 Only propagate addresses which do not have abnormal SSA_NAMEs
15468 2008-02-15 Joseph Myers <joseph@codesourcery.com>
15471 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15473 2008-02-15 Jan Hubicka <jh@suse.cz>
15475 PR middle-end/35149
15476 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15478 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15480 PR middle-end/34621
15481 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15482 when calculating alignment_pad.
15484 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15486 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15487 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15488 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15489 and STACK_BOUNDARY define.
15491 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
15493 PR preprocessor/35061
15494 * c-pragma.c (handle_pragma_pop_macro): Check that
15495 pushed_macro_table has been allocated.
15497 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
15499 PR middle-end/35136
15500 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15501 (force_gimple_operand): Likewise.
15502 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15503 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15504 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15505 (find_interesting_uses_address): Check addressability and alignment
15506 of the base expression only after substituting bases of IVs into it.
15508 2008-02-14 Michael Matz <matz@suse.de>
15511 * function.c (instantiate_virtual_regs_in_insn): Reload address
15512 before falling back to reloading the whole operand.
15514 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
15516 * config/s390/s390.c (s390_mainpool_start): Emit the pool
15517 before the first section switch note.
15519 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15521 * doc/bugreport.texi: Update copyright years.
15522 * doc/c-tree.texi: Likewise.
15523 * doc/cfg.texi: Likewise.
15524 * doc/cpp.texi: Likewise.
15525 * doc/cppinternals.texi: Likewise.
15526 * doc/fragments.texi: Likewise.
15527 * doc/frontends.texi: Likewise.
15528 * doc/gcc.texi: Likewise.
15529 * doc/gty.texi: Likewise.
15530 * doc/hostconfig.texi: Likewise.
15531 * doc/implement-c.texi: Likewise.
15532 * doc/libgcc.texi: Likewise.
15533 * doc/loop.texi: Likewise.
15534 * doc/makefile.texi: Likewise.
15535 * doc/options.texi: Likewise.
15536 * doc/passes.texi: Likewise.
15537 * doc/rtl.texi: Likewise.
15538 * doc/sourcebuild.texi: Likewise.
15539 * doc/standards.texi: Likewise.
15540 * doc/tree-ssa.texi: Likewise.
15541 * doc/trouble.texi: Likewise.
15543 * doc/extend.texi: Use @: or add comma where appropriate.
15544 * doc/invoke.texi: Likewise.
15545 * doc/tm.texi: Likewise.
15547 2008-02-14 Alan Modra <amodra@bigpond.net.au>
15550 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15553 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
15555 * doc/md.texi (clz, ctz): Add reference.
15556 * doc/rtl.texi (clz, ctz): Likewise.
15558 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15561 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15564 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
15566 * config/s390/s390.c (struct constant_pool): New field
15567 emit_pool_after added.
15568 (s390_mainpool_start): Set the emit_pool_after flag according
15569 to the section switch notes.
15570 (s390_mainpool_finish): Consider emit_pool_after when emitting
15571 the literal pool at the end of the function.
15572 (s390_chunkify_start): Force literal pool splits at section
15575 2008-02-13 Michael Matz <matz@suse.de>
15578 * var-tracking.c (clobber_variable_part): Correctly traverse the
15581 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15584 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15585 Add -fdump-ipa-inline.
15586 * tree-dump.c (dump_files): Remove tree-inlined dump.
15587 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15589 2008-02-12 Richard Guenther <rguenther@suse.de>
15591 PR tree-optimization/35171
15592 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15595 2008-02-12 Richard Guenther <rguenther@suse.de>
15597 PR middle-end/35163
15598 * fold-const.c (fold_widened_comparison): Use get_unwidened in
15599 value-preserving mode. Disallow final truncation.
15601 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
15603 PR middle-end/35136
15604 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15605 code from here to...
15606 (force_gimple_operand): ...here.
15608 2008-02-12 Jakub Jelinek <jakub@redhat.com>
15611 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15612 non-compatible pointers.
15613 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15614 different FIELD_DECLs, try harder by comparing field offsets, sizes
15617 PR inline-asm/35160
15618 * function.c (match_asm_constraints_1): Don't replace the same input
15621 2008-02-12 Anatoly Sokolov <aesok@post.ru>
15623 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15624 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15625 (expand_epilogue): Restore RAMPZ register.
15626 * config/avr/avr.md (RAMPZ_ADDR): New constant.
15628 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
15630 * config/i386/cygwin.asm: (__alloca): Correct calling
15631 convention and alignment.
15632 (__chkstk): Force 8 byte stack alignment.
15634 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
15635 Richard Guenther <rguenther@suse.de>
15637 PR tree-optimization/33992
15638 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15639 the zero we compare against.
15641 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
15643 PR libfortran/35063
15644 * gthr-win32.h (__gthread_mutex_destroy_function): New function
15645 to CloseHandle after unlocking to prevent accumulation of handle
15648 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15650 PR middle_end/34150
15651 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15652 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
15653 and update LABEL_NUSES during and after reload.
15655 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
15657 PR middle-end/34627
15658 * combine.c (simplify_if_then_else): Make sure the comparison is
15659 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15661 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
15664 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15665 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15666 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15667 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15668 * tree.h (get_type_static_bounds): Likewise.
15670 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15672 * doc/invoke.texi (Option Summary, C++ Dialect Options)
15673 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15674 Make -Wfoo language annotations match what the compiler outputs.
15676 2008-02-08 Sa Liu <saliu@de.ibm.com>
15678 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15679 intrinsics spu_convts, spu_convtu, spu_convtf.
15681 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
15683 * doc/extend.texi (Function Attributes) <noinline>: Mention
15684 asm ("") as method to keep calls.
15686 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15689 * doc/options.texi (Options): Replace references to opts.sh with
15691 * opts-common.c: Likewise.
15692 * optc-gen.awk: Likewise.
15694 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15696 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15698 2008-02-07 Richard Henderson <rth@redhat.com>
15701 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15702 EXPR_LIST for the REG_EQUAL instead of a comparison with a
15705 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
15707 PR tree-optimization/35085
15708 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15709 for operand entry oe2 in addition to operand entry oe3 in order to
15710 expose more opportunities for vectorizer sum reduction.
15712 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15715 * Makefile.in (LIBS): Remove $(GMPLIBS).
15716 (cc1-dummy, cc1): Add $(GMPLIBS).
15718 2008-02-06 Jan Hubicka <jh@suse.cz>
15721 * i386.md (moddf_integer): Do not produce partial memory stalls for
15722 targets where it hurts.
15724 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
15727 * optabs.c (expand_float): Do not check for decimal modes when
15728 expanding unsigned integer through signed conversion.
15730 2008-02-06 Nick Clifton <nickc@redhat.com>
15732 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15733 inside the clobber with a match_operand and duplicated operand
15734 number in the constraint.
15735 (ineqbranchsi): Delete redundant comment.
15737 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
15739 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15740 builtin_define ("__USE_INIT_FINI__").
15741 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15743 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15745 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15747 PR documentation/30330
15748 * doc/invoke.texi (C++ Dialect Options)
15749 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15750 For each warning option -Wfoo that allows -Wno-foo, ensure both
15751 -Wfoo and -Wno-foo are listed in the option index. Fix index
15752 entry of -Wswitch-default, index -Wnormalized= including the
15753 `=', and -Wlarger-than-@var{len} including @var{len}.
15755 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15757 * config/i386/i386.md (floatunssisf2): Use
15758 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15759 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15760 Macroize expander using MODEF mode iterator.
15762 2008-02-05 Diego Novillo <dnovillo@google.com>
15764 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15767 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15769 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15772 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15774 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
15777 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15778 to indicate if a message should be generated.
15779 (init_cumulative_args): Updated.
15780 (function_value_32): Likewise.
15782 2008-02-05 Joseph Myers <joseph@codesourcery.com>
15784 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15786 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
15789 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15790 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15792 2008-02-04 Diego Novillo <dnovillo@google.com>
15794 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15797 * tree-vrp.c (vrp_evaluate_conditional): With
15798 -Wtype-limits, emit a warning when comparing against a
15799 constant outside the natural range of OP0's type.
15801 2008-02-04 Richard Guenther <rguenther@suse.de>
15803 PR middle-end/33631
15804 * expr.c (count_type_elements): Give for unions instead of
15807 2008-02-04 Richard Guenther <rguenther@suse.de>
15809 PR middle-end/35043
15810 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15811 to TYPE_DOMAINs base type instead of using bitsizetype here.
15813 2008-02-03 Jason Merrill <jason@redhat.com>
15815 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15817 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15820 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15821 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15822 (RS/6000 and PowerPC Options): Fix typos and markup.
15823 * doc/passes.texi (Tree-SSA passes): Likewise.
15825 2008-02-02 Michael Matz <matz@suse.de>
15828 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15829 from record_last_reg_set_info.
15830 (record_last_reg_set_info): Take an RTX argument, iterate over all
15831 constituent hardregs.
15832 (record_last_set_info, record_opr_changes): Change calls to
15833 new signature or to record_last_reg_set_info_regno.
15835 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15837 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15839 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
15841 PR rtl-optimization/34773
15842 * reg-notes.def (EQUAL): Mention significance of combination of
15843 REG_EQUAL and REG_RETVAL.
15844 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15845 insn that has a REG_RETVAL.
15847 2008-02-01 Roger Sayle <roger@eyesopen.com>
15850 * configure.ac (--enable-fixed-point): Disable unless explicitly
15852 * configure: Regenerate.
15854 2008-02-01 Richard Guenther <rguenther@suse.de>
15857 * invoke.texi (-finline-limit): Remove no longer true parts
15858 of the documentation. Note that there is no default value.
15860 2008-02-01 Andrew Pinski <pinskia@gmail.com>
15861 Mark Mitchell <mark@codesourcery.com>
15862 Ben Elliston <bje@au.ibm.com>
15865 * doc/extend.texi (Other Builtins): Document.
15867 2008-01-31 Tom Browder <tom.browder@gmail.com>
15869 * doc/c-tree.texi (Types): Fix grammar.
15870 (Expression trees): Ditto.
15871 * doc/passes.texi (Tree-SSA passes): Ditto.
15873 * doc/configterms.texi (Configure Terms): Fix typo.
15874 * doc/cpp.texi (Common Predefined Macros): Ditto.
15875 * doc/md.texi (Machine Constraints): Ditto.
15877 * doc/makefile.texi (Makefile): Add comma.
15879 2008-01-31 Tom Browder <tom.browder@gmail.com>
15880 Gerald Pfeifer <gerald@pfeifer.com>
15882 * doc/sourcebuild.texi (Front End): Remove references to CVS
15883 and CVSROOT/modules.
15884 (Texinfo Manuals): Replace reference to CVS by one to SVN.
15885 (Back End): Remove reference to CVS.
15887 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15890 * config/mips/mips.c (gen_load_const_gp): New function, taking a
15892 (mips16_gp_pseudo_reg): ...here.
15893 * config/mips/mips.md (load_const_gp): Replace with...
15894 (load_const_gp_<mode>): ...this :P-based insn.
15896 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15898 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15899 options. Minor fixes.
15900 (-std): Move reference to standards closer to where language
15901 standards are first mentioned.
15903 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
15905 PR rtl-optimization/34995
15906 * reload.c (alternative_allows_const_pool_ref): Take an rtx
15907 parameter and return a bool. If the rtx parameter is nonnull,
15908 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15909 (find_reloads): Update call accordingly. Pass the new operand
15910 if it needed no address reloads, otherwise pass null.
15912 2008-01-30 Richard Henderson <rth@redhat.com>
15915 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15916 for unbounded arrays.
15918 2008-01-30 Silvius Rus <rus@google.com>
15920 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15922 2008-01-30 Jan Hubicka <jh@suse.cz>
15925 * i386.c (init_cumulative_args): Use real function declaration when
15928 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
15930 PR rtl-optimization/34998
15931 * global.c (build_insn_chain): Treat non-subreg_lowpart
15932 SUBREGs of pseudos as clobbering all the words covered by the
15933 SUBREG, not just all the bytes.
15934 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
15935 original df_ref rather than an extract parameter.
15936 (global_conflicts): Update call accordingly.
15938 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
15940 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15941 the overflow check to make it easier to read.
15942 (__fixtfdi): Change the type of the ll member in union
15943 long_double to UDItype_x.
15945 2008-01-30 Jakub Jelinek <jakub@redhat.com>
15947 PR middle-end/34969
15948 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15949 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15950 * tree-inline.c (fold_marked_statements): Call
15951 cgraph_update_edges_for_call_stmt if folding a call statement.
15952 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15953 debug_generic_stmt calls, reset it back afterwards.
15956 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15958 * c-typeck.c (build_external_ref): Don't pedwarn about
15959 static vars in current function's scope.
15961 2008-01-29 Joseph Myers <joseph@codesourcery.com>
15963 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15965 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
15968 * ipa-struct-reorg.c: Fix spelling.
15969 * params.def: Ditto.
15971 2008-01-29 Richard Guenther <rguenther@suse.de>
15973 PR middle-end/35006
15974 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15976 * tree-inline.c (remap_type): Increment remapping_type_depth
15977 around remapping types.
15978 (copy_body_r): Only add referenced variables if they are referenced
15979 from code, not types.
15981 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
15992 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15993 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15995 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
15998 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15999 pointer for tiny stack.
16001 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16003 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
16005 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16007 * config/vx-common.h: Fix typo in comment.
16009 2008-01-28 Ian Lance Taylor <iant@google.com>
16013 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16014 coalesce pointers if they have different DECL_NO_TBAA_P values.
16015 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
16016 between variables with different DECL_NO_TBAA_P values.
16018 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
16021 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
16022 are not legitimate small data references on SPE targets.
16024 2008-01-28 David Daney <ddaney@avtrex.com>
16026 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
16028 2008-01-28 David Daney <ddaney@avtrex.com>
16030 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
16032 2008-01-27 Joseph Myers <joseph@codesourcery.com>
16034 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
16035 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
16036 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
16037 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
16038 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16039 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
16040 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
16041 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
16043 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16045 * basic-block.h (condjump_equiv_p): Fix comment.
16047 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16049 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
16050 print_generic_stmt_indented): Fix comment.
16052 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16054 * configure.ac (__stack_chk_fail): Add detecion for availability
16055 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
16056 * configure: Regenerate.
16058 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
16060 PR middle-end/34688
16061 * final.c (output_addr_const): Handle TRUNCATE.
16063 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
16066 * tree-ssa-loop-ivopts.c (comp_cost): New type.
16067 (zero_cost, infinite_cost): New constants.
16068 (struct cost_pair): Change type of cost to comp_cost.
16069 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
16070 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
16072 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16073 split_address_cost, ptr_difference_cost, difference_cost,
16074 get_computation_cost_at, get_computation_cost,
16075 determine_use_iv_cost_generic, determine_use_iv_cost_address,
16076 determine_use_iv_cost_condition, determine_use_iv_costs,
16077 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16078 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16079 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16080 Change type of cost to comp_cost.
16081 (determine_iv_cost): Increase cost of non-original ivs, instead
16082 of decreasing the cost of original ones.
16083 (get_address_cost): Indicate the complexity of the addressing mode
16085 (try_add_cand_for): Prefer using ivs not specific to some object.
16086 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16088 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
16089 Janis Johnson <janis187@us.ibm.com>
16092 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16093 (TARGET_INSTANTIATE_DECLS): Likewise.
16094 * target.h (expand_to_rtl_hook): New target hook.
16095 (instantiate_decls): Likewise.
16096 * function.c (instantiate_decl): Make non-static. Rename to...
16097 (instantiate_decl_rtl): ... this.
16098 (instantiate_expr): Use instantiate_decl_rtl.
16099 (instantiate_decls_1): Likewise.
16100 (instantiate_decls): Likewise.
16101 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16102 * function.h (instantiate_decl_rtl): Add prototype.
16103 * cfgexpand.c (target.h): New include.
16104 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16105 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16106 (TARGET_INSTANTIATE_DECLS): Likewise.
16107 (TARGET_INITIALIZER): New target hooks added.
16108 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16110 * config/rs6000/rs6000.c (tree-flow.h): New include.
16111 (machine_function): Add sdmode_stack_slot field.
16112 (rs6000_alloc_sdmode_stack_slot): New function.
16113 (rs6000_instantiate_decls): Likewise.
16114 (rs6000_secondary_memory_needed_rtx): Likewise.
16115 (rs6000_check_sdmode): Likewise.
16116 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16117 (TARGET_INSTANTIATE_DECLS): Likewise.
16118 (rs6000_hard_regno_mode_ok): Allow SDmode.
16119 (num_insns_constant): Likewise. Handle _Decimal32 constants.
16120 (rs6000_emit_move): Handle SDmode.
16121 (function_arg_advance): Likewise.
16122 (function_arg): Likewise.
16123 (rs6000_gimplify_va_arg): Likewise. Add special handling of
16124 SDmode var args for 32-bit compiles.
16125 (rs6000_secondary_reload_class): Handle SDmode.
16126 (rs6000_output_function_epilogue): Likewise.
16127 (rs6000_function_value): Simplify if statement.
16128 (rs6000_libcall_value): Likewise.
16129 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16130 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16131 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16132 (movsd_hardfloat): New define_insn.
16133 (movsd_softfloat): Likewise.
16134 (movsd_store): Likewise.
16135 (movsd_load): Likewise.
16136 (extendsddd2): Likewise.
16137 (extendsdtd2): Likewise.
16138 (truncddsd2): Likewise.
16139 (movdd_hardfloat64): Fixup comment.
16140 (UNSPEC_MOVSD_LOAD): New constant.
16141 (UNSPEC_MOVSD_STORE): Likewise.
16143 2008-01-26 Jakub Jelinek <jakub@redhat.com>
16146 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16148 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16149 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16150 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16151 and TRUTH_XOR_EXPR.
16153 2008-01-26 David Edelsohn <edelsohn@gnu.org>
16156 * config.gcc: Separate AIX 5.3 from AIX 6.1.
16157 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16158 __LONGDOUBLE128 too.
16159 * config/rs6000/aix61.h: New file.
16161 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16163 PR rtl-optimization/34959
16164 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16165 popcount and parity rtxes the same mode as their operand.
16166 Truncate or extend the result to the return value's mode
16169 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16172 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16173 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16174 to GOT_VERSION_REGNUM.
16175 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16176 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16177 * config/mips/mips.c (mips_emit_call_insn): New function.
16178 (mips_call_tls_get_addr): Call mips_expand_call directly.
16179 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16181 (mips16_build_call_stub): Likewise. Return the call insn or null.
16182 (mips_expand_call): Update the call to mips16_build_call_stub
16183 accordingly and a remove redundant condition. Assert that MIPS16
16184 stubs do not use lazy binding. Use mips_emit_call_insn and return
16186 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16188 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16189 (mips_avoid_hazard): Remove hazard_set handling.
16190 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16191 (UNSPEC_RESTORE_GP): ...this.
16192 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16193 (FAKE_CALL_REGNO): Rename to...
16194 (GOT_VERSION_REGNUM): ...this.
16195 (type): Add "ghost" value. Add an associated insn reservation.
16196 (hazard_set): Remove.
16197 (exception_receiver): Rename to...
16198 (restore_gp): ...this and update the unspec identifier accordingly.
16199 (exception_receiver, nonlocal_got_receiver): New expanders.
16200 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
16201 FAKE_CALL_REGNO. Remove hazard_set attribute.
16202 (set_got_version, update_got_version): New patterns.
16204 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
16207 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16209 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16212 * doc/install.texi2html: Generate gcc-vers.texi.
16214 2008-01-25 DJ Delorie <dj@redhat.com>
16216 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16218 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16220 * config/c4x: Remove directory.
16221 * config.gcc (crx-*, mt-*): Mark obsolete.
16222 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16223 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16224 sh-*-rtemscoff*): Remove cases.
16225 * defaults.h (C4X_FLOAT_FORMAT): Remove.
16226 * real.c (encode_c4x_single, decode_c4x_single,
16227 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16228 c4x_extended_format): Remove.
16229 * real.h (c4x_single_format, c4x_extended_format): Remove.
16230 * doc/extend.texi (interrupt, naked): Remove mention of attributes
16232 (Pragmas): Remove comment about c4x pragmas.
16233 * doc/install.texi (c4x): Remove target-specific instructions.
16234 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16235 * doc/md.texi (Machine Constraints): Remove C4x documentation.
16236 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16237 refer to C4x source files as examples.
16238 (C4X_FLOAT_FORMAT): Remove documentation.
16240 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
16242 * config/bfin/bfin.c (override_options): Reorder tests so that
16243 flag_pic gets enabled for -msep-data.
16245 2008-01-25 Richard Guenther <rguenther@suse.de>
16247 PR middle-end/32244
16248 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16249 to its bitfield precision if required.
16251 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16253 PR middle-end/33880
16254 * tree-nested.c (walk_omp_for): New function.
16255 (convert_nonlocal_reference, convert_local_reference): Call
16256 walk_omp_for on OMP_FOR.
16257 (convert_call_expr): Call walk_body on OMP_FOR's
16258 OMP_FOR_PRE_INIT_BODY.
16260 2008-01-25 Richard Guenther <rguenther@suse.de>
16262 PR tree-optimization/34966
16263 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16264 default defs and PHI_NODEs we have to insert after the
16265 defining statement.
16267 2008-01-24 Nick Clifton <nickc@redhat.com>
16269 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16270 Provide a default definition.
16271 (LIBGCC2_UNITS_PER_WORD): Likewise.
16273 * config/stormy16/stormy16.c: Include df.h for the prototype
16274 for df_regs_ever_live_p.
16275 (xstormy16_expand_builtin_va_start): Convert the stack offset
16276 into a component_ref and then use POINTER_PLUS_EXPR to add it
16277 to the incoming_virtual_args_rtx.
16278 (xstormy16_gimplify_va_arg_expr): Rename to
16279 xstormy16_gimplify_va_arg_expr.
16280 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16281 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16282 xstormy16_gimplify_va_arg_expr.
16283 Fix up some formatting issues.
16285 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16286 Move to predicates.md.
16287 (xs_hi_general_operand): Likewise.
16288 (xs_hi_nonmemory_operand): Likewise.
16289 * config/stormy16/predicates.md:
16290 (xstormy16_carry_plus_operand): New predicate.
16291 (xs_hi_general_operand): New predicate.
16292 (xs_hi_nonmemory_operand): New predicate.
16293 * config/stormy16/stormy16-protos.h:
16294 (xstormy16_carry_plus_operand): Delete prototype.
16295 (xs_hi_general_operand): Likewise.
16296 (xs_hi_nonmemory_operand): Likewise.
16298 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16299 modifiers as they are no longer needed and they can trigger
16300 reload spill failures.
16302 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16303 with a match_operand in order to help reload.
16305 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16306 constraint with 'e' for the 8th alternative as this version of
16307 the mov.w instruction only accepts the lower 8 registers.
16309 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
16312 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16313 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16316 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16318 PR middle-end/33333
16319 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16321 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16323 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16325 (remove_structure): Update allocations list before removing structure.
16327 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16329 * ipa-struct-reorg.c (is_safe_cond_expr,
16330 create_new_stmts_for_cond_expr): Use integer_zerop function,
16331 that recognize not only zero-pointer, but zero-integer too.
16333 2008-01-25 Ben Elliston <bje@au.ibm.com>
16336 * fixproto: Escape "." in sed expression that strips leading "./".
16338 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
16341 * gcc.c (SWITCH_OK): Removed.
16342 (SWITCH_LIVE): Changed to bit.
16343 (SWITCH_FALSE): Likewise.
16344 (SWITCH_IGNORE): Likewise.
16345 (switchstr): Change live_cond to unsigned int.
16346 (process_command): Replace SWITCH_OK with 0.
16347 (do_self_spec): Likewise.
16348 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16349 (give_switch): Likewise.
16350 (used_arg): Likewise.
16351 (do_spec_1): Set the SWITCH_IGNORE bit.
16352 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16353 bits. Set the SWITCH_LIVE bit.
16355 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
16357 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16359 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
16361 PR tree-optimization/34472
16362 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16363 parameter to a "bool *" and set *DATA to false if there is
16364 an unsafe access. Do not delete the structure here.
16365 (check_cond_exprs): Delete it here instead.
16366 (check_cond_exprs, exclude_cold_structs): Do not increase
16367 I when removing a structure.
16369 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
16372 * config/i386/i386.c (ix86_expand_vector_init): Consider only
16373 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16375 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
16377 PR middle-end/34934
16378 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16379 a fixed vector for stack.
16381 2008-01-24 Ben Elliston <bje@au.ibm.com>
16384 * doc/gcc.texi (Software development): Add a direntry for g++.
16386 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
16388 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16389 stale and straggling -fforce-addr comments above.
16391 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16393 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16394 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16396 2008-01-23 Michael Matz <matz@suse.de>
16399 * dwarf2out.c (force_type_die): Use modified_type_die instead of
16402 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
16404 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16405 malloc result type.
16407 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16409 * config/avr/avr.c (avr_current_arch): New variable.
16410 (avr_arch_types): Add 'avr31' and 'avr51' entries.
16411 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16412 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16413 (avr_override_options): Init 'avr_current_arch'.
16414 (base_arch_s): Move from here...
16415 * config/avr/avr.h (base_arch_s): ... here. Add new members
16416 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16417 'mega' to 'have_jmp_call'.
16418 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16419 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
16421 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16423 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16424 MULTILIB_MATCHES): Ditto.
16426 2008-01-23 Richard Guenther <rguenther@suse.de>
16428 PR middle-end/31529
16429 * cgraphunit.c (cgraph_reset_node): Always mark the node
16430 not reachable if it is not queued already.
16432 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
16434 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16435 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16436 (cputype_selected): New static variable.
16437 (bfin_handle_option): Set it if -mcpu is used.
16438 (override_option): Select default set of workarounds if no cpu type
16439 selected on the command line.
16440 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16442 From Michael Frysinger <michael.frysinger@analog.com>
16443 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16444 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16446 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16447 for bf547, bf523, bf524, and bf526.
16448 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
16450 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16451 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16452 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16453 __ADSPBF547__ and __ADSPBF54x__ for bf547.
16454 * doc/invoke.texi (Blackfin Options): Document that
16455 -mcpu now accept bf547, bf523, bf524, and bf526.
16457 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
16459 PR rtl-optimization/34628
16460 * combine.c (try_combine): Stop and undo after the first combination
16461 if an autoincrement side-effect on the first insn has effectively
16464 2008-01-22 David Edelsohn <edelsohn@gnu.org>
16467 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16468 Offset addresses are not valid for Altivec or paired float modes.
16470 2008-01-22 Jakub Jelinek <jakub@redhat.com>
16473 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16474 if DECL_INITIAL (decl) is error_mark_node.
16477 * c-common.c (handle_vector_size_attribute): Only allow
16478 integral, scalar float and fixed point types. Handle OFFSET_TYPE
16479 the same way as pointer, array etc. types.
16480 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16483 * tree.c (build_type_attribute_qual_variant): Call
16484 build_qualified_type if attributes are equal, but quals are not.
16486 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16489 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16490 * flags.h (warn_strict_aliasing): Remove.
16491 (warn_strict_overflow): Remove.
16492 * opts.c (warn_strict_aliasing): Remove.
16493 (warn_strict_overflow): Remove.
16494 * c-opts.c (c_common_handle_option): -Wall only sets
16495 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16496 (c_common_post_options): Give default values to -Wstrict-aliasing
16497 and -Wstrict-overflow if they are uninitialized.
16498 * common.opt (Wstrict-aliasing): Specify Var and Init.
16499 (Wstrict-overflow): Likewise.
16501 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
16503 PR rtl-optimization/26854
16504 PR rtl-optimization/34400
16505 PR rtl-optimization/34884
16506 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16508 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16509 (df_rd_bb_info.expanded_lr_out): Deleted
16510 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16511 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
16512 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16513 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16514 Removed code to allocate, initialize or free expanded_lr_out.
16515 (df_rd_bb_local_compute_process_def): Restructured to make more
16517 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16518 sets if the sets are being trimmed.
16520 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
16523 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16524 (as_vers): Likewise.
16525 * configure: Regenerated.
16527 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16529 PR middle-end/33092
16530 * tree-pass.h (pass_build_alias): New pass.
16531 * tree-ssa-alias.c (gate_build_alias): New.
16532 (pass_build_alias): New.
16533 * passes.c (init_optimization_passes): Add pass_build_alias after
16534 pass_create_structure_vars.
16536 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
16538 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16539 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16540 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16541 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16542 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16543 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16544 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16545 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16546 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16547 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16548 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16549 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16550 * config/s390/s390.md (FP_ALL): New mode iterator.
16551 (_d): New mode attribute.
16552 ("*signbit<mode>2>"): Changed mode of first operand.
16553 ("isinf<mode>2"): Changed mode of first operand.
16554 ("*TDC_insn"): Adaptation for DFP modes.
16556 2008-01-22 Ben Elliston <bje@au.ibm.com>
16558 * tree.c (check_qualified_type): Improve function description.
16560 2008-01-21 Jason Merrill <jason@redhat.com>
16563 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16564 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16567 2008-01-21 DJ Delorie <dj@redhat.com>
16569 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16572 2008-01-21 Richard Guenther <rguenther@suse.de>
16574 PR middle-end/34856
16575 * tree-cfg.c (verify_expr): Allow all invariant expressions
16576 instead of just constant class ones as reference argument.
16577 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16578 like any other constant.
16579 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16581 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
16583 * regmove.c (fixup_match_1): Update call crossed frequencies.
16585 2008-01-21 Richard Guenther <rguenther@suse.de>
16588 * tree-inline.c (setup_one_parameter): Deal with mismatched
16589 types using a VIEW_CONVERT_EXPR.
16591 2008-01-21 Alon Dayan <alond@il.ibm.com>
16592 Olga Golovanevsky <olga@il.ibm.com>
16594 PR tree-optimization/34701
16595 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16596 when the structure size is not a power of 2.
16598 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
16600 * doc/install.texi: Add doc for --enable-checking=df.
16602 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
16604 PR rtl-optimization/34808
16605 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16607 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16609 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16612 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
16614 PR rtl-optimization/26854
16615 PR rtl-optimization/34400
16616 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16618 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16619 (df_rd_bb_info.expanded_lr_out): New.
16620 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16621 * loop_iv.c (iv_analysis_loop_init): Ditto.
16622 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16623 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16624 Added code to allocate, initialize or free expanded_lr_out.
16625 (df_rd_bb_local_compute_process_def): Restructured to make
16626 more understandable.
16627 (df_rd_confluence_n): Add code to do nothing with fake edges and
16628 code to no apply invalidate_by_call sets if the sets are being trimmed.
16629 (df_lr_local_finalize): Renamed to df_lr_finalize.
16630 (df_live_local_finalize): Renamed to df_live_finalize.
16632 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16635 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16636 deciding whether to use reciprocal instructions.
16638 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
16640 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16641 dwarf2out_note_section_used if cold_text_section is NULL.
16643 2008-01-19 Jakub Jelinek <jakub@redhat.com>
16645 PR gcov-profile/34610
16646 * tree-cfg.c (make_edges): Mark both outgoing edges from
16647 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16648 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16649 from OMP_FOR and OMP_CONTINUE outgoing edges.
16651 * tree-profile.c (tree_profiling): Return early if
16652 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
16654 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16655 from cfun to child_cfun.
16656 * function.h (struct function): Add after_tree_profile bit.
16658 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16660 * config/avr/avr.S (_exit): Disable interrupt.
16662 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
16663 Steven Bosscher <stevenb.gcc@gmail.com>
16665 PR rtl-optimization/26854
16666 PR rtl-optimization/34400
16667 * df-problems.c (df_live_scratch): New scratch bitmap.
16668 (df_live_alloc): Allocate df_live_scratch when doing df_live.
16669 (df_live_reset): Clear the proper bitmaps.
16670 (df_live_bb_local_compute): Only process the artificial defs once
16671 since the order is not important.
16672 (df_live_init): Init the df_live sets only with the variables
16673 found live by df_lr.
16674 (df_live_transfer_function): Use the df_lr sets to prune the
16675 df_live sets as they are being computed.
16676 (df_live_free): Free df_live_scratch.
16678 2008-01-18 Ian Lance Taylor <iant@google.com>
16680 * common.opt: Add fmerge-debug-strings.
16681 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16682 flag_merge_debug_strings rather than flag_merge_constants.
16683 * doc/invoke.texi (Option Summary): Mention
16684 -fmerge-debug-strings.
16685 (Debugging Options): Document -fmerge-debug-strings.
16687 2008-01-18 Ian Lance Taylor <iant@google.com>
16690 * tree.h (DECL_IS_OPERATOR_NEW): Define.
16691 (struct tree_function_decl): Add new field operator_new_flag.
16692 * tree-inline.c (expand_call_inline): When inlining a call to
16693 operator new, force the return value to go into a variable, and
16694 set DECL_NO_TBAA_P on that variable.
16695 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16697 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
16700 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16701 DWARF2_DEBUGGING_INFO.
16702 (dwarf2out_note_section_used): Ditto. Add prototype.
16703 (have_multiple_function_sections, text_section_used,
16704 cold_text_section_used, *cold_text_sections): Move declarations
16707 2008-01-17 Bob Wilson <bob.wilson@acm.org>
16709 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16710 field and add signal_ra.
16711 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16712 assignments to frame state pc. Move end of stack check after
16713 MD_FALLBACK_FRAME_STATE_FOR.
16714 (uw_update_context_1): Use frame state signal_regs if set, instead
16715 of checking signal_frame flag.
16716 (uw_update_context): Use frame state signal_ra if set.
16717 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16718 * config/xtensa/linux-unwind.h: New file.
16720 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
16722 * modulo-sched.c (get_sched_window): Fix comment typo.
16724 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
16726 PR tree-optimization/34648
16727 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16729 2008-01-17 Anatoly Sokolov <aesok@post.ru>
16731 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16732 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16734 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
16736 PR rtl-optimization/34400
16737 * df-core.c (df_worklist_dataflow_overeager,
16738 df_worklist_dataflow_doublequeue): New functions.
16739 (df_worklist_dataflow): Two different worklist solvers.
16740 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16743 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16746 * doc/invoke.texi: Document the dependence on pthread for fopenmp
16747 and ftree-parallelize-loops.
16749 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
16751 PR rtl-optimization/34826
16752 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16754 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
16756 * global.c (find_reg): Mark the eh regs as used if necessary.
16757 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16758 * ra.h (struct allocno): no_eh_reg field added. Changed
16759 no_stack_reg type to bitfield.
16761 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
16763 * tree.c (substitute_in_expr): Add missing 'break'.
16765 2008-01-17 Richard Guenther <rguenther@suse.de>
16767 PR tree-optimization/34825
16768 * tree-ssa-math-opts.c (is_division_by): Do not recognize
16769 x / x as division to handle.
16771 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16773 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16774 "-pthread" is specified.
16775 * pa-hpux11.h (LIB_SPEC): Likewise.
16777 2008-01-16 Janis Johnson <janis187@us.ibm.com>
16778 Peter Bergner <bergner@vnet.ibm.com>
16780 PR rtl-optimization/33796
16781 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16783 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16785 PR libgfortran/34699
16786 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16788 * pa-hpux10.h (LINK_SPEC): Likewise.
16789 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16791 2008-01-16 Richard Guenther <rguenther@suse.de>
16793 PR middle-end/32628
16794 * fold-const.c (fold_convert_const_int_from_int): Do not
16795 set overflow if that occured only because of a sign extension
16796 change when converting from/to a sizetype with the same
16797 precision and signedness.
16799 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16802 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16803 location address to the correct place. Update copyright year.
16805 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16807 * lambda-code.c (lambda_transform_legal_p): Handle the case of
16808 no dependences in the dependence_relations vector.
16810 2008-01-16 Jan Hubicka <jh@suse.cz>
16812 PR rtl-optimization/31396
16813 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16814 * cfg.c (dump_reg_info): Print it.
16815 * regs.h (struct reg_info_t): add freq_calls_crossed.
16816 (REG_FREQ_CALLS_CROSSED): New macro.
16817 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16818 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16819 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16820 regmove_optimize): Update call crossed frequencies.
16821 * local-alloc.c (struct qty): Add freq_calls_crossed.
16822 (alloc_qty): Copute freq_calls_crossed.
16823 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16824 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16825 * ra.h (struct allocno): Add freq_calls_crossed.
16827 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16829 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16830 libgomp when compiling with ftree-parallelize-loops.
16831 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16833 2008-01-16 Richard Guenther <rguenther@suse.de>
16835 PR tree-optimization/34769
16836 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16837 * tree.c (int_cst_value): Instead make this function more
16838 permissive in what it accepts as valid input. Document this
16839 function always sign-extends the value.
16841 2008-01-16 Jakub Jelinek <jakub@redhat.com>
16842 Richard Guenther <rguenther@suse.de>
16845 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16846 (gimple_fold_indirect_ref_rhs): ... this.
16847 (gimple_fold_indirect_ref): New function with foldings
16848 that preserve lvalueness.
16849 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16850 * tree-flow.h (gimple_fold_indirect_ref): Declare.
16851 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16852 to fold an INDIRECT_REF, fall back to the old use of
16853 fold_indirect_ref_1.
16855 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
16857 * tree-data-ref.c (subscript_dependence_tester_1): Call
16858 free_conflict_function.
16859 (compute_self_dependence): Same.
16861 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
16864 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16865 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
16867 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16868 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16869 for DWARF2_UNWIND_INFO targets.
16871 2008-01-16 Richard Guenther <rguenther@suse.de>
16874 * c-typeck.c (common_pointer_type): Do not merge inconsistent
16875 type qualifiers for function types.
16877 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
16879 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16880 loop_iterator li from previous commit.
16882 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
16884 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16886 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16888 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16889 (parallelize_loops): Don't parallelize irreducible components.
16891 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16894 * c-opts (c_common_post_options): Do not enable CPP
16895 flag_pedantic_errors by default.
16897 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
16899 PR rtl-optimization/31944
16900 * cse.c (remove_pseudo_from_table): New function.
16901 (merge_equiv_classes): Use above function to remove pseudo-registers.
16902 (invalidate): Likewise.
16904 2008-01-13 Richard Guenther <rguenther@suse.de>
16906 PR middle-end/34601
16907 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16908 instead of TYPE_MODE to deal with calls from expand_one_error_var.
16910 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
16912 * gcse.c (cprop_jump): Call validate_unshare_change instead of
16913 validate_change to unshare the source of the PC set.
16915 2008-01-12 Jan Hubicka <jh@suse.cz>
16917 PR middle-end/32135
16918 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16919 references above array bounds. This might trigger bounds checks for
16920 pointers to arrays.
16922 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
16924 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16925 new_replaceable_dependencies.
16927 2008-01-12 Doug Kwan <dougkwan@google.com>
16929 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16930 instead of OPT_Wreturn_type in warning due to ignored return type
16932 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16933 options included in -Wextra.
16934 * c.opt: New option -Wignored_qualifiers.
16935 * doc/invoke.texi (Warning Options, -Wextra): Add new option
16936 -Wignore_qualifiers.
16937 (-Wignored-qualifiers): Document.
16938 (-Wreturn-type): Remove description of functionality now handled
16939 by -Wignored-qualifiers.
16941 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
16944 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16945 NOP_EXPR if it is between integral types with the same precision.
16947 2008-01-12 Jan Hubicka <jh@suse.cz>
16950 * invoke.texi (max-inline-recursive-depth): Fix default value.
16952 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
16954 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16957 2008-01-11 Bob Wilson <bob.wilson@acm.org>
16959 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16961 2008-01-11 James E. Wilson <wilson@specifix.com>
16964 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16966 2008-01-11 Anatoly Sokolov <aesok@post.ru>
16968 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16969 save/restore frame pointer register and don't use 'call-prologues'
16970 optimization in function with "OS_task" attribute.
16972 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
16974 PR middle-end/31309
16975 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16976 when copying to memory.
16978 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
16980 PR rtl-optimization/30905
16981 * cfgcleanup.c: Include dce.h
16982 (crossjumps_occured): New global variable.
16983 (try_crossjump_bb): Exit loop after finding a fallthru edge.
16984 If something changed, set crossjumps_occured to true.
16985 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16986 Don't add/remove fake edges to exit here...
16987 (cleanup_cfg): ...but do it here, when crossjumping.
16988 Run a fast DCE when successful crossjumps occured in the latest
16989 iteration of try_optimize_cfg.
16991 2008-01-11 Richard Guenther <rguenther@suse.de>
16993 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16994 (struct vn_unary_op_s): Likewise.
16995 (vn_reference_insert): Free old reference on hash collision.
16997 2008-01-10 Raksit Ashok <raksit@google.com>
16999 PR rtl-optimization/27971
17000 * combine.c (find_split_point): Split PLUS expressions which are
17001 inside a MEM rtx, and whose first operand is complex.
17003 2008-01-10 DJ Delorie <dj@redhat.com>
17005 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
17006 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
17007 (m32c_hard_regno_ok): Call the underlying function.
17009 2008-01-10 Richard Guenther <rguenther@suse.de>
17011 PR middle-end/34683
17012 * tree-cfg.c (tree_merge_blocks): Do not go through the
17013 full-blown folding and stmt updating path if we just deal
17014 with virtual operands.
17015 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
17016 test for abnormal SSA_NAMEs.
17018 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
17020 PR middle-end/34641
17021 * reload.c (push_reload): Add assertions. All constants from
17022 reg_equiv_constant should have been used for replacing the respective
17024 (find_reloads_address): Invoke find_reloads_address_part for
17025 constant taken from the reg_equiv_constant array.
17027 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
17029 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
17030 field (valnum) the first in the struct. Replace bools with
17033 2008-01-10 Richard Guenther <rguenther@suse.de>
17035 PR tree-optimization/34651
17036 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
17037 types and ordering for masking and converting.
17039 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
17041 PR tree-optimization/34017
17042 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
17043 also for PHI_NODE expressions.
17045 2008-01-09 Jan Hubicka <jh@suse.cz>
17047 PR tree-optimization/34708
17048 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
17049 based on number of case labels.
17050 (init_inline_once): Remove switch_cost.
17051 * tree-inline.h (eni_weights_d): Remove switch_cost.
17053 2008-01-09 Richard Guenther <rguenther@suse.de>
17054 Andrew Pinski <andrew_pinski@playstation.sony.com>
17056 PR middle-end/30132
17057 * gimplify.c (gimplify_cond_expr): Do not create an addressable
17058 temporary if an rvalue is ok or an lvalue is not required.
17060 2008-01-09 Richard Guenther <rguenther@suse.de>
17062 PR middle-end/34458
17063 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
17064 adjust return type.
17066 2008-01-09 Richard Guenther <rguenther@suse.de>
17068 PR middle-end/34679
17069 * tree.c (host_integerp): Check for sizetype only if the
17070 type is an integer type.
17072 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
17075 * opts.c (decode_options): Disable inlining of functions called
17076 once if not in unit-at-a-time mode.
17078 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
17080 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17082 2008-01-08 Richard Guenther <rguenther@suse.de>
17084 PR middle-end/31863
17085 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17086 out early if the result will be unused.
17088 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
17093 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17094 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17097 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
17099 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17100 for vectorization tuned.
17102 2008-01-08 Richard Guenther <rguenther@suse.de>
17104 PR tree-optimization/34683
17105 * tree-ssa-operands.c (operand_build_cmp): Export.
17106 * tree-ssa-operands.h (operand_build_cmp): Declare.
17107 * tree-vn.c (vuses_compare): Remove.
17108 (sort_vuses): Use operand_build_cmp.
17109 (sort_vuses_heap): Likewise.
17110 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17111 to re-use old VEC if available. Do not sort already sorted VUSEs.
17112 (vdefs_to_vec): Do not sort already sorted VDEFs.
17114 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17116 PR middle-end/34694
17117 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17119 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
17122 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17123 limitations of reciprocal sequences on x86 targets.
17125 2008-01-08 Richard Guenther <rguenther@suse.de>
17127 PR tree-optimization/34683
17128 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17130 2008-01-07 Jakub Jelinek <jakub@redhat.com>
17133 * config/darwin.c (darwin_mergeable_string_section): Don't use
17134 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17136 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
17139 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17140 negxf2. Macroize expander using X87MODEF mode iterator. Change
17141 predicates of op0 and op1 to register_operand.
17142 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
17143 expander using X87MODEF mode iterator. Change predicates of
17144 op0 and op1 to register_operand.
17145 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17146 corresponding patterns and macroize using MODEF macro. Change
17147 predicates of op0 and op1 to register_operand and remove
17148 "m" constraint. Disparage "r" alternative with "!".
17149 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17150 macroize using X87MODEF macro. Change predicates of op0 and op1
17151 to register_operand and remove "m" constraint. Disparage "r"
17152 alternative with "!".
17153 (absneg splitter with memory operands): Remove.
17154 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17155 patterns and macroize using X87MODEF mode iterator.
17156 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17157 Change predicate of op1 to register_operand.
17158 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
17159 for memory operands.
17161 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
17163 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17165 2008-01-07 Richard Guenther <rguenther@suse.de>
17167 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17170 2008-01-07 Richard Guenther <rguenther@suse.de>
17172 PR tree-optimization/34683
17173 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17174 VOPs of the needed size to save memory. Use VEC_quick_push
17175 to save compile-time.
17176 (vdefs_to_vec): Likewise.
17178 2008-01-07 Sa Liu <saliu@de.ibm.com>
17180 * config/spu/spu.md (divdf3): Genetate inline code for double
17181 division. The implementation doesn't handle INF or NAN, therefore it
17182 only applies when -ffinite-math-only is given.
17184 2008-01-06 Paolo Carlini <pcarlini@suse.de>
17187 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17188 * doc/cpp.texi ([Common Predefined Macros]): Document.
17190 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
17192 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17193 order to use commutative addition instead of subtraction.
17195 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
17196 Mircea Namolaru <namolaru@il.ibm.com>
17197 Vladimir Yanovsky <yanov@il.ibm.com>
17198 Revital Eres <eres@il.ibm.com>
17200 PR tree-optimization/34263
17201 * tree-outof-ssa.c (process_single_block_loop_latch,
17202 contains_tree_r): New functions.
17203 (analyze_edges_for_bb): Call process_single_block_loop_latch
17204 function to empty single-basic-block latch block if possible.
17206 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17208 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17210 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17212 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17214 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17216 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17218 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17220 2008-01-05 Jakub Jelinek <jakub@redhat.com>
17222 PR tree-optimization/34618
17223 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17226 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17229 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17230 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
17231 Update copyright year.
17233 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17234 Update copyright year.
17235 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17238 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
17240 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17241 edge does not point to current bb before changing need_assert.
17243 2008-01-04 Richard Guenther <rguenther@suse.de>
17245 PR middle-end/34029
17246 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17247 for verifying purposes if they are is_gimple_min_invariant.
17249 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
17251 PR tree-optimization/34448
17252 PR tree-optimization/34465
17253 * gimplify.c (gimplify_init_constructor): Add new parameter
17254 notify_temp_creation. Use it.
17255 (gimplify_modify_expr_rhs): Take volatiles into account when
17256 optimizing constructors.
17257 Do not optimize constructors if gimplify_init_constructor will dump to
17259 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17260 * gcc.c-torture/compile/pr34448.c: New.
17262 2008-01-04 Jakub Jelinek <jakub@redhat.com>
17264 PR gcov-profile/34609
17265 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17266 return_slot if result is TREE_ADDRESSABLE.
17268 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
17270 * config/mips/mips.md (sqrt_condition): Tweak comment.
17271 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
17273 2008-01-03 Tom Tromey <tromey@redhat.com>
17276 * c-common.c (c_type_hash): Handle VLAs.
17278 2008-01-03 Jan Hubicka <jh@suse.cz>
17280 PR tree-optimization/31081
17281 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17282 0 when inlining and not inlining to first basic block.
17283 (remap_decl): When var is initialized to 0, don't set default_def.
17284 (expand_call_inline): Set entry_bb.
17285 * tree-inline.h (copy_body_data): Add entry_bb.
17287 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17290 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17293 PR tree-optimization/29484
17294 * tree-inline.c (inline_forbidden_p_2): New function.
17295 (inline_forbidden_p): Disallow inlining if some static var
17296 has an address of a local LABEL_DECL in its initializer.
17297 * doc/extend.texi (Labels as Values): Document &&foo behaviour
17300 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
17302 PR tree-optimization/34635
17303 * tree-data-ref.c (add_other_self_distances): Make sure that the
17304 evolution step is constant.
17306 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17308 PR middle-end/34608
17309 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17311 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
17313 * tree-sra.c (scalarize_init): Insert the generate_element_init
17314 statements after the generate_element_zero statements.
17316 2008-01-02 Richard Guenther <rguenther@suse.de>
17318 PR middle-end/34093
17319 PR middle-end/31976
17320 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17321 for very large number of operands instead of ICEing.
17323 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
17326 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17327 while stack probing.
17329 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
17331 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17334 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
17336 PR libmudflap/26442
17337 * tree-mudflap.c (mx_register_decls): Guard warning by
17338 !DECL_ARTIFICIAL check.
17340 2008-01-01 Jakub Jelinek <jakub@redhat.com>
17342 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17343 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17344 sse5_perm<mode>): Fix constraints.