1 2011-07-31 Revital Eres <revital.eres@linaro.org>
3 * modulo-sched.c: Change comment.
4 (reset_sched_times): Fix print message.
5 (print_partial_schedule): Add print info.
7 2011-07-31 Tom de Vries <tom@codesourcery.com>
10 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
11 get_object_alignment and TYPE_ALIGN.
13 2011-07-30 Tom de Vries <tom@codesourcery.com>
16 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
17 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
19 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
23 (cpu_types): New array.
24 (cputype): New function.
25 (host_detect_local_cpu): Only define buf, f if !__sgi__.
26 Use scaninvent instead of /proc/cpuinfo if __sgi__.
27 * config.host: Also use driver-native.o, mips/x-native on
29 * config/mips/iris6.h [__mips__] (host_detect_local_cpu):
31 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
32 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
34 2011-07-29 Jakub Jelinek <jakub@redhat.com>
38 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
39 in nested parallel and outer is a gimple_reg, mark it as addressable
40 and set its bit in task_shared_vars bitmap too.
42 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
44 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
46 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
48 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
49 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
50 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
51 AMASK_LOCKPFTCHOK): Define.
52 (host_detect_local_cpu): Remove buf, f, cpu_names.
53 Define cpu_types, implver, amask.
54 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
56 * config.host: Also use driver-alpha.o, alpha/x-alpha on
58 * config/alpha/osf5.h [__alpha__ || __alpha]
59 (host_detect_local_cpu): Declare.
60 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
61 (DRIVER_SELF_SPECS): Define.
63 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
66 * config/i386/i386.md (*load_tp_x32): New.
67 (*load_tp_x32_zext): Ditto.
69 (*add_tp_x32_zext): Ditto.
70 (*load_tp_<mode>): Disable for TARGET_X32 targets.
71 (*add_tp_<mode>): Ditto.
72 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
73 ptr_mode and convert to Pmode if needed.
75 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
78 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
79 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
80 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
81 Add X to register footprint: Clobber r26/r27.
83 2011-07-29 Richard Guenther <rguenther@suse.de>
85 * builtins.c (fold_builtin_signbit): Build the comparison
88 2011-07-29 Richard Guenther <rguenther@suse.de>
90 PR tree-optimization/49893
91 * tree-predcom.c (suitable_reference_p): Volatile references
94 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
97 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
98 (__ctzsi2): Result for 0 may be undefined.
99 (__ctzhi2): Result for 0 may be undefined.
100 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
101 (__popcountsi2): Ditto. And don't clobber r26.
102 (__popcountdi2): Ditto. And don't clobber r27.
103 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
104 (parityhi2): New expand.
105 (paritysi2): New expand.
106 (popcounthi2): New expand.
107 (popcountsi2): New expand.
108 (clzhi2): New expand.
109 (clzsi2): New expand.
110 (ctzhi2): New expand.
111 (ctzsi2): New expand.
112 (ffshi2): New expand.
113 (ffssi2): New expand.
114 (copysignsf3): New insn.
115 (bswapsi2): New expand.
116 (*parityhi2.libgcc): New insn.
117 (*parityqihi2.libgcc): New insn.
118 (*paritysihi2.libgcc): New insn.
119 (*popcounthi2.libgcc): New insn.
120 (*popcountsi2.libgcc): New insn.
121 (*popcountqi2.libgcc): New insn.
122 (*popcountqihi2.libgcc): New insn-and-split.
123 (*clzhi2.libgcc): New insn.
124 (*clzsihi2.libgcc): New insn.
125 (*ctzhi2.libgcc): New insn.
126 (*ctzsihi2.libgcc): New insn.
127 (*ffshi2.libgcc): New insn.
128 (*ffssihi2.libgcc): New insn.
129 (*bswapsi2.libgcc): New insn.
131 2011-07-29 Richard Guenther <rguenther@suse.de>
133 * tree-vrp.c (get_value_range): Only set parameter default
134 definitions to varying, leave others at undefined.
135 (extract_range_from_binary_expr): Fix undefined handling.
136 (vrp_visit_phi_node): Handle merged undefined state.
138 2011-07-29 Wei Guozhi <carrot@google.com>
140 PR rtl-optimization/49799
141 * combine.c (make_compound_operation): Check if the bit field is valid
142 before change it to bit field extraction.
144 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
146 PR rtl-optimization/49891
147 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
148 newly created returnjumps.
150 2011-07-28 DJ Delorie <dj@redhat.com>
152 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
153 local frame in a naked function, and produce a suitable error for
156 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
157 registers to be reloaded in HI classes when the target is HI.
159 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
161 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
162 bound_one, bound_two.
164 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
167 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
169 (translate_clast): Same.
170 (translate_clast_assignment): New.
172 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
174 PR tree-optimization/49876
175 * sese.c (rename_uses): Do not return false on gloog_error: set
176 the new_expr to integer_zero_node and continue code generation.
177 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
179 2011-07-28 Jakub Jelinek <jakub@redhat.com>
182 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
183 arguments also check if they aren't initialized with a MODE_INT
184 mode of the same size.
186 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
188 * expr.c (get_bit_range): Handle *MEM_REF's.
190 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
192 * rtlanal.c (tablejump_p): False for returns.
193 * reorg.c (first_active_target_insn): New static function.
194 (find_end_label): Set JUMP_LABEL for a new returnjump.
195 (optimize_skip, get_jump_flags, rare_destination,
196 mostly_true_jump, get_branch_condition,
197 steal_delay_list_from_target, own_thread_p,
198 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
199 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
200 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
201 * jump.c (delete_related_insns): Likewise.
202 (jump_to_label_p): New function.
203 (redirect_target): New static function.
204 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
205 (redirect_jump_1): Assert that the new label is nonnull.
206 (redirect_jump): Likewise.
207 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
208 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
210 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
211 changed. Ensure that the right label is passed to redirect_jump.
212 * function.c (emit_return_into_block,
213 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
214 ret_rtx in their JUMP_LABEL.
215 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
216 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
217 pass ret_rtx as label.
218 * cfglayout.c (fixup_reorder_chain): Use
219 force_nonfallthru_and_redirect rather than force_nonfallthru.
220 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
221 * rtl.h (ANY_RETURN_P): New macro.
222 (jump_to_label_p): Declare.
223 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
225 (mark_target_live_regs): Likewise.
226 * basic-block.h (force_nonfallthru_and_redirect): Declare.
227 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
228 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
229 alpha_tablejump_best_label): Remove functions.
230 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
231 alpha_tablejump_best_label): Remove declarations.
232 * config/sh/sh.c (barrier_align, split_branches): Adjust for
233 ret_rtx in JUMP_LABELs.
234 * config/arm/arm.c (is_jump_table): Likewise.
236 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
238 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
239 special predicate. Remove explicit mode checks.
241 2011-07-28 Jakub Jelinek <jakub@redhat.com>
243 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
244 DW_AT_data_member_location containing just DW_OP_plus_uconst.
247 * dwarf2out.c (size_of_die, value_format, output_die): Use
248 DW_FORM_udata instead of DW_FORM_data[48] for
249 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
251 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
253 * config/i386/i386.md (*tls_global_dynamic_64): Update
256 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
259 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
260 tls_symbolic_operand check. Update code sequence for TARGET_X32.
261 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
262 (tls_dynamic_gnu2_64): Ditto.
263 (*tls_dynamic_gnu2_lea_64): Ditto.
264 (*tls_dynamic_gnu2_call_64): Ditto.
265 (*tls_dynamic_gnu2_combine_64): Ditto.
267 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
269 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
271 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
274 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
276 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
278 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
279 before the core constraints. Adjust attributes.
280 ("*thumb2_movdf_vfp"): Likewise.
282 2011-07-28 Kai Tietz <ktietz@redhat.com>
284 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
285 (simplify_truth_ops_using_ranges): Likewise.
286 (build_assert_expr_for): Likewise.
287 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
288 and handle BIT_NOT_EXPR for truth-operation.
290 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
293 Undo r176835 from trunk
294 2011-07-27 Georg-Johann Lay
296 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
299 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
300 Add _muluhisi3, _mulshisi3, _usmulhisi3.
301 * config/avr/libgcc.S (__mulsi3): Rewrite.
302 (__mulhisi3): Rewrite.
303 (__umulhisi3): Rewrite.
308 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
310 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
311 (pseudo_register_or_const_int_operand): New.
312 (combine_pseudo_register_operand): New.
316 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
317 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
318 (any_extend, any_extend2): New code iterators.
319 (extend_prefix): New code attribute.
320 (mulsi3): Rewrite. Turn insn to expander.
323 (usmulhisi3): New expander.
324 (*mulsi3): New insn-and-split.
325 (mulu<mode>si3): New insn-and-split.
326 (muls<mode>si3): New insn-and-split.
327 (mulohisi3): New insn-and-split.
328 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
329 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
330 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
331 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
333 (*mulsi3_call): Rewrite.
334 (*mulhisi3_call): Rewrite.
335 (*umulhisi3_call): Rewrite.
336 (*usmulhisi3_call): New insn.
337 (*muluhisi3_call): New insn.
338 (*mulshisi3_call): New insn.
339 (*mulohisi3_call): New insn.
340 (extendqihi2): Use combine_pseudo_register_operand as predicate
342 (extendqisi2): Ditto.
343 (zero_extendqihi2): Ditto.
344 (zero_extendqisi2): Ditto.
345 (zero_extendhisi2): Ditto.
346 (extendhisi2): Ditto. Don't early-clobber operand 0.
348 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
350 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
352 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
354 PR tree-optimization/49471
355 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
356 iv only when the largest type is unsigned. Do not call
357 lang_hooks.types.type_for_size.
359 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
362 * graphite-poly.c (apply_poly_transforms): Disable legality check
363 after an openscop read.
365 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
368 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
369 copy_bb_and_scalar_dependences.
370 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
371 (graphite_copy_stmts_from_block): Update call to rename_uses.
372 (copy_bb_and_scalar_dependences): Update call to
373 graphite_copy_stmts_from_block.
374 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
376 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
379 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
380 (__ctzsi2): Result for 0 may be undefined.
381 (__ctzhi2): Result for 0 may be undefined.
382 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
383 (__popcountsi2): Ditto. And don't clobber r26.
384 (__popcountdi2): Ditto. And don't clobber r27.
385 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
386 (parityhi2): New expand.
387 (paritysi2): New expand.
388 (popcounthi2): New expand.
389 (popcountsi2): New expand.
390 (clzhi2): New expand.
391 (clzsi2): New expand.
392 (ctzhi2): New expand.
393 (ctzsi2): New expand.
394 (ffshi2): New expand.
395 (ffssi2): New expand.
396 (copysignsf3): New insn.
397 (bswapsi2): New expand.
398 (*parityhi2.libgcc): New insn.
399 (*parityqihi2.libgcc): New insn.
400 (*paritysihi2.libgcc): New insn.
401 (*popcounthi2.libgcc): New insn.
402 (*popcountsi2.libgcc): New insn.
403 (*popcountqi2.libgcc): New insn.
404 (*popcountqihi2.libgcc): New insn-and-split.
405 (*clzhi2.libgcc): New insn.
406 (*clzsihi2.libgcc): New insn.
407 (*ctzhi2.libgcc): New insn.
408 (*ctzsihi2.libgcc): New insn.
409 (*ffshi2.libgcc): New insn.
410 (*ffssihi2.libgcc): New insn.
411 (*bswapsi2.libgcc): New insn.
413 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
415 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
416 the mode of symbolic_opreand RTXes.
418 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
420 * config/i386/predicates.md (x86_64_movabs_operand): Return false
421 for pic_32bit_operand RTXes.
422 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
425 2011-07-27 Kai Tietz <ktietz@redhat.com>
427 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
429 (ix86_handle_abi_attribute): Allow function attributes
430 ms_abi/sysv_abi in 32-bit mode, too.
431 * doc/extend.texi: Adjust attribute documentation.
433 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
435 (and_var_with_comparison_1): Likewise.
437 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
439 * params.h (ALLOW_STORE_DATA_RACES): New.
440 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
441 * Makefile.in (expr.o): Depend on PARAMS_H.
442 * machmode.h (get_best_mode): Add argument.
443 * fold-const.c (optimize_bit_field_compare): Add argument to
445 (fold_truthop): Same.
446 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
447 * expr.c (emit_group_store): Same.
448 (copy_blkmode_from_reg): Same.
449 (write_complex_part): Same.
450 (optimize_bitfield_assignment_op): Add argument.
451 Add argument to get_best_mode.
452 (get_bit_range): New.
453 (expand_assignment): Calculate maxbits and pass it down accordingly.
454 (store_field): New argument.
455 (expand_expr_real_2): New argument to store_field. Include params.h.
456 * expr.h (store_bit_field): New argument.
457 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
458 into account maxbits.
459 * calls.c (store_unaligned_arguments_into_pseudos): New argument
461 * expmed.c (store_bit_field_1): New argument. Use it.
462 (store_bit_field): Same.
463 (store_fixed_bit_field): Same.
464 (store_split_bit_field): Same.
465 (extract_bit_field_1): Pass new argument to get_best_mode.
466 (extract_bit_field): Same.
467 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
468 * doc/invoke.texi: Document parameter allow-store-data-races.
470 2011-07-27 Jakub Jelinek <jakub@redhat.com>
472 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
474 2011-07-27 Kai Tietz <ktietz@redhat.com>
476 * tree-vrp.c (extract_range_from_binary_expr): Remove
477 TRUTH-binary cases and add new bitwise-cases.
478 (extract_range_from_assignment): Likewise.
479 (register_edge_assert_for_1): Likeiwise.
480 (register_edge_assert_for): Likewise.
481 (simplify_truth_ops_using_ranges): Likewise.
482 (simplify_stmt_using_ranges): Likewise.
484 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
487 * config/i386/i386.c (ix86_delegitimize_address): Call
488 simplify_gen_subreg for PIC with mode of x only if modes of
489 x and orig_x are different.
491 2011-07-26 Jakub Jelinek <jakub@redhat.com>
493 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
494 to GC allocated copy of the string.
495 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
496 before .debug_line, not after it.
498 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
501 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
502 evolution_function_is_affine_p on CHREC_RIGHT.
504 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
506 * tree-data-ref.c (max_stmt_executions_tree): Do not call
507 lang_hooks.types.type_for_size.
509 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
512 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
513 loops using wrapping semantics.
515 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
518 * tree-scalar-evolution.c (instantiate_scev_r): Return
519 chrec_dont_know for ADDR_EXPR.
521 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
522 H.J. Lu <hongjiu.lu@intel.com>
526 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
527 if legitimize_tls_address returned operand in wrong mode. Allow
528 SImode and DImode symbolic operand for PIC. Call convert_to_mode
529 if legitimize_pic_address returned operand in wrong mode.
531 2011-07-26 Martin Jambor <mjambor@suse.cz>
533 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
534 return false for invariants.
536 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
538 * config/i386/i386.md (add->lea splitter): Implement using SWI
539 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
540 (add->lea zext splitter): Change operand 2 predicate to
541 x86_64_nonmemory_operand.
543 2011-07-26 Richard Guenther <rguenther@suse.de>
545 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
546 frequency makes everything hot.
548 2011-07-26 Richard Guenther <rguenther@suse.de>
550 PR tree-optimization/49840
551 * tree-vrp.c (range_fits_type_p): Properly handle full
552 double-int precision.
554 2011-07-26 Martin Jambor <mjambor@suse.cz>
557 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
559 (update_specialized_profile): Likewise.
561 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
562 H.J. Lu <hongjiu.lu@intel.com>
567 * config/i386/i386.md (i): Change SImode attribute to "e".
568 (g): Change SImode attribute to "rme".
569 (di): Change SImode attribute to "nF".
570 (general_operand): Change SImode attribute to x86_64_general_operand.
571 (general_szext_operand): Change SImode attribute to
572 x86_64_szext_general_operand.
573 (immediate_operand): Change SImode attribute to
574 x86_64_immediate_operand.
575 (nonmemory_operand): Change SImode attribute to
576 x86_64_nonmemory_operand.
577 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
578 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
579 (*lea_1): Use SWI48 mode iterator.
580 (*lea_1_zext): New insn pattern.
581 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
583 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
584 Update operand constraints.
585 (addsi_1_zext): Ditto.
586 (*add<mode>2): Ditto.
587 (*addsi_3_zext): Ditto.
588 (*subsi_1_zext): Ditto.
589 (*subsi_2_zext): Ditto.
590 (*subsi_3_zext): Ditto.
591 (*addsi3_carry_zext): Ditto.
592 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
593 (*mulsi3_1_zext): Ditto.
595 (*andsi_1_zext): Ditto.
596 (*andsi_2_zext): Ditto.
597 (*<any_or:code>si_1_zext): Ditto.
598 (*<any_or:code>si_2_zext): Ditto.
599 (*test<mode>_1): Use <general_operand> predicate for operand 1.
600 (*and<mode>_2): Ditto.
601 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
602 (add->lea splitter): Check operand modes in insn constraint. Extend
603 operands less than SImode wide to SImode.
604 (add->lea zext splitter): Do not extend input operands to DImode.
605 (*lea_general_1): Handle only QImode and HImode operands.
606 (*lea_general_2): Ditto.
607 (*lea_general_3): Ditto.
608 (*lea_general_1_zext): Remove.
609 (*lea_general_2_zext): Ditto.
610 (*lea_general_3_zext): Ditto.
611 (*lea_general_4): Check operand modes in insn constraint. Extend
612 operands less than SImode wide to SImode.
613 (ashift->lea splitter): Ditto.
614 * config/i386/i386.c (ix86_print_operand_address): Print address
615 registers with 'q' modifier on 64bit targets.
616 * config/i386/predicates.md (pic_32bit_opreand): Define as special
617 predicate. Reject non-SI and non-DI modes.
619 2011-07-25 Andrew Pinski <apinski@cavium.com>
622 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
623 TREE_THIS_NOTRAP into the inner most MEM_REF.
624 Always copy TREE_THIS_VOLATILE.
625 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
626 arguments are not volatile references.
628 2011-07-25 Richard Henderson <rth@redhat.com>
630 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
631 * final.c (final_scan_insn): Don't test for it.
632 (rest_of_clean_state): Likewise.
634 2011-07-25 Richard Henderson <rth@redhat.com>
637 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
638 (emit_frame_save): Likewise.
639 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
640 insn onto a dummy blockage insn after the join label.
642 2011-07-25 Richard Henderson <rth@redhat.com>
644 * dwarf2cfi.c (dw_trace_info): Add ID member.
645 (get_trace_index): Remove. Change users to use ID member.
646 (before_next_cfi_note): New.
647 (connect_traces): Remove unreachable traces before the main loop.
648 Look across one trace and generate remember/restore_state if needed.
650 2011-07-25 Richard Henderson <rth@redhat.com>
652 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
654 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
656 * genattr.c (write_upcase, gen_attr <enum definition writing>):
658 * genattr-common.c ... here.
659 (main): Call gen_attr.
660 * optc-gen.awk: Make generated program include insn-attr-common.h .
661 * Makefile.in (oprions.o): Depend on insn-attr-common.h
663 2011-07-25 Anatoly Sokolov <aesok@post.ru>
665 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
666 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
667 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
668 m32c_print_operand, m32c_print_operand_address): Remove.
669 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
670 Change return type to bool. Change argument type to bool.
671 (m32c_print_operand, m32c_print_operand_address): Make static.
672 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
673 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
675 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
677 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
678 attributes): Document mmap.
680 2011-07-25 Anatoly Sokolov <aesok@post.ru>
682 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
683 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
684 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
685 mmix_print_operand, mmix_print_operand_address): Remove.
686 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
687 Change return type to bool. Change argument type to bool.
688 (mmix_print_operand, mmix_print_operand_address): Make static.
689 (mmix_intval, mmix_output_condition): Change 'x' argument type
691 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
692 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
694 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
697 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
698 shift counter for x << x and x >> x shifts.
700 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
703 * config.gcc: Reject *-*-solaris2 configuration.
705 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
707 PR tree-optimization/49809
708 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
709 gimple_get_lhs instead of gimple_assign_lhs.
711 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
713 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
715 2011-07-25 Richard Guenther <rguenther@suse.de>
717 PR tree-optimization/49822
718 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
719 more. Make sure to preserve stmts with side-effects. Properly
720 handle virtual defs, follow a longer def chain.
722 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
727 * Makefile.in: Do not flatten c-family directory when installing
730 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
732 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
733 original nodes if we are dealing with virtual clones.
735 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
737 * common/config/c6x/c6x-common.c: New file.
739 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
741 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
743 2011-07-25 Richard Guenther <rguenther@suse.de>
745 PR tree-optimization/49715
746 * tree-vrp.c: Include expr.h and optabs.h.
747 (range_fits_type_): New function.
748 (simplify_float_conversion_using_ranges): Likewise.
749 (simplify_stmt_using_ranges): Call it.
750 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
751 * optabs.c (can_float_p): Export.
752 * optabs.h (can_float_p): Declare.
754 2011-07-25 Richard Guenther <rguenther@suse.de>
756 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
757 (get_value_range): For out-of-range SSA names or names created
758 after propagation return a read-only varying range.
759 (dump_all_value_ranges): Adjust.
760 (vrp_initialize): Likewise.
761 (vrp_finalize): Likewise.
763 2011-07-24 Richard Henderson <rth@redhat.com>
766 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
769 2011-07-24 Richard Henderson <rth@redhat.com>
772 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
773 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
775 2011-07-24 Richard Henderson <rth@redhat.com>
778 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
780 2011-07-24 Richard Henderson <rth@redhat.com>
782 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
783 Zero args_size for abnormal edges. Adjust all callers.
785 2011-07-24 Richard Henderson <rth@redhat.com>
788 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
790 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
793 * collect2.c (demangle_flag): Removed.
795 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
797 * configure.ac (demangler_in_ld): Default to yes.
798 * configure: Regenerated.
799 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
800 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
801 --no-demangle options straight through to ld. When
802 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
803 way that has the intended effect on Windows.
805 2011-07-23 Richard Henderson <rth@redhat.com>
807 * dwarf2cfi.c: Include basic-block.h.
808 (dw_label_info): Remove.
809 (trace_work_list, trace_index): New.
810 (remember_row, emit_cfa_remember): Remove.
811 (dw_trace_info_hash, dw_trace_info_eq): New.
812 (get_trace_index, get_trace_info): New.
814 (free_cfi_row): Remove.
815 (add_cfi): Do not emit DW_CFA_remember_state.
816 (cfa_row_equal_p): New.
817 (barrier_args_size): Remove.
818 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
819 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
820 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
821 (dwarf2out_cfi_begin_epilogue): Remove.
822 (dwarf2out_frame_debug_restore_state): Remove.
823 (connect_traces, create_pseudo_cfg): New.
824 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
825 * Makefile.in (dwarf2cfi.o): Update.
827 2011-07-23 Richard Henderson <rth@redhat.com>
829 * dwarf2cfi.c (dw_trace_info): New.
830 (dw_label_info): New.
831 (cie_return_save): New.
833 (queued_args_size): Rename from args_size. Update all users.
834 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
835 (def_cfa_1): Use cur_trace instead of cfa_*.
836 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
837 (clobbers_queued_reg_save, reg_saved_in): Likewise.
838 (dwarf2out_frame_debug_expr): Likewise.
839 (create_cie_data): Split out from ...
840 (execute_dwarf2_frame): ... here. Initialize cur_trace.
842 2011-07-23 Richard Henderson <rth@redhat.com>
844 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
845 Update all users to match.
846 (execute_dwarf2_frame): Free reg_saved_in_data.
848 2011-07-23 Richard Henderson <rth@redhat.com>
850 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
851 (queued_reg_saves): Don't GTY. Change to a VEC.
852 (queue_reg_save): Update to match.
853 (dwarf2out_flush_queued_reg_saves): Likewise.
854 (clobbers_queued_reg_save): Likewise.
855 (reg_saved_in): Likewise.
856 (execute_dwarf2_frame): Free queued_reg_saves.
858 2011-07-23 Richard Henderson <rth@redhat.com>
860 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
862 2011-07-23 Richard Henderson <rth@redhat.com>
864 * dwarf2cfi.c (add_cfi_args_size): Split out from...
865 (dwarf2out_args_size): ... here.
866 (add_cfi_restore): Split out from ...
867 (dwarf2out_frame_debug_cfa_restore): ... here.
868 (def_cfa_0): Split out from ...
869 (def_cfa_1): ... here.
870 (cfi_oprnd_equal_p, cfi_equal_p): New.
871 (change_cfi_row): New.
872 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
873 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
874 (output_cfis): Remove.
875 * dwarf2out.c (output_fde): Simplify output_cfi loop.
876 (dwarf2out_switch_text_section): Don't call output_cfis.
877 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
878 * dwarf2out.h: Update decls.
879 (enum dw_val_class): Add dw_val_class_none.
881 2011-07-23 Richard Henderson <rth@redhat.com>
883 * dwarf2cfi.c (update_row_reg_save): New.
884 (dwarf2out_frame_debug_cfa_expression): Use it.
885 (dwarf2out_frame_debug_cfa_restore): Likewise.
886 (reg_save): Likewise. Do not emit DW_CFA_same_value.
888 2011-07-23 Richard Henderson <rth@redhat.com>
890 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
892 2011-07-23 Richard Henderson <rth@redhat.com>
894 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
896 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
897 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
898 (cur_row, remember_row): New.
899 (def_cfa_1): Use cur_row instead of the old_* variables.
900 (dwarf2out_frame_debug_restore_state): Similarly.
901 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
902 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
903 (dwarf2out_frame_debug_adjust_cfa): Likewise.
904 (dwarf2out_frame_debug_cfa_offset): Likewise.
905 (dwarf2out_frame_debug_expr): Likewise.
906 (execute_dwarf2_frame): Set up cur_row.
907 * dwarf2out.h (struct cfa_loc): Mark for GTY.
909 2011-07-23 Richard Henderson <rth@redhat.com>
911 * basic-block.h (EDGE_PRESERVE): New.
912 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
913 * bb-reorder.c: Include except.h.
914 (fix_up_crossing_landing_pad): New.
915 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
916 landing pads in the right partition. Duplicate as necessary.
917 (partition_hot_cold_basic_blocks): Fix up DF info after
918 duplicating landing pads.
919 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
920 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
921 is set properly. Validate that EH edges are not CROSSING.
922 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
923 (dw2_build_landing_pads): ... here.
924 (convert_to_eh_region_ranges): Remove code to fixup crossing
926 * except.h (expand_dw2_landing_pad_for_region): Declare.
927 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
929 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
932 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
934 2011-07-22 Jason Merrill <jason@redhat.com>
936 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
938 2011-07-22 Richard Henderson <rth@redhat.com>
940 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
942 2011-07-22 Richard Henderson <rth@redhat.com>
944 * jump.c (maybe_propagate_label_ref): Split out of...
945 (mark_all_labels): ... here. Do not attempt label_ref
946 propagation while in cfglayout mode.
948 2011-07-22 Jakub Jelinek <jakub@redhat.com>
950 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
951 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
952 (dwarf_attr_name): Handle DW_AT_GNU_macros.
953 (dwarf2out_define): If the vector is empty and
954 lineno is 0, emit a dummy entry first.
955 (dwarf2out_undef): Likewise. Remove redundant semicolon.
956 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
957 optimize_macinfo_range): New functions.
958 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
959 mergeable, optimize longer strings using
960 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
961 optimize longer sequences of define/undef ops from headers
962 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
963 emit a section headers.
964 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
965 and macinfo_section_label to DEBUG_MACRO_SECTION
966 resp. DEBUG_MACRO_SECTION_LABEL.
967 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
968 instead of DW_AT_macro_info.
971 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
973 * dwarf2out.c: Include opts.h.
974 (dchar_p): New typedef. Define heap VEC for it.
975 (producer_string): New variable.
976 (gen_producer_string): New function.
977 (gen_compile_unit_die): Use it.
978 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
979 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
980 * doc/invoke.texi: Document -grecord-gcc-switches and
981 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
982 to -frecord-gcc-switches description.
984 2011-07-22 Jason Merrill <jason@redhat.com>
987 * c-decl.c (c_linkage_bindings): Define.
989 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
992 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
994 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
996 * config/i386/i386.c (ix86_option_override_internal): Disallow
998 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
999 only for TARGET_LP64.
1000 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
1002 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1004 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
1005 avoid warnings when GCC is built with a C++ compiler.
1007 2011-07-22 Martin Jambor <mjambor@suse.cz>
1010 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
1011 if decl node is in another partition, call cgraph_get_node only once.
1013 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
1015 * config.gcc (x86_64-*-linux*): Set
1016 default_gnu_indirect_function to yes.
1018 2011-07-22 Richard Guenther <rguenther@suse.de>
1020 PR tree-optimization/45819
1021 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1022 preserve volatile and notrap flags.
1024 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1025 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1028 * configure.ac: Test AM_ICONV with CXX.
1029 * configure: Regenerate.
1030 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
1032 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1035 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
1036 (set_cloog_options): Use it.
1038 2011-07-22 Jakub Jelinek <jakub@redhat.com>
1041 * gcc.c (main): Call stack_limit_increase (64MB).
1042 * toplev.c (toplev_main): Likewise.
1044 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1046 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
1047 instead of force_reg.
1049 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1051 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
1052 needed and use force_reg after convert.
1053 (ix86_expand_call): Likewise.
1054 (ix86_expand_special_args_builtin): Likewise.
1055 (ix86_expand_builtin): Likewise.
1057 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1061 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
1062 in parameter. Initialize v1 and v2 based on the values returned
1063 by clast_name_to_lb_ub.
1064 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
1066 (type_for_clast_bin): Same.
1067 (type_for_clast_expr): Same.
1068 (type_for_clast_eq): Update calls to type_for_clast_expr.
1069 (type_for_clast_for): Same.
1070 (build_iv_mapping): Same.
1071 * graphite-ppl.h (value_min): New.
1073 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1075 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
1076 types whenever possible.
1078 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1080 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
1082 (new_clast_name_index): Add lb and ub parameters.
1083 (free_clast_name_index): New.
1084 (clast_name_to_lb_ub): New.
1085 (save_clast_name_index): Add lb and ub parameters.
1086 (compute_bounds_for_param): New.
1087 (type_for_level): Removed.
1088 (type_for_clast_for): Removed level parameter. Do not call
1090 (graphite_create_new_loop): Store the lb and ub for the clast_name
1091 of the iterator of the loop that has been generated.
1092 (graphite_create_new_loop_guard): Remove parameter level.
1093 (create_params_index): Store the lb and ub of each parameter.
1094 (gloog): Use free_clast_name_index. Pass to create_params_index
1097 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1099 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
1100 (max_precision_type): Inline max_signed_precision_type.
1101 (type_for_clast_red): Use max_precision_type.
1102 (type_for_clast_bin): Same.
1103 (type_for_clast_for): Same.
1105 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1107 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
1109 (gcc_type_for_value): Renamed type_for_value.
1110 (gcc_type_for_clast_term): Renamed type_for_clast_term.
1111 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
1112 (gcc_type_for_clast_red): Renamed type_for_clast_red.
1113 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
1114 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
1115 (graphite_translate_clast_equation): Update calls.
1116 (compute_type_for_level): Renamed type_for_level.
1117 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
1118 (build_iv_mapping): Update calls.
1119 (graphite_create_new_loop_guard): Same.
1121 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1123 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
1126 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1128 * graphite-clast-to-gimple.c (struct ivs_params): New.
1129 (clast_name_to_gcc): Use ivs_params to pass around parameters.
1130 (clast_to_gcc_expression): Same.
1131 (clast_to_gcc_expression_red): Same.
1132 (gcc_type_for_clast_term): Same.
1133 (gcc_type_for_clast_expr): Same.
1134 (gcc_type_for_clast_red): Same.
1135 (gcc_type_for_clast_bin): Same.
1136 (gcc_type_for_clast_eq): Same.
1137 (graphite_translate_clast_equation): Same.
1138 (graphite_create_guard_cond_expr): Same.
1139 (graphite_create_new_guard): Same.
1140 (graphite_create_new_loop): Same.
1141 (build_iv_mapping): Same.
1142 (translate_clast_user): Same.
1143 (graphite_create_new_loop_guard): Same.
1144 (translate_clast): Same.
1145 (translate_clast_for_loop): Same.
1146 (translate_clast_for): Same.
1147 (translate_clast_guard): Same.
1148 (initialize_cloog_names): Fix typo.
1149 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
1151 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1153 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
1154 (new_clast_name_index): Add level parameter.
1155 (clast_name_to_level): New.
1156 (save_clast_name_index): Add level parameter.
1157 (newivs_to_depth_to_newiv): Removed.
1158 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
1159 (graphite_create_new_loop): Add level parameter. Pass level to
1160 save_clast_name_index.
1161 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
1162 (create_params_index): Pass level to save_clast_name_index.
1164 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1166 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
1167 recompute type, lb, and ub. Get them from...
1168 (graphite_create_new_loop_guard): ...here. Pass in parameter
1169 pointers to type, lb, and ub.
1170 (translate_clast_for_loop): Update function calls.
1171 (translate_clast_for): Same.
1173 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
1175 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
1177 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
1178 (gcc_type_for_iv_of_clast_loop): Update use of level.
1179 (gloog): Start counting nesting level from 0.
1180 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
1181 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
1182 psct_dynamic_dim on level.
1184 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1186 * config/i386/i386.c (ix86_legitimize_address): Convert to
1189 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
1191 * config/i386/i386.c (function_value_64): Always return pointers
1193 (ix86_promote_function_mode): New.
1194 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
1196 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1198 PR tree-optimization/49749
1199 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
1200 remove no-longer-used maxrank variable.
1202 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
1204 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
1206 2011-07-21 Jason Merrill <jason@redhat.com>
1208 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
1209 * recog.h (struct insn_data_d): Check it instead of
1210 HAVE_DESIGNATED_INITIALIZERS.
1211 * genoutput.c (output_insn_data): Likewise.
1213 2011-07-21 Richard Guenther <rguenther@suse.de>
1215 PR tree-optimization/49770
1216 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
1217 valueized any operand. Renamed from ...
1218 (valueize_refs): ... this. New wrapper around valueize_refs_1.
1219 (valueize_shared_reference_ops_from_ref): Return whether we
1220 valueized any operand.
1221 (vn_reference_lookup): Only when we valueized any operand
1222 use the valueized reference for alias analysis. Do not preserve
1223 the original reference tree in this case.
1225 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
1227 * config/i386/i386.c (ix86_decompose_address): Reject all but
1228 register operands and subregs of DImode hard registers in index.
1230 2011-07-21 Kai Tietz <ktietz@redhat.com>
1232 * fold-const.c (fold_unary_loc): Preserve indirect
1233 comparison cast to none-boolean type.
1234 * tree-ssa.c (useless_type_conversion_p): Preserve cast
1235 from/to boolean-type.
1236 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
1237 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
1238 * tree-cfg.c (verify_gimple_comparison): Check result
1239 type of comparison expression.
1240 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
1241 of condition result and disallow type-cast sinking into comparison.
1243 2011-07-21 Richard Guenther <rguenther@suse.de>
1245 * tree-ssa-forwprop.c (combine_conversions): Return whether
1246 we have to run cfg-cleanup. Properly remove dead stmts.
1247 (ssa_forward_propagate_and_combine): Adjust.
1249 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
1251 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
1253 2011-07-21 Kai Tietz <ktietz@redhat.com>
1255 * tree-ssa-propagate.c (substitute_and_fold): Use
1256 do_dce flag to deside, if BB's statements are scanned
1257 in last to first, or first to last order.
1259 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
1261 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
1263 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
1264 Uros Bizjak <ubizjak@gmail.com>
1265 Richard Henderson <rth@redhat.com>
1267 * config/i386/constraints.md (w): New.
1269 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
1270 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
1272 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
1273 instead of TARGET_64BIT.
1275 * config/i386/i386.md (indirect_jump): Replace
1276 nonimmediate_operand with indirect_branch_operand.
1277 (*indirect_jump): Likewise. Replace constraint "m" with "w".
1278 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
1279 Convert operand 0 to Pmode for x32 if not PIC.
1280 (*tablejump_1): Replace nonimmediate_operand with
1281 indirect_branch_operand. Replace constraint "m" with "w".
1282 (*call_vzeroupper): Replace constraint "m" with "w".
1284 (*call_rex64_ms_sysv_vzeroupper): Likewise.
1285 (*call_rex64_ms_sysv): Likewise.
1286 (*call_value_vzeroupper): Likewise.
1287 (*call_value): Likewise.
1288 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
1289 (*call_value_rex64_ms_sysv): Likewise.
1290 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
1292 * config/i386/predicates.md (indirect_branch_operand): New.
1293 (call_insn_operand): Support x32.
1295 2011-07-20 Michael Eager <eager@eagercon.com>
1297 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
1299 2011-07-20 Richard Henderson <rth@redhat.com>
1301 * cfg.c (dump_bb_info): Dump basic_block->flags.
1302 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
1304 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
1306 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1307 of DImode hard registers in index.
1308 (ix86_legitimate_address_p): Allow subregs of base and index to span
1309 more than a word. Assert that subregs of base and index satisfy
1310 register_no_elim_operand predicates. Reject addresses where
1311 base and index have different modes.
1313 2011-07-20 Robert Millan <rmh@gnu.org>
1315 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
1317 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1319 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
1320 removing now-unnecessary assignment.
1322 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1324 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
1325 memory address space to the type's address space.
1327 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
1331 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
1332 and expand appropriately if there is a CONST_INT in operand2.
1333 (usmulqihi3): New insn.
1334 (*sumulqihi3): New insn.
1335 (*osmulqihi3): New insn.
1336 (*oumulqihi3): New insn.
1337 (*muluqihi3.uconst): New insn_and_split.
1338 (*muluqihi3.sconst): New insn_and_split.
1339 (*mulsqihi3.sconst): New insn_and_split.
1340 (*mulsqihi3.uconst): New insn_and_split.
1341 (*mulsqihi3.oconst): New insn_and_split.
1342 (*ashifthi3.signx.const): New insn_and_split.
1343 (*ashifthi3.signx.const7): New insn_and_split.
1344 (*ashifthi3.zerox.const): New insn_and_split.
1345 (mulsqihi3): New insn.
1346 (muluqihi3): New insn.
1347 (muloqihi3): New insn.
1348 * config/avr/predicates.md (const_2_to_7_operand): New.
1349 (const_2_to_6_operand): New.
1354 (register_or_s9_operand): New.
1356 2011-07-20 Kai Tietz <ktietz@redhat.com>
1358 * builtins.c (fold_builtin_expect): See through the cast
1359 from truthvalue_type_node to long.
1361 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1363 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
1364 where we can use them from the standard and altivec instruction
1365 sets, instead of always using the 3 operand VSX forms that require
1366 the destination to overlap one of the inputs.
1371 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
1373 (fmsdf4_fpr): Ditto.
1374 (nfmadf4_fpr): Ditto.
1375 (nfmsdf4_fpr): Ditto.
1377 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
1379 * genrecog.c (make_insn_sequence): Correct position numbering
1380 when filtering out match_scratch and match_dup.
1382 2011-07-20 Richard Guenther <rguenther@suse.de>
1384 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
1385 against already removed statements.
1386 (forward_propagate_into_comparison): Remove dead defining stmts.
1387 (forward_propagate_into_gimple_cond): Likewise.
1388 (forward_propagate_into_cond): Simplify.
1389 (ssa_forward_propagate_and_combine): Handle changed cfg from
1390 forward_propagate_into_comparison.
1391 * tree-ssa-phiopt.c (conditional_replacement): Use proper
1392 locations for newly built statements.
1394 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
1396 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
1398 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1400 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
1401 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
1403 2011-07-20 Richard Guenther <rguenther@suse.de>
1406 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
1407 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
1408 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
1410 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
1412 * config/frv/frv.c (frv_register_move_cost): Define explicitly
1413 costs for subclasses of GR_REGS.
1415 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
1418 * config/i386/predicates.md (no_seg_addres_operand): No more special.
1419 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1420 of DImode hard registers in base.
1421 (ix86_legitimate_address_p): Allow SImode and DImode base and index
1424 2011-07-20 Richard Guenther <rguenther@suse.de>
1426 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
1427 (unify_nodes): Deal with that.
1428 (solve_graph): Likewise.
1430 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
1432 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
1433 canonicalize left operand from ZERO_EXTEND to AND.
1435 2011-07-20 Anatoly Sokolov <aesok@post.ru>
1437 * target.def (class_max_nregs): New hook.
1438 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
1439 * doc/tm.texi: Regenerate.
1440 * targhooks.c (default_class_max_nregs): New function.
1441 * targhooks.h (default_class_max_nregs): Declare.
1442 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
1443 x_ira_reg_class_min_nregs arrays to unsigned char.
1444 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
1445 hook instead of CLASS_MAX_NREGS macro.
1446 * reginfo.c (restore_register_info): Ditto.
1447 * ira-conflicts.c (process_regs_for_copy): Use
1448 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
1449 Change type rclass and aclass vars to reg_class_t.
1450 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
1451 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
1453 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
1454 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
1456 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
1457 * config/i386/i386.c (ix86_class_max_nregs): New function.
1458 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
1459 instead of CLASS_MAX_NREGS macro.
1460 (TARGET_CLASS_MAX_NREGS): Define.
1461 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
1462 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
1463 * config/avr/avr.c (class_max_nregs): Remove function.
1464 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
1465 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
1466 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
1467 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
1468 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
1469 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
1470 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
1471 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
1472 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
1473 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
1474 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
1475 * config/score/score.h (CLASS_MAX_NREGS): Remove.
1476 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
1477 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
1478 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
1480 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
1482 * cif-code.def (OVERWRITABLE): Fix typo and move around.
1483 (TARGET_OPTIMIZATION_MISMATCH): Delete.
1484 (EH_PERSONALITY): Fix typo.
1485 (NON_CALL_EXCEPTIONS): Fix message.
1486 (OPTIMIZATION_MISMATCH): Adjust message.
1487 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
1489 2011-07-19 Ian Lance Taylor <iant@google.com>
1491 * doc/install.texi (Configuration): Document
1492 --enable-build-poststage1-with-cxx.
1494 2011-07-19 Robert Millan <rmh@gnu.org>
1496 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
1497 (GLIBC_DYNAMIC_LINKER): Remove.
1499 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
1500 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
1501 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
1502 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
1503 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
1504 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
1506 * config/mips/linux.h: Remove everything except for ...
1507 (GLIBC_DYNAMIC_LINKER): ... this macro.
1509 * config/mips/linux64.h: Remove everything except for ...
1510 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
1511 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
1512 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
1513 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
1514 (GNU_USER_LINK_EMULATIONN32): New macros.
1516 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
1517 Use the new headers.
1519 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
1521 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
1522 Add offset_known_p and size_known_p fields.
1523 (MEM_OFFSET_KNOWN_P): Update accordingly.
1524 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
1525 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
1526 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
1527 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
1528 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
1529 (init_emit_regs): Likewise.
1531 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
1533 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
1534 (MEM_OFFSET): Change from returning an rtx to returning a
1536 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
1537 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
1538 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
1539 (clear_mem_offset): Declare.
1540 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
1541 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
1542 MEM_OFFSET to get a HOST_WIDE_INT offset.
1543 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
1544 (adjust_offset_for_component_ref): Take a bool "known_p"
1545 parameter and a HOST_WIDE_INT "offset" parameter.
1546 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
1547 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
1548 than an rtx. Use clear_mem_offset to clear the offset.
1549 * cfgcleanup.c (merge_memattrs): Likewise.
1550 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
1551 * function.c (assign_parm_find_stack_rtl): Likewise.
1552 (assign_parm_setup_stack): Likewise.
1553 * print-rtl.c (print_rtx): Likewise.
1554 * reload.c (find_reloads_subreg_address): Likewise.
1555 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1556 * var-tracking.c (INT_MEM_OFFSET): Likewise.
1557 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1558 (get_mem_align_offset): Likewise.
1559 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
1560 (clear_mem_offset): New function.
1561 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
1562 offset rather than an rtx. Assume both the expressio and offset
1564 (r10k_needs_protection_p_1): Update accordingly, checking the
1565 expression and offset availability here instead.
1567 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
1569 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
1570 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
1571 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
1572 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
1573 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
1574 (clear_mem_size): Declare.
1575 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
1576 (clear_mem_size): New function.
1577 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
1578 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
1579 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
1580 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
1582 (nonoverlapping_memrefs_p): Likewise.
1583 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
1584 (expand_builtin_init_trampoline): Likewise.
1585 * calls.c (compute_argument_addresses): Likewise.
1586 * cfgcleanup.c (merge_memattrs): Likewise.
1587 * dce.c (find_call_stack_args): Likewise.
1588 * dse.c (record_store, scan_insn): Likewise.
1589 * dwarf2out.c (dw_sra_loc_expr): Likewise.
1590 * expr.c (emit_block_move_hints): Likewise.
1591 * function.c (assign_parm_find_stack_rtl): Likewise.
1592 * print-rtl.c (print_rtx): Likewise.
1593 * reload.c (find_reloads_subreg_address): Likewise.
1594 * rtlanal.c (may_trap_p_1): Likewise.
1595 * var-tracking.c (track_expr_p): Likewise.
1596 * varasm.c (assemble_trampoline_template): Likewise.
1597 * config/arm/arm.c (arm_print_operand): Likewise.
1598 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
1599 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
1600 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
1601 (expand_constant_setmem_prologue): Likewise.
1602 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
1603 * config/rs6000/rs6000.c (expand_block_move): Likewise.
1604 (adjacent_mem_locations): Likewise.
1605 * config/s390/s390.c (s390_expand_setmem): Likewise.
1606 (s390_expand_insv): Likewise.
1607 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
1608 (*extendqi<mode>2_short_displ): Likewise.
1609 * config/sh/sh.c (expand_block_move): Likewise.
1610 * config/sh/sh.md (extv, extzv): Likewise.
1612 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
1614 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
1615 (mem_attrs_htab_eq): ...here.
1616 (find_mem_attrs): Replace with...
1617 (set_mem_attrs): ...this function. Take a mem_attrs structure
1618 rather than individual fields.
1619 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
1620 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
1621 (set_mem_size, change_address, adjust_address_1, offset_address)
1622 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
1625 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
1627 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
1628 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
1629 Provide a dummy definition of MEM_ADDR_SPACE for generators.
1630 (target_rtl): Add x_mode_mem_attrs.
1631 (mode_mem_attrs): New macro.
1632 (get_mem_attrs): New function.
1633 * emit-rtl.c (get_mem_attrs): Rename to...
1634 (find_mem_attrs): ...this.
1635 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
1636 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
1637 (set_mem_size, change_address, adjust_address_1, offset_address)
1638 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
1640 (init_emit_regs): Initialize mode_mem_attrs.
1642 2011-07-19 Richard Guenther <rguenther@suse.de>
1644 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
1645 TRUTH_*_EXPR handling.
1646 * tree-ssa-operands.c (get_expr_operands): Likewise.
1647 * tree-ssa-pre.c (fully_constant_expression): Likewise.
1648 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
1650 (is_and_or_or): Likewise.
1651 (is_norm_cond_subset_of): Likewise.
1653 2011-07-19 Richard Guenther <rguenther@suse.de>
1655 * tree.h (fold_build_pointer_plus_loc): New helper function.
1656 (fold_build_pointer_plus_hwi_loc): Likewise.
1657 (fold_build_pointer_plus): Define.
1658 (fold_build_pointer_plus_hwi): Likewise.
1659 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
1660 (fold_builtin_memory_op): Likewise.
1661 (fold_builtin_stpcpy): Likewise.
1662 (fold_builtin_memchr): Likewise.
1663 (fold_builtin_strstr): Likewise.
1664 (fold_builtin_strchr): Likewise.
1665 (fold_builtin_strrchr): Likewise.
1666 (fold_builtin_strpbrk): Likewise.
1667 (fold_builtin_strcat): Likewise.
1668 (expand_builtin_memory_chk): Likewise.
1669 (fold_builtin_memory_chk): Likewise.
1670 * c-typeck.c (build_unary_op): Likewise.
1671 * cgraphunit.c (thunk_adjust): Likewise.
1672 * fold-const.c (build_range_check): Likewise.
1673 (fold_binary_loc): Likewise.
1674 * omp-low.c (extract_omp_for_data): Likewise.
1675 (expand_omp_for_generic): Likewise.
1676 (expand_omp_for_static_nochunk): Likewise.
1677 (expand_omp_for_static_chunk): Likewise.
1678 * tree-affine.c (add_elt_to_tree): Likewise.
1679 * tree-data-ref.c (split_constant_offset_1): Likewise.
1680 * tree-loop-distribution.c (generate_memset_zero): Likewise.
1681 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
1682 * tree-predcom.c (ref_at_iteration): Likewise.
1683 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
1684 (add_to_parts): Likewise.
1685 (create_mem_ref): Likewise.
1686 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1687 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
1688 (number_of_iterations_le): Likewise.
1689 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
1690 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
1691 (vect_create_addr_base_for_vector_ref): Likewise.
1692 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
1693 (vect_create_cond_for_alias_checks): Likewise.
1694 * tree-vrp.c (extract_range_from_assert): Likewise.
1695 * config/alpha/alpha.c (alpha_va_start): Likewise.
1696 (alpha_gimplify_va_arg_1): Likewise.
1697 * config/i386/i386.c (ix86_va_start): Likewise.
1698 (ix86_gimplify_va_arg): Likewise.
1699 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1700 * config/mep/mep.c (mep_expand_va_start): Likewise.
1701 (mep_gimplify_va_arg_expr): Likewise.
1702 * config/mips/mips.c (mips_va_start): Likewise.
1703 (mips_gimplify_va_arg_expr): Likewise.
1704 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1705 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
1706 (rs6000_gimplify_va_arg): Likewise.
1707 * config/s390/s390.c (s390_va_start): Likewise.
1708 (s390_gimplify_va_arg): Likewise.
1709 * config/sh/sh.c (sh_va_start): Likewise.
1710 (sh_gimplify_va_arg_expr): Likewise.
1711 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1712 * config/spu/spu.c (spu_va_start): Likewise.
1713 (spu_gimplify_va_arg_expr): Likewise.
1714 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1716 (xstormy16_gimplify_va_arg_expr): Likewise.
1717 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
1718 (xtensa_gimplify_va_arg_expr): Likewise.
1720 2011-07-19 Richard Guenther <rguenther@suse.de>
1722 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
1723 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
1727 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
1728 result of BIT_*_EXPR to bitfield precision.
1730 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
1732 PR tree-optimization/49742
1733 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
1734 as a potential write.
1736 2011-07-19 Richard Guenther <rguenther@suse.de>
1738 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
1739 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
1740 (forward_propagate_comparison): Simplify, remove obsolete code.
1742 2011-07-19 Richard Guenther <rguenther@suse.de>
1744 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
1745 BIT_XOR_EXPR, same as the RTL expander does.
1746 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
1747 (verify_gimple_assign_unary): Likewise.
1748 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
1749 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
1750 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
1752 2011-07-19 Jakub Jelinek <jakub@redhat.com>
1754 PR tree-optimization/49768
1755 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
1756 if offset is smaller than bitoffset, but offset+size is bigger
1759 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
1761 PR tree-optimization/49771
1762 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
1763 zero step, set segment length to the size of the data-ref's type.
1765 2011-07-18 Martin Jambor <mjambor@suse.cz>
1767 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
1769 (ipcp_values_pool): Declare.
1770 (ipcp_sources_pool): Likewise.
1771 (ipcp_lattice): Changed to forward declaration.
1772 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
1773 cannot_devirtualize.
1774 (ipa_node_params): New fields descriptors, lattices, known_vals,
1775 clone_for_all_contexts and node dead, removed fields params and
1777 (ipa_set_param_count): Removed.
1778 (ipa_get_param_count): Made to work with descriptors vector.
1779 (ipa_get_param): Updated.
1780 (ipa_param_cannot_devirtualize_p): Removed.
1781 (ipa_param_types_vec_empty): Likewise.
1782 (ipa_set_param_used): New function.
1783 (ipa_get_param_used): Updated to use descriptors vector.
1784 (ipa_func_list): Removed.
1785 (ipa_init_func_list): Removed declaration.
1786 (ipa_push_func_to_list_1): Likewise.
1787 (ipa_pop_func_from_list): Likewise.
1788 (ipa_push_func_to_list): Removed.
1789 (ipa_lattice_from_jfunc): Remove declaration.
1790 (ipa_get_jf_pass_through_result): Declare.
1791 (ipa_get_jf_ancestor_result): Likewise.
1792 (ipa_value_from_jfunc): Likewise.
1793 (ipa_get_lattice): Update.
1794 (ipa_lat_is_single_const): New function.
1795 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
1796 (ipa_init_func_list): Likewise.
1797 (ipa_pop_func_from_list): Likewise.
1798 (ipa_get_param_decl_index): Fix coding style.
1799 (count_formal_params): Removed.
1800 (count_formal_params_1): Renamed to count_formal_params.
1801 (ipa_populate_param_decls): Update to use descriptors vector.
1802 (ipa_initialize_node_params): Likewise.
1803 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
1804 (ipa_analyze_params_uses): Likewise.
1805 (ipa_free_node_params_substructures): Likewise and free also lattices
1807 (duplicate_array): Removed.
1808 (ipa_edge_duplication_hook): Add the new edge to the list of edge
1810 (ipa_node_duplication_hook): Update to use new lattices.
1811 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
1812 (ipa_free_all_structures_after_iinln): Likewise.
1813 (ipa_write_node_info): Update to use new lattices.
1814 (ipa_read_node_info): Likewise.
1815 (ipa_get_jf_pass_through_result): New function.
1816 (ipa_get_jf_ancestor_result): Likewise.
1817 (ipa_value_from_jfunc): Likewise.
1818 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
1819 * ipa-cp.c: Reimplemented.
1820 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
1821 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
1822 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
1823 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
1824 * doc/invoke.texi (devirt-type-list-size): Removed description.
1825 (ipa-cp-value-list-size): Added description.
1827 2011-07-18 Richard Henderson <rth@redhat.com>
1829 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
1830 before calling create_basic_block.
1832 2011-07-18 Jakub Jelinek <jakub@redhat.com>
1835 * tree.c (build_common_builtin_nodes): Register
1836 __builtin_return_address, __cyg_profile_func_enter
1837 and __cyg_profile_func_exit.
1839 2011-07-18 Richard Henderson <rth@redhat.com>
1841 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
1842 (add_labels_and_missing_jumps): ... here.
1843 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
1845 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
1848 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
1849 of DImode hard registers in PLUS address chains.
1851 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1854 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
1855 (alpha*-*-freebsd*): Likewise.
1856 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1857 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1858 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
1859 crtprec80.o, crtfastmath.o to extra_parts for all targets.
1860 (ia64*-*-elf*): Remove extra_parts.
1861 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
1862 (sparc64-*-linux*): Likewise.
1863 (sparc64-*-freebsd*): Likewise.
1866 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
1867 (ia64*-*-linux*): Likewise.
1868 (mips64*-*-linux*): Likewise.
1869 (mips*-*-linux*): Likewise.
1871 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
1873 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
1875 2011-07-18 Richard Guenther <rguenther@suse.de>
1877 * gimplify.c (gimplify_expr): Use input_location, not saved_location
1878 when building new trees.
1880 2011-07-18 Richard Guenther <rguenther@suse.de>
1882 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
1883 expansion result to bitfield precision if required.
1885 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1887 * config.gcc (i[3456x]86-*-netware*): Remove.
1889 * gthr-nks.h: Remove.
1890 * configure.ac (enable_threads): Remove nks.
1891 * configure: Regenerate.
1893 * config/i386/i386.c (ix86_encode_section_info): Remove netware
1895 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
1896 <netware.h> reference.
1898 * config/i386/netware-libgcc.c,
1899 gcc/config/i386/netware-libgcc.def,
1900 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
1901 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
1902 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
1903 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
1905 * doc/extend.texi (Function Attributes,
1906 callee_pop_aggregate_return): Remove i?86-netware reference.
1907 * doc/install.texi (Configuration, --enable-threads): Remove nks.
1909 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1913 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1915 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
1918 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
1921 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
1923 2011-07-16 Matthias Klose <doko@ubuntu.com>
1925 * doc/install.texi: Document --enable-static-libjava.
1927 2011-07-15 Richard Henderson <rth@redhat.com>
1929 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1930 Replace all three arguments by returning a VEC of edges.
1931 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
1932 pointers and counts.
1933 (fix_edges_for_rarely_executed_code): Merge ...
1934 (rest_of_handle_partition_blocks): ... into...
1935 (partition_hot_cold_basic_blocks): ... here. Return todo items if
1936 any work was performed.
1937 (pass_partition_blocks): Clear todo_flags_finish.
1939 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
1940 Jakub Jelinek <jakub@redhat.com>
1941 Jonathan Wakely <jwakely.gcc@gmail.com>
1944 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
1945 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
1947 2011-07-15 Jason Merrill <jason@redhat.com>
1950 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
1951 rather than --tool_opts.
1953 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
1955 * doc/plugins.texi (Building GCC plugins): gengtype needs its
1956 corresponding gtype.state.
1958 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1961 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
1963 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
1966 * doc/md.texi (Standard Names): Document window_save.
1967 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
1968 expand_debug_expr and expand_debug_source_expr. If the target has
1969 a window_save instruction, adjust the ENTRY_VALUE_EXP.
1970 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
1971 SSA_NAME_VAR is a parameter.
1972 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
1973 * var-tracking.c (parm_reg_t): New type and associated vector type.
1974 (windowed_parm_regs): New variable.
1975 (adjust_insn): If the target has a window_save instruction and this
1976 is the instruction, make its effect on parameter registers explicit.
1977 (next_non_note_insn_var_location): New function.
1978 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
1979 (vt_add_function_parameter): If the target has a window_save insn,
1980 adjust the incoming RTL and record that in windowed_parm_regs.
1981 (vt_finalize): Free windowed_parm_regs.
1983 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
1985 * doc/invoke.texi (C6X Options): New section.
1986 * doc/md.texi (TI C6X family): New section.
1987 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
1989 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
1990 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
1991 Provide C6X definitions.
1992 * config/c6x/c6x.md: New file.
1993 * config/c6x/constraints.md: New file.
1994 * config/c6x/predicates.md: New file.
1995 * config/c6x/c6x-sched.md.in: New file.
1996 * config/c6x/c6x-sched.md: New file.
1997 * config/c6x/gensched.sh: New file.
1998 * config/c6x/c6x-mult.md.in: New file.
1999 * config/c6x/genmult.sh: New file.
2000 * config/c6x/c6x-mult.md: New file.
2001 * config/c6x/sync.md: New file.
2002 * config/c6x/c6x-protos.h: New file.
2003 * config/c6x/sfp-machine.h: New file.
2004 * config/c6x/c6x.c: New file.
2005 * config/c6x/c6x.h: New file.
2006 * config/c6x/crti.s: New file.
2007 * config/c6x/crtn.s: New file.
2008 * config/c6x/lib1funcs.asm: New file.
2009 * config/c6x/c6x-modes.def: New file.
2010 * config/c6x/genopt.sh: New file.
2011 * config/c6x/c6x.opt: New file.
2012 * config/c6x/c6x-tables.opt: New file.
2013 * config/c6x/c6x-opts.h: New file.
2014 * config/c6x/c6x-isas.def: New file.
2015 * config/c6x/elf.h: New file.
2016 * config/c6x/elf-common.h: New file.
2017 * config/c6x/uclinux-elf.h: New file.
2018 * config/c6x/t-c6x: New file.
2019 * config/c6x/t-c6x-elf: New file.
2020 * config/c6x/t-c6x-uclinux: New file.
2021 * config/c6x/t-c6x-softfp: New file.
2022 * config/c6x/gtd.c: New file.
2023 * config/c6x/gtf.c: New file.
2024 * config/c6x/ltd.c: New file.
2025 * config/c6x/ltf.c: New file.
2026 * config/c6x/ged.c: New file.
2027 * config/c6x/gef.c: New file.
2028 * config/c6x/led.c: New file.
2029 * config/c6x/lef.c: New file.
2030 * config/c6x/eqd.c: New file.
2031 * config/c6x/eqf.c: New file.
2032 * config/c6x/libgcc-c6xeabi.ver: New file.
2035 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2036 PR rtl-optimization/11320
2037 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2038 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2039 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2040 current_sched_info->compute_jump_reg_dependencies. Record which
2041 registers are used and which registers are set by the jump.
2042 Clear deps->reg_conditional_sets after a barrier.
2043 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2044 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2045 (init_deps): Initialize reg_conditional_sets.
2046 (free_deps): Clear reg_conditional_sets.
2047 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2048 Mark registers live on entry of the fallthrough block and conditionally
2049 set as set by the jump. Mark registers live on entry of non-fallthrough
2050 blocks as used by the jump.
2051 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2052 Mark new parameters as unused.
2054 2011-07-14 Andrew Pinski <pinskia@gmail.com>
2057 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
2058 Use fold_build2_loc instead of build2.
2059 Use the correct type for the new tree.
2061 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
2063 PR rtl-optimization/11320
2064 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
2065 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
2067 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
2070 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
2072 (*rotw<mode>): Use const_int_operand for operand2.
2073 Use match_scatch for operand3.
2074 (*rotb<mode>): Ditto
2075 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
2077 2011-07-14 Richard Guenther <rguenther@suse.de>
2079 PR tree-optimization/49651
2080 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2081 handle dereferences with subvariables.
2083 2011-07-14 Richard Guenther <rguenther@suse.de>
2085 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
2086 (fold_stmt_1): Do it here directly on gimple and as a first thing.
2088 2011-07-14 Richard Guenther <rguenther@suse.de>
2090 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
2091 not bool_var when folding bool_var != 1 or bool_var == 0.
2093 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
2095 * haifa-sched.c (schedule_insns): Remove outdated comment.
2096 (schedule_block): When computing a known value for TODO_SPEC,
2097 just set it rather than using logical operations.
2098 (try_ready): Likewise. Use a local variable rather than a
2099 pointer to TODO_SPEC. Reorder an if statement to move the
2100 easy case to the then block.
2101 * sched-deps.c (dep_spec_p): New static function.
2102 (update_dep): Use it to decide whether to call
2103 change_spec_dep_to_hard.
2104 (get_back_and_forw_lists): Use it.
2105 (sd_resolve_dep): Likewise.
2106 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
2107 (haifa_note_mem_dep): Likewise.
2108 (check_dep): Likewise.
2109 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
2110 (sched_free_deps): Free in two passes.
2112 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
2115 * expr.c (all_zeros_p): Undo bogus part of last change.
2117 2011-07-14 Matthias Klose <doko@ubuntu.com>
2119 * doc/extend.texi (optimize attribute): Fix typo.
2121 2011-07-14 Richard Guenther <rguenther@suse.de>
2123 * gimplify.c (gimplify_expr): Only do required conversions.
2125 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
2128 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
2129 i.e. use default_elf_select_section.
2130 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
2131 (READONLY_DATA_SECTION_ASM_OP): Remove.
2132 (TARGET_ASM_NAMED_SECTION): Move from here...
2133 * config/avr/avr.c: ...to here.
2134 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
2135 (avr_asm_named_section): Make static.
2137 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2140 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
2141 and crtfastmath.o for Linux/x86.
2143 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
2145 * haifa-sched.c: Include "hashtab.h"
2146 (sched_no_dce): New global variable.
2147 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
2148 SHADOW_P): New macros.
2149 (last_clock_var, cycle_issued_insns): Move declarations.
2150 (must_backtrack): New static variable.
2151 (struct delay_pair): New structure.
2152 (delay_htab, delay_htab_i2): New static variables.
2153 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
2154 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
2156 (dep_cost_1): If delay pairs exist, try to look up the insns and
2157 use the correct pair delay if we find them.
2158 (rank-for_schedule): Tweak priority for insns that must be scheduled
2159 soon to avoid backtracking.
2160 (queue_insn): Detect conditions which force backtracking.
2161 (ready_add): Likewise.
2162 (struct sched_block_state): Add member shadows_only_p.
2163 (struct haifa_save_data): New structure.
2164 (backtrack_queue): New static variable.
2165 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
2166 unschedule_insns_until, restore_last_backtrack_point,
2167 free_topmost_backtrack_point, free_backtrack_queue,
2168 estimate_insn_tick, estimate_shadow_tick): New functions.
2169 (prune_ready_list): New arg shadows_only_p. All callers changed.
2170 If true, remove everything that isn't SHADOW_P. Look up delay
2171 pairs and estimate ticks to avoid scheduling the first insn too early.
2172 (verify_shadows): New function.
2173 (schedule_block): Add machinery to enable backtracking.
2174 (sched_init): Take sched_no_dce into account when setting
2176 (free_delay_pairs): New function.
2177 (init_h_i_d): Initialize INSN_EXACT_TICK.
2178 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
2179 * sched-deps.c (sd_unresolve_dep): New function.
2180 * sched-int. (struct haifa_sched_info): New fields save_state
2182 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
2183 feeds_backtrack_insn and shadow_p.
2184 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
2185 (sched_no_dce): Declare variable.
2186 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
2187 sd_unresolve_dep): Declare functions.
2188 * modulo-sched.c (sms_sched_info): Clear the two new fields.
2189 * sched-rgn.c (rgn_const_sched_info): Likewise.
2190 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
2191 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
2192 (ebb_sched_info): Add them for the two new fields.
2193 (add_deps_for_risky_insns): Call add_delay_dependencies.
2195 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2197 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
2199 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
2200 (rs6000_call_indirect_aix): Ditto.
2201 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
2202 (call_indirect_aix<ptrsize>_internal): Ditto.
2203 (call_indirect_aix<ptrsize>_nor11): Ditto.
2204 (call_indirect_aix<ptrsize>_internal2): Ditto.
2205 (call_value_indirect_aix<ptrsize>): Ditto.
2206 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2207 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2208 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2209 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
2211 2011-07-13 Jason Merrill <jason@redhat.com>
2213 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
2215 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2217 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
2218 * config/spu/spu.md ("clrsb<mode>2"): New expander.
2220 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
2222 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
2223 * configure: Regenerate.
2225 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2227 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
2228 (asm_file_start): Remove.
2229 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
2230 free_bb_for_insn around code that modifies insns before
2231 restarting df analysis.
2233 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2236 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
2237 (LINK_SPEC): ... here.
2239 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
2241 * haifa-sched.c (struct sched_block_state): New.
2242 (schedule_block): Move some local variables into such a structure.
2244 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2246 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
2247 * config/i386/t-crtpc: Remove.
2248 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2249 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
2251 (x86_64-*-darwin*): Likewise.
2252 (i[34567]86-*-linux*): Likewise.
2253 (x86_64-*-linux*): Likewise.
2255 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
2256 Handle -mpc32, -mpc64, -mpc80.
2258 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2260 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
2261 * config/alpha/t-crtfm: Remove.
2262 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
2263 * config/i386/t-crtfm: Remove.
2264 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
2265 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
2266 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
2267 * config/sparc/t-crtfm: Remove.
2269 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
2270 (alpha*-*-freebsd*): Likewise.
2271 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
2272 (x86_64-*-darwin*): Likewise.
2273 (i[34567]86-*-linux*): Likewise.
2274 (x86_64-*-linux*): Likewise.
2275 (x86_64-*-mingw*): Likewise.
2276 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
2277 (ia64*-*-freebsd*): Likewise.
2278 (ia64*-*-linux*): Likewise.
2279 (mips64*-*-linux*): Likewise.
2280 (mips*-*-linux*): Likewise.
2281 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
2282 (sparc64-*-linux*): Likewise.
2283 (sparc64-*-freebsd*): Likewise.
2285 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
2288 * config/darwin-crt3.c: Move to ../libgcc/config.
2289 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
2290 ($(T)crt3$(objext)): Remove.
2291 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
2292 ($(T)crt2$(objext)): Remove.
2293 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
2294 (powerpc64-*-darwin*): Likewise.
2296 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
2298 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
2300 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
2301 (addsi_1_zext): This.
2303 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
2305 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
2306 * doc/tm.texi: Regenerate.
2307 * target.def (mergeable_rodata_prefix): New defhookpod.
2308 * varasm.c (mergeable_string_section, mergeable_constant_section):
2309 Use it. Allocate name with alloca.
2311 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
2313 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
2315 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
2317 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
2320 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
2322 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
2323 (count_type_elements): Delete.
2324 (complete_ctor_at_level_p): Declare.
2325 * expr.c (flexible_array_member_p): New function, split out from...
2326 (count_type_elements): ...here. Make static. Replace allow_flexarr
2327 parameter with for_ctor_p. When for_ctor_p is true, return the
2328 number of elements that should appear in the top-level constructor,
2329 otherwise return an estimate of the number of scalars.
2330 (categorize_ctor_elements): Replace p_must_clear with p_complete.
2331 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
2332 (complete_ctor_at_level_p): New function, borrowing union logic
2333 from old categorize_ctor_elements_1.
2334 (mostly_zeros_p): Return true if the constructor is not complete.
2335 (all_zeros_p): Update call to categorize_ctor_elements.
2336 * gimplify.c (gimplify_init_constructor): Update call to
2337 categorize_ctor_elements. Don't call count_type_elements.
2338 Unconditionally prevent clearing for variable-sized types,
2339 otherwise rely on categorize_ctor_elements to detect
2340 incomplete initializers.
2342 2011-07-13 Richard Guenther <rguenther@suse.de>
2344 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
2345 the final type is integral.
2347 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
2349 * sched-int.h (struct _dep): Add member cost.
2350 (DEP_COST, UNKNOWN_DEP_COST): New macros.
2351 * sched-deps.c (init_dep_1): Initialize DEP_COST.
2352 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
2353 (sched_change_pattern): Reset it for dependent insns.
2355 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2357 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
2358 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
2359 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
2360 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
2361 (CRT0_S, MCRT0_S): Remove.
2362 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
2365 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
2367 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2369 * cse.c (insert_with_costs): Put semi-colon after empty loop body
2371 * emit-rtl.c (push_to_sequence): Likewise.
2372 * haifa-sched.c (max_issue): Likewise.
2373 * matrix-reorg.c (add_allocation_site): Likewise.
2374 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2375 * reload.c (alternative_allows_const_pool_ref): Likewise.
2376 * sched-rgn.c (rgn_add_block): Likewise.
2377 (rgn_fix_recovery_cfg): Likewise.
2378 * tree.c (attribute_list_contained): Likewise.
2380 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
2382 * config/i386/i386.c: Tidy processor feature bitmasks.
2385 2011-07-12 Andrew Pinski <pinskia@gmail.com>
2388 * cprop.c (find_implicit_sets): Correct the condition.
2390 2011-07-12 Richard Henderson <rth@redhat.com>
2393 * dwarf2out.h (dwarf_frame_regnum): Remove.
2394 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
2395 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
2396 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
2397 (execute_dwarf2_frame): Initialize them.
2398 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
2399 users of the macros with the variables.
2400 (expand_builtin_dwarf_sp_column): Revert last change.
2401 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
2402 result of DWARF_FRAME_REGNUM into a local variable.
2404 2011-07-12 Richard Henderson <rth@redhat.com>
2407 * config/i386/i386.c (x86_output_mi_thunk): Use
2408 machopic_indirect_call_target instead of machopic_indirection_name
2411 2011-07-12 Laurent GUERBY <laurent@guerby.net>
2412 Eric Botcazou <ebotcazou@adacore.com>
2414 * prefix.h: Wrap up in extern "C" block.
2416 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
2418 AMD bdver2 Enablement
2419 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
2420 (case ${target}): Add bdver2.
2421 * config/i386/driver-i386.c (host_detect_local_cpu): Let
2422 -march=native recognize bdver2 processors.
2423 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2424 bdver2 def_and_undef
2425 * config/i386/i386.c (struct processor_costs bdver2_cost): New
2427 (m_BDVER2): New definition.
2428 (m_AMD_MULTIPLE): Includes m_BDVER2.
2429 (initial_ix86_tune_features): Add bdver2 tuning.
2430 (processor_target_table): Add bdver2 entry.
2431 (static const char *const cpu_names): Add bdver2 entry.
2432 (ix86_option_override_internal): Add bdver2 instruction sets.
2433 (ix86_issue_rate): Add bdver2.
2434 (ix86_adjust_cost): Add bdver2.
2435 (has_dispatch): Add bdver2.
2436 * config/i386/i386.h (TARGET_BDVER2): New definition.
2437 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
2438 (enum processor_type): Add PROCESSOR_BDVER2.
2439 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
2440 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
2443 2011-07-12 Richard Henderson <rth@redhat.com>
2446 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
2447 destination address in memory on some paths.
2449 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
2451 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
2452 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
2453 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
2454 * function.c (locate_and_pad_parm): Take it into account.
2455 * target.def (function_arg_round_boundary): New hook.
2456 * targhooks.c (default_function_arg_round_boundary): New function.
2457 * targhooks.h (default_function_arg_round_boundary): Declare.
2458 * doc/tm.texi: Regenerate.
2460 2011-07-12 Richard Guenther <rguenther@suse.de>
2462 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
2463 Do not perform no-op changes.
2465 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
2467 * config/arm/predicates.md (neon_struct_operand): Make a normal
2469 (neon_struct_or_register_operand): New predicate.
2470 * config/arm/neon.md (movmisalign<mode>): Replace predicates
2471 with neon_struct_or_register_operand.
2472 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
2473 neon_struct_operand instead of memory_operand.
2475 2011-07-12 Martin Jambor <mjambor@suse.cz>
2477 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
2478 * cgraph.c (cgraph_get_node_or_alias): Removed.
2479 (change_decl_assembler_name): Changed all calls to
2480 cgraph_get_node_or_alias to a call to cgraph_get_node.
2481 (cgraph_make_decl_local): Likewise.
2482 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
2483 * varasm.c (default_binds_local_p_1): Likewise.
2484 (decl_binds_to_current_def_p): Likewise.
2486 2011-07-12 Jakub Jelinek <jakub@redhat.com>
2488 PR tree-optimization/49712
2489 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
2491 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
2493 * genautomata.c (add_arc): Return void. All callers changed.
2494 (make_automaton): Remove dead code.
2496 2011-07-11 Richard Henderson <rth@redhat.com>
2498 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
2499 (DW_FRAME_POINTER_REGNUM): New.
2500 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
2501 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
2503 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
2504 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
2505 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
2507 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
2508 * dwarf2out.h (dwarf_frame_regnum): New.
2509 (struct cfa_loc): Document the domain of the reg member.
2511 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
2513 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
2514 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
2516 2011-07-11 Jakub Jelinek <jakub@redhat.com>
2519 * dwarf2out.c (int_shift_loc_descriptor): New function.
2520 (int_loc_descriptor): If shorter, emit i as
2521 (i >> shift), shift, DW_OP_shl for suitable shift value.
2522 Similarly, try to optimize large negative values using
2523 DW_OP_neg of a positive value if shorter.
2524 (size_of_int_shift_loc_descriptor): New function.
2525 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
2527 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
2528 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
2529 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
2531 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
2532 addend as added DW_OP_plus if it is shorter.
2534 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2536 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
2537 (DTORS_SECTION_ASM_OP): Define.
2539 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2541 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
2542 * config/t-dfprules: Move to ../libgcc/config.
2543 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2544 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
2545 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
2546 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
2548 (i[34567]86-*-cygwin*): Likewise.
2549 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
2550 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
2551 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
2552 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
2553 D64PBIT_FUNCS, D128PBIT_FUNCS.
2555 2011-07-11 Richard Guenther <rguenther@suse.de>
2557 * tree-vrp.c (simplify_conversion_using_ranges): Manually
2558 translate the source value-range through the conversion chain.
2560 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
2562 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
2564 2011-07-11 Arthur Loiret <aloiret@debian.org>
2566 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
2567 a bi-arch compiler defaulting to 31-bit. In this case:
2568 (tmake_file): Add s390/t-linux64.
2569 * doc/install.texi: Add s390-linux to the list of targets supporting
2570 --enable-targets=all.
2572 2011-07-11 Arthur Loiret <aloiret@debian.org>
2573 Matthias Klose <doko@debian.org>
2575 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
2576 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
2577 (tm_file): Add mips/linux64.h.
2578 (tmake_file): Add mips/t-linux64.
2579 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2580 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
2581 instead of hardcoded mabi=n32.
2582 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2583 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2586 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2588 * passes.c (init_optimization_passes): Add invariant motion pass
2589 after induction variable optimization.
2591 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
2594 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
2595 offsets 1..5 set cc0 in a usable way.
2597 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
2599 * tree.h (call_expr_arg): Remove.
2600 (call_expr_argp): Likewise.
2602 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
2604 * config/sparc/sparc.md (save_register_window_1): Rename to...
2605 (window_save): ...this.
2606 * config/sparc/sparc.c (emit_save_register_window): Rename to...
2607 (emit_window_save): ...this.
2608 (sparc_expand_prologue): Adjust to above renaming.
2610 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
2612 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
2615 2011-07-10 Richard Henderson <rth@redhat.com>
2617 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
2618 run final, instead of emitting text directly.
2620 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
2622 * config/i386/i386.c (ix86_option_override_internal): Turn on
2623 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
2624 small PIC models for TARGET_X32.
2626 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
2629 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
2633 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
2634 stray notes and debug insns by using prev_nonnote_nondebug_insn
2635 instead of PREV_INSN.
2637 2011-07-09 Richard Henderson <rth@redhat.com>
2639 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
2640 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
2641 * dwarf2out.c: ... here.
2642 (output_all_cfis): Remove.
2643 (dwarf2out_switch_text_section): Use output_cfis directly.
2644 (size_of_locs): Export.
2645 (output_loc_sequence, output_loc_sequence_raw): Export.
2646 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
2647 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
2648 output_cfa_loc_raw): Move to ...
2649 * dwarfcfi.c: ... here.
2650 * dwarf2out.h: Update decls.
2652 2011-07-09 Richard Henderson <rth@redhat.com>
2654 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
2655 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
2656 * dwarf2cfi.c: ... here.
2657 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
2658 (DWARF_ROUND, DWARF_CIE_ID): Remove.
2659 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
2660 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
2661 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
2663 2011-07-09 Richard Henderson <rth@redhat.com>
2665 * dwarf2cfi.c (cie_return_save): New.
2666 (queue_reg_save): Use compare_reg_or_pc.
2667 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
2668 (dwarf2out_frame_debug_expr): Likewise.
2669 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
2670 (initial_return_save): Likewise.
2671 (execute_dwarf2_frame): Save and restore initial return save from
2673 * config/mips/mips.c (mips_frame_set): Remove special case for
2674 DWARF_FRAME_RETURN_COLUMN.
2676 2011-07-09 Richard Henderson <rth@redhat.com>
2678 * dwarf2cfi.c (lookup_cfa): Remove.
2679 (execute_dwarf2_frame): Assert queues are empty on entry.
2680 Setup initial cfa directly, not via lookup_cfa.
2681 Don't clear args_size state here.
2683 2011-07-09 Richard Henderson <rth@redhat.com>
2685 * dwarf2cfi.c (add_cfi_vec): New.
2686 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
2687 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
2688 (execute_dwarf2_frame): Set add_cfi_vec.
2690 2011-07-09 Richard Henderson <rth@redhat.com>
2692 * defaults.h (ASM_COMMENT_START): Move here...
2693 * dwarf2asm.c: ... from here.
2694 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
2695 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
2696 * varasm.c: Likewise.
2698 2011-07-09 Richard Henderson <rth@redhat.com>
2701 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
2702 (create_cfi_notes): ... do it here instead.
2704 2011-07-09 Jakub Jelinek <jakub@redhat.com>
2707 * dwarf2out.c (size_of_int_loc_descriptor): New function.
2708 (address_of_int_loc_descriptor): Use it.
2709 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
2711 2011-07-09 Richard Henderson <rth@redhat.com>
2713 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
2714 (prologue, epilogue): New.
2715 (return, *rts): New.
2716 (blockage, setd, seti): New.
2717 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2718 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2719 (pdp11_saved_regno): New.
2720 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
2721 generate rtl instead of text.
2722 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
2723 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
2724 * config/pdp11/pdp11-protos.h: Update.
2726 2011-07-09 Richard Henderson <rth@redhat.com>
2728 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2729 try to insert an rtl prologue here.
2730 (rs6000_output_function_epilogue): Similarly.
2731 * config/rs6000/rs6000.md (prologue): Emit a barrier to
2732 satisfy !TARGET_SCHED_PROLOG.
2733 (epilogue, sibcall_epilogue): Likewise.
2735 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
2737 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
2739 (IN_OR_GLOBAL_P): Likewise.
2741 2011-07-08 Jason Merrill <jason@redhat.com>
2744 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
2745 compound assignment.
2747 * cgraph.c (cgraph_add_to_same_comdat_group): New.
2748 * cgraph.h: Declare it.
2749 * ipa.c (function_and_variable_visibility): Make sure thunks
2750 have the right visibility.
2752 2011-07-08 Richard Henderson <rth@redhat.com>
2755 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
2756 any tablejump vector.
2759 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
2760 end of the prologue.
2762 2011-07-08 Jakub Jelinek <jakub@redhat.com>
2765 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
2766 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
2767 * config/rs6000/vector.md (vector_select_<mode>,
2768 vector_select_<mode>_uns): Change second operand of NE to
2769 CONST0_RTX (<MODE>mode) instead of const0_rtx.
2770 * config/rs6000/altivec.md (*altivec_vsel<mode>,
2771 *altivec_vsel<mode>_uns): Expect second operand of NE to be
2772 zero_constant of the corresponding vector mode.
2773 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
2776 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
2778 * graphite-dependences.c (build_alias_set_powerset): Remove
2779 continue from loop, add one more assert.
2781 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
2784 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
2785 In particular, allow 8-bit values in r28 and r29.
2786 (avr_hard_regno_scratch_ok): Disallow any register that might be
2787 part of the frame pointer.
2788 (avr_hard_regno_rename_ok): Same.
2789 (avr_legitimate_address_p): Don't allow SUBREGs.
2791 2011-07-08 Julian Brown <julian@codesourcery.com>
2793 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
2795 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
2796 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
2797 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
2798 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
2799 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
2800 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
2801 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
2802 registers in big-endian mode.
2804 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
2806 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
2807 in terms of another.
2808 (write_attr_value): Write a cast if necessary.
2810 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
2811 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
2812 (REG_WORDS_BIG_ENDIAN): Document.
2813 * doc/tm.texi: Regenerate.
2814 * reload.c (operands_match_p): Take it into account.
2815 (reload_adjust_reg_for_mode): Likewise.
2816 * rtlanal.c (subreg_get_info): Likewise.
2818 2011-07-08 Richard Guenther <rguenther@suse.de>
2820 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
2823 2011-07-08 Kai Tietz <ktietz@redhat.com>
2825 * fold-const.c (fold_truth_andor): Factored out truth_andor
2826 label from fold_binary as function.
2827 (fold_binary_loc): Replace truth_andor lable
2828 by function fold_truth_andor.
2830 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
2833 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
2834 check if address is stored in register. If so - give up.
2835 (check_sibcall_argument_overlap_1): Do not perform check of
2836 overlapping when it is call to address.
2838 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
2840 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
2843 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
2845 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
2846 GET_MODE_BITSIZE where appropriate.
2847 (widen_leading, expand_parity, expand_ctz, expand_ffs,
2848 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
2849 expand_float, expand_fix): Likewise.
2850 * expr.c (convert_move, convert_modes, expand_expr_real_2,
2851 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2852 * stor-layout.c (get_mode_bounds): Likewise.
2853 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
2855 * convert.c (convert_to_integer): Likewise.
2856 * expmed.c (expand_shift_1): Likewise.
2858 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
2861 * optabs.c (expand_binop): Tighten conditions for doubleword
2863 (widen_bswap): Assert that mode bitsize and precision are the same.
2864 * stor-layout.c (get_best_mode): Skip modes that have lower
2865 precision than bitsize.
2866 * recog.c (simplify_while_replacing): Assert that bitsize and
2867 precision are the same.
2869 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2871 * Makefile.in (LIBGCOV): Remove.
2872 (libgcc.mvars): Remove LIBGCOV.
2873 * libgov.c: Move to ../libgcc.
2875 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2877 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
2879 2011-07-08 Martin Jambor <mjambor@suse.cz>
2881 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
2882 is too big for total scalarization.
2884 2011-07-07 Richard Henderson <rth@redhat.com>
2886 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
2887 (DBX_DEBUGGING_INFO): Undef.
2889 2011-07-07 Richard Henderson <rth@redhat.com>
2891 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
2892 Handle some opcodes specially for debugging.
2893 * print-rtl.c: Include dwarf2out.h
2894 (print_rtx): Handle NOTE_INSN_CFI.
2895 * Makefile.in (print-rtl.o): Update.
2897 2011-07-07 Richard Henderson <rth@redhat.com>
2899 * tree-pass.h (pass_dwarf2_frame): Declare.
2900 * passes.c (init_optimization_passes): Add it.
2901 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
2902 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
2903 make static, do not call add_cfis_to_fde.
2904 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
2905 dwarf2out_frame_init): Merge into...
2906 (execute_dwarf2_frame): ... here. New function.
2907 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
2908 saved_do_cfi_asm to a tri-state variable.
2909 (gate_dwarf2_frame, pass_dwarf2_frame): New.
2910 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
2911 if it has yet to be done. Don't call dwarf2cfi_function_init.
2912 * dwarf2out.h, debug.h: Update decls.
2913 * final.c (final_start_function): Don't call
2914 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
2915 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
2916 * toplev.c (lang_dependent_init): Likewise.
2918 2011-07-07 Richard Henderson <rth@redhat.com>
2920 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
2921 FDE_TABLE_INCREMENT): Replace with...
2922 (fde_vec): ... this, a new vector.
2923 (current_fde): Remove. Replace all users with cfun->fde.
2924 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
2925 (size_of_aranges, dwarf2out_finish): Likewise.
2926 (dwarf2out_alloc_current_fde): Break out from ...
2927 (dwarf2out_begin_prologue): ... here.
2928 (dwarf2out_frame_init): Remove.
2929 * dwarf2cfi.c: Update all users of current_fde.
2930 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
2931 * dwarf2out.h: Update decls.
2932 (dw_fde_node): Add fde_index member.
2933 * function.h (struct function): Add fde member.
2935 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2936 Richard Henderson <rth@redhat.com>
2938 * dwarf2cfi.c (add_cfi): Remove.
2939 (dwarf2out_cfi_label): Remove force argument. Only generate the
2941 (add_fde_cfi): Simplify the different code paths.
2943 (old_cfa, old_cfa_remember): New.
2944 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
2945 (last_reg_save_label): Remove.
2946 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
2947 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
2948 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
2949 dwarf2out_frame_debug_cfa_expression,
2950 dwarf2out_frame_debug_cfa_restore,
2951 dwarf2out_frame_debug_cfa_window_save,
2952 dwarf2out_frame_debug_expr): Remove label parameter.
2953 (cfi_label_required_p, add_cfis_to_fde): New.
2954 (dwarf2out_frame_debug_after_prologue): New.
2955 (dwarf2cfi_frame_init): Initialize old_cfa.
2956 (dwarf2out_frame_debug_restore_state): Likewise.
2957 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
2958 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
2959 * final.c (final_start_function): Call
2960 dwarf2out_frame_debug_after_prologue.
2962 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2963 Richard Henderson <rth@redhat.com>
2965 * dwarf2cfi.c (cfi_insn): New.
2966 (dwarf2out_cfi_label): Don't emit cfi label here.
2967 (add_fde_cfi): Create a NOTE_INSN_CFI.
2968 (dwarf2out_frame_debug): Setup cfi_insn.
2969 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
2970 (dwarf2out_cfi_begin_epilogue): Make static.
2971 (dwarf2out_frame_debug_restore_state): Make static.
2972 * dwarf2out.c (output_cfi_directive): Make static.
2973 (dwarf2out_emit_cfi): New.
2974 * dwarf2out.h: Update.
2975 * final.c (final): Remove CFI notes.
2976 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
2977 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
2978 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
2979 * insn-notes.def (NOTE_INSN_CFI): New.
2980 (NOTE_INSN_CFI_LABEL): New.
2981 * rtl.h (union rtunion_def): Add rt_cfi member.
2982 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
2984 2011-07-07 Richard Henderson <rth@redhat.com>
2986 * dwarf2cfi.c: New file.
2987 * Makefile.in (OBJS): Add it.
2988 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
2989 * gengtype.c (open_base_files): Include dwarf2out.h.
2990 * coretypes.h (enum var_init_status): Move from ...
2992 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
2993 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
2994 expand_builtin_dwarf_sp_column, init_return_column_size,
2995 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
2996 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
2997 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
2998 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
2999 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
3000 compute_barrier_args_size, dwarf2out_args_size,
3001 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
3002 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
3003 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
3004 queue_reg_save, dwarf2out_flush_queued_reg_saves,
3005 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
3006 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
3007 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
3008 dwarf2out_frame_debug_cfa_expression,
3009 dwarf2out_frame_debug_cfa_restore,
3010 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
3011 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
3012 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
3013 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
3014 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
3015 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
3016 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
3017 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
3018 dw_loc_descr_node): Move to dwarf2out.h.
3019 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
3020 mem_loc_descriptor): Export.
3021 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
3022 (dwarf2out_frame_init): Extract CIE generation code to
3023 dwarf2cfi_frame_init.
3025 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
3028 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
3029 MASK_V8PLUS, remove commented out flag and reorder.
3031 2011-07-07 Jakub Jelinek <jakub@redhat.com>
3034 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
3035 one non-complex and one complex argument, call c_save_expr on both
3038 2011-07-07 Martin Jambor <mjambor@suse.cz>
3041 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
3042 (verify_cgraph_node): Some functinality moved to
3043 verify_edge_corresponds_to_fndecl, call it.
3045 2011-07-07 Joseph Myers <joseph@codesourcery.com>
3047 * config.gcc (*local*): Remove.
3048 * doc/install-old.texi: Don't mention local configurations.
3050 2011-07-07 Jakub Jelinek <jakub@redhat.com>
3053 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
3054 referencing debug insns that have been reset.
3055 (dead_debug_insert_before): Don't assert reg is non-NULL,
3056 instead return immediately if it is NULL.
3058 2011-07-07 Joseph Myers <joseph@codesourcery.com>
3060 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
3062 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
3064 * hw-doloop.c: New file.
3065 * hw-doloop.h: New file.
3066 * Makefile.in (OBJS): Add hw-doloop.o.
3067 (hw-doloop.o): New rule.
3068 ($(obj_out_file)): Add hw-doloop.h dependency.
3069 * config/bfin/bfin.c: Include "hw-doloop.h".
3070 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
3071 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
3072 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
3073 type changed to hwloop_info. Return bool, true if the loop was
3074 successfully optimized. Remove code that was moved to
3075 hw-doloop.c, and adjust other parts.
3076 (hwloop_fail): New static function, containing parts that used
3077 to be in bfin_optimize_loop.
3078 (bfin_discover_loop, bfin_discover_loops, free_loops,
3079 bfin_reorder_loops): Remove.
3080 (hwloop_pattern_reg): New static function.
3081 (bfin_doloop_hooks): New variable.
3082 (bfin_reorg_loops): Remove most code, call reorg_loops.
3083 * config/bfin/bfin.md (doloop_end splitter): Also enable if
3084 loop counter is a memory_operand.
3086 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
3088 * config.gcc: Support --with-multilib-list for x86 Linux targets.
3090 * configure.ac: Mention x86-64 for --with-multilib-list.
3091 * configure: Regenerated.
3093 * config/i386/gnu-user64.h (SPEC_64): Support x32.
3094 (SPEC_32): Likewise.
3095 (ASM_SPEC): Likewise.
3096 (LINK_SPEC): Likewise.
3097 (TARGET_THREAD_SSP_OFFSET): Likewise.
3098 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
3101 * config/i386/i386.h (TARGET_X32): New.
3103 (LONG_TYPE_SIZE): Likewise.
3104 (POINTER_SIZE): Likewise.
3105 (POINTERS_EXTEND_UNSIGNED): Likewise.
3106 (OPT_ARCH64): Support x32.
3107 (OPT_ARCH32): Likewise.
3109 * config/i386/i386.opt (mx32): New.
3111 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
3112 (GLIBC_DYNAMIC_LINKERX32): Likewise.
3113 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
3114 (GLIBC_DYNAMIC_LINKERX32): Likewise.
3116 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
3117 (BIONIC_DYNAMIC_LINKERX32): Likewise.
3118 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
3120 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
3122 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
3124 * doc/invoke.texi: Document -mx32.
3126 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
3128 * doc/invoke.texi (mwords-little-endian): Deprecate.
3129 * config/arm/arm.opt (mwords-little-endian): Likewise.
3130 * config/arm/arm.c (arm_option_override): Warn about the deprecation
3131 of -mwords-little-endian.
3133 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
3135 * reload1.c (choose_reload_regs): Use mode sizes to check whether
3136 an old reload register completely defines the required value.
3138 2011-07-07 Richard Guenther <rguenther@suse.de>
3140 * fold-const.c (fold_unary_loc): Do not strip sign-changes
3143 2011-07-07 Richard Guenther <rguenther@suse.de>
3145 * tree-vrp.c (simplify_conversion_using_ranges): New function.
3146 (simplify_stmt_using_ranges): Call it.
3148 2011-07-07 Kai Tietz <ktietz@redhat.com>
3150 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
3151 (lookup_logical_inverted_value): Likewise.
3152 (simplify_bitwise_binary_1): Likewise.
3153 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
3155 2011-07-07 Joseph Myers <joseph@codesourcery.com>
3157 * gcc.c (%[Spec]): Don't document.
3158 (struct spec_list): Update comment.
3159 (do_spec_1): Don't handle %[Spec].
3160 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
3162 2011-07-07 Joseph Myers <joseph@codesourcery.com>
3164 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
3165 default based on TARGET_ASM_NAMED_SECTION.
3166 * common/common-target.def (have_named_sections): Default to true.
3167 * common/config/default-common.c: Don't include tm.h.
3168 * common/config/picochip/picochip-common.c
3169 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
3170 * common/config/m32c/m32c-common.c: Remove.
3171 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
3172 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3173 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3174 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3175 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3176 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3177 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
3179 2011-07-07 Jakub Jelinek <jakub@redhat.com>
3182 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
3183 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
3185 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3188 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
3190 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3193 * configure.ac (gcc_cv_as_hidden): Also accept
3194 x86_64-*-solaris2.1[0-9]*.
3195 (gcc_cv_as_cfi_directive): Likewise.
3196 (gcc_cv_as_comdat_group_group): Likewise.
3197 (set_have_as_tls): Likewise.
3198 * configure: Regenerate.
3199 * config.gcc (i[34567]86-*-solaris2*): Also handle
3200 x86_64-*-solaris2.1[0-9]*.
3201 * config.host (i[34567]86-*-solaris2*): Likewise.
3202 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
3203 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
3204 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
3205 (TARGET_LD_EMULATION): Use it.
3206 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
3207 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
3208 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
3209 (ASM_CPU64_DEFAULT_SPEC): Define.
3210 (ASM_CPU_SPEC): Use %(asm_cpu_default).
3211 (ASM_SPEC): Redefine.
3212 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
3213 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
3214 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
3215 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
3217 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
3219 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3221 * config/sol2.h (ASM_SPEC): Split into ...
3222 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
3223 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
3224 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
3225 (ASM_SPEC): Use ASM_SPEC_BASE.
3226 * config/sparc/sol2.h (ASM_SPEC): Redefine.
3228 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
3230 * config/avr/avr.md (*reload_insi): Change predicate #1 to
3231 const_int_operand. Ditto for peep2 producing this insn.
3232 Add argument to output_reload_insisf call.
3233 (*movsi,*movsf): Add argument to output_movsisf call.
3234 (*reload_insf): New insn and new peep2 to produce it.
3235 * config/avr/avr-protos.h (output_movsisf): Change prototype.
3236 (output_reload_insisf): Change prototype.
3237 * config/avr/avr.c (avr_asm_len): New function.
3238 (output_reload_insisf): Rewrite.
3239 (output_movsisf): Change prototype. output_reload_insisf for
3240 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
3241 (adjust_insn_length): Add argument to output_movsisf and
3242 output_reload_insisf call.
3244 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
3246 * emit-rtl.c (paradoxical_subreg_p): New function.
3247 * rtl.h (paradoxical_subreg_p): Declare.
3248 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
3249 apply_distributive_law, simplify_comparison, simplify_set): Use it.
3250 * cse.c (record_jump_cond, cse_insn): Likewise.
3251 * expr.c (force_operand): Likewise.
3252 * rtlanal.c (num_sign_bit_copies1): Likewise.
3253 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
3254 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
3255 (push_reload): Use precision to check for paradoxical subregs.
3256 * expmed.c (extract_bit_field_1): Likewise.
3258 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
3259 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
3260 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
3261 simplify_set, simplify_logical, expand_compound_operation,
3262 make_extraction, force_to_mode, if_then_else_cond, extended_count,
3263 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
3264 record_value_for_reg): Likewise.
3265 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
3266 * simplify-rtx. c (simplify_unary_operation_1,
3267 simplify_binary_operation_1, simplify_const_relational_operation):
3270 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
3271 instead of GET_MODE_BITSIZE where appropriate.
3272 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
3273 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
3274 init_num_sign_bit_copies_in_rep): Likewise.
3275 * cse.c (fold_rtx, cse_insn): Likewise.
3276 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
3277 * simplify-rtx.c (simplify_unary_operation_1,
3278 simplify_const_unary_operation, simplify_binary_operation_1,
3279 simplify_const_binary_operation, simplify_ternary_operation,
3280 simplify_const_relational_operation, simplify_subreg): Likewise.
3281 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
3282 simplify_if_then_else, simplify_set, expand_compound_operation,
3283 expand_field_assignment, make_extraction, if_then_else_cond,
3284 make_compound_operation, force_to_mode, make_field_assignment,
3285 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
3286 extended_count, try_widen_shift_mode, simplify_shift_const_1,
3287 simplify_comparison, record_promoted_value, simplify_compare_const,
3288 record_dead_and_set_regs_1): Likewise.
3291 * simplify-rtx.c (simplify_const_binary_operation): Use the
3292 shift_truncation_mask hook instead of performing modulo by width.
3293 Compare against mode precision, not bitsize.
3294 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3295 Use shift_truncation_mask instead of constructing the value manually.
3297 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3299 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
3301 (rs6000_save_toc_in_prologue_p): Ditto.
3303 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
3304 up the static chain (r11) during indirect function calls.
3305 (-msave-toc-indirect): New undocumented debug switch.
3307 * config/rs6000/rs6000.c (struct machine_function): Add
3308 save_toc_in_prologue field to note whether the prologue needs to
3309 save the TOC value in the reserved stack location.
3310 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
3311 to save the TOC in the prologue, do so.
3312 (rs6000_trampoline_init): Don't allow creating AIX style
3313 trampolines if -mno-r11 is in effect.
3314 (rs6000_call_indirect_aix): New function to create AIX style
3315 indirect calls, adding support for -mno-r11 to suppress loading
3316 the static chain, and saving the TOC in the prologue instead of
3318 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
3319 TOC in the prologue.
3321 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
3323 (TOC_REGNUM): Ditto.
3324 (STATIC_CHAIN_REGNUM): Ditto.
3325 (ARG_POINTER_REGNUM): Ditto.
3326 (SFP_REGNO): Delete, unused.
3327 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
3328 function descriptor offsets.
3329 (TOC_SAVE_OFFSET_64BIT): Ditto.
3330 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
3331 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
3332 (AIX_FUNC_DESC_SC_32BIT): Ditto.
3333 (AIX_FUNC_DESC_SC_64BIT): Ditto.
3334 (ptrload): New mode attribute for the appropriate load of a pointer.
3335 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
3336 (call_indirect_aix64): Ditto.
3337 (call_value_indirect_aix32): Ditto.
3338 (call_value_indirect_aix64): Ditto.
3339 (call_indirect_nonlocal_aix32_internal): Ditto.
3340 (call_indirect_nonlocal_aix32): Ditto.
3341 (call_indirect_nonlocal_aix64_internal): Ditto.
3342 (call_indirect_nonlocal_aix64): Ditto.
3343 (call): Rewrite AIX indirect function calls. Add support for
3344 eliminating the static chain, and for moving the save of the TOC
3345 to the function prologue.
3346 (call_value): Ditto.
3347 (call_indirect_aix<ptrsize>): Ditto.
3348 (call_indirect_aix<ptrsize>_internal): Ditto.
3349 (call_indirect_aix<ptrsize>_internal2): Ditto.
3350 (call_indirect_aix<ptrsize>_nor11): Ditto.
3351 (call_value_indirect_aix<ptrsize>): Ditto.
3352 (call_value_indirect_aix<ptrsize>_internal): Ditto.
3353 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3354 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3355 (call_nonlocal_aix32): Relocate in the rs6000.md file.
3356 (call_nonlocal_aix64): Ditto.
3358 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
3359 -mno-r11 documentation.
3361 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
3364 * doc/extend.texi (Compound Literals): Fix typo.
3366 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
3368 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
3370 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
3372 * configure.ac (plugin-version.h): Generate
3373 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
3374 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
3377 * configure: Regenerate.
3379 * doc/plugins.texi (Building GCC plugins): Mention
3380 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
3382 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
3384 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
3385 * combine.c (make_extraction, gen_lowpart_or_truncate,
3386 apply_distributive_law, simplify_comparison,
3387 reg_truncated_to_mode, record_truncated_value): Use it.
3388 * cse.c (notreg_cost): Likewise.
3389 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
3390 * expr.c (convert_move, convert_modes): Likewise.
3391 * optabs.c (expand_binop, expand_unop): Likewise.
3392 * postreload.c (move2add_last_label): Likewise.
3393 * regmove.c (optimize_reg_copy_3): Likewise.
3394 * rtlhooks.c (gen_lowpart_general): Likewise.
3395 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3397 2011-07-06 Joseph Myers <joseph@codesourcery.com>
3399 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
3401 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
3403 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
3404 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
3405 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
3406 (simplify_const_unary_operation, simplify_binary_operation_1,
3407 simplify_const_binary_operation, simplify_const_relational_operation):
3408 Use them. Use GET_MODE_MASK for masking and sign-extensions.
3409 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
3410 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
3411 simplify_shift_const_1, simplify_comparison): Likewise.
3412 * expr.c (convert_modes): Likewise.
3413 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
3414 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
3415 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
3417 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
3419 2011-07-06 Richard Guenther <rguenther@suse.de>
3421 PR tree-optimization/49645
3422 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
3424 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
3425 in type qualification here ...
3426 (copy_reference_ops_from_ref): ... not here.
3427 (vn_reference_lookup_3): ... or here.
3428 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
3429 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
3431 2011-07-06 Ian Lance Taylor <iant@google.com>
3433 * doc/install.texi (Configuration): It's
3434 --enable-gnu-indirect-function, not --enable-indirect-function.
3436 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
3438 * simplify-rtx.c (simplify_const_binary_operation): Use the
3439 shift_truncation_mask hook instead of performing modulo by width.
3440 Compare against mode precision, not bitsize.
3441 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
3442 Use shift_truncation_mask instead of constructing the value manually.
3444 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
3447 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
3448 address computation and convert to address_mode if needed.
3450 2011-07-06 Richard Guenther <rguenther@suse.de>
3452 * tree.c (build_common_tree_nodes_2): Merge with
3453 build_common_tree_nodes.
3454 * tree.h (build_common_tree_nodes): Adjust prototype.
3455 (build_common_tree_nodes_2): Remove.
3456 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
3457 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
3459 2011-07-05 Jakub Jelinek <jakub@redhat.com>
3461 PR tree-optimization/49618
3462 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
3463 t recurse on the decl.
3464 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
3465 return true if expr isn't known to be defined in current
3466 TU or some other LTO partition.
3468 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
3470 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
3471 override CASE_VALUES_THRESHOLD.
3473 * stmt.c (toplevel): Include params.h.
3474 (case_values_threshold): Use the --param case-values-threshold
3475 value if non-zero, otherwise use machine dependent value.
3476 (expand_case): Use case_values_threshold.
3478 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
3480 * doc/invoke.texi (--param case-values-threshold): Document.
3482 2011-07-05 Richard Henderson <rth@redhat.com>
3484 * dwarf2out.c (dwarf2out_cfi_label): Make static.
3485 (dwarf2out_flush_queued_reg_saves): Make static.
3486 (dwarf2out_reg_save): Remove.
3487 (dwarf2out_return_save): Remove.
3488 (dwarf2out_return_reg): Remove.
3489 (dwarf2out_reg_save_reg): Remove.
3490 (dwarf2out_def_cfa): Merge into ...
3491 (dwarf2out_frame_init): ... here.
3492 * dwarf2out.h, tree.h: Remove declarations as necessary.
3494 2011-07-05 Richard Henderson <rth@redhat.com>
3496 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
3497 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3498 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
3501 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
3502 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
3503 (process_epilogue): Don't call dwarf2out_def_cfa.
3505 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
3506 indicate the return address save.
3507 (process_cfa_register): Likewise.
3509 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
3510 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
3512 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
3513 for ar.pfs save at alloc insn.
3515 2011-07-05 Richard Henderson <rth@redhat.com>
3517 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
3518 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3519 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
3521 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
3522 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
3523 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
3524 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
3526 2011-07-05 Richard Henderson <rth@redhat.com>
3528 * config/vax/vax.md (define_c_enum unspecv): New. Define the
3529 VUNSPEC_* constants here instead of via define_constants.
3530 (VUNSPEC_PEM): New constant.
3531 (procedure_entry_mask): New insn.
3532 (prologue): New expander.
3533 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
3534 (vax_expand_prologue): Rename from vax_output_function_prologue;
3535 emit rtl instead of text.
3536 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
3537 (print_operand): Add 'x' prefix.
3539 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
3542 * calls.c (precompute_register_parameters): Promote the function
3543 argument before checking non-legitimate constant.
3545 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
3547 PR tree-optimization/47654
3548 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
3549 (lst_do_strip_mine_loop): Return an int.
3550 (lst_do_strip_mine): Same.
3551 (scop_do_strip_mine): Same.
3552 (scop_do_block): Loop blocking should strip-mine at least two loops.
3553 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
3554 (scop_do_interchange): Same.
3555 * graphite-poly.h (scop_do_interchange): Update declaration.
3556 (scop_do_strip_mine): Same.
3558 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
3560 * graphite-clast-to-gimple.c (precision_for_value): Removed.
3561 (precision_for_interval): Removed.
3562 (gcc_type_for_interval): Use mpz_sizeinbase.
3564 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
3566 * graphite-ppl.h (value_max): Correct computation of max.
3568 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
3570 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
3572 2011-07-05 Richard Guenther <rguenther@suse.de>
3574 * c-decl.c (c_init_decl_processing): Defer building common
3575 tree nodes to c_common_nodes_and_builtins.
3577 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
3579 PR tree-optimization/49580
3580 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
3581 the loop's number of iterations.
3582 * tree-parloops.c (transform_to_exit_first_loop): Add the
3583 handling of the loop's number of iterations before the call
3584 to gimple_duplicate_sese_tail.
3585 Insert the stmt caclculating the new rhs of the loop's
3586 condition stmt to the preheader instead of iters_bb.
3588 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
3590 PR rtl-optimization/47449
3591 * fwprop.c (forward_propagate_subreg): Don't propagate hard
3592 register nor zero/sign extended hard register.
3594 2011-07-05 Richard Guenther <rguenther@suse.de>
3596 PR tree-optimization/49518
3597 PR tree-optimization/49628
3598 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
3599 irrelevant and invariant data-references.
3600 (vect_analyze_data_ref_access): For invariant loads clear the
3603 2011-07-04 Jakub Jelinek <jakub@redhat.com>
3605 PR rtl-optimization/49619
3606 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
3607 pass VOIDmode as op0_mode to recursive call, and return temp even
3608 when different from tor, just if it is not IOR of the original
3611 PR rtl-optimization/49472
3612 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
3613 negating MULT, negate the second operand instead of first.
3614 (simplify_binary_operation_1) <case MULT>: If one operand is
3615 a NEG and the other is MULT, don't attempt to optimize by negation
3616 of the MULT operand if it only moves the NEG operation around.
3619 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
3620 get_current_def return value if it can't be trusted to be
3621 the current value of the variable in the current bb.
3623 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
3626 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
3627 general register to memory for !TARGET_INTER_UNIT_MOVES.
3629 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
3632 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
3633 instead of TREE_READONLY.
3635 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
3637 * doc/extend.texi (AVR Built-in Functions): Update documentation
3638 of __builtin_avr_fmul*.
3639 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
3640 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
3641 * config/avr/avr.md (fmul): Rename to fmul_insn.
3642 (fmuls): Rename to fmuls_insn.
3643 (fmulsu): Rename to fmulsu_insn.
3644 (fmul,fmuls,fmulsu): New expander.
3645 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
3646 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
3647 * config/avr/libgcc.S (__fmul): New function.
3648 (__fmuls): New function.
3649 (__fmulsu,__fmulsu_exit): New function.
3651 2011-07-04 Richard Guenther <rguenther@suse.de>
3653 PR tree-optimization/49615
3654 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
3655 basic-block index check.
3657 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
3659 * longlong.h (count_leading_zeros, count_trailing_zeros,
3660 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
3663 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
3665 PR tree-optimization/49610
3666 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
3669 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
3670 Olivier Hainque <hainque@adacore.com>
3671 Nicolas Setton <setton@adacore.com>
3673 * tree.h (TYPE_ARTIFICIAL): New flag.
3674 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
3675 the DIE of the type if it is artificial.
3676 (gen_array_type_die): Likewise.
3677 (gen_enumeration_type_die): Likewise.
3678 (gen_struct_or_union_type_die): Likewise.
3679 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
3680 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
3682 2011-07-01 Jakub Jelinek <jakub@redhat.com>
3684 * tree-object-size.c (pass_through_call): Handle
3685 BUILT_IN_ASSUME_ALIGNED.
3687 2011-07-01 Martin Jambor <mjambor@suse.cz>
3689 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
3691 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
3694 * explow.c (update_nonlocal_goto_save_area): Use proper mode
3695 for stack save area.
3696 * function.c (expand_function_start): Likewise.
3698 2011-07-01 Richard Guenther <rguenther@suse.de>
3701 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
3702 may have unknown refs.
3704 2011-07-01 Kai Tietz <ktietz@redhat.com>
3706 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
3708 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3710 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
3711 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
3712 (Specific, mips-sgi-irix6): Likewise.
3714 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3717 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
3719 2011-07-01 Jakub Jelinek <jakub@redhat.com>
3721 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
3722 [idx]= and [idx1 ... idx2]= before initializers if needed for
3725 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
3727 * config.gcc (score-*-elf): Remove score7.o.
3728 * config/score/t-score-elf: Likewise.
3729 * config/score/score.c: Merge score7 to score.c and
3730 remove forwarding functions.
3731 * config/score/score7.c: Deleted.
3732 * config/score/score7.h: Deleted.
3734 2011-07-01 Richard Guenther <rguenther@suse.de>
3736 PR tree-optimization/49603
3737 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
3739 2011-06-30 Martin Jambor <mjambor@suse.cz>
3741 * tree-sra.c (struct access): Rename total_scalarization to
3742 grp_total_scalarization
3743 (completely_scalarize_var): New function.
3744 (sort_and_splice_var_accesses): Set total_scalarization in the
3745 representative access.
3746 (analyze_access_subtree): Propagate total scalarization accross the
3747 tree, no holes in totally scalarized trees, simplify coverage
3749 (analyze_all_variable_accesses): Call completely_scalarize_var instead
3750 of completely_scalarize_record.
3752 2011-06-30 Richard Henderson <rth@redhat.com>
3754 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
3755 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
3756 * config/i386/i386.c: Don't include dwarf2out.h.
3757 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
3758 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
3759 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
3760 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
3761 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
3763 2011-06-30 Richard Henderson <rth@redhat.com>
3765 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
3766 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3767 * final.c (final_scan_insn): Look for it, and invoke
3768 dwarf2out_frame_debug before the insn if found.
3770 2011-06-30 Richard Henderson <rth@redhat.com>
3772 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
3773 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
3775 2011-06-30 Richard Henderson <rth@redhat.com>
3777 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
3778 Define a vector of this type.
3779 (regs_saved_in_regs): Use a VEC.
3780 (num_regs_saved_in_regs): Remove.
3781 (compare_reg_or_pc): New.
3782 (record_reg_saved_in_reg): Split out from...
3783 (dwarf2out_flush_queued_reg_saves): ... here.
3784 (clobbers_queued_reg_save): Update for VEC.
3785 (reg_saved_in): Likewise.
3786 (dwarf2out_frame_debug_init): Likewise.
3787 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
3788 (dwarf2out_frame_debug_cfa_register): Likewise.
3790 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
3792 PR tree-optimization/49572
3793 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
3794 type of the RHS instead of that of the LHS for the expression type.
3796 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
3798 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
3801 2011-06-30 Richard Guenther <rguenther@suse.de>
3803 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
3804 * tree-ssa-structalias.c (create_variable_info_for): Do not
3805 add initial constraints for non-var-decls. Properly handle
3806 globals in other ltrans partitions.
3807 (intra_create_variable_infos): Manually create constraints for
3808 the fake no-alias parameter.
3809 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
3810 and assert there are no clones.
3812 2011-06-30 Richard Guenther <rguenther@suse.de>
3814 PR tree-optimization/46787
3815 * tree-data-ref.c (dr_address_invariant_p): Remove.
3816 (find_data_references_in_stmt): Invariant accesses are ok now.
3817 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
3818 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
3821 2011-06-30 Martin Jambor <mjambor@suse.cz>
3823 PR tree-optimization/49094
3824 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
3825 (build_accesses_from_assign): Use it.
3827 2011-06-30 Jakub Jelinek <jakub@redhat.com>
3829 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3830 handling of BUILT_IN_ASSUME_ALIGNED.
3833 * dwarf2out.c (output_abbrev_section): Don't return early
3834 if abbrev_die_table_in_use is 1.
3835 (dwarf2out_finish): Instead don't call output_abbrev_section
3836 nor emit abbrev_section_label in that case.
3838 2011-06-30 Nick Clifton <nickc@redhat.com>
3840 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
3843 2011-06-30 Jakub Jelinek <jakub@redhat.com>
3845 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
3846 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
3848 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
3850 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
3851 both pattern and original statements if necessary.
3852 (vect_transform_loop): Likewise.
3853 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
3854 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
3855 Mark the pattern statement only if the original statement doesn't
3857 (process_use): Call vect_mark_relevant with additional parameter.
3858 (vect_mark_stmts_to_be_vectorized): Likewise.
3859 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
3860 (vect_analyze_stmt): Handle both pattern and original statements
3862 (vect_transform_stmt): Don't store vectorized pattern statement
3863 in the original statement.
3864 (vect_is_simple_use_1): Use related pattern statement only if the
3865 original statement is irrelevant.
3866 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3868 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
3870 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
3872 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
3874 (TARGET_AVX128_OPTIMAL): New definition.
3875 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3876 X86_TUNE_AVX128_OPTIMAL entry.
3877 (ix86_option_override_internal): Enable the generation
3878 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
3879 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
3880 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
3882 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
3884 PR tree-optimization/49539
3885 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
3886 names by means of stmt_references_abnormal_ssa_name.
3887 (associate_plusminus): Call can_propagate_from before propagating
3888 from definition statements.
3889 (ssa_forward_propagate_and_combine): Remove superfluous newline.
3891 2011-06-29 Richard Guenther <rguenther@suse.de>
3893 * doc/invoke.texi: Document -scev dump modifier.
3894 * tree-pass.h (TDF_SCEV): New dump flag.
3895 * tree-dump.c (dump_option_value_in): Add scev.
3896 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
3897 * tree-scalar-evolution.c: Likewise.
3899 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
3901 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
3902 (cxa_type_match): Correct declaration.
3903 (__gnu_unwind_pr_common): Reconstruct additional indirection
3904 when __cxa_type_match returns succeeded_with_ptr_to_base.
3906 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3908 PR rtl-optimization/49114
3909 * reload.c (struct replacement): Remove SUBREG_LOC member.
3910 (push_reload): Do not set it.
3911 (push_replacement): Likewise.
3912 (subst_reload): Remove dead code.
3913 (copy_replacements): Remove assertion.
3914 (copy_replacements_1): Do not handle SUBREG_LOC.
3915 (move_replacements): Likewise.
3916 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
3917 Detect subregs via recursive descent instead of via SUBREG_LOC.
3919 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
3921 * config/avr/avr.c (avr_encode_section_info): Dispatch to
3922 default_encode_section_info.
3924 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
3926 PR tree-optimization/49545
3927 * builtins.c (get_object_alignment_1): Update function comment.
3928 Do not use DECL_ALIGN for functions, but test
3929 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
3930 * fold-const.c (get_pointer_modulus_and_residue): Don't check
3932 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3934 2011-06-29 Jakub Jelinek <jakub@redhat.com>
3937 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
3938 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
3940 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
3943 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
3944 about uninitialized data attributed 'progmem' from here...
3945 (avr_encode_section_info): ...to this new function.
3946 (TARGET_ENCODE_SECTION_INFO): New define.
3947 (avr_section_type_flags): For data in ".progmem.data", remove
3948 section flag SECTION_WRITE.
3950 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
3952 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
3954 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
3955 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
3956 (__umulhisi3): Ditto.
3957 * config/avr/avr.md (mulhisi3): New insn expender.
3958 (umulhisi3): New insn expender.
3959 (*mulhisi3_call): New insn.
3960 (*umulhisi3_call): New insn.
3962 2011-06-28 Joseph Myers <joseph@codesourcery.com>
3964 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
3966 2011-06-28 Richard Henderson <rth@redhat.com>
3968 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
3969 all code and arguments that handled pushes. Update all callers.
3971 2011-06-28 Richard Henderson <rth@redhat.com>
3973 * config/arm/arm.c (arm_output_function_prologue): Don't call
3974 thumb1_output_function_prologue.
3975 (arm_expand_prologue): Avoid dead store.
3976 (number_of_first_bit_set): Use ctz_hwi.
3977 (thumb1_emit_multi_reg_push): New.
3978 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
3979 to emit the entire prologue as rtl.
3980 (thumb1_output_interwork): Split out from
3981 thumb1_output_function_prologue.
3982 (thumb1_output_function_prologue): Remove.
3983 (arm_attr_length_push_multi): Handle thumb1.
3984 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
3985 (prologue_thumb1_interwork): New.
3986 (*push_multi): Allow thumb1; use push_mult_memory_operand.
3987 * config/arm/predicates.md (push_mult_memory_operand): New.
3989 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
3991 * config/sparc/sync.md (*stbar): Delete.
3992 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
3994 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
3996 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
3998 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4000 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
4001 (TARGET_64BIT_DEFAULT): Define.
4002 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
4004 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
4006 2011-06-28 Joseph Myers <joseph@codesourcery.com>
4008 * common.opt (in_lto_p): New Variable entry.
4009 * flags.h (in_lto_p): Move to common.opt.
4010 * gcc.c: Include params.h.
4011 (set_option_handlers): Also use common_handle_option and
4012 target_handle_option.
4013 (main): Call global_init_params, finish_params and init_options_struct.
4014 * opts.c (debug_type_names): Move from toplev.c.
4015 (print_filtered_help): Access quiet_flag through opts pointer.
4016 (common_handle_option): Return early in the driver for some options.
4017 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
4019 * toplev.c (in_lto_p): Move to common.opt.
4020 (debug_type_names): Move to opts.c.
4021 * Makefile.in (OBJS): Remove opts.o.
4022 (OBJS-libcommon-target): Add opts.o.
4023 (gcc.o): Update dependencies.
4025 2011-06-28 Kai Tietz <ktietz@redhat.com>
4027 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
4029 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4031 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
4032 with '=' constraint modifier.
4033 (*divdf3_vfp): Likewise.
4034 ("*mulsf3_vfp"): Likewise.
4035 ("*muldf3_vfp"): Likewise.
4036 ("*mulsf3negsf_vfp"): Likewise.
4037 ("*muldf3negdf_vfp"): Likewise.
4039 2011-06-28 Nick Clifton <nickc@redhat.com>
4041 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
4042 relaxation when performing an incremental link.
4044 2011-06-28 Kai Tietz <ktietz@redhat.com>
4046 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
4047 within BB from last to first.
4049 2011-06-28 Joseph Myers <joseph@codesourcery.com>
4051 * genattr-common.c: New. Based on genattr.c.
4052 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
4053 (MOSTLYCLEANFILES): Add insn-attr-common.h.
4054 (opts.o): Update dependencies.
4055 (.PRECIOUS): Add insn-attr-common.h.
4056 (simple_rtl_generated_h): Add insn-attr-common.h.
4057 (build/genattr-common.o): New.
4058 (genprogrtl): Add attr-common.
4059 * genattr.c (main): Include insn-attr-common.h. Don't generate
4060 definitions of DELAY_SLOTS or INSN_SCHEDULING.
4061 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
4063 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
4065 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
4066 avr-*-* and avr-*-rtems* targets.
4068 * config/avr/elf.h: New file.
4069 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
4070 (TARGET_ASM_SELECT_SECTION): Define.
4071 (INIT_SECTION_ASM_OP): Undefine.
4072 (FINI_SECTION_ASM_OP): Undefine.
4073 (READONLY_DATA_SECTION_ASM_OP): Undefine.
4074 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
4075 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
4077 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
4078 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
4079 (MAX_OFILE_ALIGNMENT): Move to elf.h.
4080 (STRING_LIMIT): Move to elf.h.
4081 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
4082 (ASM_DECLARE_OBJECT_NAME): Remove.
4084 (ASM_OUTPUT_SKIP): Remove.
4085 (DWARF2_DEBUGGING_INFO): Remove.
4086 (OBJECT_FORMAT_ELF): Remove.
4087 (USER_LABEL_PREFIX): Remove.
4088 (ASM_OUTPUT_EXTERNAL): Remove.
4089 (ASM_OUTPUT_ASCII): Remove.
4090 (TYPE_ASM_OP): Remove.
4091 (SIZE_ASM_OP): Remove.
4092 (WEAK_ASM_OP): Remove.
4093 (STRING_ASM_OP): Remove.
4094 (SET_ASM_OP): Remove.
4095 (ASM_WEAKEN_LABEL): Remove.
4096 (TYPE_OPERAND_FMT): Remove.
4097 (ASM_DECLARE_FUNCTION_SIZE): Remove.
4098 (ASM_FINISH_DECLARE_OBJECT): Remove.
4099 (NO_DOLLAR_IN_LABEL): Remove.
4100 (ASM_GENERATE_INTERNAL_LABEL): Remove.
4101 (ASM_OUTPUT_CASE_LABEL): Remove.
4102 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
4103 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
4104 (gas_output_ascii): Remove.
4105 (gas_output_limited_string): Remove.
4106 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
4107 * config/avr/avr-protos.h
4108 (gas_output_ascii): Remove prototye.
4109 (gas_output_limited_string): Remove prototype.
4111 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
4114 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
4117 2011-06-27 Jan Hubicka <jh@suse.cz>
4119 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
4120 node instead of references in node.
4122 2011-06-27 Richard Henderson <rth@redhat.com>
4124 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
4125 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
4128 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4130 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
4132 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
4133 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
4134 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
4135 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
4136 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
4137 (evaluate_stmt, execute_fold_all_builtins): Handle
4138 BUILT_IN_ASSUME_ALIGNED.
4139 * tree-ssa-dce.c (propagate_necessity): Likewise.
4140 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4141 call_may_clobber_ref_p_1): Likewise.
4142 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
4143 (expand_builtin_assume_aligned): New function.
4144 * doc/extend.texi (__builtin_assume_aligned): Document.
4147 * cselib.c (promote_debug_loc): If cselib_preserve_constants
4148 and l has two DEBUG_INSN owned locs instead of just one, adjust
4149 the second location's setting_insn too.
4151 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4154 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
4156 2011-06-27 Nick Clifton <nickc@redhat.com>
4158 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
4159 bit position of highest bit set into a count of the high zero bits.
4161 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4163 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
4165 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4168 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
4171 2011-06-27 Richard Guenther <rguenther@suse.de>
4173 PR tree-optimization/49394
4174 * passes.c (execute_one_pass): Restore current_pass after
4175 applying IPA transforms.
4177 2011-06-27 Kai Tietz <ktietz@redhat.com>
4179 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
4180 out of type precision after operation.
4181 (find_bswap): Take for limit value the integer auto-promotion
4184 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4186 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
4187 forward scan as well.
4189 2011-06-27 Tristan Gingold <gingold@adacore.com>
4192 * config/vms/vms-protos.h: New file.
4193 * config/vms/vms-crtlmap.map: New file.
4194 * config/vms/vms.c: New file.
4195 * config/vms/make-crtlmap.awk: New file.
4196 * config/vms/vms-crtl.h: File removed.
4197 * config/vms/vms-crtl-64.h: File removed.
4198 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
4199 * config/alpha/vms64.h: Do not include vms-crtl-64.h
4200 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
4201 clear some builtins on VMS. Calls vms_patch_builtins.
4202 (avms_asm_output_external): Remove.
4203 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
4204 (struct crtl_name_spec): Remove
4205 (DO_CTRL_NAMES): Remove.
4206 * config/ia64/vms.h (struct crtl_name_spec): Remove
4207 (DO_CTRL_NAMES): Remove.
4208 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
4209 clear some builtins on VMS. Calls vms_patch_builtins.
4210 (ia64_asm_output_external): Remove DO_CRTL_NAME.
4211 * config/ia64/vms64.h: Do not include vms-crtl-64.h
4212 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
4214 2011-06-27 Tristan Gingold <gingold@adacore.com>
4216 * config/alpha/alpha.c (alpha_end_function): Always generate .end
4219 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4221 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
4222 the function receives nonlocal gotos.
4224 2011-06-27 Richard Guenther <rguenther@suse.de>
4226 PR tree-optimization/49536
4227 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4228 For non-scalar inner types use a scalar type according to
4229 the scalar inner mode.
4231 2011-06-27 Richard Guenther <rguenther@suse.de>
4233 PR tree-optimization/49365
4234 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
4236 2011-06-27 Richard Guenther <rguenther@suse.de>
4238 PR tree-optimization/49169
4239 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
4240 the alignment of function decls.
4242 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
4245 * config/darwin.c (darwin_mergeable_string_section): Place string
4246 constants in '.cstring' rather than '.const' when CF/NSStrings are
4249 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
4251 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
4252 (emit_save_register_window): Likewise.
4253 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
4254 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
4255 Swap back %o7/%i7 in register naming.
4257 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
4260 * config/darwin.c (darwin_override_options): Improve warning when
4261 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
4262 is given with fpie/fPIE.
4263 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
4264 * config/darwin9.h (PIE_SPEC): New.
4266 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
4268 * timevar.c (timevar_print): Increase width for display of timevar
4271 2011-06-24 Jakub Jelinek <jakub@redhat.com>
4274 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
4275 instead of TYPE_CHAIN for chain_next for types.
4277 2011-06-24 Richard Henderson <rth@redhat.com>
4279 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
4280 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
4281 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
4282 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
4283 (sparc_flat_expand_prologue): Emit individual instructions
4284 instead of one of the above.
4286 2011-06-24 Easwaran Raman <eraman@google.com>
4288 PR rtl-optimization/49429
4290 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
4291 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
4292 used to copy y into x.
4293 * calls.c (initialize_argument_information): Mark
4294 an argument addressable if it is passed by invisible reference.
4295 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
4296 if it is passed by reference.
4298 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
4300 PR rtl-optimization/49504
4301 * rtlanal.c (nonzero_bits1): Properly handle addition or
4302 subtraction of a pointer in Pmode if pointers extend unsigned.
4303 (num_sign_bit_copies1): Likewise.
4305 2011-06-24 Martin Jambor <mjambor@suse.cz>
4307 PR tree-optimizations/49516
4308 * tree-sra.c (sra_modify_assign): Choose the safe path for
4309 aggregate copies if we also did scalar replacements.
4311 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4314 * config/arm/predicates.md (add_operator): New.
4315 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
4317 2011-06-24 Andi Kleen <ak@linux.intel.com>
4319 * tree-sra.c (type_internals_preclude_sra_p): Add msg
4320 parameter. Split up ifs and report reason in *msg.
4322 (find_var_candiate): Add msg variable.
4323 Split up ifs and report reason to reject.
4324 (find_param_candidates): Add msg variable.
4325 Pass msg to type_internals_preclude_sra_p.
4327 2011-06-23 Jeff Law <law@redhat.com>
4330 * reload.h (reload): Change to return a bool.
4331 * ira.c (ira): If requested by reload, run a fast DCE pass after
4332 reload has completed. Fix comment typo.
4333 * reload1.c (need_dce): New file scoped static.
4334 (reload): Set reload_completed here. Return whether or not a DCE
4335 pass after reload is needed.
4336 (delete_dead_insn): Set need_dce as needed.
4339 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
4340 to detect threading through joiner block. If there was already
4341 an edge to the new target, then do not change the PHI nodes.
4343 2011-06-23 Jakub Jelinek <jakub@redhat.com>
4345 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
4346 get_pointer_alignment to see if base isn't sufficiently aligned.
4348 2011-06-23 Jan Hubicka <jh@suse.cz>
4350 PR tree-optimize/49373
4351 * tree-pass.h (all_late_ipa_passes): Declare.
4352 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4353 (cgraph_optimize): Execute late passes; remove unreachable funcions
4354 after materialization.
4355 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
4357 * passes.c (all_late_ipa_passes): Declare.
4358 (dump_passes, register_pass): Handle late ipa passes.
4359 (init_optimization_passes): Move ipa_pta to late passes; schedule
4360 fixup_cfg at beggining of all_passes.
4361 (apply_ipa_transforms): New function.
4362 (execute_one_pass): When doing simple ipa pass, apply all transforms.
4364 2011-06-23 Joseph Myers <joseph@codesourcery.com>
4366 * params.c: Include common/common-target.h. Don't include tm.h.
4367 (lang_independent_params): Move from toplev.c.
4368 (global_init_params): New.
4369 * params.h (global_init_params): Declare.
4370 * target.def (default_params): Move to common-target.def.
4371 * toplev.c (lang_independent_options): Remove.
4372 (lang_independent_params): Move to params.c.
4373 (general_init): Use global_init_params.
4374 * common/common-target.def (option_default_params): Move from
4376 * common/config/ia64/ia64-common.c: Include params.h.
4377 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4379 * common/config/rs6000/rs6000-common.c: Include params.h.
4380 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4382 * common/config/sh/sh-common.c: Include params.h.
4383 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4385 * common/config/spu/spu-common.c: Include params.h.
4386 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
4388 * config/ia64/ia64.c (ia64_option_default_params,
4389 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
4390 * config/rs6000/rs6000.c (rs6000_option_default_params,
4391 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
4392 * config/sh/sh.c (sh_option_default_params,
4393 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
4394 * config/spu/spu.c (spu_option_default_params,
4395 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
4396 * Makefile.in (OBJS): Remove params.o.
4397 (OBJS-libcommon-target): Add params.o.
4398 (params.o, $(common_out_object_file)): Update dependencies.
4399 * doc/tm.texi: Regenerate.
4401 2011-06-23 Alan Modra <amodra@gmail.com>
4404 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
4405 invocation for 2011-06-09 changes.
4407 2011-06-22 Jakub Jelinek <jakub@redhat.com>
4410 * omp-low.c (expand_omp_for_static_nochunk): Only
4411 use n ceil/ nthreads size for the first n % nthreads threads in the
4412 team instead of all threads except for the last few ones which
4413 get less work or none at all.
4416 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
4419 2011-06-22 Richard Guenther <rguenther@suse.de>
4421 PR tree-optimization/49493
4422 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
4423 Refer to the alias target of variables.
4424 (associate_varinfo_to_alias_1): Remove.
4425 (ipa_pta_execute): Do not associate aliases with anything.
4426 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
4427 (cgraph_function_node): Likewise.
4428 (cgraph_function_or_thunk_node): Likewise.
4429 (varpool_variable_node): Likewise.
4431 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
4433 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
4434 * config.gcc (arm*-*-linux*): Default to gnu tls.
4435 (arm*-*-*): Add --with-tls option.
4436 (all_defaults): Add 'tls'.
4438 2011-06-22 Richard Henderson <rth@redhat.com>
4440 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
4441 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4442 (dwarf2out_frame_debug_cfa_window_save): Rename from
4443 dwarf2out_window_save; make static.
4444 * tree.h (dwarf2out_window_save): Don't declare.
4446 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
4447 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4448 (emit_save_register_window): Rename from gen_save_register_window;
4449 emit the insn and add REG_CFA_* notes.
4450 (sparc_expand_prologue): Update to match.
4451 * config/sparc/sparc.md (save_register_window_1): Simplify from
4452 save_register_window<P:mode>.
4454 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
4457 * config/i386/i386.md (*lea_general_2): Always allow SImode.
4458 (*lea_general_2_zext): Likewise.
4459 (imul to lea peepholes): Use const359_operand and check
4460 TARGET_PARTIAL_REG_STALL.
4462 * config/i386/predicates.md (const359_operand): New.
4464 2011-06-22 Michael Matz <matz@suse.de>
4466 * cgraphunit.c (assemble_thunk): Use correct return type.
4468 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
4469 Dmitry Melnik <dm@ispras.ru>
4471 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
4472 (neon_output_shift_immediate): Ditto.
4473 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
4475 (neon_output_shift_immediate): Ditto.
4476 * config/arm/neon.md (vashl<mode>3): Modified constraint.
4477 (vashr<mode>3_imm): New insn pattern.
4478 (vlshr<mode>3_imm): Ditto.
4479 (vashr<mode>3): Modified constraint.
4480 (vlshr<mode>3): Ditto.
4481 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
4483 (imm_for_neon_rshift_operand): Ditto.
4484 (imm_lshift_or_reg_neon): Ditto.
4485 (imm_rshift_or_reg_neon): Ditto.
4487 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
4489 2011-06-22 Jakub Jelinek <jakub@redhat.com>
4491 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
4492 builtin calls even if likelyvalue is not CONSTANT.
4493 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
4494 Return get_value_for_expr of first operand
4495 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
4496 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4497 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
4498 their non-checking counterparts.
4499 (call_may_clobber_ref_p_1): Likewise.
4500 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
4501 like their non-checking counterparts.
4502 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4503 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
4504 like their non-checking counterparts.
4505 (find_func_clobbers): Likewise.
4506 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
4507 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
4509 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
4510 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
4511 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
4512 of base type reference as argument.
4513 (resolve_addr_in_expr): Likewise. Fix keep computation.
4514 (convert_descriptor_to_signed): Renamed to...
4515 (convert_descriptor_to_mode): ... this. For wider types convert to
4516 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
4517 (typed_binop): New function.
4518 (scompare_loc_descriptor, ucompare_loc_descriptor,
4519 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
4520 default to unsigned type instead of signed.
4523 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
4524 (gimple_build_debug_source_bind_stat): New prototype.
4525 (gimple_build_debug_source_bind): Define.
4526 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
4527 gimple_debug_source_bind_get_value,
4528 gimple_debug_source_bind_get_value_ptr,
4529 gimple_debug_source_bind_set_var,
4530 gimple_debug_source_bind_set_value): New inlines.
4531 * gimple.c (gimple_build_debug_source_bind_stat): New function.
4532 * gimple-pretty-print.c (dump_gimple_debug): Handle
4533 GIMPLE_DEBUG_SOURCE_BIND.
4534 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
4535 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4536 * tree-parloops.c (eliminate_local_variables,
4537 separate_decls_in_region): Likewise.
4538 (separate_decls_in_region_debug): Renamed from
4539 separate_decls_in_region_debug_bind. Handle
4540 gimple_debug_source_bind_p.
4541 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
4543 (DECL_HAS_DEBUG_ARGS_P): Define.
4544 (struct tree_function_decl): Add has_debug_args_flag field.
4545 * tree.c (debug_args_for_decl): New variable.
4546 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
4547 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
4548 (rewrite_debug_stmt_uses): New function.
4549 (rewrite_stmt): Use it to rewrite debug stmt uses.
4550 * rtl.def (DEBUG_PARAMETER_REF): New.
4551 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
4552 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
4553 DEBUG_PARAMETER_REF.
4554 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
4555 * print-rtl.c (print_rtx): Likewise.
4556 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
4557 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
4558 debug stmts in the first bb.
4559 * tree-inline.c (remap_ssa_name): If remapping default def
4560 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
4561 a source bind debug stmt.
4562 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
4563 (maybe_move_debug_stmts_to_successors): Likewise.
4564 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
4565 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
4566 debug args vector from old_decl to new_decl.
4567 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
4568 or modified parameters, add debug bind stmts before call
4569 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
4570 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
4571 on DECL_DEBUG_EXPRs from debug args vector.
4572 (expand_debug_source_expr): New function.
4573 (expand_debug_locations): Use it for source bind insns.
4574 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
4575 * var-tracking.c (prepare_call_arguments): Add debug args
4576 to call_arguments if any.
4577 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
4578 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
4579 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
4580 (get_ref_die_offset, parameter_ref_descriptor): New functions.
4581 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
4582 (gen_subprogram_die): Handle parameters identified by
4583 DEBUG_PARAMETER_REF.
4585 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
4587 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
4588 * doc/install.texi (Configuration): Document --with-tls.
4589 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
4590 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
4591 (arm_tls_descseq_addr): New.
4592 (legitimize_tls_address): Add tlsdesc support.
4593 (arm_cannot_copy_insn_p): Check for tlscall.
4594 (arm_emit_tls_decoration): Likewise.
4595 * config/arm/arm.h (TARGET_GNU2_TLS): New.
4596 (OPTION_DEFAULT_SPECS): Add with-tls support.
4597 * config/arm/arm.md (R1_REGNUM): Define.
4599 * config/arm/arm.opt (tls_type): New enumeration type and values.
4600 (mtls-dialect): New switch.
4601 * config/arm/arm-opts.h (enum tls_type): New.
4603 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
4605 * attribs.c (register_attribute): Added assert to check that all
4606 attribute specs are registered with a name that is not empty and
4607 does not start with '_'.
4608 (decl_attributes): Avoid the lookup of the "naked" attribute spec
4609 if the function has no attributes.
4610 * tree.c (is_attribute_with_length_p): Removed.
4611 (is_attribute_p): Removed.
4612 (private_is_attribute_p): New.
4613 (private_lookup_attribute): New.
4614 (lookup_attribute): Removed.
4615 (lookup_ident_attribute): New.
4616 (remove_attribute): Require the first argument to be in the form
4617 'text', not '__text__'. Updated asserts.
4618 (merge_attributes): Use lookup_ident_attributes instead of
4620 (merge_dllimport_decl_attributes): Use remove_attribute.
4621 (attribute_list_contained): Likewise.
4622 (attribute_list_equal): Immediately return 1 if the arguments are
4624 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
4625 'int'. Require the first argument to be in the form 'text', not
4626 '__text__'. Require the second argument to be an identifier.
4627 (lookup_attribute): Made inline. Require the first argument to be
4628 in the form 'text', not '__text__'.
4629 (private_is_attribute_p, private_lookup_attribute): New.
4632 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4634 * builtins.c: Add sync_ or SYNC__ to builtin names.
4635 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
4636 * omp-low.c: Add sync_ or SYNC__ to builtin names.
4638 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
4641 * config/avr/avr.md (extzv): New expander.
4643 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
4644 * config/avr/constraints.md (C04): New constraint.
4645 * doc/md.texi (Machine Constraints): Document it.
4647 2011-06-21 Jakub Jelinek <jakub@redhat.com>
4650 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
4651 unsignedp argument instead of 1 for clrsb_optab.
4652 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
4653 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
4654 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
4655 * optabs.c (widen_leading): Call widen_operand and expand_unop
4656 with 0 as unsignedp argument instead of 1 for clrsb_optab.
4657 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
4659 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
4661 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
4663 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
4665 * gensupport.c (add_define_attr): New static function.
4666 (is_predicable): Allow multi-alternative lists for the "predicable"
4668 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
4669 (process_one_cond_exec): Call alter_attrs_for_insn.
4670 * doc/md.texi (Defining Attributes): Mention some standard names.
4671 (Conditional Execution): Update documentation for "predicable".
4673 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
4674 __builtin_clrsbll): Document.
4675 * doc/rtl.texi (clrsb): New entry.
4676 * optabs.c (widen_leading): Renamed from widen_clz. New argument
4677 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
4678 (expand_unop): Handle clrsb_optab.
4679 (init_optabs): Initialize it.
4680 * optabs.h (enum optab_index): New entry OTI_clrsb.
4681 (clrsb_optab): Define.
4682 * genopinit.c (optabs): Add an entry for it.
4683 * builtins.c (expand_builtin): Handle clrsb builtin functions.
4684 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
4685 BUILT_IN_CLRSBLL): New.
4686 * rtl.def (CLRSB): New code.
4687 * dwarf2out.c (mem_loc_descriptor): Handle it.
4688 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4689 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
4691 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
4692 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
4693 (__ctzDI2): Move declaration.
4694 * config/bfin/bfin.md (clrsbsi2): New expander.
4695 (signbitssi2): Use the CLRSB rtx.
4696 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
4697 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
4699 2011-06-21 Richard Guenther <rguenther@suse.de>
4701 * ipa-inline-transform.c (inline_transform): Fix previous change.
4703 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
4705 PR tree-optimization/49478
4706 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
4707 with constant operand.
4709 2011-06-21 Richard Guenther <rguenther@suse.de>
4711 * ipa-inline-transform.c (inline_transform): Fix typo.
4713 2011-06-21 Richard Guenther <rguenther@suse.de>
4715 PR tree-optimization/49483
4716 * tree-vect-stmts.c (vectorizable_assignment): Also handle
4717 VIEW_CONVERT_EXPR conversions.
4719 2011-06-21 Joseph Myers <joseph@codesourcery.com>
4721 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
4722 * config/avr/avr-tables.opt: New file (generated).
4723 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
4724 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
4726 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
4727 (avr_option_override): Don't process -mmcu= argument here. Set
4728 avr_current_device using avr_mcu_index.
4729 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
4730 * config/avr/avr.opt (mmcu=): Use Enum.
4731 * config/avr/t-avr (avr-devices.o): Update dependencies.
4732 ($(srcdir)/config/avr/avr-tables.opt): New.
4733 * target.def (help): Remove.
4734 * doc/tm.texi.in (TARGET_HELP): Remove.
4735 * doc/tm.texi: Regenerate.
4736 * opts.c: Don't include target.h.
4737 (common_handle_option): Don't call targetm.help.
4738 * system.h (TARGET_HELP): Poison.
4739 * Makefile.in (opts.o): Update dependencies.
4741 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4743 * config/usegld.h: New file.
4744 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
4745 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
4746 (LIB_SPEC): Likewise. Search /lib.
4747 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
4748 (RDYNAMIC_SPEC): Handle GNU ld.
4749 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
4751 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
4752 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
4753 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
4754 (STACK_CHECK_STATIC_BUILTIN): Define.
4755 * config/sol2.opt (compat-bsd): Remove.
4756 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
4757 * config/sol2-bi.h: New file.
4758 * config/sol2-gld.h: Remove.
4759 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
4760 (NO_DBX_BNSYM_ENSYM): Remove.
4761 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4762 (STACK_CHECK_STATIC_BUILTIN): Remove.
4763 Test USE_GLD instead of TARGET_GNU_LD.
4764 * config/i386/sol2-10.h: Rename to ...
4765 * config/i386/sol2-bi.h .. this.
4766 (SUBTARGET_EXTRA_SPECS): Redefine.
4767 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
4768 (MULTILIB_DEFAULTS): Remove.
4769 (DEFAULT_ARCH32_P): Define.
4770 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
4771 (ARCH64_SUBDIR): Define.
4772 Test USE_GLD instead of TARGET_GNU_LD.
4773 (I386_EMULATION): Rename to ...
4774 (ARCH32_EMULATION): ... this.
4775 (X86_64_EMULATION): Rename to ...
4776 (ARCH64_EMULATION): ... this.
4777 (TARGET_LD_EMULATION): Remove.
4778 (LINK_ARCH_SPEC): Remove.
4779 * config/i386/sol2-gas.h: Remove.
4780 * config/i386/t-sol2-10: Rename to ...
4781 * config/i386/t-sol2-64: ... this.
4782 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
4783 (AS_SPARC64_FLAG): Define.
4784 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
4785 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
4786 depending on TARGET_CPU_DEFAULT.
4787 (CPP_CPU_SPEC): Redefine.
4788 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
4789 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
4790 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
4791 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
4792 ASM_ARCH_DEFAULT_SPEC): Redefine.
4793 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4794 LINK_ARCH_DEFAULT_SPEC.
4795 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
4796 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
4797 (ARCH64_SUBDIR): Define.
4798 (LINK_ARCH64_SPEC): Redefine.
4799 (CC1_SPEC): Redefine.
4800 (OPTION_DEFAULT_SPECS): Redefine.
4801 (MULTILIB_DEFAULTS): Define.
4802 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
4803 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
4804 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
4805 (NO_DBX_BNSYM_ENSYM): Remove.
4806 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
4807 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
4808 (TARGET_ASM_NAMED_SECTION): Likewise.
4809 (STACK_CHECK_STATIC_BUILTIN): Remove.
4810 * config/sparc/sol2-bi.h: Remove.
4811 * config/sparc/sol2-gas-bi.h: Remove.
4812 * config/sparc/sol2-gas.h: Remove.
4813 * config/sparc/sol2-gld-bi.h: Remove.
4814 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
4816 (*-*-solaris2*): ... here.
4818 2011-06-21 Christian Bruel <christian.bruel@st.com>
4821 * ipa-inline.c (can_inline_edge_p): Check
4822 !DECL_DISREGARD_INLINE_LIMITS.
4824 2011-06-21 Christian Bruel <christian.bruel@st.com>
4827 * cgraphunit.c (process_function_and_variable_attributes): warn when
4828 always_inline functions that are not inline.
4829 * ipa-inline-transform.c (inline_transform): Always call
4831 * tree-inline.c (tree_inlinable_function_p): Use error instead
4833 (expand_call_inline): Likewise.
4835 2011-06-21 Jakub Jelinek <jakub@redhat.com>
4837 * Makefile.in (dg_target_exps): Set.
4838 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
4839 instead of 7, try to divide it more evenly.
4841 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
4844 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
4845 (avx256_split_unaligned_store): New definition.
4846 (ix86_option_override_internal): Enable avx256 unaligned load/store
4847 splitting only when avx256_split_unaligned_load/store is set.
4849 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
4851 * regrename.c (scan_rtx_reg): Handle the case where we write to an
4852 open chain in a smaller mode without failing the entire block.
4854 2011-06-21 Alan Modra <amodra@gmail.com>
4856 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
4857 CONST high part large-toc address.
4858 (rs6000_tls_referenced_p): Make static.
4859 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
4861 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4864 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
4865 one of the operands is a register.
4867 2011-06-20 Kai Tietz <ktietz@redhat.com>
4869 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
4870 operations in combination with binary and.
4872 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
4874 * regrename.c (do_replace): Don't update notes.
4876 2011-06-20 Alan Modra <amodra@gmail.com>
4878 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
4879 of toc-relative address in CONST.
4880 (rs6000_delegitimize_address): Recognize changed address.
4881 (rs6000_legitimize_reload_address): Likewise.
4882 (rs6000_emit_move): Don't force these constants to memory.
4883 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
4884 toc-relative address in CONST.
4885 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
4886 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
4888 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
4890 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
4891 (count_trailing_zeros): Likewise.
4893 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
4896 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
4897 .init_array can be used with .ctors on targets.
4898 * configure: Regenerated.
4900 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
4902 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
4903 if the element type is volatile.
4905 2011-06-18 Jan Hubicka <jh@suse.cz>
4907 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
4909 (lto_symtab_resolve_can_prevail_p): Likewise.
4910 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
4911 * cgraphbuild.c (record_reference): Remove extra body alias code.
4912 (mark_load): Likewise.
4913 (mark_store): Likewise.
4914 * cgraph.h (varpool_node): Remove extra_name filed;
4915 add alias_of and extraname_alias.
4916 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
4917 (varpool_alias_aliased_node): New inline function.
4918 (varpool_variable_node): New function.
4919 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
4920 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
4921 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
4922 (input_varpool_node): Likewise.
4923 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
4924 (varpool_externally_visible_p): Remove extra body alias code.
4925 (function_and_variable_visibility): Likewise.
4926 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
4927 (ipa_pta_execute): Use it.
4928 * varpool.c (varpool_remove_node): Remove extra name alias code.
4929 (varpool_mark_needed_node): Likewise.
4930 (varpool_analyze_pending_decls): Analyze aliases.
4931 (assemble_aliases): New functoin.
4932 (varpool_assemble_decl): Use it.
4933 (varpool_create_variable_alias): New function.
4934 (varpool_extra_name_alias): Rewrite.
4935 (varpool_for_node_and_aliases): New function.
4937 2011-06-18 Jakub Jelinek <jakub@redhat.com>
4940 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
4941 last_arg_constant and last argument doesn't match its predicate,
4942 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
4943 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
4944 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
4945 spelling of error message.
4946 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
4947 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
4948 const_0_to_255_operand instead of const_int_operand.
4951 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4953 * config/i386/sse.md (blendbits): Remove mode attribute.
4954 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4955 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4956 Check integer value of operand 3 in insn constraint.
4958 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
4960 PR rtl-optimization/48542
4961 * reload.c (find_equiv_reg): Stop looking when finding a
4963 * reload1.c (reload_as_needed): Invalidate all reload
4964 registers when crossing a setjmp-type call.
4966 2011-06-16 Jeff Law <law@redhat.com>
4968 * tree-ssa-threadupdate.c (struct redirection_data): New field
4970 (THREAD_TARGET2): Define.
4971 (redirection_data_eq): Also check that the intermediate edge is equal.
4972 (lookup_redirection_data): Drop useless argument. Extract the
4973 outgoing_edge and intermediate edge from E. Callers updated.
4974 (copy_phi_args, update_destination_phis): New functions.
4975 (fix_duplicate_block_edges): Likewise.
4976 (create_edge_and_update_destination_phis): Duplicate all the edges
4977 hung off e->aux. Use copy_phi_args.
4978 (create_duplicates): Use fix_duplicate_block_edges.
4979 (fixup_template_block): Likewise.
4980 (redirect_edges): If necessary, redirect the joiner block's incoming
4981 edge to the duplicate of the joiner block.
4982 (thread_block): Don't muck up loops when threading through a joiner
4984 (thread_through_loop_header): Handle threading through a joiner block.
4985 (mark_threaded_blocks, register_jump_thread): Likewise.
4986 * tree-flow.h (register_jump_thread): Add new argument. Callers
4988 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
4989 (thread_across_edge): Handle threading through a joiner block.
4991 2011-06-16 Martin Jambor <mjambor@suse.cz>
4993 PR tree-optimization/49343
4994 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
4995 calculate offset, provide 2nd operand for the new COMPONENT_REF.
4997 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
4999 * config/darwin-protos.h (machopic_select_rtx_section): Move to
5000 inside RTX_CODE ifdef.
5002 2011-06-16 Tom de Vries <tom@codesourcery.com>
5005 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
5006 Disallow NULL pointer for pointer arithmetic.
5008 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5012 2011-06-10 Wei Guozhi <carrot@google.com>
5015 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5016 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5017 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5019 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5021 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5022 (arm_legitimate_ldrd_p): New prototype.
5023 (arm_output_ldrd): New prototype.
5024 * config/arm/arm.c (arm_check_ldrd_operands): New function.
5025 (arm_legitimate_ldrd_p): New function.
5026 (arm_output_ldrd): New function.
5028 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
5031 * doc/tm.texi.in: Update Copyright date.
5032 * doc/tm.texi: Regenerate.
5033 * targhooks.c (default_setup_incoming_varargs): Replace
5034 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5035 (default_pretend_outgoing_varargs_named): Likewise.
5036 (hook_pass_by_reference_must_pass_in_stack): Likewise.
5037 (hook_callee_copies_named): Likewise.
5038 (default_function_arg_advance): Likewise.
5039 (default_function_arg): Likewise.
5040 (default_function_incoming_arg): Likewise.
5041 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5042 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5043 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5044 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5045 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5046 * targhooks.h (default_setup_incoming_varargs): Likewise.
5047 (default_pretend_outgoing_varargs_named): Likewise.
5048 (hook_pass_by_reference_must_pass_in_stack): Likewise.
5049 (hook_callee_copies_named): Likewise.
5050 (default_function_arg_advance): Likewise.
5051 (default_function_arg): Likewise.
5052 (default_function_incoming_arg): Likewise.
5053 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
5054 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
5055 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
5056 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5057 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
5058 * target.def (pass_by_reference): Likewise.
5059 (setup_incoming_varargs, strict_argument_naming): Likewise.
5060 (pretend_outgoing_varargs_named, callee_copies): Likewise.
5061 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
5062 (function_incoming_arg): Likewise.
5063 * target.h: Don't include "tm.h" .
5064 (cumulative_args_t): New typedef.
5065 [GCC_TM_H] (get_cumulative_args): New static inline function.
5066 [GCC_TM_H] (pack_cumulative_args): Likewise.
5067 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
5068 argument type with cumulative_args_t.
5069 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
5070 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
5071 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5072 (frv_arg_partial_bytes, frv_function_arg): Likewise.
5073 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
5074 (frv_function_arg_1): Likewise.
5075 * config/s390/s390.c (s390_pass_by_reference): Likewise.
5076 (s390_function_arg_advance, s390_function_arg): Likewise.
5077 * config/m32c/m32c.c (m32c_function_arg): Likewise.
5078 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
5079 (m32c_strict_argument_naming): Likewise.
5080 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
5081 (spu_function_arg_advance): Likewise.
5082 (spu_setup_incoming_varargs): Likewise. Make static.
5083 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
5085 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
5086 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5087 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
5088 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
5089 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
5090 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
5091 (mep_pass_by_reference, mep_function_arg): Likewise.
5092 (mep_function_arg_advance): Likewise.
5093 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5094 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
5095 (m32r_function_arg, m32r_function_arg_advance): Likewise.
5096 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
5097 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5098 (ix86_function_arg, ix86_pass_by_reference): Likewise.
5099 (ix86_setup_incoming_varargs): Likewise.
5100 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5101 (sh_strict_argument_naming): Likewise.
5102 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
5103 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
5104 (sh_function_arg_advance, sh_function_arg): Likewise.
5105 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5106 (pdp11_function_arg_advance): Likewise.
5107 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5109 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
5110 * config/avr/avr.c (avr_function_arg): Likewise.
5111 (avr_function_arg_advance): Likewise.
5112 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5113 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
5114 (xtensa_function_arg_1): Likewise.
5115 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
5117 (xstormy16_function_arg): Likewise.
5118 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5119 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5120 (fr30_function_arg_advance): Likewise.
5121 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5122 (lm32_function_arg, lm32_function_arg_advance): Likewise.
5123 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5124 (moxie_function_arg, moxie_function_arg_advance): Likewise.
5125 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
5126 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5127 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
5128 (cris_function_arg, cris_function_incoming_arg): Likewise.
5129 (cris_function_arg_advance, cris_function_arg_1): Likewise.
5130 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5131 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
5132 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
5133 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5134 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
5135 (mn10300_arg_partial_bytes): Likewise.
5136 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5137 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
5138 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
5139 (ia64_function_arg_1): Likewise.
5140 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5141 (m68k_function_arg): Likewise.
5142 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
5143 (rs6000_function_arg, setup_incoming_varargs): Likewise.
5144 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
5145 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
5146 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
5147 (picochip_arg_advance): Likewise.
5148 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5149 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
5150 (mcore_function_arg_advance): Likewise.
5151 * config/score/score.c (score_pass_by_reference): Likewise.
5152 (score_function_arg_advance): Likewise.
5153 (score_arg_partial_bytes): Likewise. Make static.
5154 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
5155 * config/arm/arm.c (arm_arg_partial_bytes): Replace
5156 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5157 (arm_function_arg, arm_function_arg_advance): Likewise.
5158 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
5159 * config/pa/pa.c (pa_pass_by_reference): Likewise.
5160 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
5161 (pa_function_arg): Likewise.
5162 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
5163 (mips_function_arg, mips_function_arg_advance): Likewise.
5164 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
5165 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
5166 * config/vax/vax.c (vax_function_arg): Likewise.
5167 (vax_function_arg_advance): Likewise.
5168 * config/h8300/h8300.c (h8300_function_arg): Likewise.
5169 (h8300_function_arg_advance): Likewise.
5170 * config/v850/v850.c (v850_pass_by_reference): Likewise.
5171 (v850_strict_argument_naming, v850_function_arg): Likewise.
5172 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
5173 (v850_setup_incoming_varargs): Likewise.
5174 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5175 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
5176 (mmix_function_arg, mmix_pass_by_reference): Likewise.
5177 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
5179 * config/bfin/bfin.c (setup_incoming_varargs): Replace
5180 CUMULATIVE_ARGS* argument type with cumulative_args_t.
5181 (bfin_function_arg_advance, bfin_function_arg): Likewise.
5182 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
5183 * calls.c (emit_call_1): Change type of args_so_far to
5184 cumulative_args_t. Changed all callers.
5185 (initialize_argument_information): Likewise.
5186 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
5187 * dse.c (get_call_args): Likewise.
5188 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5189 * function.c (pass_by_reference, reference_callee_copied): Likewise.
5190 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
5191 New member args_so_far_v. Changed all users.
5192 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
5193 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
5194 * config/mips/mips.c (mips_output_args_xfer): Likewise.
5195 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5196 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5197 * config/microblaze/microblaze.c (microblaze_expand_prologue):
5199 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
5200 m32r_pass_by_reference.
5202 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
5204 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
5205 argument to be a VEC of statements.
5206 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
5207 assert that pattern statements have to have their vector type set.
5208 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
5209 Change the first argument to be a VEC of statements. Update
5211 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
5212 (vect_handle_widen_mult_by_const): New function.
5213 (vect_recog_widen_mult_pattern): Change the first argument to be a
5214 VEC of statements. Update documentation. Check that the constant is
5215 INTEGER_CST. Support multiplication by a constant that fits an
5216 intermediate type - call vect_handle_widen_mult_by_const.
5217 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
5218 call. Handle additional pattern statements if necessary.
5220 2011-06-16 Nick Clifton <nickc@redhat.com>
5223 * config.gcc: Set cpu_type to v850 for any V850 architecture.
5224 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
5225 md_file, extra_modes, out_file and extra_options are these are all
5226 deduced from cpu_type.
5228 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
5230 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
5231 truncation mask to 63.
5233 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
5237 * longlong.h: Add AVR support:
5238 (count_leading_zeros): New macro.
5239 (count_trailing_zeros): New macro.
5240 (COUNT_LEADING_ZEROS_0): New macro.
5241 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
5242 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
5243 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
5244 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
5245 (LIB2FUNCS_EXCLUDE): Add _clz.
5246 * config/avr/libgcc.S (XCALL): Move up in file.
5247 (XJMP): New C Macro.
5248 (DEFUN): New asm macro.
5249 (ENDF): New asm macro.
5250 (__ffssi2): New function.
5251 (__ffshi2): New function.
5252 (__loop_ffsqi2): New function.
5253 (__ctzsi2): New function.
5254 (__ctzhi2): New function.
5255 (__clzdi2): New function.
5256 (__clzsi2): New function.
5257 (__clzhi2): New function.
5258 (__paritydi2): New function.
5259 (__paritysi2): New function.
5260 (__parityhi2): New function.
5261 (__parityqi2): New function.
5262 (__popcounthi2): New function.
5263 (__popcountsi2): New function.
5264 (__popcountdi2): New function.
5265 (__popcountqi2): New function.
5266 (__bswapsi2): New function.
5267 (__bswapdi2): New function.
5268 (__ashldi3): New function.
5269 (__ashrdi3): New function.
5270 (__lshrdi3): New function.
5271 Fix suspicous lines.
5273 2011-06-16 Richard Guenther <rguenther@suse.de>
5275 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
5277 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
5279 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
5280 equality compares against zero for the lower bit.
5282 2011-06-16 Jakub Jelinek <jakub@redhat.com>
5284 PR tree-optimization/49419
5285 * tree-vrp.c (execute_vrp): Call init_range_assertions
5286 before estimate_numbers_of_iterations, call
5287 free_number_of_iterations_estimates before calling
5288 remove_range_assertions.
5290 2011-06-16 Revital Eres <revital.eres@linaro.org>
5292 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
5293 (struct partial_schedule): Add rows_length field.
5294 (verify_partial_schedule): Check rows_length.
5295 (ps_insert_empty_row): Handle rows_length.
5296 (create_partial_schedule): Likewise.
5297 (free_partial_schedule): Likewise.
5298 (reset_partial_schedule): Likewise.
5299 (create_ps_insn): Remove rest_count argument.
5300 (remove_node_from_ps): Update rows_length.
5301 (add_node_to_ps): Update rows_length and call create_ps_insn
5302 without passing row_rest_count.
5303 (rotate_partial_schedule): Update rows_length.
5305 2011-06-16 Revital Eres <revital.eres@linaro.org>
5307 * ddg.c (add_intra_loop_mem_dep): New function.
5308 (build_intra_loop_deps): Call it.
5310 2011-06-13 Jeff Law <law@redhat.com>
5312 * df-problems.c (df_lr_local_compute): Manually CSE
5313 PIC_OFFSET_TABLE_REGNUM.
5314 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
5315 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
5317 2011-06-13 Jan Hubicka <jh@suse.cz>
5319 * cgraphunit.c (handle_alias_pairs): New function.
5320 (cgraph_finalize_compilation_unit): Use it.
5321 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
5322 as externally visible.
5324 2011-06-15 Richard Guenther <rguenther@suse.de>
5326 * expr.c (expand_expr_real_2): Reduce all integral types to
5328 (expand_expr_real_1): Likewise.
5330 2011-06-15 Martin Jambor <mjambor@suse.cz>
5332 PR tree-optimization/48613
5333 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
5334 ipa_node_params_vector is NULL.
5336 2011-06-15 Jakub Jelinek <jakub@redhat.com>
5339 * dwarf2out.c (dw_loc_list_node): Add force field.
5340 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
5341 location in the list, even if it is modified before first real insn.
5342 (output_loc_list): Emit empty ranges with force flag set.
5343 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
5345 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
5348 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
5349 (fence_to_rewind). Use it to notice when bookkeeping will be placed
5350 above a fence. Update comments.
5351 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
5352 placed just above it. Do not allow NULL place_to_insert.
5354 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
5356 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
5357 (slpeel_tree_peel_loop_to_edge): Don't call
5358 remove_dead_stmts_from_loop.
5359 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5360 remove irrelevant pattern statements. For irrelevant statements
5361 check if it is the last statement of a detected pattern, use
5362 corresponding pattern statement instead.
5363 (destroy_loop_vec_info): No need to remove pattern statements,
5364 only free stmt_vec_info.
5365 (vect_transform_loop): For irrelevant statements check if it is
5366 the last statement of a detected pattern, use corresponding
5367 pattern statement instead.
5368 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
5369 pattern statements. Set basic block for the new statement.
5370 (vect_pattern_recog): Update documentation.
5371 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
5372 operands of pattern statements.
5373 (vectorizable_call): Fix printing. In case of a pattern statement
5374 use the lhs of the original statement when creating a dummy
5375 statement to replace the original call.
5376 (vect_analyze_stmt): For irrelevant statements check if it is
5377 the last statement of a detected pattern, use corresponding
5378 pattern statement instead.
5379 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
5380 statements use gsi of the original statement.
5382 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5384 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
5385 common/common-target-def.h.
5386 * target.def (default_target_flags, handle_option,
5387 supports_split_stack, optimization_table, init_struct,
5388 except_unwind_info, unwind_tables_default, have_named_sections):
5389 Move to common/common-target.def.
5390 * target.h (enum opt_levels, struct default_options): Move to
5391 common/common-target.h.
5392 * targhooks.c (default_except_unwind_info,
5393 dwarf2_except_unwind_info, sjlj_except_unwind_info,
5394 default_target_handle_option, empty_optimization_table): Move to
5395 common/common-targhooks.c.
5396 * targhooks.h (default_except_unwind_info,
5397 dwarf2_except_unwind_info, sjlj_except_unwind_info,
5398 default_target_handle_option, empty_optimization_table): Move to
5399 common/common-targhooks.h.
5400 * common/common-target-def.h: Include common/common-targhooks.h.
5401 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
5403 * common/common-target.def (handle_option, option_init_struct,
5404 option_optimization_table, default_target_flags,
5405 except_unwind_info, supports_split_stack, unwind_tables_default,
5406 have_named_sections): Move from target.def.
5407 (HOOK_PREFIX): Undefine at end of file.
5408 * common/common-target.h: Include input.h.
5409 (enum opt_levels, struct default_options): Move from target.h.
5410 * common/common-targhooks.c, common/common-targhooks.h: New.
5411 * config.gcc (target_has_targetm_common): Default to yes.
5412 (moxie*): Set target_has_targetm_common=no.
5413 (hppa*-*-*): Don't set target_has_targetm_common=yes.
5414 * doc/tm.texi: Regenerate.
5415 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
5416 (C_TARGET_DEF_H): Add common/common-targhooks.h.
5417 (GCC_OBJS): Remove vec.o.
5418 (OBJS): Remove hooks.o and vec.o.
5419 (OBJS-libcommon-target): Add vec.o, hooks.o and
5420 common/common-targhooks.o.
5421 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
5422 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
5423 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
5424 cfglayout.o, $(out_object_file), $(common_out_object_file)):
5425 Update dependencies.
5426 (common/common-targhooks.o): New.
5427 * common/config/default-common.c: Include tm.h. Add FIXME comment.
5428 * common/config/pa/pa-common.c: Include more headers. Take
5429 copyright dates from pa.c.
5430 (pa_option_optimization_table, pa_handle_option,
5431 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
5432 TARGET_HANDLE_OPTION): Move from pa.c.
5433 * common/config/alpha/alpha-common.c,
5434 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
5435 common/config/bfin/bfin-common.c,
5436 common/config/cris/cris-common.c,
5437 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
5438 common/config/h8300/h8300-common.c,
5439 common/config/i386/i386-common.c,
5440 common/config/ia64/ia64-common.c,
5441 common/config/iq2000/iq2000-common.c,
5442 common/config/lm32/lm32-common.c,
5443 common/config/m32c/m32c-common.c,
5444 common/config/m32r/m32r-common.c,
5445 common/config/m68k/m68k-common.c,
5446 common/config/mcore/mcore-common.c,
5447 common/config/mep/mep-common.c,
5448 common/config/microblaze/microblaze-common.c,
5449 common/config/mips/mips-common.c,
5450 common/config/mmix/mmix-common.c,
5451 common/config/mn10300/mn10300-common.c,
5452 common/config/pdp11/pdp11-common.c,
5453 common/config/picochip/picochip-common.c,
5454 common/config/rs6000/rs6000-common.c,
5455 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
5456 common/config/score/score-common.c, common/config/sh/sh-common.c,
5457 common/config/sparc/sparc-common.c,
5458 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
5459 common/config/vax/vax-common.c,
5460 common/config/xstormy16/xstormy16-common.c,
5461 common/config/xtensa/xtensa-common.c: New.
5462 * config/alpha/alpha.c: Include common/common-target.h.
5463 (alpha_option_optimization_table, alpha_handle_option,
5464 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5465 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
5466 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
5467 * config/arm/arm.c (arm_option_optimization_table,
5468 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5469 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
5471 * config/avr/avr.c (avr_option_optimization_table,
5472 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
5474 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
5475 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
5476 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
5477 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
5478 * config/cris/cris.c (cris_option_optimization_table,
5479 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5480 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
5482 * config/fr30/fr30.c (fr30_option_optimization_table,
5483 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
5485 * config/frv/frv.c (frv_option_optimization_table,
5486 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
5487 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
5488 * config/h8300/h8300.c (h8300_option_optimization_table,
5489 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5490 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
5491 * config/i386/i386-protos.h (ix86_handle_option): Declare.
5492 * config/i386/i386.c: Include common/common-target.h.
5493 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
5494 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
5495 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
5496 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
5497 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
5498 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
5499 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
5500 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
5501 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
5502 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
5503 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
5504 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
5505 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
5506 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
5507 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
5508 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
5509 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
5510 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
5511 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
5512 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
5513 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
5514 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
5515 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
5516 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
5517 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
5518 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
5519 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
5520 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
5521 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
5522 ix86_option_optimization_table, ix86_option_init_struct,
5523 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
5524 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5525 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
5527 * config/i386/t-i386 (i386.o): Update dependencies.
5528 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
5529 * config/ia64/ia64.c (ia64_option_optimization_table,
5530 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
5531 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5532 ia64_handle_option): Move to ia64-common.c.
5533 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
5534 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
5535 * config/lm32/lm32.c (lm32_option_optimization_table,
5536 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
5538 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
5540 * config/m32r/m32r.c (m32r_option_optimization_table,
5541 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5542 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
5543 m32r_handle_option): Move to m32r-common.c.
5544 (m32r_memory_move_cost): Remove comment referring to
5545 TARGET_HANDLE_OPTION.
5546 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
5547 Move to m68k-common.c.
5548 * config/mcore/mcore.c (mcore_option_optimization_table,
5549 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5550 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
5551 * config/mep/mep.c (mep_option_optimization_table,
5552 mep_handle_option, TARGET_HANDLE_OPTION,
5553 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
5554 Move to mep-common.c.
5555 * config/microblaze/microblaze.c
5556 (microblaze_option_optimization_table,
5557 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
5558 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
5559 * config/mips/mips.c (mips_handle_option,
5560 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
5561 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
5563 * config/mmix/mmix.c (mmix_option_optimization_table,
5564 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5565 Move to mmix-common.c.
5566 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
5567 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
5568 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5569 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
5570 * config/pa/pa.c: Include common/common-target.h.
5571 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
5572 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5573 pa_handle_option): Move to pa-common.c.
5574 (pa_option_override): Use targetm_common.except_unwind_info.
5575 (pa_asm_output_mi_thunk, pa_function_section): Use
5576 targetm_common.have_named_sections.
5577 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
5578 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5579 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
5580 pdp11_handle_option, pdp11_option_init_struct): Move to
5582 * config/picochip/picochip.c (picochip_option_optimization_table,
5583 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
5584 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
5585 * config/rs6000/rs6000.c: Include common/common-target.h.
5586 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
5587 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
5588 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
5589 rs6000_handle_option): Move to rs6000-common.c.
5590 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5591 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
5592 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5593 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
5594 * config/s390/s390.c (processor_flags_table,
5595 s390_option_optimization_table, s390_option_init_struct,
5596 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
5597 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
5598 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
5599 * config/s390/s390.h (processor_flags_table): Declare.
5600 * config/score/score.c (score_option_optimization_table,
5601 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5602 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
5603 score_handle_option): Move to score-common.c.
5604 * config/sh/sh.c (sh_option_optimization_table,
5605 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
5606 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
5607 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
5608 * config/sparc/sparc.c: Include common/common-target.h.
5609 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5610 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
5611 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
5612 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
5613 spu_option_init_struct): Move to spu-common.c.
5614 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5615 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
5616 * config/v850/v850.c (small_memory_physical_max,
5617 v850_handle_memory_optionn v850_handle_option,
5618 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
5619 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
5621 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
5622 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
5623 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
5624 Move to xtensa-common.c.
5625 * cfglayout.c: Include common/common-target.h.
5626 (fixup_reorder_chain): Use targetm_common.have_named_sections.
5627 * cfgrtl.c: Include common/common-target.h.
5628 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
5629 targetm_common.have_named_sections.
5630 * dbxout.c: Include common/common-target.h.
5631 (dbxout_function_end): Use targetm_common.have_named_sections.
5632 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
5633 targetm_common.except_unwind_info.
5634 * dwarf2out.c: Include common/common-target.h.
5635 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
5636 dwarf2out_begin_prologue, dwarf2out_frame_init,
5637 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
5638 targetm_common.except_unwind_info.
5639 * except.c: Include common/common-target.h.
5640 (init_eh, finish_eh_generation,
5641 output_one_function_exception_table): Use
5642 targetm_common.except_unwind_info.
5643 (switch_to_exception_section): Use targetm_common.have_named_sections.
5644 * explow.c: Include common/common-target.h.
5645 * expr.c: Include common/common-target.h.
5646 (build_personality_function): Use targetm_common.except_unwind_info.
5647 * function.c: Include common/common-target.h.
5648 (expand_function_end): Use targetm_common.except_unwind_info.
5649 * haifa-sched.c: Include common/common-target.h.
5650 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
5651 * lto-opts.c: Include common/common-target.h instead of target.h.
5652 (lto_reissue_options): Use targetm_common.handle_option.
5653 * opts.c: Include common/common-target.h.
5654 (target_handle_option): Use targetm_common.handle_option.
5655 (init_options_struct): Update comment referring to
5656 targetm.target_option.optimization. Use
5657 targetm_common.default_target_flags,
5658 targetm_common.unwind_tables_default and
5659 targetm_common.option_init_struct.
5660 (default_options_optimization): Use
5661 targetm_common.option_optimization_table.
5662 (finish_options): Use targetm_common.except_unwind_info,
5663 targetm_common.unwind_tables_default,
5664 targetm_common.have_named_sections and
5665 targetm_common.supports_split_stack.
5666 * toplev.c: Include common/common-target.h.
5667 (process_options): Use targetm_common.have_named_sections.
5668 * tree-tailcall.c: Include common/common-target.h.
5669 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
5670 * tree.c: Include common/common-target.h.
5671 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
5672 * varasm.c: Include common/common-target.h.
5673 (resolve_unique_section, hot_function_section,
5674 default_function_section): Use targetm_common.have_named_sections.
5676 2011-06-14 Easwaran Raman <eraman@google.com>
5678 PR rtl-optimization/44194
5679 * dse.c: Include tree-flow.h
5680 (insn_info): Add new field non_frame_wild_read.
5681 (group_info): Add new fields escaped_n and escaped_p.
5682 (kill_on_calls): New variable.
5683 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
5684 (dse_step0): Initialize kill_on_calls.
5685 (can_escape): New function.
5686 (set_usage_bits): Add additional parameter; record information
5687 about escaped locations.
5688 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
5689 (dse_step2_nospill): Set kill_on_calls based on
5690 group->escaped_n and group->escaped_n.
5691 (add_wild_read): Refactor into...
5692 (reset_active_stores): ... New function, and
5693 (free_read_records): ... New function.
5694 (add_non_frame_wild_read): New function.
5695 (scan_insn): Call add_non_frame_wild_read on non-const calls.
5696 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
5697 (dse_step5_nospill): Call scan_reads_nospill for instructions
5698 marked as non_frame_wild_read.
5699 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
5701 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5703 * common/common-target-def.h, common/common-target.def,
5704 common/common-target.h, common/config/default-common.c,
5705 common/config/pa/pa-common.c: New files.
5706 * Makefile.in (common_out_file, common_out_object_file,
5707 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
5708 (OBJS-libcommon-target): Include $(common_out_object_file).
5709 (prefix.o): Update dependencies.
5710 ($(common_out_object_file), common/common-target-hooks-def.h,
5711 s-common-target-hooks-def-h): New.
5712 (s-tm-texi): Also check timestamp on common-target.def.
5713 (build/genhooks.o): Update dependencies.
5714 * config.gcc (common_out_file, target_has_targetm_common): Define.
5715 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
5716 TARGET_ALWAYS_STRIP_DOTDOT.
5717 * configure.ac (common_out_object_file): Define.
5718 (common_out_file, common_out_object_file): Substitute.
5719 (common): Create directory.
5720 * configure: Regenerate.
5721 * doc/tm.texi.in (targetm_common): Document.
5722 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
5723 * doc/tm.texi: Regenerate.
5724 * genhooks.c (hook_array): Also include common/common-target.def.
5725 * prefix.c (tm.h): Don't include.
5726 (common/common-target.h): Include.
5727 (ALWAYS_STRIP_DOTDOT): Don't define.
5728 (update_path): Use targetm_common.always_strip_dotdot instead of
5729 ALWAYS_STRIP_DOTDOT.
5730 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
5732 2011-06-14 David Li <davidxl@google.com>
5734 * passes.c (execute_function_todo): Remove TODO_dump_func.
5735 (execute_one_pass): Remove TODO_dump_func.
5736 (execute_function_dump): New function.
5737 * tree-vrp.c: Remove TODO_dump_func.
5738 * regrename.c: Remove TODO_dump_func.
5739 * fwprop.c: Remove TODO_dump_func.
5740 * tree-into-ssa.c: Remove TODO_dump_func.
5741 * tree-complex.c: Remove TODO_dump_func.
5742 * tracer.c: Remove TODO_dump_func.
5743 * tree-loop-distribution.c: Remove TODO_dump_func.
5744 * postreload-gcse.c: Remove TODO_dump_func.
5745 * postreload.c: Remove TODO_dump_func.
5746 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
5747 * tree-tailcall.c: Remove TODO_dump_func.
5748 * ipa-cp.c: Remove TODO_dump_func.
5749 * final.c: Remove TODO_dump_func.
5750 * tree-emutls.c: Remove TODO_dump_func.
5751 * omp-low.c: Remove TODO_dump_func.
5752 * tree-ssa-dse.c: Remove TODO_dump_func.
5753 * tree-ssa-uncprop.c: Remove TODO_dump_func.
5754 * auto-inc-dec.c: Remove TODO_dump_func.
5755 * reorg.c: Remove TODO_dump_func.
5756 * tree-ssa-copyrename.c: Remove TODO_dump_func.
5757 * tree-ssa-ccp.c: Remove TODO_dump_func.
5758 * compare-elim.c: Remove TODO_dump_func.
5759 * mode-switching.c: Remove TODO_dump_func.
5760 * modulo-sched.c: Remove TODO_dump_func.
5761 * tree-call-cdce.c: Remove TODO_dump_func.
5762 * cse.c: Remove TODO_dump_func.
5763 * web.c: Remove TODO_dump_func.
5764 * tree-stdarg.c: Remove TODO_dump_func.
5765 * lto-streamer-out.c: Remove TODO_dump_func.
5766 * tree-ssa-math-opts.c: Remove TODO_dump_func.
5767 * tree-ssa-dom.c: Remove TODO_dump_func.
5768 * tree-nrv.c: Remove TODO_dump_func.
5769 * loop-init.c: Remove TODO_dump_func.
5770 * gimple-low.c: Remove TODO_dump_func.
5771 * ipa-inline.c: Remove TODO_dump_func.
5772 * tree-ssa-sink.c: Remove TODO_dump_func.
5773 * jump.c: Remove TODO_dump_func.
5774 * ifcvt.c: Remove TODO_dump_func.
5775 * tree-ssa-loop.c: Remove TODO_dump_func.
5776 * recog.c: Remove TODO_dump_func.
5777 * dse.c: Remove TODO_dump_func.
5778 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
5779 * matrix-reorg.c: Remove TODO_dump_func.
5780 * tree-eh.c: Remove TODO_dump_func.
5781 * regmove.c: Remove TODO_dump_func.
5782 * function.c: Remove TODO_dump_func.
5783 * tree-vectorizer.c: Remove TODO_dump_func.
5784 * ipa-split.c: Remove TODO_dump_func.
5785 * gcse.c: Remove TODO_dump_func.
5786 * tree-if-conv.c: Remove TODO_dump_func.
5787 * init-regs.c: Remove TODO_dump_func.
5788 * tree-ssa-phiopt.c: Remove TODO_dump_func.
5789 * implicit-zee.c: Remove TODO_dump_func.
5790 * lower-subreg.c: Remove TODO_dump_func.
5791 * bt-load.c: Remove TODO_dump_func.
5792 * tree-dfa.c: Remove TODO_dump_func.
5793 * except.c: Remove TODO_dump_func.
5794 * emit-rtl.c: Remove TODO_dump_func.
5795 * store-motion.c: Remove TODO_dump_func.
5796 * cfgexpand.c: Remove TODO_dump_func.
5797 * tree-cfgcleanup.c: Remove TODO_dump_func.
5798 * cfgcleanup.c: Remove TODO_dump_func.
5799 * tree-ssa-pre.c: Remove TODO_dump_func.
5800 * tree-sra.c: Remove TODO_dump_func.
5801 * tree-mudflap.c: Remove TODO_dump_func.
5802 * tree-ssa-copy.c: Remove TODO_dump_func.
5803 * cfglayout.c: Remove TODO_dump_func.
5804 * tree-ssa-forwprop.c: Remove TODO_dump_func.
5805 * tree-ssa-dce.c: Remove TODO_dump_func.
5806 * ira.c: Remove TODO_dump_func.
5807 * tree-ssa.c: Remove TODO_dump_func.
5808 * integrate.c: Remove TODO_dump_func.
5809 * tree-optimize.c: Remove TODO_dump_func.
5810 * tree-ssa-phiprop.c: Remove TODO_dump_func.
5811 * tree-object-size.c: Remove TODO_dump_func.
5812 * combine.c: Remove TODO_dump_func.
5813 * bb-reorder.c: Remove TODO_dump_func.
5814 * cprop.c: Remove TODO_dump_func.
5815 * var-tracking.c: Remove TODO_dump_func.
5816 * tree-profile.c: Remove TODO_dump_func.
5817 * tree-vect-generic.c: Remove TODO_dump_func.
5818 * reg-stack.c: Remove TODO_dump_func.
5819 * sched-rgn.c: Remove TODO_dump_func.
5820 * tree-ssa-structalias.c: Remove TODO_dump_func.
5821 * tree-switch-conversion.c: Remove TODO_dump_func.
5822 * tree-cfg.c: Remove TODO_dump_func.
5823 * tree-ssa-reassoc.c: Remove TODO_dump_func.
5824 * combine-stack-adj.c: Remove TODO_dump_func.
5825 * dce.c: Remove TODO_dump_func.
5826 * tree-ssanames.c: Remove TODO_dump_func.
5827 * regcprop.c: Remove TODO_dump_func.
5829 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
5832 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
5833 and properly handle result not in Pmode.
5835 2011-06-14 Robert Millan <rmh@gnu.org>
5837 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
5838 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
5841 * config/i386/kfreebsd-gnu64.h: New file.
5842 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
5843 with `i386/kfreebsd-gnu64.h'.
5845 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
5846 (GNU_USER_LINK_EMULATION64): New macros.
5847 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
5848 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
5849 of hardcoding `elf_i386' and `elf_x86_64'.
5851 2011-06-14 Nick Clifton <nickc@redhat.com>
5854 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
5857 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
5859 2011-06-14 Jakub Jelinek <jakub@redhat.com>
5862 * tree.h (DECL_NONSHAREABLE): Define.
5863 (struct tree_decl_common): Change decl_common_unused to
5864 decl_nonshareable_flag.
5865 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
5866 Ignore vars with DECL_NONSHAREABLE bit set.
5867 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
5868 on stores to automatic aggregate vars.
5870 PR rtl-optimization/49390
5872 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
5874 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
5877 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
5878 Tom de Vries <tom@codesourcery.com>
5881 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
5882 Document changed semantics.
5883 (max_stmt_executions, max_stmt_executions_int): Declare.
5884 * tree-data-ref.c (estimated_loop_iterations)
5885 (estimated_loop_iterations_int): Move functions...
5886 * tree-ssa-loop-niter.c (estimated_loop_iterations)
5887 (estimated_loop_iterations_int): here.
5888 (record_estimate): Change nb_iterations_upper_bound and
5889 nb_iterations_estimate semantics.
5890 (max_stmt_executions, max_stmt_executions_int): New function.
5891 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
5892 (max_stmt_executions_tree): this.
5893 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
5894 estimated_loop_iterations_tree.
5895 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
5896 max_stmt_executions_int instead of estimated_loop_iterations_int.
5897 * predict.c (predict_loops): Idem.
5898 * tree-parloops.c (parallelize_loops): Idem.
5899 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
5900 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
5901 (init_omega_for_ddr_1): Idem.
5902 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
5903 (loop_prefetch_arrays): Idem
5904 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
5905 max_stmt_executions instead of estimated_loop_iterations.
5906 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
5907 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
5908 instead of nb_iterations_upper_bound.
5910 2011-06-13 Jan Hubicka <jh@suse.cz>
5912 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
5914 2011-06-14 Richard Henderson <rth@redhat.com>
5917 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
5918 (based_loc_descr): Assert it's true.
5919 (compute_frame_pointer_to_fb_displacement): Set it, rather than
5920 aborting immediately.
5922 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
5923 Mingfeng Wu <mingfeng@faraday-tech.com>
5925 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
5927 2011-06-13 Jan Hubicka <jh@suse.cz>
5929 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
5931 2011-06-13 Jan Hubicka <jh@suse.cz>
5933 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
5934 similarly to DECL_COMDAT.
5935 * cgraphunit.c (cgraph_analyze_function): Likewise.
5936 * ipa.c (function_and_variable_visibility): Likewise.
5938 2011-06-13 Jan Hubicka <jh@suse.cz>
5940 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
5941 BINFO_VIRTUALS when streaming for ltrans unit.
5943 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
5945 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
5946 (movdi_internal64): Same.
5948 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
5951 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
5952 a set of similar patterns, where the MATCH_OPERAND for the function
5953 argument is replaced with individual references to hardware registers.
5954 (save_fpregs_<mode>): Ditto
5955 (restore_gpregs_<mode>): Ditto
5956 (return_and_restore_gpregs_<mode>): Ditto
5957 (return_and_restore_fpregs_<mode>): Ditto
5958 (return_and_restore_fpregs_aix_<mode>): Ditto
5960 2011-06-13 Jan Hubicka <jh@suse.cz>
5962 * ipa-utils.c (postorder_stack): New structure.
5963 (ipa_reverse_postorder): Handle aliases.
5965 2011-06-13 Jan Hubicka <jh@suse.cz>
5967 * ipa-inline.c (reset_edge_caches): Walk aliases.
5968 (update_caller_keys): Do not test inlinability of aliases.
5969 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
5970 (do_estimate_growth): Fix typo.
5972 2011-06-13 Jan Hubicka <jh@suse.cz>
5974 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
5975 (can_remove_node_now_p): ... here; handle same comdat groups.
5976 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
5977 (inline_call): Update use of can_remove_node_now_p.
5979 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5981 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
5982 condition to disallow non-identical memory locations.
5983 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
5984 preference to bit manipulation instructions.
5986 2011-06-13 Jan Hubicka <jh@suse.cz>
5988 * cgraph.c (cgraph_for_node_thunks_and_aliases,
5989 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
5990 (nonremovable_p): New function.
5991 (cgraph_can_remove_if_no_direct_calls_p): New function.
5992 (used_from_object_file_p): New functoin.
5993 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
5994 references from aliases.
5995 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
5996 * ipa-inline.c (check_caller_edge): New function.
5997 (want_inline_function_called_once_p): Use it; accept aliases called
5999 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
6001 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6004 * config/arm/neon.md (vec_pack_trunc): Set the lengths
6005 correctly for the case with Quad vectors.
6007 2011-06-13 Jakub Jelinek <jakub@redhat.com>
6008 Ira Rosen <ira.rosen@linaro.org>
6010 PR tree-optimization/49352
6011 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
6012 all, make sure loop_use_stmt after the loop is a def stmt of a used
6013 SSA_NAME that is the only one defined inside of the loop. Don't
6014 check for COND_EXPR and GIMPLE_BINARY_RHS.
6015 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
6016 check_reduction is true.
6018 2011-06-11 Jan Hubicka <jh@suse.cz>
6021 * ipa.c (cgraph_externally_visible_p): Check resolution info.
6023 2011-06-11 Jan Hubicka <jh@suse.cz>
6026 * ipa-inline-transform.c: Include tree-pass.h
6027 (inline_transform): Set TODO_update_ssa_only_virtuals.
6028 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
6030 2011-06-11 Jan Hubicka <jh@suse.cz>
6033 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
6036 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
6038 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
6039 Take number of iterations to peel into account for equally frequent
6040 misalignment values.
6042 2011-06-11 Jan Hubicka <jh@suse.cz>
6044 * lto-streamer-out.c (produce_symtab): Stream out the newly
6045 represented aliases.
6047 2011-06-11 Jan Hubicka <jh@suse.cz>
6049 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
6051 (ipa_update_after_lto_read): Likewise.
6052 (ipa_write_node_info): Do not sream call_with_var_arguments.
6053 (ipa_read_node_info): Likewise.
6055 2011-06-11 Jan Hubicka <jh@suse.cz>
6057 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
6059 2011-06-11 Jan Hubicka <jh@suse.cz>
6061 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
6062 (lto_symtab_resolve_can_prevail_p): Likewise.
6063 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
6064 * cgraph.c (same_body_aliases_done): New global var.
6065 (cgraph_same_body_alias_1): Rename to ...
6066 (cgraph_create_function_alias): ... this one; reorg to new
6068 (cgraph_same_body_alias): Use cgraph_create_function_alias;
6069 record references when asked to.
6070 (cgraph_add_thunk): Fix formating.
6071 (cgraph_get_node): Kill same body alias code.
6072 (cgraph_node_for_asm): Likewise.
6073 (cgraph_remove_same_body_alias): Remove.
6074 (cgraph_remove_node): Kill same body alias code.
6075 (cgraph_mark_address_taken_node): Mark also the aliased function
6076 as having address taken.
6077 (dump_cgraph_node): Dump same body aliases.
6078 (cgraph_for_node_thunks_and_aliases): Update for new alias
6080 (cgraph_for_node_and_aliases): Likewise.
6081 * cgraph.h (same_body): Kll pointer.
6082 (same_body_alias): Update comment.
6083 (same_body_aliases_done): Declare.
6084 (cgraph_remove_same_body_alias): Remove declaration.
6085 (cgraph_create_function_alias): Declare.
6086 (cgraph_process_same_body_aliases): Declare.
6087 (cgraph_function_with_gimple_body_p): Check for alias.
6088 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
6089 (cgraph_alias_aliased_node): New function.
6090 (cgraph_function_node): Update for new aliases.
6091 (cgraph_function_or_thunk_node): Likewise.
6092 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
6093 (inline_call): Remove dead aliases.
6094 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
6095 name hack for same body aliases.
6096 (clone_of_p): Look through aliases.
6097 (verify_cgraph_node): Verify aliases.
6098 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
6099 (cgraph_process_same_body_aliases): New function.
6100 (process_function_and_variable_attributes): Disable weakref warning on
6102 (cgraph_analyze_functions): Handle aliases.
6103 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
6104 (assemble_thunks): Rename to ...
6105 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
6106 (cgraph_expand_function): Remove alias output code.
6107 (cgraph_output_in_order): Skip aliases.
6108 (cgraph_preserve_function_body_p): Aliases don't need preserving.
6109 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
6110 (ipa_record_reference): Do not assert on alias references.
6111 (ipa_ref_has_aliases_p): New function.
6112 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
6113 (ipa_ref_has_aliases_p): Declare.
6114 * lto-cgraph.c (lto_output_node): Handle aliases.
6115 (input_node): Likewise.
6116 * lto-streamer-out.c (lto_output): Skip aliases.
6117 (produce_symtab): Kill same_body_alias code.
6118 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
6119 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
6120 * ipa-inline.c (update_caller_keys): Walk aliases.
6121 (inline_small_functions): Fix thinko in previous patch.
6122 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
6123 (function_and_variable_visibility): Do not walk same body aliases.
6124 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
6125 (ipa_pta_execute): Use it.
6127 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
6129 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
6130 (*vec_dupv2df): Rename from vec_dupv2df.
6131 (vec_dupv2df): New expander.
6133 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
6135 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
6137 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
6139 * config/i386/i386.md: Use default value in "isa" attribute.
6140 * config/i386/sse.md: Ditto.
6141 * config/i386/mmx.md: Ditto.
6143 2011-06-10 Wei Guozhi <carrot@google.com>
6146 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6147 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6148 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6150 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6152 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6153 (arm_legitimate_ldrd_p): New prototype.
6154 (arm_output_ldrd): New prototype.
6155 * config/arm/arm.c (arm_check_ldrd_operands): New function.
6156 (arm_legitimate_ldrd_p): New function.
6157 (arm_output_ldrd): New function.
6159 2011-06-10 David Li <davidxl@google.com>
6161 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6162 * passes.c (passr_eq): New function.
6163 (create_pass_tab): New function.
6164 (pass_traverse): New function.
6165 (dump_one_pass): New function.
6166 (dump_pass_list): New function.
6167 (dump_passes): New function.
6169 2011-06-10 Jan Hubicka <jh@suse.cz>
6171 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
6172 setting the nothrow flag.
6173 * ipa-reference.c (propagate): Skip aliases.
6174 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
6175 (propagate_nothrow): Skip aliases; do not update cgraph.
6176 (local_pure_const): Do not update cgraph.
6177 * tree-profile.c (tree_profiling): Do fixup_cfg.
6179 2011-06-10 Jan Hubicka <jh@suse.cz>
6181 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
6182 (cgraph_local_node_p): ... here; handle aliases.
6183 (has_addr_references_p): Break out from ...;
6184 (cgraph_remove_unreachable_nodes) ... here.
6186 2011-06-10 Jan Hubicka <jh@suse.cz>
6188 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
6189 * common.opt (flag_inline_functions_called_once): Do not
6192 2011-06-10 Jan Hubicka <jh@suse.cz>
6194 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
6195 (ipcp_initialize_node_lattices): Do not deal with aliases;
6196 Do not try to propagate through thunks.
6197 (ipcp_change_tops_to_bottom): Do not deal with aliases.
6199 2011-06-10 Jan Hubicka <jh@suse.cz>
6201 * ipa-prop.c (ipa_write_node_info): Stream jump functions
6203 (ipa_read_node_info): Likewise.
6205 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6208 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
6209 (build_and_insert_call): Likewise.
6210 (build_and_insert_ref): New.
6211 (gimple_expand_builtin_pow): Minor cleanup.
6212 (gimple_expand_builtin_cabs): New.
6213 (execute_cse_sincos): Add case for BUILT_IN_CABS.
6215 2011-06-10 Jan Hubicka <jh@suse.cz>
6217 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
6218 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
6219 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
6220 (ipcp_propagate_stage): Skip aliases when propagating.
6221 (ipcp_need_redirect_p): Skip aliases.
6222 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
6223 collect_callers_of_node.
6224 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
6226 (ipa_compute_jump_functions): Look through aliases.
6228 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6230 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
6232 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
6234 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
6236 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
6238 2011-06-10 Jan Hubicka <jh@suse.cz>
6240 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
6241 Update call of gimple_get_virt_method_for_binfo.
6242 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
6243 refuse_thunks parameter.
6244 (gimple_fold_call): Update.
6245 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
6247 2011-06-10 Jan Hubicka <jh@suse.cz>
6249 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
6250 (not_all_callers_have_enough_arguments_p): ... this one; turn into
6251 worker for cgraph_for_node_and_aliases.
6252 (convert_callers_for_node): Break out from ...
6253 (convert_callers): ... here.
6254 (modify_function): Use collect_callers_of_node.
6255 (ipa_early_sra): Use cgraph_for_node_and_aliases.
6257 2011-06-10 Richard Guenther <rguenther@suse.de>
6259 PR tree-optimization/49361
6260 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
6261 when not already in gimple form.
6263 2011-06-10 Richard Guenther <rguenther@suse.de>
6266 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
6267 FOR_EACH_PHI_OR_STMT_USE.
6269 2011-06-10 Jan Hubicka <jh@suse.cz>
6271 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
6272 (clone_inlined_nodes): ... here.
6273 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
6274 to real destination prior inlining.
6275 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
6276 can_early_inline_edge_p, want_early_inline_function_p,
6277 want_early_inline_function_p, want_inline_small_function_p,
6278 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
6279 edge_badness, update_all_callee_keys, lookup_recursive_calls,
6280 add_new_edges_to_heap, inline_small_functions, flatten_function,
6281 inline_always_inline_functions, early_inline_small_functions): Use
6282 cgraph_function_or_thunk_node.
6283 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
6284 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
6285 (do_estimate_edge_growth_1): Break out from ...
6286 (do_estimate_growth) ... here; walk aliases.
6287 (inline_generate_summary): Skip aliases.
6289 2011-06-10 Richard Guenther <rguenther@suse.de>
6291 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
6292 forward when combining, visit inserted stmts when a stmt was changed.
6294 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
6296 * tree.h (error_operand_p): Add.
6297 * dbxout.c (dbxout_type_fields): Use the latter.
6298 * c-decl.c (add_stmt): Likewise.
6299 * gimplify.c (omp_add_variable, omp_notice_variable,
6300 gimplify_scan_omp_clauses): Likewise.
6302 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
6304 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
6305 when a value is actually passed in regs.
6307 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
6308 Laurent Rougé <laurent.rouge@menta.fr>
6310 * doc/invoke.texi (SPARC options): Add -mflat.
6311 * config/sparc/sparc.opt: Likewise.
6312 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
6313 (sparc_flat_expand_prologue): Declare.
6314 (sparc_flat_expand_epilogue): Likewise.
6315 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
6316 (CPP_ENDIAN_SPEC): Replace with...
6317 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
6318 (CPP_SPEC): Adjust to above change.
6319 (EXTRA_SPECS): Likewise.
6320 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
6321 (INCOMING_REGNO): Likewise.
6322 (OUTGOING_REGNO): Likewise.
6323 (LOCAL_REGNO): Likewise.
6324 (SETUP_FRAME_ADDRESSES): Likewise.
6325 (FIXED_REGISTERS): Set 0 for %fp.
6326 (CALL_USED_REGISTERS): Likewise.
6327 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
6328 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
6329 (RETURN_ADDR_REGNUM): Define.
6330 (RETURN_ADDR_RTX): Use it.
6331 (INCOMING_RETURN_ADDR_REGNUM): Define.
6332 (INCOMING_RETURN_ADDR_RTX): Use it.
6333 (DWARF_FRAME_RETURN_COLUMN): Likewise.
6334 (EH_RETURN_REGNUM): Define.
6335 (EH_RETURN_STACKADJ_RTX): Use it.
6336 (EH_RETURN_HANDLER_RTX): Delete.
6337 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
6338 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
6340 (struct machine_function): Add frame_size, apparent_frame_size,
6341 frame_base_reg, frame_base_offset, n_global_fp_regs and
6342 save_local_in_regs_p fields.
6343 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
6344 sparc_frame_base_offset, sparc_n_global_fp_regs,
6345 sparc_save_local_in_regs_p): New macros.
6346 (sparc_option_override): Error out if -fcall-saved-REG is specified
6348 (eligible_for_restore_insn): Fix formatting.
6349 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
6350 (eligible_for_sibcall_delay): Likewise.
6351 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
6352 (sparc_legitimate_address_p): Adjust to above change.
6353 (save_global_or_fp_reg_p): New predicate.
6354 (return_addr_reg_needed_p): Likewise.
6355 (save_local_or_in_reg_p): Likewise.
6356 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
6357 (SORR_SAVE, SORR_RESTORE): Delete.
6358 (sorr_pred_t): New typedef.
6359 (sorr_act_t): New enum.
6360 (save_or_restore_regs): Rename to...
6361 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
6362 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
6363 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
6364 mechanism. Add CFI information for double-word saves in 32-bit mode.
6365 (emit_adjust_base_to_offset): New function extracted from...
6366 (emit_save_or_restore_regs): ...this. Rename the rest to...
6367 (emit_save_or_restore_regs_global_fp_regs): ...this.
6368 (emit_save_or_restore_regs_local_in_regs): New function.
6369 (gen_create_flat_frame_[123]): New functions.
6370 (sparc_expand_prologue): Use SIZE local variable. Adjust.
6371 (sparc_flat_expand_prologue): New function.
6372 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
6373 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
6374 (sparc_flat_expand_epilogue): New function.
6375 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
6376 (output_return): Likewise.
6377 (output_sibcall): Likewise.
6378 (sparc_output_mi_thunk): Likewise.
6379 (sparc_frame_pointer_required): Likewise.
6380 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
6381 function optimization.
6382 * config/sparc/sparc.md (flat): New attribute.
6383 (prologue): Add TARGET_FLAT handling.
6384 (save_register_window): Disable if TARGET_FLAT.
6385 (create_flat_frame_[123]): New patterns.
6386 (epilogue): Add TARGET_FLAT handling.
6387 (sibcall_epilogue): Likewise.
6388 (eh_return): New expander.
6389 (eh_return_internal): New insn and splitter.
6390 (return_internal): Add TARGET_FLAT handling.
6391 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
6392 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
6393 (nonlocal_goto): Add TARGET_FLAT handling.
6394 * config/sparc/t-elf: Add -mflat multilib.
6395 * config/sparc/t-leon: Likewise.
6397 2011-06-10 Jan Hubicka <jh@suse.cz>
6399 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
6400 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
6401 (self_recursive_p): Use cgraph_function_node.
6402 (propagate_pure_const): Likewise.
6403 (propagate_nothrow): Likewise.
6404 * ipa-reference.c (ipa_reference_get_not_read_global): Use
6405 cgraph_function_node.
6406 (propagate_bits): Likewise.
6407 (propagate): Likewise.
6409 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6410 Richard Earnshaw <rearnsha@arm.com>
6412 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
6413 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
6414 (*thumb2_movdi_vfp): Delete.
6415 (*arm_movdi_vfp_cortexa8): Delete.
6416 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
6417 (*movdi_vfp_cortexa8): Likewise.
6419 2011-06-10 Richard Guenther <rguenther@suse.de>
6421 * stor-layout.c (initialize_sizetypes): Give names to all
6424 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
6426 PR tree-optimization/49318
6427 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
6428 irrelevant pattern statements.
6430 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
6432 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
6435 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
6438 2011-06-09 Jan Hubicka <jh@suse.cz>
6440 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
6441 do not recompute reachable flag.
6442 (cgraph_finalize_function, cgraph_analyze_functions): Set
6443 redefined_extern_inline here.
6445 2011-06-09 Jan Hubicka <jh@suse.cz>
6447 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
6448 (cgraph_only_called_directly_p): ... this one; bring offline.
6449 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6450 varpool_used_from_object_file_p): Drop names from the declaratoin.
6451 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
6452 collect_callers_of_node): New.
6453 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
6454 (cgraph_edge_recursive_p): Use cgraph_function_node.
6455 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
6456 (cgraph_node_cannot_be_local_p_1): Break out from ...
6457 (cgraph_node_can_be_local_p): ... here; walk aliases.
6458 (cgraph_for_node_thunks_and_aliases): New function.
6459 (cgraph_for_node_and_aliases): New function.
6460 (cgraph_make_node_local_1): Break out from ...
6461 (cgraph_make_node_local) ... here; use
6462 cgraph_for_node_thunks_and_aliases.
6463 (cgraph_set_nothrow_flag_1): Break out from ...
6464 (cgraph_set_nothrow_flag) ... here;
6465 use cgraph_for_node_thunks_and_aliases.
6466 (cgraph_set_const_flag_1): Break out from ...
6467 (cgraph_set_const_flag) ... here;
6468 use cgraph_for_node_thunks_and_aliases.
6469 (cgraph_set_pure_flag_1): Break out from ...
6470 (cgraph_set_pure_flag) ... here;
6471 use cgraph_for_node_thunks_and_aliases.
6472 (cgraph_propagate_frequency_1): Break out from ...
6473 (cgraph_propagate_frequency) ... here; use
6474 cgraph_for_node_thunks_and_aliases.
6475 (cgraph_used_from_object_file_p): Do not care about aliases.
6476 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
6478 (collect_callers_of_node_1, collect_callers_of_node): New functions.
6480 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
6482 PR rtl-optimization/49154
6483 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
6484 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
6485 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
6486 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
6487 * config/cris/cris.h (cris_register_move_cost): Remove
6488 !TARGET_V32 code. Tweak comments.
6490 2011-06-09 Jan Hubicka <jh@suse.cz>
6492 * cgraphbuild.c (record_eh_tables): Mark personality function as having
6495 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
6497 PR rtl-optimization/49154
6498 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
6499 is a matching slot in the hashtable, assign it to classes_ptr.
6501 PR rtl-optimization/49154
6502 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
6504 * doc/tm.texi: Regenerate.
6506 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
6509 * config/sh/sh.md (UNSPEC_CHKADD): New.
6510 (chk_guard_add): New define_insn_and_split.
6511 (symGOT_load): Use chk_guard_add instead of blockage.
6513 2011-06-09 Kai Tietz <ktietz@redhat.com>
6515 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
6517 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
6519 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
6521 2011-06-09 Wei Guozhi <carrot@google.com>
6524 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
6525 (peephole2 for conditional move): Generate 16 bit instructions.
6527 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
6529 * config/i386/i386.md (*movdi_internal_rex64): Merge
6530 alternatives 6 and 8.
6532 2011-06-09 David Li <davidxl@google.com>
6534 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
6535 * passes.c (passr_eq): New function.
6536 (create_pass_tab): New function.
6537 (pass_traverse): New function.
6538 (dump_one_pass): New function.
6539 (dump_pass_list): New function.
6540 (dump_passes): New function.
6542 2011-06-09 David Li <davidxl@google.com>
6544 * tree-complex.c (tree_lower_complex): Gate cleanup.
6545 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
6546 (execute_optimize_stdarg): Ditto.
6547 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
6548 (execute_cleanup_eh_1): Ditto.
6549 (execute_cleanup_eh): Ditto.
6550 * gcse.c (gate_rtl_pre): Ditto.
6551 (execute_rtl_pre): Ditto.
6552 * except.c (finish_eh_generation): Ditto.
6553 (convert_to_eh_region_ranges): Ditto.
6554 * cprop.c (one_cprop_pass): Ditto.
6556 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
6559 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
6560 in all basic blocks.
6562 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6564 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
6565 (HAVE_ENABLE_EXECUTE_STACK): Define.
6566 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
6567 (HAVE_ENABLE_EXECUTE_STACK): Define.
6568 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
6569 (HAVE_ENABLE_EXECUTE_STACK): Define.
6570 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
6571 (ENABLE_EXECUTE_STACK): Remove.
6572 (HAVE_ENABLE_EXECUTE_STACK): Define.
6573 [IN_LIBGCC2]: Don't include <windows.h>.
6574 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
6575 (HAVE_ENABLE_EXECUTE_STACK): Define.
6576 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
6577 (HAVE_ENABLE_EXECUTE_STACK): Define.
6578 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
6579 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
6580 (HAVE_ENABLE_EXECUTE_STACK): Define.
6581 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
6582 (HAVE_ENABLE_EXECUTE_STACK): Define.
6583 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
6584 (HAVE_ENABLE_EXECUTE_STACK): Define.
6585 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
6586 (HAVE_ENABLE_EXECUTE_STACK): Define.
6587 * config/alpha/alpha.c (alpha_trampoline_init): Test
6588 HAVE_ENABLE_EXECUTE_STACK.
6589 * config/i386/i386.c (ix86_trampoline_init): Likewise.
6590 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
6591 (sparc64_initialize_trampoline): Likewise.
6592 * libgcc2.c [L_enable_execute_stack]: Remove.
6593 * system.h (ENABLE_EXECUTE_STACK): Poison.
6594 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
6595 * doc/tm.texi: Regenerate.
6596 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
6598 2011-06-09 Jakub Jelinek <jakub@redhat.com>
6601 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
6602 variable. After resetting and rescanning insn continue with previous
6605 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6607 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
6608 (gcc_cv_ld_hidden): Likewise.
6609 * configure: Regenerate.
6610 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
6611 (ix86_stack_protect_fail): Mark unused.
6612 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
6613 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
6614 [TARGET_MACHO]: Don't define.
6615 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
6616 (TARGET_STACK_PROTECT_FAIL): Likewise.
6617 (rs6000_stack_protect_fail): Mark unused.
6618 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
6619 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
6621 2011-06-08 Andi Kleen <ak@linux.intel.com>
6623 * varasm.c (get_section): Print location of other conflict
6624 for section conflicts.
6626 2011-06-08 Andi Kleen <ak@linux.intel.com>
6628 * config/i386/driver-i386.c (host_detect_local_cpu):
6629 Add model 0x2d Intel CPU.
6631 2011-06-08 Andi Kleen <ak@linux.intel.com>
6633 * reginfo.c (global_regs_decl): Add.
6634 (globalize_reg): Add decl parameter. Compute location. Pass location
6635 to warnings and add inform. Store decl in global_regs_decl.
6636 * rtl.h (globalize_reg): Update prototype.
6637 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
6639 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
6641 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
6643 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
6646 * config/sh/predicates.md (general_movsrc_operand): Check
6647 mode for memory with indexed address for QI and HImode.
6648 (general_movdst_operand): Likewise.
6650 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
6652 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
6654 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
6656 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
6657 (num_ssa_operands): Likewise.
6658 (op_iter_init_phiuse): Forward-declare.
6659 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
6661 2011-06-08 Nick Clifton <nickc@redhat.com>
6663 * doc/invoke.texi (ARM Options): Update description of
6666 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
6668 * config/i386/driver-i386.c (host_detect_local_cpu): Support
6669 unknown Intel family 0x6 CPUs.
6671 2011-06-08 Martin Jambor <mjambor@suse.cz>
6673 * tree-sra.c (mark_rw_status): Removed.
6674 (analyze_access_subtree): New parameter parent instead of
6675 mark_read and mark_write, propagate from that.
6677 2011-06-08 Julian Brown <julian@codesourcery.com>
6679 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
6680 for double-precision helper functions in hard-float mode if only
6681 single-precision arithmetic is supported in hardware.
6683 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
6685 PR rtl-optimization/49303
6686 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
6687 code_motion_path_driver returned 0 or 1.
6688 (sel_region_finish): Clear h_d_i_d.
6690 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
6692 * config/sh/sh.c (prepare_move_operands): Set pic register
6693 appropriately for global and local dynamic tls models even
6694 if flag_pic is unset.
6696 2011-06-07 Jason Merrill <jason@redhat.com>
6698 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
6700 2011-06-07 Xinliang David Li <davidxl@google.com>
6701 * passes.c (enable_disable_pass): Handle assembler name.
6702 (is_pass_explicitly_enabled_or_disabled): Ditto.
6704 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6706 PR tree-optimization/48497
6707 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
6709 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6711 PR tree-optimization/46728
6712 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
6713 to use gimple_val_nonnegative_real_p.
6714 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
6715 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
6717 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
6719 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
6721 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
6723 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
6726 2011-06-07 Richard Guenther <rguenther@suse.de>
6728 * stor-layout.c (initialize_sizetypes): Initialize all
6729 sizetypes based on target definitions.
6730 (set_sizetype): Remove.
6731 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
6732 * tree.h (set_sizetype): Remove.
6734 2011-06-07 Nick Clifton <nickc@redhat.com>
6736 * config.gcc: Unify V850 architecture options and add support for
6737 newer V850 architectures.
6738 * config/v850/t-v850e: Delete.
6740 2011-06-07 Richard Guenther <rguenther@suse.de>
6742 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
6743 Call set_sizetype from here.
6745 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
6747 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
6748 (*maddhisi4tb, *maddhisi4tt): New define_insns.
6750 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
6751 Andrew Stubbs <ams@codesourcery.com>
6753 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
6755 * doc/md.texi (Canonicalization of Instructions): Document widening
6756 multiply canonicalization.
6758 2011-06-07 Jakub Jelinek <jakub@redhat.com>
6760 PR gcov-profile/49299
6761 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
6763 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
6765 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
6767 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
6768 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
6769 vect_recog_pow_pattern): Likewise.
6770 (vect_pattern_recog_1): Remove declaration.
6771 (widened_name_p): Remove declaration. Add new argument to specify
6772 whether to check that both types are either signed or unsigned.
6773 (vect_recog_widen_mult_pattern): Update documentation. Handle
6774 unsigned patterns and multiplication by constants.
6775 (vect_pattern_recog_1): Update vect_recog_func references. Use
6776 statement information from the statement returned from pattern
6777 detection functions.
6778 (vect_pattern_recog): Update vect_recog_func reference.
6779 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
6780 multiplication by a constant use the type of the other operand.
6782 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
6784 PR rtl-optimization/49145
6785 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
6787 2011-06-06 Jakub Jelinek <jakub@redhat.com>
6790 * dwarf2out.c (native_encode_initializer): Decrement count in each
6794 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
6798 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
6799 if stmt folded into nothing.
6800 * tree-inline.c (fold_marked_statements): If a builtin at the end of
6801 a bb folded into nothing, just update cgraph edges and move to next bb.
6802 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
6803 to be NULL. Don't compute count and frequency if new_call is NULL.
6805 2011-06-04 Diego Novillo <dnovillo@google.com>
6807 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
6808 (cgraph.o): Likewise.
6809 (cgraphunit.o): Likewise.
6810 * cgraphunit.c: Include lto-streamer.h
6811 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
6813 * lto-streamer-in.c (unpack_value_fields): Call
6814 streamer_hooks.unpack_value_fields if set.
6815 (lto_materialize_tree): For unhandled nodes, first try to
6816 call lto_streamer_hooks.alloc_tree, if it exists.
6817 (lto_input_ts_decl_common_tree_pointers): Move reading of
6818 DECL_INITIAL to lto_streamer_read_tree.
6819 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
6820 (lto_streamer_read_tree): New.
6821 (lto_reader_init): Rename from lto_init_reader.
6822 Move initialization code to lto/lto.c.
6823 * lto-streamer-out.c (pack_value_fields): Call
6824 streamer_hooks.pack_value_fields if set.
6825 (lto_output_tree_ref): For tree nodes that are not normally indexable,
6826 call streamer_hooks.indexable_with_decls_p before giving up.
6827 (lto_output_ts_decl_common_tree_pointers): Move handling
6828 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
6829 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
6830 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
6831 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
6832 (lto_streamer_write_tree): New.
6833 (lto_output): Call lto_streamer_init directly.
6834 (lto_writer_init): Remove.
6835 * lto-streamer.c (streamer_hooks): New.
6836 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
6837 instead of lto_preload_common_nodes.
6838 (lto_is_streamable): Move from lto-streamer.h
6839 (lto_streamer_hooks_init): New.
6840 (streamer_hooks): New.
6841 (streamer_hooks_init): New.
6842 * lto-streamer.h (struct output_block): Forward declare.
6843 (struct lto_input_block): Likewise.
6844 (struct data_in): Likewise.
6845 (struct bitpack_d): Likewise.
6846 (struct streamer_hooks): Declare.
6847 (streamer_hooks): Declare.
6848 (lto_streamer_hooks_init): Declare.
6849 (lto_streamer_write_tree): Declare.
6850 (lto_streamer_read_tree): Declare.
6851 (streamer_hooks_init): Declare.
6852 (lto_is_streamable): Move to lto-streamer.c
6854 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6856 * longlong.h (smul_ppmm): The resulting register pair contains the
6857 higher order word first.
6859 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6861 PR tree-optimization/46728
6862 * builtins.c (powi_table): Remove.
6863 (powi_lookup_cost): Remove.
6864 (powi_cost): Remove.
6865 (expand_powi_1): Remove.
6866 (expand_powi): Remove.
6867 (expand_builtin_pow_root): Remove.
6868 (expand_builtin_pow): Remove.
6869 (expand_builtin_powi): Eliminate handling of constant exponent.
6870 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
6872 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6874 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
6876 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6878 * dce.c (reset_unmarked_insns_debug_uses): New.
6879 (delete_unmarked_insns): Skip debug insns.
6880 (prescan_insns_for_dce): Likewise.
6881 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
6882 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
6883 active reg can be found.
6884 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
6885 (convert_regs_1): Use it.
6887 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6889 * tree-pretty-print.c (dump_function_header): Add flags.
6890 Don't dump decl_uid with nouid.
6891 * tree-pretty-print.h (dump_function_header): Adjust.
6892 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
6893 * passes.c (pass_init_dump_file): Pass dump_flags on.
6894 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
6896 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
6899 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
6901 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
6903 PR tree-optimization/49243
6904 * calls.c (setjmp_call_p): Also check if fndecl has the
6905 returns_twice attribute.
6907 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6909 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
6912 2011-06-06 Richard Henderson <rth@redhat.com>
6913 Georg-Johann Lay <avr@gjlay.de>
6916 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
6918 * config/avr/avr.md ("insv"): New insn expander.
6919 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
6920 "*insv.not.io", "*insv.reg"): New insns.
6922 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
6925 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
6926 to nonimmediate_operand from memory_operand for the operand that is to
6927 be forced to memory by the expander. Lose the constraints.
6929 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
6931 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
6932 EH return when delayed branches are disabled.
6934 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
6936 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
6937 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
6939 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
6940 Simplify MODE_V1DF and MODE_V2SF handling.
6941 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
6942 Simplify MODE_SF handling.
6944 2011-06-04 Jan Hubicka <jh@suse.cz>
6946 PR tree-optimization/48893
6947 PR tree-optimization/49091
6948 PR tree-optimization/49179
6949 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
6952 2011-06-04 Jan Hubicka <jh@suse.cz>
6955 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
6958 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
6960 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
6962 2011-06-04 Jakub Jelinek <jakub@redhat.com>
6965 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
6966 to be strictly smaller than 1 << shiftcount.
6968 2011-06-04 Jan Hubicka <jh@suse.cz>
6970 PR tree-optimize/48929
6971 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
6974 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
6977 * calls.c (emit_call_1): Prefer the __builtin declaration of
6980 2011-06-03 Diego Novillo <dnovillo@google.com>
6982 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
6983 (lto_input_tree_pointers): Likewise.
6984 * lto-streamer-out.c (pack_value_fields): Likewise.
6985 (lto_output_tree_pointers): Likewise.
6986 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
6987 and OPTIMIZATION_NODE.
6989 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6991 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
6992 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
6993 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
6994 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
6995 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
6996 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
6997 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
6998 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
6999 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
7000 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
7001 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
7002 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
7003 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
7004 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
7005 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
7006 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
7007 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
7008 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
7009 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
7010 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
7011 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
7012 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
7013 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
7014 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
7015 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
7016 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
7017 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
7018 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
7019 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
7020 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
7021 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
7022 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
7023 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
7024 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
7025 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
7026 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
7027 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
7028 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
7029 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
7030 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
7031 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
7032 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
7033 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
7034 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
7035 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
7036 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
7037 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
7038 * system.h (MD_UNWIND_SUPPORT): Poison.
7039 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
7040 * doc/tm.texi: Regenerate.
7041 * unwind-dw2.c: Include md-unwind-support.h instead of
7043 * config/ia64/unwind-ia64.c: Likewise.
7044 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
7046 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
7048 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
7050 2011-06-03 Richard Henderson <rth@redhat.com>
7051 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7053 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
7054 (sigill_hdlr): Correct insn, insn size.
7055 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
7057 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7059 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
7061 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
7062 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
7063 * config/mips/t-iris: Remove.
7064 * config/mips/t-irix6: New file.
7065 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
7067 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7069 * Makefile.in (LIB2ADDEHDEP): Remove.
7070 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
7071 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
7072 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
7073 * config/t-darwin (LIB2ADDEHDEP): Remove.
7074 * config/t-freebsd (LIB2ADDEHDEP): Remove.
7075 * config/t-linux (LIB2ADDEHDEP): Remove.
7077 2011-06-03 Diego Novillo <dnovillo@google.com>
7079 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
7080 (lto_register_var_decl_in_symtab): Likewise.
7081 (lto_register_function_decl_in_symtab): Likewise.
7082 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
7083 logic to uniquify_nodes.
7085 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7087 * config/alpha/t-osf5: Remove.
7088 * config/alpha/t-osf-pthread: Remove.
7089 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
7090 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
7092 2011-06-03 Julian Brown <julian@codesourcery.com>
7094 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
7095 (strongarm1110): Use strongarm tuning.
7096 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
7097 * config/arm/arm.c (arm_strongarm_tune): New.
7098 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7099 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
7100 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
7101 setting, using previous defaults or 1 for Cortex-A5.
7102 (arm_option_override): Set max_insns_skipped from current tuning.
7104 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
7106 * doc/install.texi (Options specification): Document --with-specs.
7108 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7110 * config/arm/neon.md (orndi3_neon): Actually split it.
7112 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
7114 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
7115 * var-tracking.c (reverse_op): Limite recurse depth to 5.
7117 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
7120 * target.def (delay_sched2, delay_vartrack): New.
7121 * doc/tm.texi.in: Update.
7122 * doc/tm.texi: Rebuild.
7123 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
7124 * var-tracking.c (gate_handle_var_tracking): Likewise.
7125 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
7126 (bfin_flag_var_tracking): Drop.
7127 (output_file_start): Don't save and override flag_var_tracking.
7128 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
7129 (bfin_reorg): Test original variables.
7130 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7131 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
7132 (ia64_flag_var_tracking): Drop.
7133 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7134 (ia64_file_start): Don't save and override flag_var_tracking.
7135 (ia64_override_options_after_change): Ditto
7136 flag_schedule_insns_after_reload.
7137 (ia64_reorg): Test original variables.
7138 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
7139 (picochip_flag_var_tracking): Drop.
7140 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
7141 (picochip_option_override): Don't save and override
7142 flag_schedule_insns_after_reload.
7143 (picochip_asm_file_start): Ditto flag_var_tracking.
7144 (picochip_reorg): Test original variables.
7145 * config/spu/spu.c (spu_flag_var_tracking): Drop.
7146 (TARGET_DELAY_VARTRACK): Define.
7147 (spu_var_tracking): New.
7148 (spu_machine_dependent_reorg): Call it.
7149 (asm_file_start): Don't save and override flag_var_tracking.
7151 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
7154 * config/sh/predicates.md (general_movsrc_operand): Return 0
7155 for memory and memory subreg of which address is an invalid
7156 indexed address for QI and HImode.
7157 (general_movdst_operand): Likewise.
7159 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
7161 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
7162 edges only, when there is a non-local label in the function.
7163 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
7165 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
7167 * config/i386/constraints.md (Y3): New register constraint.
7168 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
7169 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
7170 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
7171 *sse2_interleave_lowv2df.
7173 2011-06-02 Julian Brown <julian@codesourcery.com>
7175 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
7176 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
7177 (arm_cortex_a5_tune): New.
7179 2011-06-02 Julian Brown <julian@codesourcery.com>
7181 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
7182 * config/arm/arm.c (arm_default_branch_cost): New.
7183 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
7184 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
7185 (arm_fa726_tune): Set branch_cost field using
7186 arm_default_branch_cost.
7187 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
7188 current_tune structure.
7189 * dojump.c (tm_p.h): Include file.
7191 2011-06-02 Julian Brown <julian@codesourcery.com>
7193 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
7195 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
7196 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
7197 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
7199 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
7200 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
7201 (arm_fa726te_tune): Add prefer_constant_pool setting.
7202 (arm_v6t2_tune, arm_cortex_tune): New.
7203 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
7204 prefer_constant_pool setting.
7206 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
7208 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
7210 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
7211 (*movdf_internal) <case 6,7,8>: Ditto.
7213 * config/i386/constraints.md (Y4): New register constraint.
7214 * config/i386/sse.md (vec_set<mode>_0): Merge with
7215 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
7216 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
7217 *vec_extractv2di_1_sse.
7218 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
7219 and *vec_concatv2di_rex64_sse.
7221 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
7224 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
7225 of cgraph_local_info for null before attempting to use it.
7227 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
7229 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
7230 (current_function_dynamic_alloc_count): Delete.
7231 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
7232 (expand_builtin_nonlocal_goto): Remove obsolete comment.
7233 (expand_builtin_update_setjmp_buf): Remove dead code.
7234 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
7235 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
7237 * function.c (instantiate_virtual_regs): Likewise.
7238 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
7239 for a block with a single abnormal incoming edge.
7240 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
7241 (SETJMP_VIA_SAVE_AREA): Delete.
7242 * config/sparc/sparc-protos.h (load_got_register): Declare.
7243 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
7244 (load_got_register): Make global.
7245 (sparc_frame_pointer_required): Add 'static'.
7246 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
7247 (sparc_builtin_setjmp_frame_value): New function.
7248 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
7249 (save_stack_nonlocal): New expander.
7250 (restore_stack_nonlocal): Likewise.
7251 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
7252 (nonlocal_goto_internal): New insn.
7253 (goto_handler_and_restore): Delete.
7254 (builtin_setjmp_setup): Likewise.
7255 (do_builtin_setjmp_setup): Likewise.
7257 (builtin_setjmp_receiver): New expander.
7259 2011-06-01 David Li <davidxl@google.com>
7262 * tree-pretty-print.c (dump_function_header): Format cleanup.
7264 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
7267 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
7268 needed when original operands are used for msw_skip comparison.
7270 2011-06-01 Jakub Jelinek <jakub@redhat.com>
7273 * var-tracking.c (add_uses, add_stores): Don't call
7274 cselib_subst_to_values on ENTRY_VALUE.
7276 2011-06-01 Diego Novillo <dnovillo@google.com>
7278 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
7279 output_record_start with LTO_null instead of output_zero.
7280 (lto_output_ts_binfo_tree_pointers): Likewise.
7281 (lto_output_tree): Likewise.
7282 (output_eh_try_list): Likewise.
7283 (output_eh_region): Likewise.
7284 (output_eh_lp): Likewise.
7285 (output_eh_regions): Likewise.
7286 (output_bb): Likewise.
7287 (output_function): Likewise.
7288 (output_unreferenced_globals): Likewise.
7289 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
7290 instead of NUM_TREE_CODES.
7291 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
7292 (lto_output_int_in_range): Change << to >> when shifting VAL.
7294 2011-06-01 Diego Novillo <dnovillo@google.com>
7296 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
7297 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
7299 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
7302 * optabs.h (valid_multiword_target_p): Declare.
7303 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
7304 doing multi-word operations.
7305 * optabs.c (expand_binop): Likewise.
7306 (expand_doubleword_bswap): Likewise.
7307 (expand_absneg_bit): Likewise.
7308 (expand_unop): Likewise.
7309 (expand_copysign_bit): Likewise.
7310 (multiword_target_p): New function.
7312 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
7314 PR rtl-optimization/48830
7315 PR rtl-optimization/48808
7316 PR rtl-optimization/48792
7317 * reload.c (push_reload): Check contains_reg_of_mode.
7318 * reload1.c (strip_paradoxical_subreg): New function.
7319 (gen_reload_chain_without_interm_reg_p): Use it to handle
7320 paradoxical subregs.
7321 (emit_output_reload_insns, gen_reload): Likewise.
7323 2011-06-01 David Li <davidxl@google.com>
7325 * predict.c : Change pass name
7328 * tree-profile.c: Ditto.
7331 2011-06-01 David Li <davidxl@google.com>
7333 * tree-pretty-print.c (dump_function_header): New function.
7334 * final.c (rest_of_clean_state): Use header dumper.
7335 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
7336 * passes.c (pass_init_dump_file): Use header dumper.
7338 2011-06-01 Jakub Jelinek <jakub@redhat.com>
7340 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
7341 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
7342 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
7344 (mem_loc_descriptor): Use them.
7346 * var-tracking.c (create_entry_value): New function.
7347 (vt_add_function_parameter): Use it.
7349 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7351 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
7352 Include <signal.h>, <ucontext.h>.
7353 (sigill_caught): Define.
7354 (sigill_hdlr): New function.
7355 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
7356 insns can be executed.
7357 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
7358 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
7360 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7362 * config/t-slibgcc-darwin: Move to ...
7363 * config/t-slibgcc-dummy: ... this. Clarify comments.
7364 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
7365 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
7366 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
7367 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
7368 Remove i386/t-crtstuff from tmake_file.
7369 (i[34567]86-*-solaris2*): Remove t-svr4,
7370 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
7372 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
7373 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
7374 sparc/t-crtfm from tmake_file.
7375 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
7376 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
7378 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
7379 * config/i386/t-nwld (SHLIB_LINK): Remove.
7380 * config/i386/t-rtems-i386: Rename to ...
7381 * config/i386/t-rtems: ... this.
7382 ($(T)crti.o, $(T)crtn.o): Remove.
7383 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
7384 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
7385 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
7386 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
7387 EXTRA_MULTILIB_PARTS): Remove.
7388 * config/sparc/t-sol2-64: Likewise.
7389 * config/sparc/t-sol2: Remove.
7390 * config/sparc/t-crtin: Remove.
7391 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
7392 * config/i386/gmon-sol2.c: Remove.
7393 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
7394 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
7395 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
7396 * config/i386/sol2-gc1.asm: Remove.
7397 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
7398 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
7399 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
7400 * config/t-slibgcc-sld: Remove.
7402 2011-06-01 Jakub Jelinek <jakub@redhat.com>
7404 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
7405 base_type_for_mode with op_mode instead of mode.
7407 2011-06-01 Paul Brook <paul@cpodesourcery.com>
7409 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
7411 * config/arm/arm-tune.md: Regenerate.
7412 * config/arm/arm-tables.opt: Regenerate.
7413 * config/arm/arm.c (FL_DIV): Rename...
7414 (FL_THUMB_DIV): ... to this.
7415 (FL_ARM_DIV): Define.
7416 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
7417 (arm_arch_hwdiv): Remove.
7418 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
7419 (arm_issue_rate): Add cortexr5.
7420 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
7421 __ARM_ARCH_EXT_IDIV__.
7422 (TARGET_IDIV): Define.
7423 (arm_arch_hwdiv): Remove.
7424 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
7425 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
7426 (divsi3, udivsi3): New patterns.
7427 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
7428 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
7430 2011-06-01 Martin Jambor <mjambor@suse.cz>
7432 * ipa-utils.c (ipa_dfs_info): New field scc_no.
7433 * ipa-utils.c (searchc): Set scc_no.
7435 2011-06-01 Martin Jambor <mjambor@suse.cz>
7437 * ipa-utils.c (searchc_env): New field allow_overwritable.
7438 (searchc): do not ignore edges to overwritable nodes if indicated
7439 by env->allow_overwritable.
7440 (ipa_reduced_postorder): Set env.allow_overwritable.
7442 2011-06-01 Richard Guenther <rguenther@suse.de>
7444 * tree.c (free_lang_data): Do not reset boolean_type_node nor
7446 * lto-streamer.c (lto_record_common_node): Take node pointer,
7447 do not register types.
7448 (lto_preload_common_nodes): Explicitly skip preloading nodes
7449 that differ between frontends.
7451 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
7453 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
7456 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
7458 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
7459 parameter value for dump. Dump cost on outermost call only.
7460 (rs6000_memory_move_cost): Dump cost on outermost call only.
7462 2011-05-31 Jakub Jelinek <jakub@redhat.com>
7464 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
7465 DW_OP_GNU_convert ops.
7467 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
7468 cselib_preserve_constants.
7469 (cselib_lookup_1): If cselib_preserve_constants,
7470 a new VALUE is being created for REG and there is a VALUE for the
7471 same register in wider mode, add another loc with lowpart SUBREG of
7473 (cselib_subst_to_values): Handle ENTRY_VALUE.
7474 * var-tracking.c (replace_expr_with_values): Return NULL for
7476 * dwarf2out.c (convert_descriptor_to_signed): New function.
7477 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
7478 instead of two shifts.
7479 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
7480 the right mode if needed.
7481 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
7482 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
7483 convert_descriptor_to_signed.
7484 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
7485 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
7488 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
7490 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
7492 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
7493 of X87MODEI12 and SWI48x instead of SSEMODEI24.
7494 (SWI248x): New mode iterator, rename from X87MODEI.
7495 (X87MODEI): Remove mode iterator.
7496 (X87MODEI12): Ditto.
7497 (SSEMODEI24): Ditto.
7499 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
7501 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
7502 * doc/invoke.texi: Document max-vartrack-expr-depth.
7503 * var-tracking.c (EXPR_DEPTH): New.
7504 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
7506 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
7508 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
7509 * config/i386/sse.md: Add n to negated FMA pattern names.
7511 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
7513 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
7515 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
7517 * gengtype-state.c (read_state_params_structs): Initialize previous.
7519 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
7521 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
7522 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
7524 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
7526 * config/i386/i386.md (*movtf_internal): Avoid allocating general
7527 registers. Penalize F*r->o alternative to prevent partial memory
7528 stalls. Slightly penalize *roF->*r alternative. Generate SSE
7529 CONST_DOUBLE immediates when optimizing function for size. Do not move
7530 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7531 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
7532 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
7533 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
7535 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
7537 (fp_register_operand splitters): Use fp_register_operand
7538 constraint. Do not use FP_REG_P in insn condition.
7539 (any_fp_register_operand splitters): Use any_fp_register_operand
7540 constraint. Do not use ANY_FP_REG_P in insn condition.
7542 2011-05-31 Jan Hubicka <jh@suse.cz>
7544 * cgraph.h (cgraph_inline_failed_t): Give enum a name
7545 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
7546 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
7547 (lto_output_edge): Use output_enum and var_len_unsigned.
7548 (lto_output_varpool_node): Likewise.
7549 (input_overwrite_node): Do not take resolution parameter;
7550 extract it from a bitpack.
7551 (input_node): Do not read resolution; use input_enum and
7553 (input_varpool_node): Likewise.
7554 (input_edge): Likewise.
7555 (input_cgraph_1): Likewise.
7557 2011-05-31 Richard Guenther <rguenther@suse.de>
7559 * gimple.c (gimple_register_canonical_type): Do not register
7560 any types via gimple_register_type.
7562 2011-05-31 Jan Hubicka <jh@suse.cz>
7564 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
7567 2011-05-31 Jakub Jelinek <jakub@redhat.com>
7569 PR rtl-optimization/49235
7570 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
7571 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
7573 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
7575 PR tree-optimization/49093
7576 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
7579 2011-05-31 Dodji Seketeli <dodji@redhat.com>
7582 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
7583 for concrete functions containing the code of cloned functions.
7585 2011-05-31 Richard Guenther <rguenther@suse.de>
7587 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
7589 (forward_propagate_into_comparison_1): ... this.
7590 (forward_propagate_comparison): Rename to ...
7591 (forward_propagate_into_comparison): ... this. Split out
7592 real forward propagation code to ...
7593 (forward_propagate_comparison): ... this.
7594 (forward_propagate_into_gimple_cond): Remove looping.
7595 (forward_propagate_into_cond): Likewise.
7596 (simplify_not_neg_expr): Return whether we have done something.
7597 (simplify_gimple_switch): Likewise.
7598 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
7599 (ssa_forward_propagate_and_combine): ... this. Re-structure
7600 to do a forward forward-propagation walk on BBs and a backward
7601 stmt combining walk on BBs. Consistently re-scan changed statements.
7602 (pass_forwprop): Adjust.
7604 2011-05-30 Ian Lance Taylor <iant@google.com>
7606 * godump.c (go_format_type): Correct length of name added to
7607 obstack for anonymous field.
7609 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
7612 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
7613 part of the second operand is 0.
7615 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
7617 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
7618 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
7619 to memory for !TARGET_MEMORY_MISMATCH_STALL.
7620 (*movdf_internal_rex64): Do not penalize F->r alternative.
7621 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
7622 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
7623 when optimizing function for size. Do not move CONST_DOUBLEs
7624 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
7625 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
7626 SUBREGs. Do not check for MEM_P operands in the insn condition,
7627 check for ANY_FP_REGNO_P instead.
7628 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
7629 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
7631 * config/i386/i386.c (ix86_option_override_internal): Do not
7632 set TARGET_INTEGER_DFMODE_MOVES here.
7634 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
7637 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
7639 2011-05-30 Jakub Jelinek <jakub@redhat.com>
7641 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
7642 DW_TAG_rvalue_reference_type even for
7643 -gdwarf-4 -fno-debug-types-section.
7645 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7647 PR tree-optimization/46728
7648 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
7649 (build_and_insert_binop): New.
7650 (gimple_expand_builtin_pow): Reorder args for
7651 build_and_insert_call; use build_and_insert_binop; add more
7652 optimizations for fractional exponents.
7654 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
7659 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7661 * tree.h (struct tree_identifier): Inherit from tree_typed, not
7663 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7664 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7665 TS_BASE instead of TS_COMMON.
7666 * varasm.c (assemble_name): Remove assert.
7668 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
7670 * config.gcc: Keep obselete list sorted.
7672 2011-05-30 Jakub Jelinek <jakub@redhat.com>
7673 Eric Botcazou <ebotcazou@adacore.com>
7675 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
7676 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
7677 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
7678 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
7679 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
7681 2011-05-30 Richard Guenther <rguenther@suse.de>
7683 * gimple.c (gimple_types_compatible_p_1): Compare record
7684 and union type members properly.
7686 2011-05-30 Richard Guenther <rguenther@suse.de>
7688 PR tree-optimization/49210
7689 * ipa-split.c (split_function): Care for the case where the call
7690 result is not trivially convertible to the result holding variable.
7692 2011-05-30 Richard Guenther <rguenther@suse.de>
7694 PR tree-optimization/49218
7695 * tree-vrp.c (adjust_range_with_scev): Properly check whether
7698 2011-05-30 Richard Guenther <rguenther@suse.de>
7700 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
7701 New function split out from ...
7702 (forward_propagate_into_gimple_cond): ... here. Adjust.
7703 (forward_propagate_into_cond): Likewise.
7704 (forward_propagate_comparison): Also propagate into
7705 comparisons on assignment RHS. Change return value to
7706 behave similar to forward_propagate_into_cond.
7707 (tree_ssa_forward_propagate_single_use_vars): Handle
7708 strict-overflow warnings properly for forward_propagate_comparison.
7710 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7712 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
7714 * configure: Regenerate.
7716 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
7718 PR tree-optimization/49199
7719 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
7720 non-reduction operands are either defined in the loop or by induction.
7722 2011-05-29 Xinliang David Li <davidxl@google.com>
7724 * opts-global.c (handle_common_deferred_options): Handle new options.
7725 * passes.c (register_one_dump_file): Call register_pass_name.
7726 (execute_one_pass): Check explicit enable/disable flag.
7727 (passr_hash): New function.
7729 (register_pass_name): Ditto.
7730 (get_pass_by_name): Ditto.
7733 (enable_pass): Ditto.
7734 (disable_pass): Ditto.
7735 (is_pass_explicitly_enabled_or_disabled): Ditto.
7737 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
7739 * config/i386/i386.md (*movoi_internal_avx): Use
7740 standard_sse_constant_opcode for alternative 0.
7741 (*movti_internal_sse): Ditto.
7742 (*movti_internal_rex64): Use standard_sse_constant_opcode for
7744 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
7746 (*movsi_internal): Ditto.
7747 (*movdi_internal): Ditto. Add ssecvt type moves.
7749 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
7752 * rtlanal.c (simplify_subreg_regno): Adjust comment.
7754 2011-05-29 Jakub Jelinek <jakub@redhat.com>
7756 PR rtl-optimization/49095
7757 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
7758 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
7760 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
7763 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
7764 recurse_p argument. Only follow register copies if it is set,
7765 and prevent mips_find_pic_call_symbol from recursing.
7766 (mips_find_pic_call_symbol): Add a recurse_p argument.
7767 Pass it to mips_pic_call_symbol_from_set.
7768 (mips_annotate_pic_calls): Update accordingly.
7770 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
7772 * emit-rtl.c (try_split): Use a loop to search for
7773 NOTE_INSN_CALL_ARG_LOCATIONs.
7775 2011-05-29 Richard Guenther <rguenther@suse.de>
7777 PR tree-optimization/49217
7778 * ipa-pure-const.c (propagate_pure_const): Fix typos.
7780 2011-05-28 Jan Hubicka <jh@suse.cz>
7782 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
7784 (string_slot_free): Remove
7785 (create_output_block): Initialize obstack.
7786 (destroy_output_block): Free obstack.
7787 (lto_string_index): Add PERSISTENT parameter; do not duplicate
7788 the string unless it needs to be added into the hash.
7789 (lto_output_string_with_length): Add persistent attribute;
7790 handle NULL strings.
7791 (lto_output_string): Add PERSISTENT parameter.
7792 (output_string_cst, output_identifier): Simplify.
7793 (lto_output_location_bitpack): Update.
7794 (lto_output_builtin_tree): Update.
7795 * lto-streamer.h (struct output_block): Add obstack.
7796 (lto_output_string, lto_output_string_with_length): Remove
7797 declarations; functions are static now.
7799 2011-05-28 Jan Hubicka <jh@suse.cz>
7801 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
7802 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
7803 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
7804 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
7805 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
7806 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
7807 unpack_ts_decl_with_vis_value_fields,
7808 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
7809 lto_get_builtin_tree): Use enum and variable length i/o.
7810 * basic-block.h (profile_status_d): Add PROFILE_LAST.
7811 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
7813 (bp_pack_enum, bp_unpack_enum): New macros.
7815 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
7817 * genrecog.c: Remove redundant forward declarations.
7819 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
7821 * config.gcc: Deprecate mips*-*-openbsd*.
7823 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
7826 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
7829 2011-05-27 Andrew Pinski <pinskia@gmail.com>
7832 * gengtype.c (vec_prefix_type): New function.
7833 (note_def_vec): Use vec_prefix_type and change the length
7834 attribute to be based on the prefix.
7835 * vec.c: Include coretypes.h before vec.h.
7836 (struct vec_prefix): Remove.
7837 (vec_gc_p_reserve): Change the offsetof to sizeof.
7838 (vec_gc_p_reserve_exact): Likewise.
7839 (vec_heap_p_reserve): Likewise.
7840 (vec_heap_p_reserve_exact): Likewise.
7841 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
7842 (vec_stack_p_reserve): Change the offsetof to sizeof.
7843 (vec_stack_p_reserve_exact): Likewise.
7844 * vec.h (struct vec_prefix): New struct definition.
7845 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
7846 (VEC_T_GTY(T,B)): Likewise.
7847 (DEF_VEC_FUNC_P(T)): Use prefix field.
7848 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
7849 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
7851 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7853 PR tree-optimization/46728
7854 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
7855 (powi_as_mults): Add gimple_set_location.
7856 (build_and_insert_call): New.
7857 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
7858 0.5, 0.25, 0.75, 1./3., or 1./6.
7860 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
7862 * doc/contrib.texi: Update copyright years.
7863 (Contributors): Add Zdenek Sojka.
7865 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
7867 * c-decl.c (c_push_function_context): Copy the current statement
7869 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
7870 (finish_struct): Call building_stmt_list_p instead of checking
7872 * c-parser.c (c_parser_postfix_expression): Likewise.
7873 * c-typeck.c (c_end_compound_stmt): Likewise.
7874 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
7875 * tree-iterator.c (stmt_list_cache): Change to a VEC.
7876 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
7877 (free_stmt_list): Likewise.
7878 * tree.h (struct tree_statement_list): Include typed_tree instead
7880 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
7881 as TS_TYPED instead of TS_COMMON.
7883 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7884 Uros Bizjak <ubizjak@gmail.com>
7886 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
7887 (HAVE_AS_IX86_TLSGDPTL): Define.
7888 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
7889 (HAVE_AS_IX86_TLSLDMPLT): Define.
7890 * configure: Regenerate.
7891 * config.in: Regenerate.
7892 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
7893 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
7894 TARGET_SUN_TLS, use @tlsgdplt or @plt.
7895 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
7896 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
7898 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
7900 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
7902 * sched-int.h (struct _haifa_deps_insn_data): New members cond
7904 (INSN_COND, INSN_REVERSE_COND): New macros.
7905 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
7907 (sched_get_condition_with_rev): Cache the results, and look them up
7909 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
7910 are clobbered by the current insn.
7911 * target.def (exposed_pipline): New sched data hook.
7912 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
7913 * doc/tm.texi: Regenerate.
7915 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7917 PR tree-optimization/49170
7918 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
7921 2011-05-27 Richard Guenther <rguenther@suse.de>
7924 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
7927 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
7929 * haifa-sched.c (sched_scan_info): Remove.
7930 (schedule_block): Call sched_extend_luids rather than sched_init_luids
7932 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
7934 (sched_scan): Remove.
7935 (sched_extend_luids): Renamed from luids_extend_insn and no longer
7936 static. All callers changed.
7937 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
7938 static. All callers changed.
7939 (sched_init_luids): Remove all arguments except the first. All
7940 callers changed. Don't use sched_scan.
7941 (haifa_init_h_i_d): Likewise.
7942 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
7943 manually rather than using sched_init_luids. Likewise with
7944 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
7945 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
7946 rather than sched_init_luids with NULL args.
7947 * sel-sched-ir.c (new_insns): Remove variable.
7948 (sched_scan): New static function, previously in haifa-sched.c. Remove
7949 all arguments but the first two; all callers changed.
7950 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
7951 rather than sched_init_luids.
7952 (sel_init_bbs): Remove second argument. All callers changed.
7953 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
7954 with NULL arguments.
7955 (create_insn_rtx_from_pattern): Likewise.
7956 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
7957 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
7958 (sched_init_insn_luid, sched_extend_luids): Declare.
7959 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
7962 2011-05-27 Richard Guenther <rguenther@suse.de>
7965 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
7966 A CMP B ? (T) true : (T) false for non-integral types T again.
7968 2011-05-27 Jan Hubicka <jh@suse.cz>
7970 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
7971 so 0 means NULL string.
7972 (lto_output_string_with_length): ... here.
7973 (lto_output_string, output_string_cst, output_identifier): Update
7974 handling of NULL strings.
7975 (lto_output_location_bitpack): New function.
7976 (lto_output_location): Use it.
7977 (lto_output_tree_ref): Use output_record_start.
7978 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
7980 * lto-streamer-in.c (string_for_index): Break out from ...; offset
7982 (input_string_internal): ... here;
7983 (input_string_cst, input_identifier, lto_input_string): Update handling
7985 (lto_input_location_bitpack): New function
7986 (lto_input_location): Use it.
7987 (unpack_ts_type_common_value_fields): Pack align & alias in var len
7989 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
7990 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
7991 (bp_pack_value): Sanity check the value range.
7992 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
7994 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
7997 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
7999 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
8000 call_arg_location instructions down the floor.
8002 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
8004 PR rtl-optimization/49154
8005 * ira.c (setup_pressure_classes): Process class without sublcasses
8006 as a candidate for pressure classes.
8008 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
8010 PR rtl-optimization/48575
8011 * genrecog.c (position_type): New enum.
8012 (position): New structure.
8013 (decision): Use position structure instead of a string.
8014 (root_pos, peep2_insn_pos_list): New variables.
8015 (next_position, compare_positions): New functions.
8016 (new_decision): Use position structures instead of strings.
8017 (maybe_both_true): Likewise.
8018 (change_state): Likewise.
8019 (write_tree): Likewise.
8020 (make_insn_sequence): Likewise.
8022 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8024 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
8025 TS_BASE instead of TS_COMMON.
8026 (find_decls_types_r): Check for TS_TYPED structure before looking at
8028 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
8030 (BLOCK_CHAIN): Use new chain field.
8032 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
8034 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
8035 moves expensive on Power7 also.
8037 2011-05-26 Richard Guenther <rguenther@suse.de>
8039 * fold-const.c (fold_unary_loc): Remove bogus code.
8041 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8043 * tree.h (struct tree_identifier): Inherit from tree_typed, not
8045 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
8046 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
8047 TS_BASE instead of TS_COMMON.
8048 * varasm.c (assemble_name): Remove assert.
8050 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
8052 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
8054 * libgcc-std.ver: Delete file.
8056 2011-05-26 Richard Guenther <rguenther@suse.de>
8058 PR tree-optimization/48702
8059 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
8060 only when we know the base address is within bounds.
8061 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
8062 assume the base address of TARGET_MEM_REFs is in bounds.
8064 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8067 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
8068 declaration in TARGET_SOLARIS.
8070 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
8072 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
8073 The instruction is then expanded explicitly.
8074 (supported_compare): Callable instruction.
8075 (compare): Likewise.
8077 2011-05-26 Jakub Jelinek <jakub@redhat.com>
8080 * gimplify.c (shortcut_cond_r): Don't special case
8081 COND_EXPRs if they have void type on one of their arms.
8083 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
8085 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
8086 to reduce duplication, and to achieve a slightly more logical order
8089 2011-05-26 Jakub Jelinek <jakub@redhat.com>
8091 PR tree-optimization/49161
8092 * tree-vrp.c (struct case_info): New type.
8093 (compare_case_labels): Sort case_info structs instead of
8094 trees, and not primarily by CASE_LABEL uids but by
8095 label_for_block indexes.
8096 (find_switch_asserts): Put case labels into struct case_info
8097 array instead of TREE_VEC, adjust sorting, compare label_for_block
8098 values instead of CASE_LABELs.
8100 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8102 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
8103 ("orndi3_neon"): Likewise.
8104 ("bic<mode>3_neon"): Likewise.
8106 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
8108 PR tree-optimization/49038
8109 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
8110 Ensure at least one epilogue iteration if required by data
8112 * tree-vectorizer.h (struct _loop_vec_info): Add new field
8113 to mark loops that require peeling for gaps.
8114 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
8115 (vect_get_known_peeling_cost): Take peeling for gaps into
8117 (vect_transform_loop): Generate epilogue if required by data
8119 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
8120 loop as requiring an epilogue if there are gaps in the end of
8123 2011-05-25 Ian Lance Taylor <iant@google.com>
8125 * godump.c (go_format_type): Output the first field with a usable
8128 2011-05-25 Ian Lance Taylor <iant@google.com>
8130 * godump.c (go_format_type): Check for invalid type names, pointer
8131 target types, and struct field types.
8133 2011-05-25 Jason Merrill <jason@redhat.com>
8135 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
8137 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
8139 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
8141 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8143 * config/i386/i386.md (*movqi_extv_1)): Put back
8144 "register_operand" check in "type" calculation.
8145 (*movqi_extzv_2): Likewise.
8147 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8149 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
8151 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
8154 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
8155 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
8156 __divxc3, __divtc3): Wrap definitions in #ifndef.
8158 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8161 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
8162 "register_operand" check and replace q_regs_operand with
8163 QIreg_operand in "type" calculation.
8164 (*movqi_extv_1): Likewise.
8165 (*movqi_extzv_2_rex64): Likewise.
8166 (*movqi_extzv_2): Likewise.
8168 * config/i386/predicates.md (QIreg_operand): New.
8170 2011-05-25 Richard Guenther <rguenther@suse.de>
8172 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8173 type-based offset disambiguation, streamline MEM_REF and
8174 TARGET_MEM_REF handling.
8176 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
8178 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
8179 (bdesc_special_args): Add pause intrinsic.
8181 * config/i386/i386.md (UNSPEC_PAUSE): New.
8184 * config/i386/ia32intrin.h (__pause): Likewise.
8186 * doc/extend.texi (X86 Built-in Functions): Add documentation for
8189 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8191 PR tree-optimization/46728
8192 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
8193 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
8195 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
8197 * tree.h (struct tree_exp): Inherit from struct tree_typed.
8198 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
8199 instead of TS_COMMON.
8201 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
8203 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
8204 LIBGCC2_GNU_PREFIX is defined.
8206 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
8207 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
8208 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
8209 __clz_tab): Define using __N.
8210 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
8211 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
8212 * target.def (libfunc_gnu_prefix): New hook.
8213 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
8214 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
8215 * doc/tm.texi: Regenerate.
8216 * system.h (LIBGCC2_GNU_PREFIX): Poison.
8217 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
8219 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
8220 (init_optabs): Likewise for the bswap libfuncs.
8221 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
8223 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
8224 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
8225 * libgcc-std.ver: Remove.
8226 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
8227 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
8229 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8230 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
8231 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
8232 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
8233 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
8234 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8235 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
8236 * config/fixed-bit.h (FIXED_OP): Define differently depending on
8237 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
8238 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
8240 2011-05-25 Jan Hubicka <jh@suse.cz>
8242 * lto-streamer-out.c (output_record_start): Use lto_output_enum
8243 (lto_output_tree): Use output_record_start.
8244 * lto-streamer-in.c (input_record_start): Use lto_input_enum
8245 (lto_get_pickled_tree): Use input_record_start.
8246 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
8247 (lto_value_range_error): New function.
8248 * lto-streamer.h (lto_value_range_error): Declare.
8249 (lto_output_int_in_range, lto_input_int_in_range): New functions.
8250 (lto_output_enum, lto_input_enum): New macros.
8252 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
8254 * common.opt (flag_stack_usage_info): New variable.
8255 (-Wstack-usage): New option.
8256 * doc/invoke.texi (Warning options): Document -Wstack-usage.
8257 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
8258 <OPT_fstack_usage>: Likewise.
8259 * toplev.c (output_stack_usage): Handle -Wstack-usage.
8260 * calls.c (expand_call): Test flag_stack_usage_info variable instead
8261 of flag_stack_usage.
8262 (emit_library_call_value_1): Likewise.
8263 * explow.c (allocate_dynamic_stack_space): Likewise.
8264 * function.c (instantiate_virtual_regs ): Likewise.
8265 (prepare_function_start): Likewise.
8266 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
8267 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
8268 * config/arm/arm.c (arm_expand_prologue): Likewise.
8269 (thumb1_expand_prologue): Likewise.
8270 * config/avr/avr.c (expand_prologue): Likewise.
8271 * config/i386/i386.c (ix86_expand_prologue): Likewise.
8272 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8273 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
8274 * config/mips/mips.c (mips_expand_prologue): Likewise.
8275 * config/pa/pa.c (hppa_expand_prologue): Likewise.
8276 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8277 * config/s390/s390.c (s390_emit_prologue): Likewise.
8278 * config/sh/sh.c (sh_expand_prologue): Likewise.
8279 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
8280 * config/spu/spu.c (spu_expand_prologue): Likewise.
8282 2011-05-25 Richard Guenther <rguenther@suse.de>
8284 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
8285 (gimple_canonical_types_compatible_p): Likewise.
8287 2011-05-25 Jan Hubicka <jh@suse.cz>
8290 * ipa.c (function_and_variable_visibility): Only add to same
8291 comdat group list if DECL_ONE_ONLY.
8293 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
8295 PR rtl-optimization/49014
8296 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
8298 2011-05-25 Jakub Jelinek <jakub@redhat.com>
8301 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
8303 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
8305 PR rtl-optimization/48757
8306 * ira-build.c (loop_with_eh_edge_p): Rename to
8307 loop_with_complex_edge_p, check edges on complexity, make function
8309 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
8312 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
8314 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
8315 force flag_ira_share_save_slots to 0.
8317 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
8319 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
8320 (vt_initialize): Set PROLOGUE_BB unconditionally.
8321 Add block comment about CFA_BASE_RTX machinery.
8322 Reset FP_CFA_OFFSET to -1 on all invalid paths.
8323 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
8325 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
8328 * c-parser.c (c_parser_objc_class_instance_variables): More robust
8329 parsing of syntax error in ObjC instance variable lists. In
8330 particular, avoid an infinite loop if there is a stray ']'.
8331 Updated error message.
8333 2011-05-24 Ian Lance Taylor <iant@google.com>
8335 * godump.c (go_define): Don't accept a string immediately after
8338 2011-05-24 Ian Lance Taylor <iant@google.com>
8340 * godump.c (struct godump_container): Add invalid_hash field.
8341 (go_format_type): Return false if type is found in invalid_hash.
8342 (go_output_typedef): Add invalid type to invalid_hash.
8343 (go_finish): Create and delete invalid_hash.
8345 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8347 PR tree-optimization/46728
8348 * tree-ssa-math-opts.c (powi_table): New.
8349 (powi_lookup_cost): New.
8351 (powi_as_mults_1): New.
8352 (powi_as_mults): New.
8353 (gimple_expand_builtin_powi): New.
8354 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
8355 (gate_cse_sincos): Remove sincos/cexp restriction.
8357 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8360 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
8362 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
8363 * mips-tdump.c: Likewise.
8365 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
8368 * config/i386/driver-i386.c (host_detect_local_cpu): Always
8369 add -mno-XXX. Handle FMA.
8371 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
8373 PR rtl-optimization/48633
8374 * ira-build.c (loop_with_eh_edge_p): New function.
8375 (mark_loops_for_removal): Use it.
8377 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
8379 PR rtl-optimization/48971
8380 * ira.c (setup_pressure_classes): Don't check register move cost
8381 for classes with one registers. Don't add pressure class if there
8382 is a pressure class with the same available hard registers.
8383 Check contains_reg_of_mode. Fix a typo in collecting
8384 temp_hard_regset. Ignore hard registers not belonging to a class.
8386 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
8389 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
8391 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
8392 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8394 PR gcov-profile/48845
8395 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
8397 2011-05-24 Richard Guenther <rguenther@suse.de>
8399 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
8400 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
8401 (gimple_types_compatible_p_1): Adjust.
8402 (iterative_hash_canonical_type): Do not bother about complete vs.
8404 (gimple_canonical_types_compatible_p): Likewise.
8406 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8408 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
8410 2011-05-24 Richard Guenther <rguenther@suse.de>
8413 * gimple.c (gimple_register_canonical_type): Revert
8415 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
8416 does not for a tree for the case where it matters. Cache
8417 pointer-type alias-sets.
8419 2011-05-24 Joseph Myers <joseph@codesourcery.com>
8421 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
8422 (OBJS): Remove options.o, opts-common.o and prefix.o.
8423 (OBJS-libcommon-target): New.
8424 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
8425 (BACKEND): Include libcommon-target.a.
8426 (MOSTLYCLEANFILES): Include libcommon-target.a.
8427 (libcommon-target.a): New.
8428 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
8431 2011-05-23 Joseph Myers <joseph@codesourcery.com>
8433 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
8434 parts of output shared with the driver.
8435 * optc-gen.awk: Don't generate parts of output not shared with the
8437 * opth-gen.awk: Remove GCC_DRIVER conditionals.
8438 * doc/options.texi (SourcerInclude): Mention options-save.c.
8439 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
8440 (OBJS): Add options-save.o.
8441 (options-save.c, options-save.o): New.
8442 (options.o): Update dependencies.
8443 (gcc-options.o): Remove.
8444 (mostlyclean): Remove options-save.c.
8446 2011-05-23 Jakub Jelinek <jakub@redhat.com>
8449 * dbxout.c: Include cgraph.h.
8450 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
8451 and without value expr, return NULL if no varpool node exists for
8452 it or if it is not needed.
8453 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
8456 * c-decl.c (start_decl): Convert expr to void_type_node.
8458 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
8460 PR rtl-optimization/48826
8461 * emit-rtl.c (try_split): When splitting a call that is followed
8462 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
8464 2011-05-23 Jakub Jelinek <jakub@redhat.com>
8466 * cfgexpand.c (expand_debug_expr): For unused non-addressable
8467 parameters passed in memory prefer using DECL_INCOMING_RTL over
8468 the pseudos it will be copied into.
8470 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
8473 * config/i386/i386.c (ix86_option_override_internal): Save the
8474 initial options after checking vzeroupper.
8476 2011-05-23 David Li <davidxl@google.com>
8478 PR tree-optimization/48988
8479 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
8480 Initialize has_valid_pred for each pred chain.
8482 2011-05-23 Richard Guenther <rguenther@suse.de>
8484 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
8485 (iterative_hash_gimple_type): Always hash type names.
8487 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
8489 * c-typeck.c (build_function_call_vec): Tweak call to
8490 check_function_arguments.
8492 2011-05-23 Richard Guenther <rguenther@suse.de>
8494 PR tree-optimization/49115
8495 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
8496 is not necessarily carried out, do not claim it kills the ref.
8497 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
8499 2011-05-23 Richard Guenther <rguenther@suse.de>
8502 * builtins.c (fold_builtin_memory_op): Be less restrictive about
8503 what pointer types we accept for folding.
8505 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8507 * gthr-gnat.c: Remove.
8508 * gthr-gnat.h: Remove.
8509 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
8510 * config/t-freebsd (LIB2ADDEH): Likewise.
8511 * config/t-linux (LIB2ADDEH): Likewise.
8512 * config/t-sol2 (LIB2ADDEH): Likewise.
8513 * config/ia64/t-vms (LIB2ADDEH): Likewise.
8514 * configure.ac (target_thread_file): Remove gnat handling.
8515 * configure: Regenerate.
8516 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
8518 2011-05-23 Tristan Gingold <gingold@adacore.com>
8519 Eric Botcazou <ebotcazou@adacore.com>
8521 * gcov.c (create_file_names): If no object directory is specified,
8522 keep the directory of the file.
8524 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8526 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
8527 * configure: Regenerate.
8529 2011-05-23 Jakub Jelinek <jakub@redhat.com>
8532 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
8533 failed and the comparison has a single bit signed type, use
8534 constm1_rtx instead of const1_rtx for true value.
8535 (do_store_flag): If ops->type is single bit signed type, disable
8536 signel bit test optimization and pass -1 instead of 1 as last
8537 parameter to emit_store_flag_force.
8539 2011-05-23 Tom de Vries <tom@codesourcery.com>
8542 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
8544 (infer_loop_bounds_from_undefined): Use new function.
8546 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
8548 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
8549 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
8550 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
8552 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
8554 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
8556 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
8557 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
8560 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
8562 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
8564 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
8566 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
8567 UNSPEC_MOVE_PIC pattern.
8569 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
8571 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
8572 (sparc-*-rtems*): Likewise.
8573 (sparc64-*-elf*): Likewise.
8574 (sparc64-*-rtems*): Likewise.
8575 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
8576 * config/sparc/t-crtin: New file.
8577 * config/sparc/t-sol2 (crti.o): Delete rule.
8579 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
8580 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
8581 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
8582 (ENDFILE_SPEC): Add crtn.o.
8584 2011-05-22 Tom de Vries <tom@codesourcery.com>
8587 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
8588 CODE_CONTAINS_STRUCT (TS_COMMON).
8590 2011-05-22 Jakub Jelinek <jakub@redhat.com>
8593 * expmed.c (extract_fixed_bit_field): Test whether target can be used
8594 only after deciding which mode to use.
8596 2011-05-22 Tom de Vries <tom@codesourcery.com>
8599 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
8600 for call to get_shiftadd_cost.
8602 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
8605 * config/i386/cpuid.h (bit_MMXEXT): New define.
8607 2011-05-22 Nick Clifton <nickc@redhat.com>
8609 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
8610 initialisation of non-existant args[2] element. Use args[] array
8611 not arg[] array to pass arguments to build_function_type_list.
8613 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
8615 PR tree-optimization/49087
8616 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
8618 2011-05-21 Jason Merrill <jason@redhat.com>
8621 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
8622 static storage duration.
8624 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
8626 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
8629 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
8631 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
8632 false if there are call-saved registers here...
8633 (sparc_can_use_return_insn_p): ...but here instead.
8634 (save_or_restore_regs): Fix thinko.
8635 (sparc_expand_prologue): Use current_function_is_leaf.
8636 (sparc_frame_pointer_required): Likewise.
8638 2011-05-21 Nick Clifton <nickc@redhat.com>
8641 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
8643 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
8645 * gengtype.c (walk_type): Implemented "atomic" GTY option.
8646 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
8648 2011-05-21 Joseph Myers <joseph@codesourcery.com>
8650 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
8651 * optc-gen.awk: Move common code to opt-read.awk.
8652 * opth-gen.awk: Likewise.
8653 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
8655 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
8657 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
8659 2011-05-20 Tom de Vries <tom@codesourcery.com>
8662 * tree-ssa-loop-ivopts.c: Include expmed.h.
8663 (get_shiftadd_cost): New function.
8664 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
8666 2011-05-20 Jakub Jelinek <jakub@redhat.com>
8669 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
8670 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
8672 2011-05-20 Joseph Myers <joseph@codesourcery.com>
8674 * Makefile.in: Update comment referring to $(OBJS-common).
8676 2011-05-20 Ian Lance Taylor <iant@google.com>
8678 * godump.c (go_output_typedef): Put enum constants in the macro
8679 hash table to avoid duplicate Go const definitions.
8681 2011-05-20 Joseph Myers <joseph@codesourcery.com>
8683 * Makefile.in (LIBDEPS): Add libcommon.a.
8685 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
8686 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
8687 pretty-print.o and version.o.
8688 (OBJS-libcommon): New.
8689 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
8690 (BACKEND): Add libcommon.a.
8691 (MOSTLYCLEANFILES): Likewise.
8693 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
8694 (cpp$(exeext)): Likewise.
8695 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
8696 pretty-print.o and input.o.
8697 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
8698 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
8700 (mips-tfile): Don't explicitly use version.o.
8701 (mips-tdump): Likewise.
8702 (gcov.o): Depend on $(DIAGNOSTIC_H).
8703 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
8704 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
8705 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
8706 * gcov-dump.c: Include intl.h and diagnostic.h.
8707 (main): Initialize diagnostics.
8708 * gcov.c: Include diagnostic.h.
8710 (main): Initialize diagnostics.
8711 * lto-wrapper.c: Include diagnostic.h.
8712 (main): Initialize diagnostics.
8714 2011-05-20 Michael Matz <matz@suse.de>
8716 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
8718 2011-05-20 Michael Matz <matz@suse.de>
8719 Richard Guenther <rguenther@suse.de>
8721 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
8722 use lto_streamer_cache_append directly instead of returning a VEC.
8723 (preload_common_node): Remove.
8724 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
8726 (lto_streamer_cache_create): Call lto_preload_common_nodes.
8728 2011-05-20 Richard Guenther <rguenther@suse.de>
8730 PR tree-optimization/49079
8731 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
8732 MEM_REFs correctly for the trailing array access detection.
8733 Special case constants the same way as decls for overall size
8736 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
8738 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
8741 2011-05-20 Jakub Jelinek <jakub@redhat.com>
8743 PR tree-optimization/49073
8744 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
8745 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
8746 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
8748 2011-05-20 Richard Guenther <rguenther@suse.de>
8751 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
8752 of pointer types the same way the middle-end does.
8754 2011-05-20 Richard Guenther <rguenther@suse.de>
8756 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
8757 or pointer-to chains. Delay all fixup to uniquify_nodes.
8759 2011-05-19 Quentin Neill <quentin.neill@amd.com>
8761 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
8762 (fma4_fmaddsub): Likewise
8764 2011-05-19 Jan Hubicka <jh@suse.cz>
8766 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
8767 (GIMPLE_TYPE_PAIR_SIZE): New macro.
8768 (type_pair_cache): New static var.
8769 (lookup_type_pair): Use fixed sized custom hash; make inline.
8770 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
8771 calls of lookup_type_pair.
8772 (print_gimple_types_stats): Remove cache stats.
8773 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
8776 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
8778 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
8779 when TARGET_RDRND is active.
8780 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
8781 Generate dummy SImode target register when target is NULL.
8783 2011-05-19 Joseph Myers <joseph@codesourcery.com>
8785 * config/arm/arm-fpus.def: New.
8786 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
8788 * config/arm/arm-tables.opt: Regenerate.
8789 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
8790 (arm_option_override): Don't decode FPU name to string here.
8791 * config/arm/arm.opt (mfpu=): Use Enum.
8792 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
8793 Update dependencies.
8795 2011-05-19 Joseph Myers <joseph@codesourcery.com>
8797 * collect2.c: Include diagnostic.h.
8798 (fatal_perror, fatal, error, fancy_abort): Remove.
8799 (main): Set progname. Call xmalloc_set_program_name and
8800 diagnostic_initialize.
8801 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
8802 scan_libraries, resolve_lib_name): Call fatal_error instead of
8803 fatal and fatal_perror.
8804 * collect2.h (error, fatal, fatal_perror): Don't declare.
8805 * tlink.c: Include diagnostic-core.h.
8806 (recompile_files): Call fatal_error instead of fatal_perror.
8807 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
8808 pretty-print.o and input.o.
8809 (collect2.o, tlink.o): Update dependencies.
8811 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8813 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
8815 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8818 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
8819 COMDAT group syntax, both SPARC and x86 variants.
8820 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
8821 * configure: Regenerate.
8822 * config/sol2.h (TARGET_SOLARIS): Define.
8823 (PUSHSECTION_FORMAT): Remove.
8824 (SECTION_NAME_FORMAT): Define.
8825 * config/sol2.c: Include hashtab.h.
8826 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
8827 expansion, using SECTION_NAME_FORMAT.
8828 (solaris_comdat_htab): New variable.
8829 (struct comdat_entry): Define.
8830 (comdat_hash): New function.
8831 (comdat_eq): New function.
8832 (solaris_elf_asm_comdat_section): New function.
8833 (solaris_define_comdat_signature): New function.
8834 (solaris_code_end): New function.
8835 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
8836 (solaris_code_end): Declare.
8837 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
8838 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
8840 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
8841 Remove ATTRIBUTE_UNUSED.
8842 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
8843 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
8844 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
8845 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
8846 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
8847 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
8848 (PUSHSECTION_FORMAT): Remove.
8849 (SECTION_NAME_FORMAT): Redefine.
8851 2011-05-19 Kai Tietz <ktietz@redhat.com>
8853 * tree-cfg.c (verify_gimple_assign_binary): Barf on
8854 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
8855 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
8857 2011-05-19 Anatoly Sokolov <aesok@post.ru>
8858 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8860 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
8862 2011-05-19 Richard Guenther <rguenther@suse.de>
8865 * tree-object-size.c (addr_object_size): If the pointed-to
8866 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
8868 2011-05-19 Richard Guenther <rguenther@suse.de>
8870 * gimple.c (gimple_types_compatible_p_1): Compare names of
8871 the types themselves.
8872 (iterative_hash_gimple_type): And hash them that way.
8873 (gimple_register_type_1): If we register a main variant properly
8874 initialize the leader to ourselves.
8876 2011-05-19 Tom de Vries <tom@codesourcery.com>
8879 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
8880 get_loop_invariant_expr_id.
8881 (get_loop_invariant_expr_id): Use get_expr_id.
8882 (parm_decl_cost): New function.
8883 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
8884 Improve bound cost estimation. Use different inv_expr_id for elim and
8887 2011-05-19 Tom de Vries <tom@codesourcery.com>
8890 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
8891 cost_base.cost == 0.
8893 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
8896 * config/i386/sse.md
8897 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
8900 2011-05-18 Jakub Jelinek <jakub@redhat.com>
8902 PR tree-optimization/49039
8903 * tree-vrp.c (extract_range_from_binary_expr): For
8904 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
8905 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
8907 2011-05-18 Tom de Vries <tom@codesourcery.com>
8910 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
8912 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
8914 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
8915 (*tls_global_dynamic_64): Ditto.
8916 (*tls_local_dynamic_base_32_gnu): Ditto.
8917 (*tls_local_dynamic_base_64): Ditto.
8918 (tls_initial_exec_64_sun): Ditto.
8920 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
8922 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
8923 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
8925 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
8926 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
8927 * config/bfin/bfin.c (bfin_cpus): Add bf592.
8928 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8929 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
8930 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
8931 * config/bfin/elf.h (LIB_SPEC): Add bf592.
8933 2011-05-18 Joseph Myers <joseph@codesourcery.com>
8935 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
8936 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
8937 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
8938 target_thread_pointer, arm_structure_size_boundary, struct
8939 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
8940 struct abi_name, arm_all_abis): Remove.
8941 (arm_option_override) Don't process most enumerated option values here.
8942 Don't process target_fpe_name here. Work with integer not string for
8943 structure size boundary; use separate diagnostics for each case.
8944 * config/arm/arm.h (enum float_abi_type, enum
8945 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
8947 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
8948 arm_structure_size_boundary): Remove.
8949 * config/arm/arm.opt (mabi=): Use Enum and Init.
8950 (arm_abi_type): New Enum and EnumValue entries.
8951 (mfloat-abi=): Use Enum and Init.
8952 (float_abi_type): New Enum and EnumValue entries.
8953 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
8954 (mfp16-format=): Use Enum and Init.
8955 (arm_fp16_format_type): New Enum and EnumValue entries.
8956 (mstructure-size-boundary=): Use UInteger and Init.
8957 (mtp=): Use Enum and Init.
8958 (arm_tp_type): New Enum and EnumValue entries.
8960 2011-05-18 Richard Guenther <rguenther@suse.de>
8962 PR tree-optimization/49018
8963 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
8964 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
8965 gimple_has_side_effects.
8967 2011-05-18 Richard Guenther <rguenther@suse.de>
8969 * gimple.c (gimple_register_type_1): New function, split out from ...
8970 (gimple_register_type): ... here. Avoid infinite recursion.
8972 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
8974 PR tree-optimization/41881
8975 * tree-vectorizer.h (struct _loop_vec_info): Add new field
8976 reduction_chains along with a macro for its access.
8977 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
8978 (destroy_loop_vec_info): Free reduction chains.
8979 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
8980 (vect_is_slp_reduction): New function.
8981 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
8982 (vect_create_epilog_for_reduction): Support SLP reduction chains.
8983 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
8984 definition types for reduction chains.
8985 (vect_supported_load_permutation_p): Don't allow permutations for
8987 (vect_analyze_slp_instance): Support reduction chains.
8988 (vect_analyze_slp): Try to build SLP instance from reduction chains.
8989 (vect_get_constant_vectors): Handle reduction chains.
8990 (vect_schedule_slp_instance): Mark the first statement of the
8991 reduction chain as reduction.
8993 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
8995 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
8996 names for group elements access.
8997 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
8998 reduction chains as well. Remove data reference and interleaving
8999 related words from the fields names.
9000 * tree-vect-loop.c (vect_transform_loop): Use new names for group
9002 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
9003 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
9004 vect_update_interleaving_chain, vect_same_range_drs,
9005 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
9006 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
9007 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
9008 vect_analyze_group_access, vect_analyze_data_ref_access,
9009 vect_create_data_ref_ptr, vect_transform_strided_load,
9010 vect_record_strided_load_vectors): Likewise.
9011 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
9012 vect_model_load_cost, vectorizable_store, vectorizable_load,
9013 vect_remove_stores, new_stmt_vec_info): Likewise.
9014 * tree-vect-slp.c (vect_build_slp_tree,
9015 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
9017 2011-05-18 Richard Guenther <rguenther@suse.de>
9020 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
9021 operand verification.
9022 (verify_gimple_assign_binary): Likewise.
9023 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
9024 to non-1-precision BOOLEAN_TYPEs.
9026 2011-05-18 Tom de Vries <tom@codesourcery.com>
9029 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
9031 2011-05-18 Jakub Jelinek <jakub@redhat.com>
9033 PR tree-optimization/49000
9034 * tree-ssa.c (execute_update_addresses_taken): Call
9035 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
9036 be rewritten and decl has been marked for renaming, reset
9039 2011-05-17 Joseph Myers <joseph@codesourcery.com>
9041 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
9042 enum_opts_set when testing if attributes have set -mfpmath=.
9044 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
9046 * config/mips/mips.c (mips_handle_option): Remove unused variable.
9048 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
9050 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
9052 * tree-inline.c (maybe_inline_call_in_expr): Initialize
9053 id.transform_lang_insert_block with NULL.
9055 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
9057 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
9058 (output_fp_compare): Change args 3 and 4 to bool.
9059 (ix86_expand_call): Change arg 6 to bool.
9060 (ix86_attr_length_immediate_default): Change arg 2 to bool.
9061 (ix86_attr_length_vex_default): Change arg 3 to bool.
9062 * config/i386/i386.md: Update all uses.
9063 * config/i386/i386.c: Ditto.
9064 (ix86_flags_dependent): Change return type to bool.
9066 2011-05-17 Richard Guenther <rguenther@suse.de>
9068 * gimple.c (type_hash_pair_compare): Fix comparison.
9070 2011-05-17 Richard Guenther <rguenther@suse.de>
9072 * gimple.c (iterative_hash_gimple_type): Simplify singleton
9073 case some more, fix final hash value of the non-singleton case.
9075 2011-05-17 Richard Guenther <rguenther@suse.de>
9079 2011-05-16 Richard Guenther <rguenther@suse.de>
9081 * gimple.c (gimple_types_compatible_p_1): Use names of the
9082 type itself, not its main variant.
9083 (iterative_hash_gimple_type): Likewise.
9085 2011-05-17 Richard Guenther <rguenther@suse.de>
9087 * gimple.c (gimple_register_canonical_type): Use the main-variant
9088 leader for computing the canonical type.
9090 2011-05-17 Nick Clifton <nickc@redhat.com>
9092 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
9095 * config/rx/rx.md: Add peephole to remove redundant extensions
9097 (bitset_in_memory): Use rx_restricted_mem_operand.
9098 (bitinvert_in_memory): Likewise.
9099 (bitclr_in_memory): Likewise.
9101 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
9102 Nick Clifton <nickc@redhat.com>
9104 * config/rx/rx.md: Add peepholes to match a register move followed
9105 by a comparison of the moved register. Replace these with an
9106 addition of zero that does both actions in one instruction.
9108 2011-05-17 Jakub Jelinek <jakub@redhat.com>
9111 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
9112 predicate to allow CONST_INT.
9113 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
9115 2011-05-16 Joseph Myers <joseph@codesourcery.com>
9117 * opts-common.c (opt_enum_arg_to_value): New.
9118 * opts.h (opt_enum_arg_to_value): Declare.
9119 * config/i386/i386.opt (fpmath): Remove.
9120 (mfpmath=): Use Enum, Init and Save.
9121 (fpmath_unit): New Enum and EnumValue entries.
9122 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
9123 name for function fpmath state.
9124 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
9125 * config/i386/i386.c: Include diagnostic.h.
9126 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
9127 (ix86_target_string): Take enum fpmath_unit value instead of string.
9128 (ix86_debug_options): Update call to ix86_target_string.
9129 (ix86_option_override_internal): Don't process fpmath strings here.
9130 (x86_function_specific_save, ix86_function_specific_restore):
9131 Don't handle fpmath state specially.
9132 (ix86_function_specific_print): Pass fpmath state to
9133 ix86_target_string instead of printing in this function.
9134 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
9135 Handle enum attributes.
9136 (IX86_ATTR_ENUM, ix86_opt_enum): New.
9137 (ix86_valid_target_attribute_tree): Update option_strings
9138 handling. Handle fpmath as enum option.
9139 (ix86_can_inline_p): Update field names for function fpmath state.
9140 (ix86_expand_builtin): Update call to ix86_target_string.
9141 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
9142 (ix86_fpmath): Remove.
9143 * config/i386/t-i386 (i386.o): Update dependencies.
9145 2011-05-16 Joseph Myers <joseph@codesourcery.com>
9147 PR preprocessor/48677
9148 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
9149 from decoded_options[0], not from itself.
9151 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
9153 * config/i386/constraints.md (z): New constraint.
9154 * config/i386/i386.c (c): New mode attribute.
9155 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
9156 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
9157 constraint for operand 0.
9158 (*call_vzeroupper): Ditto.
9159 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
9160 (*call_rex64_ms_sysv_vzeroupper): Ditto.
9161 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
9162 Use "lzm" constraint for operand 0.
9163 (*call_pop_vzeroupper): Ditto.
9164 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
9165 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
9166 constraint for operand 0.
9167 (*sibcall_vzeroupper): Ditto.
9168 (*sibcall_rex64_ms_sysv): Ditto.
9169 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
9170 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
9171 *sibcall_pop_1. Use "Uz" constraint for operand 0.
9172 (*sibcall_pop_vzeroupper): Ditto.
9173 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
9174 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
9175 mode iterator. Use "<c>zm" constraint for operand 1.
9176 (*call_value_vzeroupper): Ditto.
9177 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
9179 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
9180 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
9181 *call_value_pop_1. Use "lzm" constraint for operand 1.
9182 (*call_value_pop_vzeroupper): Ditto.
9183 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
9184 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
9185 mode iterator. Use "Uz" constraint for operand 1.
9186 (*sibcall_value_vzeroupper): Ditto.
9187 (*sibcall_value_rex64_ms_sysv): Ditto.
9188 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
9189 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
9190 constraint for operand 1.
9191 (*sibcall_value_pop_vzeroupper): Ditto.
9192 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
9193 and "z" constraint for operand 2.
9194 (*tls_global_dynamic_32_gnu): Ditto.
9195 (*tls_local_dynamic_base_32_gnu): Ditto.
9196 (*tls_local_dynamic_base_64): Ditto.
9197 (*tls_local_dynamic_32_once): Ditto.
9198 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
9200 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
9202 2011-05-16 Richard Guenther <rguenther@suse.de>
9204 * gimple.c (gimple_types_compatible_p_1): Use names of the
9205 type itself, not its main variant.
9206 (iterative_hash_gimple_type): Likewise.
9208 2011-05-16 Richard Guenther <rguenther@suse.de>
9210 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
9211 always visit pointer target and function result and argument types.
9213 2011-05-16 Jason Merrill <jason@redhat.com>
9216 * tree-inline.c (copy_statement_list): Put back recursion.
9218 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
9222 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
9223 * config/avr/avr.md ("*ior<mode>qi.byte0",
9224 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
9226 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
9229 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
9230 register is needed for a function argument.
9232 2011-05-16 Richard Guenther <rguenther@suse.de>
9234 * gimple.c (struct type_hash_pair): New type.
9235 (type_hash_pair_compare): New function.
9236 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
9238 2011-05-16 Revital Eres <revital.eres@linaro.org>
9240 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
9242 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
9244 * config/i386/i386.md (floating point move splitters): Fix
9245 usage of standard_80387_constant_p.
9246 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
9248 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
9250 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
9252 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
9254 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
9255 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
9256 (tree_ssa_lim_finalize): Likewise.
9258 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
9260 * config/i386/constraint.md (Yd, Yx): New register constraints.
9261 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
9262 Yd conditional register constraint.
9263 (*movtf_internal): Use standard_sse_constant_opcode.
9264 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
9265 Yx conditional register constraint.
9266 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
9267 Yd conditional register constraint. Use standard_sse_constant_p to
9268 check for valid SSE constants and call standard_sse_constant_opcode to
9270 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
9271 constants and call standard_sse_constant_opcode to output SSE insn.
9272 * config/i386/i386.c (ix86_option_ovverride_internal): Set
9273 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
9274 optimize_size is set.
9275 (standard_sse_constant_opcode): Output conditional AVX insn templates.
9277 2011-05-14 Tobias Burnus <burnus@net-b.de>
9279 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
9281 2011-05-13 Martin Jambor <mjambor@suse.cz>
9283 * ipa-prop.c (ipa_cst_from_jfunc): New function.
9284 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
9285 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
9286 (evaluate_conditions_for_ipcp_clone): Removed.
9287 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
9288 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
9289 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
9291 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
9293 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
9294 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
9295 lieu of MAY_HAVE_DEBUG_STMTS.
9296 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
9297 debug statements if !MAY_HAVE_DEBUG_STMTS.
9299 2011-05-13 Martin Thuresson <martint@google.com>
9301 PR gcov-profile/47793
9302 * libgcov.c (gcov_exit): Support relative profile paths.
9303 * doc/invoke.texi (-fprofile-dir): Update for above change.
9305 2011-05-13 Richard Guenther <rguenther@suse.de>
9307 * gimple.c (gimple_canonical_types_compatible_p): Do not use
9308 type-pair caching, do not compare hashes.
9310 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
9313 * tree-cfg.c (edge_to_cases_cleanup): Return true.
9314 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
9316 2011-05-13 Kai Tietz <ktietz@redhat.com>
9318 * gimplify.c (gimplify_expr): Make sure operand is boolified.
9319 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
9320 compatible type for TRUTH_NOT_EXPR.
9322 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
9324 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
9325 (ix86_hard_regno_mode_ok): Change return value to bool. Use
9326 can_create_pseudo_p ().
9328 2011-05-13 Richard Guenther <rguenther@suse.de>
9331 * gimple.c (iterative_hash_gimple_type): Revert change in
9332 pointer target and function result and argument hashing.
9334 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
9336 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
9337 (*movxf_internal_nointeger): Ditto.
9338 (*movdf_internal_rex64): Ditto.
9339 (*movdf_internal): Ditto.
9340 (*movdf_internal_nointeger): Ditto.
9341 (*movsf_internal): Ditto.
9342 (sincos splitters): Use can_create_pseudo ().
9344 2011-05-13 Joseph Myers <joseph@codesourcery.com>
9346 * config/i386/i386-opts.h: New.
9347 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
9348 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
9349 ix86_section_threshold): Remove.
9350 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
9351 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
9353 (ix86_option_override_internal): Don't decode strings for options
9354 other than -march=, -mtune= and -mfpmath=. Don't allow for
9355 __attribute__ uses in remaining diagnostics for options with
9356 string arguments. Don't check for integer arguments being negative.
9357 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
9358 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
9359 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
9360 ix86_branch_cost, ix86_section_threshold): Remove.
9361 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
9363 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
9365 (masm=): Use Enum and Init.
9366 (asm_dialect): New Enum and EnumValue entries.
9367 (mbranch-cost=): Use UInteger.
9368 (mlarge-data-threshold=): Use UInteger and Init.
9369 (mcmodel=): Use Enum and Init.
9370 (cmodel): New Enum and EnumValue entries.
9371 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
9372 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
9373 mregparm=): Use UInteger.
9374 (mstringop-strategy=): Use Enum and Init.
9375 (stringop_alg): New Enum and EnumValue entries.
9376 (mtls-dialect=): Use Enum and Init.
9377 (tls_dialect): New Enum and EnumValue entries.
9378 (mabi=): Use Enum and Init.
9379 (calling_abi): New Enum and EnumValue entries.
9380 (mveclibabi=): Use Enum and Init.
9381 (ix86_veclibabi): New Enum and EnumValue entries.
9383 2011-05-13 Nick Clifton <nickc@redhat.com>
9385 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
9386 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
9388 2011-05-13 Kai Tietz <ktietz@redhat.com>
9391 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
9392 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
9393 (gimple_boolify): Check for cast for boolean_type_node instead for
9396 2011-05-13 Richard Guenther <rguenther@suse.de>
9398 PR tree-optimization/48172
9399 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
9400 multiplying by number of iterations for equal step.
9401 (vect_create_cond_for_alias_checks): Likewise.
9403 2011-05-13 Andreas Schwab <schwab@redhat.com>
9405 * configure.ac: Use AS_HELP_STRING throughout.
9406 * configure: Regenerate.
9408 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
9410 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
9411 (ix86_emit_restore_regs_using_mov): Likewise.
9412 (ix86_emit_restore_sse_regs_using_mov): Likewise.
9414 2011-05-12 Anatoly Sokolov <aesok@post.ru>
9416 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
9417 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
9418 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
9419 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
9420 RTX_OK_FOR_OLO10_P): ...here.
9421 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
9424 2011-05-12 Kai Tietz <ktietz@redhat.com>
9426 * gimplify.c (gimple_boolify): Re-boolify expression
9427 arguments even if expression type is of kind BOOLEAN_TYPE.
9428 (gimplify_boolean_expr): Removed.
9429 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
9430 and XOR. Additional take care that we keep expression's type.
9431 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
9432 of TRUTH_AND|OR|XOR_EXPR.
9434 2011-05-12 Jakub Jelinek <jakub@redhat.com>
9436 PR tree-optimization/48975
9437 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
9438 on all bbs here and free and clear ifc_bbs at the end.
9440 2011-05-12 Richard Guenther <rguenther@suse.de>
9442 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
9443 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
9444 until after simple checks.
9445 (gimple_types_compatible_p): Likewise.
9446 (iterative_hash_gimple_type): Always hash pointer targets
9447 and function return and argument types.
9448 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
9449 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
9450 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
9451 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
9452 completely in the simple compare section.
9453 (gimple_register_canonical_type): Query the cache again after
9456 2011-05-12 Richard Guenther <rguenther@suse.de>
9458 PR tree-optimization/48172
9459 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
9460 the number of iterations from the segment size calculation.
9461 (vect_create_cond_for_alias_checks): Adjust.
9463 2011-05-12 Jakub Jelinek <jakub@redhat.com>
9466 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
9467 if validate_subreg fails.
9469 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
9471 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
9472 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
9475 2011-05-12 DJ Delorie <dj@redhat.com>
9477 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
9478 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
9479 created builtin into rx_builtins array.
9480 (rx_builtin_decl): New function.
9481 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
9483 2011-05-12 DJ Delorie <dj@redhat.com>
9484 Nick Clifton <nickc@redhat.com>
9486 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
9487 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
9488 (rx_is_legitimate_address): Add pre-decrement and post-increment
9489 addressing in HImode and QImode. Fix test for out of range
9491 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
9492 (rx_align_for_label): Test label before extracting its usage count.
9493 (rx_adjust_insn_lengths): Fix selection of insn codes.
9494 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
9496 2011-05-11 Jason Merrill <jason@redhat.com>
9498 * tree.c (type_hash_canon): Use struct tree_type_non_common.
9500 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
9502 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
9503 reindent the subsequent block.
9505 2011-05-11 Satoru Takabayashi <satorux@google.com>
9506 Paul Pluzhnikov <ppluzhnikov@google.com>
9508 * doc/install.texi (Configuration): Document --with-linker-hash-style.
9509 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
9510 * config.in: Add LINKER_HASH_STYLE.
9511 * configure.ac: Add --with-linker-hash-style.
9512 * configure: Regenerate.
9514 2011-05-11 Richard Guenther <rguenther@suse.de>
9517 * gimple.c (iterative_hash_canonical_type): Fix typo.
9519 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
9521 * config/i386/i386.c (legitimize_tls_address)
9522 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
9523 expanders directly for TARGET_GNU2_TLS. Determine pic and
9524 __tls_get_addr symbol reference here. Update call to
9525 gen_tls_global_dynamic_{32,64} for added arguments.
9526 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
9527 expanders directly for TARGET_GNU2_TLS. Determine
9528 __tls_get_addr symbol reference here. Update call to
9529 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
9530 unique UNSPEC REG_EQUIV to libcall block.
9531 (ix86_tls_get_addr): Declare static.
9532 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
9533 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
9534 Do not determine pic and __tls_get_addr symbol reference here. Do not
9535 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
9536 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
9537 (tls_global_dynamic_64): Add operand 2. Do not determine
9538 __tls_get_addr symbol reference here. Do not call
9539 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
9540 (tls_local_dynamic_base64): Ditto for operand 1.
9542 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
9544 * function.c (expand_function_start): Initialize stack_check_probe_note
9545 only if the generic stack checking mechanism is used.
9547 2011-05-11 Richard Guenther <rguenther@suse.de>
9549 PR tree-optimization/15256
9550 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
9551 (A & B) | C, combine (A op CST1) op CST2.
9552 (tree_ssa_forward_propagate_single_use_vars): Only bother to
9553 visit assigns that have uses.
9555 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
9557 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
9558 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
9559 (unpack_ts_type_common_value_fields): ...this. Update comment.
9560 (unpack_value_fields): Adjust for renaming.
9561 (lto_input_ts_type_tree_pointers): Split into...
9562 (lto_input_ts_type_common_tree_pointer): ...this and...
9563 (lto_input_ts_type_non_common_tree_pointers): ...this.
9564 (lto_input_tree_pointers): Adjust for above split.
9565 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
9566 (pack_ts_type_common_value_fields): ...this. Update comment.
9567 (lto_output_ts_type_tree_pointers): Split into...
9568 (lto_output_ts_type_common_tree_pointers): ...this and...
9569 (lto_output_ts_type_non_common_tree_pointers): ...this.
9570 (lto_output_tree_pointers): Adjust for above split.
9571 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
9572 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
9573 * stor-layout.c (vector_type_mode): Adjust location of mode field.
9574 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
9576 (struct tree_type): Split into...
9577 (struct tree_type_common: ...this and...
9578 (struct tree_type_with_lang_specific): ...this and...
9579 (struct tree_type_non_common): ...this. Adjust accessor macros
9581 (TYPE_VALUES_RAW): Define.
9582 (union tree_node): Update for above changes.
9583 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
9585 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
9586 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
9587 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
9588 * treestructu.def (TS_TYPE): Remove.
9589 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
9592 2011-05-11 Jakub Jelinek <jakub@redhat.com>
9595 * tree-ssa.c (reset_debug_uses): New function.
9596 * tree-flow.h (reset_debug_uses): New prototype.
9597 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
9598 * tree-loop-distribution.c (generate_loops_for_partition): Call
9599 reset_debug_uses on the stmts that will be removed. Keep around
9600 all debug stmts, don't count them as bits in partition bitmap.
9601 (generate_builtin): Don't count debug stmts or labels as bits in
9604 2011-05-11 Richard Guenther <rguenther@suse.de>
9606 * gimple.c (gimple_type_hash_1): Merge with ...
9607 (gimple_type_hash): ... this.
9608 (gtc_visit): Remove mode parameter and simplify accordingly.
9609 (gimple_types_compatible_p_1): Likewise.
9610 (gimple_types_compatible_p): Likewise.
9611 (iterative_hash_gimple_type): Likewise.
9613 (gimple_type_eq): Adjust.
9615 2011-05-11 Revital Eres <revital.eres@linaro.org>
9617 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
9618 enters the branch create an anti edge in the opposite direction
9619 to prevent the creation of reg-moves.
9620 * modulo-sched.c: Adjust comment to reflect the fact we are
9621 scheduling closing branch.
9622 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
9623 (stage_count): New field in struct partial_schedule.
9624 (calculate_stage_count): New function.
9625 (normalize_sched_times): Rename to reset_sched_times and handle
9626 incrementing the sched time of the nodes by a constant value
9627 passed as parameter.
9628 (duplicate_insns_of_cycles): Skip closing branch.
9629 (sms_schedule_by_order): Schedule closing branch.
9630 (ps_insn_find_column): Handle closing branch.
9631 (sms_schedule): Call reset_sched_times and adjust the code to
9632 support scheduling of the closing branch.
9633 (ps_insert_empty_row): Update calls to normalize_sched_times
9634 and rotate_partial_schedule functions.
9636 2011-05-11 Richard Guenther <rguenther@suse.de>
9639 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
9641 2011-05-11 Joseph Myers <joseph@codesourcery.com>
9643 * opts.c (finish_options): Move warning settings from process_options.
9644 * toplev.c (process_options): Move warning settings to finish_options.
9646 2011-05-11 Richard Guenther <rguenther@suse.de>
9648 PR tree-optimization/18041
9649 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
9650 (simplify_bitwise_binary): ... this. Handle operand conversions
9651 by applying them to the result instead.
9652 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
9654 2011-05-11 Richard Guenther <rguenther@suse.de>
9656 * gimple.c (gimple_canonical_types_compatible_p): Split out
9657 from gimple_types_compatible_p and friends. Do not recurse
9658 to pointed-to types.
9659 (gimple_canonical_type_eq): Use it.
9660 (iterative_hash_canonical_type): Split out from
9661 iterative_hash_gimple_type and friends. Do not recurse
9662 to pointed-to types.
9663 (gimple_canonical_type_hash): Use it, allocate the hash here.
9665 2011-05-11 Revital Eres <revital.eres@linaro.org>
9667 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
9670 2011-05-11 Revital Eres <revital.eres@linaro.org>
9672 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
9673 instead of PREV_INSN.
9675 2011-05-11 Revital Eres <revital.eres@linaro.org>
9677 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
9678 * loop-doloop.c (doloop_condition_get): Likewise.
9679 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
9681 * config/arm/arm.md (*addsi3_compare0): Remove "*".
9683 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
9685 * tree.def (CASE_LABEL_EXPR): Add an operand.
9686 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
9688 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9690 * c-decl.c (c_override_global_bindings_to_false): Remove.
9691 (global_bindings_p): Don't check
9692 c_override_global_bindings_to_false.
9693 * c-tree.h (c_override_global_bindings_to_false): Remove.
9694 * c-typeck.c (composite_type): Don't set
9695 c_override_global_bindings_to_false.
9697 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
9699 PR target/48857, 48495
9700 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
9702 (VSX_MOVE_MODE): Ditto.
9703 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
9704 VSX vector types. Add V2DImode.
9705 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
9706 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
9707 (MODES_TIEABLE_P): Ditto.
9709 * config/rs6000/rs6000.c (rs6000_emit_move): Use
9710 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
9712 (init_cumulative_args): Ditto.
9713 (rs6000_function_arg_boundary): Ditto.
9714 (rs6000_function_arg_advance_1): Ditto.
9715 (rs6000_function_arg): Ditto.
9716 (rs6000_function_ok_for_sibcall): Ditto.
9717 (emit_frame_save): Ditto.
9718 (rs6000_function_value): Ditto.
9719 (rs6000_libcall_value): Ditto.
9721 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9723 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9724 i386/darwin-lib.h to $libgcc_tm_file.
9725 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
9727 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9729 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
9731 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9733 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
9734 * config/rs6000/rs6000-tables.opt: New file (generated).
9735 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
9736 rs6000/rs6000-tables.opt to extra_options.
9737 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
9738 * config/rs6000/rs6000.c (rs6000_select): Remove.
9739 (processor_target_table): Move contents to rs6000-cpus.def.
9740 (darwin_rs6000_override_options): Check
9741 global_options_set.x_rs6000_cpu_index instead of
9742 rs6000_select[1].string.
9743 (rs6000_option_override_internal): Likewise.
9744 (rs6000_handle_option): Don't assert that global structures are in
9745 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
9746 (rs6000_default_cpu): New variable.
9747 (rs6000_file_start): Set it instead of local default_cpu. Check
9748 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
9749 global_options_set.x_rs6000_tune_index instead of rs6000_select.
9750 (rs6000_darwin_file_start): Check rs6000_default_cpu and
9751 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
9752 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
9753 rs6000_select): Remove.
9754 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
9756 (mcpu=, mtune=): Use Var, Init, Enum and Save.
9757 * config/rs6000/t-rs6000
9758 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
9759 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9760 global_options_set.x_rs6000_cpu_index instead of
9761 rs6000_select[1].string.
9762 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9763 global_options_set.x_rs6000_cpu_index instead of
9764 rs6000_select[1].string.
9766 2011-05-10 Joseph Myers <joseph@codesourcery.com>
9768 * config.gcc (libgcc_tm_file): Define instead of including files
9769 from ../../libgcc/config/ in tm_file.
9770 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
9771 * configure: Regenerate.
9772 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
9773 libgcc_tm.h, cs-libgcc_tm.h): New.
9774 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
9775 (clean): Remove libgcc_tm.h.
9776 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
9777 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
9778 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
9780 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
9783 * config/avr/avr.c (avr_ret_register): Return unsigned int
9785 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
9786 it to avr_libcall_value.
9787 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
9789 (avr_expand_binop_builtin): Ditto.
9790 (avr_expand_unop_builtin): Ditto.
9792 2011-05-10 DJ Delorie <dj@redhat.com>
9794 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
9795 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
9796 * config/rx/rx.c (rx_align_for_label): Add label and
9797 uses_threshold parameters. Do not align when the label is not
9799 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
9801 2011-05-10 Richard Guenther <rguenther@suse.de>
9803 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
9804 a series of conversions and apply foldings similar to what
9806 (tree_ssa_forward_propagate_single_use_vars): Call it.
9808 2011-05-10 Jakub Jelinek <jakub@redhat.com>
9810 PR tree-optimization/48611
9811 PR tree-optimization/48794
9812 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
9813 referenced from RESX or EH_DISPATCH arguments.
9816 * dfp.c (decimal_to_decnumber): Handle conversion from
9817 dconst{1,2,m1,half}.
9819 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9821 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
9822 for !flag_prefer_avx128.
9823 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
9825 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
9827 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
9828 (fold_ternary_loc): Use expr_location_or.
9830 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
9833 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
9834 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
9835 Pmode and mem_mode is not VOIDmode.
9837 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
9839 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
9840 TYPE_QUAL_RESTRICT): Convert to enum.
9842 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9844 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
9845 (const_pow2_1_to_8_operand): Ditto.
9846 (const_pow2_1_to_128_operand): Ditto.
9847 (const_pow2_1_to_32768_operand): Ditto.
9848 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
9849 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
9850 in insn constraint to check integer value of operand 3.
9851 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
9853 (PINSR_MODE): New mode iterator.
9854 (sse2p4_1): New mode attribute.
9855 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
9856 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
9857 iterator. Use const_int_operand instead of
9858 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
9859 exact_log2 in insn constraint to check integer value of operand 3.
9861 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9863 * config/i386/sse.md (blendbits): Remove mode attribute.
9864 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9865 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9866 Check integer value of operand 3 in insn constraint.
9868 2011-05-09 Richard Guenther <rguenther@suse.de>
9870 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
9872 (lto_symtab_merge): Likewise. Do not register types here.
9873 (lto_symtab_merge_decls_2): Likewise.
9874 (lto_symtab_merge_decls_1): Likewise.
9875 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9876 * gimple.c (enum gtc_mode): Declare.
9877 (gimple_types_compatible_p): Make static.
9879 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9881 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
9882 temporary register to match Pmode.
9884 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9886 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
9887 and *vec_concatv4si_1_avx.
9889 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9891 PR rtl-optimization/48927
9892 * ira-conflicts.c (commutative_constraint_p): Use
9893 recog_data.alternative_enabled_p to disable alternatives where
9894 "enabled" attribute is false.
9895 (get_dup_num): Ditto.
9896 * ira-lives.c (single_reg_class): Ditto.
9897 (ira_implicitly_set_insn_hard_regs): Ditto.
9899 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
9901 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
9902 (dataflow_set_preserve_mem_locs): Likewise.
9904 2011-05-09 Philipp Thomas <pth@suse.de>
9906 * config/mep/mep.c (mep_validate_vliw): Syntax description
9907 should not be translated.
9909 2011-05-09 Joseph Myers <joseph@codesourcery.com>
9911 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
9912 * config/mips/mips-tables.opt: New file (generated).
9913 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
9914 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
9915 MIPS_ARCH_OPTION_NATIVE): Define.
9916 * config/mips/mips.c (mips_cpu_info_table): Move contents to
9918 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
9919 mips_parse_cpu): Remove.
9920 (mips_cpu_info_from_opt, mips_default_arch): New.
9921 (mips_handle_option): Don't assert that global structures are in
9922 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
9923 (mips_option_override): Use new variables and functions to set
9924 state of these options. Use strcmp to check for individual CPU names.
9925 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
9927 * config/mips/mips.opt (march=): Use ToLower and Enum.
9928 (mips): Use ToLower, Enum and Var.
9929 (mtune=): Use ToLower and Enum.
9930 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
9932 2011-05-08 Jan Hubicka <jh@suse.cz>
9934 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
9935 Arrange type pairs to be UID ordered.
9936 (gimple_lookup_type_leader): Make inline.
9938 2011-05-09 Nick Clifton <nickc@redhat.com>
9941 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
9945 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
9948 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
9950 * combine.c (simplify_comparison): Abstract out parts into...
9951 (simplify_compare_const): ... new function.
9952 (try_combine): Generalize parallel arithmetic/compare combining
9953 to call simplify_compare_const() and CANONICALIZE_COMPARE().
9955 2011-05-08 Jan Hubicka <jh@suse.cz>
9957 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
9958 (cgraph_create_virtual_clone): Call hooks once virtual clone
9960 * cgraph.h (cgraph_clone_node): Update prototype.
9961 * ipa-cp.c (ipcp_estimate_growth): Use
9962 estimate_ipcp_clone_size_and_time.
9963 * ipa-inline-transform.c (clone_inlined_nodes): Update.
9964 * lto-cgraph.c (input_node): Update.
9965 * ipa-inline.c (recursive_inlining): Update.
9966 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
9967 (evaluate_conditions_for_known_args): Break out from ...
9968 (evaluate_conditions_for_edge): ... here.
9969 (evaluate_conditions_for_ipcp_clone): New function.
9970 (inline_node_duplication_hook): Update clone summary based
9972 (estimate_callee_size_and_time): Rename to ...
9973 (estimate_node_size_and_time): take NODE instead of EDGE;
9974 take POSSIBLE_TRUTHS as argument.
9975 (estimate_callee_size_and_time): Update.
9976 (estimate_ipcp_clone_size_and_time): New function.
9977 (do_estimate_edge_time): Update.
9979 2011-05-08 Richard Guenther <rguenther@suse.de>
9983 * expmed.c (expand_shift_1): Compute adjusted constant shift
9986 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
9988 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
9990 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
9992 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
9994 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
9996 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
9998 2011-05-07 Jan Hubicka <jh@suse.cz>
10000 * ipa-inline-transform.c (inline_call): Account when program size
10002 * ipa-inline.c (relative_time_benefit): New function.
10003 (edge_badness): Reorganize to be power 2 based; fix thinko when
10004 computing badness for negative growth; update comments to match
10005 reality; better dumps.
10007 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
10009 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
10010 type to bool and adjust comment.
10011 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
10012 (fold_mathfn_compare): Remove calls to global_bindings_p.
10013 (fold_inf_compare): Likewise.
10014 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
10015 * c-tree.h (global_bindings_p): Adjust prototype.
10016 * c-decl.c (global_bindings_p): Return bool and simplify.
10018 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
10020 PR tree-optimization/48837
10021 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
10022 when accumulator transformation is performed.
10024 2011-05-06 Jan Hubicka <jh@suse.cz>
10026 * i386.h (ix86_tune_indices): Add
10027 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
10028 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
10029 * i386.c (initial_ix86_tune_features): Add
10030 X86_SOFTARE_PREFETCHING_BENEFICIAL.
10031 (software_prefetching_beneficial_p): Remove predicate.
10032 (ix86_option_override_internal): Use new macro.
10034 2011-05-06 Jan Hubicka <jh@suse.cz>
10036 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
10038 2011-05-06 Jan Hubicka <jh@suse.cz>
10040 * cgraph.c (cgraph_add_thunk): Create real function node instead
10041 of alias node; finalize it and mark needed/reachale; arrange visibility
10042 to be right and add it into the corresponding same comdat group list.
10043 (dump_cgraph_node): Dump thunks.
10044 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
10045 cgraph_function_with_gimple_body_p,
10046 cgraph_first_function_with_gimple_body,
10047 cgraph_next_function_with_gimple_body): New functions.
10048 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
10050 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
10051 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10052 * cgraphunit.c (cgraph_finalize_function): Only look into possible
10053 devirtualization when optimizing.
10054 (verify_cgraph_node): Verify thunks.
10055 (cgraph_analyze_function): Analyze thunks.
10056 (cgraph_mark_functions_to_output): Output thunks only in combination
10057 with function they are assigned to.
10058 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
10059 alias into normal node.
10060 (assemble_thunks): New functoin.
10061 (cgraph_expand_function): Use it.
10062 * lto-cgraph.c (lto_output_node): Stream thunks.
10063 (input_overwrite_node): Stream in thunks.
10064 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
10065 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
10066 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
10067 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
10068 (inline_analyze_function): Do not care about thunk jump functions.
10069 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
10070 * ipa-prop.c (ipa_prop_write_jump_functions): Use
10071 cgraph_function_with_gimple_body_p.
10072 * passes.c (do_per_function_toporder): Use
10073 cgraph_function_with_gimple_body_p.
10074 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
10075 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
10076 (function_called_by_processed_nodes_p): Likewise.
10078 2011-05-06 Joseph Myers <joseph@codesourcery.com>
10080 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
10081 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
10083 (mabi=): Replace with separate entries for mabi=altivec,
10084 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
10085 mabi=ieeelongdouble and mabi=ibmlongdouble.
10086 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
10087 check for -mabi=spe without SPE ABI support here.
10088 (rs6000_handle_option): Replace OPT_mabi_ handling with
10089 OPT_mabi_altivec and OPT_mabi_spe handling.
10091 2011-05-06 Cary Coutant <ccoutant@google.com>
10093 * dwarf2out.c (contains_subprogram_definition): New function.
10094 (should_move_die_to_comdat): Call it.
10096 2011-05-06 Jeff Law <law@redhat.com>
10098 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
10099 remove_ctrl_stmt_and_useless_edges.
10100 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
10101 (fixup_template_block, thread_single_edge): Likewise.
10102 (mark_threaded_blocks): Use THREAD_TARGET.
10104 2011-05-06 Alan Modra <amodra@gmail.com>
10107 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10108 const0_rtx as the arg to the dummy __tls_get_addr libcall.
10110 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
10112 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
10113 constraint modifier to "r".
10115 2011-05-06 Joseph Myers <joseph@codesourcery.com>
10117 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
10118 fall through for OPT_mcmodel_.
10120 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10122 * config/s390/s390.c (s390_asm_trampoline_template): Comment
10124 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
10126 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10129 * config/arm/arm.opt (marm): Document it.
10130 (mthumb): Reject negative variant.
10132 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
10135 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
10136 Fix typo in "ccvt" variable name.
10138 2011-05-06 Tristan Gingold <gingold@adacore.com>
10141 * config/vms/vms-ar.c (main): Remove cwd variable.
10143 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10146 * var-tracking.c (prepare_call_arguments): Move else before #endif.
10148 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
10150 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
10151 * gimplify.c (gimplify_switch_expr): Likewise.
10152 * omp-low.c (expand_omp_sections): Likewise.
10153 * tree-eh.c (lower_try_finally_switch): Likewise.
10154 (lower_eh_dispatch): Likewise.
10155 * tree.h (build_case_label): Declare.
10156 * tree.c (build_case_label): Define.
10158 2011-05-05 Jason Merrill <jason@redhat.com>
10161 * tree-inline.c (copy_tree_r): Use copy_statement_list.
10162 (copy_statement_list): Don't recurse.
10163 * stor-layout.c (copy_self_referential_tree_r): Don't allow
10166 2011-05-05 Joseph Myers <joseph@codesourcery.com>
10168 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
10169 through from -mfpu= handling.
10170 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
10172 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
10174 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
10177 2011-05-05 Steve Ellcey <sje@cup.hp.com>
10179 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
10181 (hppa[12]*-*-hpux11*): Ditto.
10182 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
10183 * config/ia64/hpux-unix2003.h: New.
10184 * config/pa/pa-hpux1131.opt: New.
10185 * config/pa/pa-hpux1131.h: New.
10186 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
10187 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
10188 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
10190 2011-05-05 Jakub Jelinek <jakub@redhat.com>
10193 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
10194 instead of mode as 3rd argument to recursive call.
10195 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
10196 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
10198 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
10199 don't give up if mode is Pmode and mem_mode is not VOIDmode.
10200 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
10201 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
10203 2011-05-05 Julian Brown <julian@codesourcery.com>
10205 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
10206 parenthesis in D-register case.
10208 2011-05-05 Joseph Myers <joseph@codesourcery.com>
10210 * opt-functions.awk (var_type_struct): Handle Enum options.
10211 * optc-gen.awk: Don't check range of variables of character type.
10212 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
10213 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
10214 rs6000_sdata_name, rs6000_explicit_options): Remove.
10215 (rs6000_option_override_internal): Check for -malign-power here.
10216 Use global_options_set instead of rs6000_explicit_options.
10217 (rs6000_parse_fpu_option): Remove.
10218 (rs6000_handle_option): Access variables via opts and opts_set
10219 pointers. Use error_at and warning_at. Add fall-through
10220 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
10221 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
10222 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
10223 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
10224 here. Don't use rs6000_parse_fpu_option.
10225 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
10226 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
10227 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
10228 (mrecip=): Use Var.
10229 (mspe): Use Var and Save.
10230 (mtraceback=): Use Enum and Var.
10231 (rs6000_traceback_type): New Enum and EnumValue entries.
10232 (mfloat-gprs=): Use Enum, Var and Save.
10233 (rs6000_float_gprs): New Enum and EnumValue entries.
10234 (mlong-double-): use Var and Save.
10235 (msched-costly-dep=, minsert-sched-nops=): Use Var.
10236 (malign-): Use Enum and Var.
10237 (rs6000_alignment_flags): New Enum and EnumValue entries.
10239 (fpu_type_t): New Enum and EnumValue entries.
10240 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10241 global_options_set instead of rs6000_explicit_options.
10242 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10243 global_options_set instead of rs6000_explicit_options.
10244 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10245 global_options_set instead of rs6000_explicit_options.
10246 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
10247 global_options_set instead of rs6000_explicit_options.
10248 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
10249 global_options_set instead of rs6000_explicit_options.
10250 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10251 global_options_set instead of rs6000_explicit_options.
10252 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
10254 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10255 global_options_set instead of rs6000_explicit_options.
10256 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
10257 (rs6000_cmodel): New Enum and EnumValue entries.
10258 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
10259 global_options_set instead of rs6000_explicit_options.
10260 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
10261 (mtls-size=): Use Enum and Var.
10262 (rs6000_tls_size): New Enum and EnumValue entries.
10264 2011-05-05 Michael Matz <matz@suse.de>
10266 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
10267 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
10268 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
10269 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
10270 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
10271 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
10272 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
10273 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
10274 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
10275 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
10276 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
10277 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
10278 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
10279 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
10280 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
10281 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
10283 2011-05-05 Richard Guenther <rguenther@suse.de>
10285 * expmed.c (expand_variable_shift): Rename to ...
10286 (expand_shift_1): ... this. Take an expanded shift amount.
10287 For rotates recurse directly not building trees for the shift amount.
10288 (expand_variable_shift): Wrap around expand_shift_1.
10289 (expand_shift): Adjust.
10291 2011-05-05 Jakub Jelinek <jakub@redhat.com>
10293 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
10295 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
10297 * tree.h (get_pending_sizes): Remove prototype.
10298 (put_pending_size): Likewise.
10299 (put_pending_sizes): Likewise.
10300 * stor-layout.c (pending_sizes): Delete.
10301 (get_pending_sizes): Likewise.
10302 (put_pending_size): Likewise.
10303 (put_pending_sizes): Likewise.
10304 (variable_size): Do not call put_pending_size and tidy up.
10305 * function.h (struct function): Remove dont_save_pending_sizes_p.
10306 * lto-streamer-in.c (input_function): Do not stream it.
10307 * lto-streamer-out.c (output_function): Likewise.
10308 * tree-inline.c (initialize_cfun): Do not copy it.
10309 * c-decl.c (store_parm_decls): Do not set it.
10310 * omp-low.c (create_task_copyfn): Likewise.
10311 * tree-optimize.c (tree_rest_of_compilation): Likewise.
10313 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
10315 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
10317 (*movdf_internal): Ditto.
10318 (*movdf_internal_nointeger): Ditto.
10319 (*movsf_internal): Ditto.
10321 2011-05-05 Joseph Myers <joseph@codesourcery.com>
10323 * c-decl.c (finish_decl): Don't call get_pending_sizes.
10324 (grokparm): Add parameter expr. Pass it to grokdeclarator.
10325 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
10326 (c_variable_size): Remove.
10327 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
10328 call put_pending_sizes.
10329 (get_parm_info): Add parameter expr. Use it to set
10330 arg_info->pending_sizes.
10331 (store_parm_decls): Use arg_info->pending_sizes instead or calling
10333 * c-parser.c (c_parser_parms_declarator): Update call to
10334 c_parser_parms_list_declarator.
10335 (c_parser_parms_list_declarator): Take parameter expr. Update
10336 call to push_parm_decl. Update recursive call. Don't call
10337 get_pending_sizes. Update calls to get_parm_info.
10338 (c_parser_objc_method_definition): Update calls to
10339 c_parser_objc_method_decl and objc_start_method_definition.
10340 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
10341 (c_parser_objc_method_decl): Add parameter expr. Update call to
10343 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
10344 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
10345 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
10347 2011-05-05 Michael Hope <michael.hope@linaro.org>
10350 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
10351 __ARM_EABI__ hosts.
10353 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10355 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10356 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
10357 (spu_output_mi_thunk): New function.
10359 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10361 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
10362 targetm.asm_out.print_operand.
10363 * config/sol2.c: Include target.h.
10365 2011-05-04 Jan Hubicka <jh@suse.cz>
10367 * ipa-inline.c (reset_edge_caches): New function.
10368 (update_caller_keys): Add check_inlinablity_for; do not
10369 reset edge caches; remove now unnecesary loop.
10370 (update_callee_keys): Add comments; reset node_growth_cache of callee.
10371 (update_all_callee_keys): Likewise.
10372 (inline_small_functions): Sanity check cache; update code
10375 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
10377 PR rtl-optimization/47612
10378 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
10379 as the last insn of the sequence to be moved.
10381 2011-05-04 Tobias Burnus <burnus@net-b.de>
10384 * doc/invoke.texi (Ofast): Document that it
10385 enables Fortran's -fno-protect-parens.
10387 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
10389 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
10391 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
10393 * stor-layout.c (variable_size): Do not issue errors.
10395 2011-05-04 Richard Guenther <rguenther@suse.de>
10397 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
10398 for array-ref indices.
10399 (tree_coverage_counter_addr): Likewise.
10400 (build_fn_info_type): Use size_int for index types.
10401 (build_gcov_info): Likewise.
10403 2011-05-04 Richard Guenther <rguenther@suse.de>
10405 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
10407 * c-typeck.c (really_start_incremental_init): Use bitsize_int
10408 for constructor indices.
10409 (push_init_level): Likewise.
10411 2011-05-04 Richard Guenther <rguenther@suse.de>
10413 * explow.c (promote_mode): Move variable declarations before code.
10415 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
10417 * tree.h (build_function_type_array): Declare.
10418 (build_varargs_function_type_array): Declare.
10419 (build_function_type_vec, build_varargs_function_type_vec): Define.
10420 * tree.c (build_function_type_array_1): New function.
10421 (build_function_type_array): New function.
10422 (build_varargs_function_type_array): New function.
10424 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
10426 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
10427 before setting STMT_VINFO_TYPE.
10429 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10431 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
10432 instead of spu_pass_by_reference.
10434 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10436 * calls.c (emit_library_call_value_1): Invoke
10437 promote_function_mode hook on libcall arguments.
10438 * explow.c (promote_function_mode, promote_mode): Handle TYPE
10439 argument being NULL.
10440 * targhooks.c (default_promote_function_mode): Lisewise.
10441 * config/s390/s390.c (s390_promote_function_mode): Likewise.
10442 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
10444 * doc/tm.texi: Document that TYPE argument might be NULL.
10446 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
10448 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
10450 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
10453 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
10455 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10457 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
10458 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
10460 * mips-tfile.c: ... here.
10461 Don't include coretypes.h, tm.h, filenames.h.
10462 (saber_stop): Remove definition and all calls.
10463 [__SABER__]: Remove.
10464 (__LINE__): Remove default.
10465 (Size_t, Ptrdiff_t): Remove definitions.
10466 Replace by size_t, ptrdiff_t.
10467 [!MIPS_DEBUGGING_INFO]: Remove.
10468 (SHASH_SIZE, THASH_SIZE): Remove defaults.
10469 (progname): Add const.
10471 Replace all uses by static.
10472 (ALIGN_SYMTABLE_OFFSET): Remove default.
10473 * mips-tdump.c: Don't include coretypes.h, tm.h.
10474 Remove !MIPS_IS_STAB guard.
10475 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
10476 $(TM_H), filenames.h dependencies.
10477 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
10479 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
10482 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
10483 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10485 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
10488 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
10489 account and save/restore RETS.
10490 (PROFILE_BEFORE_PROLOGUE): Define.
10491 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
10492 the push insn to use predecrement.
10494 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
10497 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
10499 2011-05-04 Nick Clifton <nickc@redhat.com>
10501 * config/mn10300/mn10300.c: Include cfgloop.h.
10503 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
10504 Lcc or a FLcc insn into the instruction stream.
10505 (mn10300_block_contains_call): New function. Returns true if the
10506 given basic block contains a CALL insn.
10507 (mn10300_loop_contains_call_insn): New function. Returns true if
10508 the given loop contains a CALL insn.
10509 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
10510 to use the SETLB and Lcc or FLcc insns.
10511 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
10512 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
10513 * config/mn10300/mn10300.opt (msetlb): New option. Used to
10514 disable the SETLB optimization.
10515 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
10516 __SETLB__ or __NO_SETLB__.
10517 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
10518 (movsf_internal): Handle MDR register.
10519 (cmpsi): Make visible.
10520 (setlb): New pattern.
10521 (Lcc): New pattern.
10522 (FLcc): New pattern.
10524 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
10527 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
10528 for reg<->xmm moves.
10529 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
10530 (vec_concatv2di_rex64_sse): Ditto.
10531 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
10532 (*vec_extractv2di_1_rex64): Ditto.
10535 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
10537 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10539 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
10541 2011-05-04 Richard Guenther <rguenther@suse.de>
10543 * tree.h (int_const_binop): Remove notrunc argument.
10544 * fold-const.c (int_const_binop): Remove notrunc argument. Always
10545 create integer constants that are properly truncated.
10546 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
10547 (const_binop): Remove zero notrunc argument to int_const_binop.
10548 (size_binop_loc): Likewise.
10549 (fold_div_compare): Likewise.
10550 (maybe_canonicalize_comparison_1): Likewise.
10551 (fold_comparison): Likewise.
10552 (fold_binary_loc): Likewise.
10553 (multiple_of_p): Likewise.
10554 * expr.c (store_constructor): Likewise.
10555 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10556 (maybe_fold_stmt_addition): Likewise.
10557 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
10558 * stor-layout.c (layout_type): Likewise.
10559 * tree-data-ref.c (tree_fold_divides_p): Likewise.
10560 * tree-sra.c (build_ref_for_offset): Likewise.
10561 (build_user_friendly_ref_for_offset): Likewise.
10562 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
10563 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
10564 * tree-ssa-loop-niter.c (inverse): Likewise.
10565 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10566 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
10567 * tree-switch-conversion.c (check_range): Likewise.
10568 (build_constructors): Likewise.
10569 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
10570 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
10571 (extract_range_from_assert): Likewise.
10572 (vrp_int_const_binop): Likewise.
10573 (extract_range_from_binary_expr): Likewise.
10574 (extract_range_from_unary_expr): Likewise.
10575 (check_array_ref): Likewise.
10576 (find_case_label_range): Likewise.
10577 (simplify_div_or_mod_using_ranges): Likewise.
10578 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
10579 comparing case labels for merging.
10581 2011-05-03 Mark Wielaard <mjw@redhat.com>
10583 * dwarf2out.c (debug_str_hash_forced): Removed.
10584 (gen_label_for_indirect_string): Removed.
10585 (get_debug_string_label): Removed.
10586 (AT_string_form): Generate label directly.
10587 (output_indirect_string): Test indirect_string_node for
10588 DW_FORM_strp instead of checking label and refcount.
10589 (prune_indirect_string): Removed.
10590 (prune_unused_types): Don't check debug_str_hash_forced or
10591 call prune_indirect_string.
10593 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
10596 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
10598 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
10602 * combine.c (try_combine): Skip debug insns at m_split tests.
10604 2011-04-26 Mark Wielaard <mjw@redhat.com>
10607 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
10608 when info_section_emitted.
10610 2011-05-03 Joseph Myers <joseph@codesourcery.com>
10612 * config/mips/mips-opts.h: New.
10613 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
10615 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
10616 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
10617 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
10619 * config/mips/mips.h (enum mips_code_readable_setting): Move to
10621 (mips_abi, mips_code_readable): Don't declare.
10622 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
10623 (mabi=): Use Enum and Var.
10624 (mips_abi): New Enum and EnumValue entries.
10625 (mcode-readable=): Use Enum and Var.
10626 (mips_code_readable_setting): New Enum and EnumValue entries.
10627 (mr10k-cache-barrier=): Use Enum and Var.
10628 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
10630 2011-05-03 Jan Hubicka <jh@suse.cz>
10632 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
10633 replace hash by pointer map.
10634 (cgraph_node_set_element_def, cgraph_node_set_element,
10635 const_cgraph_node_set_element, varpool_node_set_element_def,
10636 varpool_node_set_element, const_varpool_node_set_element): Remove.
10637 (free_cgraph_node_set, free_varpool_node_set): New function.
10638 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
10639 * tree-emutls.c: Free varpool node set.
10640 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
10641 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10642 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
10643 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10644 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
10645 Move here from ipa.c; implement using pointer_map
10646 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
10647 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
10648 debug_cgraph_node_set, varpool_node_set_new,
10649 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
10650 dump_varpool_node_set, debug_varpool_node_set):
10651 Move to ipa-uitls.c.
10652 * passes.c (ipa_write_summaries): Update.
10654 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10656 From Mike Frysinger:
10657 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
10658 bf542/bf544/bf547/bf548/bf549.
10660 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
10662 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
10664 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10666 From Bernd Schmidt:
10667 * config/bfin/bfin.md (MOVCC): New mode_macro.
10668 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
10669 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
10670 comments from generated assembly.
10672 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10675 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
10676 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
10677 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
10678 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
10679 * config/bfin/lib1funcs.asm (___muldi3): New function.
10681 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10683 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
10684 build_function_type_list instead of build_function_type.
10685 Rearrange initialization of `args' to do so.
10687 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10689 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
10690 instead of build_function_type.
10692 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10694 * config/rs6000/rs6000.c (spe_init_builtins): Call
10695 build_function_type_list instead of build_function_type.
10696 (paired_init_builtins, altivec_init_builtins): Likewise.
10697 (builtin_function_type): Likewise.
10699 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10701 * config/sh/sh.c (sh_media_init_builtins): Call
10702 build_function_type_list instead of build_function_type.
10704 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10706 * config/sparc/sparc.c (sparc_file_end): Call
10707 build_function_type_list instead of build_function_type.
10709 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10711 * config/alpha/alpha.c (alpha_init_builtins): Call
10712 build_function_type_list instead of build_function_type.
10714 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10716 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
10717 build_function_type_list instead of build_function_type.
10719 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10721 * config/iq2000/i2000.c (iq2000_init_builtins): Call
10722 build_function_type_list instead of build_function_type.
10723 Delete `endlink' variable.
10725 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10727 * config/avr/avr.c (avr_init_builtins): Call
10728 build_function_type_list instead of build_function_type.
10730 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10732 * config/picochip/picochip.c (picochip_init_builtins): Call
10733 build_function_type_list instead of build_function_type.
10734 Delete `endlink' variable.
10736 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
10738 * config/bfin/bfin.c (bfin_init_builtins): Call
10739 build_function_type_list instead of build_function_type.
10741 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10744 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
10745 that's not CONST_INT. Seemingly redundant check is due to PR39768.
10747 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10750 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
10751 libbffastfp overrides libgcc when -mfast-fp.
10753 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10755 Originally from Bernd Schmidt
10756 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
10757 * config/bfin/bfin.c (override_options): Test it and error if
10760 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
10762 Originally From Bernd Schmidt
10763 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
10766 2011-05-03 Jeff Law <law@redhat.com>
10768 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
10769 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
10770 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
10771 than accessing AUX field directly. Free the AUX field before
10773 (thread_block, thread_through_loop_header): Likewise.
10774 (thread_single_edge, mark_threaded_blocks): Likewise.
10775 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
10776 (register_jump_thread): Do not attempt to thread to a NULL edge.
10778 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
10780 * function.c (init_function_start): Call decide_function_section.
10781 * varasm.c (decide_function_section): New function.
10782 (assemble_start_function): When not using
10783 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
10784 or first_function_block_is_cold.
10785 * rtl.h (decide_function_section): Declare.
10787 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
10788 Jakub Jelinek <jakub@redhat.com>
10791 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
10792 only succeed if req_mode is the same as set_mode.
10794 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
10796 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
10797 * genemit.c (gen_exp): Handle RETURN.
10798 * emit-rtl.c (verify_rtx_sharing): Likewise.
10799 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
10800 * rtl.c (copy_rtx): RETURN is shared.
10801 * rtl.h (enum global_rtl_index): Add GR_RETURN.
10803 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
10804 * config/s390/s390.c (s390_emit_epilogue): Likewise.
10805 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
10806 * config/cris/cris.c (cris_expand_return): Likewise.
10807 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
10808 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
10809 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
10810 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
10811 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
10813 * config/v850/v850.c (expand_epilogue): Likewise.
10814 * config/bfin/bfin.c (bfin_expand_call): Likewise.
10815 * config/arm/arm.md (epilogue): Likewise.
10816 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
10817 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
10818 variable to ret_reg.
10820 2011-05-03 Richard Guenther <rguenther@suse.de>
10823 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
10824 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
10825 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10827 2011-05-03 Richard Guenther <rguenther@suse.de>
10829 * c-decl.c (grokdeclarator): Instead of looking at
10830 TREE_OVERFLOW check if the constant fits in the index type.
10832 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
10834 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
10835 (vec_store_lanes<mode><mode>): Likewise.
10837 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
10839 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
10840 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
10841 convert_optab_index values.
10842 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
10843 * genopinit.c (optabs): Initialize the new optabs.
10844 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
10845 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
10846 (expand_STORE_LANES): New functions.
10847 * tree.h (build_array_type_nelts): Declare.
10848 * tree.c (build_array_type_nelts): New function.
10849 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
10850 (vect_model_load_cost): Likewise.
10851 (vect_store_lanes_supported, vect_load_lanes_supported)
10852 (vect_record_strided_load_vectors): Declare.
10853 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
10854 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
10855 (vect_transform_strided_load): Split out statement recording into...
10856 (vect_record_strided_load_vectors): ...this new function.
10857 * tree-vect-stmts.c (create_vector_array, read_vector_array)
10858 (write_vector_array, create_array_ref): New functions.
10859 (vect_model_store_cost): Add store_lanes_p argument.
10860 (vect_model_load_cost): Add load_lanes_p argument.
10861 (vectorizable_store): Try to use store-lanes functions for
10862 interleaved stores.
10863 (vectorizable_load): Likewise load-lanes and loads.
10864 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
10865 to vect_model_store_cost.
10866 (vect_build_slp_tree): Likewise vect_model_load_cost.
10868 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
10870 * hooks.h (hook_bool_mode_uhwi_false): Declare.
10871 * hooks.c (hook_bool_mode_uhwi_false): New function.
10872 * target.def (array_mode_supported_p): New hook.
10873 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
10874 * doc/tm.texi: Regenerate.
10875 * stor-layout.c (mode_for_array): New function.
10876 (layout_type): Use it.
10877 * config/arm/arm.c (arm_array_mode_supported_p): New function.
10878 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
10880 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
10883 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
10884 for -fstack-check if the size to allocate is negative.
10886 2011-05-02 Lawrence Crowl <crowl@google.com>
10888 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
10889 (timevar_cond_start): New for starting a timer only when it is not
10891 (timevar_cond_stop): New for stopping a timer when it was not already
10894 * timevar.c (timevar_stop): Enable start/stop timers to start again.
10895 (timevar_cond_start): New as above.
10896 (timevar_cond_stop): New as above.
10898 * timevar.def: Add start/stop timers for compiler phases,
10899 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
10900 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
10901 and TV_PHASE_FINALIZE.
10902 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
10903 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
10904 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
10905 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
10906 Make unused TV_OVERLOAD into a start/stop timer.
10908 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
10909 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
10910 to indicate that they are start/stop timers.
10912 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
10913 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
10914 Move initialization to do_compile.
10915 (do_compile): Add initialization from above.
10916 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
10918 * c-decl.c (c_write_global_declarations): Add start/stop of
10919 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
10921 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
10922 or TV_PARSE_INLINE, as appropriate.
10923 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
10924 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
10926 2011-05-02 Jason Merrill <jason@redhat.com>
10929 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
10931 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
10934 * c-decl.c (finish_decl): Only create a composite if the types are
10937 2011-05-02 Joseph Myers <joseph@codesourcery.com>
10939 * config/fr30/fr30-protos.h (Mmode): Don't define.
10940 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
10941 definition where used.
10942 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
10943 define. Expand definitions where used.
10944 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
10945 Expand definitions where used.
10946 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
10947 rx_function_arg, rx_function_arg_advance,
10948 rx_function_arg_boundary): Expand definitions of those macros.
10949 * config/v850/v850-protos.h (Mmode): Don't define. Expand
10950 definition where used.
10952 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
10954 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
10956 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
10957 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
10958 with *movv2sf_internal_rex64_avx.
10959 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
10960 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
10961 Use %v prefix in insn mnemonic to handle TARGET_AVX.
10962 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
10963 "vex" in "prefix" attribute calculation.
10964 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
10966 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
10969 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
10970 inputs match the output.
10972 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
10975 * config/m68k/m68k.c (m68k_expand_prologue): Set
10976 current_function_static_stack_size.
10978 2011-05-02 Jan Hubicka <jh@suse.cz>
10980 * lto-streamer.c (lto_streamer_cache_insert_1,
10981 lto_streamer_cache_lookup, lto_streamer_cache_create,
10982 lto_streamer_cache_delete): Use pointer map instead of hashtable.
10983 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
10985 2011-05-02 Joseph Myers <joseph@codesourcery.com>
10987 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
10988 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
10989 config/m68k/t-opts: New files.
10990 * config/m68k/m68k-tables.opt: New file (generated).
10991 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
10992 extra_options and m68k/t-opts to tmake_file.
10993 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
10994 (all_isas): Initialize using m68k-isas.def.
10995 (all_microarchs): Initialize using m68k-microarchs.def.
10996 (m68k_find_selection): Remove.
10997 (m68k_handle_option): Don't assert that global structures are in
10998 use. Use error_at. Access variables via opts pointer. Don't
10999 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
11000 directly for -m68020-40 and -m68020-60.
11001 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
11002 m68k_tune_entry here.
11003 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
11005 (m68k_library_id_string): Remove declaration.
11006 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
11007 (m68k_library_id_string): New Variable.
11008 (march=, mcpu=, mtune=): Use Enum and Var.
11010 2011-05-02 Richard Guenther <rguenther@suse.de>
11012 * varasm.c (output_constructor_regular_field): Compute zero-based
11013 index with double-ints. Make sure to ICE instead of producing
11015 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
11016 in asserts. Properly use a signed type.
11018 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
11020 * config/i386/sse.md (V): New mode iterator.
11021 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
11023 (V_256): Rename from AVX256MODE.
11024 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
11025 condition to all users.
11027 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
11028 condition to all users.
11029 (VF_128): Make V4SF mode unconditional.
11030 (VF_256): Rename from AVX256MODEF2P.
11031 (VI4F_128): Rename from SSEMODE4S.
11032 (VI8F_128): Rename from SSEMODE2D.
11033 (VI4F_256): Rename from AVX256MODE8P.
11034 (VI8F_256): Rename from AVX256MODE4P.
11035 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
11036 (ssescalarmodesuffix): Remove SF and DF modes.
11037 (SSEMODE124): Remove.
11038 (SSEMODE1248): Ditto.
11039 (SSEMODEF2P): Ditto.
11040 (AVXMODEF2P): Ditto.
11041 (AVXMODEFDP): Ditto.
11042 (AVXMODEFSP): Ditto.
11043 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
11045 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
11047 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
11048 xop_pcmov_<mode>256. Use V mode iterator.
11050 Adjust RTX patterns globally for renamed mode attributes.
11052 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11054 * haifa-sched.c (sched_emit_insn): Emit insn before first
11055 non-scheduled insn. Inform back-end about new insn. Add
11056 new insn to scheduled_insns list.
11058 2011-05-02 Richard Guenther <rguenther@suse.de>
11060 PR tree-optimization/48822
11061 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
11062 (process_scc): Indicate which iteration we start.
11064 2011-05-02 Jan Hubicka <jh@suse.cz>
11066 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
11067 (lto_section_overrun): New.
11068 * lto-section-out.c (append_block): Rename to ...
11069 (lto_append_block): ... this one; export.
11070 (lto_output_1_stream): Move lto lto-streamer.h
11071 (lto_output_data_stream): Update.
11072 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
11073 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
11076 2011-05-02 Richard Guenther <rguenther@suse.de>
11078 * tree.c (tree_code_counts): New global array.
11079 (record_node_allocation_statistics): Count individual tree codes.
11080 (dump_tree_statistics): Dump individual code stats.
11082 2011-05-01 Jan Hubicka <jh@suse.cz>
11084 * ipa-inline.c (caller_growth_limits): Fix thinko when
11085 looking for largest stack frame.
11086 * ipa-inline.h (dump_inline_summary): Declare.
11087 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
11089 (dump_inline_summary): Export.
11090 (debug_inline_summary): Declare as DEBUG_FUNCTION.
11092 2011-05-01 Anatoly Sokolov <aesok@post.ru>
11094 * reginfo.c (memory_move_cost): Change rclass argument type form
11095 'enum reg_class' to reg_class_t.
11096 * reload.h (memory_move_cost): Update prototype.
11097 * postreload.c reload_cse_simplify_set): Change type dclass var to
11099 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
11101 (ira_allocate_and_set_costs): Change aclass argument type form
11102 'enum reg_class' to reg_class_t.
11103 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
11104 Change aclass argument type to reg_class_t.
11105 (update_conflict_hard_reg_costs): Change type aclass and pref vars
11107 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
11108 memory_move_cost call.
11110 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
11111 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
11112 Change type tmp var to reg_class_t.
11114 2011-04-30 Jan Hubicka <jh@suse.cz>
11116 * ipa-inline.c (can_inline_edge_p): Disregard limits when
11117 inlining into function with flatten attribute.
11118 (want_inline_small_function_p): Be more realistic about inlining
11119 cold calls where callee size grows.
11121 2011-04-30 Jan Hubicka <jh@suse.cz>
11123 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
11126 2011-04-30 Anatoly Sokolov <aesok@post.ru>
11128 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
11129 PRINT_OPERAND_PUNCT_VALID_P): Remove.
11130 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
11131 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
11132 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11133 (print_operand): Rename to...
11134 (sparc_print_operand): ...this. Make static. Adjust
11135 sparc_print_operand function call.
11136 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
11139 2011-04-30 Jan Hubicka <jh@suse.cz>
11141 PR middle-end/48752
11142 * ipa-inline.c (early_inliner): Disable when doing late
11143 addition of function.
11145 2011-04-30 Jakub Jelinek <jakub@redhat.com>
11147 * dwarf2out.c (get_address_mode): New inline.
11148 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
11149 if not dwarf_strict emit
11150 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
11151 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
11152 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
11153 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
11154 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
11155 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
11156 mem_loc_descriptor callers.
11157 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11158 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
11159 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
11160 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
11161 (base_types): New variable.
11162 (get_base_type_offset, calc_base_type_die_sizes,
11163 base_type_for_mode, mark_base_types, base_type_cmp,
11164 move_marked_base_types): New functions.
11165 (calc_die_sizes): Assert that die_offset is 0 or equal to
11167 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
11168 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
11169 callers. If not dwarf_strict, call mem_loc_descriptor even for
11170 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
11171 (gen_subprogram_die): Don't give up on call site parameters
11172 with non-integral or large integral modes. Adjust
11173 mem_loc_descriptor callers.
11174 (prune_unused_types): Call prune_unused_types_mark on base_types
11176 (resolve_addr): Call mark_base_types.
11177 (dwarf2out_finish): Call move_marked_base_types.
11179 PR tree-optimization/48809
11180 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
11182 (gen_inbound_check): Don't compute index_expr - range_min in utype
11183 again, instead reuse SSA_NAME initialized in build_arrays.
11184 Remove two useless gsi_for_stmt calls.
11186 2011-04-29 Jeff Law <law@redhat.com>
11188 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
11190 2011-04-29 Martin Jambor <mjambor@suse.cz>
11192 * cgraph.h (cgraph_postorder): Remove declaration.
11193 * ipa-utils.h (ipa_free_postorder_info): Declare.
11194 (ipa_reverse_postorder): Likewise.
11195 * cgraphunit.c: Include ipa-utils.h.
11196 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
11197 * ipa-inline.c: Include ipa-utils.h.
11198 (ipa_inline): Update call to ipa_reverse_postorder.
11199 * ipa-pure-const.c (propagate_pure_const): Update call to
11200 ipa_reduced_postorder and ipa_print_order. Call
11201 ipa_free_postorder_info to clean up.
11202 (propagate_nothrow): Likewise.
11203 * ipa-reference.c (propagate): Removed a useless call to
11204 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
11205 and ipa_print_order. Call ipa_free_postorder_info to clean up.
11206 * ipa.c: Include ipa-utils.h.
11207 (ipa_profile): Update call to ipa_reverse_postorder.
11208 (cgraph_postorder): Moved to...
11209 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
11210 (ipa_utils_print_order): Renamed to ipa_print_order.
11211 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
11213 (ipa_free_postorder_info): New function.
11214 * passes.c: Include ipa-utils.h.
11215 (do_per_function_toporder): Update call to ipa_reverse_postorder.
11216 (ipa_write_summaries): Likewise.
11217 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
11218 (cgraphunit.o): Likewise.
11220 (ipa-inline.o): Likewise.
11222 2011-04-29 Jan Hubicka <jh@suse.cz>
11224 * gcc.dg/tree-ssa/inline-10.c: New testcase.
11225 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
11226 * ipa-inline.h (clause_t): Turn into unsigned int.
11227 * ipa-inline-analysis.c (add_clause): Do more simplification.
11228 (and_predicates): Shortcut more cases.
11229 (predicates_equal_p): Move forward; check that clauses are properly
11231 (or_predicates): Shortcut more cases.
11232 (edge_execution_predicate): Rewrite as...
11233 (set_cond_stmt_execution_predicate): ... this function; handle
11234 __builtin_constant_p.
11235 (set_switch_stmt_execution_predicate): New .
11236 (compute_bb_predicates): New.
11237 (will_be_nonconstant_predicate): Update TODO.
11238 (estimate_function_body_sizes): Use compute_bb_predicates
11239 and free them later, always try to estimate if stmt is constant.
11240 (estimate_time_after_inlining, estimate_size_after_inlining):
11241 Gracefully handle optimized out edges.
11242 (read_predicate): Fix off by one error.
11244 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
11246 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
11248 2011-04-27 Xinliang David Li <davidxl@google.com>
11250 * tree-profile.c (init_ic_make_global_vars): Set
11251 tls attribute on ic vars.
11252 * coverage.c (coverage_end_function): Initialize
11253 function_list with zero.
11255 2011-04-29 Richard Guenther <rguenther@suse.de>
11257 * builtins.c (fold_builtin_classify_type): Use integer_type_node
11258 for the type of the result.
11259 (fold_builtin_isascii): Likewise.
11260 (fold_builtin_toascii): Use integer_type_node where appropriate.
11261 (fold_builtin_logb): Likewise.
11262 (fold_builtin_frexp): Likewise.
11263 (fold_builtin_strstr): Likewise.
11264 (fold_builtin_strpbrk): Likewise.
11265 (fold_builtin_fputs): Likewise.
11266 (fold_builtin_sprintf): Likewise.
11267 (fold_builtin_snprintf): Likewise.
11268 (fold_builtin_printf): Likewise.
11269 (do_mpfr_remquo): Use a proper type for the assigned constant.
11270 (do_mpfr_lgamma_r): Likewise.
11271 * dwarf2out.c (resolve_one_addr): Use size_int.
11272 * except.c (init_eh): Likewise.
11273 (assign_filter_values): Use integer_type_node for filter values.
11274 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
11276 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
11277 for EH region numbers.
11278 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
11279 for the shift amount.
11281 2011-04-29 Richard Guenther <rguenther@suse.de>
11283 * expr.h (expand_shift): Rename to ...
11284 (expand_variable_shift): ... this.
11285 (expand_shift): Take a constant shift amount.
11286 * expmed.c (expand_shift): Rename to ...
11287 (expand_variable_shift): ... this.
11288 (expand_shift): New wrapper around expand_variable_shift.
11289 * expr.c (convert_move, emit_group_load_1, emit_group_store,
11290 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
11291 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
11292 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
11293 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
11294 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
11295 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
11296 emit_store_flag_1, emit_store_flag): Likewise.
11297 * builtins.c (expand_builtin_signbit): Likewise.
11298 * calls.c (load_register_parameters): Likewise.
11299 * function.c (assign_parm_setup_block): Likewise.
11300 * lower-subreg.c (resolve_shift_zext): Likewise.
11301 * optabs.c (widen_bswap, expand_abs_nojump,
11302 expand_one_cmpl_abs_nojump, expand_float): Likewise.
11303 * spu/spu.c (spu_expand_extv): Likewise.
11304 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11306 2011-04-29 Richard Guenther <rguenther@suse.de>
11308 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
11309 for the remapped region number.
11310 * predict.c (build_predict_expr): Use integer_type_node for the
11312 * fold-const.c (fold_binary_loc): Use integer_type_node for
11313 the shift amount. Use a proper type for the PLUS_EXPR operand.
11315 2011-04-29 Michael Matz <matz@suse.de>
11317 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
11318 other trees that just builtins.
11319 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
11321 2011-04-29 Richard Guenther <rguenther@suse.de>
11323 * tree-nested.c (get_trampoline_type): Use size_int.
11324 (get_nl_goto_field): Likewise.
11325 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
11327 (lower_eh_constructs_2): Likewise.
11328 (lower_resx): Likewise.
11329 (lower_eh_dispatch): Likewise.
11330 * tree-mudflap.c (mf_build_string): Use size_int.
11331 (mudflap_register_call): Use integer_type_node for the flag.
11332 (mudflap_enqueue_constant): Use size_int.
11333 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
11334 instead of rebuilding it.
11336 2011-04-29 Richard Guenther <rguenther@suse.de>
11338 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
11339 Handle OBJ_TYPE_REF.
11340 (find_func_aliases_for_call): Use it more consistently.
11342 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
11344 * haifa-sched.c (last_nondebug_scheduled_insn): New.
11345 (rank_for_schedule): Use it.
11346 (schedule_block): Set it.
11348 2011-04-28 David Li <davidxl@google.com>
11350 * tree.c (crc32_string): Use crc32_byte.
11351 (crc32_byte): New function.
11352 * tree.h (crc32_byte): New function.
11353 * gcov.c (read_graph_file): Handle new cfg_cksum.
11354 (read_count_file): Ditto.
11355 * profile.c (instrument_values): Ditto.
11356 (get_exec_counts): Ditto.
11357 (read_profile_edge_counts): Ditto.
11358 (compute_branch_probabilities): Ditto.
11359 (compute_value_histograms): Ditto.
11360 (branch_prob): Ditto.
11361 (end_branch_prob): Ditto.
11362 * coverage.c (read_counts_file): Ditto.
11363 (get_coverage_counts): Ditto.
11364 (tree_coverage_counter_addr): Ditto.
11365 (coverage_checksum_string): Ditto.
11366 (coverage_begin_output): Ditto.
11367 (coverage_end_function): Ditto.
11368 (build_fn_info_type): Ditto.
11369 (build_fn_info_value): Ditto.
11370 * libgcov.c (gcov_exit): Ditto.
11371 * gcov-dump.c (tag_function): Ditto.
11372 (compute_checksum): Remove.
11374 2011-04-29 Alan Modra <amodra@gmail.com>
11376 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11377 unspec plus offset. Tidy macho code.
11379 2011-04-29 Martin Jambor <mjambor@suse.cz>
11381 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
11382 node instead of a decl. Update all callers.
11383 * cgraph.h: Update declaration.
11385 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
11387 PR tree-optimization/48765
11388 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
11389 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
11390 to indicate if loop aware SLP is being used. Scan the statements
11391 and update the vectorization factor according to the type of
11392 vectorization before statement analysis.
11393 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
11394 pass it to vect_analyze_loop_operations.
11395 (vectorizable_reduction): Set number of copies to 1 in case of pure
11397 * tree-vect-stmts.c (vectorizable_conversion,
11398 vectorizable_assignment, vectorizable_shift,
11399 vectorizable_operation, vectorizable_type_demotion,
11400 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
11402 (vectorizable_condition): Move the check that it is not SLP
11403 vectorization before the number of copies check.
11404 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
11405 to vectorize the loop using SLP.
11407 2011-04-28 Jakub Jelinek <jakub@redhat.com>
11409 PR middle-end/48597
11410 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
11413 2011-04-28 Joseph Myers <joseph@codesourcery.com>
11415 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
11416 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
11417 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11418 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11419 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
11421 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
11422 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11423 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11424 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11425 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
11426 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
11428 * config/i386/linux.h (REG_NAME): Don't define.
11429 * config/i386/linux64.h (REG_NAME): Don't define.
11430 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
11431 Undefine before defining.
11433 2011-04-28 Jan Hubicka <jh@suse.cz>
11435 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
11436 nonconstant_names array.
11437 (estimate_function_body_sizes): Build nonconstant_names array; handle
11438 BUILT_IN_CONSTANT_P.
11440 2011-04-28 Richard Guenther <rguenther@suse.de>
11444 2011-04-28 Richard Guenther <rguenther@suse.de>
11446 * tree-ssa-structalias.c (solve_constraints): Build succ graph
11447 as late as possible.
11449 2011-04-28 Richard Guenther <rguenther@suse.de>
11451 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
11452 (debug_constraint): Do it here.
11453 (dump_constraints): And here.
11454 (rewrite_constraints): And here.
11455 (dump_constraint_edge): Remove.
11456 (dump_constraint_graph): Rewrite to produce DOT output.
11457 (solve_constraints): Build succ graph as late as possible.
11458 Dump constraint graphs before and after solving.
11460 2011-04-28 Richard Guenther <rguenther@suse.de>
11462 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11463 New function split out from ...
11464 (find_func_aliases): ... here. Call it.
11465 (find_func_aliases_for_call): Likewise.
11467 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
11469 * internal-fn.h (internal_fn_name_array): Declare.
11470 (internal_fn_flags_array): Likewise.
11472 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
11474 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
11475 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
11477 (ssemodefsuffix): Remove.
11478 (ssevecmodesuffix): New mode attribute.
11479 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
11480 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
11481 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
11482 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
11483 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
11484 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
11485 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
11486 ssemodesuffix mode attribute.
11487 (float splitters): Use ssevecmodesuffix mode attribute.
11488 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
11489 (sseinsmode): Rename from avxvecmode.
11490 (avxsizesuffix): Rename from avxmodesuffix.
11491 (sseintvecmode): Rename from avxpermvecmode.
11492 (ssedoublevecmode): Rename from ssedoublesizemode.
11493 (ssehalfvecmode): Rename from avxhalfvecmode.
11494 (ssescalarmode): Rename from avxscalarmode.
11495 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
11496 templates for ssemodesuffix mode attribute.
11497 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
11500 Adjust RTX patterns globally for renamed mode attributes.
11502 2011-04-27 Jan Hubcika <jh@suse.cz>
11504 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
11505 * ipa-inline-analysis.c: Include alloc-pool.h.
11506 (edge_predicate_pool): New.
11507 (trye_predicate_p): New function
11508 (false_predicate_p): New function.
11509 (add_clause): Sanity check that false clauses are "optimized";
11510 never add clauses to predicate that is already known to be false.
11511 (and_predicate): Use flase_predicate_p.
11512 (evaulate_predicate): Rename to ...
11513 (evaluate_predicate): ... this one; update all callers; assert
11514 that false is not listed among possible truths.
11515 (dump_predicate): Use true_predicate_p.
11516 (account_size_time): Use false_predicate_p.
11517 (evaulate_conditions_for_edge): Rename to ...
11518 (evaluate_conditions_for_edge) ... this one.
11519 (edge_set_predicate): New function.
11520 (inline_edge_duplication_hook): Duplicate edge predicates.
11521 (inline_edge_removal_hook): Free edge predicates.
11522 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
11523 (dump_inline_summary): Update.
11524 (estimate_function_body_sizes): Set edge predicates.
11525 (estimate_calls_size_and_time): Handle predicates.
11526 (estimate_callee_size_and_time): Update.
11527 (remap_predicate): Add toplev_predicate; update comment.
11528 (remap_edge_predicates): New function.
11529 (inline_merge_summary): Compute toplev predicate; update.
11530 (read_predicate): New function.
11531 (read_inline_edge_summary): Use it.
11532 (inline_read_section): Likewise.
11533 (write_predicate): New function.
11534 (write_inline_edge_summary): Use it.
11535 (inline_write_summary): Likewise.
11536 (inline_free_summary): Free alloc pool and edge summary vec.
11538 2011-04-27 Richard Guenther <rguenther@suse.de>
11540 * tree-ssa-structalias.c (changed_count): Remove.
11541 (changed): Use a bitmap.
11542 (unify_nodes): Adjust.
11543 (do_sd_constraint): Likewise.
11544 (do_ds_constraint): Likewise.
11545 (do_complex_constraint): Likewise.
11546 (solve_graph): Likewise.
11548 2011-04-27 Jan Hubicka <jh@suse.cz>
11550 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
11552 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
11554 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
11555 (avx_vperm2f128_*_operand): Ditto.
11556 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
11557 Use avx_vpermilp_parallel in insn condition.
11558 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
11559 Use avx_vperm2f128_parallel in insn condition.
11561 2011-04-27 Richard Guenther <rguenther@suse.de>
11563 * Makefile.in (tree-ssa-structalias.o): Remove
11564 gt-tree-ssa-structalias.h dependency.
11565 (GTFILES): Remove tree-ssa-structalias.c.
11566 * tree.c (allocate_decl_uid): New function.
11567 (make_node_stat): Use it.
11568 (copy_node_stat): Likewise.
11569 * tree.h (allocate_decl_uid): Declare.
11570 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
11571 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
11572 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
11573 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
11574 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
11575 (struct heapvar_map): Likewise.
11576 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
11577 heapvar_insert): Likewise.
11578 (make_heapvar_for): Rename to ...
11579 (make_heapvar): ... this. Simplify.
11580 (fake_var_decl_obstack): New global var.
11581 (build_fake_var_decl): New function.
11582 (make_constraint_from_heapvar): Adjust.
11583 (handle_lhs_call): Likewise.
11584 (create_function_info_for): Likewise.
11585 (intra_create_variable_infos): Likewise.
11586 (init_alias_vars): Allocate fake_var_decl_obstack.
11587 (init_alias_heapvars, delete_alias_heapvars): Remove.
11588 (compute_points_to_sets): Do not call init_alias_heapvars.
11589 (ipa_pta_execute): Likewise.
11590 (delete_points_to_sets): Free fake_var_decl_obstack.
11592 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11594 * config/spu/divmovti4.c (union qword_UTItype): New data type.
11595 (si_from_UTItype, si_to_UTItype): New functions.
11596 (__udivmodti4): Use them to implement type-punning.
11597 * config/spu/multi3.c (union qword_TItype): New data type.
11598 (si_from_TItype, si_to_TItype): New functions.
11599 (__multi3): Use them to implement type-punning.
11601 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11603 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
11605 2011-04-27 Jan Hubicka <jh@suse.cz>
11607 * ipa-prop.c (function_insertion_hook_holder): New holder.
11608 (ipa_add_new_function): New function.
11609 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
11610 Register/deregister holder.
11612 2011-04-27 Richard Guenther <rguenther@suse.de>
11614 PR tree-optimization/48772
11615 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
11617 2011-04-27 Richard Guenther <rguenther@suse.de>
11619 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
11620 TARGET_MEM_REF handling.
11622 2011-04-27 Nick Clifton <nickc@redhat.com>
11624 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
11625 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
11626 (REG_CLASS_NAMES): Likewise.
11627 (REG_CLASS_CONTENTS): Likewise.
11628 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
11629 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
11630 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
11631 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
11632 (EVEN_REGS): New macro. Alias for QUAD_REGS.
11633 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
11634 duplicate register classes.
11635 (frv_class_likely_spilled_p): Likewise.
11636 (frv_register_move_cost): Likewise.
11638 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
11639 end of the regno_reg_class array.
11641 2011-04-27 Jakub Jelinek <jakub@redhat.com>
11644 * c-typeck.c (build_binary_op): Don't wrap arguments if
11645 int_operands is true.
11647 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
11650 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
11651 targetm.calls.must_pass_in_stack for void type.
11653 2011-04-26 Jan Hubicka <jh@suse.cz>
11655 * cgraphbuild.c (build_cgraph_edges): Update call
11656 of cgraph_create_edge and cgraph_create_indirect_edge.
11657 * cgraph.c (cgraph_create_edge_including_clones,
11658 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
11659 cgraph_update_edges_for_call_stmt_node): Do not take nest
11660 argument; do not initialize call_stmt_size/time.
11661 (dump_cgraph_node): Do not dump nest.
11662 (cgraph_clone_edge): Do not take loop_nest argument;
11663 do not propagate it; do not clone call_stmt_size/time.
11664 (cgraph_clone_node): Likewise.
11665 (cgraph_create_virtual_clone): Update.
11666 * cgraph.h (struct cgraph_edge): Remove
11667 call_stmt_size/call_stmt_time/loop_nest.
11668 (cgraph_create_edge, cgraph_create_indirect_edge,
11669 cgraph_create_edge_including_clones, cgraph_clone_node): Update
11671 * tree-emutls.c (gen_emutls_addr): Update.
11672 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
11673 loop_nest; handle indirect calls, too.
11674 (clone_inlined_nodes): Do not care about updating inline summaries.
11675 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
11676 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
11677 stream call_stmt_size/call_stmt_time/loop_nest.
11678 * ipa-inline.c (edge_badness): Update.
11679 (ipa_inline): dump summaries after inlining.
11680 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
11682 (inline_edge_summary): New function.
11683 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
11684 (inline_edge_removal_hook): Handle edge summaries.
11685 (inline_edge_duplication_hook): New hook.
11686 (inline_summary_alloc): Alloc hooks.
11687 (initialize_growth_caches): Do not register removal hooks.
11688 (free_growth_caches); Do not free removal hook.
11689 (dump_inline_edge_summary): New function.
11690 (dump_inline_summary): Use it.
11691 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
11692 (inline_update_callee_summaries): New function.
11693 (inline_merge_summary): Use it.
11694 (do_estimate_edge_time, do_estimate_edge_growth): Update.
11695 (read_inline_edge_summary): New function.
11696 (inline_read_section): Use it.
11697 (write_inline_edge_summary): New function.
11698 (inline_write_summary): Use it.
11699 (inline_free_summary): Free edge new holders.
11700 * tree-inline.c (copy_bb): Update.
11702 2011-04-26 Jason Merrill <jason@redhat.com>
11704 * tree-eh.c (lower_try_finally_switch): Create the label along with
11705 the CASE_LABEL_EXPR.
11707 2011-04-26 David S. Miller <davem@davemloft.net>
11708 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11710 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
11711 * configure: Regenerate.
11713 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11716 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
11718 (VEC_reduc): New code iterator and splitters for vector reduction.
11719 (VEC_reduc_name): Ditto.
11720 (VEC_reduc_rtx): Ditto.
11721 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
11722 (reduc_<VEC_reduc_name>_v4sf): Ditto.
11724 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11725 support for extracting SF on VSX.
11727 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
11728 generating xscvspdp.
11729 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
11730 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
11731 double add, minimum, maximum vector reduction.
11732 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
11733 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
11734 optimize double vector reduction.
11735 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
11737 2011-04-26 Joseph Myers <joseph@codesourcery.com>
11739 * config/fr30/fr30.h (inhibit_libc): Don't define.
11740 * config/m32r/m32r-protos.h: Correct comment.
11741 * config/v850/v850.h (GHS_default_section_names,
11742 GHS_current_section_names): Use tree, not union tree_node *.
11744 2011-04-26 Xinliang David Li <davidxl@google.com>
11746 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
11747 * c-family/c-opts.c (c_common_handle_option): Set
11748 warn_maybe_uninitialized.
11749 * opts.c (common_handle_option): Ditto.
11750 * common.opt: New option.
11751 * tree-ssa.c (warn_uninit): Add one more parameter.
11752 (warn_uninitialized_var): Pass warning code.
11753 * tree-flow.h: Interface change.
11755 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11757 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
11758 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
11759 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
11761 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11763 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
11764 * config/mips/mips.opt (mmips-tfile): Remove.
11766 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
11767 mips-tdump reference to ...
11768 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
11769 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
11770 reference by Tru64 UNIX.
11772 2011-04-26 Jakub Jelinek <jakub@redhat.com>
11775 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
11776 is error_mark_node, set value to NULL.
11778 PR tree-optimization/48734
11779 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
11780 if return value from maybe_fold_*_comparsions isn't something
11781 the code is prepared to handle.
11783 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
11785 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
11787 (ext_QIreg_nomode_operands): Remove.
11788 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
11792 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
11794 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
11796 2011-04-26 Richard Guenther <rguenther@suse.de>
11798 * c-typeck.c (build_unary_op): Do not expand array-refs via
11799 pointer arithmetic. Only adjust qualifiers for function types.
11801 2011-04-26 Richard Guenther <rguenther@suse.de>
11803 PR middle-end/48694
11804 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
11805 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
11806 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
11807 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
11809 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
11811 * doc/extend.texi: Document __underlying_type.
11813 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
11815 * config/rs6000/titan.md (automata_option "progress"): Remove.
11817 2011-04-25 Jeff Law <law@redhat.com>
11819 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
11821 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11823 * system.h (ENUM_BITFIELD): Remove.
11825 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
11826 Eric Botcazou <ebotcazou@adacore.com>
11828 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
11829 for STORE_FLAG_VALUE==-1 case.
11831 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
11834 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
11835 LEGITIMATE_PIC_OPERAND_P.
11837 2011-04-24 Jan Hubicka <jh@suse.cz>
11839 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
11841 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
11842 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
11843 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
11844 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
11845 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
11846 Sanity check predicate length.
11847 (remap_predicate): Likewise; sanity check jump functions.
11848 (inline_read_section, inline_write_summary): Sanity check
11851 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
11854 * doc/extend.texi (Type Traits): Document __is_standard_layout,
11855 __is_literal_type, and __is_trivial; update throughout about
11856 possibly cv-qualified void types.
11858 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11860 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
11861 testsuite and make it version agnostic.
11863 2011-04-22 Jan Hubicka <jh@suse.cz>
11865 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
11867 2011-04-23 Jakub Jelinek <jakub@redhat.com>
11870 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
11871 to VOID_TYPE even around MODIFY_EXPR.
11873 2011-04-22 Mike Stump <mikestump@comcast.net>
11875 * gensupport.c (read_md_rtx): Fix typo in comment.
11876 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
11879 2011-04-22 Jan Hubicka <jh@suse.cz>
11881 * gengtype.c (open_base_files): Add ipa-inline.h include.
11882 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
11883 ipa-prop.c; update all uses.
11884 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
11885 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
11886 merge summary of inlined function into former caller.
11887 * ipa-inline.c (max_benefit): Remove.
11888 (edge_badness): Compensate for removal of benefits.
11889 (update_caller_keys): Use
11890 reset_node_growth_cache/reset_edge_growth_cache.
11891 (update_callee_keys): Likewise.
11892 (update_all_callee_keys): Likewise.
11893 (inline_small_functions): Do not collect max_benefit; do not reset
11894 estimated_growth; call free_growth_caches and initialize_growth_caches.
11895 * ipa-inline.h (struct condition, type clause_t, struct predicate,
11896 struct size_time_entry): New structures.
11897 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
11898 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
11899 and estimated_growth.
11900 (edge_growth_cache_entry): New structure.
11901 (node_growth_cache, edge_growth_cache): New global vars.
11902 (estimate_growth): Turn into inline.
11903 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
11904 initialize_growth_caches, free_growth_caches): Declare.
11905 (estimate_edge_growth): Rewrite.
11906 (estimate_edge_time): Implement as inline cache lookup.
11907 (reset_node_growth_cache, reset_edge_growth_cache): New inline
11909 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
11910 (NUM_CONDITIONS): New constant.
11911 (predicate_conditions): New enum.
11912 (IS_NOT_CONSTANT): New constant.
11913 (edge_removal_hook_holder): New var.
11914 (node_growth_cache, edge_growth_cache): New global vars.
11915 (true_predicate, single_cond_predicate, false_predicate,
11916 not_inlined_predicate, add_condition, add_clause, and_predicates,
11917 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
11918 dump_clause, dump_predicate, account_size_time,
11919 evaulate_conditions_for_edge): New functions.
11920 (inline_summary_alloc): Move to heap.
11921 (inline_node_removal_hook): Clear condition and entry vectors.
11922 (inline_edge_removal_hook): New function.
11923 (initialize_growth_caches, free_growth_caches): New function.
11924 (dump_inline_summary): Update.
11925 (edge_execution_predicate): New function.
11926 (will_be_nonconstant_predicate): New function.
11927 (estimate_function_body_sizes): Compute BB and constantness predicates.
11928 (compute_inline_parameters): Do not clear estimated_growth.
11929 (estimate_edge_size_and_time): New function.
11930 (estimate_calls_size_and_time): New function.
11931 (estimate_callee_size_and_time): New function.
11932 (remap_predicate): New function.
11933 (inline_merge_summary): New function.
11934 (do_estimate_edge_time): New function based on...
11935 (estimate_edge_time): ... this one.
11936 (do_estimate_edge_growth): New function.
11937 (do_estimate_growth): New function based on....
11938 (estimate_growth): ... this one.
11939 (inline_analyze_function): Analyze after deciding on jump functions.
11940 (inline_read_section): New function.
11941 (inline_read_summary): Use it.
11942 (inline_write_summary): Write all the new data.
11943 * ipa-prop.c (ipa_get_param_decl_index): Export.
11944 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
11945 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
11947 (ipa_get_lattice): Move here from ipa-cp.c
11948 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
11949 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
11950 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
11951 cgraph_edge_inlinable_p): Remove.
11952 * cgraphunit.c: Include ipainline.h
11953 (cgraph_process_new_functions): Update call of
11954 compute_inline_parameters.
11956 2011-04-22 Richard Guenther <rguenther@suse.de>
11958 * tree.c (build_int_cst): Properly create canonicalized integer
11960 (build_int_cst_type): Remove scary comments.
11962 2011-04-22 Xinliang David Li <davidxl@google.com>
11964 * toplev.c (process_options): Enable -Werror=coverage-mismatch
11965 by default when -Wno-error is not specified.
11966 * opts-global.c (decode_options): Remove call to
11967 control_warning_options.
11969 2011-04-22 Jakub Jelinek <jakub@redhat.com>
11971 PR tree-optimization/48717
11972 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
11973 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
11975 2011-04-22 Joseph Myers <joseph@codesourcery.com>
11977 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
11978 definition where used.
11980 2011-04-22 Jakub Jelinek <jakub@redhat.com>
11983 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
11984 TREE_STATIC variables declared inside of some OpenMP construct.
11986 2011-04-22 Martin Jambor <mjambor@suse.cz>
11988 PR middle-end/48585
11989 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
11991 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
11994 * c-typeck.c (pop_init_level): Do not warn about initializing
11997 2011-04-22 Alan Modra <amodra@gmail.com>
11999 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
12000 when returning call_cookie.
12001 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
12002 pointers, to functions with no more vector args than the current
12003 function, and some non-local calls for ABI_V4.
12004 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
12005 sibcall_nonlocal_aix64): Combine to ..
12006 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
12007 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
12008 (sibcall_value_nonlocal_aix<mode>): ..likewise.
12009 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
12010 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
12012 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
12013 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
12014 sibcall_value_symbolic_64): Delete.
12016 2011-04-21 Xinliang David Li <davidxl@google.com>
12018 * cgraph.h: Remove pid.
12019 * cgraph.c: Remove pid.
12020 * value-prof.c (init_node_map): New function.
12021 (del_node_map): New function.
12022 (find_func_by_funcdef_no): New function.
12023 (gimple_ic_transform): Call new function.
12024 * cgraphunit.c (cgraph_finalize_function): Remove pid.
12025 * function.c (get_last_funcdef_no): New function.
12026 * function.h (get_last_funcdef_no): New function.
12027 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
12028 to libgcov function.
12029 (tree-profiling): Call node map init and delete function.
12031 2011-04-21 Ian Lance Taylor <iant@google.com>
12033 * godump.c (go_format_type): Use exported Go name for anonymous
12036 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12038 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
12039 Call builtin_function_type_list instead of builtin_function_type.
12040 (UNARY, BINARY, TRINARY, QUAD): Likewise.
12042 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12044 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
12045 build_function_type_list instead of build_function_type.
12046 Delete variable `endlink'.
12048 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12050 * config/s390/s390.c (s390_init_builtins): Call
12051 build_function_type_list instead of build_function_type.
12053 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
12055 * config/ia64/ia64.c (ia64_init_builtins): Call
12056 build_function_type_list instead of builtin_function_type.
12058 2011-04-21 Easwaran Raman <eraman@google.com>
12060 * cfgexpand.c (stack_var): Remove OFFSET...
12061 (add_stack_var): ...and its reference here...
12062 (expand_stack_vars): ...and here.
12063 (stack_var_cmp): Sort by descending order of size.
12064 (partition_stack_vars): Change heuristic.
12065 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
12066 (dump_stack_var_partition): Add newline after each partition.
12068 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
12069 Jeff Law <law@redhat.com>
12071 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
12072 * gengtype.c (matching_file_name_substitute): Likewise.
12074 2011-04-21 Richard Guenther <rguenther@suse.de>
12077 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
12079 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
12081 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
12083 2011-04-21 Richard Guenther <rguenther@suse.de>
12085 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
12088 2011-04-21 Richard Guenther <rguenther@suse.de>
12090 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12091 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
12092 Use DECL_P, not SSA_VAR_P.
12093 (ptr_derefs_may_alias_p): Likewise.
12094 (ptr_deref_may_alias_ref_p_1): Likewise.
12095 (decl_refs_may_alias_p): Likewise.
12096 (refs_may_alias_p_1): Likewise.
12097 (ref_maybe_used_by_call_p_1): Likewise.
12098 (call_may_clobber_ref_p_1): Likewise.
12099 (indirect_ref_may_alias_decl_p): Assume indirect refrences
12100 are either MEM_REF or TARGET_MEM_REF.
12101 (indirect_refs_may_alias_p): Likewise.
12102 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
12103 for MEM_EXPR of indirect calls.
12105 2011-04-21 Tristan Gingold <gingold@adacore.com>
12107 * vmsdbgout.c (write_srccorr): Compute file length from the string.
12108 (dst_file_info_struct): Remove flen field.
12109 (lookup_filename): Remove code that set flen field.
12111 2011-04-21 Tristan Gingold <gingold@adacore.com>
12113 * config/ia64/ia64.c (ia64_start_function): Add a guard.
12115 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
12118 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
12119 vec_extract and vec_concat for non-SSE4_1 targets.
12121 2011-04-21 Richard Guenther <rguenther@suse.de>
12123 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
12126 2011-04-21 Joseph Myers <joseph@codesourcery.com>
12128 * config/i386/cygming.h (union tree_node, TREE): Don't define or
12130 (FILE): Don't undefine.
12132 2011-04-21 Joseph Myers <joseph@codesourcery.com>
12134 * config/alpha/alpha.c (struct machine_function): Use rtx, not
12136 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
12138 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
12139 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
12140 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
12142 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
12143 definitions where used.
12144 * config/microblaze/microblaze.h (struct microblaze_args): Use
12145 rtx, not struct rtx_def *.
12146 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
12148 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
12149 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
12150 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
12151 not struct rtx_def *.
12152 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
12154 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
12156 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
12158 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12160 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
12161 operand_equal_p to compare DR_BASE_ADDRESSes.
12162 (vect_check_interleaving): Likewise.
12164 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12167 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
12168 for all Neon struct constants.
12170 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12172 * target.def (legitimate_constant_p): New hook.
12173 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
12174 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
12175 * doc/tm.texi: Regenerate.
12176 * hooks.h (hook_bool_mode_rtx_true): Declare.
12177 * hooks.c (hook_bool_mode_rtx_true): Define.
12178 * system.h (LEGITIMATE_CONSTANT_P): Poison.
12179 * calls.c (precompute_register_parameters): Replace uses of
12180 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
12181 (emit_library_call_value_1): Likewise.
12182 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
12183 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
12184 * ira-costs.c (scan_one_insn): Likewise.
12185 * recog.c (general_operand, immediate_operand): Likewise.
12186 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
12187 * reload1.c (init_eliminable_invariants): Likewise.
12189 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
12191 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
12192 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
12194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12195 * config/alpha/predicates.md (input_operand): Update call to
12196 alpha_legitimate_constant_p.
12198 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
12199 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
12200 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
12201 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12202 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
12203 (arm_legitimate_constant_p): New functions.
12204 (arm_cannot_force_const_mem): Make static.
12206 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
12208 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
12209 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
12210 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
12211 instead of bfin_legitimate_constant_p.
12212 (bfin_legitimate_constant_p): Make static. Add a mode argument.
12213 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12215 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
12217 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
12219 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
12220 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
12221 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12222 (frv_legitimate_constant_p): Make static. Add a mode argument.
12224 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
12225 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
12226 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
12228 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
12229 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
12230 * config/i386/i386.c (legitimate_constant_p): Rename to...
12231 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
12233 (ix86_cannot_force_const_mem): Update accordingly.
12234 (ix86_legitimate_address_p): Likewise.
12235 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12236 * config/i386/i386.md: Update commentary.
12238 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
12239 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
12240 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12241 (ia64_legitimate_constant_p): Make static. Add a mode argument.
12243 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
12245 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
12246 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
12247 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12248 (lm32_legitimate_constant_p): Make static. Add a mode argument.
12250 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
12251 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
12252 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
12254 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
12255 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12256 (m32r_legitimate_constant_p): New function.
12258 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
12259 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
12260 LEGITIMATE_CONSTANT_P.
12261 (LEGITIMATE_CONSTANT_P): Delete.
12262 * config/m68k/m68k.c (m68k_expand_prologue): Call
12263 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
12264 (m68k_legitimate_constant_p): New function.
12265 * config/m68k/m68k.md: Update comments.
12267 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
12268 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12269 (mcore_legitimate_constant_p): New function.
12271 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
12272 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
12273 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
12274 Add a mode argument.
12275 (mep_legitimate_address): Update accordingly.
12276 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12278 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
12280 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
12281 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
12282 static. Check OP's mode for VOIDmode.
12283 (microblaze_legitimate_constant_p): New function.
12284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12286 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
12287 * config/mips/mips.c (mips_legitimate_constant_p): New function.
12288 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
12289 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12290 * config/mips/predicates.md: Update comments.
12292 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
12293 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
12294 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12295 (mmix_legitimate_constant_p): Make static, return a bool, and take
12297 (mmix_print_operand_address): Update accordingly.
12299 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
12301 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
12302 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
12303 static. Add a mode argument.
12304 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12306 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
12308 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
12309 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12310 (pa_legitimate_constant_p): New function.
12312 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
12314 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
12315 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12316 (pdp11_legitimate_constant_p): New function.
12318 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
12319 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12320 (rs6000_legitimate_constant_p): New function.
12322 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
12323 (rx_legitimate_constant_p): ...this.
12324 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
12325 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
12326 (rx_legitimate_constant_p): ...this.
12327 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12328 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
12330 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
12331 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
12332 * config/s390/s390.c (legitimate_constant_p): Rename to...
12333 (s390_legitimate_constant_p): ...this. Make static, return a bool,
12334 and add a mode argument.
12335 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12337 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
12339 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
12340 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12341 (sh_legitimate_constant_p): New function.
12343 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
12344 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
12345 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12346 (legitimate_constant_p): Rename to...
12347 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
12349 (constant_address_p): Update accordingly.
12351 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
12352 argument and return a bool.
12353 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
12354 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12355 (spu_legitimate_constant_p): Add a mode argument and return a bool.
12356 (spu_rtx_costs): Update accordingly.
12357 * config/spu/predicates.md (vec_imm_operand): Likewise.
12359 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
12361 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
12362 * config/v850/v850.c (v850_legitimate_constant_p): New function.
12363 (TARGET_LEGITIMATE_CONSTANT_P): Define.
12365 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
12366 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
12367 * config/vax/vax.c (legitimate_constant_p): Likewise.
12369 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
12370 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
12371 (xtensa_legitimate_constant_p): New function.
12373 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
12375 * target.def (cannot_force_const_mem): Add a mode argument.
12376 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
12377 * doc/tm.texi: Regenerate.
12378 * hooks.h (hook_bool_mode_rtx_false): Declare.
12379 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
12380 (hook_bool_mode_const_rtx_true): Likewise.
12381 (hook_bool_mode_rtx_false): New function.
12382 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
12383 to be non-VOID. Update call to cannot_force_const_mem.
12384 (find_reloads): Update accordingly.
12385 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
12386 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
12388 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
12389 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
12390 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
12391 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
12392 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
12393 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
12394 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
12395 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
12396 (m68k_cannot_force_const_mem): ...this new function.
12397 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
12399 (mips_const_insns, mips_legitimize_const_move): Update calls.
12400 (mips_secondary_reload_class): Likewise.
12401 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
12402 (pa_cannot_force_const_mem): ...this new function.
12403 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
12404 (rs6000_cannot_force_const_mem): ...this new function.
12405 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
12407 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
12408 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
12410 (xtensa_cannot_force_const_mem): ...this new function.
12412 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
12414 * config/mips/mips.c (mips16_build_function_stub): Call
12415 build_function_type_list instead of build_function_type.
12416 (mips16_build_call_stub): Likewise.
12418 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
12420 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
12421 instead of build_function_type.
12423 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
12425 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
12426 instead of build_function_type.
12428 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
12431 * config/i386/i386.md (insv): Change operand 0 constraint to
12432 "register_operand". Change operand 1 and 2 constraint to
12433 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
12434 * config/i386/sse.md (sse4_1_pinsrb): Export.
12435 (sse2_pinsrw): Ditto.
12436 (sse4_1_pinsrd): Ditto.
12437 (sse4_1_pinsrq): Ditto.
12438 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
12439 * config/i386/i386.c (ix86_expand_pinsr): New.
12441 2011-04-20 Easwaran Raman <eraman@google.com>
12443 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
12444 containing union type only with -fstrict-aliasing.
12446 2011-04-20 Jim Meyering <meyering@redhat.com>
12448 Remove useless if-before-free tests.
12449 * calls.c (expand_call, save_area): Likewise.
12450 * cfgcleanup.c (try_forward_edges): Likewise.
12451 * collect2.c (collect_execute): Likewise.
12452 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
12453 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
12454 * coverage.c (coverage_checksum_string): Likewise.
12455 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
12456 * cselib.c (cselib_init): Likewise.
12457 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
12458 (df_set_clean_cfg): Likewise.
12459 * function.c (free_after_compilation): Likewise.
12460 * gcc.c (do_spec_1, main): Likewise.
12461 * gcov.c (create_file_names): Likewise.
12462 * gensupport.c (identify_predicable_attribute): Likewise.
12463 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
12464 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
12465 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
12466 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
12467 * ipa-pure-const.c (local_pure_const): Likewise.
12468 * ipa-reference.c (propagate): Likewise.
12469 * ira-costs.c (free_ira_costs): Likewise.
12470 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
12471 * matrix-reorg.c (mat_free): Likewise.
12472 * prefix.c (get_key_value): Likewise.
12473 * profile.c (compute_value_histograms): Likewise.
12474 * reload1.c (free_reg_equiv): Likewise.
12475 * sched-deps.c (free_deps): Likewise.
12476 * sel-sched-ir.c (fence_clear): Likewise.
12477 * sese.c (set_rename, if_region_set_false_region): Likewise.
12478 * tree-data-ref.c (free_rdg): Likewise.
12479 * tree-eh.c (lower_try_finally): Likewise.
12480 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
12481 * tree-ssa-live.c (delete_var_map): Likewise.
12482 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
12483 * tree-ssa-pre.c (phi_trans_add): Likewise.
12485 2011-04-20 Jakub Jelinek <jakub@redhat.com>
12487 PR tree-optimization/48611
12488 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
12489 beyond ERT_MUST_NOT_THROW region.
12491 2011-04-20 Catherine Moore <clm@codesourcery.com>
12493 * config/mips/mips.opt (mfix-24k): New.
12494 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
12495 * config/mips/mips.md (length): Increase by 4 for stores if
12497 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
12498 all noreorder if fixing 24K errata.
12499 * doc/invoke.texi: Document mfix-24k.
12501 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
12503 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
12504 quad-word modes, reduce to 9-bit index range when above 1016 limit.
12506 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
12508 * config/arm/arm.c (arm_gen_constant): Move movw support ....
12509 (const_ok_for_op): ... to here.
12511 2011-04-20 Kai Tietz <ktietz@redhat.com>
12513 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
12514 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
12516 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
12518 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
12520 2011-04-20 Richard Guenther <rguenther@suse.de>
12522 PR tree-optimization/47892
12523 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
12524 are if-convertible.
12526 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
12528 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
12530 2011-04-20 Tristan Gingold <gingold@adacore.com>
12532 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
12534 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
12538 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
12539 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
12540 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
12541 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
12542 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
12544 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
12547 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
12548 (avr_asm_named_section, avr_asm_output_aligned_common,
12549 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
12550 New functions to update...
12551 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
12552 (avr_asm_init_sections): Overwrite section callbacks for
12553 data_section, bss_section.
12554 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
12556 (avr_file_end): ...here.
12558 2011-04-20 Richard Guenther <rguenther@suse.de>
12560 PR middle-end/48695
12561 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
12562 objects and types here. Adjust for their offset before comparing.
12564 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
12566 * tree-vect-stmts.c (vectorizable_store): Only chain one related
12567 statement per copy.
12569 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
12571 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
12572 (GIMPLE_H): Include $(INTERNAL_FN_H).
12573 (OBJS-common): Add internal-fn.o.
12574 (internal-fn.o): New rule.
12575 * internal-fn.def: New file.
12576 * internal-fn.h: Likewise.
12577 * internal-fn.c: Likewise.
12578 * gimple.h: Include internal-fn.h.
12579 (GF_CALL_INTERNAL): New gf_mask.
12580 (gimple_statement_call): Put fntype into a union with a new
12582 (gimple_build_call_internal): Declare.
12583 (gimple_build_call_internal_vec): Likewise.
12584 (gimple_call_same_target_p): Likewise.
12585 (gimple_call_internal_p): New function.
12586 (gimple_call_internal_fn): Likewise.
12587 (gimple_call_fntype): Return null for internal calls.
12588 (gimple_call_set_fntype): Assert that the function is not internal.
12589 (gimple_call_set_fn): Likewise.
12590 (gimple_call_set_fndecl): Likewise.
12591 (gimple_call_set_internal_fn): New function.
12592 (gimple_call_addr_fndecl): Handle null functions.
12593 (gimple_call_return_type): Likewise null types.
12594 * gimple.c (gimple_build_call_internal_1): New function.
12595 (gimple_build_call_internal): Likewise.
12596 (gimple_build_call_internal_vec): Likewise.
12597 (gimple_call_same_target_p): Likewise.
12598 (gimple_call_flags): Handle calls to internal functions.
12599 (gimple_call_fnspec): New function.
12600 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
12601 (gimple_has_side_effects): Handle null functions.
12602 (gimple_rhs_has_side_effects): Likewise.
12603 (gimple_call_copy_skip_args): Handle calls to internal functions.
12604 * cfgexpand.c (expand_call_stmt): Likewise.
12605 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
12606 * gimple-fold.c (gimple_fold_call): Handle null functions.
12607 (gimple_fold_stmt_to_constant_1): Don't fold
12608 calls to internal functions.
12609 * gimple-low.c (gimple_check_call_args): Handle calls to internal
12611 * gimple-pretty-print.c (dump_gimple_call): Likewise.
12612 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
12613 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
12614 (do_warn_unused_result): Likewise.
12615 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
12616 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
12617 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
12618 the target of a call.
12619 (initialize_hash_element): Update accordingly.
12620 (hashable_expr_equal_p): Use gimple_call_same_target_p.
12621 (iterative_hash_hashable_expr): Handle calls to internal functions.
12622 (print_expr_hash_elt): Likewise.
12623 * tree-ssa-pre.c (can_value_number_call): Likewise.
12624 (eliminate): Handle null functions.
12625 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
12626 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
12627 (find_func_aliases): Likewise.
12628 * value-prof.c (gimple_ic_transform): Likewise.
12629 (gimple_indirect_call_to_profile): Likewise.
12630 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12631 * lto-streamer-out.c (output_gimple_stmt): Likewise.
12633 2011-04-19 Jan Hubicka <jh@suse.cz>
12635 * ipa-inline-transform.c (save_inline_function_body): Add comments.
12636 * ipa-inline.c (inline_small_functions): Compute summaries first,
12637 populate heap later.
12639 2011-04-19 Jan Hubicka <jh@suse.cz>
12641 * cgraph.h (save_inline_function_body): Remove.
12642 * ipa-inline-transform.c: New file, broke out of...
12643 * ipa-inline.c: ... this one; Update toplevel comment.
12644 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
12646 (update_noncloned_frequencies): Move to ipa-inline-transform.c
12647 (cgraph_mark_inline_edge): Rename to inline_call; move to
12648 ipa-inline-transform.c.
12649 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
12650 move to ipa-inline-transform.c
12651 (recursive_inlining, inline_small_functions, flatten_function,
12652 ipa_inline, inline_always_inline_functions,
12653 early_inline_small_functions): Update.
12654 (inline_transform): Move to ipa-inline-transform.c.
12655 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
12657 * Makefile.in (ipa-inline-transform.o): New file.
12658 * cgraphunit.c (save_inline_function_body): Move to
12659 ipa-inline-transform.c
12661 2011-04-19 DJ Delorie <dj@redhat.com>
12663 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
12664 registers if we already know there aren't any.
12665 (m32c_emit_epilogue): Don't emit a barrier here.
12666 (m32c_emit_eh_epilogue): Likewise.
12667 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
12668 operands at expand time.
12669 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
12671 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
12672 duplicates. Provide aliases instead.
12673 * config/m32c/prologue.md (eh_return): Emit a barrier here.
12674 (eh_epilogue): Add a "(return)" here as a hint to other parts of
12677 2011-04-19 Anatoly Sokolov <aesok@post.ru>
12679 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
12680 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
12681 (general_or_i64_p, sparc_register_move_cost): New function.
12683 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12685 * doc/install.texi (Configuration, --enable-threads): Remove mach.
12686 Add lynx, mipssde. Sort table.
12688 2011-04-19 Xinliang David Li <davidxl@google.com>
12690 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
12693 2011-04-19 Jakub Jelinek <jakub@redhat.com>
12696 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
12697 is a SUBREG with non-MODE_INT mode inside of it.
12699 2011-04-19 Martin Jambor <mjambor@suse.cz>
12701 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
12702 also according to actual contants.
12703 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
12704 (gimple_fold_call): Use it.
12705 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
12707 2011-04-19 Martin Jambor <mjambor@suse.cz>
12709 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
12710 non-pointer assignments.
12712 2011-04-19 Martin Jambor <mjambor@suse.cz>
12714 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
12715 account anc_offset and otr_type from the indirect edge info.
12716 * ipa-prop.c (get_ancestor_addr_info): New function.
12717 (compute_complex_ancestor_jump_func): Assignment analysis moved to
12718 get_ancestor_addr_info, call it.
12719 (ipa_note_param_call): Do not initialize information about polymorphic
12720 calls, return the indirect call graph edge. Remove the last
12721 parameter, adjust all callers.
12722 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
12723 parameters. Initialize polymorphic information in the indirect edge.
12725 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
12728 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
12729 the types if they have different enumeration identifiers.
12731 2011-04-19 Jan Hubicka <jh@suse.cz>
12733 * cgraph.h (cgraph_optimize_for_size_p): Declare.
12734 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
12735 * predict.c (cgraph_optimize_for_size_p): Break out from ...
12736 (optimize_function_for_size_p) ... here.
12738 2011-04-19 Richard Guenther <rguenther@suse.de>
12741 * tree.c (free_lang_data): Do not reset the decl-assembler-name
12744 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
12746 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
12747 if DECL_NO_INLINE_WARNING_P is set on the function.
12749 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
12752 * reload1.c (inc_for_reload): Return void. All callers changed.
12753 (emit_input_reload_insns): Don't try to delete previous output
12754 reloads to a register, or record spill_reg_store for autoincs.
12756 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
12758 * gengtype.h: Updated copyright year.
12759 (struct input_file_st): Add inpisplugin field.
12760 (type_fileloc): New function.
12762 (write_typed_struct_alloc_def): Add gcc_assert.
12763 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
12764 (write_typed_alloc_defns): Don't output for plugin files.
12765 (input_file_by_name): Clear inpisplugin field.
12766 (main): Set inpisplugin field for plugin files.
12768 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
12770 * gengtype-state.c (string_eq): New.
12771 (read_state): Use string_eq instead of strcmp when creating the
12774 2011-04-19 Wei Guozhi <carrot@google.com>
12777 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
12778 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
12780 * config/arm/constraints.md (Uu): New constraint.
12781 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
12783 2011-04-19 Tristan Gingold <gingold@adacore.com>
12785 * config.gcc (-*-*-*vms): Added.
12786 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
12788 * config/vms/vms-ld.c: New file.
12789 * config/vms/vms-ar.c: New file.
12790 * config/vms/t-vmsnative: New file.
12792 2011-04-18 Xinliang David Li <davidxl@google.com>
12794 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
12796 2011-04-18 Jakub Jelinek <jakub@redhat.com>
12798 PR middle-end/48661
12799 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
12800 if TREE_TYPE (v) is non-NULL.
12802 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
12803 gimple_get_virt_mehtod_for_binfo.
12804 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
12805 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
12807 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12809 2011-04-18 Michael Matz <matz@suse.de>
12810 Steve Ellcey <sje@cup.hp.com>
12812 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
12813 use its mode as source mode if it isn't VOIDmode.
12815 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
12817 * doc/passes.texi: Fill crossref nodes.
12819 2011-04-18 Jim Meyering <meyering@redhat.com>
12821 Fix doubled-word typos in comments and strings
12822 * config/alpha/vms-unwind.h: s/for for/for/
12823 * config/arm/unwind-arm.h: Likewise.
12824 * config/microblaze/microblaze.c: Likewise.
12825 * config/sh/constraints.md: s/in in/in/
12826 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
12828 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
12830 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
12831 (AVX_FLOAT_MODE_P): Ditto.
12832 (AVX128_VEC_FLOAT_MODE_P): Ditto.
12833 (AVX256_VEC_FLOAT_MODE_P): Ditto.
12834 (AVX_VEC_FLOAT_MODE_P): Ditto.
12835 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
12836 (UNSPEC_MASKSTORE): Ditto.
12837 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
12838 Merge from <sse>_movmsk<ssemodesuffix> and
12839 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
12840 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
12842 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
12843 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
12844 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
12846 2011-04-18 Jan Hubicka <jh@suse.cz>
12848 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
12850 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
12851 (want_inline_function_called_once_p): Break out the logic from
12853 (edge_badness): Ensure that profile is not misupdated.
12854 (lookup_recursive_calls): Prioritize by call frequencies.
12855 (inline_small_functions): Move program size estimates here;
12856 actually process whole queue even when unit growth has been
12857 met. (to properly compute inline_failed reasons and for the
12858 case unit size decrease.) Revisit comments on recursive inlining.
12859 (ipa_inline): Remove unit summary code; first inline hot calls
12860 of functions called once, cold calls next.
12861 (order, nnodes): Remove unused variables.
12862 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
12863 (GTFILES): Remove ipa-inline.c
12864 * sel-sched.c (fill_insns): Silence uninitialized var warning.
12866 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
12868 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
12870 2011-04-18 Jie Zhang <jie@codesourcery.com>
12871 Richard Earnshaw <rearnsha@arm.com>
12873 * arm.c (neon_builtin_type_bits): Remove.
12874 (typedef enum neon_builtin_mode): New.
12875 (T_MAX): Don't define.
12876 (typedef enum neon_builtin_datum): Remove bits, codes[],
12877 num_vars and base_fcode. Add mode, code and fcode.
12878 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
12879 VAR10): Change accordingly.
12880 (neon_builtin_data[]): Change accordingly
12881 (arm_init_neon_builtins): Change accordingly.
12882 (neon_builtin_compare): Remove.
12883 (locate_neon_builtin_icode): Remove.
12884 (arm_expand_neon_builtin): Change accordingly.
12886 * arm.h (enum arm_builtins): Move to ...
12887 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
12889 * arm.c (arm_builtin_decl): Declare.
12890 (TARGET_BUILTIN_DECL): Define.
12891 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
12892 (arm_builtin_decls[]): New.
12893 (arm_init_neon_builtins): Store builtin declarations in
12894 arm_builtin_decls[].
12895 (arm_init_tls_builtins): Likewise.
12896 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
12897 (arm_builtin_decl): New.
12899 2011-04-18 Richard Guenther <rguenther@suse.de>
12901 * tree.c (upper_bound_in_type): Build properly canonicalized
12903 (lower_bound_in_type): Likewise.
12905 2011-04-18 Richard Guenther <rguenther@suse.de>
12907 * gimple.h (gimple_call_addr_fndecl): New function.
12908 (gimple_call_fndecl): Use it.
12909 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
12911 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
12912 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
12914 2011-04-18 Richard Guenther <rguenther@suse.de>
12916 PR middle-end/48650
12917 * tree.c (build_string): STRING_CST is now derived from tree_typed.
12919 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
12922 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
12923 DECL_IN_CONSTANT_POOL without RTL.
12925 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
12926 Ira Rosen <ira.rosen@linaro.org>
12929 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
12930 to match neon_vzip/vuzp/vtrn_internal.
12931 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
12932 outputs explicitly dependent on both inputs.
12933 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
12935 2011-04-18 Jakub Jelinek <jakub@redhat.com>
12937 PR tree-optimization/48616
12938 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
12939 whether the shift is by scalar or vector based on whether all SLP
12940 scalar stmts have the same rhs.
12942 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
12944 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
12947 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
12950 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
12953 2011-04-17 Jan Hubicka <jh@suse.cz>
12955 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
12956 * cgrpahunit.c (cgraph_finalize_function): Do not set
12957 finalized_by_frontend.
12958 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12959 finalized_by_frontend.
12961 2011-04-17 Jan Hubicka <jh@suse.cz>
12963 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
12964 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
12965 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
12966 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
12968 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
12970 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
12972 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
12975 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
12976 is non-null before accessing it.
12977 (input_cgraph): Remove trailing spaces.
12979 2011-04-17 Revital Eres <revital.eres@linaro.org>
12981 * params.def (sms-min-sc): New param flag.
12982 * modulo-sched.c (sms_schedule): Use it.
12983 * doc/invoke.texi (sms-min-sc): Document it.
12985 2011-04-17 Jan Hubicka <jh@suse.cz>
12987 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
12988 present, also set gimple_call_set_cannot_inline.
12989 * ipa-inline.c: Update toplevel comment.
12990 (MAX_TIME): Remove.
12991 (cgraph_clone_inlined_nodes): Fix linebreaks.
12992 (cgraph_check_inline_limits): Restructure to ...
12993 (caller_growth_limits): ... this one; be more tolerant
12994 on growth in nested inline chains; add explanatory comment;
12995 fix stack accounting thinko introduced by previous patch.
12996 (cgraph_default_inline_p): Remove.
12997 (report_inline_failed_reason): New function.
12998 (can_inline_edge_p): New function.
12999 (can_early_inline_edge_p): New function.
13000 (leaf_node_p): Move upwards in file.
13001 (want_early_inline_function_p): New function.
13002 (want_inline_small_function_p): New function.
13003 (want_inline_self_recursive_call_p): New function.
13004 (cgraph_edge_badness): Rename to ...
13005 (edge_badness) ... this one; fix linebreaks.
13006 (update_edge_key): Update call of edge_baddness; add
13007 detailed dump about queue updates.
13008 (update_caller_keys): Use can_inline_edge_p and
13009 want_inline_small_function_p.
13010 (cgraph_decide_recursive_inlining): Rename to...
13011 (recursive_inlining): Use can_inline_edge_p and
13012 want_inline_self_recursive_call_p; simplify and remove no longer
13014 (cgraph_set_inline_failed): Remove.
13015 (add_new_edges_to_heap): Use can_inline_edge_p and
13016 want_inline_small_function_p.
13017 (cgraph_decide_inlining_of_small_functions): Rename to ...
13018 (inline_small_functions): ... this one; cleanup; use
13019 can/want predicates; cleanup debug ouput; work edges till fibheap
13020 is exhausted and do not stop once unit growth is reached; remove
13021 later loop processing remaining edges.
13022 (cgraph_flatten): Rename to ...
13023 (flatten_function): ... this one; use can_inline_edge_p
13024 and can_early_inline_edge_p predicates.
13025 (cgraph_decide_inlining): Rename to ...
13026 (ipa_inline): ... this one; remove unreachable nodes before
13027 inlining functions called once; simplify the pass.
13028 (cgraph_perform_always_inlining): Rename to ...
13029 (inline_always_inline_functions): ... this one; use
13030 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
13031 (cgraph_decide_inlining_incrementally): Rename to ...
13032 (early_inline_small_functions): ... this one; simplify
13033 using new predicates; cleanup; make dumps prettier.
13034 (cgraph_early_inlining): Rename to ...
13035 (early_inliner): newer inline regular functions into always-inlines;
13036 fix updating of call stmt summaries.
13037 (pass_early_inline): Update for new names.
13038 (inline_transform): Fix formating.
13039 (gate_cgraph_decide_inlining): Rename to ...
13040 (pass_ipa_inline): ... this one.
13041 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
13042 * ipa-inline-analysis.c (dump_inline_summary): Update.
13043 (compute_inline_parameters): Do not compute disregard_inline_limits;
13044 look for mismatching arguments.
13045 (estimate_growth): Fix handlig of non-trivial self recursion.
13046 (inline_read_summary): Do not read info->disregard_inline_limits.
13047 (inline_write_summary): Do not write info->disregard_inline_limits.
13048 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
13049 and move all checks into can_inline_edge_p predicate; re-enable code
13050 comparing optimization levels.
13051 (expand_call_inline): Do not test inline_forbidden_into_p.
13052 * Makefile.in (ipa-inline.o): Update arguments.
13054 2011-04-17 Revital Eres <revital.eres@linaro.org>
13056 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
13058 2011-04-17 Revital Eres <revital.eres@linaro.org>
13060 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
13062 2011-04-17 Michael Matz <matz@suse.de>
13064 PR tree-optimization/48622
13066 * ipa-inline-analysis.c (inline_read_summary): Read size/time
13067 in same order as they're written.
13069 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13071 * config/pa/predicates.md: Reorganize and simplify predicates.
13072 Eliminate duplicate code checks.
13073 (arith_operand): Rename to arith14_operand
13074 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
13075 * config/pa/pa.md: Use renamed operands.
13076 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
13077 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
13078 arith11_operand, adddi3_operand, indexed_memory_operand,
13079 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
13080 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
13081 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
13082 move_dest_operand, move_src_operand, prefetch_cc_operand,
13083 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
13084 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
13085 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
13086 div_operand, int5_operand, movb_comparison_operator,
13087 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
13088 arith_double_operand, ireg_operand, lhs_lshift_operand,
13089 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
13090 integer_store_memory_operand): Likewise.
13091 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
13092 (integer_store_memory_operand, read_only_operand,
13093 function_label_operand, borx_reg_operand,
13094 non_hard_reg_operand): Likewise.
13095 (eq_neq_comparison_operator): Delete unused operator.
13096 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
13097 function_label_operand.
13098 (emit_move_sequence): Likewise.
13100 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
13102 * config/i386/sse.md (sseunpackmode): New mode attribute.
13103 (ssepackmode): Ditto.
13104 (vec_pack_trunc_<mode>): Macroize expander from
13105 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
13106 (vec_unpacks_lo_<mode>): Macroize expander from
13107 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13108 (vec_unpacks_hi_<mode>): Macroize expander from
13109 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13110 (vec_unpacku_lo_<mode>): Macroize expander from
13111 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13112 (vec_unpacku_hi_<mode>): Macroize expander from
13113 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
13114 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
13115 ix86_expand_sse4_unpack.
13116 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
13118 2011-04-16 Jan Hubicka <jh@suse.cz>
13120 * cgraphbuild.c: Include ipa-inline.h.
13121 (reset_inline_failed): Use initialize_inline_failed.
13122 * cgraph.c: Include ipa-inline.h.
13123 (cgraph_create_node_1): Do not initialize estimated_growth.
13124 (initialize_inline_failed): More to ipa-inline-analysis.c
13125 (dump_cgraph_node): Do not dump inline flags.
13126 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
13127 and disregard_inline_limits flags.
13128 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
13129 time, size, estimated_growth.
13130 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
13132 * cgraphunit.c (cgraph_decide_is_function_needed): Use
13133 DECL_DISREGARD_INLINE_LIMITS.
13134 (cgraph_analyze_function): Do not initialize
13135 node->local.disregard_inline_limits.
13136 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
13137 inlinable, versionable and disregard_inline_limits.
13138 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13139 cgraph_check_inline_limits, cgraph_default_inline_p,
13140 cgraph_edge_badness, update_caller_keys, update_callee_keys,
13141 add_new_edges_to_heap): Update.
13142 (cgraph_decide_inlining_of_small_function): Update; set
13143 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
13144 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
13145 cgraph_decide_inlining_incrementally): Update.
13146 * ipa-inline.h (inline_summary): Add inlinable, versionable,
13147 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
13148 time, size and estimated_growth parameters.
13149 (estimate_edge_growth): Update.
13150 (initialize_inline_failed): Declare.
13151 * ipa-split.c: Include ipa-inline.h
13152 (execute_split_functions): Update.
13153 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
13154 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
13155 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
13156 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
13157 estimated_growth to INT_MIN.
13158 (inline_node_duplication_hook): Likewise.
13159 (dump_inline_summary): Dump new fields.
13160 (compute_inline_parameters): Update.
13161 (estimate_edge_time, estimate_time_after_inlining,
13162 estimate_size_after_inlining, estimate_growth, inline_read_summary,
13163 inline_write_summary):
13164 (initialize_inline_failed): Move here from cgraph.c.
13165 * tree-sra.c: Include ipa-inline.h.
13166 (ipa_sra_preliminary_function_checks): Update.
13167 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
13170 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
13172 * config/i386/sse.md (V16): New mode iterator.
13174 (AVXMODEQI, AVXMODEDI): Remove.
13175 (sse2, sse3): New mode attribute.
13176 (mov<mode>): Use V16 mode iterator.
13177 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
13178 (push<mode>1): Use V16 mode iterator.
13179 (movmisalign<mode>): Ditto.
13180 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13181 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
13182 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
13183 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
13184 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
13185 avx_movdqu<avxmodesuffix>.
13186 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
13187 *avx_movdqu<avxmodesuffix>.
13188 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
13189 avx_lddqu<avxmodesuffix>.
13190 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
13191 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
13192 avx_movnt<AVXMODEDI:mode>.
13193 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
13194 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
13196 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
13199 * haifa-sched.c (prune_ready_list, schedule_block): Use
13200 sched_pressure_p rather than flag_sched_pressure.
13202 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
13204 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13205 cgraph_get_node instead of cgraph_get_create_node.
13207 2011-04-15 Jakub Jelinek <jakub@redhat.com>
13209 * cfgexpand.c (expand_debug_expr): Use
13210 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
13212 2011-04-15 Michael Matz <matz@suse.de>
13214 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
13215 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
13216 * function.c (gimplify_parameters): Ditto.
13217 * gimplify.c (gimplify_vla_decl): Ditto.
13219 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
13220 (gimple_call_set_alloca_for_var): New inline function.
13221 (gimple_call_alloca_for_var_p): Ditto.
13222 * gimple.c (gimple_build_call_from_tree): Remember
13223 CALL_ALLOCA_FOR_VAR_P state.
13224 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
13226 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
13227 calls if they were for VLA objects.
13229 2011-04-15 Martin Jambor <mjambor@suse.cz>
13231 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
13234 2011-04-15 Martin Jambor <mjambor@suse.cz>
13236 PR middle-end/48601
13237 * tree-emutls.c (lower_emutls_function_body): Call
13238 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
13239 result is non-NULL.
13241 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
13243 * c-decl.c (detect_field_duplicates): Call
13244 objc_detect_field_duplicates instead of objc_get_interface_ivars.
13246 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
13248 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
13249 * gimple.c (gimple_asm_clobbers_memory_p): Define.
13250 * ipa-pure-const.c (check_stmt): Call it.
13251 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
13253 2011-04-15 Richard Guenther <rguenther@suse.de>
13255 PR tree-optimization/48290
13256 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
13257 Properly decide inhibiting propagation based on the valueized
13258 operand. Do loop-closed SSA form preserving here ...
13259 (init_copy_prop): ... not here.
13261 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
13264 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
13265 (*ieee_smax<mode>3): Likewise.
13267 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13269 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
13270 Replace match_operand with match_dup for the third operand in
13273 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
13275 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
13276 to track processing of conditionals. Update all callers.
13277 (try_combine, simplify_if_then_else): Update.
13279 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
13281 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
13284 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
13286 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
13287 instead of match_operand for operand 3.
13289 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
13291 * recog.h (insn_operand_data): Add an "allows_mem" field.
13292 * genoutput.c (output_operand_data): Initialize it.
13293 * optabs.c (maybe_legitimize_operand_same_code): New function.
13294 (maybe_legitimize_operand): Use it when matching the original
13297 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
13299 * gimplify.c: Fix issues in comments throughout.
13300 (voidify_wrapper_expr): Fix long line.
13301 (build_stack_save_restore): Likewise.
13302 (gimplify_loop_expr): Likewise.
13303 (gimplify_compound_lval): Likewise.
13304 (gimplify_init_ctor_eval): Likewise.
13305 (gimplify_modify_expr_rhs): Likewise.
13306 (omp_notice_threadprivate_variable): Likewise.
13308 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
13310 * cfgexpand.c (expand_call_stmt): Convert the function type to the
13311 original one if this is not a builtin function.
13313 2011-04-14 Jakub Jelinek <jakub@redhat.com>
13316 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
13317 offset it as needed based on top 2 bits in operands[3], change
13318 MEM mode to SFmode and mask those 2 bits away from operands[3].
13320 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
13322 * c-parser.c (c_parser_objc_protocol_definition): Updated for
13323 change from objc_declare_protocols() to objc_declare_protocol().
13325 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
13327 * config/i386/sse.md (sse4_1): New mode attribute.
13328 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
13329 avx_blend<ssemodesuffix><avxmodesuffix> and
13330 sse4_1_blend<ssemodesuffix> using VF mode iterator.
13331 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
13332 avx_blendv<ssemodesuffix><avxmodesuffix> and
13333 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
13334 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
13335 avx_dp<ssemodesuffix><avxmodesuffix> and
13336 sse4_1_dp<ssemodesuffix> using VF mode iterator.
13337 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
13338 (sse4_1_packusdw): Merge with *avx_packusdw.
13339 (sse4_1_pblendvb): Merge with *avx_pblendvb.
13340 (sse4_1_pblendw): Merge with *avx_pblendw.
13341 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
13342 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
13343 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
13345 (sse4_1_round<ssescalarmodesuffix>): Merge with
13346 *avx_round<ssescalarmodesuffix>.
13347 (aesenc): Merge with *avx_aesenc.
13348 (aesenclast): Merge with *avx_aesenclast.
13349 (aesdec): Merge with *avx_aesdec.
13350 (aesdeclast): Merge with *avx_aesdeclast.
13351 (pclmulqdq): Merge with *pclmulqdq.
13352 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
13354 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
13356 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
13358 PR middle-end/48608
13359 * cfgexpand.c (get_decl_align_unit): Renamed to ...
13360 (align_local_variable): This. Update DECL_ALIGN.
13361 (add_stack_var): Updated.
13362 (expand_one_stack_var): Likewise.
13364 2011-04-14 Richard Guenther <rguenther@suse.de>
13366 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
13368 (dse_initialize_block_local_data, dse_leave_block,
13369 record_voperand_set, get_stmt_uid): Likewise.
13370 (dse_possible_dead_store_p): Allow any kind of killing stmt.
13371 (dse_optimize_stmt): Remove voperand set handling code.
13372 Simplify and improve to handle any kind of killing stmt.
13373 (dse_record_phi): Remove.
13374 (dse_enter_block): Simplify.
13375 (tree_ssa_dse): Likewise.
13376 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
13378 2011-04-14 Jan Hubicka <jh@suse.cz>
13380 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
13381 * cgraph.h (struct inline_summary): Move to ipa-inline.h
13382 (cgraph_local_info): Remove inline_summary.
13383 * ipa-cp.c: Include ipa-inline.h.
13384 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
13385 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
13387 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
13388 (input_overwrite_node): Do not set inline summary.
13389 (input_node): Do not stream inline summary.
13390 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
13391 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
13392 growth; we do not have inline parameters computed for that anyway.
13393 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
13394 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
13395 (inline_summary_t): New type and VECtor.
13396 (debug_inline_summary, dump_inline_summaries): Declare.
13397 (inline_summary): Use VOCtor.
13398 (estimate_edge_growth): Kill hack computing call stmt size directly.
13399 * lto-section-in.c (lto_section_name): Add inline section.
13400 * ipa-inline-analysis.c: Include lto-streamer.h
13401 (node_removal_hook_holder, node_duplication_hook_holder): New holders
13402 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
13403 (inline_summary_vec): Define.
13404 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
13405 dump_inline_summaries): New functions.
13406 (estimate_function_body_sizes): Properly compute size/time of outgoing
13408 (compute_inline_parameters): Alloc inline_summary; do not compute
13409 size/time of incomming calls.
13410 (estimate_edge_time): Avoid missing time summary hack.
13411 (inline_read_summary): Read inline summary info.
13412 (inline_write_summary): Write inline summary info.
13413 (inline_free_summary): Free all hooks and inline summary vector.
13414 * lto-streamer.h: Add LTO_section_inline_summary section.
13415 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
13416 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
13418 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
13420 * tree-vectorizer.h (vect_strided_store_supported): Add a
13421 HOST_WIDE_INT argument.
13422 (vect_strided_load_supported): Likewise.
13423 (vect_permute_store_chain): Return void.
13424 (vect_transform_strided_load): Likewise.
13425 (vect_permute_load_chain): Delete.
13426 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
13427 count argument. Check that the count is a power of two.
13428 (vect_strided_load_supported): Likewise.
13429 (vect_permute_store_chain): Return void. Update after above changes.
13430 Assert that the access is supported.
13431 (vect_permute_load_chain): Likewise.
13432 (vect_transform_strided_load): Return void.
13433 * tree-vect-stmts.c (vectorizable_store): Update calls after
13434 above interface changes.
13435 (vectorizable_load): Likewise.
13436 (vect_analyze_stmt): Don't check for strided powers of two here.
13438 2011-04-14 Richard Guenther <rguenther@suse.de>
13440 PR tree-optimization/48590
13441 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
13442 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
13443 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
13444 BUILT_IN_STACK_SAVE.
13445 * tree-ssa-dce.c (propagate_necessity): Handle
13446 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
13448 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
13450 * c-parser.c (c_parser_objc_class_declaration): Updated call to
13451 objc_declare_class.
13453 2011-04-14 Richard Guenther <rguenther@suse.de>
13455 * tree.h (get_object_alignment_1): Declare.
13456 * builtins.c (get_object_alignment_1): Split out worker from ...
13457 (get_object_alignment): ... here.
13458 * fold-const.c (get_pointer_modulus_and_residue): Use
13459 get_object_alignment_1.
13461 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
13463 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
13465 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
13466 parameter. Generalise code to handle arrays as well as vectors.
13467 (vect_setup_realignment): Update accordingly.
13468 * tree-vect-stmts.c (vectorizable_store): Likewise.
13469 (vectorizable_load): Likewise.
13471 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
13473 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
13474 within the per-copy loop.
13476 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
13478 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
13481 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
13483 * doc/options.texi (Negative): Explicitly mention that the
13484 Negative chain must be circular.
13486 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
13488 * function.h (block_chainon): Declare.
13489 * function.c (block_chainon): Define.
13491 2011-04-14 Anatoly Sokolov <aesok@post.ru>
13492 Eric Weddington <eric.weddington@atmel.com>
13493 Georg-Johann Lay <avr@gjlay.de>
13495 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
13497 (avr_init_builtins, avr_expand_builtin,
13498 avr_expand_delay_cycles, avr_expand_unop_builtin,
13499 avr_expand_binop_builtin ): New functions.
13500 (avr_builtin_id): New enum
13501 (struct avr_builtin_description): New struct
13502 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
13503 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13505 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
13506 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
13507 UNSPECV_DELAY_CYCLES): new enumeration values
13508 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
13509 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
13510 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
13511 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
13512 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
13513 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
13514 "fmulsu"): New insns
13516 * config/avr/avr-c.c: fix line endings
13517 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
13518 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
13519 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
13520 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
13521 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
13523 * doc/extend.texi (AVR Built-in Functions): New node
13524 (Target Builtins): Add documentation of AVR
13525 built-in functions.
13527 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
13530 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
13531 alone. Error if non-const data has attribute progmem.
13533 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
13535 * tree.h (struct tree_constructor): Include tree_typed instead of
13537 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
13538 TS_TYPED instead of TS_COMMON.
13540 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
13542 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
13543 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
13544 (sse2_psadbw): Merge with *avx_psadbw.
13545 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
13546 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
13547 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
13548 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
13549 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
13550 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
13551 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
13552 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
13553 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
13554 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
13555 (ssse3_palignrti): Merge with *avx_palignrti.
13557 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
13559 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
13560 * tree-ssanames.c (fini_ssanames): VEC_free it.
13561 (make_ssa_name_fn): Update for VECness of free_ssanames.
13562 (release_ssa_name, release_dead_ssa_names): Likewise.
13563 * tree.h (struct tree_ssa_name): Include tree_typed instead of
13565 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
13566 TS_TYPED instead of TS_COMMON.
13568 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
13570 * postreload-gcse.c (gcse_after_reload_main): Add calls to
13571 statistics_counter_event.
13572 * tree-ssa-copyrename.c (stats): Define.
13573 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
13574 statistics_counter_event.
13575 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
13576 (bswap_stats, widen_mul_stats): Define.
13577 (insert_reciprocals): Increment rdivs_inserted.
13578 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
13579 rfuncs_inserted. Add calls to statistics_counter_event.
13580 (execute_cse_sincos_1): Increment inserted.
13581 (execute_cse_sincos): Zeroize sincos_stats. Add call to
13582 statistics_counter_event.
13583 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
13584 of bswap_stats. Add calls to statistics_counter_event.
13585 (convert_mult_to_widen): Increment widen_mults_inserted.
13586 (convert_plusminus_to_widen): Increment maccs_inserted.
13587 (convert_mult_to_fma): Increment fmas_inserted.
13588 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
13589 calls to statistics_counter_event.
13591 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
13593 PR rtl-optimization/48455
13594 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
13595 `temp_costs->mem_cost'.
13597 2011-04-13 Jan Hubicka <jh@suse.cz>
13599 * ipa-inline.h: New file.
13600 * ipa-inline-analysis.c: New file. Broken out of ...
13601 * ipa-inline.c: ... this file; update toplevel comment;
13602 include ipa-inline.h
13603 (inline_summary): Move to ipa-inline.h
13604 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
13605 ipa-inline-analysis.c.
13606 (cgraph_estimate_time_after_inlining): Rename to
13607 estiamte_time_after_inlining; move to ipa-inline-analysis.c
13608 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
13609 to estimate_edge_growth.
13610 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
13611 rename to estimate_size_after_inlining.
13612 (cgraph_mark_inline_edge): Update for new naming convention.
13613 (cgraph_check_inline_limits): Likewise.
13614 (cgraph_edge_badness): Likewise.
13615 (cgraph_decide_recursive_inlining): Likewise.
13616 (cgraph_decide_inlining_of_small_functions): Likewise.
13617 (cgraph_decide_inlining_incrementally): Likewise.
13618 (cgraph_estimate_growth): Rename to estimate_growth; move to
13619 ipa-inline-analysis.c.
13620 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
13621 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
13622 (compute_inline_parameters): Likewise.
13623 (compute_inline_parameters_for_current): Likewise.
13624 (pass_inline_parameters): Likewise.
13625 (inline_indirect_intraprocedural_analysis): Likewise.
13626 (analyze_function): Rename to inline_analyze_function; likewise.
13627 (add_new_function): Move to ipa-inline-analysis.c.
13628 (inline_generate_summary): Likewise.
13629 (inline_read_summary): Likewise.
13630 (inline_write_summary): Likewise.
13631 * Makefile.in (ipa-inline-analysis.c): New file.
13633 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13635 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
13636 * configure: Regenerate.
13638 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
13640 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
13641 instead of tree_common.
13642 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
13644 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
13645 TS_TYPED rather than TS_COMMON.
13646 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
13648 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
13651 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
13652 r20 around calls of __tablejump_elpm__
13654 2011-04-13 Jakub Jelinek <jakub@redhat.com>
13656 PR middle-end/48591
13657 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
13659 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
13661 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
13663 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
13664 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
13665 (cfi_vec): New typedef.
13666 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
13667 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
13668 (cie_cfi_vec): New static variable.
13669 (cie_cfi_head): Delete.
13670 (add_cfi): Accept a cfi_vec * as first argument. All callers and
13671 declaration changed. Use vector rather than list operations.
13672 (new_cfi): Don't initialize the dw_cfi_next field.
13673 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
13674 rather than list operations.
13675 (lookup_cfa): Use vector rather than list operations.
13676 (output_cfis): New argument upto. Accept a cfi_vec rather than
13677 a dw_cfi_ref list head as argument. All callers changed.
13678 Iterate over the vector using upto as a maximum index.
13679 (output_all_cfis): New static function.
13680 (output_fde): Use vector rather than list operations. Use the
13681 new upto argument for output_cfis rather than manipulating a
13683 (dwarf2out_begin_prologue): Change initializations to match
13684 new struct members.
13685 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
13686 from the vector length rather than searching for the end of a list.
13687 Use output_all_cfis.
13688 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
13690 2011-04-13 Nick Clifton <nickc@redhat.com>
13692 * config/rx/rx.md (movmemsi): Do not use this pattern when
13693 volatile pointers are involved.
13695 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
13697 * config/i386/sse.md (pinsrbits): Remove.
13698 (sse2_packsswb): Merge with *avx_packsswb.
13699 (sse2_packssdw): Merge with *avx_packssdw.
13700 (sse2_packuswb): Merge with *avx_packuswb.
13701 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
13702 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
13703 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
13704 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
13705 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
13706 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
13707 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
13708 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
13709 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
13710 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
13711 (sse2_loadld): Merge with *avx_loadld.
13712 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
13713 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
13714 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
13715 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
13716 (vec_concatv2di): Merge with *vec_concatv2di_avx.
13718 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
13720 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
13721 calling TREE_CHAIN.
13722 * print-tree.c (print_node): Likewise.
13723 * tree-inline.c (copy_tree_r): Likewise.
13724 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
13725 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
13726 instead of TS_COMMON.
13727 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
13728 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
13729 (copy_node_stat): Zero TREE_CHAIN only if necessary.
13730 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
13731 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
13733 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
13735 (TREE_CHAIN): Check for a TS_COMMON structure.
13736 (TREE_TYPE): Check for a TS_TYPED structure.
13738 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
13740 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
13741 cgraph_get_create_node instead of cgraph_node.
13743 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
13745 * c-parser.c (c_parser_initelt): Updated call to
13746 objc_build_message_expr.
13747 (c_parser_postfix_expression): Likewise.
13749 2011-04-12 Kai Tietz <ktietz@redhat.com>
13751 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
13752 MASK_MS_BITFIELD_LAYOUT bit.
13754 2011-04-12 Jakub Jelinek <jakub@redhat.com>
13756 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
13757 assert it is always true.
13758 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
13761 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
13763 * c-parser.c (c_lex_one_token): Rewritten conditional used when
13764 compiling Objective-C to be more efficient.
13766 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
13768 * opts-common.c (decode_cmdline_options_to_array): Remove variable
13771 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13773 * recog.h, genoutput.c, optabs.c: Revert last patch.
13775 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13778 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
13780 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13782 * recog.h (insn_operand_data): Add an "allows_mem" field.
13783 * genoutput.c (output_operand_data): Initialize it.
13784 * optabs.c (maybe_legitimize_operand_same_code): New function.
13785 (maybe_legitimize_operand): Use it when matching the original
13788 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13790 * genpreds.c (process_define_predicate): Move most processing
13791 to gensupport.c. Continue to validate the expression.
13792 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
13793 (process_define_predicate): Move processing to gensupport.c.
13794 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
13795 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
13796 (compute_predicate_codes): Moved from genrecog.c. Add lineno
13798 (valid_predicate_name_p): New function, split out from old
13799 genpreds.c:process_define_predicate.
13800 (process_define_predicate): New function, combining code from
13801 old genpreds.c and genrecog.c functions.
13802 (process_rtx): Call it for DEFINE_PREDICATE and
13803 DEFINE_SPECIAL_PREDICATE.
13805 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
13807 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
13808 size of a '%A' memory reference.
13809 (T_DREG, T_QREG): New neon_builtin_type_bits.
13810 (arm_init_neon_builtins): Assert that the load and store operands
13811 are neon_struct_operands.
13812 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
13813 (NEON_ARG_MEMORY): New builtin_arg.
13814 (neon_dereference_pointer): New function.
13815 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
13816 Handle NEON_ARG_MEMORY.
13817 (arm_expand_neon_builtin): Update after above interface changes.
13818 Use NEON_ARG_MEMORY for loads and stores.
13819 * config/arm/predicates.md (neon_struct_operand): New predicate.
13820 * config/arm/iterators.md (V_two_elem): Tweak formatting.
13821 (V_three_elem): Use BLKmode for accesses that have no associated mode.
13822 (V_four_elem): Tweak formatting.
13823 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
13824 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
13825 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
13826 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
13827 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
13828 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
13829 (neon_vst4<mode>): Replace pointer operand with a memory operand.
13830 Use %A in the output template.
13831 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
13832 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
13833 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
13834 the width of the memory access. Remove post-increment.
13835 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
13837 2011-04-12 Nick Clifton <nickc@redhat.com>
13839 * config/v850/v850.c (expand_prologue): Do not use the CALLT
13840 instruction for interrupt handlers if the target is the basic V850
13842 (expand_epilogue): Likewise.
13844 2011-04-12 Jakub Jelinek <jakub@redhat.com>
13846 PR rtl-optimization/48549
13847 * combine.c (propagate_for_debug): Also stop after BB_END of
13848 this_basic_block. Process LAST and just stop processing after it.
13849 (combine_instructions): If last_combined_insn has been deleted,
13850 set last_combined_insn to its PREV_INSN.
13852 2011-04-12 Richard Guenther <rguenther@suse.de>
13854 PR tree-optimization/46076
13855 * gimple.h (struct gimple_statement_call): Add fntype field.
13856 (gimple_call_fntype): Adjust.
13857 (gimple_call_set_fntype): New function.
13858 * gimple.c (gimple_build_call_1): Set the call function type.
13859 * gimplify.c (gimplify_call_expr): Preserve the function
13860 type the frontend used for the call.
13861 (gimplify_modify_expr): Likewise.
13862 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
13864 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
13866 * tree-ssa.c (useless_type_conversion_p): Function pointer
13867 conversions are useless.
13869 2011-04-12 Martin Jambor <mjambor@suse.cz>
13871 * cgraph.h (cgraph_node): Remove function declaration.
13872 (cgraph_create_node): Declare.
13873 (cgraph_get_create_node): Likewise.
13874 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
13875 Updated all callers.
13876 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
13877 the decl does not already exist. Call cgraph_get_create_node instead
13879 (cgraph_get_create_node): New function.
13880 (cgraph_same_body_alias): Update comment.
13881 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
13882 assert it does not return NULL.
13883 (cgraph_update_edges_for_call_stmt): Likewise.
13884 (cgraph_clone_edge): Likewise.
13885 (cgraph_create_virtual_clone): Likewise.
13886 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
13887 instead of cgraph_node.
13888 (cgraph_add_new_function): Call cgraph_create_node or
13889 cgraph_get_create_node instead of cgraph_node.
13890 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
13891 instead of cgraph_node.
13892 (record_eh_tables): Likewise.
13893 (mark_address): Likewise.
13894 (mark_load): Likewise.
13895 (build_cgraph_edges): Call cgraph_get_create_node instead
13897 (rebuild_cgraph_edges): Likewise.
13898 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
13899 instead of cgraph_node.
13900 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
13902 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
13903 cgraph_create_node instead of cgraph_node.
13904 * c-decl.c (finish_function): Call cgraph_get_create_node instead
13906 * lto-cgraph.c (input_node): Likewise.
13907 * lto-streamer-in.c (input_function): Likewise.
13908 * varasm.c (mark_decl_referenced): Likewise.
13909 (assemble_alias): Likewise.
13911 2011-04-12 Martin Jambor <mjambor@suse.cz>
13913 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
13914 instead of cgraph_node and assert it does not return NULL.
13915 * lto-streamer-in.c (lto_read_body): Likewise.
13916 * omp-low.c (new_omp_context): Likewise.
13917 (create_task_copyfn): Likewise.
13918 * tree-emutls.c (lower_emutls_function_body): Likewise.
13919 * matrix-reorg.c (transform_allocation_sites): Likewise.
13921 2011-04-12 Jakub Jelinek <jakub@redhat.com>
13924 * c-typeck.c (build_asm_expr): Error out on attempts to use
13925 void type outputs or inputs for constraints that allow reg or
13926 don't allow memory.
13928 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
13929 Richard Earnshaw <rearnsha@arm.com>
13932 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
13933 to use sign-magnitude offsets. Reject unsupported unaligned
13934 cases. Add detailed description in comments.
13935 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
13936 condition from TARGET_32BIT to TARGET_ARM.
13938 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
13940 * tree.h (struct typed_tree): New.
13941 (struct tree_common): Include it instead of tree_base.
13942 (TREE_TYPE): Update for new location of type field.
13943 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
13944 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
13945 (union tree_node): Add typed field.
13946 * treestruct.def (TS_TYPED): New.
13947 * lto-streamer.c (check_handled_ts_structures): Handle it.
13948 * tree.c (MARK_TS_TYPED): New macro.
13949 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
13951 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
13953 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
13954 (force_nonfallthru): Do not alter the loop nest if no basic block
13957 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
13959 * config/i386/sse.md (VI): New mode iterator.
13960 (SSEMODEI): Remove.
13961 (AVX256MODEI): Ditto.
13962 (AVXMODEF4P): Ditto.
13963 (avxvecpsmode): Ditto.
13964 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
13965 (sse2_andnot<mode>3): New expander.
13966 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
13967 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
13968 (<any_logic:code><mode>3): Use VI mode iterator.
13969 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
13970 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
13971 (*andnottf3): Handle AVX three-operand constraints.
13972 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
13974 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13975 Robert Millan <rmh@gnu.org>
13977 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
13978 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
13979 GNU_USER_DYNAMIC_LINKER64): Define.
13980 (REG_NAME): Don't undefine.
13981 (MD_UNWIND_SUPPORT): Undefine.
13982 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
13983 (REG_NAME): Don't undefine.
13984 (MD_UNWIND_SUPPORT): Undefine.
13985 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
13987 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13989 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
13990 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
13992 2011-04-11 Xinliang David Li <davidxl@google.com>
13994 * value-profile.c (check_ic_target): New function.
13995 (gimple_ic_transform): Sanity check indirect call target.
13996 * gimple-low.c (gimple_check_call_args): Interface change.
13997 (gimple_check_call_matching_types): New function.
13998 * tree-inline.c (tree_can_inline_p): Call new function.
14000 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
14002 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
14003 tree-pretty-print.h & realmpfr.h.
14005 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
14007 PR middle-end/48464
14008 * ira.c (setup_pressure_classes): Fix typo in loop condition.
14009 (setup_allocno_and_important_classes): Ditto.
14011 2011-04-11 Joseph Myers <joseph@codesourcery.com>
14013 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
14014 GNU_USER_DYNAMIC_LINKER.
14015 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
14016 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14017 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
14018 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14019 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14020 GNU_USER_TARGET_OS_CPP_BUILTINS.
14021 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
14022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14023 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14025 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
14026 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14027 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14028 GNU_USER_TARGET_OS_CPP_BUILTINS.
14029 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14030 GNU_USER_DYNAMIC_LINKER.
14031 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14032 GNU_USER_TARGET_OS_CPP_BUILTINS.
14033 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
14034 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14035 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
14036 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14037 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
14038 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
14039 GNU_USER_DYNAMIC_LINKER64): Remove.
14040 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
14041 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14042 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14043 GNU_USER_DYNAMIC_LINKER.
14044 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14045 GNU_USER_TARGET_OS_CPP_BUILTINS.
14046 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14047 GNU_USER_TARGET_OS_CPP_BUILTINS.
14048 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
14049 to GNU_USER_TARGET_OS_CPP_BUILTINS.
14050 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
14051 GNU_USER_TARGET_OS_CPP_BUILTINS.
14052 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
14053 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
14054 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14055 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
14056 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14057 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14058 GNU_USER_DYNAMIC_LINKER.
14059 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
14060 GNU_USER_TARGET_OS_CPP_BUILTINS.
14061 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
14062 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14063 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14064 GNU_USER_DYNAMIC_LINKER.
14065 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14066 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14067 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
14068 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14069 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14070 GNU_USER_DYNAMIC_LINKER.
14071 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
14072 GNU_USER_DYNAMIC_LINKERN32.
14073 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
14074 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
14075 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
14076 GNU_USER_DYNAMIC_LINKER32.
14077 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
14078 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14079 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14080 GNU_USER_DYNAMIC_LINKER.
14081 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
14082 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14083 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
14084 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14085 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14086 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
14087 GNU_USER_DYNAMIC_LINKER32.
14088 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
14089 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
14090 GNU_USER_DYNAMIC_LINKER.
14091 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
14092 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14093 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14094 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
14095 GNU_USER_DYNAMIC_LINKER64.
14096 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
14097 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14098 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14099 GNU_USER_DYNAMIC_LINKER.
14100 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
14101 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14102 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
14103 GNU_USER_DYNAMIC_LINKER.
14104 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
14105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14106 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
14107 GNU_USER_DYNAMIC_LINKER32.
14108 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14109 GNU_USER_DYNAMIC_LINKER64.
14110 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
14111 GNU_USER_DYNAMIC_LINKER64.
14112 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
14113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14114 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
14115 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
14116 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
14118 2011-04-11 Joseph Myers <joseph@codesourcery.com>
14120 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
14121 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
14122 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
14123 GNU_USER_DYNAMIC_LINKER.
14124 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14125 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
14126 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
14127 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
14128 GNU_USER_DYNAMIC_LINKER64.
14129 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
14130 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
14131 GNU_USER_LINK_EMULATION.
14132 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
14133 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
14134 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
14135 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
14136 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
14137 CPP_SPEC, CC1_SPEC): Remove.
14138 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
14139 (GNU_USER_DYNAMIC_LINKER): Define.
14140 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
14141 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
14142 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
14143 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
14144 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
14145 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
14146 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14147 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
14148 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
14149 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
14150 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
14151 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
14152 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
14153 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
14154 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
14155 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
14156 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14157 GNU_USER_DYNAMIC_LINKER.
14158 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14159 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
14160 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14161 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
14162 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
14163 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
14164 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
14165 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
14166 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
14167 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
14169 2011-04-11 Kai Tietz <ktietz@redhat.com>
14173 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
14174 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
14176 (ix86_is_msabi_thiscall): Removed.
14177 (ix86_is_type_thiscall): Likewise.
14178 (ix86_get_callcvt): New function.
14179 (ix86_comp_type_attributes): Simplify check.
14180 (ix86_function_regparm): Use ix86_get_callcvt for calling
14181 convention attribute checks.
14182 (ix86_return_pops_args): Likewise.
14183 (ix86_static_chain): Likewise.
14184 (x86_this_parameter): Likewise.
14185 (x86_output_mi_thunk): Likewise.
14186 (ix86_function_type_abi): Optimize check for types without attributes.
14187 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
14188 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
14189 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
14191 (IX86_BASE_CALLCVT): Helper macro.
14192 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
14193 Use ix86_get_callcvt for calling convention attribute checks and avoid
14194 symbol-decoration for stdcall in TARGET_RTD case.
14195 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
14197 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
14200 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
14202 * config/i386/sse.md (VI_128): New mode iterator.
14203 (VI12_128): Rename from SSEMODE12.
14204 (VI14_128): Rename from SSEMODE14.
14205 (VI124_128): New mode iterator.
14206 (VI24_128): Rename from SSEMODE248.
14207 (VI248_128): Rename from SSEMODE248.
14208 (SSEMODE124C8): Remove.
14209 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14210 (*sse2_<plusminus_insn><mode>3): Merge with
14211 *avx_<plusminus_insn><mode>3.
14212 (*mulv8hi3): Merge with *avx_mulv8hi3.
14213 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
14214 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
14215 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
14216 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
14217 (ashr<mode>3): Merge with *avx_ashr<mode>3.
14218 (lshr<mode>3): Merge with *avx_lshr<mode>3.
14219 (ashl<mode>3): Merge with *avx_ashl<mode>3.
14220 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
14221 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
14222 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14223 (*<smaxmin:code>v8hi3): Ditto.
14224 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
14225 (*<smaxmin:code>v16qi3): Ditto.
14226 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
14227 (*sse2_eq<mode>3): Ditto.
14228 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
14229 (*sse2_gt<mode>3): Ditto.
14230 (vcondv2di): Split out of vcond<mode>.
14231 (vconduv2di): Split out of vcondu<mode>.
14233 2011-04-11 Richard Guenther <rguenther@suse.de>
14235 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
14236 before calling tree_low_cst.
14238 2011-04-11 Richard Guenther <rguenther@suse.de>
14240 * stor-layout.c (layout_type): Compute all array index size operations
14241 in the original type.
14242 (initialize_sizetypes): Add comment.
14243 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
14245 2011-04-11 Joseph Myers <joseph@codesourcery.com>
14247 * common.opt (Tbss=, Tdata=, Ttext=): New options.
14249 2011-04-11 Martin Jambor <mjambor@suse.cz>
14251 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
14252 of cgraph_node, handle NULL return value.
14253 (cgraph_global_info): Likewise.
14254 (cgraph_rtl_info): Likewise.
14255 * tree-inline.c (estimate_num_insns): Likewise.
14256 * gimplify.c (unshare_body): Likewise.
14257 (unvisit_body): Likewise.
14258 (gimplify_body): Likewise.
14259 * predict.c (optimize_function_for_size_p): Likewise.
14260 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
14261 (call_may_clobber_ref_p_1): Likewise.
14262 * varasm.c (function_section_1): Likewise.
14263 (assemble_start_function): Likewise.
14265 2011-04-11 Martin Jambor <mjambor@suse.cz>
14267 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
14269 * final.c (rest_of_clean_state): Likewise.
14270 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
14271 * passes.c (pass_init_dump_file): Likewise.
14272 (execute_all_ipa_transforms): Likewise.
14273 (function_called_by_processed_nodes_p): Likewise.
14274 * predict.c (maybe_hot_frequency_p): Likewise.
14275 (probably_never_executed_bb_p): Likewise.
14276 (compute_function_frequency): Likewise.
14277 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
14278 (unnest_nesting_tree_1): Likewise.
14279 (lower_nested_functions): Likewise.
14280 * tree-optimize.c (execute_fixup_cfg): Likewise.
14281 (tree_rest_of_compilation): Likewise.
14282 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
14283 * tree-sra.c (ipa_early_sra): Likewise.
14284 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
14285 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
14286 * ipa.c (record_cdtor_fn): Likewise.
14287 * ipa-inline.c (cgraph_early_inlining): Likewise.
14288 (compute_inline_parameters_for_current): Likewise.
14289 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14290 * ipa-pure-const.c (local_pure_const): Likewise.
14291 * ipa-split.c (split_function): Likewise.
14292 (execute_split_functions): Likewise.
14293 * cgraphbuild.c (build_cgraph_edges): Likewise.
14294 (rebuild_cgraph_edges): Likewise.
14295 (cgraph_rebuild_references): Likewise.
14296 (remove_cgraph_callee_edges): Likewise.
14297 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
14298 (verify_cgraph_node): Likewise.
14299 (cgraph_analyze_functions): Likewise.
14300 (cgraph_preserve_function_body_p): Likewise.
14301 (save_inline_function_body): Likewise.
14302 (save_inline_function_body): Likewise.
14303 * tree-inline.c (copy_bb): Likewise.
14304 (optimize_inline_calls): Likewise.
14306 2011-04-11 Martin Jambor <mjambor@suse.cz>
14308 PR tree-optimization/48195
14309 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
14310 ipa_check_create_edge_args.
14311 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
14312 ipa_check_create_edge_args.
14313 * ipa-inline.c (inline_generate_summary): Do not call
14314 ipa_check_create_node_params and ipa_check_create_edge_args.
14315 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
14316 ipa_check_create_edge_args.
14318 2011-04-09 Anatoly Sokolov <aesok@post.ru>
14320 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
14322 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
14323 * function.c (record_hard_reg_sets): Likewise.
14324 * ira.c (compute_regs_asm_clobbered): Likewise.
14325 * sched-deps.c (sched_analyze_1): Likewise.
14326 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
14328 2011-04-09 Xinliang David Li <davidxl@google.com>
14330 PR tree-optimization/PR48484
14331 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
14332 has_valid_pred lazily
14334 2011-04-09 Duncan Sands <baldrick@free.fr>
14336 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
14338 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
14340 * combine.c (combine_validate_cost): Adjust comments. Set registered
14341 cost of I0 to zero at the end, if any.
14343 2011-04-08 Xinliang David Li <davidxl@google.com>
14345 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
14346 to insane profile data.
14348 2011-04-08 Xinliang David Li <davidxl@google.com>
14350 * ipa-cp.c (ipcp_update_profiling): Correct
14351 negative scale factor due to insane profile data.
14353 2011-04-08 Xinliang David Li <davidxl@google.com>
14355 * final.c (dump_basic_block_info): New function.
14356 (final): Dump basic block.
14357 (final_scan_insn): Remove old dump.
14359 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
14362 * config.gcc (i386-*-freebsd): Disable unwind table generation for
14365 2011-04-08 Michael Matz <matz@suse.de>
14367 PR middle-end/48389
14368 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
14370 (rebuild_jump_labels): Call rebuild_jump_labels_1.
14371 * rtl.h (rebuild_jump_labels_chain): Declare.
14372 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
14373 insns inserted on edges.
14375 2011-04-08 Joseph Myers <joseph@codesourcery.com>
14377 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
14378 * config/arm/arm-arches.def: New.
14379 * config/arm/arm-opts.h: New.
14380 * config/arm/genopt.sh: New.
14381 * config/arm/arm-tables.opt: New (generated).
14382 * config/arm/arm.c (arm_handle_option, arm_target_help,
14383 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
14384 (all_architectures): Get most table contents from arm-arches.def.
14385 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
14386 arm_selected_tune here.
14387 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
14388 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
14389 (march=, mcpu=, mtune=): Use Enum and Var.
14390 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
14391 (arm.o): Update dependencies.
14393 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
14395 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
14397 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
14398 (write_typed_alloc_defns): Likewise.
14399 (main): Calls write_typed_alloc_defns with output_header.
14401 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
14403 PR inline-asm/48435
14404 * ira-color.c (setup_profitable_hard_regs): Add comments.
14405 Don't take prohibited hard regs into account.
14406 (setup_conflict_profitable_regs): Rename to
14407 get_conflict_profitable_regs.
14408 (check_hard_reg_p): Check prohibited hard regs.
14410 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
14412 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
14413 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
14414 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
14416 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14419 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
14420 move from floating point to shift amount register.
14421 (emit_move_sequence): Remove secondary reload support for floating
14422 point to shift amount amount register copies.
14423 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
14424 amount register copies.
14425 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
14426 register, return false if mode isn't a scalar integer mode.
14427 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
14429 2011-04-08 Richard Guenther <rguenther@suse.de>
14431 * gimple.c (gimple_call_flags): Remove kludge.
14433 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
14435 * sel-sched.c (sel_region_init): Move call to
14436 sel_setup_region_sched_flags after setup_current_loop_nest.
14438 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
14440 PR rtl-optimization/48272
14441 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
14442 init_insn_reg_pressure_info. Adjust a caller.
14443 * sched-int.h (init_insn_reg_pressure_info): Declare.
14444 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
14445 when sched-pressure is enabled.
14447 2011-04-08 Richard Guenther <rguenther@suse.de>
14449 * gimple.c (gimple_set_modified): Do not queue calls to
14450 MODIFIED_NORETURN_CALLS here ...
14451 * tree-ssa-operands.c (update_stmt_operands): ... but here.
14453 2011-04-08 Richard Guenther <rguenther@suse.de>
14456 * toplev.c (lang_dependent_init): Do not open asm_out_file
14457 in WPA mode, nor perform debug machinery initialization.
14458 (finalize): Do not unlink asm_out_file in WPA mode.
14460 2011-04-08 Richard Guenther <rguenther@suse.de>
14462 * gimple.h (gimple_call_fntype): New function.
14463 (gimple_call_return_type): Use it.
14464 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
14465 * gimple-low.c (gimple_check_call_args): Likewise.
14466 * gimple.c (gimple_call_flags): Likewise.
14467 (gimple_call_arg_flags): Likewise.
14468 (gimple_call_return_flags): Likewise.
14469 * tree-cfg.c (verify_gimple_call): Likewise.
14470 (do_warn_unused_result): Likewise.
14471 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
14472 * value-prof.c (gimple_ic_transform): Fix fndecl check.
14474 2011-04-08 Dmitry Melnik <dm@ispras.ru>
14476 PR rtl-optimization/48235
14477 * sel-sched.c (code_motion_process_successors): Recompute the last
14478 insn in basic block if control flow changed.
14479 (code_motion_path_driver): Ditto. Recompute the first insn as well.
14480 Update condition for ilist_remove.
14482 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
14484 PR rtl-optimization/48302
14485 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
14486 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
14487 it to record added preheader blocks.
14488 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
14489 on to sel_add_loop_preheaders.
14490 (sel_region_init): Move call to setup_current_loop_nest after
14493 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
14496 * cfgloop.h (loop_has_exit_edges): New helper.
14497 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
14499 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
14500 that have no exit edges.
14502 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
14504 PR rtl-optimization/48442
14505 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
14506 all callers. Adjust assert.
14508 2011-04-08 Jakub Jelinek <jakub@redhat.com>
14510 PR tree-optimization/48377
14511 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
14512 is_packed to true even for types with smaller TYPE_ALIGN than
14515 2011-04-08 Richard Guenther <rguenther@suse.de>
14518 * doc/tm.texi: Re-generate.
14520 2011-04-08 Wei Guozhi <carrot@google.com>
14523 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
14524 * config/arm/arm.c (arm_attr_length_push_multi): New function.
14525 * config/arm/arm.md (*push_multi): Change the length computation to
14528 2011-04-08 Anatoly Sokolov <aesok@post.ru>
14530 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
14531 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
14532 * doc/tm.texi: Regenerate.
14533 * system.h (ASM_OUTPUT_BSS): Poison.
14534 * varasm.c (asm_output_bss): Remove function.
14535 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
14537 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
14538 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
14539 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
14540 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14542 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14544 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
14546 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
14548 2011-04-07 Joseph Myers <joseph@codesourcery.com>
14550 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
14553 2011-04-07 Joseph Myers <joseph@codesourcery.com>
14555 * config/m68k/m68k.c (m68k_handle_option): Don't handle
14556 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
14557 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
14559 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14560 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
14561 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
14562 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
14563 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
14564 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
14565 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
14566 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
14567 options. Don't map other m68k options manually. Don't handle
14568 old-style options as canonical.
14569 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
14570 * doc/install.texi (m68k-*-*): Document binutils version requirement.
14572 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
14574 * basic-block.h (force_nonfallthru): Move to...
14575 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
14576 (force_nonfallthru): ...here.
14577 * cfghooks.c (force_nonfallthru): New function.
14578 * cfgrtl.c (force_nonfallthru): Rename into...
14579 (rtl_force_nonfallthru): ...this.
14580 (commit_one_edge_insertion): Do not set AUX field.
14581 (commit_edge_insertions): Do not discover new basic blocks.
14582 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
14583 (cfg_layout_rtl_cfg_hooks): Likewise.
14584 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
14585 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
14586 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
14588 2011-04-07 Anatoly Sokolov <aesok@post.ru>
14590 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
14593 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
14595 * config/i386/sse.md: Update copyright year.
14596 (avxcvtvecmode): Remove.
14597 (sse_movhlps): Merge with *avx_movhlps.
14598 (sse_movlhps): Merge with *avx_movlhps.
14599 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
14600 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
14601 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
14602 (sse_loadhps): Merge with *avx_loadhps.
14603 (sse_storelps): Merge with *avx_storelps.
14604 (sse_loadlps): Merge with *avx_loadlps.
14605 (sse_movss): Merge with *avx_movss.
14606 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
14607 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
14608 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
14609 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
14610 (vec_set<mode>_0): Ditto.
14611 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
14612 (sse4_1_insertps): Merge with *avx_insertps.
14613 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
14614 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
14615 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
14616 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
14617 (sse2_storehpd): Merge with *avx_storehpd.
14618 (sse2_loadhpd): Merge with *avx_loadhpd.
14619 (sse2_loadlpd): Merge with *avx_loadlpd.
14620 (sse2_movsd): Merge with *avx_movsd.
14621 (*vec_concatv2df): Merge with *vec_concatv2df.
14623 2011-04-07 Jakub Jelinek <jakub@redhat.com>
14626 * combine.c (combine_instructions): Add last_combined_insn,
14627 update it if insn is after it, pass it to all try_combine calls.
14628 (try_combine): Add last_combined_insn parameter, pass it instead of
14629 i3 to propagate_for_debug.
14631 2011-04-07 Nick Clifton <nickc@redhat.com>
14633 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
14634 to handle MDR <-> data register transfers.
14635 (movhi_internal): Likewise.
14637 2011-04-07 Alan Modra <amodra@gmail.com>
14639 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
14640 previous stack info.
14642 2011-04-07 Tom de Vries <tom@codesourcery.com>
14645 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
14646 flow_find_cross_jump. Swap variables to implement backward replacement.
14647 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
14649 2011-04-07 Tom de Vries <tom@codesourcery.com>
14652 * cfgcleanup.c (walk_to_nondebug_insn): New function.
14653 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
14655 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
14656 src1 or src2. Redirect edges to the last basic block. Update
14657 frequency and count on multiple basic blocks in case of fallthru.
14659 2011-04-07 Tom de Vries <tom@codesourcery.com>
14662 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
14664 (old_insns_match_p): Change return type. Replace return false/true
14665 with return dir_none/dir_both. Use can_replace_by.
14666 (flow_find_cross_jump): Add dir_p parameter. Init replacement
14667 direction from dir_p. Register replacement direction in dir, last_dir
14668 and afterlast_dir. Handle new return type of old_insns_match_p using
14669 merge_dir. Return replacement direction in dir_p.
14670 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
14671 return type of old_insns_match_p.
14672 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
14673 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
14674 flow_find_cross_jump.
14675 * basic-block.h (enum replace_direction): New type.
14676 (flow_find_cross_jump): Add parameter to declaration.
14678 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
14680 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
14681 (AVXMODEDCVTPS2DQ): Ditto.
14682 (VEC_FLOAT_MODE): Ditto.
14683 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
14684 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14685 (<any_logic:code><mode>3): Use VF mode iterator.
14686 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
14687 Use VF mode iterator.
14688 (copysign<mode>3): Use VF mode iterator.
14689 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
14690 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
14691 (*<any_logic:code><MODEF:mode>3): Merge with
14692 *avx_<any_logic:code><MODEF:mode>3.
14693 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
14694 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
14695 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
14696 (avx_cvtdq2ps<avxmodesuffix>): Remove.
14697 (sse2_cvtdq2ps): Use %v modifier.
14698 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
14699 (avx_cvtps2dq<avxmodesuffix>): Remove.
14700 (sse2_cvtps2dq): Use %v modifier.
14701 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
14702 (avx_cvttps2dq<avxmodesuffix>): Remove.
14703 (sse2_cvttps2dq): Use %v modifier.
14704 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
14705 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
14706 (sse2_cvtsd2siq): Fix insn template.
14707 (sse2_cvtsd2siq_2): Ditto.
14708 (sse2_cvttsd2siq): Ditto.
14709 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
14710 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
14712 2011-04-06 Joseph Myers <joseph@codesourcery.com>
14714 * gcov-io.c: Use GCC Runtime Library Exception.
14716 2011-04-06 Jakub Jelinek <jakub@redhat.com>
14719 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
14720 as base_reg whatever register reg has been eliminated to, instead
14721 of hardcoding STACK_POINTER_REGNUM.
14723 2011-04-06 Joseph Myers <joseph@codesourcery.com>
14725 * doc/tm.texi.in: Document C target hooks as separate from general
14727 * doc/tm.texi: Regenerate.
14728 * genhooks.c (struct hook_desc): Add docname field.
14729 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
14731 (hook_array): Include c-target.def.
14732 (emit_documentation): Use docname field in output.
14733 (emit_init_macros): Take docname argument. Only emit definitions
14734 for hooks matching docname.
14735 (main): Expect additional arguments in all cases. Pass argument
14736 to emit_init_macros.
14737 * target.def: Move initial macro definitions and comments to
14738 target-hooks-macros.h.
14739 (gcc_targetcm): Move to c-family/c-target.def.
14740 * target.h (targetcm): Move declaration to c-family/c-target.h.
14741 * targhooks.c (default_handle_c_option): Move to
14743 * targhooks.h (default_handle_c_option): Move declaration to
14744 c-family/c-common.h.
14745 * target-hooks-macros.h: New file.
14746 * config.gcc (target_has_targetcm): Define and use to add to
14747 c_target_objs and cxx_target_objs.
14748 * config/default-c.c: New file.
14749 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
14750 of target.h and target-def.h.
14751 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
14752 (darwin_objc_construct_string, darwin_cfstring_ref_p,
14753 darwin_check_cfstring_format_arg): Make static.
14754 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14755 TARGET_STRING_OBJECT_REF_TYPE_P,
14756 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
14757 * config/darwin-protos.h (darwin_objc_construct_string,
14758 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
14760 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
14761 TARGET_STRING_OBJECT_REF_TYPE_P,
14762 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
14763 * config/t-darwin (darwin-c.o): Update dependencies.
14764 * system.h (TARGET_HAS_TARGETCM): Poison.
14765 * Makefile.in (TARGET_H): Update.
14766 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
14767 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
14768 (default-c.o): New target.
14769 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
14770 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
14771 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
14773 (build/genhooks.o): Update dependencies.
14775 2011-04-06 Richard Guenther <rguenther@suse.de>
14777 * ipa-inline.c (enum inlining_mode): Remove.
14778 (cgraph_flatten): Use some other token.
14779 (cgraph_edge_early_inlinable_p): New function, split out from ...
14780 (cgraph_perform_always_inlining): New function, split out from ...
14781 (cgraph_decide_inlining_incrementally): ... here.
14782 (cgraph_mark_inline_edge): Adjust.
14783 (cgraph_early_inlining): Re-structure.
14784 (pass_early_inline): Require SSA form.
14786 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
14787 Julian Brown <julian@codesourcery.com>
14788 Mark Shinwell <shinwell@codesourcery.com>
14790 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
14791 LO_REGS only for Thumb-1.
14792 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
14793 be used in short instructions when optimising for size on Thumb-2.
14795 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
14797 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
14798 associated with user returns to be preserved.
14800 2011-04-06 Tristan Gingold <gingold@adacore.com>
14802 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
14803 symbol_queue_size, DBXOUT_DECR_NESTING,
14804 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
14805 if XCOFF_DEBUGGING_INFO.
14807 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
14809 * config/i386/i386.md (attribute isa): New.
14810 (attribute enabled): New.
14811 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
14812 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
14813 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
14814 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
14815 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
14816 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14817 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
14818 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
14820 * config/i386/sse.md (VF): New mode iterator.
14824 (SSEMODEF4): Remove.
14825 (attribute sse): Handle V8SF and V4DF modes.
14826 (<absneg:code><mode>2): Use VF mode iterator.
14827 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
14829 (<plusminus_insn><mode>3): Use VF mode iterator.
14830 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
14831 Use VF mode iterator.
14832 (<sse>_vm<plusminus_insn><mode>3): Merge with
14833 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
14834 (mul<mode>3): Use VF mode iterator.
14835 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
14836 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
14838 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
14839 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
14840 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
14841 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
14843 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
14844 Use VF1 mode iterator.
14845 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
14846 (sqrt<VF2:mode>2): New expander.
14847 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
14848 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
14849 and sqrtv2df2. Use VF mode iterator.
14850 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
14852 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
14853 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
14854 Use VF1 mode iterator.
14855 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
14856 (<smaxmin:code><mode>3): Use VF mode iterator.
14857 (*<smaxmin:code><mode>3_finite): Merge with
14858 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
14859 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
14860 (<sse>_vm<smaxmin:code><mode>2): Merge with
14861 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
14862 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
14864 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
14866 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
14867 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
14868 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
14869 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
14870 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
14872 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
14873 Use VF_128 mode iterator.
14874 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
14876 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
14877 VF_128 mode iterator.
14878 (vcond<mode>): Use VF mode iterator.
14879 * config/i386/predicates.md (sse_comparison_operator): Merge with
14880 avx_comparison_float_operator. Do not declare as special_predicate.
14881 * config/i386/i386.c (struct builtin_description): Update for renamed
14883 (ix86_expand_args_builtin): Ditto.
14884 (ix86_expand_sse_compare_mask): Ditto.
14886 2011-04-06 Richard Guenther <rguenther@suse.de>
14888 * tree-inline.c (estimate_num_insns): For calls simply account
14889 for all passed arguments and a used return value.
14891 2011-04-06 Richard Guenther <rguenther@suse.de>
14893 PR tree-optimization/47663
14894 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
14895 call_stmt_time fields.
14896 (cgraph_edge_inlinable_p): Declare.
14897 (cgraph_edge_recursive_p): New inline function.
14898 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
14899 (cgraph_clone_edge): Copy it.
14900 * ipa-inline.c (cgraph_estimate_edge_time): New function.
14901 Account for call stmt time.
14902 (cgraph_estimate_time_after_inlining): Take edge argument.
14903 (cgraph_estimate_edge_growth): Account call stmt size.
14904 (cgraph_estimate_size_after_inlining): Take edge argument.
14905 (cgraph_mark_inline_edge): Adjust.
14906 (cgraph_check_inline_limits): Likewise.
14907 (cgraph_recursive_inlining_p): Remove.
14908 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
14909 (cgraph_decide_recursive_inlining): Take edge argument and
14911 (cgraph_decide_inlining_of_small_functions): Do not avoid
14912 diags for recursive inlining here.
14913 (cgraph_flatten): Adjust.
14914 (cgraph_decide_inlining_incrementally): Likewise.
14915 (estimate_function_body_sizes): Remove call cost handling.
14916 (compute_inline_parameters): Initialize caller edge call costs.
14917 (cgraph_estimate_edge_growth): New function.
14918 (cgraph_estimate_growth): Use it.
14919 (cgraph_edge_badness): Likewise.
14920 (cgraph_check_inline_limits): Take an edge argument.
14921 (cgraph_decide_inlining_of_small_functions): Adjust.
14922 (cgraph_decide_inlining): Likewise.
14923 * tree-inline.c (estimate_num_insns): Only account for call
14924 return value if it is used.
14925 (expand_call_inline): Avoid diagnostics on recursive inline
14927 * lto-cgraph.c (lto_output_edge): Output edge call costs.
14928 (input_edge): Input edge call costs.
14930 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14932 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
14934 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
14936 * doc/invoke.texi (Spec Files): Fix typo.
14938 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
14940 * profile.c (branch_prob): Move declaration of local variable. Remove
14941 obsolete ??? comment. Expand the location explicitly instead of using
14942 the LOCATION_FILE and LOCATION_LINE macros.
14944 2011-04-06 Wei Guozhi <carrot@google.com>
14947 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
14948 (arm_cond_branch): Likewise.
14949 (arm_cond_branch_reversed): Likewise.
14950 (arm_jump): Likewise.
14951 (push_multi): Likewise.
14952 * config/arm/constraints.md (Py): New constraint.
14954 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14957 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
14959 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
14960 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
14961 #ifdef DBX_DEBUGGING_INFO.
14963 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
14966 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
14967 if old and new states differ.
14969 2011-04-05 Joseph Myers <joseph@codesourcery.com>
14971 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
14972 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
14973 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
14974 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
14975 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
14976 mcfv4e): Use Alias.
14977 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
14978 ColdFire options to -mcpu= options.
14980 2011-04-05 Jeff Law <law@redhat.com>
14982 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
14983 check if BB is a successor of LOOP->header and return
14984 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
14986 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
14988 * cprop.c (struct reg_use): Remove.
14989 (reg_use_table): Make an array of RTX.
14990 (find_used_regs, constprop_register, local_cprop_pass,
14991 bypass_block): Simplify users of reg_use_table.
14992 (cprop_insn): Likewise. Iterate if copy propagation succeeded
14993 on one of the uses found by find_used_regs.
14995 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14998 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
15001 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15003 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
15005 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
15007 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
15009 PR middle-end/48441
15010 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
15012 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15014 * combine.c: Include obstack.h.
15015 (struct insn_link): Define.
15016 (uid_log_links): Adjust type.
15017 (FOR_EACH_LOG_LINK): New macro.
15018 (insn_link_obstack): Declare.
15019 (alloc_insn_link): Define.
15020 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
15021 type of link variables.
15022 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
15023 (try_combine, record_promoted_values, distribute_notes): Likewise.
15024 (distribute_links): Likewise. Tweak prototype.
15025 (clear_log_links): Delete.
15026 (adjust_for_new_dest): Call alloc_insn_link.
15027 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
15029 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15031 * gcse.c (modify_mem_list): Convert to an array of VECs.
15032 (canon_modify_mem_list, compute_transp): Tweak formatting.
15033 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
15034 (load_killed_in_block_p): Likewise.
15035 (record_last_mem_set_info): Likewise.
15036 (clear_modify_mem_tables): Likewise.
15038 2011-04-05 Tom de Vries <tom@codesourcery.com>
15040 PR middle-end/48461
15041 * function.c (emit_use_return_register_into_block): Only define if
15044 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
15046 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
15048 2011-04-05 Joseph Myers <joseph@codesourcery.com>
15050 * config/rx/rx-opts.h: New.
15051 * config/rx/rx.c (rx_cpu_type): Remove.
15052 (rx_handle_option): Don't assert that global structures are in
15053 use. Access variables via opts pointer. Defer most handling of
15054 OPT_mint_register_. Use error_at.
15055 (rx_option_override): Handle deferred OPT_mint_register_ here.
15056 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
15057 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
15058 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
15059 (rx_cpu_types): New Enum and EnumValue entries.
15060 (mint-register=): Use Defer and use Var accordingly.
15062 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15064 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
15065 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
15066 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
15068 (debug_free_queue, debug_nesting, symbol_queue_index):
15070 * dbxout.c: ...to here. Make static.
15072 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
15074 * gcse.c (modify_pair): Define. Define a VEC of it.
15075 (canon_modify_mem_list): Convert to an array of VECs.
15076 (free_insn_expr_list_list): Delete.
15077 (clear_modify_mem_tables): Call VEC_free instead.
15078 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
15079 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
15080 (canon_list_insert, compute_transp): Likewise.
15082 2011-04-05 Tom de Vries <tom@codesourcery.com>
15085 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
15088 2011-04-05 Tom de Vries <tom@codesourcery.com>
15091 * function.c (emit_use_return_register_into_block): New function.
15092 (thread_prologue_and_epilogue_insns): Use
15093 emit_use_return_register_into_block.
15095 2011-04-05 Tom de Vries <tom@codesourcery.com>
15098 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
15101 2011-04-05 Tom de Vries <tom@codesourcery.com>
15103 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
15105 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
15107 * config/arm/arm.md (define_constants for unspec): Replace with
15109 (define_constants for unspecv): Replace with define_c_enum.
15110 * config/arm/neon.md (define_constants for unspec): Replace with
15113 2011-04-04 Richard Henderson <rth@redhat.com>
15116 * dwarf2out.c (output_line_info): Always emit line info from
15117 at least one section.
15118 (dwarf2out_init): Create text_section_line_info here ...
15119 (set_cur_line_info_table): ... not here.
15121 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
15124 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
15127 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
15129 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
15131 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
15132 (expr_equiv_p): Remove.
15133 (insert_set_in_table): Look at <dest, src> pair instead of expr.
15134 (hash_scan_set): Update call to insert_set_in_table.
15135 (dump_hash_table): Dump <dest, src> pair.
15136 (lookup_set): Simplify. Lookup <dest, src> pair.
15137 (compute_transp): Remove, fold heavily simplified code into...
15138 (compute_local_properties): ...here. Expect COMP and TRANSP
15140 (find_avail_set): Take set directly from struct expr.
15141 (find_bypass-set): Likewise.
15142 (bypass_block): Likewise.
15143 (cprop_insn): Likewise. Remove redundant INSN_P test.
15145 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
15146 checks on form of COND from find_implicit_sets to here.
15147 (find_implicit_sets): Cleanup control flow. Split critical edges
15148 if it exposes implicit sets. Allocate/resize implicit_sets as
15150 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
15151 changed something. Run df_analyze after find_implicit_sets if any
15152 edges were split. Do not allocate implicit_sets here.
15154 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
15155 (gcse_obstack): Renamed to cprop_obstack.
15156 (GNEW, GNEWVEC, GNEWVAR): Remove.
15158 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
15159 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
15160 (gcse_alloc): Likewise, and rename to cprop_alloc.
15161 (alloc_gcse_men, free_gcse_mem): Remove.
15162 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
15163 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
15164 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
15166 * cprop.c (oprs_not_set_p): Remove.
15167 (mark_set, mark_clobber): Remove.
15168 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
15169 (reg_not_set_p): New function.
15170 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
15171 (cprop_insn): Likewise.
15172 (cprop_jump): Use FOR_EACH_EDGE.
15174 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
15177 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
15178 (rank_for_schedule): Use scheduled_insns vector instead of
15179 last_scheduled_insn.
15180 (ok_for_early_queue_removal): Likewise.
15181 (queue_to_ready): Search forward in nonscheduled_insns_begin if
15183 (choose_ready): Likewise.
15184 (commit_schedule): Use VEC_iterate.
15185 (schedule_block): Initialize nonscheduled_insns_begin. If we have
15186 a dbg_cnt, use it and ensure the first insn is in the ready list.
15187 (haifa_sched_init): Allocate scheduled_insns.
15188 (sched_extend_ready_list): Don't allocate it; reserve space.
15189 (haifa_sched_finish): Free it.
15191 2011-04-04 Joseph Myers <joseph@codesourcery.com>
15193 * optc-gen.awk: Always remove type from Variable entry before
15194 recording in var_seen.
15196 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
15198 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
15199 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
15200 call to tidy_fallthru_edges.
15202 2011-04-04 Joseph Myers <joseph@codesourcery.com>
15204 * doc/options.texi (ToLower): Document.
15205 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
15206 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
15207 * opts.h (cl_option): Add cl_tolower field.
15208 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
15209 arguments with lowercase strings.
15210 * config/rx/rx.opt (mcpu=): Add ToLower.
15211 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
15214 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
15216 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
15218 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
15220 * config/vax/vax.c: Include reload.h.
15222 2011-04-04 Anatoly Sokolov <aesok@post.ru>
15224 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
15225 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15226 (sparc_preferred_reload_class): New function.
15228 2011-04-04 Jakub Jelinek <jakub@redhat.com>
15231 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15232 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
15234 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
15236 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
15237 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
15239 2011-04-03 Anatoly Sokolov <aesok@post.ru>
15241 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
15242 (ASM_OUTPUT_ALIGNED_BSS): Define.
15244 2011-04-03 Michael Matz <matz@suse.de>
15246 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
15247 and next_slot members.
15248 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
15249 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
15250 (lto_streamer_cache_append): Declare.
15251 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
15252 unsigned index, remove offset parameter, ensure that we append
15253 or update existing entries.
15254 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
15255 parameter, update next_slot for append.
15256 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
15258 (lto_streamer_cache_insert_at): Likewise.
15259 (lto_streamer_cache_append): New function.
15260 (lto_streamer_cache_lookup): Use unsigned index.
15261 (lto_streamer_cache_get): Likewise.
15262 (lto_record_common_node): Don't test tree_node_can_be_shared.
15263 (preload_common_node): Adjust call to lto_streamer_cache_insert.
15264 (lto_streamer_cache_delete): Don't free offsets member.
15265 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
15266 (lto_output_string_with_length): Use lto_output_data_stream.
15267 (lto_output_tree_header): Remove ix parameter, don't write it.
15268 (lto_output_builtin_tree): Likewise.
15269 (lto_write_tree): Adjust callers to above, don't track and write
15270 offset, write unsigned index.
15271 (output_unreferenced_globals): Don't emit all global vars.
15272 (write_global_references): Use unsigned indices.
15273 (lto_output_decl_state_refs): Likewise.
15274 (write_symbol): Likewise.
15275 * lto-streamer-in.c (lto_input_chain): Move earlier.
15276 (input_function): Use unsigned index.
15277 (input_alias_pairs): Don't read and then ignore all global vars.
15278 (lto_materialize_tree): Remove ix_p parameter, don't read index,
15279 don't pass it back, use lto_streamer_cache_append.
15280 (lto_register_var_decl_in_symtab): Use unsigned index.
15281 (lto_register_function_decl_in_symtab): Likewise.
15282 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
15284 (lto_get_builtin_tree): Don't read index, use
15285 lto_streamer_cache_append.
15286 (lto_read_tree): Adjust call to lto_materialize_tree.
15288 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
15289 don't use function calls in arguments to MIN.
15291 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
15294 * gimple.c (gimple_type_leader_entry): Mark deletable.
15296 2011-04-03 Alan Modra <amodra@gmail.com>
15298 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
15300 2011-04-03 Michael Matz <matz@suse.de>
15302 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
15304 * tree.h (tree_decl_non_common.vindex): Adjust comment.
15306 2011-04-03 Michael Matz <matz@suse.de>
15308 * cgraphbuild.c (record_reference): Canonicalize constructor values.
15309 * gimple-fold.c (canonicalize_constructor_val): Accept being called
15310 without function context.
15311 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
15312 current_function_decl and cfun.
15314 2011-04-03 Michael Matz <matz@suse.de>
15316 * tree.c (decl_init_priority_insert): Don't create entry for
15318 (decl_fini_priority_insert): Ditto.
15319 (fields_compatible_p, find_compatible_field): Remove.
15320 * tree.h (fields_compatible_p, find_compatible_field): Remove.
15321 * gimple.c (gimple_compare_field_offset): Adjust block comment.
15323 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
15325 * combine.c (try_combine): Remove useless local variable.
15327 2011-04-03 Richard Guenther <rguenther@suse.de>
15328 Ira Rosen <ira.rosen@linaro.org>
15330 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
15331 non-variable offsets and compare the remaining bases of the two
15332 accesses instead of looking for exact same data-ref.
15334 2011-04-02 Kai Tietz <ktietz@redhat.com>
15337 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
15339 * i386.c (ix86_is_msabi_thiscall): New helper function.
15340 (ix86_is_type_thiscall): New helper function.
15341 (ix86_comp_type_attributes): Handle thiscall for method-functions
15343 (init_cumulative_args): Likewise.
15344 (find_drap_reg): Likewise.
15345 (ix86_static_chain): Likewise.
15346 (x86_this_parameter): Likewise.
15347 (x86_output_mi_thunk): Likewise.
15349 2011-04-01 Olivier Hainque <hainque@adacore.com>
15350 Nicolas Setton <setton@adacore.com>
15351 Eric Botcazou <ebotcazou@adacore.com>
15353 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
15354 (add_gnat_descriptive_type_attribute): New function.
15355 (gen_array_type_die): Call it.
15356 (gen_enumeration_type_die): Likewise.
15357 (gen_struct_or_union_type_die): Likewise.
15358 (modified_type_die): Likewise.
15359 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
15360 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
15361 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
15363 2011-04-01 Jakub Jelinek <jakub@redhat.com>
15366 * dwarf2out.c (resolve_addr): Don't call force_decl_die
15367 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
15370 2011-03-17 Richard Guenther <rguenther@suse.de>
15373 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15374 origin for decls in other ltrans units.
15375 (input_varpool_node): Likewise.
15377 2011-04-01 Jakub Jelinek <jakub@redhat.com>
15379 PR middle-end/48335
15380 * expr.c (expand_assignment): Handle all possibilities
15381 if TO_RTX is CONCAT.
15382 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
15383 (store_split_bit_field): If SUBREG_REG (op0) or
15384 op0 itself has smaller mode than word, return it
15385 for offset 0 and const0_rtx for out-of-bounds stores.
15386 If word is const0_rtx, skip it.
15388 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
15390 * config/h8300/h8300.c (print_operand_address): Rename to...
15391 (h8300_print_operand_address): ...this. Make static. Adjust comments.
15392 Call h8300_print_operand and h8300_print_operand_address instead of
15393 print_operand and print_operand_address. Declare.
15394 (print_operand): Renake to...
15395 (h8300_print_operand): ...this. Make static. Adjust comments.
15396 Call h8300_print_operand instead of print_operand. Declare.
15397 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
15398 (h8300_register_move_cost): Likewise.
15399 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
15400 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
15401 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
15402 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
15403 * config/h8300/h8300-protos.h (print_operand): Delete.
15404 (print_operand_address): Delete.
15406 2011-04-01 Richard Henderson <rth@redhat.com>
15409 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
15410 in strict mode before dwarf4. Re-order tests to early out
15411 before switching sections.
15413 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
15415 * config/h8300/constraints.md: New file.
15416 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
15417 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
15418 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
15419 * config/h8300/predicates.md (bit_operand): Likewise.
15420 (incdec_operand): Use satisfies_constraint_M and
15421 satisfies_constraint_O. Don't use C code block.
15422 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
15423 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
15424 (compute_mov_length): Use satisfies_constraint_G.
15425 (fix_bit_operand): Use satisfies_constraint_U.
15426 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
15427 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
15428 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
15429 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
15430 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
15431 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
15432 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
15433 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
15434 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
15435 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
15436 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
15437 (EXTRA_MEMORY_CONSTRAINT): Delete.
15439 2011-04-01 Andrew Pinski <pinskia@gmail.com>
15440 Michael Meissner <meissner@linux.vnet.ibm.com>
15443 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
15444 operands, as per the specifications.
15446 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
15447 (vec_extract_evenv4sf): Ditto.
15448 (vec_extract_evenv8hi): Ditto.
15449 (vec_extract_evenv16qi): Ditto.
15450 (vec_extract_oddv4si): Ditto.
15452 2011-03-31 Mark Wielaard <mjw@redhat.com>
15454 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
15455 high_pc attribute if the CU has no associated code. Only output
15456 DW_AT_entry_pc for CU if not generating strict dwarf and
15459 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
15461 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
15462 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
15464 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
15465 * final.c (final_start_function): Call the new function rather
15466 than using a NULL argument for dwarf2out_frame_debug.
15468 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
15469 that contains the prologue.
15471 * haifa-sched.c (queue_insn): New arg REASON. All callers
15472 changed. Print it in debugging output.
15474 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
15476 * sched-ebb.c (begin_schedule_ready): Remove second argument.
15477 Split most of the code into...
15478 (begin_move_insn): ... here. New function.
15479 (ebb_sched_info): Add a pointer to it.
15480 * haifa-sched.c (scheduled_insns): New static variable.
15481 (sched_extend_ready_list): Allocate it.
15482 (schedule_block): Use it to record the order of scheduled insns.
15483 Perform RTL changes to move insns only after all scheduling
15484 decisions have been made.
15485 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
15486 begin_move_insn field.
15487 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
15488 * sched-int.h (struct haifa_sched_info): Remove second argument
15489 from begin_schedule_ready hook. Add new member begin_move_insn.
15490 * sched-rgn.c (begin_schedule_ready): Remove second argument.
15491 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
15493 * haifa-sched.c (prune_ready_list): New function, broken out of
15495 (schedule_block): Use it.
15497 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15499 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
15501 2011-04-01 Kai Tietz <ktietz@redhat.com>
15503 * config.gcc (*-*-mingw*): Allow as option the
15504 posix threading model.
15505 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
15506 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
15508 (CPP_SPEC): Add pthread/no-pthread handling.
15509 (LIB_SPEC): Likewise.
15510 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
15511 (LIB_SPEC): Likewise.
15512 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
15513 flag to pass -pthread option for shared libgcc build.
15514 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
15515 for shared libgcc build.
15516 * config/i386/t-mingw-pthread: New file.
15517 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
15518 New define to enable use of library pthread by default.
15519 * config/i386/mingw.opt (pthread): New driver option.
15520 (no-pthread): New driver option.
15521 * config/i386/cygming.opt: Make sure trailing empty line is retained.
15522 * config/i386/mingw-w64.opt: Likewise.
15524 2011-04-01 Gary Funck <gary@intrepid.com>
15526 * c-decl.c (grokdeclarator): Fix formatting.
15528 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
15530 * expr.c (emit_block_move_via_movmem): Use n_generator_args
15531 instead of n_operands.
15532 (set_storage_via_setmem): Likewise.
15533 * optabs.c (maybe_gen_insn): Likewise.
15534 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
15535 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
15536 (mips_expand_builtin_direct): Likewise.
15537 * config/spu/spu.c (expand_builtin_args): Likewise.
15539 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
15541 * recog.h (insn_data_d): Add n_generator_args.
15542 * genoutput.c (data): Likewise.
15543 (output_insn_data): Print it.
15544 (max_opno, num_dups): Delete.
15545 (scan_operands): Just fill in "d->operand[...]".
15546 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
15548 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
15550 * gensupport.h (pattern_stats): New structure.
15551 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
15552 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
15553 (max_operand_1, max_operand_vec): Delete.
15554 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
15556 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
15558 * emit-rtl.c (emit_pattern_after_setloc): New function.
15559 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
15560 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
15561 (emit_pattern_after): New function.
15562 (emit_insn_after, emit_jump_insn_after): Call it.
15563 (emit_call_insn_after, emit_debug_insn_after): Likewise.
15564 (emit_pattern_before_setloc): New function.
15565 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
15566 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
15568 (emit_pattern_before): New function.
15569 (emit_insn_before, emit_jump_insn_before): Call it.
15570 (emit_call_insn_before, emit_debug_insn_before): Likewise.
15572 2011-03-31 Richard Henderson <rth@redhat.com>
15574 * dwarf2out.c (dw_separate_line_info_ref): Remove.
15575 (dw_separate_line_info_entry): Remove.
15576 (enum dw_line_info_opcode): New.
15577 (dw_line_info_entry): Use it.
15578 (dw_line_info_table, dw_line_info_table_p): New.
15579 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
15580 (line_info_table, line_info_label_num): Remove.
15581 (line_info_table_in_use): Remove.
15582 (separate_line_info_table): Remove.
15583 (separate_line_info_table_allocated): Remove.
15584 (separate_line_info_table_in_use): Remove.
15585 (LINE_INFO_TABLE_INCREMENT): Remove.
15586 (line_info_label_num): New.
15587 (cur_line_info_table): New.
15588 (text_section_line_info, cold_text_section_line_info): New.
15589 (separate_line_info): New.
15590 (SEPARATE_LINE_CODE_LABEL): Remove.
15591 (print_dwarf_line_table): Remove.
15592 (debug_dwarf): Don't dump it.
15593 (output_one_line_info_table): New.
15594 (output_line_info): Use it.
15595 (new_line_info_table): New.
15596 (set_cur_line_info_table): New.
15597 (dwarf2out_switch_text_section): Use it.
15598 (dwarf2out_begin_function): Likewise.
15599 (push_dw_line_info_entry): New.
15600 (dwarf2out_source_line): Rewrite for new line info tables.
15601 (dwarf2out_init): Remove dead initailizations.
15603 2011-03-31 Joseph Myers <joseph@codesourcery.com>
15605 * opts.h (cl_option): Add comments to fields. Add bit-fields for
15607 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
15608 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
15609 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
15610 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
15611 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
15612 * opt-functions.awk (flag_init, switch_bit_fields): New.
15613 (switch_flags): Don't handle flags moved to bit-fields. Don't
15614 generate CL_MISSING_OK or CL_SAVE.
15615 * optc-gen.awk: Update to generate bit-field output as well as
15617 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
15618 bit-field instead of CL_REJECT_DRIVER flag.
15619 * opts-common.c (generate_canonical_option,
15620 decode_cmdline_option): Use bit-fields instead of CL_* flags.
15621 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
15622 instead of CL_REJECT_NEGATIVE flag.
15623 * toplev.c (print_switch_values): Use cl_report bit-field instead
15626 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
15628 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
15629 a zero minimum index only if it is redundant.
15631 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
15633 PR rtl-optimization/48381
15634 * ira-color.c (assign_hard_reg): Use hard reg set intersection
15635 instead of ira_class_hard_reg_index for calculating conflicting
15638 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
15640 * cprop.c: Clean up hash table building.
15641 (reg_avail_info): Remove.
15642 (oprs_available_p): Remove.
15643 (record_last_reg_set_info): Remove.
15644 (record_last_set_info): Remove.
15645 (reg_available_p): New function.
15646 (gcse_constant_p): Do not treat unfolded conditions as constants.
15647 (make_set_regs_unavailable): New function.
15648 (hash_scan_set): Simplify with new reg_available_p.
15649 (compute_hash_table_work): Traverse insns stream only once.
15650 Do not compute reg_avail_info. Traverse insns in reverse order.
15651 Record implicit sets after recording explicit sets from the block.
15653 2011-03-31 Michael Matz <matz@suse.de>
15655 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
15657 2011-03-31 Anatoly Sokolov <aesok@post.ru>
15659 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
15660 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
15661 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15662 (h8300_mode_dependent_address_p): New function.
15663 (h8300_get_index): Make static.
15665 2011-03-31 Jeff Law <law@redhat.com>
15667 * reload1.c (elimination_effects): Fix typo in recent change.
15669 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
15670 typo potentially leading to null pointer dereference.
15672 * caller-save.c (new_saved_hard_reg): Eliminate return value.
15673 (setup_save_areas): Corresponding changes to avoid useless
15676 * jump.c (reversed_comparison_code_parts): Avoid successive return
15677 statements when REVERSE_CONDITION is defined.
15679 * expr.c (expand_assignment): Avoid useless assignments.
15680 (expand_expr_real_1): Likewise.
15681 (expand_expr_real_2): Avoid useless statements.
15683 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
15685 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
15687 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
15690 * stmt.c (expand_expr_stmt): Avoid useless assignment.
15692 2011-03-31 Joseph Myers <joseph@codesourcery.com>
15695 * doc/tm.texi.in (TARGET_VERSION): Remove.
15696 * doc/tm.texi: Regenerate.
15697 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
15698 * collect2.c (main): Don't use TARGET_VERSION.
15699 * mips-tdump.c (main): Don't use TARGET_VERSION.
15700 * mips-tfile.c (main): Don't use TARGET_VERSION.
15701 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
15702 * config/rs6000/vxworksae.h: Remove.
15703 * config/alpha/alpha.h (TARGET_VERSION): Remove.
15704 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
15705 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
15706 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
15707 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15708 * config/arm/arm.h (TARGET_VERSION): Remove.
15709 * config/arm/coff.h (TARGET_VERSION): Remove.
15710 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
15711 * config/arm/elf.h (TARGET_VERSION): Remove.
15712 * config/arm/freebsd.h (TARGET_VERSION): Remove.
15713 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
15714 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
15715 * config/arm/pe.h (TARGET_VERSION): Remove.
15716 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
15717 * config/arm/semi.h (TARGET_VERSION): Remove.
15718 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
15719 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
15720 * config/arm/vxworks.h (TARGET_VERSION): Remove.
15721 * config/avr/avr.h (TARGET_VERSION): Remove.
15722 * config/bfin/bfin.h (TARGET_VERSION): Remove.
15723 * config/fr30/fr30.h (TARGET_VERSION): Remove.
15724 * config/frv/frv.h (TARGET_VERSION): Remove.
15725 * config/h8300/h8300.h (TARGET_VERSION): Remove.
15726 * config/i386/cygwin.h (TARGET_VERSION): Remove.
15727 * config/i386/darwin.h (TARGET_VERSION): Remove.
15728 * config/i386/darwin64.h (TARGET_VERSION): Remove.
15729 * config/i386/djgpp.h (TARGET_VERSION): Remove.
15730 * config/i386/freebsd.h (TARGET_VERSION): Remove.
15731 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
15732 * config/i386/gnu.h (TARGET_VERSION): Remove.
15733 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
15734 * config/i386/i386elf.h (TARGET_VERSION): Remove.
15735 * config/i386/linux.h (TARGET_VERSION): Remove.
15736 * config/i386/linux64.h (TARGET_VERSION): Remove.
15737 * config/i386/lynx.h (TARGET_VERSION): Remove.
15738 * config/i386/mingw32.h (TARGET_VERSION): Remove.
15739 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
15740 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
15741 * config/i386/netware.h (TARGET_VERSION): Remove.
15742 * config/i386/nto.h (TARGET_VERSION): Remove.
15743 * config/i386/openbsd.h (TARGET_VERSION): Remove.
15744 * config/i386/vxworks.h (TARGET_VERSION): Remove.
15745 * config/ia64/elf.h (TARGET_VERSION): Remove.
15746 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
15747 * config/ia64/hpux.h (TARGET_VERSION): Remove.
15748 * config/ia64/linux.h (TARGET_VERSION): Remove.
15749 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
15750 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
15751 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15752 * config/lm32/lm32.h (TARGET_VERSION): Remove.
15753 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
15754 * config/m32c/m32c.h (TARGET_VERSION): Remove.
15755 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
15756 * config/m32r/m32r.h (TARGET_VERSION): Remove.
15757 * config/m68k/linux.h (TARGET_VERSION): Remove.
15758 * config/m68k/m68k.h (TARGET_VERSION): Remove.
15759 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
15760 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
15761 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
15762 * config/mep/mep.h (TARGET_VERSION): Remove.
15763 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
15764 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
15765 * config/mips/iris6.h (MACHINE_TYPE): Remove.
15766 * config/mips/linux.h (TARGET_VERSION): Remove.
15767 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
15768 * config/mips/vxworks.h (TARGET_VERSION): Remove.
15769 * config/mmix/mmix.h (TARGET_VERSION): Remove.
15770 * config/mn10300/linux.h (TARGET_VERSION): Remove.
15771 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
15772 * config/pa/pa.h (TARGET_VERSION): Remove.
15773 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
15774 * config/picochip/picochip.h (TARGET_VERSION): Remove.
15775 * config/rs6000/aix.h (TARGET_VERSION): Remove.
15776 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
15777 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
15778 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
15779 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
15780 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
15781 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
15782 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
15783 * config/rs6000/linux.h (TARGET_VERSION): Remove.
15784 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
15785 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
15786 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
15787 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
15788 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
15789 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
15790 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
15791 * config/s390/linux.h (TARGET_VERSION): Remove.
15792 * config/s390/s390.h (TARGET_VERSION): Remove.
15793 * config/s390/tpf.h (TARGET_VERSION): Remove.
15794 * config/score/score.h (TARGET_VERSION): Remove.
15795 * config/sh/linux.h (TARGET_VERSION): Remove.
15796 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
15797 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
15798 * config/sh/sh.h (TARGET_VERSION): Remove.
15799 * config/sh/sh64.h (TARGET_VERSION): Remove.
15800 * config/sh/superh.h (TARGET_VERSION): Remove.
15801 * config/sh/vxworks.h (TARGET_VERSION): Remove.
15802 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
15803 * config/sparc/linux.h (TARGET_VERSION): Remove.
15804 * config/sparc/linux64.h (TARGET_VERSION): Remove.
15805 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
15806 TARGET_NAME32, TARGET_NAME): Remove.
15807 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
15808 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
15809 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
15810 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
15811 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
15812 * config/spu/spu.h (TARGET_VERSION): Remove.
15813 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
15814 * config/v850/v850.h (TARGET_VERSION): Remove.
15815 * config/vax/linux.h (TARGET_VERSION): Remove.
15816 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
15817 * config/xtensa/elf.h (TARGET_VERSION): Remove.
15818 * config/xtensa/linux.h (TARGET_VERSION): Remove.
15820 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
15823 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
15824 frame-related from frame-unrelated adjustments to the stack pointer.
15826 2011-03-31 Jakub Jelinek <jakub@redhat.com>
15828 * common.opt (fdebug-types-section): Move earlier.
15829 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
15831 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
15833 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
15836 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
15838 * tree.h (CASE_CHAIN): Define.
15839 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
15840 (gimple_redirect_edge_and_branch): Likewise.
15842 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
15844 PR middle-end/48367
15845 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
15848 2011-03-30 Jeff Law <law@redhat.com>
15850 * PR bootstrap/48371
15851 * reload1.c (reload): Fix botch in last change.
15853 * reload.h (struct reload): Fix typo introduced in last change.
15855 2011-03-30 Joseph Myers <joseph@codesourcery.com>
15857 * config/arm/arm.opt (mhard-float, msoft-float): Mark
15858 Undocumented. Remove help text.
15859 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
15862 2011-03-30 Joseph Myers <joseph@codesourcery.com>
15864 * doc/options.texi (NegativeAlias): Document.
15865 (Alias): Mention NegativeAlias.
15866 * opt-functions.awk: Handle NegativeAlias.
15867 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
15868 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
15869 * opts.h (CL_NEGATIVE_ALIAS): Define.
15870 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
15871 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
15873 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
15875 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15876 mno-spe and mno-isel instead of mspe=no and -misel=no.
15878 2011-03-29 Mark Wielaard <mjw@redhat.com>
15880 * common.opt (fdebug-types-section): New flag.
15881 * doc/invoke.texi: Document new -fno-debug-types-section flag.
15882 * dwarf2out.c (use_debug_types): New define.
15883 (struct die_struct): Mark die_id with GTY desc use_debug_types.
15884 (print_die): Guard output of type unit signatures using
15886 (build_abbrev_table): Replace assert of dwarf_version >= 4
15887 with assert on use_debug_types.
15888 (size_of_die): Likewise.
15889 (unmark_dies): Likewise.
15890 (value_format): Decide AT_ref_external form on use_debug_types.
15891 (output_die): Replace dwarf_version version check guard with
15892 use_debug_types where appropriate.
15893 (modified_type_die): Likewise.
15894 (gen_reference_type_die): Likewise.
15895 (dwarf2out_start_source_file): Likewise.
15896 (dwarf2out_end_source_file): Likewise.
15897 (prune_unused_types_walk_attribs): Likewise.
15898 (dwarf2out_finish): Likewise.
15900 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
15902 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
15904 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
15906 PR rtl-optimization/48332
15907 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
15908 mode of input operand N and modeN to its actual mode.
15910 2011-03-30 Jeff Law <law@redhat.com>
15912 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
15913 define accessor macro.
15914 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
15915 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
15916 (reg_equiv_init): Likewise.
15917 (reg_equivs_size): New variable.
15918 (reg_equiv_init_size): Remove.
15919 (allocate_initial_values): Move prototype to here from....
15920 * integrate.h (allocate_initial_values): Remove prototype.
15921 * integrate.c: Include reload.h.
15922 (allocate_initial_values): Corresponding changes.
15923 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
15924 (fix_reg_equiv_init, no_equiv): Corresponding changes.
15925 (update_equiv_regs): Corresponding changes.
15926 (ira): Corresponding changes.
15927 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
15928 (push_secondary_reload): Corresponding changes.
15929 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
15930 (make_memloc, find_reloads_address): Corresponding changes.
15931 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
15932 (find_reloads_address_1): Corresponding changes.
15933 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
15934 (refers_to_regno_for_reload_p): Corresponding changes.
15935 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
15936 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
15937 * reload1.c: Include ggc.h.
15938 (grow_reg_equivs): New function.
15939 (replace_pseudos_in, reload): Corresponding changes.
15940 (calculate_needs_all_insns, alter_regs): Corresponding changes.
15941 (eliminate_regs_1, elimination_effects): Corresponding changes.
15942 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
15943 (delete_output_reload): Likewise.
15944 * caller-save.c (mark_referenced_regs): Corresponding changes.
15945 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
15946 * frv/predicates.md (frv_load_operand): Corresponding changes.
15947 * microblaze/microblaze.c (double_memory_operand): Corresponding
15949 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
15950 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
15951 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
15952 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
15953 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
15955 * pa/pa.c (emit_move_sequence): Corresponding changes.
15956 * vax/vax.c (nonindexed_address_p): Corresponding changes.
15958 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
15961 * config/arm/arm.c (coproc_secondary_reload_class): Handle
15962 structure modes. Don't check neon_vector_mem_operand for
15963 vector or structure modes.
15965 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
15966 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15969 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
15970 operand 1 and reshuffle the operands to match.
15971 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
15973 2011-03-30 Christian Schüler <cschueler@gmx.de>
15976 * config/c.opt (F): Added 'Driver' to -F option.
15979 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
15981 * config/darwin.opt: Added '-arch' option.
15983 2011-03-30 Nick Clifton <nickc@redhat.com>
15985 * config/rx/rx.md: Add peepholes and patterns to combine
15986 extending loads and simple arithmetic instructions.
15987 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
15988 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
15989 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
15990 modes to use pre-decrement and post-increment addressing.
15991 (rx_is_restricted_memory_address): Add range checking of REG+INT
15993 (rx_print_operand): Add support for %Q. Fix handling of %Q.
15994 (rx_memory_move_cost): Adjust cost of stores.
15995 (rx_adjust_insn_length): New function.
15997 2011-03-30 Jakub Jelinek <jakub@redhat.com>
16000 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16001 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
16002 matching arg00/arg01 types.
16004 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
16006 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
16007 last_location to UNKNOWN_LOCATION.
16009 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
16012 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
16015 2011-03-30 Joseph Myers <joseph@codesourcery.com>
16016 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16019 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
16020 Init(PROCESSOR_V7).
16021 (sparc_cpu): Likewise.
16022 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
16025 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
16028 PR middle-end/48342
16029 PR rtl-optimization/48345
16030 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
16031 hard regs for given mode from profitable regs when doing secondary
16034 2011-03-29 Jeff Law <law@redhat.com>
16037 * tree-ssa-threadupdate.c (struct redirection_data): Remove
16038 do_not_duplicate field.
16039 (lookup_redirection_data): Corresponding changes.
16040 (create_duplicates): Always create a template block.
16041 (redirect_edges): Remove code which reused the original block
16042 when it was going to become unreachable code.
16043 (thread_block): Don't set do_not_duplicate field.
16045 2011-03-29 Joseph Myers <joseph@codesourcery.com>
16047 * lto-opts.c (register_user_option_p, lto_register_user_option):
16048 Make type argument unsigned.
16049 * lto-streamer.h (lto_register_user_option): Make type argument
16051 * opth-gen.awk: Make CL_* macros unsigned.
16052 * opts-common.c (find_opt): Make lang_mask argument unsigned.
16053 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
16054 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
16055 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
16056 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
16057 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
16058 (find_opt): Make lang_mask argument unsigned.
16060 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
16062 PR rtl-optimization/48331
16063 PR rtl-optimization/48334
16064 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
16065 for any used algorithm.
16067 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
16069 * ira-conflicts.c (build_object_conflicts): Add unused attribute
16072 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
16074 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
16075 (alpha_option_override): Don't set alpha_sr_alias_set.
16076 (emit_frame_store_1): Use gen_frame_mem rather than calling
16078 (alpha_expand_epilogue): Ditto.
16080 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
16082 PR tree-optimization/48290
16083 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
16084 vectorization, check that relevant phis in the basic block after
16085 the inner loop are really inner loop's exit phis.
16087 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
16090 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
16091 (cached_dw_loc_list_def): New structure.
16092 (cached_dw_loc_list): New typedef.
16093 (cached_dw_loc_list_table): New variable.
16094 (cached_dw_loc_list_table_hash): New function.
16095 (cached_dw_loc_list_table_eq): Likewise.
16096 (add_location_or_const_value_attribute): Take a bool cache_p.
16097 Cache the list when the parameter is true.
16098 (gen_formal_parameter_die): Update caller.
16099 (gen_variable_die): Likewise.
16100 (dwarf2out_finish): Likewise.
16101 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
16102 while generating debug info for the decl.
16103 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
16104 (dwarf2out_init): Initialize cached_dw_loc_list_table.
16105 (resolve_addr): Cache the result of resolving a chain of
16108 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
16110 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
16111 conflict object hard regset nodes have intersecting hard reg sets.
16113 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
16114 after regstat_init_n_sets_and_refs.
16116 * ira.c: Add more comments at the top.
16117 (setup_stack_reg_pressure_class, setup_pressure_classes):
16118 Add comments how we compute the register pressure classes.
16119 (setup_allocno_and_important_classes): Add more comments.
16120 (setup_class_translate_array, reorder_important_classes)
16121 (setup_reg_class_relations): Add comments.
16123 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
16126 * ira-color.c: Add 2011 to the Copyright line.
16127 (assign_hard_reg): Add more comments.
16128 (improve_allocation): Ditto.
16130 * ira-costs.c: Add 2011 to the Copyright line.
16131 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
16133 (setup_regno_cost_classes_by_mode): Ditto.
16135 Initial patches from ira-improv branch:
16137 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
16139 * ira-build.c (ira_create_object): Remove initialization of
16140 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
16141 (ira_create_allocno): Remove initialization of
16142 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
16143 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
16144 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16145 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
16146 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
16147 Initialize ALLOCNO_ADD_DATA.
16148 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
16149 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
16151 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
16152 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
16154 * ira.c (ira_reallocate): Remove.
16155 (setup_pressure_classes): Call
16156 ira_init_register_move_cost_if_necessary. Use
16157 ira_register_move_cost instead of ira_get_register_move_cost.
16158 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
16159 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
16161 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
16162 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
16163 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
16164 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
16165 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
16166 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
16168 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
16169 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16170 (struct allocno_color_data): New.
16171 (allocno_color_data_t): New typedef.
16172 (allocno_color_data): New definition.
16173 (ALLOCNO_COLOR_DATA): New macro.
16174 (struct object_color_data): New.
16175 (object_color_data_t): New typedef.
16176 (object_color_data): New definition.
16177 (OBJECT_COLOR_DATA): New macro.
16178 (update_copy_costs, calculate_allocno_spill_cost): Call
16179 ira_init_register_move_cost_if_necessary. Use
16180 ira_register_move_cost instead of ira_get_register_move_cost.
16181 (move_spill_restore, update_curr_costs): Ditto.
16182 (allocno_spill_priority): Make it inline.
16183 (color_pass): Allocate and free allocno_color_dat and object_color_data.
16184 (struct coalesce_data, coalesce_data_t): New.
16185 (allocno_coalesce_data): New definition.
16186 (ALLOCNO_COALESCE_DATA): New macro.
16187 (merge_allocnos, coalesced_allocno_conflict_p): Use
16188 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
16189 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
16190 (coalesce_allocnos): Ditto.
16191 (setup_coalesced_allocno_costs_and_nums): Ditto.
16192 (collect_spilled_coalesced_allocnos): Ditto.
16193 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
16194 (setup_slot_coalesced_allocno_live_ranges): Ditto.
16195 (coalesce_spill_slots): Ditto.
16196 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
16197 free allocno_coalesce_data.
16199 * ira-conflicts.c: Fix formatting.
16200 (process_regs_for_copy): Call
16201 ira_init_register_move_cost_if_necessary. Use
16202 ira_register_move_cost instead of ira_get_register_move_cost.
16203 (build_object_conflicts): Optimize.
16205 * ira-costs.c (record_reg_classes): Optimize. Call
16206 ira_init_register_move_cost_if_necessary. Use
16207 ira_register_move_cost, ira_may_move_in_cost, and
16208 ira_may_move_out_cost instead of ira_get_register_move_cost and
16209 ira_get_may_move_cost.
16210 (record_address_regs): Ditto.
16211 (scan_one_insn): Optimize.
16212 (find_costs_and_classes): Optimize.
16213 (process_bb_node_for_hard_reg_moves): Call
16214 ira_init_register_move_cost_if_necessary. Use
16215 ira_register_move_cost instead of ira_get_register_move_cost.
16217 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
16218 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
16219 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
16220 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
16222 (ira_initiate_emit_data, ira_finish_emit_data)
16223 (create_new_allocno): New functions.
16224 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
16225 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
16226 Use ira_register_move_cost instead of ira_get_register_move_cost.
16228 * ira-int.h: Fix some comments.
16229 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
16230 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
16231 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
16232 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
16234 (struct ira_allocno): Make mode and aclass a bitfield. Move other
16235 bitfield after mode. Make hard_regno a short int. Make
16236 hard_regno short. Remove first_coalesced_allocno and
16237 next_coalesced_allocno. Move mem_optimized_dest_p,
16238 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
16239 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
16240 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
16241 temp, colorable_p. Add new member add_data.
16242 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
16243 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
16244 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
16245 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
16246 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
16247 (ALLOCNO_ADD_DATA): New macro.
16248 (ira_emit_data_t): New typedef.
16249 (struct ira_emit_data): New. Move mem_optimized_dest_p,
16250 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
16251 from struct ira_allocno.
16252 (ALLOCNO_EMIT_DATA): New macro.
16253 (ira_allocno_emit_data, allocno_emit_reg): New.
16254 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
16255 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
16256 (OBJECT_ADD_DATA): New macro.
16257 (ira_reallocate): Remove.
16258 (ira_initiate_emit_data, ira_finish_emit_data): New.
16259 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
16260 (ira_init_register_move_cost_if_necessary): New.
16261 (ira_object_conflict_iter_next): Merge into
16262 ira_object_conflict_iter_cond.
16263 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
16265 * ira-live.c (process_single_reg_class_operands): Call
16266 ira_init_register_move_cost_if_necessary. Use
16267 ira_register_move_cost instead of ira_get_register_move_cost.
16269 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
16271 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
16273 * ira-costs.c: Fix formatting.
16274 (cost_classes, cost_classes_num): Remove.
16275 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
16276 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
16277 (cost_classes_del, cost_classes_htab): New.
16278 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
16279 (initiate_regno_cost_classes, setup_cost_classes): New.
16280 (setup_regno_cost_classes_by_aclass): New.
16281 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
16282 (record_reg_classes): Use regno_cost_classes instead of
16283 cost_classes. Move checking opposite operand up.
16284 (record_address_regs): Use regno_cost_classes
16285 instead of cost_classes.
16286 (scan_one_insn): Ditto. Use always general register.
16287 (print_allocno_costs): Use regno_cost_classes instead of
16289 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
16290 (find_costs_and_classes): Set up cost classes for each registers.
16291 Use also their mode for this. Use regno_cost_classes instead of
16293 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
16295 (free_ira_costs, ira_init_costs): Don't use cost_classes.
16296 (ira_costs, ira_set_pseudo_classes): Call
16297 initiate_regno_cost_classes and finish_regno_cost_classes.
16299 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
16301 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
16303 * target.def (ira_cover_classes): Remove.
16305 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
16307 * doc/tm.texi.in: Ditto.
16309 * ira-conflicts.c: Remove mentioning cover classes from the file.
16310 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
16311 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
16313 * targhooks.c (default_ira_cover_classes): Remove.
16315 * targhooks.h (default_ira_cover_classes): Ditto.
16317 * haifa-sched.c: Remove mentioning cover classes from the file.
16318 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
16319 ira_pressure_classes and ira_pressure_classes_num instead of
16320 ira_reg_class_cover_size and ira_reg_class_cover. Use
16321 sched_regno_pressure_class instead of sched_regno_cover_class.
16322 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
16323 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16325 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
16326 classes from the file.
16327 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
16328 (struct object_hard_regs, struct object_hard_regs_node): New.
16329 (struct ira_object): New members profitable_hard_regs,
16330 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
16331 (struct ira_allocno): Rename cover_class to aclass. Rename
16332 cover_class_cost and updated_cover_class_cost to class_cost and
16333 updated_class_cost. Remove splay_removed_p and
16334 left_conflict_size. Add new members colorable_p.
16335 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
16336 (ALLOCNO_COLORABLE_P): New macro.
16337 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
16338 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
16339 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
16340 (OBJECT_...): Rename parameter C to O.
16341 (OBJECT_PROFITABLE_HARD_REGS): New macro.
16342 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
16343 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
16344 (struct target_ira_int): New members x_ira_max_memory_move_cost,
16345 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
16346 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
16347 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
16348 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
16349 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
16350 x_ira_reg_class_subunion.
16351 (ira_max_memory_move_cost, ira_max_register_move_cost)
16352 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
16353 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
16354 (ira_important_class_nums, ira_reg_class_superunion): New macros.
16355 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
16356 (ira_reg_class_union): Rename to ira_reg_class_subunion.
16357 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
16358 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
16359 (ira_tune_allocno_costs_and_cover_classes): Rename to
16360 ira_tune_allocno_costs.
16361 (ira_debug_hard_regs_forest): New.
16362 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
16363 (ira_object_conflict_iter_next): Fix comments.
16364 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
16365 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
16366 cover_class to aclass.
16367 (ira_allocate_and_accumulate_costs): Ditto.
16368 (ira_allocate_and_set_or_copy_costs): Ditto.
16370 * opts.c (decode_options): Remove ira_cover_class check.
16372 * ira-color.c: Remove mentioning cover classes from the file. Use
16373 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
16374 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
16375 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
16376 (splay-tree.h): Remove include.
16377 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
16378 before copy_freq_compare_func.
16379 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
16380 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
16382 (hard_regs_roots, hard_regs_node_vec): Ditto.
16383 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
16384 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
16385 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
16386 (create_new_object_hard_regs_node): Ditto.
16387 (add_new_object_hard_regs_node_to_forest): Ditto.
16388 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
16389 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
16391 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
16392 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
16393 (remove_unused_object_hard_regs_nodes): Ditto.
16394 (enumerate_object_hard_regs_nodes): Ditto.
16395 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
16396 (object_hard_regs_subnode_t): Ditto.
16397 (struct object_hard_regs_subnode): Ditto.
16398 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
16399 (setup_object_hard_regs_subnode_index): Ditto.
16400 (get_object_hard_regs_subnodes_num): Ditto.
16401 (form_object_hard_regs_nodes_forest): Ditto.
16402 (finish_object_hard_regs_nodes_tree): Ditto.
16403 (finish_object_hard_regs_nodes_forest): Ditto.
16404 (allocnos_have_intersected_live_ranges_p): Rename to
16405 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
16406 (pseudos_have_intersected_live_ranges_p): Rename to
16407 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
16408 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
16409 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
16410 (update_copy_costs): Remove assert. Skip cost update if the hard
16411 reg does not belong the class.
16412 (assign_hard_reg): Process only profitable hard regs.
16413 (uncolorable_allocnos_num): Make it scalar.
16414 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
16415 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
16416 and ira_reg_class_max_nregs.
16417 (bucket_allocno_compare_func): Check frequency first.
16418 (sort_bucket): Add compare function as a parameter.
16419 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
16420 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
16421 (push_allocno_to_stack): Rewrite for checking new allocno
16423 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
16424 (push_only_colorable): Pass new parameter to sort_bucket.
16425 (push_allocno_to_spill): Remove.
16426 (allocno_spill_priority_compare): Make it inline and rewrite.
16427 (splay_tree_allocate, splay_tree_free): Remove.
16428 (allocno_spill_sort_compare): New function.
16429 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
16430 build and use splay tree. Choose first allocno in uncolorable
16431 allocno bucket to spill. Remove setting spill cost.
16432 (all_conflicting_hard_regs): Remove.
16433 (setup_allocno_available_regs_num): Check only profitable hard
16434 regs. Print info about hard regs nodes.
16435 (setup_allocno_left_conflicts_size): Remove.
16436 (put_allocno_into_bucket): Don't call
16437 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
16438 (improve_allocation): New.
16439 (color_allocnos): Call setup_profitable_hard_regs,
16440 form_object_hard_regs_nodes_forest, improve_allocation,
16441 finish_object_hard_regs_nodes_forest. Setup spill cost.
16442 (print_loop_title): Use pressure classes.
16443 (color_allocnso): Ditto.
16444 (do_coloring): Remove allocation and freeing splay_tree_node_pool
16445 and allocnos_for_spilling.
16446 (ira_sort_regnos_for_alter_reg): Don't setup members
16447 {first,next}_coalesced_allocno.
16448 (color): Remove allocating and freeing removed_splay_allocno_vec.
16449 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
16450 prohibited_class_mode_regs.
16452 * ira-lives.c: Remove mentioning cover classes from the file. Fix
16454 (update_allocno_pressure_excess_length): Use pressure classes.
16455 (inc_register_pressure, dec_register_pressure): Check for pressure
16457 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
16458 pressure class. Use ira_reg_class_nregs instead of
16459 ira_reg_class_max_nregs.
16460 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
16461 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
16462 (single_reg_class): Use ira_reg_class_nregs instead of
16463 ira_reg_class_max_nregs.
16464 (process_bb_node_lives): Use pressure classes.
16466 * ira-emit.c: Remove mentioning cover classes from the file. Use
16467 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
16468 (change_loop): Use pressure classes.
16469 (modify_move_list): Call ira_set_allocno_class instead of
16470 ira_set_allocno_cover_class.
16472 * ira-build.c: Remove mentioning cover classes from the file. Use
16473 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
16474 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
16475 ALLOCNO_UPDATED_CLASS_COST instead of
16476 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
16477 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
16478 (ira_create_allocno): Remove initialization of
16479 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
16480 ALLOCNO_COLORABLE_P.
16481 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
16482 Update conflict regs for the objects.
16483 (create_cap_allocno): Remove assert. Don't propagate
16484 ALLOCNO_AVAILABLE_REGS_NUM.
16485 (ira_free_allocno_costs): New function.
16486 (finish_allocno): Change a part of code into call of
16487 ira_free_allocno_costs.
16488 (low_pressure_loop_node_p): Use pressure classes.
16489 (object_range_compare_func): Don't compare classes.
16490 (setup_min_max_conflict_allocno_ids): Ditto.
16492 * loop-invariant.c: Remove mentioning cover classes from the file.
16493 Use ira_pressure_classes and ira_pressure_classes_num instead of
16494 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
16495 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
16496 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16497 Use reg_allocno_class instead of reg_cover_class.
16498 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
16499 STACK_REG_COVER_CLASS.
16500 (get_regno_cover_class): Rename to get_regno_pressure_class.
16501 (move_loop_invariants): Initialize and finalize regstat.
16503 * ira.c: Remove mentioning cover classes from the file. Add
16504 comments about coloring without cover classes. Use ALLOCNO_CLASS
16505 instead of ALLOCNO_COVER_CLASS. Fix formatting.
16506 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
16507 setup_class_subset_and_memory_move_costs.
16508 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
16509 (setup_cover_and_important_classes): Rename to
16510 setup_allocno_and_important_classes.
16511 (setup_class_translate_array): New.
16512 (setup_class_translate): Call it for allocno and pressure classes.
16513 (cover_class_order): Rename to allocno_class_order.
16514 (comp_reg_classes_func): Use ira_allocno_class_translate instead
16515 of ira_class_translate.
16516 (reorder_important_classes): Set up ira_important_class_nums.
16517 (setup_reg_class_relations): Set up ira_reg_class_superunion.
16518 (print_class_cover): Rename to print_classes. Add parameter.
16519 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
16520 Print pressure classes too.
16521 (find_reg_class_closure): Rename to find_reg_classes. Don't call
16522 setup_reg_subclasses.
16523 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
16524 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
16525 (setup_prohibited_class_mode_regs): Use
16526 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
16527 (clarify_prohibited_class_mode_regs): New function.
16528 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
16529 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
16530 (ira_init_once): Initialize them.
16531 (free_register_move_costs): Process them.
16532 (ira_init): Move calls of find_reg_classes and
16533 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
16534 Call clarify_prohibited_class_mode_regs.
16535 (ira_no_alloc_reg): Remove.
16536 (too_high_register_pressure_p): Use pressure classes.
16538 * sched-deps.c: Remove mentioning cover classes from the file.
16539 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
16540 ira_pressure_classes and ira_pressure_classes_num instead of
16541 ira_reg_class_cover_size and ira_reg_class_cover.
16542 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
16543 sched_regno_pressure_class instead of sched_regno_cover_class.
16544 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
16545 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
16547 * ira.h: Add 2010 to Copyright.
16548 (ira_no_alloc_reg): Remove external.
16549 (struct target_ira): Rename x_ira_hard_regno_cover_class,
16550 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
16551 x_ira_class_translate to x_ira_hard_regno_allocno_class,
16552 x_ira_allocno_classes_num, x_ira_allocno_classes, and
16553 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
16554 x_ira_pressure_classes, x_ira_pressure_class_translate, and
16555 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
16556 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
16557 x_ira_no_alloc_regs.
16558 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
16559 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
16560 ira_allocno_classes_num and ira_allocno_classes.
16561 (ira_class_translate): Rename to ira_allocno_class_translate.
16562 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
16563 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
16564 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
16565 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
16566 (ira_no_alloc_regs): New.
16568 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
16569 classes from the file. Use ALLOCNO_CLASS instead of
16570 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
16571 ALLOCNO_COVER_CLASS_COST.
16572 (regno_cover_class): Rename to regno_aclass.
16573 (record_reg_classes): Use ira_reg_class_subunion instead of
16574 ira_reg_class_union.
16575 (record_address_regs): Check overflow.
16576 (scan_one_insn): Ditto.
16577 (print_allocno_costs): Print total mem cost fore regional allocation.
16578 (print_pseudo_costs): Use REG_N_REFS.
16579 (find_costs_and_classes): Use classes intersected with them on the
16580 1st pass. Check overflow. Use ira_reg_class_subunion instead of
16581 ira_reg_class_union. Use ira_allocno_class_translate and
16582 regno_aclass instead of ira_class_translate and regno_cover_class.
16583 Modify code for finding regno_aclass. Setup preferred classes for
16585 (setup_allocno_cover_class_and_costs): Rename to
16586 setup_allocno_class_and_costs. Use regno_aclass instead of
16587 regno_cover_class. Use ira_set_allocno_class instead of
16588 ira_set_allocno_cover_class.
16589 (init_costs, finish_costs): Use regno_aclass instead of
16591 (ira_costs): Use setup_allocno_class_and_costs instead of
16592 setup_allocno_cover_class_and_costs.
16593 (ira_tune_allocno_costs_and_cover_classes): Rename to
16594 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
16595 by processing objects. Use ira_reg_class_max_nregs instead of
16596 ira_reg_class_nregs.
16598 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
16600 * sched-int.h: Remove mentioning cover classes from the file.
16601 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
16603 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
16604 classes from the file.
16605 (struct reg_pref): Rename coverclass into allocnoclass.
16606 (reg_cover_class): Rename to reg_allocno_class.
16608 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
16610 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
16612 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
16614 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
16616 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
16618 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
16620 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
16622 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
16624 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
16626 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
16628 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
16629 (i386_ira_cover_classes): Ditto.
16631 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
16633 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
16635 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
16637 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
16639 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
16641 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
16643 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
16644 (mips_ira_cover_classes): Ditto.
16646 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
16648 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
16650 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
16652 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
16654 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
16656 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
16657 (IRA_COVER_CLASSES_VSX): Ditto.
16659 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
16660 (rs6000_ira_cover_classes): Ditto.
16662 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
16664 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
16666 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
16668 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
16670 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
16672 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
16674 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
16676 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
16678 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
16680 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
16682 2011-03-29 Jakub Jelinek <jakub@redhat.com>
16685 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
16686 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
16687 dw_fde_unlikely_section_end_label, cold_in_std_section,
16688 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
16689 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
16691 (output_fde): Use dw_fde_second_{begin,end} if second is
16692 true, otherwise dw_fde_{begin,end}.
16693 (output_call_frame_info): Test dw_fde_second_begin != NULL
16694 instead of dw_fde_switched_sections.
16695 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
16696 fields, initialize new fields. Initialize in_std_section
16697 unconditionally from the first partition.
16698 (dwarf2out_end_epilogue): Don't override dw_fde_end when
16699 dw_fde_second_begin is non-NULL.
16700 (dwarf2out_switch_text_section): Stop initializing removed
16701 dw_fde_struct fields, initialize new fields, initialize
16702 also dw_fde_end here. Set dw_fde_switch_cfi even when
16703 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
16704 (struct var_loc_list_def): Add last_before_switch field.
16705 (arange_table, arange_table_allocated, arange_table_in_use,
16706 ARANGE_TABLE_INCREMENT, add_arange): Removed.
16707 (size_of_aranges): Count !in_std_section and !second_in_std_section
16708 hunks in fdes, instead of looking at arange_table_in_use.
16709 (output_aranges): Add aranges_length argument, don't call
16710 size_of_aranges here. Instead of using aranges_table*
16711 emit ranges for fdes when !in_std_section resp.
16712 !second_in_std_section.
16713 (dw_loc_list): Break ranges crossing section switch.
16714 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
16715 use dw_fde_second_end instead of dw_fde_end as end of last range.
16716 (gen_subprogram_die): Don't call add_arange. Use
16717 dw_fde_{begin,end} for first partition and if switched
16718 section dw_fde_second_{begin,end} for the second.
16719 (var_location_switch_text_section_1,
16720 var_location_switch_text_section): New functions.
16721 (dwarf2out_begin_function): Initialize cold_text_section even
16722 when function_section () isn't text_section.
16723 (prune_unused_types): Don't walk arange_table.
16724 (dwarf2out_finish): Don't needlessly test
16725 flag_reorder_blocks_and_partition when testing cold_text_section_used.
16726 If info_section_emitted, call size_of_aranges and if it indicates
16727 non-empty .debug_aranges, call output_aranges with the computed
16728 size. Stop using removed dw_fde_struct fields, use
16729 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
16733 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
16734 create ENTRY_VALUE if incoming or address of incoming's MEM
16736 * dwarf2out.c (mem_loc_descriptor): Don't emit
16737 DW_OP_GNU_entry_value of DW_OP_fbreg.
16738 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
16739 on ENTRY_VALUE is able to find the canonical parameter VALUE.
16740 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
16741 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
16743 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
16744 is a REG_P or MEM_P with REG_P address, compute hash directly
16745 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
16746 (preserve_only_constants): Don't clear VALUES forwaring
16747 ENTRY_VALUE to some other VALUE.
16749 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
16751 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
16752 instead of GEN_INT.
16754 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
16756 * cfgexpand.c (expand_gimple_cond): Always set the source location and
16757 block before expanding the statement.
16758 (expand_gimple_stmt_1): Likewise. Set them here...
16759 (expand_gimple_stmt): ...and not here. Tidy.
16760 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
16763 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
16765 * Makefile.in: New rule for cprop.o.
16766 * gcse.c: Move constant/copy propagation to cprop.c.
16767 (compute_local_properties): Only handle expression tables.
16768 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
16769 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
16770 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
16771 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
16772 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
16773 compute_cprop_data, find_used_regs, try_replace_reg,
16774 find_avail_set, cprop_jump, constprop_register, cprop_insn,
16775 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
16776 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
16777 find_bypass_set, reg_killed_on_edge, bypass_block,
16778 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
16779 execute_rtl_cprop, pass_rtl_cprop): Move to...
16780 * cprop.c: ...here. New file, constant/copy propagation for RTL
16781 moved from gcse.c to here with minor cleanups in duplicated code.
16783 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
16785 * config/i386/i386.c (flag_opts): Fix a typo in
16786 -mavx256-split-unaligned-store.
16788 2011-03-28 Anatoly Sokolov <aesok@post.ru>
16790 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
16791 LIBCALL_VALUE): Remove macros.
16792 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16793 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16794 (h8300_function_value, h8300_libcall_value,
16795 h8300_function_value_regno_p): New functions.
16797 2011-03-28 Anatoly Sokolov <aesok@post.ru>
16799 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
16801 2011-03-28 Jeff Law <law@redhat.com>
16803 * tree-ssa-threadupdate.c (redirect_edges): Call
16804 create_edge_and_update_destination_phis as needed.
16805 (create_edge_and_update_destination_phis): Accept new BB argument.
16806 All callers updated.
16807 (thread_block): Do not update the profile when threading around
16808 intermediate blocks.
16809 (thread_single_edge): Likewise.
16810 (determine_bb_domination_status): If BB is not a successor of the
16811 loop header, return NONDOMINATING.
16812 (register_jump_thread): Note when we register a jump thread around
16813 an intermediate block.
16814 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
16815 (thread_across_edge): Use it.
16817 2011-03-28 Tristan Gingold <gingold@adacore.com>
16819 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
16820 when for_return is 2.
16822 2011-03-28 Jeff Law <law@redhat.com>
16824 * var-tracking.c (canonicalize_values_mark): Delete unused
16826 (canonicalize_values_star, set_variable_part): Likewise.
16827 (clobber_variable_part, delete_variable_part): Likewise.
16829 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
16831 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
16833 2011-03-28 Martin Jambor <mjambor@suse.cz>
16835 * tree-inline.c (expand_call_inline): Do not check that destination
16837 (optimize_inline_calls): Assert that destination node is analyzed.
16838 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
16839 not call tree_lowering_passes.
16840 * cgraph.h (cgraph_analyze_function): Declare.
16841 * cgraphunit.c (cgraph_analyze_function): Make public.
16843 2011-03-28 Joseph Myers <joseph@codesourcery.com>
16845 * config/sparc/sparc-opts.h: New.
16846 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
16847 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
16848 (sparc_option_override): Store processor_type enumeration rather
16849 than string in cpu_default. Remove name and enumeration from
16850 cpu_table. Directly default -mcpu then default -mtune from -mcpu
16851 without using sparc_select. Use target_flags_explicit instead of
16853 * config/sparc/sparc.h (enum processor_type): Move to
16855 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
16856 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
16857 HeaderInclude entry.
16858 (mcpu=, mtune=): Use Var and Enum.
16859 (sparc_processor_type): New Enum and EnumValue entries.
16861 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16862 Iain Sandoe <iains@gcc.gnu.org>
16865 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
16867 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
16869 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
16870 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
16871 Insert new statements at it in lieu of STMT.
16872 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
16873 * tree-vect-stmts.c (vectorizable_store): Likewise.
16874 (vectorizable_load): Likewise.
16876 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
16878 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
16883 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
16885 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
16886 unaligned 256bit load/store.
16887 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
16888 (*avx_movdqu<avxmodesuffix>): Likewise.
16890 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16893 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
16894 * config/pa/pa.md (iordi3): Use new predicate in expander.
16895 (iorsi3): Likewise.
16897 2011-03-27 Anatoly Sokolov <aesok@post.ru>
16899 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
16900 FUNCTION_VALUE_REGNO_P): Remove macros.
16901 * config/mips/mips-protos.h (mips_function_value): Remove.
16902 * config/mips/mips.c (mips_function_value): Rename to...
16903 (mips_function_value_1): ... this. Make static. Handle receiving
16904 the function type in 'fn_decl_or_type' argument.
16905 (mips_function_value, mips_libcall_value,
16906 mips_function_value_regno_p): New function.
16907 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16908 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16910 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
16912 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
16913 and -mavx256-split-unaligned-store.
16914 (ix86_option_override_internal): Split 32-byte AVX unaligned
16915 load/store by default.
16916 (ix86_avx256_split_vector_move_misalign): New.
16917 (ix86_expand_vector_move_misalign): Use it.
16919 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
16920 -mavx256-split-unaligned-store.
16922 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
16923 256bit load/store. Generate unaligned store on misaligned memory
16925 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
16927 (*avx_movdqu<avxmodesuffix>): Likewise.
16929 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
16930 -mavx256-split-unaligned-store.
16932 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
16935 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
16938 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
16940 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
16941 opno arguments with an expand_operand. Use create_input_operand.
16942 (mips_prepare_builtin_target): Delete.
16943 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
16945 (mips_expand_builtin_direct): Use create_output_operand and
16946 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
16947 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
16948 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
16950 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
16952 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
16954 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
16956 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
16958 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
16959 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
16960 basic blocks and call commit_edge_insertions directly.
16961 (fixup_abnormal_edges): Move from here to...
16962 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
16963 on the edges and return whether some have actually been inserted.
16964 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
16967 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
16969 PR rtl-optimization/48144
16970 * sel-sched-ir.c (merge_history_vect): Factor out from ...
16971 (merge_expr_data): ... here.
16972 (av_set_intersect): Rename to av_set_code_motion_filter.
16973 Update all callers. Call merge_history_vect when an expression
16974 is found in both sets.
16975 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
16977 2011-03-26 Alan Modra <amodra@gmail.com>
16979 * config/rs6000/predicates.md (word_offset_memref_op): Handle
16980 cmodel medium addresses.
16981 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
16982 64-bit gpr loads and stores.
16983 (rs6000_secondary_reload_ppc64): New function.
16984 * config/rs6000/rs6000-protos.h: Declare it.
16985 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
16987 2011-03-26 Alan Modra <amodra@gmail.com>
16990 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
16991 GNU Go in traceback table.
16993 2011-03-25 Richard Henderson <rth@redhat.com>
16995 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
16996 if there are exactly 6 operands.
16997 (set_storage_via_setmem): Similarly.
16999 2011-03-25 Kai Tietz <ktietz@redhat.com>
17001 * collect2.c (write_c_file_stat): Handle backslash
17002 as right-hand directory separator.
17003 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
17004 checking just for slash.
17005 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
17006 instead of checking for trailing slash.
17007 * gcc.c (record_temp_file): Use filename_cmp instead
17009 (do_spec_1): Likewise.
17010 (replace_outfile_spec_function): Likewise.
17011 (is_directory): Use filename_ncmp instead of strncmp.
17012 (print_multilib_info): Likewise.
17013 * gcov.c (find_source): Use filename_cmp instead
17015 (make_gcov_file_name): Fix order of slash/backslash
17017 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
17018 (add_standard_paths): Likewise.
17019 * mips-tfile.c (saber_stop): Handle backslash.
17020 * prefix.c (update_path): Use filename_ncmp instead of
17022 * profile.c (output_location): Use filename_cmp instead
17024 * read-md.c (handle_toplevel_file): Handle backslash.
17025 * tlink.c (frob_extension): Likewise.
17026 * tree-cfg.c (same_line_p): Use filename_cmp instead of
17028 * tree-dump.c (dequeue_and_dump): Handle backslash.
17029 * tree.c (get_file_function_name): Likewise.
17030 * gengtype.c (read_input_list): Likewise.
17031 (get_file_realbasename): Likewise.
17032 (get_output_file_with_visibility): Use filename_cmp
17035 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
17037 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
17040 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
17042 * fold-const.c (expr_location_or): New function.
17043 (fold_truth_not_expr): Call it.
17045 2011-03-25 Jeff Law <law@redhat.com>
17047 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
17049 * c-family/c-common.c (def_fn_type): Likewise.
17050 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
17051 * emit-rtl.c (gen_rtvec): Likewise.
17052 * lto/lto-lang.c (def_fn_type): Likewise.
17054 2011-03-25 Richard Guenther <rguenther@suse.de>
17056 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
17057 also generate copies.
17058 (fini_copy_prop): Handle constant values properly.
17060 2011-03-25 Jakub Jelinek <jakub@redhat.com>
17062 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
17063 mode size instead of bitsize with DWARF2_ADDR_SIZE.
17064 (hash_loc_operands, compare_loc_operands): Handle
17065 DW_OP_GNU_entry_value.
17067 2011-03-25 Kai Tietz <ktietz@redhat.com>
17069 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
17070 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
17071 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
17072 comment and use macro TARGET_64BIT_MS_ABI instead.
17073 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
17074 and change default behavior for 32-bit MS_ABI.
17075 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
17076 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
17078 (ix86_cfun_abi): Likewise.
17079 (ix86_maybe_switch_abi): Adjust comment.
17080 (init_cumulative_args): Check for bit-ness in MS_ABI case.
17081 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
17082 instead of checking for SYSV_ABI.
17083 (ix86_nsaved_sseregs): Likewise.
17084 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
17086 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
17087 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
17088 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
17089 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
17090 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
17092 2011-03-25 Richard Guenther <rguenther@suse.de>
17094 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
17095 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17096 (verify_gimple): Remove.
17097 * tree-cfg.c (verify_gimple_call): Merge verification
17099 (verify_gimple_phi): Merge verification from verify_stmts.
17100 (verify_gimple_label): New function.
17101 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
17102 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
17103 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
17104 (verify_stmts): Rename to verify_gimple_in_cfg.
17105 (verify_gimple_in_cfg): New function.
17106 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
17107 * tree-ssa.c (verify_ssa): Likewise.
17108 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
17110 2011-03-25 Richard Guenther <rguenther@suse.de>
17112 * passes.c (init_optimization_passes): Add FRE pass after
17115 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
17116 Andrew Stubbs <ams@codesourcery.com>
17118 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
17120 (arm_movdi_vfp_cortexa8): New pattern.
17121 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
17122 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
17123 instructions when tuning for Cortex-A8. Set attribute "arch".
17124 * config/arm/arm.md: Move include arm-tune.md up a bit.
17125 (define_attr "arch"): Add "onlya8" and "nota8" values.
17126 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
17128 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
17132 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17134 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17135 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
17136 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17137 * passes.c (init_optimization_passes): Move
17138 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17140 2011-03-25 Kai Tietz <ktietz@redhat.com>
17142 * c-typeck.c (comptypes_internal): Replace target
17143 hook call of comp_type_attributes by version in tree.c file.
17144 * gimple.c (gimple_types_compatible_p_1): Likewise.
17145 * tree-ssa.c (useless_type_conversion_p): Likewise.
17146 * tree.c (build_type_attribute_qual_variant): Likewise.
17147 (attribute_value_equal): New static helper function.
17148 (comp_type_attributes): New function.
17149 (merge_attributes): Use attribute_value_equal for comparison.
17150 (attribute_list_contained): Likewise.
17151 * tree.h (comp_type_attributes): New prototype.
17153 2011-03-25 Richard Guenther <rguenther@suse.de>
17155 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
17156 of complex types at -O0.
17157 (verify_gimple_assign_binary): Likewise.
17158 (verify_gimple_assign_ternary): Likewise.
17160 2011-03-24 Mark Wielaard <mjw@redhat.com>
17162 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
17163 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
17165 2011-03-24 Mark Wielaard <mjw@redhat.com>
17168 * dwarf2out.c (output_abbrev_section): Only write table when
17169 abbrev_die_table_in_use > 1.
17171 2011-02-24 Richard Henderson <rth@redhat.com>
17173 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
17174 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
17175 (alpha_expand_unaligned_load_words): Use extql.
17176 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
17177 (emit_insxl): Handle all modes for consistency.
17179 2011-02-24 Richard Henderson <rth@redhat.com>
17181 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
17182 (alpha_expand_unaligned_load): Likewise.
17183 (alpha_expand_unaligned_store): Likewise.
17184 (alpha_expand_unaligned_load_words): Likewise.
17185 (alpha_expand_unaligned_store_words): Likewise.
17186 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
17187 (alpha_split_lock_test_and_set_12): Likewise.
17188 (print_operand, alpha_fold_builtin_extxx): Likewise.
17189 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
17190 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
17191 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
17192 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
17193 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
17194 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
17195 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
17196 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
17197 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
17198 (extwl, extll, extql): Similarly.
17199 (inswh, inslh, insqh): Similarly.
17200 (mskbl, mskwl, mskll, mskql): Similarly.
17201 (mskwh, msklh, mskqh): Similarly.
17203 2011-02-24 Richard Henderson <rth@redhat.com>
17205 * config/alpha/alpha.md (attribute isa): Add er, ner.
17206 (attribute enabled): Handle them.
17207 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
17209 2011-02-24 Richard Henderson <rth@redhat.com>
17211 * config/alpha/alpha.md (attribute isa): Add vms.
17212 (attribute enabled): Handle it.
17213 (*movsf): Merge *movsf_{nofix,fix,nofp}.
17214 (*movdf): Merge *movdf_{nofix,fix,nofp}.
17215 (*movtf): Rename from *movtf_internal for consistency.
17216 (*movsi): Merge with *movsi_nt_vms.
17217 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
17218 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
17219 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
17220 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
17222 2011-02-24 Richard Henderson <rth@redhat.com>
17224 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
17225 (extendqisi2, extendhisi2): Likewise.
17226 (extendqidi2): Simplify BWX/non-BWX expansions.
17227 (extendhidi2): Similarly.
17229 2011-02-24 Richard Henderson <rth@redhat.com>
17231 * config/alpha/alpha.md (attribute isa): New.
17232 (attribute enabled): New.
17233 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
17234 (zero_extendqisi2, zero_extendqidi2): Similarly.
17235 (zero_extendhisi2, zero_extendhidi2): Similarly.
17236 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
17238 2011-02-24 Richard Henderson <rth@redhat.com>
17240 * config/alpha/predicates.md (input_operand): Revert last change;
17241 update comment to mention 32-bit VMS rather than Windows.
17243 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17245 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
17246 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
17247 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
17248 * passes.c (init_optimization_passes): Move
17249 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
17251 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17253 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
17255 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
17257 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
17260 2011-03-24 Jakub Jelinek <jakub@redhat.com>
17263 * simplify-rtx.c (simplify_const_unary_operation): Call
17264 real_convert when changing mode class with FLOAT_EXTEND.
17266 2011-03-24 Nick Clifton <nickc@redhat.com>
17268 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
17269 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
17270 * config/rx/rx.c (rx_option_override): Set align_jumps,
17271 align_loops and align_labels if not set by the user.
17272 (rx_align_for_label): New function.
17273 (rx_max_skip_for_label): New function.
17274 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
17275 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
17276 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
17277 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
17278 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
17280 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
17282 PR rtl-optimization/48263
17283 * optabs.c (expand_binop_directly): Reinstate convert_modes code
17284 and original commutative_p handling. Use maybe_gen_insn.
17286 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17288 * reload.c (find_reloads_subreg_address): Add address_reloaded
17289 parameter and return true there if the full address has been
17291 (find_reloads_toplev): Pass address_reloaded flag.
17292 (find_reloads_address_1): Don't use address_reloaded parameter.
17294 2011-03-24 Jeff Law <law@redhat.com>
17296 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
17297 unused variable "ann".
17298 (remove_unused_locals): Likewise.
17300 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
17303 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
17306 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17308 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
17309 for invalid symbolic addresses.
17310 (s390_secondary_reload): Don't use s390_check_symref_alignment for
17313 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17315 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
17316 the argument in calls to fold_truth_not_expr.
17318 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17320 * tree.c (record_node_allocation_statistics): New function.
17321 (make_node_stat, copy_node_stat, build_string): Call it.
17322 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
17323 (build1_stat, build_omp_clause): Likewise.
17325 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
17327 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
17330 2011-03-24 Richard Guenther <rguenther@suse.de>
17332 PR tree-optimization/48271
17333 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
17334 blocks that still exist.
17336 2011-03-24 Richard Guenther <rguenther@suse.de>
17338 PR tree-optimization/48270
17339 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
17340 not free datarefs before ddrs.
17342 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
17344 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
17345 from the address built for a reference with variable offset.
17347 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
17350 * config/i386/i386.md (*movdf_internal_rex64): Do not split
17351 alternatives that can be handled with movq or movabsq insn.
17352 (*movdf_internal): Disable for !TARGET_64BIT.
17353 (*movdf_internal_nointeger): Ditto.
17354 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
17356 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
17358 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17359 (FUNCTION_ARG_ADVANCE): Likewise.
17360 * tm.texi.in: Change references to them to hook references.
17361 * tm.texi: Regenerate.
17362 * targhooks.c (default_function_arg): Eliminate check for target macro.
17363 (default_function_incoming_arg): Likewise.
17364 (default_function_arg_advance): Likewise.
17365 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17366 (function_arg_advance): Likewise.
17367 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17369 2011-03-24 Richard Guenther <rguenther@suse.de>
17371 PR middle-end/48269
17372 * tree-object-size.c (addr_object_size): Do not double-account
17373 for MEM_REF offsets.
17375 2011-03-24 Diego Novillo <dnovillo@google.com>
17377 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
17378 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
17379 (lto_input_data_block): Move from lto-opts.c. Make extern.
17381 (lto_input_string): Rename from input_string. Make extern.
17383 * lto-streamer-out.c (lto_output_string_with_length): Rename from
17384 output_string_with_length.
17385 Output 0 to indicate a non-NULL string. Update all callers to
17387 (lto_output_string): Rename from output_string. Make extern.
17389 (lto_output_decl_state_streams): Make extern.
17390 (lto_output_decl_state_refs): Make extern.
17391 * lto-streamer.h (lto_input_string): Declare.
17392 (lto_input_data_block): Declare.
17393 (lto_output_string): Declare.
17394 (lto_output_string_with_length): Declare.
17395 (lto_output_decl_state_streams): Declare.
17396 (lto_output_decl_state_refs): Declare.
17398 2011-03-24 Richard Guenther <rguenther@suse.de>
17400 PR tree-optimization/46562
17401 * tree.c (build_invariant_address): New function.
17402 * tree.h (build_invariant_address): Declare.
17403 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
17404 a renamed function moved ...
17405 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
17406 Take valueization callback parameter.
17407 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
17408 * gimple-fold.h: New file.
17409 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
17410 (ccp_fold, fold_const_aggregate_ref,
17411 fold_ctor_reference, fold_nonarray_ctor_reference,
17412 fold_array_ctor_reference, fold_string_cst_ctor_reference,
17413 get_base_constructor): Move ...
17414 * gimple-fold.c: ... here.
17415 (gimple_fold_stmt_to_constant_1): New function
17416 split out from ccp_fold. Take a valueization callback parameter.
17417 Valueize all operands.
17418 (gimple_fold_stmt_to_constant): New wrapper function.
17419 (fold_const_aggregate_ref_1): New function split out from
17420 fold_const_aggregate_ref. Take a valueization callback parameter.
17421 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
17422 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
17423 invariant POINTER_PLUS_EXPRs to invariant form.
17424 (vn_valueize): New function.
17425 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
17426 * tree-vrp.c (vrp_valueize): New function.
17427 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
17428 to fold statements to constants.
17429 * tree-ssa-pre.c (eliminate): Properly guard propagation of
17430 function declarations.
17431 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
17432 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
17434 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
17436 * config/h8300/predicates.md (jump_address_operand): Fix register
17439 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
17441 * doc/invoke.texi (max-stores-to-sink): Document.
17442 * params.h (MAX_STORES_TO_SINK): Define.
17443 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
17444 if either vectorization or if-conversion is disabled.
17445 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
17446 tree-vect-data-refs.c vect_equal_offsets.
17447 (dr_equal_offsets_p): New function.
17448 (find_data_references_in_bb): Remove static.
17449 * tree-data-ref.h (find_data_references_in_bb): Declare.
17450 (dr_equal_offsets_p): Likewise.
17451 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
17452 (vect_drs_dependent_in_basic_block): Update calls to
17453 vect_equal_offsets.
17454 (vect_check_interleaving): Likewise.
17455 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
17456 (cond_if_else_store_replacement): Rename to...
17457 (cond_if_else_store_replacement_1): ... this. Change arguments and
17459 (cond_if_else_store_replacement): New function.
17460 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
17461 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
17463 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
17466 * config/arm/arm.md (casesi): Use the gen_int_mode() function
17467 to subtract lower bound instead of GEN_INT().
17469 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
17474 * doc/extend.texi (Alignment): Move section to match order in TOC.
17475 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
17476 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
17478 2011-03-23 Jeff Law <law@redhat.com>
17480 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
17481 before removing the edge.
17483 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
17484 it may have been freed by redirect_branch_edge or
17485 redirect_edge_succ_nodup.
17487 2011-03-23 Richard Guenther <rguenther@suse.de>
17489 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
17490 (check_va_list_escapes): Likewise.
17491 (check_all_va_list_escapes): Likewise.
17493 2011-03-23 Richard Guenther <rguenther@suse.de>
17495 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
17496 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
17497 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
17498 (alias.o): Likewise.
17499 (ipa-type-escape.o): Remove.
17500 (ipa-struct-reorg.o): Likewise.
17501 (GTFILES): Remove ipa-struct-reorg.c.
17502 * alias.c: Do not include ipa-type-escape.h.
17503 * tree-ssa-alias.c: Likewise.
17504 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
17505 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
17506 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
17507 and ipa-type-escape passes.
17508 * tree-pass.h (pass_ipa_type_escape): Remove.
17509 (pass_ipa_struct_reorg): Likewise.
17510 * ipa-struct-reorg.h: Remove.
17511 * ipa-struct-reorg.c: Likewise.
17512 * ipa-type-escape.h: Likewise.
17513 * ipa-type-escape.c: Likewise.
17514 * doc/invoke.texi (-fipa-struct-reorg): Remove.
17515 (--param struct-reorg-cold-struct-ratio): Likewise.
17516 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
17517 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
17518 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
17520 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17522 * config/s390/2084.md: Enable all insn reservations also for z9_ec
17523 cpu attribute value.
17524 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
17525 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
17526 * config/s390/s390.c (processor_flags_table): New constant array.
17527 (s390_handle_arch_option): Remove.
17528 (s390_handle_option): Remove s390_handle_arch_option invocations
17529 and OPT_mwarn_framesize_ handling.
17530 (s390_option_override): Remove s390_handle_arch_option invocation.
17531 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
17533 * config/s390/s390.md (cpu attribute): Add z9_ec value.
17534 * config/s390/s390.opt (s390_tune, s390_arch)
17535 (march=): Replace s390_arch_option enum and values with
17536 processor_type. Set variable name to s390_arch. Set
17537 initialization value.
17538 (mtune=): Replace s390_arch_option with processor_type. Set
17539 variable name to s390_tune. Set initialization value.
17541 2011-03-23 Julian Brown <julian@codesourcery.com>
17543 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
17544 accesses which are not naturally aligned.
17546 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
17549 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
17551 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
17553 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
17554 parameter from "int" to "enum insn_code".
17555 (expand_operand_type): New enum.
17556 (expand_operand): New structure.
17557 (create_expand_operand): New function.
17558 (create_fixed_operand, create_output_operand): Likewise
17559 (create_input_operand, create_convert_operand_to): Likewise.
17560 (create_convert_operand_from, create_address_operand): Likewise.
17561 (create_integer_operand): Likewise.
17562 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
17563 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
17564 (expand_insn, expand_jump_insn): Likewise.
17565 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
17566 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
17567 (expand_movstr, expand_builtin___clear_cache): Likewise.
17568 (expand_builtin_lock_release): Likewise.
17569 * explow.c (allocate_dynamic_stack_space): Likewise.
17570 (probe_stack_range): Likewise. Allow check_stack to FAIL,
17571 and use the default handling in that case.
17572 * expmed.c (check_predicate_volatile_ok): Delete.
17573 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
17574 (emit_cstore): Likewise.
17575 * expr.c (emit_block_move_via_movmem): Likewise.
17576 (set_storage_via_setmem, expand_assignment): Likewise.
17577 (emit_storent_insn, try_casesi): Likewise.
17578 (emit_single_push_insn): Likewise. Allow the expansion to fail.
17579 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
17580 (expand_vec_shift_expr, expand_binop_directly): Likewise.
17581 (expand_twoval_unop, expand_twoval_binop): Likewise.
17582 (expand_unop_direct, emit_indirect_jump): Likewise.
17583 (emit_conditional_move, vector_compare_rtx): Likewise.
17584 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
17585 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
17586 (expand_sync_lock_test_and_set): Likewise.
17587 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
17588 (emit_unop_insn): Likewise.
17589 (expand_copysign_absneg): Change icode to an insn_code.
17590 (create_convert_operand_from_type): New function.
17591 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
17592 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
17593 (expand_insn, expand_jump_insn): Likewise.
17594 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
17595 than const_int_operand for operand 2.
17597 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17599 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
17602 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17604 * emit-rtl.c (emit_pattern_before_noloc): New function.
17605 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
17606 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
17607 (emit_pattern_after_noloc): New function.
17608 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
17609 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
17611 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17613 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
17614 (__ffsDI2): Likewise.
17616 2011-03-22 Richard Henderson <rth@redhat.com>
17618 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
17619 of !TARGET_ABI_OPEN_VMS.
17620 (alpha_trampoline_init, alpha_start_function): Likewise.
17621 (alpha_expand_epilogue, alpha_file_start): Likewise.
17622 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
17623 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
17624 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
17625 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
17626 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
17628 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17630 * config/s390/s390-opts.h: New.
17631 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
17632 s390_arch_flags, s390_warn_framesize, s390_stack_size,
17633 s390_stack_guard): Remove.
17634 (s390_handle_arch_option): Return void. Take enum
17635 s390_arch_option value instead of string and searching array.
17636 (s390_handle_option): Don't assert that global structures are in
17637 use. Access variables via opts pointer. Use error_at. Don't use
17638 sscanf for -mstack-guard= or -mstack-size=. Update call to
17639 s390_handle_arch_option.
17640 (s390_option_override): Update call to s390_handle_arch_option.
17641 (s390_emit_prologue): Use %d format for s390_stack_size in
17642 diagnostic. Use %wd for HOST_WIDE_INT.
17643 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
17644 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
17645 * config/s390/s390.opt (config/s390/s390-opts.h): New
17646 HeaderInclude entry.
17647 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
17648 s390_arch_flags, s390_warn_framesize): New Variable entries.
17649 (s390_arch_option): New Enum and EnumValue entries.
17650 (march=): Use Enum instead of Var.
17651 (mstack-guard=, mstack-size=): Use UInteger and Var.
17652 (mtune=): Use Enum.
17654 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17656 * config/score/score.c (score_handle_option): Don't assert that
17657 global structures are in use. Access target_flags via opts
17658 pointer. Use value of -march= option to determine target_flags
17660 * config/score/score.opt (march=): Use Enum.
17661 (score_arch): New Enum and EnumValue entries.
17663 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17665 * config/mep/mep.c (option_mtiny_specified): Remove.
17666 (mep_option_override): Move register handling for -mivc2 from
17667 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
17668 instead of option_mtiny_specified.
17669 (mep_handle_option): Access target_flags via opts pointer. Don't
17670 assert that global structures are in use. Defer part of -mivc2
17671 handling and move it to mep_option_override.
17672 * config/mep/mep.opt (IVC2): New Mask entry.
17673 (mivc2): Use Var and Defer instead of Mask.
17675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17677 * config/v850/v850-opts.h: New.
17678 * config/v850/v850.c (small_memory): Replace with
17679 small_memory_physical_max array. Make that array static const.
17680 (v850_handle_memory_option): Take integer value of argument. Take
17681 gcc_options pointer, option text and location. Return void.
17682 Update for changes to small memory structures.
17683 (v850_handle_option): Access target_flags via opts pointer. Don't
17684 assert that global structures are in use. Update calls to
17685 v850_handle_memory_option.
17686 (v850_encode_data_area): Update references to small memory settings.
17687 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
17688 (enum small_memory_type): Move to v850-opts.h.
17689 * config/v850/v850.opt (config/v850/v850-opts.h): New
17690 HeaderInclude entry.
17691 (small_memory_max): New Variable entry.
17692 (msda): Replace by pair of options msda= and msda-. Use UInteger.
17693 (mtda, mzda): Likewise.
17695 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17697 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
17698 pointer. Don't assert that global structures are in use.
17700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17702 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
17703 via opts pointer. Don't assert that global structures are in use.
17705 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17707 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
17708 (munix=93): Use Var.
17709 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
17710 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
17711 * config/pa/pa-opts.h: New.
17712 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
17713 (pa_handle_option): Don't assert that global structures are in
17714 use. Access target_flags via opts pointer. Don't handle
17715 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
17717 (pa_option_override): Handle deferred OPT_mfixed_range_.
17719 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17721 * config/mn10300/mn10300-opts.h: New.
17722 * config/mn10300/mn10300.c (mn10300_processor,
17723 mn10300_tune_string): Remove.
17724 (mn10300_handle_option): Don't assert that global structures are
17725 in use. Access mn10300_processor via opts pointer. Don't handle
17727 * config/mn10300/mn10300.h (enum processor_type): Move to
17729 (mn10300_processor): Remove.
17730 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
17731 HeaderInclude entry.
17732 (mn10300_processor): New Variable entry.
17735 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17737 * config/microblaze/microblaze.c: Don't include opts.h.
17738 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
17739 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
17740 (mno-clearbss): Use Var and Warn.
17742 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17744 * config/m32r/m32r-opts.h: New.
17745 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
17746 (m32r_handle_option): Don't assert that global structures are in
17747 use. Access target_flags and m32r_cache_flush_func via opts
17748 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
17749 OPT_mno_flush_trap here.
17750 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
17751 include of m32r-opts.h.
17752 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
17753 HeaderInclude entry.
17754 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
17755 (mmodel=): Use Enum and Var.
17756 (m32r_model): New Enum and EnumValue entries.
17757 (mno-flush-trap): Use Var.
17758 (msdata=): Use Enum and Var.
17759 (m32r_sdata): New Enum and EnumValue entries.
17761 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17763 * config/m32c/m32c.c: Don't include opts.h.
17764 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
17765 m32c_handle_option): Remove.
17766 (m32c_option_override): Check global_options_set.x_target_memregs
17767 instead of target_memregs_set.
17768 * config/m32c/m32c.h (target_memregs): Remove.
17769 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
17772 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17774 * config/iq2000/iq2000-opts.h: New.
17775 * config/iq2000/iq2000.c: Don't include opts.h.
17776 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
17777 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
17778 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
17779 HeaderInclude entry.
17780 (iq2000_tune): New Variable entry.
17781 (march=): Add comment. Use Enum.
17782 (iq2000_arch): New Enum and EnumValue entries.
17783 (mcpu=): Use Enum and Var.
17784 (iq2000_tune): New Enum and EnumValue entries.
17786 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17788 * config/ia64/ia64-opts.h: New.
17789 * config/ia64/ia64.c (ia64_tune): Remove.
17790 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
17791 here. Use error_at.
17792 (ia64_option_override): Handle deferred OPT_mfixed_range_.
17793 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
17794 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
17795 HeaderInclude entry.
17796 (ia64_tune): New Variable entry.
17797 (mfixed-range=): Use Defer and Var.
17798 (mtune=): Use Enum and Var.
17799 (ia64_tune): New Enum and EnumValue entries.
17801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17803 * config/frv/frv-opts.h: New.
17804 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
17806 (frv_cpu_type): Remove.
17807 * config/frv/frv.c: Don't include opts.h.
17808 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
17809 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
17810 (frv_cpu_type): New Variable entry.
17811 (frv_cpu): New Enum and EnumValue entries.
17813 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17815 * config/cris/cris.c (cris_handle_option): Access target_flags via
17816 opts pointer. Don't assert that global structures are in use.
17817 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
17818 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
17820 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17822 * config/bfin/bfin-opts.h: New.
17823 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
17824 bfin_si_revision, bfin_workarounds): Remove.
17825 (bfin_cpus): Make static const.
17826 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
17827 not bfin_lib_id_given.
17828 (bfin_handle_option): Don't set bfin_lib_id_given. Access
17829 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
17830 pointer. Use error_at. Don't assert that global structures are in use.
17831 * config/bfin/bfin.h: Include bfin-opts.h.
17832 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
17833 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
17834 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
17835 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
17838 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17840 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
17841 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
17842 or -msoft-float here.
17843 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
17844 -msoft-float and -mhard-float.
17845 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
17846 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17848 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
17850 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
17851 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
17853 (LIBGCC_SPEC): Don't handle -msoft-float.
17854 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
17856 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
17858 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
17859 -mfloat-abi=*, not -msoft-float and -mhard-float.
17860 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
17862 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
17863 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
17864 mhard-float and msoft-float.
17865 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
17866 mfloat-abi=soft in comments, not mhard-float and msoft-float.
17867 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17868 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
17870 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
17871 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
17873 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
17875 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
17878 2011-03-22 Richard Henderson <rth@redhat.com>
17880 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
17881 TARGET_ABI_WINDOWS_NT.
17882 (alpha_output_function_end_prologue): Likewise.
17883 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
17884 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
17885 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
17886 (trap, *movsi_nt_vms): Likewise.
17887 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
17888 (*tablejump_osf_nt_internal): Remove.
17889 * config/alpha/predicates.md (input_operand): Only test Pmode.
17891 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17893 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
17894 via opts pointer. Use error_at. Don't assert that global
17895 structures are in use.
17897 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17899 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
17900 (ix86_handle_option): Access ix86_isa_flags and
17901 ix86_isa_flags_explicit via opts pointer. Don't assert that
17902 global structures are in use.
17903 (ix86_function_specific_save, ix86_function_specific_restore):
17904 Update ix86_isa_flags_explicit field name.
17905 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
17906 (ix86_isa_flags_explicit): Rename TargetSave entry to
17907 x_ix86_isa_flags_explicit.
17909 2011-03-22 Richard Henderson <rth@redhat.com>
17911 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
17912 (alpha_option_override, direct_return): Likewise.
17913 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
17914 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
17915 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
17916 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
17917 (alpha_expand_epilogue, alpha_end_function): Likewise.
17918 (alpha_init_libfuncs): Likewise.
17919 (struct machine_function): Remove unicosmk members.
17920 (print_operand) ['t']: Remove.
17921 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
17922 unicosmk_output_module_name, unicosmk_output_common,
17923 current_section_align, unicosmk_output_text_section_asm_op,
17924 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
17925 unicosmk_section_type_flags, unicosmk_unique_section,
17926 unicosmk_asm_named_section, unicosmk_insert_attributes,
17927 unicosmk_output_align, unicosmk_defer_case_vector,
17928 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
17929 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
17930 unicosmk_output_ssib, unicosmk_add_call_info_word,
17931 unicosmk_extern_head, unicosmk_output_default_externs,
17932 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
17933 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
17934 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
17935 * config/alpha/alpha-protos.h: Update.
17936 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
17937 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
17938 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
17939 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
17940 (*mulsi_se, mulvsi3): Likewise.
17941 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
17942 (*divmodsi_internal, call, call_value, realign): Likewise.
17943 (moddi3, umoddi3): Likewise; remove duplicate expander.
17944 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
17945 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
17946 (*movdi_nofix): Remove r/U alternative.
17947 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
17948 * config/alpha/constraints.md ("U"): Remove.
17949 * config/alpha/predicates.md (call_operand"): Don't test
17950 TARGET_ABI_UNICOSMK.
17952 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17954 * target.def (handle_option): Take gcc_options and
17955 cl_decoded_option pointers and location_t.
17956 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
17957 * doc/tm.texi: Regenerate.
17958 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
17959 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
17960 * lto-opts.c (lto_reissue_options): Generate option structure for
17961 targetm.handle_option call.
17962 * opts.c (target_handle_option): Update call to
17963 targetm.handle_option. Remove assertions about values now passed
17965 * targhooks.c (default_target_handle_option): New.
17966 * targhooks.h (default_target_handle_option): Declare.
17967 * config/alpha/alpha.c: Include opts.h.
17968 (alpha_handle_option): Update to new hook interface.
17969 * config/arm/arm.c: Include opts.h.
17970 (arm_handle_option): Update to new hook interface.
17971 * config/arm/t-arm (arm.o): Update dependencies.
17972 * config/bfin/bfin.c: Include opts.h.
17973 (bfin_handle_option): Update to new hook interface.
17974 * config/cris/cris.c: Include opts.h.
17975 (cris_handle_option): Update to new hook interface.
17976 * config/frv/frv.c: Include opts.h.
17977 (frv_handle_option): Update to new hook interface.
17978 * config/i386/i386.c: Include opts.h.
17979 (ix86_handle_option): Update to new hook interface.
17980 (ix86_valid_target_attribute_inner_p): Generate option structure
17981 for call to ix86_handle_option.
17982 * config/i386/t-i386 (i386.o): Update dependencies.
17983 * config/ia64/ia64.c: Include opts.h.
17984 (ia64_handle_option): Update to new hook interface.
17985 * config/ia64/t-ia64 (ia64.o): Update dependencies.
17986 * config/iq2000/iq2000.c: Include opts.h.
17987 (iq2000_handle_option): Update to new hook interface.
17988 * config/m32c/m32c.c: Include opts.h.
17989 (m32c_handle_option): Update to new hook interface.
17990 * config/m32r/m32r.c: Include opts.h.
17991 (m32r_handle_option): Update to new hook interface.
17992 * config/m68k/m68k.c: Include opts.h.
17993 (m68k_handle_option): Update to new hook interface.
17994 * config/mep/mep.c: Include opts.h.
17995 (mep_handle_option): Update to new hook interface.
17996 * config/microblaze/microblaze.c: Include opts.h.
17997 (microblaze_handle_option): Update to new hook interface.
17998 * config/mips/mips.c: Include opts.h.
17999 (mips_handle_option): Update to new hook interface.
18000 * config/mn10300/mn10300.c: Include opts.h.
18001 (mn10300_handle_option): Update to new hook interface.
18002 * config/pa/pa.c: Include opts.h.
18003 (pa_handle_option): Update to new hook interface.
18004 * config/pdp11/pdp11.c: Include opts.h.
18005 (pdp11_handle_option): Update to new hook interface.
18006 * config/rs6000/rs6000.c: Include opts.h.
18007 (rs6000_handle_option): Update to new hook interface.
18008 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
18009 * config/rx/rx.c: Include opts.h.
18010 (rx_handle_option): Update to new hook interface.
18011 * config/s390/s390.c: Include opts.h.
18012 (s390_handle_option): Update to new hook interface.
18013 * config/score/score.c: Include opts.h.
18014 (score_handle_option): Update to new hook interface.
18015 * config/sh/sh.c: Include opts.h.
18016 (sh_handle_option): Update to new hook interface.
18017 * config/sparc/sparc.c: Include opts.h.
18018 (sparc_handle_option): Update to new hook interface.
18019 * config/v850/v850.c: Include opts.h.
18020 (v850_handle_option): Update to new hook interface.
18022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
18024 * gcc.c (driver_unknown_option_callback): Only permit and save
18025 unknown -Wno- options.
18026 (driver_wrong_lang_callback): Save options directly instead of via
18027 driver_unknown_option_callback.
18029 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
18031 * combine.c (simplify_set): Try harder to find the best CC mode when
18032 simplifying a nested COMPARE on the RHS.
18034 2011-03-22 Joseph Myers <joseph@codesourcery.com>
18036 * config/alpha/gnu.h: Remove.
18037 * config/arc: Remove directory.
18038 * config/arm/netbsd.h: Remove.
18039 * config/arm/t-pe: Remove.
18040 * config/crx: Remove directory.
18041 * config/i386/netbsd.h: Remove.
18042 * config/m68hc11: Remove directory.
18043 * config/m68k/uclinux-oldabi.h: Remove.
18044 * config/mcore/mcore-pe.h: Remove.
18045 * config/mcore/t-mcore-pe: Remove.
18046 * config/netbsd-aout.h: Remove.
18047 * config/rs6000/gnu.h: Remove.
18048 * config/sh/sh-symbian.h: Remove.
18049 * config/sh/symbian-base.c: Remove.
18050 * config/sh/symbian-c.c: Remove.
18051 * config/sh/symbian-cxx.c: Remove.
18052 * config/sh/symbian-post.h: Remove.
18053 * config/sh/symbian-pre.h: Remove.
18054 * config/sh/t-symbian: Remove.
18055 * config/svr3.h: Remove.
18056 * config/vax/netbsd.h: Remove.
18057 * config.build: Don't handle i[34567]86-*-pe.
18058 * config.gcc: Remove handling of deprecations for most deprecated
18060 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
18061 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
18062 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
18063 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
18064 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
18065 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
18067 * config.host: Don't handle i[34567]86-*-pe.
18068 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
18069 (ASM_SPEC32): Don't handle -mcall-gnu.
18070 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
18072 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
18073 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
18074 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
18075 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
18076 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
18077 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
18078 conditional on SYMBIAN.
18079 * configure.ac: Don't handle powerpc*-*-gnu*.
18080 * configure: Regenerate.
18081 * doc/extend.texi (interrupt attribute): Don't mention CRX.
18082 * doc/install-old.texi (m6811, m6812): Don't mention.
18083 * doc/install.texi (arc-*-elf*): Don't document multilib option.
18084 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
18085 (m68k-uclinuxoldabi): Don't mention.
18086 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
18088 (-mcall-gnu): Remove.
18089 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
18090 families): Remove constraint documentation.
18092 2011-03-22 Marius Strobl <marius@FreeBSD.org>
18094 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
18095 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
18096 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
18098 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18101 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
18102 vector when peeking at the next token for vector, don't expand the
18105 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
18107 * config/avr/avr-protos.h (expand_epilogue): Change prototype
18108 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
18109 * config/avr/avr.c (init_cumulative_args)
18110 (avr_function_arg_advance): Use it.
18111 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
18113 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
18114 (avr_function_ok_for_sibcall): ...this new function.
18115 (avr_lookup_function_attribute1): New static Function.
18116 (avr_naked_function_p, interrupt_function_p)
18117 (signal_function_p, avr_OS_task_function_p)
18118 (avr_OS_main_function_p): Use it.
18119 * config/avr/avr.md ("sibcall", "sibcall_value")
18120 ("sibcall_epilogue"): New expander.
18121 ("*call_insn", "*call_value_insn"): New insn.
18122 ("call_insn", "call_value_insn"): Remove
18123 ("call", "call_value", "epilogue"): Change expander to handle
18126 2011-03-21 Nick Clifton <nickc@redhat.com>
18128 * doc/invoke.texi (Overall Options): Move closing brace to end of
18130 (Optimization Options): Add missing @gol.
18131 (Directory Options): Likewise.
18132 (i386 and x86-64 Options): Likewise.
18133 (RS6000 and PowerPC Options): Likewise.
18134 (i386 and x86-64 Windows Options): Likewise.
18135 (V850 Options): Add text missing from descriptions.
18137 2011-03-22 Richard Henderson <rth@redhat.com>
18139 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
18140 (avr_incoming_return_addr_rtx): New.
18141 (emit_push_byte): New.
18142 (expand_prologue): Use it. Remove incorrect dwarf annotation for
18143 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
18144 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
18145 (emit_pop_byte): New.
18146 (expand_epilogue): Use it. Pop frame pointer by bytes.
18147 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
18148 (INCOMING_RETURN_ADDR_RTX): New.
18149 (INCOMING_FRAME_SP_OFFSET): New.
18150 (ARG_POINTER_CFA_OFFSET): New.
18151 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
18152 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
18155 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
18157 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18159 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18160 (FUNCTION_ARG_ADVANCE): Likewise.
18161 * tm.texi.in: Change references to them to hook references.
18162 * tm.texi: Regenerate.
18163 * targhooks.c (default_function_arg): Eliminate check for target
18165 (default_function_incoming_arg): Likewise.
18166 (default_function_arg_advance): Likewise.
18167 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
18168 (function_arg_advance): Likewise.
18169 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18171 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
18173 * tree.c (build_call_1): New function.
18174 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
18176 2011-03-22 Richard Guenther <rguenther@suse.de>
18178 PR tree-optimization/48228
18179 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
18180 for single-arg PHIs.
18182 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
18184 PR rtl-optimization/48143
18185 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
18186 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
18187 sse2_cvtps2pd): Likewise.
18189 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18191 * recog.c (canonicalize_change_group): Use validate_unshare_change.
18193 2011-03-22 Richard Guenther <rguenther@suse.de>
18195 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
18196 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
18197 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
18198 and REALIGN_LOAD_EXPR.
18199 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
18200 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
18201 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
18202 DOT_PROD_EXPR case ...
18203 (expand_expr_real_2): ... here.
18204 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
18205 and REALIGN_LOAD_EXPR.
18206 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
18207 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
18208 (vect_create_epilog_for_reduction): Likewise.
18209 (vectorizable_reduction): Likewise.
18210 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
18211 * tree-vect-stmts.c (vectorizable_load): Likewise.
18213 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
18215 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
18217 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18219 * config/s390/s390.c (s390_delegitimize_address): Fix offset
18220 handling for PLTOFF/GOTOFF.
18222 2011-03-22 Nick Clifton <nickc@redhat.com>
18224 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
18225 trailing backslash from the end of the macro definition.
18227 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18229 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
18232 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
18234 * expr.h (prepare_operand): Move to...
18235 * optabs.h (prepare_operand): ...here and change the insn code
18236 parameter from "int" to "enum insn_code".
18237 (insn_operand_matches): Declare.
18238 * expr.c (init_expr_target): Use insn_operand_matches.
18239 (compress_float_constant): Likewise.
18240 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
18241 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
18242 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
18243 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
18245 (gen_cond_trap): Likewise.
18246 (prepare_operand): Likewise. Change icode to an insn_code.
18247 (insn_operand_matches): New function.
18248 * reload.c (find_reloads_address_1): Use insn_operand_matches.
18249 * reload1.c (gen_reload): Likewise.
18250 * targhooks.c (default_secondary_reload): Likewise.
18252 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
18254 * config/alpha/alpha.md (unspec): New define_c_enum.
18257 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
18260 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
18261 between a call and its CALL_ARG_LOCATION note.
18263 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
18265 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
18267 2011-03-21 Jakub Jelinek <jakub@redhat.com>
18271 * c-common.c (shorten_compare): If primopN is first sign-extended
18272 to opN and then zero-extended to result type, set primopN to opN.
18274 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
18276 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
18277 for barrier handlers.
18279 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18281 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
18282 UNSPEC constants to be in the unspec enumeration, and redefine
18283 all UNSPECV constants to be in the unspecv enumeration, so that
18284 dumps print which unspec/unspec_volatile this is.
18285 * config/rs6000/vector.md (UNSPEC_*): Ditto.
18286 * config/rs6000/paired.md (UNSPEC_*): Ditto.
18287 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
18288 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
18289 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
18291 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
18292 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
18293 UNSPECV_LWSYNC, since these are used as unspec_volatile.
18294 * config/rs6000/sync.md (isync, lwsync): Ditto.
18296 2011-03-21 Richard Guenther <rguenther@suse.de>
18298 * params.def (lto-min-partition): Fix typo.
18300 2011-03-21 Richard Guenther <rguenther@suse.de>
18303 * c-decl.c (grokdeclarator): Drop to the main variant only
18304 for array types. Drop flag_gen_aux_info check.
18306 2011-03-21 Richard Guenther <rguenther@suse.de>
18308 PR translation/47911
18309 * params.def (lto-partitions): Fix typo.
18310 (lto-min-partition): Fix wording.
18312 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
18314 * config/rs6000/t-freebsd: Remove duplication from file.
18316 2011-03-21 Richard Guenther <rguenther@suse.de>
18318 PR middle-end/47661
18319 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
18321 2011-03-21 Richard Guenther <rguenther@suse.de>
18324 * params.def (lto-partitions): Require at least 1 partition.
18326 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18328 * gthr-solaris.h: Remove.
18329 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
18330 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
18331 (LIB_SPEC): Likewise.
18332 * config/sol2.opt (threads): Remove.
18333 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
18334 (sparc*-*-solaris2*): Likewise.
18335 * configure.ac (enable_threads): Enable solaris support.
18336 * configure: Regenerate.
18337 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
18338 * doc/install.texi (Configuration, --enable-threads=lib): Remove
18341 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18343 * config.gcc: Obsolete *-*-solaris2.8*.
18344 * doc/install.texi (Specific, *-*-solaris2*): Document it.
18346 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18349 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
18350 reference. Solaris 8 perl works.
18352 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18355 * doc/install.texi (Prerequisites): Move jar etc. up.
18356 Explain support library version requirements.
18358 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18361 * doc/install.texi (Prerequisites): Move Perl to build
18362 requirements. Always necessary on Solaris 2 with Sun ld.
18364 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18366 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
18368 (Specific, i?86-*-solaris2.[89]): Likewise.
18369 (Specific, i?86-*-solaris2.10): Likewise.
18370 (Specific, mips-sgi-irix6): Likewise.
18371 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
18372 Update for binutils 2.21.
18374 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18376 * configure.ac (gcc_cv_lto_plugin): Fix typo.
18377 Allow -fuse-linker-plugin for non-default plugin linker.
18378 * configure: Regenerate.
18380 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
18383 * gengtype.c (files_rules): Added rule for cp/parser.h.
18385 2011-03-21 Jakub Jelinek <jakub@redhat.com>
18388 * config/s390/s390.c (s390_delegitimize_address): Don't call
18389 lowpart_subreg if orig_x has BLKmode.
18391 2011-03-21 Kai Tietz <ktietz@redhat.com>
18394 * doc/plugins.texi: Adjust documentation for plugin register_callback.
18395 * tree.h (attribute_spec): Add new member affects_type_identity.
18396 * attribs.c (empty_attribute_table): Adjust attribute_spec
18398 * config/alpha/alpha.c: Likewise.
18399 * config/arc/arc.c: Likewise.
18400 * config/arm/arm.c: Likewise.
18401 * config/avr/avr.c: Likewise.
18402 * config/bfin/bfin.c: Likewise.
18403 * config/crx/crx.c: Likewise.
18404 * config/darwin.h: Likewise.
18405 * config/h8300/h8300.c: Likewise.
18406 * config/i386/cygming.h: Likewise.
18407 * config/i386/i386.c: Likewise.
18408 * config/ia64/ia64.c: Likewise.
18409 * config/m32c/m32c.c: Likewise.
18410 * config/m32r/m32r.c: Likewise.
18411 * config/m68hc11/m68hc11.c: Likewise.
18412 * config/m68k/m68k.c: Likewise.
18413 * config/mcore/mcore.c: Likewise.
18414 * config/mep/mep.c: Likewise.
18415 * config/microblaze/microblaze.c: Likewise.
18416 * config/mips/mips.c: Likewise.
18417 * config/rs6000/rs6000.c: Likewise.
18418 * config/rx/rx.c: Likewise.
18419 * config/sh/sh.c: Likewise.
18420 * config/sol2.h: Likewise.
18421 * config/sparc/sparc.c: Likewise.
18422 * config/spu/spu.c: Likewise.
18423 * config/stormy16/stormy16.c: Likewise.
18424 * config/v850/v850.c: Likewise.
18426 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18428 * simplify-rtx.c (simplify_binary_operation_1): Handle
18429 (xor (and A B) C) case when B and C are both constants.
18431 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
18433 * tree-dfa.c (add_referenced_var): Fix typo in comment.
18435 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
18438 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
18440 2011-03-20 Jakub Jelinek <jakub@redhat.com>
18442 PR rtl-optimization/48156
18443 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
18444 assume df and df_lr are not NULL.
18446 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18449 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
18450 between a call and its CALL_ARG_LOCATION note.
18452 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
18455 * config/sh/sh.c (find_barrier): Don't emit a constant pool
18456 between a call and its corresponding CALL_ARG_LOCATION note.
18458 2011-03-19 Anatoly Sokolov <aesok@post.ru>
18460 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
18461 instead of loop. Use HARD_REGISTER_NUM_P predicate.
18462 * haifa-sched.c (setup_ref_regs): Ditto.
18463 * caller-save.c (add_used_regs_1): Ditto.
18464 * dse.c (look_for_hardregs): Ditto.
18465 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
18466 * sched-rgn.c (check_live_1): Ditto.
18468 2011-03-18 Joseph Myers <joseph@codesourcery.com>
18470 * c-decl.c (diagnose_mismatched_decls): Give an error for
18471 redefining a typedef with variably modified type.
18473 2011-03-18 Joseph Myers <joseph@codesourcery.com>
18475 * c-decl.c (grokfield): Don't allow typedefs for structures or
18476 unions with no tag by default.
18477 * doc/extend.texi (Unnamed Fields): Update.
18479 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
18481 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
18482 Rewrite using indirect functions.
18483 (lwp_slwpcb): Ditto.
18484 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
18485 (avx_vinsertf128<mode>): Ditto.
18487 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18489 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
18492 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18494 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
18495 splitting between a call and its corresponding CALL_ARG_LOCATION note.
18497 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
18499 PR rtl-optimization/48170
18500 * gcse.c (hoist_code): Remove bogus asserts.
18502 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
18504 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
18505 computation for prologue/epilogue.
18507 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18509 * Makefile.in (check-consistency): Remove.
18511 2011-03-18 Jakub Jelinek <jakub@redhat.com>
18514 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
18515 arange_table_in_use is 0, but either text_section_used or
18516 cold_text_section_used is true. Don't call it if
18517 !info_section_emitted.
18519 2011-03-18 Anatoly Sokolov <aesok@post.ru>
18521 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
18522 FUNCTION_VALUE_REGNO_P): Remove.
18523 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
18525 * config/avr/avr.c (avr_ret_register): Make static inline.
18526 (avr_function_value_regno_p): New function.
18527 (avr_libcall_value): Make static. Add 'func' argument.
18528 (avr_function_value): Make static. Rename 'func' argument to
18529 'fn_decl_or_type', forward it to avr_libcall_value. Call
18530 avr_ret_register function instead of RET_REGISTER macro.
18531 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18533 2011-03-18 Jason Merrill <jason@redhat.com>
18536 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
18538 2011-03-18 Richard Guenther <rguenther@suse.de>
18540 * doc/install.texi (--enable-gold): Remove.
18541 (--with-plugin-ld): Document.
18542 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
18544 2011-03-18 Andrew Pinski <pinskia@gmail.com>
18546 PR middle-end/47790
18547 * expr.c (optimize_bitfield_assignment_op): Revamp to work
18548 again after expansion changes.
18550 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
18552 * combine.c (try_combine): Do simplification only call of
18553 subst() on i2 even when i1 is present. Update comments.
18555 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
18557 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
18558 and UNSPEC_PCREL_SYMOFF.
18560 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18562 * config/s390/s390.md: Use define_c_enum for the unspec constant
18565 2011-03-18 Richard Henderson <rth@redhat.com>
18566 Jakub Jelinek <jakub@redhat.com>
18569 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
18570 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
18572 2011-03-17 Anatoly Sokolov <aesok@post.ru>
18574 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18575 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
18576 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
18577 Change return type to bool.
18578 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18580 2011-03-17 Jakub Jelinek <jakub@redhat.com>
18583 * var-tracking.c (prepare_call_arguments): If CALL target
18584 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
18585 pc instead of looking it up using cselib_lookup and use
18586 Pmode for it if x has VOIDmode.
18587 * dwarf2out.c (gen_subprogram_die): If also both first and
18588 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
18591 * function.c (assign_parms): For data.passed_pointer parms
18592 use MEM of data.entry_parm instead of data.entry_parm itself
18593 as DECL_INCOMING_RTL.
18594 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
18595 also when passed and declared mode is the same, DECL_RTL
18596 is a MEM with pseudo as address and DECL_INCOMING_RTL is
18599 2011-03-16 Jeff Law <law@redhat.com>
18601 PR rtl-optimization/37273
18602 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18603 handle them like argument loads from stack slots. Do not double
18604 count memory for memory constants and argument loads from stack slots.
18606 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
18609 * var-tracking.c (prepare_call_arguments): Check SUBREG.
18611 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
18614 * config/i386/i386.opt: Add Save to -mavx and -mfma.
18616 2011-03-17 Jakub Jelinek <jakub@redhat.com>
18619 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
18621 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
18622 Clear call_arg_locations and call_arg_loc_last always.
18624 PR middle-end/48152
18625 * var-tracking.c (prepare_call_arguments): If argument needs to be
18626 passed by reference, adjust argtype and mode.
18628 2011-03-17 Richard Guenther <rguenther@suse.de>
18630 PR middle-end/48134
18631 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
18632 a value make sure to fold the statement.
18634 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
18637 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
18638 return condition with !cfun->calls_alloca.
18640 2011-03-17 Richard Guenther <rguenther@suse.de>
18643 * lto-cgraph.c (input_overwrite_node): Clear the abstract
18644 origin for decls in other ltrans units.
18645 (input_varpool_node): Likewise.
18647 2011-03-17 Richard Guenther <rguenther@suse.de>
18649 PR middle-end/48165
18650 * tree-object-size.c (compute_object_offset): Properly return
18651 the offset operand of MEM_REFs as sizetype.
18653 2011-03-17 Jakub Jelinek <jakub@redhat.com>
18655 PR rtl-optimization/48141
18656 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
18657 * dse.c: Include params.h.
18658 (active_local_stores_len): New variable.
18659 (add_wild_read, dse_step1): Clear it when setting active_local_stores
18661 (record_store, check_mem_read_rtx): Decrease it when removing
18663 (scan_insn): Likewise. Increase it when adding to chain, if it
18664 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
18665 set active_local_stores to NULL before the addition.
18666 * Makefile.in (dse.o): Depend on $(PARAMS_H).
18668 PR rtl-optimization/48141
18669 * dse.c (record_store): If no positions are needed in an insn
18670 that cannot be deleted, at least unchain it from active_local_stores.
18672 2011-03-16 Dodji Seketeli <dodji@redhat.com>
18675 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
18676 (lookup_type_die_strip_naming_typedef): ... here.
18677 (get_context_die): Use it.
18678 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
18679 the anonymous struct named by the naming typedef.
18681 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
18684 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
18685 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18687 2011-03-16 Jeff Law <law@redhat.com>
18689 * tree-vrp.c (identify_jump_threads): Slightly simplify type
18690 check for operands of conditional. Allow type to be a pointer.
18692 2011-03-16 Richard Guenther <rguenther@suse.de>
18694 PR tree-optimization/48149
18695 * fold-const.c (fold_binary_loc): Fold
18696 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
18698 2011-03-16 Richard Guenther <rguenther@suse.de>
18700 PR tree-optimization/26134
18701 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
18702 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
18703 (non_rewritable_mem_ref_base): Handle complex type component
18704 accesses, constrain offsets for vector and complex extracts
18707 2011-03-16 Richard Guenther <rguenther@suse.de>
18709 PR tree-optimization/48146
18710 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
18711 operands avoiding the need for renaming.
18713 2011-03-16 Richard Guenther <rguenther@suse.de>
18715 * gimple-fold.c (maybe_fold_reference): Open-code relevant
18716 constant folding. Move MEM_REF canonicalization first.
18717 Rely on fold_const_aggregate_ref for initializer folding.
18718 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
18720 2011-03-16 Jakub Jelinek <jakub@redhat.com>
18722 PR middle-end/48136
18723 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18724 arg0/arg1 or their arguments are always fold converted to matching
18727 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
18730 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18733 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
18734 Handle in-tree gold.
18735 (ld_vers): Extract binutils version for gold.
18736 (gcc_cv_ld_hidden): Handle gold here.
18737 (gcc_cv_lto_plugin): Determine level of linker plugin support.
18738 * configure: Regenerate.
18739 * config.in: Regenerate.
18740 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
18741 -fuse-linker-plugin otherwise.
18742 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
18743 (LINK_COMMAND_SPEC): Use it.
18744 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
18746 2011-03-16 Jakub Jelinek <jakub@redhat.com>
18748 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
18749 * calls.c: Remove debug.h include.
18750 (emit_call_1): Don't call virtual_call_token debug hook.
18751 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
18752 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
18753 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
18754 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
18755 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
18756 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
18757 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
18758 dwarf2out_virtual_call): Remove.
18759 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
18760 copy_call_info and virtual_call hooks.
18761 (dwarf2out_init): Don't initialize vcall_insn_table,
18762 debug_dcall_section and debug_vcall_section.
18763 (prune_unused_types): Don't mark nodes from dcall_table.
18764 (dwarf2out_finish): Don't output dcall or vcall tables.
18765 * final.c (final_scan_insn): Don't call direct_call or
18766 virtual_call debug hooks.
18767 * debug.h (struct gcc_debug_hooks): Remove direct_call,
18768 virtual_call_token, copy_call_info and virtual_call hooks.
18769 (debug_nothing_uid): Remove prototype.
18770 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
18771 copy_call_info and virtual_call hooks.
18772 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
18773 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
18774 * debug.c (do_nothing_debug_hooks): Likewise.
18775 (debug_nothing_uid): Remove.
18776 * doc/invoke.texi (-fenable-icf-debug): Remove.
18777 * common.opt (-fenable-icf-debug): Likewise.
18779 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
18780 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
18781 call's MEM. Handle functions returning aggregate through a hidden
18782 first pointer. For virtual calls add clobbered pc to call arguments
18784 * dwarf2out.c (gen_subprogram_die): Emit
18785 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
18789 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
18790 * rtl.h (ENTRY_VALUE_EXP): Define.
18791 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
18792 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
18793 * print-rtl.c (print_rtx): Likewise.
18794 * gengtype.c (adjust_field_rtx_def): Likewise.
18795 * var-tracking.c (vt_add_function_parameter): Adjust
18796 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
18797 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
18798 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
18799 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
18800 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
18802 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
18803 Call var_location debug hook even on CALL_INSNs.
18804 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
18805 * rtl.def (ENTRY_VALUE): New.
18806 * dwarf2out.c: Include cfglayout.h.
18807 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
18808 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
18809 (struct call_arg_loc_node): New type.
18810 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
18811 tail_call_site_count): New variables.
18812 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
18813 DW_TAG_GNU_call_site_parameter.
18814 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
18815 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
18816 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
18817 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
18818 and DW_AT_GNU_all_source_call_sites.
18819 (mem_loc_descriptor): Handle ENTRY_VALUE.
18820 (add_src_coords_attributes): Don't add enything if
18821 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
18822 (dwarf2out_abstract_function): Save and clear call_arg_location,
18823 call_site_count and tail_call_site_count around dwarf2out_decl call.
18824 (gen_call_site_die): New function.
18825 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
18826 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
18827 (dwarf2out_function_decl): Clear call_arg_locations,
18828 call_arg_loc_last, set call_site_count and tail_call_site_count
18829 to -1 and free block_map.
18830 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
18831 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
18832 followed by any real instructions.
18833 (dwarf2out_begin_function): Set call_site_count and
18834 tail_call_site_count to 0.
18835 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
18836 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
18837 attempt to force a DIE for it and worst case remove the attribute.
18838 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
18839 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
18841 * var-tracking.c: Include tm_p.h.
18842 (vt_stack_adjustments): For calls call note_register_arguments.
18843 (argument_reg_set): New variable.
18844 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
18845 ensure the VALUE is resolved.
18846 (call_arguments): New variable.
18847 (prepare_call_arguments): New function.
18848 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
18849 (struct expand_loc_callback_data): Add ignore_cur_loc field.
18850 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
18851 always use the best expression.
18852 (vt_expand_loc): Add ignore_cur_loc argument.
18853 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
18854 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
18855 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
18856 note for all calls.
18857 (vt_add_function_parameter): Use cselib_lookup_from_insn.
18858 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
18859 argument. Don't call cselib_preserve_only_values and
18860 cselib_reset_table.
18861 (note_register_arguments): New function.
18862 (vt_initialize): Compute argument_reg_set. Call
18863 vt_add_function_parameters before processing basic blocks instead of
18864 afterwards. For calls call prepare_call_arguments before calling
18865 cselib_process_insn.
18866 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
18867 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
18868 (var-tracking.o): Depend on $(TM_P_H).
18869 * cfglayout.h (insn_scope): New prototype.
18870 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
18871 * cfglayout.c (insn_scope): No longer static.
18872 * insn-notes.def (CALL_ARG_LOCATION): New.
18873 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
18874 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
18875 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
18876 nothing for DECL_EXTERNAL BLOCK_VARS.
18878 2011-03-16 Alan Modra <amodra@gmail.com>
18881 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18882 create invalid offset address for vsx splat insn.
18883 * config/rs6000/predicates.md (splat_input_operand): New.
18884 * config/rs6000/vsx.md (vsx_splat_*): Use it.
18886 2011-03-15 Xinliang David Li <davidxl@google.com>
18889 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
18890 (normalize_preds): New function.
18891 (is_use_properly_guarded): Normalize def predicates.
18893 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18896 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
18897 in the output template.
18899 2011-03-15 Richard Guenther <rguenther@suse.de>
18901 PR middle-end/47650
18902 * tree-pretty-print.c (dump_function_declaration): Properly
18903 dump unprototyped and varargs function types.
18905 2011-03-15 Richard Guenther <rguenther@suse.de>
18907 PR tree-optimization/13954
18908 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
18911 2011-03-15 Richard Guenther <rguenther@suse.de>
18913 PR tree-optimization/48037
18914 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
18915 selects into BIT_FIELD_REFs.
18916 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
18919 2011-03-15 Jakub Jelinek <jakub@redhat.com>
18921 PR tree-optimization/48129
18922 * builtins.c (fold_builtin_snprintf): Convert to type of
18923 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
18924 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
18926 2011-03-15 Richard Guenther <rguenther@suse.de>
18928 PR tree-optimization/41490
18929 * tree-ssa-dce.c (propagate_necessity): Handle returns without
18930 value but with VUSE.
18931 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
18933 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
18934 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
18935 * tree-tailcall.c (find_tail_calls): Ignore returns.
18937 2011-03-15 Richard Guenther <rguenther@suse.de>
18939 PR middle-end/48031
18940 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
18941 or variable-indexed array accesses when in gimple form.
18943 2011-03-15 Richard Guenther <rguenther@suse.de>
18945 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
18947 2011-03-15 Alan Modra <amodra@gmail.com>
18950 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
18951 presume symbol_refs without a symbol_ref_decl are suitably
18952 aligned, nor other trees we may see here. Handle anchor symbols.
18953 (legitimate_constant_pool_address_p): Comment. Add mode param.
18954 Check cmodel=medium addresses. Adjust all calls.
18955 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
18956 creating cmodel=medium optimized access to locals.
18957 * config/rs6000/constraints.md (R): Pass QImode to
18958 legitimate_constant_pool_address_p.
18959 * config/rs6000/predicates.md (input_operand): Pass mode to
18960 legitimate_constant_pool_address_p.
18961 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
18964 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18967 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
18968 64-bit constants being loaded into registers other than GPRs such
18969 as loading 0 into a VSX register.
18971 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18973 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
18975 2011-03-14 Jakub Jelinek <jakub@redhat.com>
18977 PR middle-end/47917
18978 * builtins.c (fold_builtin_snprintf): New function.
18979 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
18980 (fold_builtin_4): Likewise.
18982 PR middle-end/38878
18983 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
18984 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
18985 and C - X == X also strip nops from +/-/p+ operand.
18986 When optimizing -X == C, fold C to arg0's type.
18989 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
18990 emit it as add_AT_int instead of add_AT_unsigned.
18992 2011-03-14 Tom Tromey <tromey@redhat.com>
18994 * unwind-dw2.c: Include sys/sdt.h if it exists.
18995 (_Unwind_DebugHook): Use STAP_PROBE2.
18996 * config.in, configure: Rebuild.
18997 * configure.ac: Check for sys/sdt.h.
18999 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
19001 * config/i386/i386.md (ROUND_FLOOR): New constant.
19002 (ROUND_CEIL): Ditto.
19003 (ROUND_TRUNC): Ditto.
19004 (ROUND_MXCSR): Ditto.
19005 (ROUND_NO_EXC): Ditto.
19006 (rint<mode>2): Use new defines instead of numerical constants.
19007 (floor<mode>2): Ditto.
19008 (ceil<mode>2): Ditto.
19009 (btrunc<mode>2): Ditto.
19010 * config/i386/i386-builtin-types.def: Define ROUND function type
19012 * config/i386/i386.c (enum ix86_builtins): Add
19013 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
19014 (struct builtin_description): Add
19015 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
19016 (ix86_expand_sse_round): New static function.
19017 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
19019 (ix86_builtin_vectorized_function): Handle
19020 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
19022 2011-03-14 Tom Tromey <tromey@redhat.com>
19024 * c-parser.c (c_parser_asm_string_literal): Clear
19025 warn_overlength_strings.
19027 2011-03-14 Tom Tromey <tromey@redhat.com>
19029 * c-parser.c (disable_extension_diagnostics): Save
19030 warn_overlength_strings.
19031 (restore_extension_diagnostics): Restore warn_overlength_strings.
19033 2011-03-14 Jakub Jelinek <jakub@redhat.com>
19035 * BASE-VER: Change to 4.7.0.
19037 2011-03-14 Richard Guenther <rguenther@suse.de>
19039 PR middle-end/48098
19040 * tree.c (build_vector_from_val): Adjust assert to requirements
19043 2011-03-14 Jakub Jelinek <jakub@redhat.com>
19046 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
19048 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
19050 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
19051 terms of target_flags_explicit. Adjust copyright year.
19053 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
19054 * config/rs6000/t-freebsd: New file. Add override for
19057 2011-03-13 Chris Demetriou <cgd@google.com>
19059 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
19060 (-fno-diagnostics-show-option): this, to reflect current default.
19061 (-Werror=): Update text about -fno-diagnostics-show-option.
19063 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
19066 * config/rs6000/predicates.md (easy_vector_constant_add_self,
19067 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
19068 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
19069 mode is not V2DImode or V2DFmode.
19070 (vspltis_constant): Do not handle V2DImode and V2DFmode.
19071 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
19072 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
19074 (movdi_internal64): Likewise.
19076 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
19078 PR tree-optimization/47127
19079 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
19081 (set_cloog_options): Same.
19082 (scop_to_clast): Same.
19083 (print_clast_stmt): Do not call cloog_state_malloc and
19085 (print_generated_program): Same.
19087 * graphite-clast-to-gimple.h (cloog_state): Declared.
19088 (scop_to_clast): Adjust declaration.
19089 * graphite.c (cloog_state): Defined here.
19090 (graphite_initialize): Call cloog_state_malloc.
19091 (graphite_finalize): Call cloog_state_free.
19093 2011-03-11 Jason Merrill <jason@redhat.com>
19095 * attribs.c (lookup_attribute_spec): Take const_tree.
19098 2011-03-11 Joseph Myers <joseph@codesourcery.com>
19100 * config/sparc/sparc.c (sparc_option_override): Use
19101 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
19103 2011-03-11 Richard Guenther <rguenther@suse.de>
19105 PR tree-optimization/48067
19106 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
19107 multiplication result will be only used once on the target
19110 2011-03-11 Richard Guenther <rguenther@suse.de>
19112 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
19114 2011-03-11 Richard Guenther <rguenther@suse.de>
19117 * tree.c (find_decls_types_r): Do not walk types only reachable
19118 from IDENTIFIER_NODEs.
19120 2011-03-11 Jakub Jelinek <jakub@redhat.com>
19122 PR middle-end/48044
19123 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
19124 all vnode->force_output nodes as needed.
19126 2011-03-11 Jason Merrill <jason@redhat.com>
19129 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
19130 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
19132 2011-03-11 Martin Jambor <mjambor@suse.cz>
19134 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
19137 2011-03-11 Jakub Jelinek <jakub@redhat.com>
19139 PR tree-optimization/48063
19140 * ipa-inline.c (cgraph_decide_inlining): Don't try to
19141 inline functions called once if !tree_can_inline_p (node->callers).
19143 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
19145 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
19147 * config/score/score3.c: Delete.
19148 * config/score/score3.h: Delete.
19149 * config/score/mul-div.S: Delete.
19150 * config/score/sfp-machine.h: Add new file.
19151 * config/score/constraints.md: Add new file.
19152 * config/score/t-score-softfp: Add new file.
19153 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
19154 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
19155 (score7_extra_constraint): Delete.
19156 (score7_option_override): Remove unused code.
19157 * config/score/score.c: Remove score3 and score5 define and code.
19158 * config/score/score.h: Remove score3 and score5 define and code.
19159 * config/score/score.md: Remove score3 template and unusual insn.
19160 * config/score/score.opt: Remove score3 and score5 options.
19162 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19164 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
19165 when _HPUX_SOURCE is defined.
19166 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
19168 2011-03-10 Jason Merrill <jason@redhat.com>
19171 * stor-layout.c (layout_type): Don't set structural equality
19172 on arrays of incomplete type.
19173 * tree.c (type_hash_eq): Handle comparing them properly.
19175 2011-03-10 Jakub Jelinek <jakub@redhat.com>
19178 * config/s390/s390.c (s390_delegitimize_address): Make sure the
19179 result mode matches original rtl mode.
19181 2011-03-10 Nick Clifton <nickc@redhat.com>
19183 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
19184 (andsi3, andsi3_flags): Fix timings for three operand alternative.
19186 2011-03-09 Jakub Jelinek <jakub@redhat.com>
19188 PR rtl-optimization/47866
19189 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
19190 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
19191 if target wasn't scalar.
19192 * function.c (assign_stack_temp_for_type): Assert that neither
19193 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
19194 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
19196 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
19198 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19200 * config/s390/s390-protos.h (s390_label_align): New prototype.
19201 * config/s390/s390.c (s390_label_align): New function.
19202 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
19204 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
19207 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
19208 V2DI/V2DF constants. Only all 0's or all 1's are easy.
19209 (output_vec_const_move): Ditto.
19211 2011-03-08 Anatoly Sokolov <aesok@post.ru>
19213 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
19214 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
19215 * config/mips/mips.c (mips_preferred_reload_class): Make static.
19216 Change 'rclass' argument and result type to reg_class_t.
19217 (TARGET_PREFERRED_RELOAD_CLASS): Define.
19219 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
19221 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19222 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
19223 (TARGET_MEMORY_MOVE_COST): Define.
19224 (avr_register_move_cost, avr_memory_move_cost): New Functions.
19226 2011-03-08 Jakub Jelinek <jakub@redhat.com>
19229 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
19232 PR tree-optimization/48022
19233 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
19236 2011-03-07 Jakub Jelinek <jakub@redhat.com>
19239 * var-tracking.c (find_use_val): Return NULL for
19240 cui->sets && cui->store_p BLKmode MEMs.
19242 2011-03-07 Anatoly Sokolov <aesok@post.ru>
19244 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
19246 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
19247 xstormy16_print_operand_address): Remove.
19248 * config/stormy16/stormy16.c (xstormy16_print_operand,
19249 xstormy16_print_operand_address): Make static.
19250 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19252 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
19255 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19256 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
19259 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
19262 * cfgloopmanip.c (fix_bb_placements): Return immediately
19263 if FROM is BASE_LOOP's header.
19265 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
19267 * gimplify.c (gimplify_function_tree): Fix building calls
19268 to __builtin_return_address.
19270 2011-03-07 Alan Modra <amodra@gmail.com>
19272 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
19273 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
19274 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
19275 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
19277 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
19278 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
19279 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
19280 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
19281 * config/rs6000/rs6000.c
19282 (rs6000_elf_end_indicate_exec_stack): Rename to..
19283 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
19284 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
19285 (rs6000_file_start): ..here.
19286 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
19287 file scope variables.
19288 (call_ABI_of_interest): New function.
19289 (init_cumulative_args): Set above vars when function return value
19290 is a float, vector, or small struct.
19291 (rs6000_function_arg_advance_1): Likewise for function args.
19292 (rs6000_va_start): Set rs6000_passes_float if variable arg function
19293 references float args.
19295 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
19297 * doc/cfg.texi: Remove "See" before @ref.
19298 * doc/invoke.texi: Likewise.
19300 2011-03-05 Jason Merrill <jason@redhat.com>
19302 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
19304 2011-03-05 Anthony Green <green@moxielogic.com>
19306 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
19308 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
19310 PR rtl-optimization/47899
19311 * cfgloopmanip.c (fix_bb_placements): Fix first argument
19312 to flow_loop_nested_p when moving the loop upward.
19314 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
19317 * arm.md (movhi_insn_arch4): Accept any immediate constant.
19319 2011-03-05 Jakub Jelinek <jakub@redhat.com>
19321 PR tree-optimization/47967
19322 * ipa-cp.c (build_const_val): Return NULL instead of creating
19323 VIEW_CONVERT_EXPR for mismatching sizes.
19324 (ipcp_create_replace_map): Return NULL if build_const_val failed.
19325 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
19326 give up on versioning.
19328 2011-03-05 Alan Modra <amodra@gmail.com>
19331 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19332 full cmodel medium/large lo_sum + high addresses.
19334 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19336 * config/s390/s390.c (s390_decompose_address): Reject non-literal
19337 pool references in UNSPEC_LTREL_OFFSET.
19339 2011-03-04 Jan Hubicka <jh@suse.cz>
19342 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
19343 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
19344 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
19346 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
19347 cgraph_add_thunk): Add node pointers.
19348 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
19349 associated to right node.
19350 (input_node): Update use of cgraph_same_body_alias
19351 and cgraph_add_thunk.
19353 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
19355 * config/i386/i386.opt (mprefer-avx128): New flag.
19356 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
19357 modes when the flag -mprefer-avx128 is on.
19359 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
19361 * dwarf2out.c (compare_loc_operands): Fix address handling.
19363 2011-03-04 Alan Modra <amodra@gmail.com>
19365 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
19367 2011-03-04 Richard Guenther <rguenther@suse.de>
19369 PR middle-end/47968
19370 * expmed.c (extract_bit_field_1): Prefer vector modes that
19371 vec_extract patterns can handle.
19373 2011-03-04 Richard Guenther <rguenther@suse.de>
19375 PR middle-end/47975
19376 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
19378 2011-03-04 Richard Henderson <rth@redhat.com>
19380 * explow.c (emit_stack_save): Remove 'after' parameter.
19381 (emit_stack_restore): Likewise.
19382 * expr.h: Update to match.
19383 * builtins.c, calls.c, stmt.c: Likewise.
19384 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
19385 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
19386 * function.c (expand_function_end): Insert the emit_stack_save
19387 sequence before parm_birth_insn instead of after.
19389 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
19391 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
19392 (ssse3_pmaddubsw128): Ditto.
19393 (ssse3_pmaddubsw): Ditto.
19395 2011-03-03 Steve Ellcey <sje@cup.hp.com>
19397 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
19399 2011-03-03 Jakub Jelinek <jakub@redhat.com>
19402 * gimplify.c (omp_add_variable): Only call omp_notice_variable
19403 on TYPE_SIZE_UNIT if it is a DECL.
19406 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
19407 first operand is not is_gimple_mem_ref_addr, try to fold it.
19408 If the operand still isn't is_gimple_mem_ref_addr, clear
19411 2011-03-03 Richard Guenther <rguenther@suse.de>
19413 PR middle-end/47283
19414 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
19416 (refs_may_alias_p_1): For release branches return true if
19417 we are confused by our input.
19419 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19421 * config/s390/s390.c (s390_function_value): Rename to ...
19422 (s390_function_and_libcall_value): ... this.
19423 (s390_function_value): New function.
19424 (s390_libcall_value): New function.
19425 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
19426 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
19427 target macro definitions.
19428 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
19430 2011-03-02 Joseph Myers <joseph@codesourcery.com>
19432 * config/i386/freebsd64.h (CC1_SPEC): Define.
19433 * config/i386/linux64.h (CC1_SPEC): Define.
19434 * config/i386/x86-64.h (CC1_SPEC): Don't define.
19436 2011-03-02 Anatoly Sokolov <aesok@post.ru>
19438 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19440 * config/stormy16/stormy16.c: Include reload.h.
19441 (xstormy16_memory_move_cost): New function.
19442 (TARGET_MEMORY_MOVE_COST): Define.
19444 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
19446 PR rtl-optimization/47925
19447 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
19448 with side effects. Remove the more-specific check for volatile asms.
19450 2011-03-02 Alan Modra <amodra@gmail.com>
19453 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
19454 toc relative addresses for valid offsets.
19456 2011-03-01 Richard Guenther <rguenther@suse.de>
19458 PR tree-optimization/47890
19459 * tree-vect-loop.c (get_initial_def_for_induction): Set
19460 related stmt properly.
19462 2011-03-01 Richard Guenther <rguenther@suse.de>
19465 * lto-streamer.c (lto_record_common_node): Also register
19466 the canonical type.
19468 2011-03-01 Richard Guenther <rguenther@suse.de>
19471 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19472 Do not stream DECL_ABSTRACT_ORIGIN.
19473 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
19474 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
19475 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19476 Do not stream DECL_ABSTRACT_ORIGIN.
19477 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
19478 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
19480 2011-02-28 Anatoly Sokolov <aesok@post.ru>
19482 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
19483 FUNCTION_VALUE_REGNO_P): Remove.
19484 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
19485 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
19486 Add 'outgoing' argument.
19487 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
19489 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19490 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19492 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
19495 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
19496 (lookup_filename): Likewise.
19497 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
19499 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
19500 Jakub Jelinek <jakub@redhat.com>
19502 PR middle-end/47893
19503 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
19504 (assign_stack_local_1): Change last argument type to int.
19505 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
19506 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
19507 don't record padding space into frame_space_list nor use those areas.
19508 (assign_stack_local): Adjust caller.
19509 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
19510 of assign_stack_local, pass 0 as last argument.
19511 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
19514 2011-02-28 Jakub Jelinek <jakub@redhat.com>
19517 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
19518 Use target address_mode and pointer_mode hooks instead of hardcoded
19519 Pmode and ptr_mode. Handle some simple cases of extending if
19520 POINTERS_EXTEND_UNSIGNED < 0.
19521 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
19522 Call convert_debug_memory_address.
19523 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
19524 convert_debug_memory_address.
19526 PR middle-end/46790
19527 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
19528 * configure: Regenerated.
19529 * config.in: Regenerated.
19530 * varasm.c (default_function_section): Return NULL
19531 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
19533 2011-02-28 Martin Jambor <mjambor@suse.cz>
19535 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
19536 the description to match the printed values.
19538 2011-02-28 Richard Guenther <rguenther@suse.de>
19540 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
19541 of the copied scope tree.
19543 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19545 * doc/extend.texi (Function Attributes): Avoid deeply (and
19546 wrongly) nested tables.
19548 2011-02-27 Jakub Jelinek <jakub@redhat.com>
19550 PR middle-end/47903
19551 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
19552 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
19553 r isn't op0 nor op1.
19555 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
19557 * config/avr/avr.md: Remove magic comment for emacs.
19559 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
19562 * config/avr/avr.c (avr_option_override): Use error on bad options.
19563 (avr_help): New function.
19564 (TARGET_HELP): Define.
19566 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
19569 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
19570 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
19572 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
19574 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
19575 (ARM Options): Ditto.
19576 (i386 and x86-64 Options): Ditto.
19577 (RX Options): Ditto.
19578 (SPARC Options): Ditto.
19580 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
19582 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
19583 FreeBSD 6 and later. Generally use cpu generic.
19585 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
19587 * doc/cpp.texi: Update copyright years.
19589 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
19592 * config/lm32/lm32.md (ashrsi3): Added needed variable.
19594 2011-02-25 Jon Beniston <jon@beniston.com>
19597 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
19598 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
19599 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
19600 (lm32_block_move_inline): Add type cast to remove warning.
19601 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
19602 (gen_int_relational): Move declarations to start of function.
19604 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
19606 PR tree-optimization/45470
19607 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
19608 can throw internally only.
19609 * tree-vect-stmts.c (vectorizable_call): Likewise.
19611 2011-02-24 Anatoly Sokolov <aesok@post.ru>
19613 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
19614 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19615 * config/stormy16/stormy16-protos.h
19616 (xstormy16_preferred_reload_class): Remove.
19617 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
19618 static. Change 'rclass' argument and return type to reg_class_t.
19619 (TARGET_PREFERRED_RELOAD_CLASS,
19620 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19622 2011-02-24 Richard Guenther <rguenther@suse.de>
19624 * lto-streamer-in.c (input_bb): Do not find referenced vars
19625 in debug statements.
19627 2011-02-23 Jason Merrill <jason@redhat.com>
19629 * common.opt (fabi-version): Document v5 and v6.
19631 2011-02-23 Richard Guenther <rguenther@suse.de>
19633 PR tree-optimization/47849
19634 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
19636 2011-02-23 Jie Zhang <jie@codesourcery.com>
19638 * opts-common.c (decode_cmdline_option): Print empty string
19639 argument as "" in decoded->orig_option_with_args_text.
19640 * gcc.c (execute): Print empty string argument as ""
19641 in the verbose output.
19642 (do_spec_1): Keep empty string argument.
19644 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
19646 * config.gcc: Declare score-* and crx-* obsolete.
19648 2011-02-23 Jie Zhang <jie@codesourcery.com>
19650 PR rtl-optimization/47763
19651 * web.c (web_main): Ignore naked clobber when replacing register.
19653 2011-02-22 Anatoly Sokolov <aesok@post.ru>
19655 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19658 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
19661 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
19663 2011-02-22 Mike Stump <mikestump@comcast.net>
19665 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
19667 * configure: Regenerate.
19669 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
19671 PR rtl-optimization/46002
19672 * ira-color.c (update_copy_costs): Change class intersection
19673 test to reg_class_contents[] test of 'hard_regno'.
19675 2011-02-21 Joseph Myers <joseph@codesourcery.com>
19677 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
19678 than Driver option.
19679 * config/hpux11.opt (mt): Likewise.
19680 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
19681 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
19682 * config/vax/elf.opt (mno-asm-pic): Likewise.
19683 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
19685 2011-02-21 Mike Stump <mikestump@comcast.net>
19688 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
19689 tree so we can get save the type.
19690 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
19691 for CFString instead of trying to use past the end of the builtins.
19692 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
19693 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
19694 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
19695 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
19696 Rename to darwin_builtin_cfstring.
19697 (darwin_init_cfstring_builtins): Return the built type.
19699 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
19702 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
19703 (_mm256_insert_epi64): Use _mm_insert_epi64.
19705 2011-02-21 Anatoly Sokolov <aesok@post.ru>
19707 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19708 * config/stormy16/stormy16-protos.h
19709 (xstormy16_mode_dependent_address_p): Remove.
19710 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
19711 Make static. Change return type to bool. Change argument type to
19712 const_rtx. Remove dead code.
19713 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19715 2011-02-21 Richard Guenther <rguenther@suse.de>
19718 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
19719 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19720 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
19722 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
19723 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
19725 2011-02-20 Richard Guenther <rguenther@suse.de>
19728 * tree.c (free_lang_data_in_decl): Clean builtins from
19729 the TU decl BLOCK_VARS.
19731 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
19735 * haifa-sched.c (fix_tick_ready): Skip tick computation
19738 2011-02-19 Richard Guenther <rguenther@suse.de>
19741 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
19742 Remove lazy BLOCK_VARS streaming.
19743 (lto_input_ts_block_tree_pointers): Likewise.
19744 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
19746 2011-02-19 Joseph Myers <joseph@codesourcery.com>
19748 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
19750 2011-02-19 Joseph Myers <joseph@codesourcery.com>
19752 * config/i386/biarch32.h, config/i386/mach.h,
19753 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
19755 2011-02-19 Jakub Jelinek <jakub@redhat.com>
19758 * config/i386/i386.md (peephole2 for shift and plus): Use
19759 operands[1] original mode in the first insn.
19761 2011-02-18 Mike Stump <mikestump@comcast.net>
19763 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
19765 2011-02-18 Jan Hubicka <jh@suse.cz>
19767 PR middle-end/47788
19768 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
19769 to zero when the function is not inlinable at all.
19771 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19773 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
19774 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19775 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
19776 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
19777 * config/pa/t-pa64: Likewise.
19778 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
19780 2011-02-18 Jakub Jelinek <jakub@redhat.com>
19783 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
19785 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19788 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
19790 2011-02-18 Anatoly Sokolov <aesok@post.ru>
19792 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
19793 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
19794 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
19795 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19796 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
19797 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
19798 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
19799 m32r_load_postinc_p, m32r_store_preinc_predec_p,
19800 m32r_legitimate_address_p): New functions.
19801 * config/m32r/constraints.md (constraint "S"): Don't use
19802 STORE_PREINC_PREDEC_P.
19803 (constraint "U"): Don't use LOAD_POSTINC_P.
19805 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
19807 PR rtl-optimization/46178
19808 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
19809 compute ira_hard_regno_cover_class[].
19811 2011-02-18 Richard Guenther <rguenther@suse.de>
19814 * lto-streamer.h (lto_global_var_decls): Declare.
19815 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
19816 statics for global var processing.
19818 2011-02-18 Richard Guenther <rguenther@suse.de>
19820 PR tree-optimization/47737
19821 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
19822 edge dominance check.
19824 2011-02-18 Jakub Jelinek <jakub@redhat.com>
19827 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
19828 avoid invalid rtx sharing.
19830 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
19832 * doc/cpp.texi (Obsolete Features): Add background on the
19833 origin of assertions.
19835 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
19837 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
19839 * config/darwin.c (output_objc_section_asm_op): Added support for
19841 (is_objc_metadata): New.
19842 (darwin_objc2_section): New.
19843 (darwin_objc1_section): New.
19844 (machopic_select_section): Added support for ABI v1 and v2.
19845 (darwin_emit_objc_zeroed): New.
19846 (darwin_output_aligned_bss): Detect objc metadata and treat it
19848 (darwin_asm_output_aligned_decl_common): Same.
19849 (darwin_asm_output_aligned_decl_local): Same.
19850 * config/darwin-sections.def: Updated for ABI v1 and v2.
19851 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
19852 compiling Objective-C code for the NeXT runtime, default to using
19853 ABI version 0 for 32-bit, and version 2 for 64-bit.
19855 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19857 * common.opt (optimize_fast): New Variable.
19858 * opts.c (default_options_optimization): Use opts->x_optimize_fast
19859 instead of local variable ofast.
19861 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
19863 * doc/invoke.texi (fobjc-abi-version): Documented.
19864 (fobjc-nilcheck): Documented.
19865 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
19868 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19871 * common.opt (export-dynamic): New Driver option.
19872 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
19874 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19876 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
19878 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
19879 Jan Hubicka <jh@suse.cz>
19883 * cfgexpand.c (account_used_vars_for_block): Remove.
19884 (estimated_stack_frame_size): Use referenced vars.
19885 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
19886 that were referenced in the original function. Test src_fn
19887 rather than cfun. Drop redundant get_var_ann.
19888 (setup_one_parameter): Drop redundant get_var_ann.
19889 (declare_return_variable): Likewise.
19890 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
19891 (copy_arguments_for_versioning): Drop redundant get_var_ann.
19892 * ipa-inline.c (compute_inline_parameters): Do not compute
19893 disregard_inline_limits here.
19894 (compute_inlinable_for_current, pass_inlinable): New.
19895 (pass_inline_parameters): Require PROP_referenced_vars.
19896 * cgraphunit.c (cgraph_process_new_functions): Don't run
19897 compute_inline_parameters explicitly unless function is in SSA form.
19898 (cgraph_analyze_function): Set .disregard_inline_limits.
19899 * tree-sra.c (convert_callers): Compute inliner parameters
19900 only for functions already in SSA form.
19902 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19904 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
19905 -mlittle-endian-data.
19907 2011-02-17 Joseph Myers <joseph@codesourcery.com>
19909 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
19910 -mno-fpu, not -fpu and -no-fpu.
19911 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
19912 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
19914 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
19917 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
19918 input reload with PLUS RTX.
19920 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19922 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
19923 of InverseVar(MDMX).
19925 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19927 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
19930 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19932 * config/mn10300/mn10300.opt (mno-crt0): New.
19934 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19936 * config/m68k/uclinux.opt (static-libc): New Driver option.
19938 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19940 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
19942 2011-02-16 Joseph Myers <joseph@codesourcery.com>
19944 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
19945 %{muser-extend-enabled}.
19947 2011-02-16 Richard Guenther <rguenther@suse.de>
19949 PR tree-optimization/47738
19950 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
19951 the TODO from tree_predictive_commoning.
19953 2011-02-15 Jeff Law <law@redhat.com>
19956 2011-01-25 Jeff Law <law@redhat.com>
19958 PR rtl-optimization/37273
19959 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19960 handle them like argument loads from stack slots. Do not double
19961 count memory for memory constants and argument loads from stack slots.
19963 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19966 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
19967 mode for vector constants. Remove code that checks for TImode.
19969 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19973 * cgraph.h (compute_inline_parameters): Return void.
19974 * ipa-inline.c (compute_inline_parameters): Adjust.
19976 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19980 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
19982 * cfgexpand.c (estimated_stack_frame_size): Likewise.
19983 * ipa-inline.c (compute_inline_parameters): Adjust.
19985 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19989 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
19990 Adjust all users. Pass FN to...
19991 * tree-flow-inline.h (first_referenced_var): ... this. Add
19993 * ipa-struct-reorg.c: Adjust.
19994 * tree-dfa.c: Adjust.
19995 * tree-into-ssa.c: Adjust.
19996 * tree-sra.c: Adjust.
19997 * tree-ssa-alias.c: Adjust.
19998 * tree-ssa-live.c: Adjust.
19999 * tree-ssa.c: Adjust.
20000 * tree-ssanames.c: Adjust.
20001 * tree-tailcall.c: Adjust.
20003 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
20007 * tree-flow.h (referenced_var_lookup): Add fn parameter.
20008 Adjust all callers.
20009 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
20010 * tree-flow-inline.h: Adjust.
20011 * gimple-pretty-print.c: Adjust.
20012 * tree-into-ssa.c: Adjust.
20013 * tree-ssa.c: Adjust.
20014 * cfgexpand.c: Adjust.
20016 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
20018 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
20019 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20020 (EXTRA_CONSTRAINT): Delete.
20021 * config/iq2000/constraints.md: New file.
20022 * config/iq2000/iq2000.md: Include it.
20023 (define_insn ""): Delete.
20024 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
20025 unsupported constraint letters from patterns.
20026 (call_value, call_value_internal1): Likewise.
20027 (call_value_multiple_internal1): Likewise.
20029 2011-02-15 Nick Clifton <nickc@redhat.com>
20031 * config/mn10300/mn10300.c: Include tm-constrs.h.
20032 (struct liw_data): New data structure describing an LIW candidate
20034 (extract_bundle): Use struct liw_data. Allow small integer
20035 operands for some instructions.
20036 (check_liw_constraints): Use struct liw_data. Remove swapped
20037 parameter. Add comments describing the checks. Fix bug when
20038 assigning the source of liw1 to the source of liw2.
20039 (liw_candidate): Delete. Code moved into extract_bundle.
20040 (mn10300_bundle_liw): Use struct liw_data. Check constraints
20042 * config/mn10300/predicates.md (liw_operand): New predicate.
20043 Allows registers and small integer constants.
20044 * config/mn10300/constraints.md (O): New constraint. Accetps
20045 integers in the range -8 to +7 inclusive.
20046 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
20047 for moving a small integer into a register. Give this alternative
20049 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
20050 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
20051 using the J,K,L and M constraints,
20052 (liw): Remove SI mode on second operands to allow for HI and QI
20054 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
20057 2011-02-15 Richard Guenther <rguenther@suse.de>
20059 PR tree-optimization/47743
20060 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
20061 for a non-type-compatible VN lookup bail out.
20063 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
20065 * config/fr30/constraints.md: New file.
20066 * config/fr30/fr30.md: Include it.
20067 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
20068 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20069 (EXTRA_CONSTRAINT): Delete.
20071 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
20073 * config/frv/constraints.md: New file.
20074 * config/frv/predicates.md: Include it.
20075 * config/frv/frv.c (reg_class_from_letter): Delete.
20076 (frv_option_override): Don't initialize it.
20077 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
20078 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
20079 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
20080 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20081 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
20082 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20083 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
20084 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
20085 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
20086 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
20087 (REG_CLASS_FROM_CONSTRAINT): Delete.
20089 2011-02-15 Jakub Jelinek <jakub@redhat.com>
20091 PR middle-end/47581
20092 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
20093 if frame size is 0 in a leaf function.
20095 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20098 * config/alpha/host-osf.c: New file.
20099 * config/alpha/x-osf: New file.
20100 * config.host (alpha*-dec-osf*): Use it.
20102 2011-02-14 Anatoly Sokolov <aesok@post.ru>
20104 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20105 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
20106 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
20107 (rx_mode_dependent_address_p): ...this. Make static. Change argument
20109 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20111 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
20113 * config/stormy16/constraints.md: New file.
20114 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
20115 Use satisfies_constraint_Q and satisfies_constraint_R.
20116 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
20118 (xstormy16_legitiamte_address_p): Declare.
20119 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
20120 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20121 (EXTRA_CONSTRAINT): Delete.
20122 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
20124 (xstormy16_extra_constraint_p): Delete.
20126 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
20128 PR tree-optimization/46494
20129 * loop-unroll.c (split_edge_and_insert): Adjust comment.
20130 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
20131 (pass_rtl_loop_done): Add TODO_verify_flow.
20132 * fwprop.c (pass_rtl_fwprop): Likewise.
20133 * modulo-sched.c (pass_sms): Likewise.
20134 * tree-ssa-dom.c (pass_dominator): Likewise.
20135 * tree-ssa-loop-ch.c (pass_ch): Likewise.
20136 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
20137 (pass_tree_loop_done): Likewise.
20138 * tree-ssa-pre.c (execute_pre): Likewise.
20139 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
20140 * tree-ssa-sink.c (pass_sink_code): Likewise.
20141 * tree-vrp.c (pass_vrp): Likewise.
20143 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
20145 * config/v850/constraints.md: New file.
20146 * config/v850/v850.md: Include it.
20147 * config/v850/predicates.md (reg_or_0_operand): Use
20148 satisfies_constraint_G.
20149 (special_symbolref_operand): Use satisfies_constraint_K.
20150 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
20151 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
20152 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
20153 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
20154 (EXTRA_CONSTRAINT): Delete.
20155 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
20156 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
20157 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
20159 2011-02-14 Anatoly Sokolov <aesok@post.ru>
20162 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
20165 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
20167 * config/mcore/constraints.md: New file.
20168 * config/mcore/mcore.md: Include it.
20169 * config/mcore/mcore.c (reg_class_from_letter): Delete.
20170 * config/mcore/mcore.h (reg_class_from_letter): Delete.
20171 (REG_CLASS_FROM_LETTER): Delete.
20172 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
20173 insn_const_int_ok_for_constraint.
20174 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
20175 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
20176 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20177 (EXTRA_CONSTRAINT): Delete.
20179 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20182 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
20183 (IS_SIGHANDLER): Define.
20184 (sparc64_is_sighandler): New function, split off from
20185 sparc64_fallback_frame_state.
20186 (sparc_is_sighandler): New function, split off from
20187 sparc_fallback_frame_state.
20188 (sparc64_fallback_frame_state): Merge with ...
20189 (sparc_fallback_frame_state): ... this into ...
20190 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
20191 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
20192 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
20193 stack instead of hardcoded offsets.
20195 2011-02-14 Andriy Gapon <avg@freebsd.org>
20198 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
20200 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20202 * configure: Regenerate.
20204 2011-02-12 Joseph Myers <joseph@codesourcery.com>
20207 * gcc.c (asm_options): Correct spec matching --target-help.
20209 2011-02-12 Martin Jambor <mjambor@suse.cz>
20211 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
20212 to gimple call error.
20214 2011-02-12 Mike Stump <mikestump@comcast.net>
20216 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
20217 comments in backslash regions.
20219 2011-02-12 Mike Stump <mikestump@comcast.net>
20220 Jakub Jelinek <jakub@redhat.com>
20221 Iain Sandoe <iains@gcc.gnu.org>
20224 * dwarf2out.c (output_cfa_loc): When required, apply the
20225 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
20226 (output_loc_sequence): Likewise.
20227 (output_loc_operands_raw): Likewise.
20228 (output_loc_sequence_raw): Likewise.
20229 (output_cfa_loc): Likewise.
20230 (output_loc_list): Suppress register number adjustment when
20231 calling output_loc_sequence()
20232 (output_die): Likewise.
20234 2011-02-12 Anatoly Sokolov <aesok@post.ru>
20236 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20238 * config/xtensa/xtensa.c (xtensa_register_move_cost,
20239 xtensa_memory_move_cost): New functions.
20240 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
20242 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
20245 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
20246 in the current directory.
20247 * configure: Rebuilt.
20249 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
20251 * config/darwin.c (darwin_override_options): Add a hunk missed
20252 from the commit of r168571. Trim comment line lengths and
20253 correct indents of the preceding block.
20255 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
20257 * gcc.c (driver_handle_option): Concatenate the argument to -F with
20260 2011-02-11 Joseph Myers <joseph@codesourcery.com>
20262 * common.opt (nostartfiles): New Driver option.
20264 2011-02-11 Xinliang David Li <davidxl@google.com>
20266 PR tree-optimization/47707
20267 * tree-chrec.c (convert_affine_scev): Keep type precision.
20269 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
20271 PR tree-optimization/47420
20272 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
20274 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
20276 PR rtl-optimization/47614
20277 * rtl.h (check_for_inc_dec): Declare.
20278 * dse.c (check_for_inc_dec): Externalize...
20279 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
20280 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
20282 2011-02-11 Joseph Myers <joseph@codesourcery.com>
20285 * gcc.c (main): Do not compile inputs if there were errors in
20287 * opts-common.c (read_cmdline_option): Check for wrong language
20288 after other error checks.
20290 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
20292 * cgraph.c: Fix comment typos.
20293 * cgraph.h: Likewise.
20294 * cgraphunit.c: Likewise.
20295 * ipa-cp.c: Likewise.
20296 * ipa-inline.c: Likewise.
20297 * ipa-prop.c: Likewise.
20298 * ipa-pure-const.c: Likewise.
20299 * ipa-ref.c: Likewise.
20300 * ipa-reference.c: Likewise.
20302 2011-02-11 Jakub Jelinek <jakub@redhat.com>
20305 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
20307 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20310 * doc/sourcebuild.texi (Require Support): Document
20311 dg-require-ascii-locale.
20313 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
20315 * doc/lto.texi (Write summary): Fix missing parentheses.
20317 2011-02-10 DJ Delorie <dj@redhat.com>
20319 * config/m32c/m32c.c (m32c_option_override): Disable
20320 -fcombine-stack-adjustments until flag value tracking and compare
20321 optimization can be rewritten.
20323 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
20325 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
20327 (PROCESSOR_DEFAULT64): Likewise.
20329 2011-02-10 Richard Henderson <rth@redhat.com>
20331 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
20332 change from 2011-02-03.
20333 * config/rx/rx.c (flags_from_code): Likewise.
20334 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
20335 is valid, n/pz otherwise.
20336 (rx_select_cc_mode): Return CCmode if Y is not zero.
20338 2011-02-10 Richard Guenther <rguenther@suse.de>
20340 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
20342 2011-02-10 Richard Guenther <rguenther@suse.de>
20344 PR tree-optimization/47677
20345 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
20347 2011-02-10 Jakub Jelinek <jakub@redhat.com>
20350 * combine.c (make_compound_operation): Only change shifts into
20351 multiplication for SCALAR_INT_MODE_P.
20353 2011-02-10 Jie Zhang <jie@codesourcery.com>
20357 2011-02-05 Jie Zhang <jie@codesourcery.com>
20359 * web.c (entry_register): Don't clobber the number of the
20360 first uninitialized reference in used[].
20362 2011-02-09 Richard Guenther <rguenther@suse.de>
20364 PR tree-optimization/47664
20365 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
20368 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
20372 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
20374 (PROCESSOR_DEFAULT64): Same.
20375 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
20377 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20379 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
20381 2011-02-09 Martin Jambor <mjambor@suse.cz>
20383 PR middle-end/45505
20384 * tree-sra.c (struct access): New flags grp_scalar_read and
20385 grp_scalar_write. Changed description of assignment read and write
20387 (dump_access): Dump new flags, reorder all of them.
20388 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
20389 to detect multiple scalar reads.
20390 (analyze_access_subtree): Use the new scalar read write flags instead
20391 of the old flags. Adjusted comments.
20393 2011-02-08 DJ Delorie <dj@redhat.com>
20396 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
20399 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20401 * config/m68k/uclinux.opt: New.
20402 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
20404 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20406 * config/cris/elf.opt (sim): New Driver option.
20408 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20410 * config/xtensa/elf.opt: New.
20411 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
20413 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20415 * config/vax/elf.opt: New.
20416 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
20418 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20420 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
20422 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20424 * config/gnu-user.opt: New.
20425 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
20426 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
20427 *-*-uclinux*): Use gnu-user.opt.
20429 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
20431 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
20432 * config/i386/gnu.h (CPP_SPEC): Likewise.
20434 2011-02-08 Ian Lance Taylor <iant@google.com>
20436 * common.opt (fcx-limited-range): Add SetByCombined flag.
20437 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
20438 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
20439 (fassociative-math, freciprocal-math): Likewise.
20440 (funsafe-math-optimizations): Likewise.
20441 * opth-gen.awk: Handle SetByCombined.
20442 * optc-gen.awk: Likewise.
20443 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
20444 (set_unsafe_math_optimizations_flags): Likewise.
20445 * doc/options.texi (Option properties): Document SetByCombined.
20447 2011-02-08 Joseph Myers <joseph@codesourcery.com>
20449 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
20450 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
20451 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
20452 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
20453 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
20455 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
20457 PR tree-optimization/46834
20458 PR tree-optimization/46994
20459 PR tree-optimization/46995
20460 * graphite-sese-to-poly.c (used_outside_reduction): New.
20461 (detect_commutative_reduction): Call used_outside_reduction.
20462 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
20463 translate_scalar_reduction_to_array only when at least one
20464 loop-phi/close-phi tuple has been detected.
20466 2011-02-08 Richard Guenther <rguenther@suse.de>
20468 PR middle-end/47639
20469 * tree-vect-generic.c (expand_vector_operations_1): Update
20471 (expand_vector_operations): ... not here. Cleanup EH info
20472 and the CFG if required.
20474 2011-02-08 Richard Guenther <rguenther@suse.de>
20476 PR tree-optimization/47641
20477 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
20478 require type compatibility.
20480 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20482 * gimple-low.c (lower_function_body): Don't remove the location of
20483 the return statement here.
20484 (lower_gimple_return): Do it here instead but only if the return
20485 statement is actually used twice.
20487 2011-02-08 Richard Guenther <rguenther@suse.de>
20489 PR tree-optimization/47632
20490 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
20491 unused up_to_stmt parameter, return whether cfg-cleanup is
20492 necessary, remove EH info properly.
20493 (forward_propagate_into_gimple_cond): Adjust caller.
20494 (forward_propagate_into_cond): Likewise.
20495 (forward_propagate_comparison): Likewise.
20496 (tree_ssa_forward_propagate_single_use_vars): Make
20497 forward_propagate_comparison case similar to the two others.
20499 2011-02-08 Nick Clifton <nickc@redhat.com>
20501 * config/mn10300/mn10300.opt (mliw): New command line option.
20502 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
20503 (liw_bundling): New automaton.
20504 (liw): New attribute.
20505 (liw_op): New attribute.
20506 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
20507 (movsi_internal): Add LIW attributes.
20508 (andsi3): Likewise.
20509 (iorsi3): Likewise.
20510 (xorsi3): Likewise.
20511 (addsi3): Separate register and immediate alternatives.
20512 Add LIW attributes.
20513 (subsi3): Likewise.
20515 (aslsi3): Likewise.
20516 (lshrsi3): Likewise.
20517 (ashrsi3): Likewise.
20518 (liw): New pattern.
20519 * config/mn10300/mn10300.c (liw_op_names): New
20520 (mn10300_print_operand): Handle 'W' operand descriptor.
20521 (extract_bundle): New function.
20522 (check_liw_constraints): New function.
20523 (liw_candidate): New function.
20524 (mn10300_bundle_liw): New function.
20525 (mn10300_reorg): New function.
20526 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20527 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
20528 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
20529 __LIW__ or __NO_LIW__.
20530 * doc/invoke.texi: Describe the -mliw command line option.
20532 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20534 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
20535 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
20536 pthread_mutex_unlock): Remove.
20537 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
20538 * config/pa/t-pa64: Likewise.
20539 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
20540 shared libc if not linking against libpthread.
20541 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20543 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
20546 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
20547 on 10.6 and later to ensure that we always use the unwinder from
20548 the system. Only add -no_compact_unwind when tarteting darwin
20551 2011-02-07 Steve Ellcey <sje@cup.hp.com>
20554 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
20555 (vec_interleave_lowv2sf): Ditto.
20556 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
20557 (vec_extract_oddv2sf): Ditto.
20559 2011-02-07 Mike Stump <mikestump@comcast.net>
20562 Add __ieee_divdc3 entry point.
20563 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
20565 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
20566 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
20567 * config/darwin.c (darwin_rename_builtins): Add.
20568 * config/darwin-protos.h (darwin_rename_builtins): Add.
20570 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
20573 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
20576 2011-02-07 Mike Stump <mikestump@comcast.net>
20578 * config/darwin.opt (mmacosx-version-min): Update default OS version.
20580 2011-02-07 Denis Chertykov <chertykov@gmail.com>
20583 * config/avr/libgcc.S (exit): Move .endfunc
20585 2011-02-07 Richard Guenther <rguenther@suse.de>
20587 PR tree-optimization/47615
20588 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
20589 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
20590 (run_scc_vn): Initialize it.
20591 (visit_reference_op_load): Use it.
20592 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
20594 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20596 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
20597 DImode trapping arithmetic libfuncs.
20599 2011-02-07 Richard Guenther <rguenther@suse.de>
20601 PR tree-optimization/47621
20602 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
20604 (execute_update_addresses_taken): ... here. Make it more
20605 conservative in what we accept.
20607 2011-02-06 Joseph Myers <joseph@codesourcery.com>
20609 * config/sparc/freebsd.h (ASM_SPEC): Define.
20610 * config/sparc/vxworks.h (ASM_SPEC): Define.
20612 2011-02-06 Joseph Myers <joseph@codesourcery.com>
20614 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20616 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
20618 * doc/invoke.texi: Remove reference to compiler internals from
20619 user documentation.
20621 * reg-notes.def: Remove REG_VALUE_PROFILE.
20622 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
20624 2011-02-05 Jakub Jelinek <jakub@redhat.com>
20626 PR middle-end/47610
20627 * varasm.c (default_section_type_flags): If decl is NULL,
20628 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
20630 2011-02-05 Jie Zhang <jie@codesourcery.com>
20633 * web.c (entry_register): Don't clobber the number of the
20634 first uninitialized reference in used[].
20636 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
20638 PR tree-optimization/46194
20639 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
20640 (build_classic_dist_vector_1): Do not represent classic distance
20641 vectors when the access functions are variating in different loops.
20643 2011-02-04 Joseph Myers <joseph@codesourcery.com>
20645 * config/mips/iris6.opt: New.
20646 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
20648 2011-02-04 Richard Henderson <rth@redhat.com>
20649 Steve Ellcey <sje@cup.hp.com>
20652 * config/ia64/predicates.md (mux1_brcst_element): New.
20653 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
20654 * config/ia64/ia64.c (ia64_unpack_assemble): New.
20655 (ia64_unpack_sign): New.
20656 (ia64_expand_unpack): Rewrite using new routines.
20657 (ia64_expand_widen_sum): Ditto.
20658 (ia64_expand_dot_prod_v8qi): Ditto.
20659 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
20660 routines, add endian check.
20661 (pmpy2_even): Rename from pmpy2_r, add endian check.
20662 (pmpy2_odd): Rename from pmpy2_l, add endian check.
20663 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
20664 (vec_widen_smult_hi_v4hi): Ditto.
20665 (vec_widen_umult_lo_v4hi): Ditto.
20666 (vec_widen_umult_hi_v4hi): Ditto.
20667 (mulv2si3): Change endian checks.
20668 (sdot_prodv4hi): Rewrite with new calls.
20669 (udot_prodv4hi): New.
20670 (vec_pack_ssat_v4hi): Add endian check.
20671 (vec_pack_usat_v4hi): Ditto.
20672 (vec_pack_ssat_v2si): Ditto.
20673 (max1_even): Rename from max1_r, add endian check.
20674 (max1_odd): Rename from max1_l, add endian check.
20675 (*mux1_rev): Format change.
20676 (*mux1_mix): Ditto.
20677 (*mux1_shuf): Ditto.
20678 (*mux1_alt): Ditto.
20679 (*mux1_brcst_v8qi): Use new predicate.
20680 (vec_extract_evenv8qi): Remove endian check.
20681 (vec_extract_oddv8qi): Ditto.
20682 (vec_interleave_lowv4hi): Format change.
20683 (vec_interleave_highv4hi): Ditto.
20684 (mix2_even): Rename from mix2_r, add endian check.
20685 (mix2_odd): Rename from mux2_l, add endian check.
20686 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
20687 (vec_extract_evenodd_helper): Format change.
20688 (vec_extract_evenv4hi): Remove endian check.
20689 (vec_extract_oddv4hi): Remove endian check.
20690 (vec_interleave_lowv2si): Format change.
20691 (vec_interleave_highv2si): Format change.
20692 (vec_initv2si): Remove endian check.
20693 (vecinit_v2si): Add endian check.
20694 (reduc_splus_v2sf): Add endian check.
20695 (reduc_smax_v2sf): Ditto.
20696 (reduc_smin_v2sf): Ditto.
20697 (vec_initv2sf): Remove endian check.
20698 (fpack): Add endian check.
20699 (fswap): Add endian check.
20700 (vec_interleave_highv2sf): Add endian check.
20701 (vec_interleave_lowv2sf): Add endian check.
20702 (fmix_lr): Add endian check.
20703 (vec_setv2sf): Format change.
20704 (*vec_extractv2sf_0_be): Use shift to extract operand.
20705 (*vec_extractv2sf_1_be): New.
20706 (vec_pack_trunc_v4hi): Add endian check.
20707 (vec_pack_trunc_v2si): Format change.
20709 2011-02-04 Jakub Jelinek <jakub@redhat.com>
20711 PR inline-asm/23200
20712 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
20713 do bb, locus and block comparison and disallow loads if it is not set.
20714 (stmt_is_replaceable_p): New function.
20715 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
20717 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
20718 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
20720 * tree-flow.h (stmt_is_replaceable_p): New prototype.
20722 2011-02-04 Joseph Myers <joseph@codesourcery.com>
20724 * config/rs6000/xilinx.opt: New.
20725 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
20727 2011-02-04 Joseph Myers <joseph@codesourcery.com>
20729 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
20731 2011-02-03 Anatoly Sokolov <aesok@post.ru>
20733 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
20734 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20735 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
20736 secondary_reload_info, xtensa_secondary_reload): Remove.
20737 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
20738 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20739 (xtensa_preferred_reload_class): Make static. Change return and
20740 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
20741 Use CONST_DOUBLE_P predicate.
20742 (xtensa_preferred_output_reload_class): New function.
20743 (xtensa_secondary_reload): Make static.
20745 2011-02-03 Joseph Myers <joseph@codesourcery.com>
20747 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
20748 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
20749 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
20751 2011-02-03 Jakub Jelinek <jakub@redhat.com>
20753 PR middle-end/31490
20754 * output.h (SECTION_RELRO): Define.
20755 (SECTION_MACH_DEP): Adjust.
20756 (get_variable_section): New prototype.
20757 * varpool.c (varpool_finalize_named_section_flags): New function.
20758 (varpool_assemble_pending_decls): Call it.
20759 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
20760 * cgraphunit.c (cgraph_output_in_order): Call
20761 varpool_finalize_named_section_flags.
20762 * varasm.c (get_section): Allow section flags conflicts between
20763 relro and read-only sections if the section hasn't been declared yet.
20764 Set SECTION_OVERRIDE after diagnosing section type conflict.
20765 (get_variable_section): No longer static.
20766 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
20767 readonly sections that need relocations.
20768 (decl_readonly_section_1): New function.
20769 (decl_readonly_section): Use it.
20772 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
20773 Steve Ellcey <sje@cup.hp.com>
20775 PR middle-end/31490
20776 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
20777 if section attribute used.
20779 2011-02-03 Jakub Jelinek <jakub@redhat.com>
20781 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
20782 * config/darwin.c (SECTION_NO_ANCHOR): Define.
20783 (darwin_init_sections): Remove assertion.
20785 2011-02-03 Nick Clifton <nickc@redhat.com>
20787 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
20789 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
20790 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
20791 instead of "n" and "pz".
20792 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
20795 2011-02-03 Jakub Jelinek <jakub@redhat.com>
20798 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
20799 fma, expand FMA_EXPR as fma{,f,l} call.
20802 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
20803 copy them into a unsigned char variable and pass address of it to
20804 lto_output_data_stream.
20807 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
20808 around backend_init_target and lang_dependent_init_target calls.
20809 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
20810 (verify_cgraph_node): Don't call set_cfun here. Use
20811 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
20812 Set error_found for incorrectly represented calls to thunks.
20814 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
20817 PR rtl-optimization/43494
20818 * rtl.h (for_each_inc_dec_fn): New type.
20819 (for_each_inc_dec): Declare.
20820 * rtlanal.c (struct for_each_inc_dec_ops): New type.
20821 (for_each_inc_dec_find_inc_dec): New fn.
20822 (for_each_inc_dec_find_mem): New fn.
20823 (for_each_inc_dec): New fn.
20824 * dse.c (struct insn_size): Remove.
20825 (replace_inc_dec, replace_inc_dec_mem): Remove.
20826 (emit_inc_dec_insn_before): New fn.
20827 (check_for_inc_dec): Use it, along with for_each_inc_dec.
20828 (canon_address): Pass mem modes to cselib_lookup.
20829 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
20830 (cselib_lookup_from_insn): Likewise.
20831 (cselib_subst_to_values): Likewise.
20832 * cselib.c (find_slot_memmode): New var.
20833 (cselib_find_slot): New fn. Use it instead of
20834 htab_find_slot_with_hash everywhere.
20835 (entry_and_rtx_equal_p): Use find_slot_memmode.
20836 (autoinc_split): New fn.
20837 (rtx_equal_for_cselib_p): Rename and implement in terms of...
20838 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
20839 Deal with autoinc. Special-case recursion into MEMs.
20840 (cselib_hash_rtx): Likewise.
20841 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
20842 address and MEM modes.
20843 (cselib_subst_to_values): Add memmode, pass it on.
20845 (cselib_lookup): Add memmode argument, pass it on.
20846 (cselib_lookup_from_insn): Add memmode.
20847 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
20848 (struct cselib_record_autoinc_data): New.
20849 (cselib_record_autoinc_cb): New fn.
20850 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
20851 mode to cselib_lookup. Reset autoinced REGs here instead of...
20852 (cselib_process_insn): ... here.
20853 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
20855 (add_uses): Likewise, also to cselib_subst_to_values.
20856 (add_stores): Likewise.
20857 * sched-deps.c (add_insn_mem_dependence): Pass mode to
20858 cselib_subst_to_values.
20859 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
20860 * gcse.c (do_local_cprop): Adjusted.
20861 * postreload.c (reload_cse_simplify_set): Adjusted.
20862 (reload_cse_simplify_operands): Adjusted.
20863 * sel-sched-dump (debug_mem_addr_value): Pass mode.
20865 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
20867 PR tree-optimization/45122
20868 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
20869 unsafe assumptions when there's more than one loop exit.
20871 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20874 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20875 Document using vector double with the load/store builtins, and
20876 that the load/store builtins always use Altivec instructions.
20878 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
20879 to use altivec memory instructions, even on VSX.
20880 (vector_altivec_store_<mode>): Ditto.
20882 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
20885 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20886 V2DF, V2DI support to load/store overloaded builtins.
20888 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
20889 altivec load/store builtins for V2DF/V2DI types.
20891 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20892 set avoid indexed addresses on power6 if -maltivec.
20893 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
20894 vector_altivec_load/vector_altivec_store builtins.
20895 (altivec_expand_st_builtin): Ditto.
20896 (altivec_expand_builtin): Add VSX memory builtins.
20897 (rs6000_init_builtins): Add V2DI types to internal types.
20898 (altivec_init_builtins): Add support for V2DF/V2DI altivec
20899 load/store builtins.
20900 (rs6000_address_for_altivec): Insure memory address is appropriate
20903 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
20904 vec_vsx_ld and vec_vsx_st.
20905 (vsx_store_<mode>): Ditto.
20907 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
20908 variables to hold long long types for VSX vector memory builtins.
20909 (RS6000_BTI_unsigned_long_long): Ditto.
20910 (long_long_integer_type_internal_node): Ditti.
20911 (long_long_unsigned_type_internal_node): Ditti.
20913 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
20914 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
20915 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
20917 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
20919 (vec_vsx_st): Ditto.
20921 2011-02-02 Joseph Myers <joseph@codesourcery.com>
20923 * config/pa/pa-hpux10.opt: New.
20924 * config/hpux11.opt (pthread): New Driver option.
20925 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
20926 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
20928 2011-02-02 Joseph Myers <joseph@codesourcery.com>
20930 * config/ia64/vms.opt: New.
20931 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
20933 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20936 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
20937 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
20938 generator functions.
20939 (vsx_floatuns<VSi><mode>2): Ditto.
20940 (vsx_fix_trunc<mode><VSi>2): Ditto.
20941 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
20943 2011-02-02 Joseph Myers <joseph@codesourcery.com>
20945 * config/i386/djgpp.opt (posix): New Driver option.
20947 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
20949 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
20950 Move to the unsupported targets list.
20952 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
20954 PR rtl-optimization/47525
20955 * df-scan.c: Update copyright years.
20956 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
20957 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
20959 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20961 * config/i386/sysv4.h (TARGET_VERSION): Remove.
20962 (SUBTARGET_RETURN_IN_MEMORY): Remove.
20963 (ASM_OUTPUT_ASCII): Remove.
20964 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
20966 2011-02-02 Jeff Law <law@redhat.com>
20968 PR middle-end/47543
20969 * reload.c (find_reloads_address): Handle reg+d address where both
20970 components are invalid by reloading the entire address.
20972 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
20973 Richard Guenther <rguenther@suse.de>
20975 PR tree-optimization/40979
20977 * passes.c (init_optimization_passes): After LIM call copy_prop
20978 and DCE to clean up.
20979 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
20981 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
20983 PR tree-optimization/47576
20984 PR tree-optimization/47555
20985 * doc/invoke.texi (scev-max-expr-complexity): Documented.
20986 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20987 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
20988 * tree-scalar-evolution.c (follow_ssa_edge): Use
20989 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
20991 2011-02-02 Richard Guenther <rguenther@suse.de>
20993 PR tree-optimization/47566
20994 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
20996 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
21000 * tree-inline.c (declare_return_variable): Remove unused caller
21005 * tree-flow-inline.h (clear_is_used, is_used_p): New.
21006 * cfgexpand.c (account_used_vars_for_block): Use them.
21007 * tree-nrv.c (tree_nrv): Likewise.
21008 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
21009 (dump_scope_block): Likewise.
21010 (remove_unused_locals): Likewise.
21014 * tree-inline.c (declare_return_variable): Add result decl to
21015 local decls only once.
21016 * gimple-low.c (record_vars_into): Mark newly-created variables
21019 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
21025 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21027 (no_real_insns_p, schedule_block, set_priorities): Drop special
21028 treatment of boundary debug insns.
21029 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21030 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
21031 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21032 (BOUNDARY_DEBUG_INSN_P): Likewise.
21033 (SCHEDULE_DEBUG_INSN_P): Likewise.
21034 * sched-rgn.c (init_ready_list): Drop special treatment of
21035 boundary debug insns.
21036 * final.c (rest_of_clean_state): Clear notes' BB.
21038 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21040 * config/openbsd.opt (assert=): New Driver option.
21042 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21044 * config/i386/nto.opt: New.
21045 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
21047 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21049 * config/i386/netware.opt: New.
21050 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
21052 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21054 * config/interix.opt (posix): New Driver option.
21056 2011-02-01 DJ Delorie <dj@redhat.com>
21058 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
21060 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
21063 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
21065 PR tree-optimization/47561
21066 * toplev.c (process_options): Print the Graphite flags. Add
21067 flag_loop_flatten to the list of options requiring Graphite.
21069 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21071 * config/i386/cygming.opt (posix): New Driver option.
21073 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21075 * config/arm/vxworks.opt: New.
21076 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
21078 2011-02-01 Joseph Myers <joseph@codesourcery.com>
21080 * config/alpha/elf.opt: New.
21081 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
21082 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
21084 2011-02-01 Richard Guenther <rguenther@suse.de>
21086 PR tree-optimization/47559
21087 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
21088 store-motion on references that can throw.
21090 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
21092 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
21093 * tree-pass.h (TDF_CSELIB): New macro.
21094 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
21095 cselib_lookup): Check for it rather than for TDF_DETAILS.
21097 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
21100 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
21101 is HOST_BIT_BUCKET.
21103 * opts.c (finish_options): Don't add x_aux_base_name if it is
21106 2011-02-01 Richard Guenther <rguenther@suse.de>
21108 PR tree-optimization/47555
21110 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
21112 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
21114 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
21117 * config/lm32/t-lm32: Add multilib for all CPU options.
21119 2011-02-01 Richard Guenther <rguenther@suse.de>
21121 PR tree-optimization/47541
21122 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
21123 sure to have a field at offset zero.
21125 2011-01-31 Joseph Myers <joseph@codesourcery.com>
21127 * config/arc/arc.opt (EB, EL): New Driver options.
21129 2011-01-31 Joseph Myers <joseph@codesourcery.com>
21131 * config/alpha/osf5.opt: New.
21132 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
21134 2011-01-31 Joseph Myers <joseph@codesourcery.com>
21136 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
21138 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
21140 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
21141 -floop-interchange.
21142 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
21143 is an alias of -floop-interchange and that it requires the
21144 Graphite infrastructure.
21145 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
21146 flag_loop_interchange based on the value of flag_tree_loop_linear.
21148 2011-01-31 Jakub Jelinek <jakub@redhat.com>
21149 Richard Guenther <rguenther@suse.de>
21151 PR tree-optimization/47538
21152 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
21153 type instead of r1type, except for comparisons. For right
21154 shifts and comparisons punt if there are mismatches in
21155 sizetype vs. non-sizetype types.
21157 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21159 * doc/sourcebuild.texi (Effective-Target Keywords): Document
21162 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21164 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
21166 * configure: Regenerate.
21168 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21170 * configure.ac (gcc_cv_ld_static_option): Define.
21171 (gcc_cv_ld_dynamic_option): Define.
21172 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
21174 (HAVE_LD_STATIC_DYNAMIC): Update message.
21175 (LD_STATIC_OPTION): Define.
21176 (LD_DYNAMIC_OPTION): Define.
21177 * configure: Regenerate.
21178 * config.in: Regenerate.
21179 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
21180 HAVE_LD_STATIC_DYNAMIC]: Use them.
21182 2011-01-31 Nick Clifton <nickc@redhat.com>
21184 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
21185 registers inside interrupt handlers if the handler is not a leaf
21188 2011-01-31 Nick Clifton <nickc@redhat.com>
21190 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
21191 reg_renumber returning an INVALID_REGNUM.
21193 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
21196 * doc/install.texi: Document host options discarded when cross
21197 configuring target libraries.
21199 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
21202 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
21205 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21207 (no_real_insns_p, schedule_block, set_priorities): Drop special
21208 treatment of boundary debug insns.
21209 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21210 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21211 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21212 (BOUNDARY_DEBUG_INSN_P): Likewise.
21213 (SCHEDULE_DEBUG_INSN_P): Likewise.
21214 * sched-rgn.c (init_ready_list): Drop special treatment of
21215 boundary debug insns.
21216 * final.c (rest_of_clean-state): Clear notes' BB.
21218 2011-01-31 Alan Modra <amodra@gmail.com>
21220 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
21221 toc relative expressions as we do in print_operand_address.
21223 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
21225 * doc/extend.texi: Follow spelling conventions.
21226 * doc/invoke.texi: Fix a typo.
21228 2011-01-30 Joseph Myers <joseph@codesourcery.com>
21230 * config/hpux11.opt: New.
21231 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
21232 ia64*-*-hpux*): Use hpux11.opt.
21234 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
21236 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
21239 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
21241 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
21244 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
21246 * doc/install.texi (Binaries): Remove outdated reference for
21247 Motorola 68HC11/68HC12 downloads.
21249 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
21251 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
21254 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
21257 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
21260 2011-01-28 Ahmad Sharif <asharif@google.com>
21262 * value-prof.c (check_counter): Corrected error message.
21264 2011-01-29 Jie Zhang <jie@codesourcery.com>
21266 * config/arm/arm.c (arm_legitimize_reload_address): New.
21267 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
21268 arm_legitimize_reload_address.
21269 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
21271 2011-01-28 Ian Lance Taylor <iant@google.com>
21273 * godump.c (go_define): Ignore macros whose definitions include
21274 two adjacent operands.
21276 2011-01-28 Jakub Jelinek <jakub@redhat.com>
21279 * varasm.c (force_const_mem): Store copy of x in desc->constant
21280 instead of x itself.
21281 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
21282 itself into REG_EQUAL note.
21284 2011-01-28 Joseph Myers <joseph@codesourcery.com>
21286 * config/freebsd.opt (posix, rdynamic): New Driver options.
21288 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21290 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
21291 -Bstatic/-Bdynamic.
21292 * configure: Regenerate.
21294 2011-01-27 Joseph Myers <joseph@codesourcery.com>
21296 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
21297 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
21299 2011-01-27 Anatoly Sokolov <aesok@post.ru>
21301 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
21302 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
21303 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21304 (s390_preferred_reload_class): Make static. Change return and
21305 'rclass' argument type to reg_class_t.
21307 2011-01-27 Jan Hubicka <jh@suse.cz>
21309 PR middle-end/46949
21310 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
21311 (process_function_and_variable_attributes): Check defined weakrefs.
21313 2011-01-27 Martin Jambor <mjambor@suse.cz>
21315 PR tree-optimization/47228
21316 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
21317 build_ref_for_offset.
21319 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21321 * config/spu/spu-elf.h (ASM_SPEC): Remove.
21323 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
21325 PR rtl-optimization/46856
21326 * postreload.c (reload_combine_recognize_const_pattern): Do not
21327 separate cc0 setter and user on cc0 targets.
21329 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
21332 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
21333 passed a VOID_TYPE expression, immediately emit an error and
21334 return error_mark_node.
21336 2011-01-26 Jeff Law <law@redhat.com>
21338 PR rtl-optimization/47464
21339 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
21340 rather than may_trap_p as needed.
21342 2011-01-26 DJ Delorie <dj@redhat.com>
21344 PR rtl-optimization/46878
21345 * combine.c (insn_a_feeds_b): Check for the implicit cc0
21346 setter/user dependency as well.
21348 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
21350 PR rtl-optimization/44469
21351 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
21352 after removing trivially dead basic blocks.
21354 2011-01-26 Joseph Myers <joseph@codesourcery.com>
21356 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
21357 * config/frv/frv.h (LINK_SPEC): Likewise.
21358 * config/i386/netware.h (LINK_SPEC): Likewise.
21359 * config/m68k/linux.h (ASM_SPEC): Likewise.
21360 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
21361 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
21362 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21363 * config/sparc/linux.h (ASM_SPEC): Likewise.
21364 * config/sparc/linux64.h (ASM_SPEC): Likewise.
21365 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21367 2011-01-26 Joseph Myers <joseph@codesourcery.com>
21369 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
21370 * config/frv/frv.h (ASM_SPEC): Likewise.
21371 * config/m68k/linux.h (ASM_SPEC): Likewise.
21372 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
21373 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
21374 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21375 * config/sparc/linux.h (ASM_SPEC): Likewise.
21376 * config/sparc/linux64.h (ASM_SPEC): Likewise.
21377 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21379 2011-01-26 Joseph Myers <joseph@codesourcery.com>
21381 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
21382 * config/frv/frv.h (LINK_SPEC): Likewise.
21383 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
21385 2011-01-26 Joseph Myers <joseph@codesourcery.com>
21387 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
21388 * config/frv/frv.h (ASM_SPEC): Likewise.
21389 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
21390 * config/m68k/linux.h (ASM_SPEC): Likewise.
21391 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
21392 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
21393 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
21394 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
21395 * config/sparc/linux.h (ASM_SPEC): Likewise.
21396 * config/sparc/linux64.h (ASM_SPEC): Likewise.
21397 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
21398 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
21400 2011-01-26 Steve Ellcey <sje@cup.hp.com>
21403 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
21405 (vec_extract_evenodd_help): Ditto.
21406 (vec_extract_evenv4hi): Ditto.
21407 (vec_extract_oddv4hi): Ditto.
21408 (vec_interleave_lowv2si): Ditto.
21409 (vec_interleave_highv2si): Ditto.
21410 (vec_extract_evenv2si): Ditto.
21411 (vec_extract_oddv2si: Ditto.
21412 (vec_pack_trunc_v2si): Ditto.
21414 2011-01-22 Jan Hubicka <jh@suse.cz>
21417 * cgraph.h (cgraph_local_info): New field can_change_signature.
21418 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
21419 signature can change.
21420 (ipcp_estimate_growth): Call sequence simplify only if calle signature
21422 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
21423 (cgraph_function_versioning): We can not change signature of functions
21424 that don't allow that.
21425 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
21426 (lto_input_node): Likewise.
21427 * ipa-inline.c (compute_inline_parameters): Compute
21428 local.can_change_signature.
21429 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
21430 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
21431 functions that can not change signature.
21432 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
21433 init_cumulative_args): Do not use local calling conventions
21434 for functions that can not change signature.
21436 2011-01-22 Jan Hubicka <jh@suse.cz>
21438 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
21440 2011-01-26 Richard Guenther <rguenther@suse.de>
21442 PR tree-optimization/47190
21443 * cgraphunit.c (process_common_attributes): New function.
21444 (process_function_and_variable_attributes): Use it.
21446 2011-01-26 Richard Guenther <rguenther@suse.de>
21449 * cgraphbuild.c (record_eh_tables): Record reference to personality
21452 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
21455 * sel-sched.c (moveup_expr): Don't let debug insns prevent
21456 non-debug insns from moving up.
21458 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
21461 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
21462 t-dlldir{,-x} fragment for build and add it to tmake_file.
21463 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
21464 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
21465 * config/i386/t-dlldir: New file.
21466 (SHLIB_DLLDIR): Define.
21467 * config/i386/t-dlldir-x: New file.
21468 (SHLIB_DLLDIR): Define.
21469 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
21470 (SHLIB_INSTALL): Use it.
21472 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
21475 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
21476 lower bound of the allowed Thumb-2 coprocessor load/store
21477 index range to -256. Add explaining comment.
21479 2011-01-25 Ian Lance Taylor <iant@google.com>
21481 * godump.c (go_define): Improve lexing of macro expansion to only
21482 accept expressions which match Go spec.
21484 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
21487 * tree.c (handle_dll_attribute): Handle it.
21488 * doc/extend.texi (@item dllexport): Mention it.
21489 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
21491 2011-01-25 Ian Lance Taylor <iant@google.com>
21493 PR tree-optimization/26854
21494 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
21495 (decl_jump_unsafe): Move higher in file, with no other change.
21496 (bind): Set has_jump_unsafe_decl if appropriate.
21497 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
21498 (check_earlier_gotos): Likewise.
21499 (c_check_switch_jump_warnings): Likewise.
21501 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
21503 * doc/invoke.texi (Warning Options): Add missing hyphen.
21504 (-fprofile-dir): Minor grammatical fixes.
21505 (-fbranch-probabilities): Likewise.
21507 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
21511 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
21513 (no_real_insns_p, schedule_block, set_priorities): Drop special
21514 treatment of boundary debug insns.
21515 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
21516 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
21517 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
21518 (BOUNDARY_DEBUG_INSN_P): Likewise.
21519 (SCHEDULE_DEBUG_INSN_P): Likewise.
21520 * sched-rgn.c (init_ready_list): Drop special treatment of
21521 boundary debug insns.
21522 * final.c (rest_of_clean-state): Clear notes' BB.
21524 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21526 * Makefile.in (LAMBDA_H): Removed.
21527 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
21528 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
21529 lambda-trans.o, and tree-loop-linear.o.
21530 (lto-symtab.o): Remove dependence on LAMBDA_H.
21531 (tree-loop-linear.o): Remove rule.
21532 (lambda-mat.o): Same.
21533 (lambda-trans.o): Same.
21534 (lambda-code.o): Same.
21535 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
21536 (tree-vect-slp.o): Same.
21537 * hwint.h (gcd): Moved here.
21538 (least_common_multiple): Same.
21539 * lambda-code.c: Removed.
21540 * lambda-mat.c: Removed.
21541 * lambda-trans.c: Removed.
21542 * lambda.h: Removed.
21543 * tree-loop-linear.c: Removed.
21544 * lto-symtab.c: Do not include lambda.h.
21545 * omega.c (gcd): Removed.
21546 * passes.c (init_optimization_passes): Remove pass_linear_transform.
21547 * tree-data-ref.c (print_lambda_vector): Moved here.
21548 (lambda_vector_copy): Same.
21549 (lambda_matrix_copy): Same.
21550 (lambda_matrix_id): Same.
21551 (lambda_vector_first_nz): Same.
21552 (lambda_matrix_row_add): Same.
21553 (lambda_matrix_row_exchange): Same.
21554 (lambda_vector_mult_const): Same.
21555 (lambda_vector_negate): Same.
21556 (lambda_matrix_row_negate): Same.
21557 (lambda_vector_equal): Same.
21558 (lambda_matrix_right_hermite): Same.
21559 * tree-data-ref.h: Do not include lambda.h.
21560 (lambda_vector): Moved here.
21561 (lambda_matrix): Same.
21562 (dependence_level): Same.
21563 (lambda_transform_legal_p): Removed declaration.
21564 (lambda_collect_parameters): Same.
21565 (lambda_compute_access_matrices): Same.
21566 (lambda_vector_gcd): Same.
21567 (lambda_vector_new): Same.
21568 (lambda_vector_clear): Same.
21569 (lambda_vector_lexico_pos): Same.
21570 (lambda_vector_zerop): Same.
21571 (lambda_matrix_new): Same.
21572 * tree-flow.h (least_common_multiple): Removed declaration.
21573 * tree-parloops.c (lambda_trans_matrix): Moved here.
21574 (LTM_MATRIX): Same.
21575 (LTM_ROWSIZE): Same.
21576 (LTM_COLSIZE): Same.
21577 (LTM_DENOMINATOR): Same.
21578 (lambda_trans_matrix_new): Same.
21579 (lambda_matrix_vector_mult): Same.
21580 (lambda_transform_legal_p): Same.
21581 * tree-pass.h (pass_linear_transform): Removed declaration.
21582 * tree-ssa-loop.c (tree_linear_transform): Removed.
21583 (gate_tree_linear_transform): Removed.
21584 (pass_linear_transform): Removed.
21585 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
21586 flag_loop_interchange.
21588 2011-01-25 Jakub Jelinek <jakub@redhat.com>
21590 PR tree-optimization/47265
21591 PR tree-optimization/47443
21592 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
21593 if name still has some uses.
21595 2011-01-25 Martin Jambor <mjambor@suse.cz>
21597 PR tree-optimization/47382
21598 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
21599 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
21601 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
21603 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
21604 sjlj_except_unwind_info.
21606 2011-01-25 Richard Guenther <rguenther@suse.de>
21608 PR tree-optimization/47426
21609 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
21610 visible functions results escape.
21612 2011-01-25 Jakub Jelinek <jakub@redhat.com>
21615 * config/arm/arm.c (any_sibcall_uses_r3): New function.
21616 (arm_get_frame_offsets): Use it.
21618 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21619 Jakub Jelinek <jakub@redhat.com>
21621 PR tree-optimization/47271
21622 * tree-if-conv.c (bb_postdominates_preds): New.
21623 (if_convertible_bb_p): Call bb_postdominates_preds.
21624 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
21625 (predicate_scalar_phi): Call bb_postdominates_preds.
21627 2011-01-25 Nick Clifton <nickc@redhat.com>
21629 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
21630 * config/rx/rx.c (rx_function_value): Likewise.
21631 (rx_promote_function_mode): Likewise.
21632 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
21633 in order to make it legitimate.
21634 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
21635 make sure that the first operand is the same as the result register.
21636 (addsi3_unspec): Delete.
21637 (subdi3): Do not accept immediate operands.
21638 (subdi3_internal): Likewise.
21640 2011-01-25 Jeff Law <law@redhat.com>
21642 PR rtl-optimization/37273
21643 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21644 handle them like argument loads from stack slots. Do not double
21645 count memory for memory constants and argument loads from stack slots.
21647 2011-01-25 Jakub Jelinek <jakub@redhat.com>
21649 PR tree-optimization/47427
21650 PR tree-optimization/47428
21651 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21652 coalesce if the new root var would be TREE_READONLY.
21654 2011-01-25 Richard Guenther <rguenther@suse.de>
21656 PR middle-end/47414
21657 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
21658 correct type for TBAA.
21660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21662 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
21663 (close_phi_written_to_memory): Call for_each_index with
21664 dr_indices_valid_in_loop.
21666 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21668 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
21669 when it is initialized.
21671 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21673 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
21674 call to graphite_find_data_references_in_stmt.
21675 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
21676 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
21677 call to graphite_find_data_references_in_stmt.
21678 (analyze_drs_in_stmts): Same.
21679 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
21680 in which the scalar analysis of indices is performed.
21681 (create_data_ref): Same. Update call to dr_analyze_indices.
21682 (find_data_references_in_stmt): Update call to create_data_ref.
21683 (graphite_find_data_references_in_stmt): Same.
21684 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
21686 (create_data_ref): Same.
21687 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
21688 call to create_data_ref.
21690 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21692 * graphite-sese-to-poly.c (build_poly_scop): Move
21693 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
21695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21697 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
21698 VAR_DECL, PARM_DECL, and RESULT_DECL.
21700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21702 * graphite-dependences.c (reduction_dr_1): Allow several reductions
21703 in a reduction PBB.
21704 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
21705 that have already been marked as PBB_IS_REDUCTION.
21707 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21709 * graphite-scop-detection.c (same_close_phi_node): New.
21710 (remove_duplicate_close_phi): New.
21711 (make_close_phi_nodes_unique): New.
21712 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
21714 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21716 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
21717 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
21718 of both data references to be the same.
21720 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21722 * graphite-dependences.c (build_lexicographical_constraint): Remove
21723 the gdim parameter.
21724 (build_lexicographical_constraint): Adjust call to
21725 ppl_powerset_is_empty.
21726 (dependence_polyhedron): Same.
21727 (graphite_legal_transform_dr): Same.
21728 (graphite_carried_dependence_level_k): Same.
21729 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
21731 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
21733 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21735 * graphite-sese-to-poly.c
21736 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
21737 (close_phi_written_to_memory): New.
21738 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
21741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21743 * doc/install.texi: Update the expected version number of PPL to 0.11.
21744 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
21745 #if PPL_VERSION_MINOR < 11.
21747 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21749 * graphite-dependences.c: Include graphite-cloog-util.h.
21750 (new_poly_ddr): Inlined into dependence_polyhedron.
21751 (free_poly_ddr): Moved close by new_poly_ddr.
21752 (dependence_polyhedron_1): Renamed dependence_polyhedron.
21753 Early return NULL when ppl_powerset_is_empty returns true.
21754 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
21755 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
21756 (graphite_legal_transform_dr): Call new_poly_ddr.
21757 (graphite_carried_dependence_level_k): Same.
21758 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
21759 (dot_transformed_deps_stmt_1): Removed.
21760 (dot_deps_stmt_1): Call dot_deps_stmt_2.
21761 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
21762 (dot_deps_1): Call dot_deps_2.
21763 * Makefile.in (graphite-dependences.o): Add missing dependence on
21764 graphite-cloog-util.h.
21766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21768 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
21769 (build_lexicographical_constraint): Same.
21770 (dependence_polyhedron_1): Same.
21771 (graphite_legal_transform_dr): Same.
21772 (graphite_carried_dependence_level_k): Same.
21773 * graphite-ppl.c (ppl_powerset_is_empty): New.
21774 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
21775 * tree-data-ref.c (dump_data_reference): Print the basic block index.
21777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21779 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
21780 the "a followed by b" relation and document it.
21782 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21784 * graphite-dependences.c (build_lexicographical_constraint): Stop the
21785 iteration when the bag of constraints is empty.
21787 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21789 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
21791 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21793 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
21794 nest and two loop depths as parameters.
21795 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
21796 lst_perfect_nestify.
21798 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21800 * graphite-dependences.c (print_pddr): Call
21801 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
21803 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
21805 * graphite-ppl.c (debug_gmp_value): New.
21806 * graphite-ppl.h (debug_gmp_value): Declared.
21808 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
21810 * doc/install.texi: Document availability of cloog-0.16.
21812 2011-01-25 Vladimir Kargov <kargov@gmail.com>
21814 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
21815 invalid postdominance info.
21817 2011-01-24 Jan Hubicka <jh@suse.cz>
21820 * doc/extend.texi (weak pragma): Drop claim that it must
21821 appear before definition.
21822 * varasm.c (merge_weak, declare_weak): Only sanity check
21823 that DECL is not output at a time it is declared weak.
21825 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
21827 * machmode.def: Fixed comments.
21829 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
21831 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
21833 2011-01-24 Paul Koning <ni1d@arrl.net>
21835 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
21838 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
21841 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
21842 (block_info): Add scanned and prev.
21843 (move_or_delete_vzeroupper_2): Return if the basic block
21844 has been scanned and the upper 128bit state is unchanged
21845 from the last scan.
21846 (move_or_delete_vzeroupper_1): Return true if the exit
21848 (move_or_delete_vzeroupper): Visit basic blocks using the
21849 work-list based algorithm based on vt_find_locations in
21852 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
21854 2011-01-24 Nick Clifton <nickc@redhat.com>
21856 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
21857 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
21858 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
21859 then define __v850e1__.
21860 * doc/invoke.texi: Document -mv850es.
21862 2011-01-24 Richard Henderson <rth@redhat.com>
21864 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
21865 compound unordered comparisons.
21866 * config/rx/rx.c (rx_split_fp_compare): Remove.
21867 * config/rx/rx-protos.h: Update.
21868 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
21869 (cbranchsf4): Don't call rx_split_fp_compare.
21870 (*cbranchsf4): Use rx_split_cbranch.
21871 (*cmpsf): Don't accept "i" constraint.
21872 (*conditional_branch): Only valid after reload.
21873 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
21875 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21878 * config/rs6000/altivec.md (vector constant splitters): Add
21879 support for creating vector single precision constants if -mvsx is
21880 used and we would create the constant using Altivec primitives.
21882 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
21883 Richard Sandiford <rdsandiford@googlemail.com>
21885 PR rtl-optimization/47166
21886 * reload1.c (emit_reload_insns): Disable the spill_reg_store
21887 mechanism for PRE_MODIFY and POST_MODIFY.
21888 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
21891 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
21893 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
21895 2011-01-22 Jan Hubicka <jh@suse.cz>
21898 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
21900 2011-01-22 Jan Hubicka <jh@suse.cz>
21902 PR tree-optimization/43884
21904 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
21905 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
21907 2011-01-22 Anatoly Sokolov <aesok@post.ru>
21909 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21910 * config/s390/s390.c (s390_register_move_cost,
21911 s390_memory_move_cost): New.
21912 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
21914 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21916 PR middle-end/47401
21917 * except.c (sjlj_assign_call_site_values): Move setting the
21918 crtl->uses_eh_lsda flag to ...
21919 (sjlj_mark_call_sites): ... here.
21920 (sjlj_emit_function_enter): Support NULL dispatch label.
21921 (sjlj_build_landing_pads): In a function with no landing pads
21922 that still has must-not-throw regions, generate code to register
21923 a personality function with empty LSDA.
21925 2011-01-21 Richard Henderson <rth@redhat.com>
21927 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
21929 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
21931 * compare-elim.c: New file.
21932 * Makefile.in (OBJS-common): Add it.
21933 (compare-elim.o): New.
21934 * common.opt (fcompare-elim): New.
21935 * opts.c (default_options_table): Add OPT_fcompare_elim.
21936 * tree-pass.h (pass_compare_elim_after_reload): New.
21937 * passes.c (init_optimization_passes): Add it.
21938 * recog.h: Protect against re-inclusion.
21939 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
21940 * doc/invoke.texi (-fcompare-elim): Document it.
21941 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
21942 * doc/tm.texi: Rebuild.
21944 2011-01-22 Nick Clifton <nickc@redhat.com>
21946 * config/rx/rx.md (cstoresf4): Pass comparison operator to
21947 rx_split_fp_compare.
21949 2011-01-22 Nick Clifton <nickc@redhat.com>
21951 * config/rx/rx.md (UNSPEC_CONST): New.
21952 (deallocate_and_return): Wrap the amount popped off the stack in
21953 an UNSPEC_CONST in order to stop it being rejected by
21954 -mmax-constant-size.
21955 (pop_and_return): Add a "(return)" rtx.
21956 (call): Drop the immediate operand.
21957 (call_internal): Likewise.
21958 (call_value): Likewise.
21959 (call_value_internal): Likewise.
21960 (sibcall_internal): Likewise.
21961 (sibcall_value_internal): Likewise.
21962 (sibcall): Likewise. Generate an explicit call using
21964 (sibcall_value): Likewise.
21965 (mov<>): FAIL if a constant operand is not legitimate.
21966 (addsi3_unpsec): New pattern.
21968 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
21969 (ok_for_max_constant): New function.
21970 (gen_safe_add): New function.
21971 (rx_expand_prologue): Use gen_safe_add.
21972 (rx_expand_epilogue): Likewise.
21973 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
21976 2011-01-21 Jeff Law <law@redhat.com>
21978 PR tree-optimization/47053
21979 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
21980 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
21981 statements are deleted.
21982 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
21983 is nonempty, then purge dead edges and cleanup the CFG.
21985 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21988 Temporarily revert:
21989 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21991 * tree-dfa.c (create_var_ann): Mark variable as used.
21993 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21995 PR middle-end/45566
21996 * except.c (convert_to_eh_region_ranges): Emit queued no-region
21997 notes from other section in hot/cold partitioning even if
21998 last_action is -3. Increment call_site_base.
22000 PR rtl-optimization/47366
22001 * fwprop.c (forward_propagate_into): Return bool. If
22002 any changes are made, -fnon-call-exceptions is used and
22003 REG_EH_REGION note is present, call purge_dead_edges
22004 and return true if it purged anything.
22005 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
22006 any EH edges were purged.
22008 2011-01-21 Jeff Law <law@redhat.com>
22010 PR rtl-optimization/41619
22011 * caller-save.c (setup_save_areas): Break out code to determine
22012 which hard regs are live across calls by examining the reload chains
22013 so that it is always used.
22014 Eliminate code which checked REG_N_CALLS_CROSSED.
22016 2011-01-21 Jakub Jelinek <jakub@redhat.com>
22018 PR tree-optimization/47355
22019 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
22020 NOP has non-debug uses beyond PHIs in new_bb.
22022 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
22025 * cfgexpand.c (account_used_vars_for_block): Only account vars
22026 that are annotated as used.
22027 (estimated_stack_frame_size): Don't set TREE_USED.
22028 * tree-dfa.c (create_var_ann): Mark variable as used.
22030 2011-01-21 Richard Guenther <rguenther@suse.de>
22032 PR middle-end/47395
22033 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
22035 2011-01-21 Richard Guenther <rguenther@suse.de>
22037 PR tree-optimization/47365
22038 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
22039 (vn_reference_lookup_pieces): Adjust.
22040 (vn_reference_lookup): Likewise.
22041 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
22042 (vn_reference_lookup_3): Only look through kills if in
22043 VN_WALKREWRITE mode.
22044 (vn_reference_lookup_pieces): Adjust.
22045 (vn_reference_lookup): Likewise.
22046 (visit_reference_op_load): Likewise.
22047 (visit_reference_op_store): Likewise.
22048 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
22049 (compute_avail): Likewise.
22050 (eliminate): Likewise.
22052 2011-01-21 Jakub Jelinek <jakub@redhat.com>
22054 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
22055 DECL_IGNORED_P non-reg vars if they are used.
22057 PR tree-optimization/47391
22058 * varpool.c (const_value_known_p): Return false if
22061 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
22064 * config/i386/i386.c (ix86_local_alignment): Handle
22065 case for va_list_type_node is nil.
22066 (ix86_canonical_va_list_type): Likewise.
22068 2011-01-21 Alan Modra <amodra@gmail.com>
22070 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
22071 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
22073 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22075 * config/arm/arm.md (define_attr type): Rename f_load
22076 and f_store to f_fpa_load and f_fpa_store. Update.
22077 (write_conflict): Deal with rename fallout.
22078 (*push_fp_multi): Likewise.
22079 * config/arm/fpa.md (f_load): Use f_fpa_load.
22080 (f_store): Use f_fpa_store.
22081 (*movsf_fpa): Likewise.
22082 (*movdf_fpa): Likewise.
22083 (*movxf_fpa): Likewise.
22084 (*thumb2_movsf_fpa): Likewise.
22085 (*thumb2_movdf_fpa): Likewise.
22086 (*thumb2_movxf_fpa): Likewise.
22087 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
22088 f_loadd and f_stored.
22089 (*thumb2_movdi_vfp): Likewise.
22090 (*thumb2_movsf_vfp): Fix attribute to f_loads.
22091 (*thumb2_movsi_vfp): Likewise.
22092 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
22093 Use f_loads instead of f_load.
22094 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
22096 2011-01-20 Anatoly Sokolov <aesok@post.ru>
22098 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22099 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
22100 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22101 (xtensa_mode_dependent_address_p): New function.
22102 (constantpool_address_p): Make static. Change return type to bool.
22103 Change argument type to const_rtx. Use CONST_INT_P predicate.
22105 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
22108 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
22110 2011-01-20 Jakub Jelinek <jakub@redhat.com>
22113 * cfgexpand.c (expand_debug_expr): Instead of generating
22114 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
22117 2011-01-20 Richard Guenther <rguenther@suse.de>
22119 PR middle-end/47370
22120 * tree-inline.c (remap_gimple_op_r): Recurse manually for
22121 the pointer operand of MEM_REFs.
22123 2011-01-20 Jakub Jelinek <jakub@redhat.com>
22125 PR tree-optimization/46130
22126 * ipa-split.c (consider_split): If return_bb contains non-virtual
22127 PHIs other than for retval or if split_function would not adjust it,
22130 2011-01-20 Richard Guenther <rguenther@suse.de>
22132 PR tree-optimization/47167
22133 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
22134 Revert previous change, only avoid enumeral type changes.
22136 2011-01-19 Mike Stump <mikestump@comcast.net>
22138 * doc/tm.texi.in (BRANCH_COST): Englishify.
22139 * doc/tm.texi (BRANCH_COST): Likewise.
22141 2011-01-19 Dodji Seketeli <dodji@redhat.com>
22144 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
22145 (gen_scheduled_generic_parms_dies): New functions.
22146 (gen_struct_or_union_type_die): Schedule template parameters DIEs
22147 generation for the end of CU compilation.
22148 (dwarf2out_finish): Generate template parameters DIEs here.
22150 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
22153 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
22154 debug bind stmt on merge edges.
22156 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
22160 * function.c (instantiate_expr): Instantiate incoming rtl of
22161 implicit arguments, and recurse on VALUE_EXPRs.
22162 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
22163 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
22165 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
22167 * c-parser.c (c_parser_for_statement): Initialize
22168 collection_expression.
22170 2011-01-19 Joseph Myers <joseph@codesourcery.com>
22172 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
22174 2011-01-19 Joseph Myers <joseph@codesourcery.com>
22176 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
22177 (LINK_SHLIB_SPEC): Don't use %(link_path).
22178 (SUBTARGET_EXTRA_SPECS): Remove link_path.
22180 2011-01-19 Joseph Myers <joseph@codesourcery.com>
22182 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
22183 (NO_SHARED_LIB_SUPPORT): Remove.
22184 (LINK_SHLIB_SPEC): Remove one conditional definition.
22186 2011-01-19 Joseph Myers <joseph@codesourcery.com>
22188 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
22190 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
22191 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
22192 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
22193 %{call_shared} and conditionals on these options not being passed.
22194 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
22197 2011-01-19 Jakub Jelinek <jakub@redhat.com>
22199 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
22202 * ipa-split.c: Spelling fixes.
22204 2011-01-19 Richard Henderson <rth@redhat.com>
22206 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
22207 (*mulsi3): Likewise.
22209 * longlong.h [__mn10300__] (count_leading_zeros): New.
22210 [__mn10300__] (umul_ppmm, smul_ppmm): New.
22211 [__mn10300__] (add_ssaaaa, subddmmss): New.
22212 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
22213 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
22215 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22217 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
22219 2011-01-19 Richard Henderson <rth@redhat.com>
22221 * config/mn10300/mn10300.md (addsi3_flags): New.
22222 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
22223 (subsi3_flags, subc_internal, subdi3): New.
22224 (subdi3_internal, *subdi3_degenerate): New.
22225 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
22227 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
22228 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
22229 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
22230 * config/mn10300/mn10300-protos.h: Update.
22231 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
22232 (return_ret): Likewise. Rename from return_internal_regs.
22233 (return_internal): Remove.
22235 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
22236 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
22237 (mn10300_legitimate_constant_p): Likewise.
22238 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
22239 (mn10300_frame_size): New.
22240 (mn10300_expand_prologue): Use it.
22241 (mn10300_expand_epilogue): Likewise.
22242 (mn10300_initial_offset): Likewise.
22243 * config/mn10300/mn10300-protos.h: Update.
22244 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
22245 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
22246 (prologue, epilogue, return_internal): Tidy output code.
22247 (mn10300_store_multiple_operation, return): Likewise.
22248 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
22249 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
22250 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
22251 (load_pic, am33_load_pic): New.
22252 (mn10300_load_pic0, mn10300_load_pic1): New.
22254 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
22255 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
22256 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
22257 (cc_flags_for_mode, cc_flags_for_code): New.
22258 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
22259 overflow flag is not valid. Validate that the flags we need
22260 for the comparison are valid.
22261 (mn10300_output_cmp): Remove.
22262 (mn10300_output_add): New.
22263 (mn10300_select_cc_mode): Use cc_flags_for_code.
22264 (mn10300_split_cbranch): New.
22265 (mn10300_match_ccmode): New.
22266 (mn10300_split_and_operand_count): New.
22267 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
22269 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
22270 (addsi3): ... here. Use mn10300_output_add.
22271 (*addsi3_flags): New.
22272 (*am33_subsi3, *mn10300_subsi3): Merge...
22273 (subsi3): ... here. Use attribute isa.
22274 (*subsi3_flags): New.
22275 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
22277 (*am33_andsi3, *mn10300_andsi3): Merge...
22278 (andsi3): ... here.
22279 (*andsi3_flags): New.
22280 (andsi3 splitters): New.
22281 (*am33_iorsi3, *mn10300_iorsi3): Merge...
22282 (iorsi3): ... here.
22283 (*iorsi3_flags): New.
22284 (*am33_xorsi3, *mn10300_xorsi3): Merge...
22285 (xorsi3): ... here.
22286 (*xorsi3_flags): New.
22287 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
22288 (one_cmplsi2): ... here.
22289 (*one_cmplsi2_flags): New.
22290 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
22291 instead of "dax" in constraints. Use mn10300_split_cbranch.
22292 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
22293 use matching constraints to eliminate a self-comparison.
22294 (*integer_conditional_branch): Rename from integer_conditional_branch.
22295 Use int_mode_flags to match CC_REG.
22296 (*cbranchsi4_btst, *btstsi): New.
22297 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
22298 mn10300_split_cbranch.
22299 (*am33_cmpsf): Rename from am33_cmpsf.
22300 (*float_conditional_branch): Rename from float_conditional_branch.
22301 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
22302 (zero_extendqisi2): ... here.
22303 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
22304 (zero_extendhisi2): ... here.
22305 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
22306 (extendqisi2): ... here.
22307 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
22308 (extendhisi2): ... here.
22309 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
22310 (ashlsi3): ... here.
22311 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
22312 (lshrsi3): ... here.
22313 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
22314 (ashrsi3): ... here.
22315 (consecutive add peephole): Remove.
22316 * config/mn10300/predicates.md (label_ref_operand): New.
22317 (int_mode_flags): New.
22318 (CCZN_comparison_operator): New.
22320 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
22321 (throughput_42_latency_43): New reservation.
22322 (mulsidi3, umulsidi3): New expanders.
22323 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
22324 the MDR register to allocation; separately allocate the low and
22325 high parts of the DImode result.
22326 (umulsidi3_internal): Similarly.
22327 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
22328 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
22329 (udivsi3, umodsi3): Remove.
22330 (udivmodsi4, divmodsi4): New expanders.
22331 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
22332 (*divmodsi4): Simiarly.
22333 (ext_internal): New.
22335 * config/mn10300/constraints.md ("z"): New constraint.
22336 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
22337 (FIXED_REGISTERS): Don't fix MDR.
22338 (CALL_USED_REGSITERS): Reformat nicely.
22339 (REG_ALLOC_ORDER): Add MDR.
22340 (enum regclass): Add MDR_REGS.
22341 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
22342 (IRA_COVER_CLASSES): Add MDR_REGS.
22343 (REGNO_REG_CLASS): Handle MDR_REG.
22344 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
22345 (mn10300_register_move_cost): Likewise.
22346 * config/mn10300/mn10300.md (MDR_REG): New.
22347 (*movsi_internal): Handle moves to/from MDR_REGS.
22349 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
22351 (mn10300_secondary_reload): Tidy combination reload classes.
22352 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
22353 addresses for AM33. Allow symbolic offsets for reg+imm.
22354 (mn10300_regno_in_class_p): New.
22355 (mn10300_legitimize_reload_address): New.
22356 * config/mn10300/mn10300.h (enum reg_class): Remove
22357 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
22358 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
22359 SP_OR_GENERAL_REGS.
22360 (REG_CLASS_NAMES): Update to match.
22361 (REG_CLASS_CONTENTS): Likewise.
22362 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
22363 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
22364 (REGNO_IN_RANGE_P): Remove.
22365 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
22366 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
22367 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
22368 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
22369 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
22370 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
22371 (REGNO_GENERAL_P): New.
22372 (HAVE_POST_MODIFY_DISP): New.
22373 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
22374 (LEGITIMIZE_RELOAD_ADDRESS): New.
22375 * config/mn10300/mn10300-protos.h: Update.
22377 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
22378 DATA_REGS for AM33 stack-pointer destination.
22379 (mn10300_preferred_output_reload_class): Likewise.
22380 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
22381 into a form appropriate for ...
22382 (TARGET_SECONDARY_RELOAD): New.
22383 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
22384 * config/mn10300/mn10300-protos.h: Update.
22385 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
22386 reload_insi; use the "A" constraint for the scratch; handle AM33
22387 moves of sp to non-address registers.
22389 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
22390 (*movqi_internal): ... here.
22391 (*am33_movhi, *mn10300_movhi): Merge into...
22392 (*movhi_internal): ... here.
22393 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
22394 as the source/destination of moves from/to SP.
22395 (movsf): Only allow for AM33-2.
22396 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
22397 any integer constant constraint. Only allow for AM33-2. Tidy
22398 all of the alternative outputs.
22399 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
22400 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
22402 (udivsi3, umodsi3): New patterns for MN103 only.
22404 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
22406 * doc/tm.texi.in: Spell out that a lack of register class unions
22408 * doc/tm.texi: Regenerate.
22410 2011-01-19 Jakub Jelinek <jakub@redhat.com>
22412 PR rtl-optimization/47337
22413 * dce.c (check_argument_store): New function.
22414 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
22416 PR tree-optimization/47290
22417 * tree-eh.c (infinite_empty_loop_p): New function.
22418 (cleanup_empty_eh): Use it.
22420 2011-01-18 Steve Ellcey <sje@cup.hp.com>
22423 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
22424 (a64_expand_widen_sum): Ditto.
22425 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
22426 (vec_extract_evenodd_help): Ditto.
22427 (vec_extract_evenv4hi): Ditto.
22428 (vec_extract_oddv4hi): Ditto.
22429 (vec_extract_evenv2si): Ditto.
22430 (vec_extract_oddv2si): Ditto.
22431 (vec_extract_evenv2sf): Ditto.
22432 (vec_extract_oddv2sf): Ditto.
22433 (vec_pack_trunc_v4hi: Ditto.
22434 (vec_pack_trunc_v2si): Ditto.
22435 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
22436 (vec_interleave_highv8qi): Ditto.
22438 (vec_extract_oddv8qi): Ditto.
22439 (vec_interleave_lowv4hi): Ditto.
22440 (vec_interleave_highv4hi): Ditto.
22441 (vec_interleave_lowv2si): Ditto.
22442 (vec_interleave_highv2si): Ditto.
22444 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22446 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
22447 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
22448 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
22449 (pa_c_mode_for_suffix): New.
22450 (TARGET_EXPAND_BUILTIN): Define.
22451 (TARGET_C_MODE_FOR_SUFFIX): Define.
22452 (pa_builtins): Define.
22453 (pa_init_builtins): Register __float128 type and init new support
22455 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
22456 * config/pa/quadlib.c (_U_Qfcopysign): New.
22458 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
22460 PR middle-end/46894
22461 * explow.c (allocate_dynamic_stack_space): Do not assume more than
22462 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
22465 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22467 PR tree-optimization/47179
22468 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
22469 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
22471 2011-01-18 Richard Guenther <rguenther@suse.de>
22473 PR rtl-optimization/47216
22474 * emit-rtl.c: Include tree-flow.h.
22475 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
22476 of replicating it with different semantics.
22477 * Makefile.in (emit-rtl.o): Adjust.
22479 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22481 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
22482 (cortex_a9_dp): Handle neon types correctly.
22484 2011-01-18 Jakub Jelinek <jakub@redhat.com>
22486 PR rtl-optimization/47299
22487 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
22488 subtarget. Use normal multiplication if both operands are constants.
22489 * expmed.c (expand_widening_mult): Don't try to optimize constant
22490 multiplication if op0 has VOIDmode. Convert op1 constant to mode
22493 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22495 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
22496 spacing after 'e.g.', typos, comma, hyphenation.
22498 2011-01-17 Richard Henderson <rth@redhat.com>
22500 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
22501 (rx_restricted_mem_operand): New.
22502 (rx_shift_operand): Use register_operand.
22503 (rx_source_operand, rx_compare_operand): Likewise.
22504 * config/rx/rx.md (addsi3_flags): New expander.
22505 (adddi3): Rewrite as expander.
22506 (adc_internal, *adc_flags, adddi3_internal): New patterns.
22507 (subsi3_flags): New expander.
22508 (subdi3): Rewrite as expander.
22509 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
22511 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
22512 (rx_init_builtins): Remove sat builtin.
22513 (rx_expand_builtin): Likewise.
22514 * config/rx/rx.md (ssaddsi3): New.
22515 (*sat): Rename from sat. Represent the CC_REG input.
22517 * config/rx/predicates.md (rshift_operator): New.
22518 * config/rx/rx.c (rx_expand_insv): Remove.
22519 * config/rx/rx-protos.h: Update.
22520 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
22521 operand to the canonical position.
22522 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
22523 (*bitclr, *bitclr_in_memory): Similarly.
22524 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
22525 (insv): Retain the zero_extract in the expansion.
22527 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
22528 (bswaphi2, bitinvert, revw): Likewise.
22530 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
22531 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
22532 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
22533 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
22534 (bitset, bitset_in_memory): Likewise.
22535 (bitinvert, bitinvert_in_memory): Likewise.
22536 (bitclr, bitclr_in_memory): Likewise.
22537 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
22538 (rx_strend, rx_cmpstrn): Likewise.
22539 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
22540 (bitop peep2 patterns): Remove.
22542 * config/rx/rx.c (rx_match_ccmode): New.
22543 * config/rx/rx-protos.h: Update.
22544 * config/rx/rx.md (abssi2): Clobber, don't set flags.
22545 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
22546 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
22547 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
22548 (fix_truncsfsi2, floatsisf2): Likewise.
22549 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
22550 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
22551 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
22552 (*subsi3_flags, *xorsi3_flags): New.
22554 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
22556 * config/rx/rx.c (rx_print_operand): Remove workaround for
22557 unsplit comparison operations.
22559 * config/rx/rx.md (movsicc): Split after reload.
22560 (*movsicc): Merge *movsieq and *movsine via match_operator.
22561 (*stcc): New pattern.
22563 * config/rx/rx.c (rx_float_compare_mode): Remove.
22564 * config/rx/rx.h (rx_float_compare_mode): Remove.
22565 * config/rx/rx.md (cstoresi4): Split after reload.
22566 (*sccc): New pattern.
22568 * config/rx/predicates.md (label_ref_operand): New.
22569 (rx_z_comparison_operator): New.
22570 (rx_zs_comparison_operator): New.
22571 (rx_fp_comparison_operator): New.
22572 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
22573 Validate that the flags are set properly for the comparison.
22574 (rx_gen_cond_branch_template): Remove.
22575 (rx_cc_modes_compatible): Remove.
22576 (mode_from_flags): New.
22577 (flags_from_code): Rename from flags_needed_for_conditional.
22578 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
22579 (rx_select_cc_mode): Likewise.
22580 (rx_split_fp_compare): New.
22581 (rx_split_cbranch): New.
22582 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
22583 (*cbranchsi4): Use match_operator and rx_split_cbranch.
22584 (*cbranchsf4): Similarly.
22585 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
22586 match_operator and rx_split_cbranch.
22587 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
22588 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
22589 (*cmpsi): Rename from cmpsi.
22590 (*tstsi): Rename from tstsi.
22591 (*cmpsf): Rename from cmpsf; use CC_Fmode.
22592 (*conditional_branch): Rename from conditional_branch.
22593 (*reveresed_conditional_branch): Remove.
22594 (b<code>): Remove expander.
22595 * config/rx/rx-protos.h: Update.
22597 * config/rx/rx.c (rx_compare_redundant): Remove.
22598 * config/rx/rx.md (cmpsi): Don't use it.
22599 * config/rx/rx-protos.h: Update.
22601 * config/rx/rx-modes.def (CC_F): New mode.
22602 * config/rx/rx.c (rx_select_cc_mode): New.
22603 * config/rx/rx.h (SELECT_CC_MODE): Use it.
22604 * config/rx/rx-protos.h: Update.
22606 2011-01-17 Richard Henderson <rth@redhat.com>
22608 * except.c (dump_eh_tree): Fix stray ; after for statement.
22610 2011-01-17 Richard Guenther <rguenther@suse.de>
22612 PR tree-optimization/47313
22613 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
22614 handling before copying the body. Properly deal with
22615 by-reference result in SSA form.
22617 2011-01-17 Ian Lance Taylor <iant@google.com>
22620 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
22621 (struct_value_alias_set): Don't define.
22622 (sparc_option_override): Don't set sparc_sr_alias_set and
22623 struct_value_alias_set.
22624 (save_or_restore_regs): Use gen_frame_mem rather than calling
22626 (sparc_struct_value_rtx): Likewise.
22628 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
22631 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
22632 (_mm_maskstore_pd): Likewise.
22633 (_mm_maskload_ps): Likewise.
22634 (_mm_maskstore_ps): Likewise.
22635 (_mm256_maskload_pd): Change mask to __m256i.
22636 (_mm256_maskstore_pd): Likewise.
22637 (_mm256_maskload_ps): Likewise.
22638 (_mm256_maskstore_ps): Likewise.
22640 * config/i386/i386-builtin-types.def: Updated.
22641 (ix86_expand_special_args_builtin): Likewise.
22643 * config/i386/i386.c (bdesc_special_args): Update
22644 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
22645 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
22646 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
22647 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
22649 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
22650 Use <avxpermvecmode> on mask register.
22651 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
22653 2011-01-17 Olivier Hainque <hainque@adacore.com>
22654 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22655 Eric Botcazou <ebotcazou@adacore.com>
22658 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
22659 if <= USHRT_MAX in 32-bit mode.
22661 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22663 * doc/install.texi (Configuration, Specific): Wrap long
22664 lines in examples. Allow line wrapping in long options
22665 and URLs where beneficial for PDF output.
22667 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
22669 * config/mips/mips.c (mips_classify_symbol): Don't return
22670 SYMBOL_PC_RELATIVE for nonlocal labels.
22672 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
22674 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
22676 2011-01-15 Jan Hubicka <jh@suse.cz>
22678 PR tree-optimization/47276
22679 * ipa.c (function_and_variable_visibility): Do not try to mark alias
22680 declarations as needed.
22682 2011-01-15 Martin Jambor <mjambor@suse.cz>
22684 * common.opt (fdevirtualize): New flag.
22685 * doc/invoke.texi (Option Summary): Document it.
22686 * opts.c (default_options_table): Add devirtualize flag.
22687 * ipa-prop.c (detect_type_change): Return immediately if
22688 devirtualize flag is not set.
22689 (detect_type_change_ssa): Likewise.
22690 (compute_known_type_jump_func): Likewise.
22691 (ipa_analyze_virtual_call_uses): Likewise.
22693 2011-01-14 Martin Jambor <mjambor@suse.cz>
22695 PR tree-optimization/45934
22696 PR tree-optimization/46302
22697 * ipa-prop.c (type_change_info): New type.
22698 (stmt_may_be_vtbl_ptr_store): New function.
22699 (check_stmt_for_type_change): Likewise.
22700 (detect_type_change): Likewise.
22701 (detect_type_change_ssa): Likewise.
22702 (compute_complex_assign_jump_func): Check for dynamic type change.
22703 (compute_complex_ancestor_jump_func): Likewise.
22704 (compute_known_type_jump_func): Likewise.
22705 (compute_scalar_jump_functions): Likewise.
22706 (ipa_analyze_virtual_call_uses): Likewise.
22707 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
22709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22711 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
22712 * config/i386/i386.opt (msse5): New Alias.
22714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22716 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
22717 * config/sparc/linux64.h (CC1_SPEC): Likewise.
22718 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22719 * config/sparc/sparc.h (CC1_SPEC): Likewise.
22721 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22723 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
22725 * config/sparc/linux64.h (CC1_SPEC): Likewise.
22726 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
22727 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
22728 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
22730 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
22732 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22734 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
22736 2011-01-14 Mike Stump <mikestump@comcast.net>
22738 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
22739 * config/fr30/fr30.md: Likweise
22740 (movsi_push): Likewise.
22741 (movsi_pop): Likewise.
22742 (enter_func): Likewise.
22743 * config/moxie/moxie.md (movsi_push): Likewise.
22744 (movsi_pop): Likewise.
22746 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22748 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
22749 %{no_archive} %{exact_version}.
22750 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
22751 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
22752 %{no_archive} %{exact_version}.
22753 * config/mips/openbsd.h (LINK_SPEC): Likewise.
22754 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
22755 * config/mips/vxworks.h: Likewise.
22757 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22759 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
22761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22763 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
22764 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
22766 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22768 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
22771 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22773 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
22775 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
22776 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
22778 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
22779 Don't handle -shlib.
22781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22783 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
22784 (CC1_SPEC): Don't handle -profile.
22786 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22788 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
22789 * config/mips/mips.h (CC1_SPEC): Likewise.
22791 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22793 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
22794 * config/mips/mips.h (CC1_SPEC): Likewise.
22796 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22798 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
22799 * config/m32r/linux.h (LINK_SPEC): Likewise.
22800 * config/mips/linux.h (LINK_SPEC): Likewise.
22801 * config/mips/linux64.h (LINK_SPEC): Likewise.
22802 * config/sparc/linux.h (LINK_SPEC): Likewise.
22803 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
22804 LINK_SPEC): Likewise.
22805 * config/xtensa/linux.h (LINK_SPEC): Likewise.
22807 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22809 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
22811 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
22813 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22815 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
22816 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22818 2011-01-14 Joseph Myers <joseph@codesourcery.com>
22820 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
22822 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22824 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
22825 supports -Bstatic/-Bdynamic.
22826 * configure: Regenerate.
22828 2011-01-14 Jan Hubicka <jh@suse.cz>
22829 Jack Howarth <howarth@bromo.med.uc.edu>
22832 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
22833 when checking debug_info_level. Test write_symbols instead of
22834 debug_hooks->var_location when setting flag_var_tracking_uninit.
22836 2011-01-14 Richard Guenther <rguenther@suse.de>
22838 PR tree-optimization/47179
22839 * target.def (ref_may_alias_errno): New target hook.
22840 * targhooks.h (default_ref_may_alias_errno): Declare.
22841 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
22842 (default_ref_may_alias_errno): New function.
22843 * target.h (struct ao_ref_s): Declare.
22844 * tree-ssa-alias.c: Include target.h.
22845 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
22846 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
22847 (targhooks.o): Likewise.
22848 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
22849 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
22851 2011-01-14 Richard Guenther <rguenther@suse.de>
22853 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
22855 2011-01-14 Richard Guenther <rguenther@suse.de>
22857 PR tree-optimization/47280
22858 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
22859 return CFG changes.
22860 (tree_ssa_forward_propagate_single_use_vars): Deal with
22861 CFG changes from associate_plusminus.
22863 2011-01-14 Richard Guenther <rguenther@suse.de>
22865 PR middle-end/47281
22867 2011-01-11 Richard Guenther <rguenther@suse.de>
22869 PR tree-optimization/46076
22870 * tree-ssa.c (useless_type_conversion_p): Conversions from
22871 unprototyped to empty argument list function types are useless.
22873 2011-01-14 Richard Guenther <rguenther@suse.de>
22875 PR tree-optimization/47286
22876 * tree-ssa-structalias.c (new_var_info): Register variables are global.
22878 2011-01-14 Martin Jambor <mjambor@suse.cz>
22880 PR middle-end/46823
22881 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
22883 2011-01-13 Anatoly Sokolov <aesok@post.ru>
22885 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
22886 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22887 * config/xtensa/xtensa.c (xtensa_libcall_value,
22888 xtensa_function_value_regno_p): New functions.
22889 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
22891 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
22894 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
22896 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
22897 New function prototype.
22898 * config/i386/winnt.c (i386_pe_assemble_visibility):
22899 Warn only if attribute was specified by user.
22901 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
22904 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
22906 (floatunsdidf2_fcfidu): Ditto.
22908 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22910 * config/s390/s390.c (print_operand_address): Replace 'error' with
22911 'output_operand_lossage'.
22912 (print_operand): Likewise.
22914 2011-01-13 Jeff Law <law@redhat.com>
22916 PR rtl-optimization/39077
22917 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
22918 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
22919 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
22920 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
22921 * gcse.c (prune_insertions_deletions): New function.
22922 (compute_pre_data): Use it.
22924 2011-01-13 Dodji Seketeli <dodji@redhat.com>
22927 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
22929 (prune_unused_types_mark): Use it.
22931 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
22933 PR rtl-optimization/45352
22934 * sel-sched.c: Update copyright years.
22935 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
22936 in the advancing loop when we have issued issue_rate insns.
22938 2011-01-12 Richard Henderson <rth@redhat.com>
22940 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
22941 (TARGET_MD_ASM_CLOBBERS): New.
22943 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
22944 (TARGET_DELEGITIMIZE_ADDRESS): New.
22946 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
22947 (clzsi2, *bsch): New patterns.
22949 * config/mn10300/mn10300.md (INT): New mode iterator.
22950 (*mov<INT>_clr): New pattern, and peep2 to generate it.
22952 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
22953 flag_split_wide_types.
22955 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
22956 (mn10300_trampoline_init): Rewrite without a template, an immediate
22957 load and a direct branch.
22958 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
22960 2011-01-12 Anatoly Sokolov <aesok@post.ru>
22962 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22963 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
22964 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
22965 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22967 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
22970 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
22973 2011-01-12 Jan Hubicka <jh@suse.cz>
22976 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
22977 (PLUGIN_COND_CLOSE): New macro.
22978 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
22980 2011-01-12 Richard Guenther <rguenther@suse.de>
22983 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
22984 register variables in a MEM_REF.
22986 2011-01-12 Joseph Myers <joseph@codesourcery.com>
22988 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
22989 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
22990 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
22991 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22992 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22993 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
22994 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
22995 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
22996 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
22997 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
22998 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
22999 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
23000 * config/gnu-user.h: New. Copied from linux.h.
23001 (LINUX_TARGET_STARTFILE_SPEC): Rename to
23002 GNU_USER_TARGET_STARTFILE_SPEC.
23003 (LINUX_TARGET_ENDFILE_SPEC): Rename to
23004 GNU_USER_TARGET_ENDFILE_SPEC.
23005 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
23006 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
23007 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
23008 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
23009 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
23010 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
23011 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
23012 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
23013 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
23014 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
23015 * config/arm/linux-eabi.h (CC1_SPEC): Use
23016 GNU_USER_TARGET_CC1_SPEC.
23017 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
23018 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
23019 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
23020 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
23021 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
23022 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
23023 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
23024 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
23026 2011-01-12 Richard Guenther <rguenther@suse.de>
23029 * doc/invoke.texi (ffast-math): Document it is turned on
23032 2011-01-12 Jan Hubicka <jh@suse.cz>
23034 PR tree-optimization/47233
23035 * opts.c (common_handle_option): Disable ipa-reference with profile
23038 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
23040 * c-parser.c (c_parser_objc_at_property_declaration): Improved
23043 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
23045 * c-parser.c (c_lex_one_token): Updated and reindented some
23046 comments. No changes in code.
23048 2011-01-11 Ian Lance Taylor <iant@google.com>
23050 * godump.c (go_output_var): Don't output the variable if there is
23051 already a type with the same name.
23053 2011-01-11 Ian Lance Taylor <iant@google.com>
23055 * godump.c (go_format_type): Don't generate float80.
23057 2011-01-11 Richard Henderson <rth@redhat.com>
23059 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
23060 declaration. Rewrite for both speed and size.
23061 (mn10300_address_cost_1): Remove.
23062 (mn10300_register_move_cost): New.
23063 (mn10300_memory_move_cost): New.
23064 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
23065 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
23066 extensions, shifts, BSWAP, CLZ.
23067 (mn10300_wide_const_load_uses_clr): Remove.
23068 (TARGET_REGISTER_MOVE_COST): New.
23069 (TARGET_MEMORY_MOVE_COST): New.
23070 * config/mn10300/mn10300-protos.h: Update.
23071 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
23073 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
23074 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
23075 * config/mn10300/mn10300-protos.h: Update.
23076 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
23077 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
23078 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
23079 (*test_int_bitfield, *test_byte_bitfield): Remove.
23080 (*bit_test, *subreg_bit_test): Remove.
23081 * config/mn10300/predicates.md (const_8bit_operand): Remove.
23083 * config/mn10300/constraints.md ("c"): Rename from "A".
23084 ("A", "D"): New constraint letters.
23085 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
23086 (fmssf4, fnmasf4, fnmssf4): Likewise.
23088 * config/mn10300/mn10300.md (isa): New attribute.
23089 (enabled): New attribute.
23091 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
23092 (abssf2, negsf2): Define only for hardware fp.
23093 (sqrtsf2): Reformat.
23094 (addsf3, subsf3, mulsf3): Merge expander and insn.
23096 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
23097 (DEBUGGER_AUTO_OFFSET): Remove.
23098 (DEBUGGER_ARG_OFFSET): Remove.
23100 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
23101 Emit register stores with the same offsets as the hardware.
23102 (mn10300_store_multiple_operation): Don't check that the register
23103 save offsets are monotonic.
23104 * config/mn10300/mn10300-protos.h: Update.
23106 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
23108 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
23109 in terms of the value on the stack, not the MDR register.
23111 2011-01-11 Jan Hubicka <jh@suse.cz>
23115 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
23116 (symbol_alias_set_destroy, symbol_alias_set_contains,
23117 propagate_aliases_backward): Declare.
23118 * lto-streamer-out.c (struct sets): New sturcture.
23119 (trivally_defined_alias): New function.
23120 (output_alias_pair_p): Rewrite.
23121 (output_unreferenced_globals): Fix output of alias pairs.
23122 (produce_symtab): Likewise.
23123 * ipa.c (function_and_variable_visibility): Set weak alias destination
23125 * varasm.c (symbol_alias_set_t): Remove.
23126 (symbol_alias_set_destroy): Export.
23127 (propagate_aliases_forward, propagate_aliases_backward): New functions
23129 (compute_visible_aliases): ... this one; remove.
23130 (trivially_visible_alias): New
23131 (trivially_defined_alias): New.
23132 (remove_unreachable_alias_pairs): Rewrite.
23133 (finish_aliases_1): Reorganize code checking if alias is defined.
23134 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
23137 2011-01-11 Richard Guenther <rguenther@suse.de>
23139 PR tree-optimization/46076
23140 * tree-ssa.c (useless_type_conversion_p): Conversions from
23141 unprototyped to empty argument list function types are useless.
23143 2011-01-11 Richard Guenther <rguenther@suse.de>
23145 PR middle-end/45235
23146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
23147 volatile MEMs as MEM_READONLY_P.
23149 2011-01-11 Richard Guenther <rguenther@suse.de>
23151 PR tree-optimization/47239
23152 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
23154 2011-01-11 Jeff Law <law@redhat.com>
23156 PR tree-optimization/47086
23157 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
23158 IVs from statements that might throw.
23160 2011-01-10 Jan Hubicka <jh@suse.cz>
23163 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
23165 2011-01-10 Jan Hubicka <jh@suse.cz>
23168 * profile.c (read_profile_edge_counts): Ignore profile inconistency
23169 when correcting profile.
23171 2011-01-10 Jan Hubicka <jh@suse.cz>
23174 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
23175 DECL_FINI_PRIORITY.
23176 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
23177 Restore DECL_FINI_PRIORITY.
23179 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23181 * doc/gimple.texi: Fix quoting of multi-word return values in
23182 @deftypefn statements. Ensure presence of return value. Wrap
23183 overlong @deftypefn lines.
23184 (is_gimple_operand, is_gimple_min_invariant_address): Remove
23185 descriptions of removed functions.
23186 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
23187 of multi-word return value in @deftypefn statement.
23189 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23191 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
23192 (Conditional Expressions, Logical Operators)
23193 (Statement and operand traversals): Do not indent smallexample
23194 code. Fix duplicate function argument in example.
23196 2011-01-10 Jeff Law <law@redhat.com>
23198 PR tree-optimization/47141
23199 * ipa-split.c (split_function): Handle case where we are
23200 returning a value and the return block has a virtual operand phi.
23202 2011-01-10 Jan Hubicka <jh@suse.cz>
23204 PR tree-optimization/47234
23205 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
23206 (pass_feedback_split_functions): Declare.
23207 * passes.c (init_optimization_passes): Add ipa-split as subpass of
23209 * ipa-split.c (gate_split_functions): Update comments; disable
23210 split-functions for profile_arc_flag and branch_probabilities.
23211 (gate_feedback_split_functions): New function.
23212 (execute_feedback_split_functions): New function.
23213 (pass_feedback_split_functions): New global var.
23215 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
23218 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
23219 calling gimple_call_set_cannot_inline.
23221 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
23223 * config/darwin-sections.def: Remove unused section.
23225 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
23228 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
23230 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
23233 * c-parser.c (c_parser_declaration_or_fndef): Improved
23236 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
23238 * config/i386/winnt.c (i386_pe_start_function): Make sure
23239 to switch back to function's section.
23241 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
23245 * plugin.c: Move include of dlfcn.h from here...
23246 * system.h: ... to here.
23248 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23250 * doc/cpp.texi (C++ Named Operators): Fix markup for header
23252 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
23253 two extra empty pages in PDF output.
23255 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
23258 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
23259 for error recovery purposes behave as if it was not specified so
23260 that the default type is usd.
23262 2011-01-07 Jan Hubicka <jh@suse.cz>
23264 PR tree-optmization/46469
23265 * ipa.c (function_and_variable_visibility): Clear needed flags on
23266 nodes with external decls; handle weakrefs merging correctly.
23268 2011-01-07 Joseph Myers <joseph@codesourcery.com>
23270 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
23273 2011-01-07 Jan Hubicka <jh@suse.cz>
23275 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
23276 and no longer claim that gold is required for linker plugin.
23277 * configure: Regenerate.
23278 * gcc.c (PLUGIN_COND): New macro.
23279 (LINK_COMMAND_SPEC): Use it.
23280 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
23281 * config.in (HAVE_LTO_PLUGIN): New.
23282 * configure.ac (--with-lto-plugin): New parameter; autodetect
23285 2011-01-07 Jan Hubicka <jh@suse.cz>
23287 PR tree-optimization/46367
23288 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
23289 when we can update original.
23290 (cgraph_mark_inline_edge): Sanity check.
23291 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
23293 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23295 * config/spu/spu.h (ASM_COMMENT_START): Define.
23297 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
23300 * gcc.c (%>S): New.
23301 (SWITCH_KEEP_FOR_GCC): Likewise.
23302 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
23303 (do_spec_1): Handle "%>".
23305 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
23307 2011-01-07 Jakub Jelinek <jakub@redhat.com>
23310 * config/i386/i386.c (ix86_delegitimize_address): If
23311 simplify_gen_subreg fails, return orig_x.
23314 * value-prof.c (gimple_stringop_fixed_value): Handle
23315 lhs of the call properly.
23317 2011-01-07 Jan Hubicka <jh@suse.cz>
23320 * lto-opt.c (lto_reissue_options): Set flag_shlib.
23322 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
23324 * target.def (function_switched_text_sections): New hook.
23325 * doc/tm.texi: Regenerated.
23326 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23327 * final.c (default_function_switched_text_sections): New.
23328 (final_scan_insn): Call function_switched_text_sections when a
23329 mid-function section change occurs.
23330 * output.h (default_function_switched_text_sections): Declare.
23331 * config/darwin-protos.h (darwin_function_switched_text_sections):
23333 * config/darwin.c (darwin_function_switched_text_sections): New.
23334 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
23336 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
23338 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
23339 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
23340 the secondary code fragment when outputting for DWARF == 2.
23342 2011-01-07 Anatoly Sokolov <aesok@post.ru>
23344 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23345 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
23347 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
23348 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23350 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
23353 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
23354 when it is not empty.
23356 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
23359 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
23360 (case ${target}): Add btver1.
23361 * config/i386/driver-i386.c (host_detect_local_cpu): Let
23362 -march=native recognize btver1 processors.
23363 * config/i386/i386-c.c (ix86_target_macros_internal): Add
23364 btver1 def_and_undef
23365 * config/i386/i386.c (struct processor_costs btver1_cost): New
23367 (m_BTVER1): New definition.
23368 (m_AMD_MULTIPLE): Includes m_BTVER1.
23369 (initial_ix86_tune_features): Add btver1 tune.
23370 (processor_target_table): Add btver1 entry.
23371 (static const char *const cpu_names): Add btver1 entry.
23372 (software_prefetching_beneficial_p): Add btver1.
23373 (ix86_option_override_internal): Add btver1 instruction sets.
23374 (ix86_issue_rate): Add btver1.
23375 (ix86_adjust_cost): Add btver1.
23376 * config/i386/i386.h (TARGET_BTVER1): New definition.
23377 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
23378 (enum processor_type): Add PROCESSOR_BTVER1.
23379 * config/i386/i386.md (define_attr "cpu"): Add btver1.
23381 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23384 * config/i386/i386.c (legitimize_tls_address)
23385 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
23386 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
23387 (tls_initial_exec_64_sun): New pattern.
23389 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
23391 * doc/invoke.texi (Overall Options): Improve wording and markup
23392 of the description of -wrapper.
23394 2011-01-06 Joseph Myers <joseph@codesourcery.com>
23396 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
23397 rdynamic, threads): New Driver options.
23399 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23402 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
23403 if coming from .tdata.
23404 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
23406 2011-01-06 Jan Hubicka <jh@suse.cz>
23409 * collect2.c (main): Do not enable LTOmode when plugin is active.
23411 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23414 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
23415 --version output if supported.
23416 * configure: Regenerate.
23418 2011-01-06 Joseph Myers <joseph@codesourcery.com>
23420 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
23423 2011-01-06 Jakub Jelinek <jakub@redhat.com>
23426 * c-convert.c (convert): When converting a complex expression
23427 other than COMPLEX_EXPR to a different complex type, ensure
23428 c_save_expr is called instead of save_expr, unless in_late_binary_op.
23429 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
23430 when converting COMPLEX_TYPE.
23432 2011-01-06 Ira Rosen <irar@il.ibm.com>
23434 PR tree-optimization/47139
23435 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
23436 only the last reduction value is used outside the loop. Update
23439 2011-01-05 Joseph Myers <joseph@codesourcery.com>
23441 * config/rtems.opt: New.
23442 * config.gcc (*-*-rtems*): Use rtems.opt.
23444 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
23446 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
23447 processors do not support 3DNow instructions.
23449 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23451 * config/spu/spu.c (spu_option_override): Set parameter
23452 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
23454 2011-01-05 Jan Hubicka <jh@suse.cz>
23456 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
23457 at the command line.
23459 2011-01-05 Martin Jambor <mjambor@suse.cz>
23462 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
23463 deltas on streamed outgoing edges.
23464 (output_node_opt_summary): Output info for outgoing edges only when
23465 the node is in new parameter set.
23466 (output_cgraph_opt_summary): New parameter set, passed to the two
23467 aforementioned functions. Update its forward declaration and its
23470 2011-01-05 Tom Tromey <tromey@redhat.com>
23472 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
23473 operator to c_finish_omp_atomic.
23474 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
23475 (build_unary_op): Update.
23476 (build_modify_expr): Update.
23477 (build_asm_expr): Update.
23479 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23481 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
23482 newly inserted insns.
23483 (pad_bb): Likewise.
23484 (spu_emit_branch_hint): Likewise.
23485 (insert_hbrp_for_ilb_runout): Likewise.
23486 (spu_machine_dependent_reorg): Call df_finish_pass after
23487 schedule_insns returns.
23489 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23491 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
23493 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
23495 PR tree-optimization/47005
23496 * tree-sra.c (struct access): Add 'non_addressable' bit.
23497 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
23498 (decide_one_param_reduction): Return 0 if the parameter is passed by
23499 reference and one of the accesses in the group is non_addressable.
23501 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
23503 PR tree-optimization/47056
23504 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
23505 (mark_load): Likewise. Handle FUNCTION_DECL specially.
23506 (mark_store): Likewise. Pass STMT to ipa_record_reference.
23508 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
23510 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
23511 initializer. Skip view conversions from aggregate types.
23513 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
23516 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
23518 2011-01-04 Philipp Thomas <pth@suse.de>
23520 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
23523 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23525 * function.c (thread_prologue_and_epilogue_insns): Do not crash
23526 on empty epilogue sequences.
23528 2011-01-04 Joseph Myers <joseph@codesourcery.com>
23530 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
23531 non-static): New Driver options.
23533 2011-01-04 Jie Zhang <jie@codesourcery.com>
23536 * gcc.c (default_compilers[]): Set combinable field to 0
23537 for all assembly languages.
23539 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
23541 * config/mips/loongson3a.md: New file.
23542 * config/mips/mips.md: Include loongson3a.md.
23543 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
23546 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
23548 PR middle-end/47017
23549 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
23550 instead of convert_memory_address_addr_space on the base expression.
23552 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23554 * config/spu/spu.c (spu_option_override): Update error text
23555 for bad -march= / -mtune= values.
23557 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23559 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
23560 if branch-hint optimization will be performed.
23562 2011-01-03 Jakub Jelinek <jakub@redhat.com>
23564 PR tree-optimization/47148
23565 * ipa-split.c (split_function): Convert arguments to
23566 DECL_ARG_TYPE if possible.
23568 PR tree-optimization/47155
23569 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
23570 when computing uns.
23572 PR rtl-optimization/47157
23573 * combine.c (try_combine): If undobuf.other_insn becomes
23574 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
23575 and set *new_direct_jump_p too.
23577 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
23579 PR tree-optimization/47021
23580 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
23582 2011-01-03 Jakub Jelinek <jakub@redhat.com>
23584 * gcc.c (process_command): Update copyright notice dates.
23585 * gcov.c (print_version): Likewise.
23586 * gcov-dump.c (print_version): Likewise.
23587 * mips-tfile.c (main): Likewise.
23588 * mips-tdump.c (main): Likewise.
23590 2011-01-03 Martin Jambor <mjambor@suse.cz>
23592 PR tree-optimization/46801
23593 * tree-sra.c (type_internals_preclude_sra_p): Check whether
23594 aggregate fields start at byte boundary instead of the bit-field flag.
23596 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
23599 * gcc.c (main): Revert revision 168407.
23601 2011-01-03 Martin Jambor <mjambor@suse.cz>
23603 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
23605 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23607 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
23608 vector optab to expand vector/scalar shift, update gimple to vector.
23610 2011-01-03 Martin Jambor <mjambor@suse.cz>
23612 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
23615 2011-01-03 Martin Jambor <mjambor@suse.cz>
23617 PR tree-optimization/46984
23618 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
23620 (cgraph_create_indirect_edge): Fixed line length.
23621 (cgraph_indirect_call_info): Declare.
23622 (cgraph_make_edge_direct) Update declaration.
23623 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
23624 (cgraph_create_indirect_edge): Use it.
23625 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
23627 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
23628 the new thunk_delta representation.
23629 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
23631 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
23632 (ipa_read_indirect_edge_info): Likewise.
23633 * lto-cgraph.c (output_edge_opt_summary): New function.
23634 (output_node_opt_summary): Call it on all outgoing edges.
23635 (input_edge_opt_summary): New function.
23636 (input_node_opt_summary): Call it on all outgoing edges.
23638 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
23641 * gcc.c (main): Don't check have_o when settting combine_inputs.
23643 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
23645 * regrename.c: Add general comment describing the pass.
23646 (struct du_head): Remove 'length' field.
23647 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
23648 (regrename_optimize): Do not sort chains. Rework comments, add others.
23649 Force renaming to the preferred class (if any) in the first pass and do
23650 not consider registers that belong to it in the second pass.
23651 (create_new_chain): Do not set 'length' field.
23652 (scan_rtx_reg): Likewise.
23654 2011-01-02 Jakub Jelinek <jakub@redhat.com>
23656 PR tree-optimization/47140
23657 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
23658 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
23659 to bit_value_binop.
23661 PR rtl-optimization/47028
23662 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
23663 parm_birth_insn instead of at the beginning of first bb.
23665 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
23667 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
23668 Remove the word "see" before "@pxref".
23669 * doc/rtl.texi: Remove the word "see" before "@pxref".
23671 2011-01-01 Jan Hubicka <jh@suse.cz>
23673 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
23676 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
23679 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
23682 Copyright (C) 2011 Free Software Foundation, Inc.
23684 Copying and distribution of this file, with or without modification,
23685 are permitted in any medium without royalty provided the copyright
23686 notice and this notice are preserved.