1 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
3 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
5 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
7 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
8 ORDERED and UNORDERED conditions.
10 2012-05-11 Richard Guenther <rguenther@suse.de>
12 * tree-flow.h (referenced_var_check_and_insert): Remove.
13 (find_new_referenced_vars): Likewise.
14 * tree-dfa.c (referenced_var_check_and_insert): Make static.
15 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
16 * tree-inline.c (copy_bb): Use find_referenced_vars_in
17 instead of find_new_referenced_vars.
18 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
20 2012-05-11 Richard Guenther <rguenther@suse.de>
22 * tree-pass.h (pass_rest_of_compilation,
23 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
25 * passes.c (pass_all_optimizations, pass_postreload,
26 pass_all_early_optimizations): Make static.
27 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
28 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
29 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
30 (delete_tree_ssa): Do not call fini_phinodes.
31 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
33 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
36 * doc/options.texi (EnabledBy): Document
37 * opts.c: Include opts.h and options.h before tm.h.
38 (finish_options): Do not handle some sub-options here...
39 (common_handle_option): ... instead call common_handle_option_auto here.
40 * optc-gen.awk: Handle EnabledBy.
41 * opth-gen.awk: Declare common_handle_option_auto.
42 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
43 (Wmaybe-uninitialized): Likewise.
44 (Wunused-but-set-variable): Likewise.
45 (Wunused-function): Likewise.
46 (Wunused-label): Likewise.
47 (Wunused-value): Likewise.
48 (Wunused-variable): Likewise.
49 * opt-read.awk: Create opt_numbers array.
51 2012-05-11 Richard Guenther <rguenther@suse.de>
53 PR tree-optimization/53295
54 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
56 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
57 strides when analyzing data-references in a loop context.
58 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
59 non-constant strides for now.
60 (vect_enhance_data_refs_alignment): Ignore data references
61 that are strided loads.
62 (vect_analyze_data_ref_access): Handle non-constant strides.
63 (vect_check_strided_load): Verify the data-reference is a load.
64 (vect_analyze_data_refs): Restructure to make strided load
65 support not dependent on gather support.
66 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
67 when doing strided or gather loads.
68 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
69 integer_zerop to compare stride with zero.
71 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
73 * config/i386/driver-i386.c (host_detect_local_cpu): Support
76 2012-05-11 Jan Hubicka <jh@suse.cz>
79 * varpool.c (varpool_assemble_decl): Also output constat pool entries
80 that output_constant_pool missed.
82 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
84 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
87 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
90 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
92 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
94 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
95 optimization for TARGET_AVX.
96 (*movti_internal_sse): Ditto.
97 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
98 (*movdi_internal): Ditto.
99 (*movsi_internal): Ditto.
100 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
101 (*movdf_internal_rex64): Ditto.
102 (*movfd_internal): Ditto.
103 (*movsf_internal): Ditto.
104 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
106 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
108 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
109 reference as size attribute.
111 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
112 Tristan Gingold <gingold@adacore.com>
114 * doc/md.texi (Standard Names): Document probe_stack_address.
115 * explow.c (emit_stack_probe): Handle probe_stack_address.
116 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
117 (UNSPECV_PROBE_STACK_RANGE): Likewise.
118 (probe_stack_address): New insn.
119 (probe_stack_range): Likewise.
120 * config/ia64/ia64.c: Include common/common-target.h.
121 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
123 (ia64_emit_probe_stack_range): New function.
124 (output_probe_stack_range): Likewise.
125 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
126 builtin stack checking is enabled.
127 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
128 and UNSPECV_PROBE_STACK_ADDRESS.
129 (unknown_for_bundling_p): New predicate.
130 (group_barrier_needed): Use important_for_bundling_p.
131 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
132 (issue_nops_and_insn): Likewise.
133 (bundling): Likewise.
134 (final_emit_insn_group_barriers): Likewise.
135 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
136 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
137 (STACK_CHECK_PROTECT): Likewise.
138 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
140 2012-05-10 Jan Hubicka <jh@suse.cz>
142 * ipa-inline.c (update_all_callee_keys): Remove.
143 (inline_small_functions): Simplify priority updating.
145 2012-05-10 Jan Hubicka <jh@suse.cz>
147 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
149 2012-05-10 Jan Hubicka <jh@suse.cz>
151 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
152 (symtab_remove_unreachable_nodes): ... this one.
153 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
154 * cgraphunit.c (ipa_passes): Update.
155 * cgraphclones.c (cgraph_materialize_all_clones): Update.
156 * cgraph.c (cgraph_release_function_body): Only turn initial
157 into error mark when initial was previously set.
158 * ipa-inline.c (ipa_inline): Update.
159 * ipa.c: Include ipa-inline.h
160 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
161 (enqueue_node): New function.
162 (process_references): Update.
163 (symtab_remove_unreachable_nodes): Cleanup.
164 * passes.c (execute_todo, execute_one_pass): Update.
166 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
168 PR rtl-optimization/53125
169 * ira.c (ira): Call find_moveable_pseudos and
170 move_unallocated_pseudos if only ira_conflicts_p is true.
172 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
174 * config/i386/i386.md (*movoi_internal_avx): Handle
175 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
176 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
177 (*movti_internal_sse): Ditto.
178 (*movtf_internal): Ditto.
179 * config/i386/sse.md (ssePSmode): New mode attribute.
180 (*move<mode>_internal): Use ssePSmode.
181 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
182 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
183 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
184 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
186 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
188 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
189 DECL_ORIGINAL_TYPE if it is present.
191 2012-05-10 Nick Clifton <nickc@redhat.com>
194 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
195 a "0" constraint to being a (match_dup 0).
197 2012-05-10 Richard Guenther <rguenther@suse.de>
199 * stor-layout.c (byte_from_pos): Amend comment.
201 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
203 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
204 Document requirement to call in constructors.
206 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
208 2012-05-10 Richard Guenther <rguenther@suse.de>
210 * tree.h (TYPE_IS_SIZETYPE): Remove.
211 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
212 (extract_muldiv_1): Likewise.
213 * gimple.c (gtc_visit): Likewise.
214 (gimple_types_compatible_p): Likewise.
215 (iterative_hash_canonical_type): Likewise.
216 (gimple_canonical_types_compatible_p): Likewise.
217 * gimplify.c (gimplify_one_sizepos): Likewise.
218 * print-tree.c (print_node): Likewise.
219 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
221 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
224 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
225 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
226 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
227 instead of xop_mulv2div2di3_low.
228 (xop_p<macs>dql): Fix vec_select selector.
229 (xop_p<macs>dqh): Ditto.
230 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
231 (xop_mulv2div2di3_high): Ditto.
233 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
236 * diagnostic.h (diagnostic_context): Add last_location.
237 * diagnostic.c (diagnostic_initialize): Initialize it.
238 (diagnostic_show_locus): Use it.
240 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
242 * doc/extend.texi (Function Attributes): Point xref to section
245 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
247 * config/i386/i386.c (*movdf_internal_rex64): Remove
248 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
249 Calculate "mode" attribute according to
250 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
251 (*movdf_internal): Ditto.
253 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
256 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
257 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
258 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
259 or when optimizing for size.
260 * config/i386/sse.md (*mov<mode>_internal): Remove
261 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
262 Calculate "mode" attribute according to optimize_function_for_size_p
263 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
264 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
265 depending on the mode of the instruction. Calculate "mode" attribute
266 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
267 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
268 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
270 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
273 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
274 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
275 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
276 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
277 (expand_prologue): Move initialization of cfun->machine->is_naked,
278 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
279 (avr_set_current_function): ...this new static function.
280 (TARGET_SET_CURRENT_FUNCTION): New define.
281 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
282 checking attributes of current_function_decl.
283 (avr_regs_to_save): Ditto.
284 (signal_function_p): Rename to avr_signal_function_p.
285 (interrupt_function_p): Rename to avr_interrupt_function_p.
287 * doc/extend.texi (Function Attributes): Better explanation of
288 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
291 2012-05-09 Michael Matz <matz@suse.de>
293 PR tree-optimization/53185
294 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
295 peeling when we see strided loads.
297 2012-05-09 Matthias Klose <doko@ubuntu.com>
299 * gcc-ar.c (main): Don't check for execute bits for the plugin.
301 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
303 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
304 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
305 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
306 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
307 (USE_LOAD_POST_INCREMENT): Define.
308 (USE_LOAD_PRE_INCREMENT): Define.
309 (USE_LOAD_POST_DECREMENT): Define.
310 (USE_LOAD_PRE_DECREMENT): Define.
311 (USE_STORE_PRE_DECREMENT): Define.
312 (USE_STORE_PRE_INCREMENT): Define.
313 (USE_STORE_POST_DECREMENT): Define.
314 (USE_STORE_POST_INCREMENT): Define.
315 (arm_auto_incmodes): Add enumeration.
316 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
317 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
319 2012-05-09 Jakub Jelinek <jakub@redhat.com>
321 PR tree-optimization/53226
322 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
323 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
324 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
325 doesn't need to be revisited, look for earliest stmt with
326 !gimple_plf (stmt, GF_PLF_1) if something changed.
328 2012-05-09 Terry Guo <terry.guo@arm.com>
330 * genmultilib: Update copyright dates.
331 * doc/fragments.texi: Ditto.
333 2012-05-09 Terry Guo <terry.guo@arm.com>
335 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
336 * genmultilib (MULTILIB_REQUIRED): New.
337 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
339 2012-05-09 Richard Guenther <rguenther@suse.de>
341 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
342 (vect_do_peeling_for_loop_bound): Likewise.
343 (vect_do_peeling_for_alignment): Likewise.
344 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
345 (vect_do_peeling_for_loop_bound): Get check_profitability and
346 threshold as parameters.
347 (vect_do_peeling_for_alignment): Likewise.
348 (vect_loop_versioning): Likewise.
349 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
350 and threshold here. Control where to put the check here.
352 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
355 * dwarf2out.h (get_address_mode): Move declaration to...
357 * dwarf2out.c (get_address_mode): Move definition to...
358 * rtlanal.c: ...here.
359 * var-tracking.c (get_address_mode): Delete.
360 * combine.c (find_split_point): Use get_address_mode instead of
361 targetm.addr_space.address_mode.
362 * cselib.c (cselib_record_sets): Likewise.
363 * dse.c (canon_address, record_store): Likewise.
364 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
365 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
366 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
367 (expand_expr_real_1): Likewise.
368 * ifcvt.c (noce_try_cmove_arith): Likewise.
369 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
370 * reload.c (find_reloads): Likewise.
371 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
372 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
374 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
376 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
377 information from the instruction produced.
379 2012-05-09 Richard Guenther <rguenther@suse.de>
381 * stor-layout.c (bit_from_pos): Document.
382 (byte_from_pos): Likewise. Optimize.
383 (pos_from_bit): Likewise.
384 (normalize_offset): Use pos_from_bit instead of replicating it.
386 2012-05-09 Alan Modra <amodra@gmail.com>
389 * config/rs6000/rs6000.c (gen_frame_set): New function.
390 (gen_frame_load, gen_frame_store): New functions.
391 (rs6000_savres_rtx): Use the above.
392 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
393 Correct mode used for CR2 in save/restore_world patterns.
394 Don't emit instructions for eh_return frame unwind reg info.
396 2012-05-08 Jan Hubicka <jh@suse.cz>
398 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
400 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
402 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
404 (compile_file): Do not output variables.
405 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
407 * langhooks.c: Include timevar.h
408 (write_global_declarations): Finalize compilation unit after wrapup;
409 set timevars correctly.
410 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
411 not to be added to varpool.
412 * varpool.c (varpool_assemble_decl): Sanity check that we are called
413 only on cases where it makes sense; skip constant pool and value expr
416 2012-05-08 David S. Miller <davem@davemloft.net>
418 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
419 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
420 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
422 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
424 PR rtl-optimization/53278
425 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
426 speed_p code from earlier patch.
428 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
431 * config/sh/sh.md (*branch_true, *branch_false): New insns.
433 2012-05-08 Teresa Johnson <tejohnson@google.com>
435 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
436 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
438 2012-05-08 Jan Hubicka <jh@suse.cz>
440 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
441 (cgraph_create_node_1): Rename to ...
442 (cgraph_create_empty_node): ... this one; export.
443 (cgraph_create_node): Update.
444 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
445 (cgraph_create_edge_including_clones): Likewise.
446 (cgraph_find_replacement_node): Likewise.
447 (cgraph_clone_edge): Likewise.
448 (cgraph_clone_node): Likewise.
449 (clone_function_name): Likewise.
450 (cgraph_create_virtual_clone): Likewise.
451 (cgraph_remove_node_and_inline_clones): Likewise.
452 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
453 * cgraph.h: Reorder declarations so they match file of origin.
454 (cgraph_create_empty_node): Declare.
455 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
456 (cgraph_copy_node_for_versioning): Likewise.
457 (cgraph_function_versioning): Likewise.
458 (cgraph_materialize_clone): Likewise.
459 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
460 (cgraph_materialize_all_clones): Likewise.
461 * cgraphclones.c: New file.
462 * Makefile.in: Update for cgraphclones.
464 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
467 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
468 (ix86_rtx_costs): Handle SET.
470 2012-05-08 Michael Matz <matz@suse.de>
472 * basic-block.h (struct rtl_bb_info): Remove visited member and
473 move head_ member to ...
474 (struct basic_block_def.basic_block_il_dependent): ... the new
475 member x, replacing but containing old member rtl.
476 (enum bb_flags): New BB_VISITED flag.
477 (BB_HEADER, BB_FOOTER): New macros.
479 * jump.c (mark_all_labels): Adjust.
480 * cfgcleanup.c (try_optimize_cfg): Adjust.
481 * cfglayout.c (record_effective_endpoints): Adjust.
482 (relink_block_chain): Ditto (and don't fiddle with visited).
483 (fixup_reorder_chain): Adjust.
484 (fixup_fallthru_exit_predecessor): Ditto.
485 (cfg_layout_duplicate_bb): Ditto.
486 * combine.c (update_cfg_for_uncondjump): Adjust.
487 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
488 (bb_visited_trace): New accessor.
489 (mark_bb_visited): Move in front.
490 (rotate_loop): Use bb_visited_trace.
491 (find_traces_1_round): Ditto.
492 (emit_barrier_after): Ditto.
493 (copy_bb): Ditto, and initialize visited on resize.
494 (reorder_basic_blocks): Initize visited member.
495 (duplicate_computed_gotos): Clear bb flags at start, use
498 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
499 (rtl_verify_flow_info_1): Ditto.
500 (cfg_layout_split_block): Ditto.
501 (cfg_layout_delete_block): Ditto.
502 (cfg_layout_merge_blocks): Ditto.
503 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
505 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
508 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
509 when a constant source operand matches an "I" constraint, the "no
510 CC0 change" applies to a register-destination only, not a
511 strict_low_part-destination.
513 2012-05-08 Richard Guenther <rguenther@suse.de>
515 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
516 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
518 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
520 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
522 * doc/avr-mmcu.texi: New auto-generated file.
523 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
524 to document all valid -mmcu= arguments.
526 * config/avr/avr.h (arch_info_s): New struct definition.
527 * config/avr/avr-devices.c (avr_texinfo): New variable.
528 * config/avr/gen-avr-mmcu-texi.c: New file.
529 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
531 2012-05-08 Dehao Chen <dehao@google.com>
533 * predict.c (find_qualified_ssa_name): New.
534 (find_ssa_name_in_expr): New.
535 (find_ssa_name_in_assign_stmt): New.
536 (is_comparison_with_loop_invariant_p): New.
537 (is_bound_expr_similar): New.
538 (predict_iv_comparison): New.
539 (predict_loops): Add heuristic for loop-nested branches that compare an
540 induction variable to a loop bound variable.
541 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
543 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
545 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
546 TARGET_BDVER2 defines where appropriate.
548 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
550 * configure.ac (PLUGIN_LD): Rename into...
551 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
552 * config.in: Regenerate.
553 * configure: Likewise.
554 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
556 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
558 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
559 computation using the precision of the index type.
560 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
561 (fold_array_ctor_reference): Do index computations in the index type.
563 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
565 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
566 down to plus_constant.
567 (expand_epilogue): Ditto.
569 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
571 * postreload.c (reload_cse_regs): Make static.
572 * reload.h (reload_cse_regs): Remove prototype.
574 2012-05-07 Richard Henderson <rth@redhat.com>
576 * config/alpha/alpha.md (clear_cache): New pattern.
578 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
581 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
582 is folded to a type boundary value, verify that the resulting case
583 label is still a care range.
585 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
587 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
588 only for TARGET_GENERIC, when not optimizing for size.
589 (*ffs<mode>_1): Ditto.
591 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
593 * tree-cfg.c (verify_gimple_switch): Tighten checks.
595 2012-05-07 Jakub Jelinek <jakub@redhat.com>
597 PR tree-optimization/53239
598 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
599 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
601 2012-05-07 Richard Guenther <rguenther@suse.de>
603 PR tree-optimization/53195
604 * tree-inline.c (setup_one_parameter): Properly add referenced
605 vars from the parameters new known value.
607 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
609 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
610 (sched_branch_type): Remove.
611 (m68k_sched_md_init_global): Don't allocate it.
612 (m68k_sched_md_finish_global): Don't free it.
613 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
614 * config/m68k/m68k.md: Set the type of insns using
615 m68k_sched_branch_type to bcc directly.
617 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
619 * config/sol2.c (solaris_override_options): New function.
620 * config/sol2-protos.h (solaris_override_options): Declare.
621 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
623 2012-05-07 Richard Guenther <rguenther@suse.de>
625 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
626 whether we failed to compute data dependences.
627 (loop_prefetch_arrays): Fail if we failed.
629 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
630 Paolo Bonzini <bonzini@gnu.org>
632 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
633 Emit bsf when optimizing for size.
634 (*ffs<mode>_1): Ditto.
636 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
639 * config/sh/sh.c (sh_rtx_costs): Handle SET.
641 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
644 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
645 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
646 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
648 (*bswapdi2_doubleword): New insn pattern.
649 (*bswap<mode>2): Rename from *bswap<mode>2_1.
651 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
653 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
654 (mips_set_reg_reg_cost): Likewise.
655 (mips_rtx_costs): Handle SET.
657 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
659 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
660 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
661 to compute the cost of moves. Set the mode of the target register.
663 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
665 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
666 plus_constant function.
667 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
668 that the mode is sensible.
669 (use_anchored_address, round_push, allocate_dynamic_stack_space)
670 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
673 * alias.c (canon_rtx): Likewise.
674 (init_alias_analysis): Likewise.
675 * builtins.c (expand_builtin_return_addr)
676 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
677 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
678 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
679 (expand_builtin_stpcpy): Likewise.
680 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
681 (compute_argument_addresses, internal_arg_pointer_based_exp)
682 (expand_call, emit_library_call_value_1): Likewise.
683 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
684 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
685 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
686 * cse.c (insert_const_anchor, find_reg_offset_for_const)
687 (use_related_value, fold_rtx): Likewise.
688 * cselib.c (cselib_subst_to_values): Likewise.
689 * dse.c (record_store, check_mem_read_rtx): Likewise.
690 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
691 * emit-rtl.c (adjust_address_1): Likewise.
692 * except.c (sjlj_emit_function_enter)
693 (expand_builtin_extract_return_addr)
694 (expand_builtin_frob_return_addr): Likewise.
695 * expmed.c (expand_divmod): Likewise.
696 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
697 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
698 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
699 * function.c (assign_stack_local_1)
700 (instantiate_virtual_regs_in_rtx): Likewise.
701 * optabs.c (prepare_cmp_insn): Likewise.
702 * recog.c (offsettable_address_addr_space_p): Likewise.
703 * reload.c (find_reloads_address, form_sum)
704 (find_reloads_subreg_address): Likewise.
705 * reload1.c (init_reload, eliminate_regs_1)
706 (eliminate_regs_in_insn): Likewise.
707 * simplify-rtx.c (simplify_unary_operation_1)
708 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
709 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
710 (vt_add_function_parameter): Likewise.
712 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
713 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
714 * config/alpha/alpha.c (alpha_legitimize_address_1)
715 (get_unaligned_address, alpha_expand_unaligned_load)
716 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
717 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
718 (alpha_expand_builtin_establish_vms_condition_handler)
719 (alpha_setup_incoming_varargs, emit_frame_store_1)
720 (alpha_expand_prologue, alpha_expand_epilogue)
721 (alpha_use_linkage): Likewise.
722 * config/alpha/alpha.md: Likewise.
724 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
725 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
726 (thumb_legitimize_address, arm_gen_load_multiple_1)
727 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
728 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
729 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
730 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
731 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
732 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
733 (thumb_expand_movmemqi, arm_set_return_address)
734 (thumb_set_return_address): Likewise.
735 * config/arm/arm.md: Likewise.
737 * config/avr/avr.c (avr_incoming_return_addr_rtx)
738 (avr_prologue_setup_frame, expand_epilogue)
739 (avr_const_address_lo16): Likewise.
741 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
742 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
743 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
744 (bfin_output_mi_thunk): Likewise.
746 * config/c6x/c6x.c (c6x_initialize_trampoline)
747 (c6x_output_mi_thunk): Likewise.
749 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
750 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
752 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
753 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
754 (cris_emit_movem_store, cris_trampoline_init): Likewise.
755 * config/cris/cris.md: Likewise.
757 * config/darwin.c (machopic_indirect_data_reference)
758 (machopic_legitimize_pic_address): Likewise.
760 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
761 (epiphany_expand_prologue, epiphany_expand_epilogue)
762 (epiphany_trampoline_init): Likewise.
763 * config/epiphany/epiphany.md: Likewise.
765 * config/fr30/fr30.c (fr30_move_double): Likewise.
767 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
768 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
769 (frv_index_memory, unspec_got_name, frv_find_base_term)
770 (frv_output_dwarf_dtprel): Likewise.
772 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
773 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
775 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
776 * config/i386/i386.c (setup_incoming_varargs_64)
777 (setup_incoming_varargs_ms_64, choose_baseaddr)
778 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
779 (ix86_emit_probe_stack_range, ix86_expand_prologue)
780 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
781 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
782 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
783 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
784 (x86_output_mi_thunk): Likewise.
785 * config/i386/i386.md: Likewise.
787 * config/ia64/ia64.c (ia64_expand_load_address)
788 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
789 (do_spill, ia64_trampoline_init): Likewise.
791 * config/iq2000/iq2000.c (iq2000_va_start)
792 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
793 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
794 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
796 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
798 * config/m32c/m32c.c (m32c_return_addr_rtx)
799 (m32c_expand_insv): Likewise.
801 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
802 (m32r_legitimize_pic_address, m32r_print_operand)
803 (m32r_print_operand_address): Likewise.
805 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
806 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
807 (EH_RETURN_HANDLER_RTX): Likewise.
808 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
809 (m68k_expand_epilogue, legitimize_pic_address)
810 (m68k_output_mi_thunk): Likewise.
811 * config/m68k/m68k.md: Likewise.
813 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
814 (mcore_expand_epilog): Likewise.
815 * config/mcore/mcore.md: Likewise.
817 * config/mep/mep.c (mep_allocate_initial_value)
818 (mep_expand_prologue, mep_expand_epilogue): Likewise.
820 * config/microblaze/microblaze.c (double_memory_operand)
821 (microblaze_block_move_loop): Likewise.
823 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
824 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
825 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
826 (mips_expand_prologue, mips_epilogue_set_cfa)
827 (mips_expand_epilogue): Likewise.
828 * config/mips/mips.md: Likewise.
830 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
831 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
833 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
834 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
836 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
837 (EH_RETURN_HANDLER_RTX): Likewise.
838 * config/moxie/moxie.c (moxie_static_chain): Likewise.
840 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
841 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
842 (pa_return_addr_rtx, hppa_builtin_saveregs)
843 (pa_trampoline_init): Likewise.
844 * config/pa/pa.md: Likewise.
846 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
848 * config/picochip/picochip.c (picochip_static_chain): Likewise.
850 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
851 * config/rs6000/rs6000.c (rs6000_legitimize_address)
852 (setup_incoming_varargs, print_operand, rs6000_return_addr)
853 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
854 (rs6000_emit_epilogue)
855 (rs6000_machopic_legitimize_pic_address): Likewise.
857 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
859 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
860 (DYNAMIC_CHAIN_ADDRESS): Likewise.
861 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
862 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
863 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
864 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
865 (s390_emit_epilogue, s390_function_profiler): Likewise.
866 * config/s390/s390.md: Likewise.
868 * config/score/score.c (score_add_offset, score_prologue): Likewise.
870 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
871 (sh_output_mi_thunk): Likewise.
872 * config/sh/sh.md: Likewise.
874 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
875 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
876 * config/sparc/sparc.c (sparc_legitimize_pic_address)
877 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
878 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
879 (emit_and_preserve): Likewise.
880 * config/sparc/sparc.md: Likewise.
882 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
883 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
884 (spu_setup_incoming_varargs, ea_load_store_inline)
885 (spu_expand_load): Likewise.
887 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
888 (combine_bnp): Likewise.
890 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
891 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
892 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
894 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
895 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
896 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
898 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
899 * config/v850/v850.md: Likewise.
901 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
902 (EH_RETURN_HANDLER_RTX): Likewise.
903 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
904 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
905 (print_operand_address, vax_trampoline_init): Likewise.
907 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
908 (xtensa_function_value_regno_p): Likewise.
910 2012-05-04 Andrew Pinski <apinski@cavium.com>
912 * expr.c (get_def_for_expr_class): New function.
913 (convert_tree_comp_to_rtx): New function.
914 (expand_cond_expr_using_cmove): New function.
915 (expand_expr_real_2 <case COND_EXPR>): Call
916 expand_cond_expr_using_cmove first and return if it succeeds.
917 Remove the check for HAVE_conditional_move since we should have
918 already converted it to a conditional move.
919 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
920 modes of DImode for 32bits and TImode.
922 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
925 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
926 (print_md_ptr_loc, print_c_condition): Use them.
927 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
928 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
929 attr_file, dfa_file, latency_file): New global variables.
930 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
931 write_upcase, write_indent, write_length_unit_log, write_test_expr,
932 write_attr_get, write_insn_cases, write_eligible_delay,
933 write_const_num_delay_slots): Accept FILE pointer and toss it around.
935 (write_header, open_outfile, handle_arg): New funcions.
936 (make_automaton_attrs): Write prototypes as extern to the output
938 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
939 names from the command line. Open the output files and write out
940 internal functions for DFA functions to dfa_file_name, insn latency
941 functions to latency_file_name, and everything else to attr_file.
942 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
943 (BACKEND): Build libbackend first.
944 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
945 (.PRECIOUS): Likewise.
946 (insn-dfatab.o): New rule.
947 (insn-latencytab.o): New rule.
948 (simple_rtl_generated_c): Do not include insn-attrtab.c.
949 (s-attrtab): New rule.
951 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
953 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
954 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
955 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
956 * reorg.c (get_jump_flags): Do not set the removed flags.
958 * doc/md.texi (attr_flag): Update for abovementioned changes.
960 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
964 (TARGET_CMOV): Rename from TARGET_CMOVE.
965 (TARGET_CMOVE): New define.
966 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
967 Do not set TARGET_CMOVE here.
969 2012-05-04 Dodji Seketeli <dodji@redhat.com>
971 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
972 * opts.c (finish_options): Activate -Wunused-local-typedefs if
973 -Wunused is activated.
974 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
976 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
978 * config/s390/s390.md (*movmem_short, *clrmem_short)
979 (*cmpmem_short): Move the mode check from the insn condition to
982 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
984 PR tree-optimization/52633
985 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
986 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
987 (vect_recog_over_widening_pattern): Remove handling of code that was
988 already detected as over-widening pattern. Remove special handling
989 of "unsigned" cases. Instead, support general case of conversion
990 of the shift result to another type.
992 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
994 * tree-vect-patterns.c (vect_single_imm_use): New function.
995 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
996 (vect_recog_over_widening_pattern): Likewise.
997 (vect_recog_widen_shift_pattern): Likewise.
999 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1001 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
1002 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
1003 (vect_recog_widen_mult_pattern): Likewise.
1004 (vect_operation_fits_smaller_type): Likewise.
1005 (vect_recog_over_widening_pattern): Likewise.
1006 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
1008 2012-05-04 Richard Guenther <rguenther@suse.de>
1011 * lto-wrapper.c (merge_and_complain): Complain about mismatches
1012 of -freg-struct-return and -fpcc-struct-return.
1013 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
1014 from the input file options and ignore those from the link
1017 2012-05-04 Richard Guenther <rguenther@suse.de>
1019 PR tree-optimization/53168
1020 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
1021 memory reads when the result is a constant we can pun.
1023 2012-05-04 Richard Guenther <rguenther@suse.de>
1025 * common.opt (flto-report): Do not mark as Optimization.
1027 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
1030 * recog.c (constrain_operands): If extra constraints are present, also
1031 accept pseudo-registers with equivalent memory locations during reload.
1033 2012-05-04 Olivier Hainque <hainque@adacore.com>
1035 * collect2.c (may_unlink_output_file): New global.
1036 (maybe_unlink): Honor it.
1037 * collect2.h: Add extern for it.
1038 * tlink.c (do_tlink): Set it to true if the link succeeded.
1040 2012-05-04 Olivier Hainque <hainque@adacore.com>
1042 * gcc.c (eval_spec_function): Finalize/restore the current string
1043 obstack state as part of the context push/pop operations.
1045 2012-05-04 Bin Cheng <bin.cheng@arm.com>
1047 PR rtl-optimization/52804
1048 * reload1.c (reload_reg_reaches_end_p): Check whether successor
1049 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
1050 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
1051 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
1052 RELOAD_FOR_OUTADDR_ADDRESS.
1054 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1057 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
1058 for macro expansion.
1060 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1062 * flags.h (flag_permissive): Do not declare.
1063 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
1065 * toplev.c (flag_permissive): Do not define.
1066 * c-tree.h (system_header_p): Delete unused.
1068 2012-05-03 David S. Miller <davem@davemloft.net>
1071 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
1072 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
1073 (sparc_emit_float_lib_cmp): Likewise.
1075 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1078 * config/rs6000/rs6000.md (bswapdi splitters): If
1079 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
1080 default) is used, generate an alternate sequence that does not
1081 depend on using indexed addressing.
1083 2012-05-03 Jason Merrill <jason@redhat.com>
1085 * gengtype.c (write_types): Fix warning message.
1086 (write_local): Likewise.
1088 2012-05-02 Jason Merrill <jason@redhat.com>
1090 * dwarf2out.c (struct external_ref, build_local_stub): New.
1091 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
1092 (optimize_external_refs, optimize_external_refs_1): New.
1093 (change_AT_die_ref): New.
1094 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
1095 (build_abbrev_table): Take the external refs hashtable.
1096 (output_comp_unit): Get it from optimize_external_refs and pass it in.
1098 2012-05-03 Jan Hubicka <jh@suse.cz>
1101 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
1103 2012-05-03 Jan Hubicka <jh@suse.cz>
1106 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
1108 2012-05-03 Jason Merrill <jason@redhat.com>
1110 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
1111 use_debug_types to discriminate the die_id union.
1112 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
1113 (build_abbrev_table, output_die): Likewise.
1114 (prune_unused_types_walk_attribs): Likewise.
1115 (generate_type_signature, copy_declaration_context): Set it.
1116 (remove_child_or_replace_with_skeleton): Set it.
1117 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
1118 check use_debug_types.
1119 (dwarf2out_finish): Do break_out_includes after .debug_types.
1121 2012-05-03 Jason Merrill <jason@redhat.com>
1123 * dwarf2out.c (modified_type_die): Use scope_die_for.
1124 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
1125 (uses_local_type_r, uses_local_type): New.
1126 (scope_die_for): Keep a type that uses a local type in local scope.
1127 Use get_context_die for namespace and type scope.
1129 2012-05-03 Jason Merrill <jason@redhat.com>
1131 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
1133 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
1134 (dwarf2out_finish): Likewise.
1136 2012-05-03 Martin Jambor <mjambor@suse.cz>
1138 * builtins.c (get_object_alignment_1): Return whether we can determine
1139 the alignment or conservatively assume byte alignment. Return the
1140 alignment by reference. Use get_pointer_alignment_1 for dereference
1142 (get_pointer_alignment_1): Return whether we can determine the
1143 alignment or conservatively assume byte alignment. Return the
1144 alignment by reference. Use get_ptr_info_alignment to get SSA name
1146 (get_object_alignment): Update call to get_object_alignment_1.
1147 (get_object_or_type_alignment): Likewise, fall back to type alignment
1148 only when it returned false.
1149 (get_pointer_alignment): Update call to get_pointer_alignment_1.
1150 * fold-const.c (get_pointer_modulus_and_residue): Update call to
1151 get_object_alignment_1.
1152 * ipa-prop.c (ipa_modify_call_arguments): Update call to
1153 get_pointer_alignment_1.
1154 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
1155 of MEM_REF or TARGET_MEM_REF only when it returns false.
1156 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
1157 get_object_alignment_1.
1158 (ccp_finalize): Use set_ptr_info_alignment.
1159 * tree.h (get_object_alignment_1): Update declaration.
1160 (get_pointer_alignment_1): Likewise.
1161 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
1162 (dump_gimple_stmt): Likewise.
1163 * tree-flow.h (ptr_info_def): Updated comments of fields align and
1165 (get_ptr_info_alignment): Declared.
1166 (mark_ptr_info_alignment_unknown): Likewise.
1167 (set_ptr_info_alignment): Likewise.
1168 (adjust_ptr_info_misalignment): Likewise.
1169 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
1170 and set alignment of SSA names.
1171 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
1172 mark_ptr_info_alignment_unknown.
1173 * tree-ssanames.c (get_ptr_info_alignment): New function.
1174 (mark_ptr_info_alignment_unknown): Likewise.
1175 (set_ptr_info_alignment): Likewise.
1176 (adjust_ptr_info_misalignment): Likewise.
1177 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
1178 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1180 (bump_vector_ptr): Likewise.
1181 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
1182 (vectorizable_store): Likewise.
1183 (vectorizable_load): Likewise.
1185 2012-05-03 Michael Matz <matz@suse.de>
1187 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
1188 in front of basic_block_def.
1189 (struct basic_block_def): Make il.gimple the full struct, not a
1191 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
1193 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
1194 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
1195 NULL il.gimple, which can't happen anymore.
1196 * gimple.h (bb_seq): il.gimple can't be NULL.
1197 (bb_seq_add): Ditto.
1198 (set_bb_seq): Adjust.
1199 (gsi_start_bb, gsi_last_bb): Tidy.
1200 * lto-streamer-in.c (make_new_block): Don't zero members that
1201 are zeroed already, don't allocate a gimple_bb_info.
1202 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
1203 (remove_bb): Clear all il.gimple members.
1204 (gimple_verify_flow_info): Adjust for flat il.gimple.
1205 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
1207 * coretypes.h (const_gimple_seq): Remove typedef.
1208 * gimple.h (gimple_seq_first): Take gimple_seq.
1209 (gimple_seq_first_stmt): Ditto.
1210 (gimple_seq_last): Ditto.
1211 (gimple_seq_last_stmt): Ditto.
1212 (gimple_seq_empty_p): Ditto.
1214 2012-05-03 Richard Guenther <rguenther@suse.de>
1216 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
1218 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
1219 (compute_avail): Do not add possibly trapping operations to
1220 EXP_GEN if they might not be executed in the block.
1222 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
1224 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
1226 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
1228 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
1229 information as early as possible. Update dominance info instead of
1232 2012-05-03 Richard Guenther <rguenther@suse.de>
1234 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
1235 (union_contains_value): Remove.
1236 (vro_valid_in_sets): Likewise.
1237 (op_valid_in_sets): New function.
1238 (valid_in_sets): Use op_valid_in_sets.
1239 (insert_into_preds_of_block): Move dumping ...
1240 (do_regular_insertion): ... here.
1241 (do_partial_partial_insertion): ... and here. Dump that
1242 we've found a partial partial redundancy.
1243 (insert): Dump the current insert iteration.
1245 2012-05-03 Jakub Jelinek <jakub@redhat.com>
1248 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
1249 append program name to it and pass that as first argument
1250 to make_relative_prefix. Always pass standard_libexec_prefix
1251 as last argument to make_relative_prefix. If
1252 make_relative_prefix returns NULL, fall back to
1253 standard_libexec_prefix.
1256 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
1260 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
1261 mode, return that mode.
1264 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
1265 define __ATOMIC_HLE_* macros here.
1266 (ix86_target_macros): But here, using cpp_define_formatted.
1268 2012-05-03 Richard Guenther <rguenther@suse.de>
1270 PR tree-optimization/53144
1271 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
1273 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
1274 with SSA name values.
1275 (vn_reference_lookup_3): Adjust callers.
1277 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1279 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
1280 has_fma4 for AMD processors with both fma3 and fma4 support.
1282 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
1285 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
1288 2012-05-03 Michael Matz <matz@suse.de>
1291 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
1292 (dse_enter_block): Properly iterate the whole sequence even
1293 if the last statement was removed.
1295 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
1297 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
1298 unset flag_jump_tables.
1299 * stmt.c (expand_case): Remove special flag_pic case conditional
1300 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
1302 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1304 * common/config/s390/s390-common.c (s390_option_optimization_table):
1305 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
1306 default when optimizing.
1308 2012-05-02 Martin Jambor <mjambor@suse.cz>
1311 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
1312 of a variable when the contect is a function.
1314 2012-05-02 Michael Matz <matz@suse.de>
1316 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
1317 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
1318 (const_gimple_seq_node): Remove.
1319 (gimple_seq_node): Typedef as gimple.
1320 (struct gimple_statement_base): Add next and prev members,
1321 adjust all WORD markers in using structs.
1322 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
1323 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
1324 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
1325 gimple are the same.
1326 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
1328 (gimple_init_singleton): New function.
1329 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
1330 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
1332 (gsi_stmt_ptr): Remove.
1333 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
1335 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
1336 again, adjust for above changes.
1337 (update_call_edge_frequencies): Adjust for above changes.
1338 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
1339 (gsi_insert_seq_nodes_after): Ditto.
1340 (gsi_split_seq_after): Ditto.
1341 (gsi_set_stmt): Ditto.
1342 (gsi_split_seq_before): Ditto.
1343 (gsi_remove): Ditto.
1344 (gsi_insert_seq_before_without_update): Don't free sequence.
1345 (gsi_insert_seq_after_without_update): Ditto.
1346 (gsi_replace): Assert some more invariants.
1347 (gsi_insert_before_without_update, gsi_insert_after_without_update):
1349 (gsi_for_stmt): Don't search for stmt.
1350 (gsi_insert_on_edge_immediate): Tidy.
1352 * gimple.c (gimple_alloc_k): Remove "sequences".
1353 (gimple_seq_cache): Remove.
1354 (gimple_alloc_stat): Make stmt a singleton sequence.
1355 (gimple_seq_alloc, gimple_seq_free): Remove.
1356 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
1357 (gimple_copy): Ditto.
1358 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
1359 create iterator from correct sequence.
1360 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
1362 2012-05-02 Michael Matz <matz@suse.de>
1364 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
1366 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
1367 sequence, lazily allocate it.
1368 (bb_seq_addr): New function.
1369 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
1370 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
1371 (gsi_none): New function.
1372 (gsi_start_bb): Adjust.
1373 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
1374 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
1375 (gsi_last_bb): Adjust.
1377 * tree-flow-inline.h (phi_nodes_ptr): New function.
1379 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
1380 datastructure and interface change.
1381 (gsi_insert_seq_before_without_update): Ditto.
1382 (gsi_insert_seq_nodes_after): Ditto.
1383 (gsi_insert_seq_after_without_update): Ditto.
1384 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
1385 (gsi_split_seq_before): Ditto.
1386 (gsi_start_phis): Adjust.
1387 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
1388 (vect_transform_loop): Ditto.
1389 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
1390 gimple_seq_copy): Don't use gimple_seq_alloc.
1391 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
1392 (gimplify_seq_add_seq): Ditto.
1393 * lto-streamer-in.c (make_new_block): Ditto.
1394 * tree-cfg.c (create_bb): Ditto.
1395 * tree-sra.c (initialize_parameter_reductions): Ditto.
1397 2012-05-02 Michael Matz <matz@suse.de>
1399 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
1400 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
1401 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
1402 set_bb_seq): Move down to after gimple_statement_d definition.
1404 2012-05-02 Michael Matz <matz@suse.de>
1406 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
1407 gsi_replace_with_seq, instead of inserting itself.
1408 * gimple-iterator.c (gsi_replace_with_seq): New function.
1409 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
1410 iterator instead of statement, advance it.
1411 (ssa_forward_propagate_and_combine): Adjust call to above.
1413 2012-05-02 Michael Matz <matz@suse.de>
1415 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
1417 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
1418 * tree-nested.c (walk_gimple_omp_for): Ditto.
1419 * trans-mem.c (lower_transaction): Ditto.
1420 * tree-eh.c (do_return_redirection): Ditto.
1421 (do_goto_redirection): Ditto.
1422 (lower_try_finally_switch): Ditto.
1423 * gimplify.c (gimplify_stmt): Ditto.
1424 (gimplify_scan_omp_clauses): Ditto.
1425 (gimplify_omp_for): Ditto.
1426 (gimplify_function_tree): Ditto.
1427 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
1428 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
1429 (mf_build_check_statement_for): Ditto.
1430 (mx_register_decls): Ditto.
1431 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
1432 and don't use itertors to append.
1433 (insert_stmts): Ditto.
1434 (insert_out_of_ssa_copy): Ditto.
1435 (insert_out_of_ssa_copy_on_edge): Ditto.
1437 2012-05-02 Michael Matz <matz@suse.de>
1439 * gimple.h (gimple_bind_body_ptr): New function.
1440 (gimple_bind_body): Use it.
1441 (gimple_catch_handler): Use gimple_catch_handler_ptr.
1442 (gimple_eh_filter_failure_ptr): New function.
1443 (gimple_eh_filter_failure): Use it.
1444 (gimple_eh_else_n_body_ptr): New function.
1445 (gimple_eh_else_n_body): Use it.
1446 (gimple_eh_else_e_body_ptr): New function.
1447 (gimple_eh_else_e_body): Use it.
1448 (gimple_try_eval_ptr): New function.
1449 (gimple_try_eval): Use it.
1450 (gimple_try_cleanup_ptr): New function.
1451 (gimple_try_cleanup): Use it.
1452 (gimple_wce_cleanup_ptr): New function.
1453 (gimple_wce_cleanup): Use it.
1454 (gimple_omp_body_ptr): New function.
1455 (gimple_omp_body): Use it.
1456 (gimple_omp_for_pre_body_ptr): New function.
1457 (gimple_omp_for_pre_body): Use it.
1458 (gimple_transaction_body_ptr): New function.
1459 (gimple_transaction_body): Use it.
1460 (gsi_split_seq_before): Adjust to return nothing and take pointer
1462 (gsi_set_stmt): Declare.
1463 (gsi_replace_with_seq): Declare.
1464 (walk_gimple_seq_mod): Declare.
1465 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
1467 * gimple-iterator.c (gsi_set_stmt): New function.
1468 (gsi_split_seq_before): Return new sequence via pointer argument.
1469 (gsi_replace): Use gsi_set_stmt.
1471 * tree-ssa-loop-im.c (move_computations_stmt): First remove
1473 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
1474 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
1476 (reserve_phi_args_for_new_edge): Change call to above,
1479 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
1480 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
1481 iterators. Adjust call to lower_omp.
1482 (lower_lastprivate_clauses): Adjust call to lower_omp.
1483 (lower_reduction_clauses): Ditto.
1484 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
1485 (lower_omp_sections): Don't explicitely count sequence length,
1486 nullify lowered bodies earlier, ensure stmts are part of only
1487 one sequence, adjust call to lower_omp.
1488 (lower_omp_single): Ensure stmts are part of only one sequence,
1489 adjust call to lower_omp.
1490 (lower_omp_master): Ditto.
1491 (lower_omp_ordered): Ditto.
1492 (lower_omp_critical): Ditto.
1493 (lower_omp_for): Ditto.
1494 (lower_omp_taskreg): Ditto, tidy.
1495 (lower_omp_1): Adjust calls to lower_omp.
1496 (execute_lower_omp): Ditto.
1497 (lower_omp): Adjust to take pointer to sequence.
1498 (diagnose_sb_2): Use walk_gimple_seq_mod.
1499 (diagnose_omp_structured_block_errors): Ditto and set possibly
1500 changed function body.
1501 * gimple-low.c (lower_function_body): Set function body after
1503 (lower_sequence): Adjust to take pointer to sequence.
1504 (lower_omp_directive): Ensure stmt isn't put twice into the
1505 sequence, adjust call to lower_sequence.
1506 (lower_stmt): Adjust calls to lower_sequence.
1507 (lower_gimple_bind): Ditto.
1508 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
1509 * tree-nested.c (walk_body): Take pointer to sequence, use
1510 walk_gimple_seq_mod.
1511 (walk_function): Adjust call to walk_body, set possibly changed body.
1512 (walk_gimple_omp_for): Adjust calls to walk_body.
1513 (convert_nonlocal_omp_clauses): Ditto.
1514 (convert_nonlocal_reference_stmt): Ditto.
1515 (convert_local_omp_clauses): Ditto.
1516 (convert_local_reference_stmt): Ditto.
1517 (convert_tramp_reference_stmt): Ditto.
1518 (convert_gimple_call): Ditto.
1519 (convert_nl_goto_reference): Use local iterator copy.
1520 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
1521 but taking pointer to sequence, ensure gsi_start is called with
1523 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
1524 asserting that the sequence head didn't change.
1525 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
1526 walk_gimple_seq_mod.
1527 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
1528 (execute_lower_tm): Ditto, and set possibly changed body.
1529 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
1530 call gsi_start with that lvalue.
1531 (replace_goto_queue_stmt_list): Ditto.
1532 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
1533 (replace_goto_queue): Ditto.
1534 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
1535 (lower_try_finally_onedest): Ditto.
1536 (lower_try_finally_copy): Ditto.
1537 (lower_try_finally_switch): Ditto.
1538 (lower_try_finally): Ditto.
1539 (lower_eh_filter): Ditto.
1540 (lower_eh_must_not_throw): Ditto.
1541 (lower_cleanup): Ditto.
1542 (lower_eh_constructs_2): Ditto.
1543 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
1544 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
1545 set possibly changed body.
1546 (optimize_double_finally): Call gsi_start with lvalue.
1548 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
1549 (gimple_split_block): Ditto.
1550 (gimple_merge_blocks): Use gsi_start_phis.
1551 (move_stmt_r): Use walk_gimple_seq_mod.
1552 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
1553 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
1554 (rebuild_cgraph_edges): Ditto.
1555 (cgraph_rebuild_references): Ditto.
1556 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
1557 * tree-inline.c (copy_phis_for_bb): Ditto.
1558 * tree-ssa-dce.c: Ditto.
1560 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
1562 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
1563 Andi Kleen <ak@linux.intel.com>
1565 * coretypes.h (MEMMODEL_MASK): New.
1566 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
1567 and return new variable.
1568 (expand_builtin_atomic_exchange): Mask memmodel values.
1569 (expand_builtin_atomic_compare_exchange): Ditto.
1570 (expand_builtin_atomic_load): Ditto.
1571 (expand_builtin_atomic_store): Ditto.
1572 (expand_builtin_atomic_clear): Ditto.
1573 * doc/extend.texi: Mention port-dependent memory model flags.
1574 * config/i386/cpuid.h (bit_HLE): New.
1575 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1577 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
1578 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
1579 (ix86_target_string)<-mhle>: New.
1580 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
1581 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
1582 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
1583 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
1584 enabled for generic, generic64 and core-avx2.
1585 (ix86_print_operand): Generate HLE lock prefixes.
1586 (ix86_memmodel_check): New.
1587 (TARGET_MEMMODEL_CHECK): Ditto.
1588 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
1589 (IX86_HLE_ACQUIRE): Ditto.
1590 (IX86_HLE_RELEASE): Ditto.
1591 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
1592 * config/i386/i386.opt (mhle): Ditto.
1593 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
1594 success model to instruction emitter.
1595 (atomic_fetch_add<mode>): Ditto.
1596 (atomic_exchange<mode>): Ditto.
1597 (atomic_add<mode>): Ditto.
1598 (atomic_sub<mode>): Ditto.
1599 (atomic_<code><mode>): Ditto.
1600 (*atomic_compare_and_swap_doubledi_pic): Ditto.
1601 (atomic_compare_and_swap_single<mode>): Define and use argument
1603 (atomic_compare_and_swap_double<mode>): Ditto.
1604 * configure.ac: Check if assembler support HLE prefixes.
1605 * configure: Regenerate.
1608 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
1611 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
1613 (gimplify_switch_expr): ... here.
1614 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
1615 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
1616 to clean up case labels with values outside the index type range.
1617 (simplify_gimple_switch): Call it if something changed.
1618 Remove strange and unnecessary assert.
1620 2012-05-02 Richard Guenther <rguenther@suse.de>
1622 * fold-const.c (div_if_zero_remainder): sizetypes no longer
1624 (int_const_binop_1): New worker for int_const_binop with
1625 overflowable parameter. Pass it through to force_fit_type_double.
1626 (int_const_binop): Wrap around int_const_binop_1 with overflowable
1628 (size_binop_loc): Call int_const_binop_1 with overflowable equal
1629 to minus one, forcing overflow detection for even unsigned types.
1630 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
1631 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
1632 * stor-layout.c (initialize_sizetypes): sizetypes no longer
1634 (layout_type): For zero-sized arrays ignore overflow on the
1636 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
1637 (bit_value_binop_1): Likewise.
1638 * tree.c (double_int_to_tree): Likewise.
1639 (double_int_fits_to_tree_p): Likewise.
1640 (force_fit_type_double): Likewise.
1641 (host_integerp): Likewise.
1642 (int_fits_type_p): Likewise.
1643 * varasm.c (output_constructor_regular_field): Sign-extend the
1644 field-offset to cater for negative offsets produced by the Ada
1646 * omp-low.c (extract_omp_for_data): Convert the loop step to
1647 signed for pointer adjustments.
1649 2012-05-02 Richard Guenther <rguenther@suse.de>
1651 * tree.c (valid_constant_size_p): New function.
1652 * tree.h (valid_constant_size_p): Declare.
1653 * cfgexpand.c (expand_one_var): Adjust check for too large
1654 variables by using valid_constant_size_p.
1655 * varasm.c (assemble_variable): Likewise.
1657 * c-decl.c (grokdeclarator): Properly check for sizes that
1658 cover more than half of the address-space.
1660 2012-05-02 Jakub Jelinek <jakub@redhat.com>
1662 PR tree-optimization/53163
1663 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
1664 return value from compute_all_dependences.
1666 PR rtl-optimization/53160
1667 * ree.c (combine_reaching_defs): Handle the case where cand->insn
1668 has been modified by ree pass already.
1670 2012-05-01 Ian Lance Taylor <iant@google.com>
1673 * c-decl.c (build_compound_literal): Make the decl readonly if it
1674 an array of a readonly type.
1675 * gimplify.c (gimplify_compound_literal_expr): Add fallback
1676 parameter. Change all callers. If the decl is not addressable
1677 and is not an l-value, make it readonly.
1679 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
1681 * ira.c (allocated_reg_info_size): New static variable.
1682 (expand_reg_info): Manage it. Call
1683 setup_preferred_alternate_classes_for_new_pseudos.
1684 (ira): Don't do it here. Remove local allocated_reg_info_size,
1685 set the global before calling find_moveable_pseudos.
1686 (find_moveable_pseudos): Call expand_reg_info rather than
1689 2012-05-01 Richard Henderson <rth@redhat.com>
1691 * common.opt (fsync-libcalls): New.
1692 * doc/invoke.texi: Document it.
1693 * optabs.c (init_sync_libfuncs): Honor it.
1695 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
1696 Richard Sandiford <r.sandiford@uk.ibm.com>
1698 PR rtl-optimization/52543
1699 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
1701 * lower-subreg.h: New file.
1702 * target-globals.h (this_target_lower_subreg): Declare.
1703 (target_globals): Add lower_subreg;
1704 (restore_target_globals): Restore this_target_lower_subreg.
1705 * target-globals.c: Include it.
1706 (default_target_globals): Add default_target_lower_subreg.
1707 (save_target_globals): Initialize target_lower_subreg.
1708 * rtl.h (init_lower_subreg): Added declaration.
1709 * toplev.c (backend_init_target): Call initializer for lower-subreg
1711 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
1712 (default_target_lower_subreg): New variable.
1713 (this_target_lower_subreg): Likewise.
1714 (twice_word_mode, choices): New macros.
1715 (shift_cost, compute_splitting_shift, compute_costs)
1716 (init_lower_subreg): New functions.
1717 (resolve_simple_move): Add speed_p argument. Check choices.
1718 (find_pseudo_copy): Don't check the mode size here.
1719 (resolve_simple_move): Assert the mode size.
1720 (find_decomposable_shift_zext): Add speed_p argument and return
1721 a bool. Check choices.
1722 (resolve_shift_zext): Add comment.
1723 (dump_shift_choices, dump_choices): New functions.
1724 (decompose_multiword_subregs): Dump list of profitable
1725 transformations. Add code to skip non profitable transformations.
1726 Update calls to simple_move and find_decomposable_shift_zext.
1728 2012-05-01 Ian Bolton <ian.bolton@arm.com>
1729 Sameera Deshpande <sameera.deshpande@arm.com>
1730 Greta Yorsh <greta.yorsh@arm.com>
1732 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
1733 (thumb1_unexpanded_epilogue): ...this.
1734 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
1735 (thumb1_unexpanded_epilogue): ...this.
1736 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
1737 (thumb1_unexpanded_epilogue): ...this.
1739 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
1741 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
1742 comparing enumeration values. Update comments.
1744 2012-05-01 Alan Modra <amodra@gmail.com>
1747 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
1748 load_cr_save, add_crlr_cfa_restore): New functions.
1749 (rs6000_restore_saved_cr): Rename to..
1750 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
1751 (rs6000_emit_epilogue): Use new functions. Adjust condition
1752 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
1753 regs when using out-of-line restore only when shrink wrapping.
1755 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1758 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
1759 calls to cgraph_node_name in xstrdup.
1760 (ipa_make_edge_direct_to_target): Ditto.
1761 * cgraph.c (dump_cgraph_node): Ditto.
1762 * tree-sra.c (convert_callers_for_node): Ditto.
1763 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
1764 * ipa-cp.c (perhaps_add_new_callers): Ditto.
1765 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
1766 (cgraph_materialize_all_clones): Ditto.
1767 * ipa-inline.c (report_inline_failed_reason): Ditto.
1768 (want_early_inline_function_p): Ditto.
1769 (edge_badness): Ditto.
1770 (update_edge_key): Ditto.
1771 (flatten_function): Ditto.
1772 (ipa_inline): Ditto.
1773 (inline_always_inline_functions): Ditto.
1774 (early_inline_small_functions): Ditto.
1776 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1779 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
1780 constraints 0 and 1.
1782 012-04-30 Jan Hubicka <jh@suse.cz>
1784 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
1785 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
1786 (cgraph_add_to_same_comdat_group): Remove.
1787 (cgraph_add_asm_node): Move to cgraphunit.c.
1788 (cgraph_make_decl_local): Move to symtab.c
1789 (cgraph_make_node_local_1): Update.
1790 (cgraph_can_remove_if_no_direct_calls_and): Update.
1791 (used_from_object_file_p): Update.
1792 (resolution_used_from_other_file_p): Move to symtab.c
1793 (cgraph_used_from_object_file_p): move to symtab.c
1794 (verify_cgraph_node): Verify same comdat groups.
1795 * cgraph.h (cgraph_asm_node): Rename to ...
1796 (asm_node): ... this one.
1797 (cgraph_asm_nodes): Rename to ...
1798 (asm_nodes): ... this one.
1799 (symtab_add_to_same_comdat_group): New function.
1800 (symtab_dissolve_same_comdat_group_list): New function.
1801 (symtab_used_from_object_file_p): Declare.
1802 (symtab_make_decl_local): Declare.
1803 (cgraph_add_to_same_comdat_group): Remove.
1804 (cgraph_add_asm_node): Remove.
1805 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
1807 (cgraph_finalize_compilation_unit): Rename to ...
1808 (finalize_compilation_unit): ... this one.
1809 (cgraph_optimize): Rename to ....
1810 (compile): ... this one.
1811 (add_asm_node): Declare.
1812 (fixup_same_cpp_alias_visibility): Declare.
1813 (cgraph_make_decl_local): Remove.
1814 (varpool_assemble_pending_decls): Rename to ...
1815 (varpool_output_variables): ... this one.
1816 (varpool_remove_unreferenced_decls): Remove.
1817 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
1818 (preserve_function_body_p): Make static.
1819 * toplev.c (compile_file): Update comments; update.
1820 * cgraphunit.c: Update comments.
1821 (cgraph_expand_all_functions): Rename to ...
1822 (expand_all_functions): ... this one; update.
1823 (cgraph_mark_functions_to_output): Rename to ...
1824 (mark_functions_to_output): ... this one; cleanup.
1825 (cgraph_output_pending_asms): Remove prototype.
1826 (asm_nodes, asm_last_node): New static vars.
1827 (cgraph_process_new_functions): Update.
1828 (cgraph_reset_node): Cleanup; add comment.
1829 (cgraph_add_new_function): Update.
1830 (cgraph_output_pending_asms): Rename to ...
1831 (output_asm_statements): ... this one.
1832 (add_asm_node): New function.
1833 (fixup_same_cpp_alias_visibility): New function based on code
1834 in cgraph_analyze_function.
1835 (cgraph_analyze_function): Use it.
1836 (cgraph_order_sort): Update.
1837 (cgraph_output_in_order): Update.
1838 (cgraph_function_versioning): Update.
1839 (cgraph_optimize): Rename to ...
1840 (compile): ... this one; initialize streamer hooks here.
1841 (cgraph_finalize_compilation_unit): Rename to ...
1842 (finalize_compilation_unit): ... this one; do not initialize streamer
1844 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
1845 * dwarf2out.c: Update ocmment.
1846 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
1847 * method.c (use_thunk): Likewise.
1848 * semantics.c (maybe_add_lambda_conv_op): Likewise.
1849 * decl2.c (maybe_emit_vtables): Likewise.
1850 (cp_write_global_declarations): Use finalize_compilation_unit.
1851 * parser.c (cp_parser_asm_definition): Use add_asm_node.
1852 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
1853 * c-decl.c (c_write_global_declarations): Use
1854 finalize_compilation_unit.
1855 * langhooks.c (write_global_declarations): Update.
1856 * ipa.c (cgraph_externally_visible_p): Update.
1857 (dissolve_same_comdat_group_list): Remove.
1858 (function_and_variable_visibility): Update.
1859 * symtab.c: Inlcude lto-streamer.h and rtl.h
1860 (ld_plugin_symbol_resolution_names): New.
1861 (symtab_add_to_same_comdat_group): New.
1862 (symtab_dissolve_same_comdat_group_list): New.
1863 (resolution_used_from_other_file_p): Move here from cgraph.c
1864 (symtab_used_from_object_file_p): New.
1865 (symtab_make_decl_local): New.
1866 * passes.c (register_pass): Update comments.
1867 * c-parser.c (c_parser_asm_definition): Update.
1868 * varpool.c (varpool_analyze_node): Use
1869 fixup_same_cpp_alias_visibility.
1870 (varpool_remove_unreferenced_decls): Make static.
1871 (varpool_assemble_pending_decls): Rename to ...
1872 (varpool_output_variables): ... this one; call
1873 varpool_remove_unreferenced_decls.
1874 (varpool_used_from_object_file_p): Remove.
1876 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1879 * c-typeck.c (build_array_ref): Call
1880 convert_vector_to_pointer_for_subscript.
1881 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
1883 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1885 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
1886 to compile-time "mode == <MODE>mode" checks.
1887 (and splitter): Ditto.
1889 2012-04-30 Richard Henderson <rth@redhat.com>
1891 * config/arm/arm.md (UNSPEC_LL): New.
1892 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
1893 (arm_load_exclusivedi): Use %H0.
1895 2012-04-30 Jason Merrill <jason@redhat.com>
1897 * dwarf2out.c (comdat_symbol_id): Add const.
1898 (union die_symbol_or_type_node): Add const to die_symbol.
1899 (output_die_symbol, output_die, output_comp_unit): Adjust.
1901 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
1903 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
1904 * config/arm/neon.md (negdi2_neon): New insn.
1905 Also add splitters for core and NEON registers.
1907 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
1909 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
1910 (arm_print_operand): Add 'x' format.
1911 * config/arm/constraints.md (Dn): Allow const_int.
1912 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
1913 Use 'x' format to print constants.
1914 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
1915 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
1917 (movdi_vfp_cortexa8): Likewise.
1919 2012-04-30 Ian Bolton <ian.bolton@arm.com>
1920 Sameera Deshpande <sameera.deshpande@arm.com>
1921 Greta Yorsh <greta.yorsh@arm.com>
1923 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
1924 * config/arm/arm.c (ldm_stm_operation_p): New function.
1925 * config/arm/predicates.md (load_multiple_operation): Update predicate.
1926 (store_multiple_operation): Likewise.
1928 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
1929 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
1930 * config/arm/predicates.md (load_multiple_operation): Add arguments.
1931 (store_multiple_operation): Likewise.
1933 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1935 * config/i386/i386.md (and<mode>3): Expand masking operations with
1936 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
1937 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
1939 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1941 Add -Wvarargs option
1942 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
1943 argument for the various warning_at calls.
1944 * docs/invoke.texi: Update the documentation.
1946 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1948 Switch -ftrack-macro-expansion=2 on by default.
1949 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
1952 Fix va_start related location
1953 * builtins.c (fold_builtin_next_arg): Unwinds to the first
1954 location in real source code.
1956 Make conversion warnings work on NULL with -ftrack-macro-expansion
1957 * input.h (expansion_point_location_if_in_system_header): Declare
1959 * input.c (expansion_point_location_if_in_system_header): Define it.
1961 Fix -Wuninitialized for -ftrack-macro-expansion
1962 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
1963 declaration. Use linemap_location_before_p for source locations.
1965 Strip "<built-in>" loc from displayed expansion context
1966 * input.c (expand_location_1): When expanding to spelling location
1967 in a context of a macro expansion, skip reserved system header
1968 locations. Update comments. * tree-diagnostic.c
1969 (maybe_unwind_expanded_macro_loc): Likewise.
1971 Make expand_location resolve to locus in main source file
1972 * input.c (expand_location_1): New. Takes a parameter to choose
1973 whether to resolve the location to spelling or expansion point.
1974 Was factorized from ...
1975 (expand_location): ... here.
1976 (expand_location_to_spelling_point): New. Implemented in terms of
1978 * diagnostic.c (diagnostic_build_prefix): Use the new
1979 expand_location_to_spelling_point instead of expand_location.
1981 Fix PCH crash on GTYed pointer-to-scalar field of a struct
1982 * gengtype.c (write_types_process_field): Force second argument of
1983 the call to the PCH object hierarchy walker to be 'x'.
1985 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
1987 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
1988 predicate to discriminate types.
1990 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1992 * doc/invoke.texi (Wmissing-format-attribute): Document as an
1993 alias of Wsuggest-attribute=format.
1994 * c-typeck.c (convert_for_assignment): Replace
1995 Wmissing-format-attribute with Wsuggest-attribute=format.
1996 (digest_init): Likewise.
1998 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2000 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
2001 * common.opt (Wmissing-noreturn): Alias of
2002 -Wsuggest-attribute=noreturn.
2004 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
2007 * config/cris/cris.md (andqu): New peephole2.
2008 (andu): Tweak head comment.
2010 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2011 Steven Bosscher <steven@gcc.gnu.org>
2012 Maxim Kuvyrkov <maxim@codesourcery.com>
2014 PR tree-optimization/38785
2015 * common.opt (ftree-partial-pre): New option.
2016 * doc/invoke.texi: Document it.
2017 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
2018 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
2020 (execute_pre): Use flag_tree_partial_pre.
2022 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2025 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
2028 2012-04-27 Ollie Wild <aaw@google.com>
2030 * doc/invoke.texi (Wliteral-suffix): Document new option.
2032 2012-04-27 Tom Tromey <tromey@redhat.com>
2034 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
2035 (dwarf_tag_name): Use get_DW_TAG_name.
2036 (dwarf_attr_name): Use get_DW_AT_name.
2037 (dwarf_form_name): Use get_DW_FORM_name.
2038 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
2040 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
2042 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
2043 arguments are -1 and 0, by negating the result of the conditional.
2045 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
2048 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
2050 2012-04-27 Richard Guenther <rguenther@suse.de>
2052 * tree-flow.h (is_hidden_global_store): Remove.
2053 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
2054 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
2055 (stmt_may_clobber_global_p): Likewise.
2056 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
2057 (stmt_may_clobber_global_p): Likewise.
2058 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
2059 stmt_may_clobber_global_p.
2060 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
2062 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
2064 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
2067 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
2068 reorganize some fields and update comments. Rename bit_test_uniq
2069 and bit_test_count to uniq resp. count. Remove bit_test_bb.
2070 (collect_switch_conv_info): New function, collects info about a
2071 GIMPLE_SWITCH into a struct switch_conv_info.
2072 (check_range): Simplify to use pre-recorded info. Fix think-o in
2073 range-branch ratio check.
2074 (check_process_case): Remove function.
2075 (check_all_empty_except_final): New function, verifies that all
2076 non-final basic blocks are empty.
2077 (process_switch): Simplify to use pre-recorded info. Call
2078 collect_switch_conv_info to do that. Assert that degenerate switch
2079 statements have been cleaned up.
2081 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
2084 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
2086 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2089 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
2091 2012-04-27 Tom de Vries <tom@codesourcery.com>
2093 PR tree-optimization/51879
2094 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
2095 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
2097 (defs_to_varying): ... here. Don't set use_processed.
2098 (visit_reference_op_call): Handle gimple_vdef.
2099 Handle case that lhs is NULL_TREE.
2100 (visit_use): Use mark_use_processed. Handle calls with side-effect
2101 using visit_reference_op_call.
2103 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
2105 * sched-deps.c (fixup_sched_groups): Rename to...
2106 (chain_to_prev_insn): ...this.
2107 (chain_to_prev_insn_p): New function.
2108 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
2110 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
2112 * sched-int.h (_haifa_insn_data): Move priority_status.
2114 (INSN_MODEL_INDEX): New macro.
2115 * haifa-sched.c (insn_delay): New function.
2116 (sched_regno_pressure_class): Update commentary.
2117 (mark_regno_birth_or_death): Pass the liveness bitmap and
2118 pressure array as arguments, instead of using curr_reg_live and
2119 curr_reg_pressure. Only update the pressure if the bit in the
2120 liveness set has changed.
2121 (initiate_reg_pressure_info): Always trust the live-in set for
2122 SCHED_PRESSURE_MODEL.
2123 (initiate_bb_reg_pressure_info): Update call to
2124 mark_regno_birth_or_death.
2125 (dep_list_size): Take the list as argument.
2126 (calculate_reg_deaths): New function, extracted from...
2127 (setup_insn_reg_pressure_info): ...here.
2128 (MODEL_BAR): New macro.
2129 (model_pressure_data, model_insn_info, model_pressure_limit)
2130 (model_pressure_group): New structures.
2131 (model_schedule, model_worklist, model_insns, model_num_insns)
2132 (model_curr_point, model_before_pressure, model_next_priority):
2134 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
2135 (MODEL_INSN_INFO, MODEL_INSN): New macros.
2136 (model_index, model_update_limit_points_in_group): New functions.
2137 (model_update_limit_points, model_last_use_except): Likewise.
2138 (model_start_update_pressure, model_update_pressure): Likewise.
2139 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
2140 (model_excess_cost, model_dump_pressure_points): Likewise.
2141 (model_set_excess_costs): Likewise.
2142 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
2143 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
2144 schedule as an alternative tie-breaker. Update the call to
2146 (ready_sort): Call model_set_excess_costs.
2147 (update_register_pressure): Update call to mark_regno_birth_or_death.
2148 Rely on that function to check liveness rather than doing it here.
2149 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
2150 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
2151 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
2152 (model_record_pressure, model_record_pressures): New functions.
2153 (model_record_final_pressures, model_add_successors_to_worklist)
2154 (model_promote_predecessors, model_choose_insn): Likewise.
2155 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
2156 (model_start_schedule, model_finalize_pressure_group): Likewise.
2157 (model_end_schedule): Likewise.
2158 (schedule_insn): Say when we're scheduling the next instruction
2159 in the model schedule.
2160 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
2161 (queue_to_ready): Do not add instructions that are
2162 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
2163 Always allow the next instruction in the model schedule to be added.
2164 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
2165 and delay for SCHED_PRESSURE_MODEL too.
2166 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
2167 SCHED_PRIORITY_MODEL, but also take the DFA into account.
2168 (schedule_block): Call model_start_schedule and model_end_schedule.
2169 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
2170 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
2171 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
2173 (sched_finish): Update accordingly.
2174 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
2175 to SCHED_PRESSURE_MODEL.
2176 (add_jump_dependencies): Update call to dep_list_size.
2177 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
2178 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
2179 to SCHED_PRESSURE_MODEL.
2180 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
2181 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
2182 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
2183 handling to SCHED_PRESSURE_MODEL.
2185 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
2187 * common.opt (fsched-pressure-algorithm=): New option.
2188 * flag-types.h (sched_pressure_algorithm): New enum.
2189 * sched-int.h (sched_pressure_p): Replace with...
2190 (sched_pressure): ...this new variable.
2191 * haifa-sched.c (sched_pressure_p): Replace with...
2192 (sched_pressure): ...this new variable.
2193 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
2194 (update_reg_and_insn_max_reg_pressure, schedule_insn)
2195 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
2196 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
2197 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2198 (sched_analyze_insn): Likewise.
2199 * sched-rgn.c (schedule_region): Likewise.
2200 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
2202 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
2204 * PR middle-end/52997
2205 * ira.c (find_moveable_pseudos): Call resize_reg_info.
2208 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
2209 * expr.c (convert_move): Honor unsignedp when extending partial int
2211 * genmodes.c (complete_mode): Don't clear component field of partial
2213 (emit_mode_inner): Don't emit it however.
2214 (calc_wider_mode): Partial int modes widen to their component.
2216 2012-04-26 David S. Miller <davem@davemloft.net>
2218 * config/sparc/niagara4.md: New file.
2219 * config/sparc/sparc.md: Include it.
2220 * config/sparc/sparc.c (niagara4_costs): New processor costs.
2221 (sparc_option_override): Use it.
2222 (sparc_use_sched_lookahead): Return 2 for niagara4.
2223 (sparc_issue_rate): Likewise.
2225 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
2226 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
2227 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2228 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
2229 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
2230 alignaddrldi_vis): Set type to gsr.
2231 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
2232 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
2233 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
2234 v<vis3_shift_patname><mode>3, fmean16_vis,
2235 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
2236 fucmp<code>8<P:mode>_vis): Set type to fga.
2237 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
2238 * config/sparc/niagara.md: Likewise.
2239 * config/sparc/niagara2.md: Likewise.
2240 * config/sparc/ultra3.md: Likewise, and fix type matching for
2241 us3_ialuX reservation.
2243 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2245 * reload.c (find_reloads): Change the loop nesting when trying an
2246 alternative with swapped operands.
2248 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2250 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
2251 comment. Delete unused parameter first_exp_point_map.
2252 (virt_loc_aware_diagnostic_finalizer): Update call.
2254 2012-04-26 Michael Hope <michael.hope@linaro.org>
2255 Richard Earnshaw <rearnsha@arm.com>
2257 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
2258 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
2259 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
2260 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
2262 2012-04-25 Sriraman Tallam <tmsriram@google.com>
2264 * doc/extend.texi: Document avx2 support.
2265 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
2267 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
2270 * config/cris/cris.md ("*andhi_lowpart_v32")
2271 ("*andqi_lowpart_v32"): Change first input-only operand from
2272 a (match_operand ...) to (match_dup 0). Drop alternatives with
2273 const_int-matching constraints for redundancy.
2274 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
2275 three-operand alternative.
2277 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2280 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
2281 instead expand it as zero extension.
2283 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
2286 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
2288 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2290 * common.opt (flag_debug_types_section): Default to 0.
2291 (dwarf_version): Default to 4.
2292 (dwarf_record_gcc_switches): Default to 1.
2293 (dwarf_strict): Default to 0.
2294 * toplev.c (process_options): Don't handle dwarf_strict
2295 or dwarf_version here.
2296 * config/vxworks.c (vxworks_override_options): Don't
2297 test whether dwarf_strict or dwarf_version are negative,
2298 instead test !global_options_set.x_dwarf_*.
2299 * config/darwin.c (darwin_override_options): Default to
2301 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
2302 and -fno-debug-types-section are now the default.
2304 2012-04-25 Jan Hubicka <jh@suse.cz>
2306 * cgraphunit.c: Update toplevel comment.
2307 (tree_rest_of_compilation): Merge into cgraph_expand_function.
2308 (cgraph_analyze_function): Make static.
2309 (cgraph_decide_is_function_needed): Make static.
2310 (cgraph_add_new_function): Use expand_function instead of
2311 rest_of_compilation.
2312 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
2313 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
2315 (cgraph_inline_p): Remove.
2316 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
2317 (init_cgraph): Add comment.
2318 * cgraphbuild.c (record_reference, mark_address, mark_load,
2319 mark_store): Do not call analyze_expr hook.
2320 * cgraph.c: Update toplevel comment.
2321 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
2322 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
2323 Move fere from cgraphunit.c
2324 (cgraph_mark_force_output_node): Move to cgraph.h
2325 * cgraph.h: Reorder so the comments match the function placement.
2326 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
2327 (cgraph_mark_force_output_node): Move here from cgraph.c
2328 * tree.c (free_lang_data): Do not clear analyze_expr hook.
2329 * ipa-inline-transform.c (preserve_function_body_p): New function.
2330 (inline_transform): Update.
2331 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
2332 * langhooks.h (lang_hooks_for_callgraph): Remove.
2333 (lang_hooks): Remove callgraph.
2334 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
2335 * varpool.c: Remove out of date comment.
2336 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
2337 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
2339 2012-04-25 Jan Hubicka <jh@suse.cz>
2342 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
2343 forward declaration.
2344 (cgraph_finalize_function): Finalize them here.
2345 * symtab.c (dump_symtab): Dump ctors and dtors.
2347 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2350 * stor-layout.c (get_best_mode): Don't return mode with bitsize
2351 larger than maxbits. Don't compute maxbits modulo align.
2352 Also check that unit bytes long store at bitpos / unit * unit
2353 doesn't affect bits beyond bitregion_end.
2354 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
2355 would not fit into bitregion_start ... bitregion_end + 1 bit region.
2356 (store_split_bit_field): Decrease unit close to end of bitregion_end
2357 if access is restricted in order to avoid mutual recursion.
2359 PR tree-optimization/53058
2360 * double-int.h (double_int_max_value, double_int_min_value): New
2362 * double-int.c (double_int_max_value, double_int_min_value): New
2364 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
2365 or GT_EXPR with double_int_max_value instead of double_int_mask.
2367 2012-04-25 Richard Guenther <rguenther@suse.de>
2369 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
2370 * tree-vect-loop.c (vect_transform_loop): Adjust.
2371 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
2372 the maximum number of iterations for the epilogue loop.
2373 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
2375 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2378 * c-typeck.c (set_nonincremental_init,
2379 set_nonincremental_init_from_string): Pass true instead of false
2380 as IMPLICIT to add_pending_init.
2382 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2384 * c-typeck.c (pop_init_level): Improve diagnostics.
2386 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
2388 * compare-elim.c (try_eliminate_compare): Also handle operands with
2389 implicit extensions.
2391 2012-04-25 Alan Modra <amodra@gmail.com>
2393 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
2394 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
2395 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
2396 (no_global_regs_above): Delete.
2397 (no_global_regs): New function.
2398 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
2399 value for load multiple test.
2400 (savres_routine_syms): Increase size.
2401 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
2402 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
2403 rather than a number of boolean flags. Update all callers.
2404 (rs6000_savres_routine_name): Generate vector save/restore names.
2405 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
2406 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
2407 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
2408 and using_store_multiple. Expand uses. Don't always use r11 as
2409 frame reg when needed for out-of-line saves. Set up initial offset
2410 for out-of-line vector saves when buying stack frame. Handle pointer
2411 reg setup for out-of-line fp save. Emit call to out-of-line vector
2412 save function. Choose r11 or r12 for vrsave reg when available for
2414 (rs6000_output_function_prologue): Don't emit .extern for ELF.
2415 (rs6000_emit_epilogue): Choose a better frame reg when restoring
2416 from back-chain to suit out-of-line vector restore functions. Emit
2417 call to out-of-line vector restore function. Adjust register used
2418 for cr restore. Tweak pointer register setup for gpr restore.
2419 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
2421 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
2422 (V_SAVE_INLINE): Define.
2423 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
2425 2012-04-25 Alan Modra <amodra@gmail.com>
2427 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
2428 out-of-line save/restore for large frames. Don't disable
2429 out-of-line saves on ABI_AIX when using static chain reg.
2430 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
2431 clobber static chain reg, and tweak for out-of-line gpr saves
2434 2012-04-25 Alan Modra <amodra@gmail.com>
2436 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
2437 (rs6000_emit_prologue): Use the above to catch register overlap.
2439 2012-04-25 Alan Modra <amodra@gmail.com>
2441 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
2442 decl. Move logic selecting update reg to callers. Update all callers.
2443 (rs6000_emit_allocate_stack): Add copy_off param.
2444 (emit_frame_save): Don't handle reg+reg addressing.
2445 (ptr_regno_for_savres): New function, extracted from..
2446 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
2447 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
2448 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
2449 frame offset adjustment for out-of-line save with copy from sp.
2450 Simplify condition controlling whether cr is saved early or
2451 late. Use ptr_regno_for_savres to verify correct reg is set
2452 up for out-of-line saves. Pass the actual pointer reg used to
2453 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
2454 function. Rearrange spe vars so code is similar to that
2455 elsewhere in this function. Don't update frame_off when spe
2456 save code will restore r11. Use emit_frame_save for spe and
2457 gpr saves. Consolidate darwin out-of-line gpr setup with that
2458 for other abis. Don't assume frame_offset is zero and frame
2459 reg is sp when setting up altivec reg saves, and calculate
2460 exact offset requirement.
2461 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
2462 spe restore code. Consolidate darwin out-of-line gpr setup
2463 with that for other abis.
2465 2012-04-25 Alan Modra <amodra@gmail.com>
2467 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
2468 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
2470 (emit_frame_save): Delete frame_ptr param. Rename total_size to
2472 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
2473 and emit_frame_save calls. Cope with possibly missing note.
2475 2012-04-24 Sriraman Tallam <tmsriram@google.com>
2477 * config/i386/i386.c (build_processor_model_struct): New function.
2478 (make_var_decl): New function.
2479 (fold_builtin_cpu): New function.
2480 (ix86_fold_builtin): New function.
2481 (make_cpu_type_builtin): New function.
2482 (ix86_init_platform_type_builtins): New function.
2483 (ix86_expand_builtin): Expand new builtins by folding them.
2484 (ix86_init_builtins): Make new builtins to detect CPU type.
2485 (TARGET_FOLD_BUILTIN): New macro.
2486 (IX86_BUILTIN_CPU_INIT): New enum value.
2487 (IX86_BUILTIN_CPU_IS): New enum value.
2488 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
2489 * config/i386/i386-builtin-types.def: New function type.
2490 * testsuite/gcc.target/builtin_target.c: New testcase.
2491 * doc/extend.texi: Document builtins.
2493 2012-04-24 Olivier Hainque <hainque@adacore.com>
2495 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
2496 * toplev.c (process_options): Default to dwarf_version 2.
2497 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
2498 and dwarf_version 2.
2500 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2502 * tree-pretty-print.h (default_tree_printer): Do not declare.
2503 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
2505 (default_tree_diagnostic_starter): Make static.
2506 (default_tree_printer): Move to here. Make static.
2507 (tree_diagnostics_defaults): New.
2508 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
2509 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
2510 * toplev.c: Do not include tree-pass.h.
2511 (default_tree_printer): Move from here.
2512 (general_init): Use tree_diagnostics_defaults.
2514 2012-04-24 Chao-ying Fu <fu@mips.com>
2516 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
2517 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
2518 * config/mips/gnu-user.h
2519 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
2520 (GNU_USER_TARGET_LINK_SPEC): New define.
2521 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2522 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
2523 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
2524 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
2525 GNU_USER_TARGET_ENDFILE_SPEC.
2526 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
2527 (GNU_USER_TARGET_LINK_SPEC): New define.
2528 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2529 * config/mips/linux-common.h: New file.
2531 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2534 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
2535 (altivec_build_resolved_builtin): Call fully_fold_convert.
2537 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
2540 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
2542 2012-04-24 Richard Guenther <rguenther@suse.de>
2544 PR tree-optimization/53085
2545 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
2548 2012-04-24 Richard Guenther <rguenther@suse.de>
2550 * tree-if-conv.c (main_tree_if_conversion): Move bb under
2553 2012-04-24 Jim Meyering <meyering@redhat.com>
2555 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
2556 absence of an define_enum call.
2558 2012-04-24 Richard Guenther <rguenther@suse.de>
2560 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
2561 the epilogue loop is not re-used as unvectorized version
2562 record the its maximum number of iterations.
2564 2012-04-24 Andrew Pinski <apinski@cavium.com>
2566 * tree-ssa-forwprop.c (simplify_bitwise_binary):
2567 Don't directly use def1/def2.
2569 2012-04-24 Richard Guenther <rguenther@suse.de>
2571 PR tree-optimization/53098
2572 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
2575 2012-04-24 Andrew Pinski <apinski@cavium.com>
2578 * tree-ssa-forwprop.c (defcodefor_name): New function.
2579 (simplify_bitwise_binary): Use defcodefor_name instead of manually
2580 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
2581 Simplify "(~X | Y) & X" to "X & Y" and
2582 "(~X & Y) | X" to "X | Y".
2584 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2586 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
2587 validate_change to add clobbers if IN_GROUP is nonzero.
2588 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
2589 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
2591 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
2593 * config/s390/s390.c (insn_invalid_p): Likewise.
2595 2012-04-24 Jakub Jelinek <jakub@redhat.com>
2598 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
2599 (output_addressed_constants): Likewise.
2602 * varasm.c (get_section): Don't ICE for section conflicts with
2603 built-in section kinds.
2605 2012-04-23 DJ Delorie <dj@redhat.com>
2607 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
2608 (LIBSTDCXX): Change to CPP2.
2610 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
2613 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
2616 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
2618 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
2619 (*addsi_2_zext): Ditto.
2620 (*add<mode>_3): Ditto.
2621 (*addsi_3_zext): Ditto.
2622 (*add<mode>_5): Ditto.
2624 2012-04-23 Andrew Pinski <apinski@cavium.com>
2626 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
2627 (C & B) to (A OP0) & B.
2629 2012-04-23 Martin Jambor <mjambor@suse.cz>
2631 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
2632 temporaries created for a bitfield (reverting revision 122014).
2634 2012-04-23 Richard Guenther <rguenther@suse.de>
2636 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
2637 the condition using is_gimple_condexpr and avoid the not necessary
2639 (set_prologue_iterations): Likewise.
2640 (vect_loop_versioning): Likewise.
2642 2012-04-23 Richard Guenther <rguenther@suse.de>
2644 PR tree-optimization/53070
2645 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
2646 (main_tree_if_conversion): Verify we succeeded in that.
2648 2012-04-23 Jan Hubicka <jh@suse.cz>
2650 * lto-symtab.c (lto_cgraph_replace_node): Do not call
2651 mark_reahcable_node.
2652 * cgraph.c (cgraph_remove_node): Do not clear reachable.
2653 (cgraph_mark_reachable_node): Remove.
2654 (cgraph_mark_force_output_node): Do not set reachable.
2655 (dump_cgraph_node): Do not dump reachable.
2656 (cgraph_create_virtual_clone): Do not set reachable.
2657 * cgraph.h (cgraph_node): Remove reachable flag.
2658 (varpool_node): Remove reachable flag.
2659 (cgraph_mark_if_needed): Remove.
2660 (cgraph_mark_reachable_node): Remove.
2661 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
2662 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
2664 (cgraph_add_new_function): Likewise.
2665 (cgraph_mark_if_needed): Remove.
2666 (cgraph_analyze_function): Do not set target as reachable.
2667 (process_function_and_variable_attributes): Do not care about
2669 (cgraph_analyze_functions): Do not set reachable flags.
2670 (cgraph_mark_functions_to_output): Do not check reachability.
2671 (cgraph_copy_node_for_versioning): Do not set reachable flag.
2672 (dbxout_expand_expr): Update.
2673 * c-decl.c (merge_decls): Do not track changed externs.
2674 * ipa.c: Include pointer-set.h
2675 (enqueue_cgraph_node): Use reachable pointer set.
2676 (process_references): Likewise.
2677 (cgraph_remove_unreachable_nodes): Likewise.
2678 (whole_program_function_and_variable_visibility): Do not recompute
2680 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
2682 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
2684 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
2686 2012-04-23 Richard Guenther <rguenther@suse.de>
2689 * c-typeck.c (build_binary_op): Fix typo.
2691 2012-04-23 Jakub Jelinek <jakub@redhat.com>
2693 PR tree-optimizations/52891
2694 * tree-vect-patterns.c (adjust_bool_pattern): Use
2695 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
2696 but with non-standard precision.
2698 2012-04-22 Jan Hubicka <jh@suse.cz>
2700 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
2703 2012-04-22 Jan Hubicka <jh@suse.cz>
2705 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
2706 * cgraphbuild.c (record_reference, record_type_list, mark_address,
2707 mark_load, mark_store): Do not mark varpool nodes as needed.
2708 * cgraph.c (cgraph_new_nodes): Remove.
2709 (cgraph_create_function_alias): Do not mark nodes as reachable.
2710 (cgraph_add_thunk): Likewise.
2711 (cgraph_mark_reachable_node): Do not manage the queue.
2712 * cgraph.h (cgraph_node): Remove next_needed.
2713 (varpool_nodes_queue): Remove next_needed and prev_needed.
2714 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
2715 (cgraph_new_nodes): Declare.
2716 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
2717 (varpool_analyze_pending_decls): Remove.
2718 (varpool_analyze_node): New.
2719 (varpool_mark_needed_node): Remove.
2720 (varpool_first_variable, varpool_next_variable): New inlines.
2721 (varpool_first_static_initializer, varpool_next_static_initializer):
2723 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
2724 (varpool_first_defined_variable): New inline.
2725 (varpool_next_defined_variable): New inline
2726 (FOR_EACH_VARIABLE): Reimplement.
2727 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
2728 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
2730 * cgraphunit.c (cgraph_new_nodes): Declare here.
2731 (enqueue_node): New function.
2732 (cgraph_process_new_functions): update for new
2733 node set; when constructing cgraph enqueue node for processing.
2734 (cgraph_add_new_function): Use new node set.
2735 (process_function_and_variable_attributes): Do not set varpool needed
2737 (referred_to_p): New function.
2738 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
2739 when varpool is in construction.
2740 (cgraph_analyze_functions): Rewrite.
2741 (cgraph_expand_all_functions): Update.
2742 (cgraph_output_in_order): Do not analyze pending decls; do not set
2744 (cgraph_optimize): Do not analyze pending decls.
2745 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
2746 in other partition; do not mark node as needed.
2747 * dwarf2out.c (reference_to_unused): Use analyzed flag.
2748 (premark_types_used_by_global_vars_helper): Likewise.
2749 * ipa.c (process_references): Do not call varpool_mark_needed_node.
2750 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
2752 (function_and_variable_visibility): Do not mark node as needed.
2753 (whole_program_function_and_variable_visibility): Likewise.
2754 * Makefile.in (gt-varpool.h): No longer needed.
2755 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
2756 (ipa_write_summaries): Do not use needed flag.
2757 * varpool.c: Do not include gt-varpool.h
2758 (x_varpool_nodes_queue, x_varpool_last_needed_node,
2759 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
2760 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
2762 (varpool_remove_node): Do not update the lists.
2763 (dump_varpool_node): Do not dump needed flag.
2764 (varpool_enqueue_needed_node): Remove.
2765 (varpool_mark_needed_node): Remove.
2766 (varpool_reset_queue): Remove.
2767 (varpool_finalize_decl): Move to cgraphunit.c
2768 (varpool_analyze_node): New functions based on former
2769 varpool_analyze_pending_decls.
2770 (varpool_analyze_pending_decls): Remove.
2771 (varpool_assemble_decl): Do not update the lists.
2772 (enqueue_node): New function.
2773 (varpool_remove_unreferenced_decls): Rewrite.
2774 (varpool_empty_needed_queue): Remove.
2775 (add_new_static_var): Do not mark node as needed.
2776 (varpool_create_variable_alias): Handle expansion state
2778 * except.c (output_ttype): Do not mark node as needed.
2779 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
2780 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
2782 * tree-switch-conversion.c (build_one_array): Likewise.
2784 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2787 * doc/invoke.texi (pedantic): Rename to Wpedantic.
2788 * common.opt (Wpedantic): New.
2789 (pedantic): Alias Wpedantic.
2790 * diagnostic.c (warning_at): Likewise.
2791 * c-decl.c (diagnose_mismatched_decls): Likewise.
2792 (build_array_declarator): Likewise.
2793 (mark_forward_parm_decls):
2794 (check_bitfield_type_and_width): Likewise.
2795 (grokdeclarator): Likewise.
2796 (grokfield): Likewise.
2797 (finish_struct): Likewise.
2798 (build_enumerator): Likewise.
2799 (store_parm_decls_oldstyle): Likewise.
2800 (declspecs_add_qual): Likewise.
2801 (declspecs_add_type): Likewise.
2802 (finish_declspecs): Likewise.
2803 * c-typeck.c (composite_type): Likewise.
2804 (comp_target_types): Likewise.
2805 (build_array_ref): Likewise.
2806 (pointer_diff): Likewise.
2807 (build_unary_op): Likewise.
2808 (build_conditional_expr): Likewise.
2809 (build_c_cast): Likewise.
2810 (convert_for_assignment): Likewise.
2811 (maybe_warn_string_init): Likewise.
2812 (digest_init): Likewise.
2813 (pop_init_level): Likewise.
2814 (set_init_index): Likewise.
2815 (c_finish_goto_label): Likewise.
2816 (c_finish_return): Likewise.
2817 (do_case): Likewise.
2818 (build_binary_op): Likewise.
2819 * c-parser.c (static): Likewise.
2820 (c_parser_external_declaration): Likewise.
2821 (c_parser_declaration_or_fndef): Likewise.
2822 (c_parser_static_assert_declaration_no_se): Likewise.
2823 (c_parser_enum_specifier): Likewise.
2824 (c_parser_struct_or_union_specifier): Likewise.
2825 (c_parser_struct_declaration): Likewise.
2826 (c_parser_alignas_specifier): Likewise.
2827 (c_parser_braced_init): Likewise.
2828 (c_parser_initelt): Likewise.
2829 (c_parser_compound_statement_nostart): Likewise.
2830 (c_parser_conditional_expression): Likewise.
2831 (c_parser_alignof_expression): Likewise.
2832 (c_parser_postfix_expression): Likewise.
2833 (c_parser_postfix_expression_after_paren_): Likewise.
2834 (c_parser_objc_class_instance_variables): Likewise.
2835 (c_parser_objc_method_definition): Likewise.
2836 (c_parser_objc_methodprotolist): Likewise.
2838 2012-04-22 Ian Lance Taylor <iant@google.com>
2840 * godump.c (go_output_typedef): Dump size of structs.
2842 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
2844 Correcting transform_to_exit_first_loop + fix to PR46886
2845 * tree-parloops.c (transform_to_exit_first_loop): Remove
2846 setting of number of iterations according to the loop pattern.
2847 Duplicate from entry to exit->src instead of loop->latch.
2848 (pallelize_loops): Remove the condition preventing do-while loops.
2849 * tree-cfg.c (bool bb_in_region_p): New.
2850 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
2851 Adjust redirection of the duplicated iteration.
2853 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
2856 * rtl.def (ADDRESS): Use "i" rather than "w".
2857 * rtl.h (find_base_term): Delete.
2858 (may_be_sp_based_p): Declare.
2859 * rtl.c (rtx_code_size): Remove ADDRESS special case.
2860 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
2861 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
2863 (find_base_term): Make static.
2864 (may_be_sp_based_p): New function.
2865 * dse.c (record_store): Use it.
2866 * store-motion.c (store_killed_in_insn): Likewise.
2868 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
2870 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
2872 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2875 * c-typeck.c (inform_declaration): New.
2876 (build_function_call_vec): Do not pretty-print
2877 expressions when caret is enabled.
2878 (convert_arguments): Use inform_declaration.
2880 2012-04-20 Jim Meyering <meyering@redhat.com>
2882 * genmodes.c (make_complex_modes): Don't truncate a mode name of
2883 length 7 or more when prepending a "C". Suggested by Richard Guenther.
2885 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2887 PR rtl-optimization/44214
2888 * fold-const.c (exact_inverse): New function.
2889 (fold_binary_loc): Fold vector and complex division by constant into
2890 multiply by recripocal with flag_reciprocal_math; fold vector division
2891 by constant into multiply by reciprocal with exact inverse.
2893 2012-04-20 Jan Hubicka <jh@suse.cz>
2895 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
2897 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
2898 (cgraph_remove_node): Update.
2899 (cgraph_mark_needed_node): Remove.
2900 (cgraph_mark_force_output_node): New.
2901 (dump_cgraph_node): Do not dump needed flag.
2902 (cgraph_node_cannot_be_local_p_1): Update.
2903 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
2904 * cgraph.h (symtab_node_base): Add force_output flag.
2905 (cgraph_node): Remove needed flag.
2906 (varpool_node): Remove force_output flag.
2907 (cgraph_mark_needed_node): Remove.
2908 (cgraph_mark_force_output_node): New.
2909 (cgraph_only_called_directly_or_aliased_p,
2910 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
2911 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
2912 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
2913 (cgraph_add_new_function): Update.
2914 (cgraph_mark_if_needed): Update.
2915 (verify_cgraph_node): Update.
2916 (cgraph_analyze_function): Alias target is reachable.
2917 (process_function_and_variable_attributes): Update: externally_visible
2918 flag makes function reachable.
2919 (cgraph_analyze_functions): Update dumping.
2920 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2921 input_overwrite_node, input_varpool_node): Update streaming.
2922 * lto-streamer-out.c (produce_symtab): Use force_output.
2923 * ipa.c (process_references): Weakrefs must be processed.
2924 (cgraph_remove_unreachable_nodes): Likewise; update for new
2926 (varpool_externally_visible_p): Weakrefs are externally visible
2927 even if they are not.
2928 (function_and_variable_visibility): Update; when processing alias
2929 pair force the targets to be output.
2930 (whole_program_function_and_variable_visility): Use
2931 mark_reachable_node.
2932 * trans-mem.c (ipa_tm_mark_needed_node): Remove
2933 (ipa_tm_mark_force_output_node): New function.
2934 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2935 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
2937 * varasm.c (mark_decl_referenced): Update.
2938 (find_decl_and_mark_needed): Remove.
2939 (find_decl): New function.
2940 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
2941 alias targets as needed.
2942 (dump_tm_clone_pairs): Update.
2943 * tree-inline.c (copy_bb): Update check.
2944 * symtab.c (dump_symtab_base): Dump force_output.
2945 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
2946 * passes.c (execute_todo): Fix dumping.
2947 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
2948 (varpool_analyze_pending_decls): Alias target is reachable.
2949 (varpool_create_variable_alias): Finalize weakrefs.
2951 2012-04-20 Jakub Jelinek <jakub@redhat.com>
2954 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
2955 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
2956 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
2957 macros instead of constants.
2958 * dse.c (record_store): Check for SP ADDRESS by comparing
2959 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
2960 XEXP to be stack_pointer_rtx.
2962 2012-04-20 Richard Guenther <rguenther@suse.de>
2964 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
2965 update_call_from_tree when propagating into a call.
2967 2012-04-20 Alan Modra <amodra@gmail.com>
2969 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
2970 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
2971 sp_offset to frame_off. Move world save code earlier.
2973 2012-04-20 Richard Guenther <rguenther@suse.de>
2975 PR tree-optimization/53050
2976 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
2977 Do only one transform on COND_EXPRs at the same time.
2979 2012-04-19 Jan Hubicka <jh@suse.cz>
2981 * symtab.c (dump_symtab_base): Revert accidental checkin.
2983 2012-04-20 Alan Modra <amodra@gmail.com>
2986 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
2987 static chain, set REST_INLINE_FPRS too.
2989 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
2991 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
2994 2012-04-20 Richard Guenther <rguenther@suse.de>
2996 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
2997 loops that can never run more often than the vectorization factor.
2999 2012-04-19 Jan Hubicka <jh@suse.cz>
3001 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
3003 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
3005 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
3007 2012-04-19 Jim Meyering <meyering@redhat.com>
3009 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
3010 We verified above that the string(including trailing NUL) fits in buf,
3013 2012-04-19 Richard Guenther <rguenther@suse.de>
3015 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
3016 for dumping DECL_SECTION_NAME.
3018 2012-04-19 Michael Matz <matz@suse.de>
3021 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
3022 (struct tree_vector): Adjust GTY length.
3023 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
3025 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
3027 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
3028 caller emitted the length calulation already.
3029 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
3030 before handling any of the fields for structs.
3032 2012-04-19 Richard Guenther <rguenther@suse.de>
3034 PR tree-optimization/53031
3035 * tree-vrp.c (adjust_range_with_scev): Revert back to
3036 using max_loop_iterations.
3038 2012-04-19 Michael Matz <matz@suse.de>
3040 * diagnostic.c (emit_diagnostic): Move va_end call after user
3042 (warning, warning_at, pedwarn, permerror): Ditto.
3044 2012-04-19 Richard Guenther <rguenther@suse.de>
3046 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
3049 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
3052 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
3053 the case *(X+const).
3055 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3057 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
3059 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3062 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
3063 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
3065 2012-04-19 Richard Guenther <rguenther@suse.de>
3067 PR rtl-optimization/44688
3068 * loop-iv.c (determine_max_iter): Only return max_iter.
3069 (iv_number_of_iterations): Also use the recorded loop bound
3070 on the maximum number of iterations.
3071 * loop-unroll.c (decide_unroll_runtime_iterations): Use
3072 max_iter to avoid unrolling loops that do not roll.
3073 (decide_unroll_stupid): Likewise.
3075 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
3077 * targhooks.c (default_case_values_threshold): Fix code style nit.
3079 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
3080 case range and type folding from here...
3081 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
3082 type, as documented in tree.def.
3084 2012-04-18 Jan Hubicka <jh@suse.cz>
3086 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
3088 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
3089 cgraph hash and same comdat groups.
3090 (cgraph_optimize): Verify symbol table.
3091 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
3092 (dissolve_same_comdat_group_list): Work on symtab nodes.
3093 (function_and_variable_visibility): Dissolve variable same comdat group
3095 * symtab.c: Include timevar.h
3096 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
3098 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
3100 * tree-switch-conversion.c (info): Remove global pass info.
3101 (check_range, check_process_case, check_final_bb, create_temp_arrays,
3102 free_temp_arrays, gather_default_values, build_constructors,
3103 array_value_type, build_one_array, build_arrays, gen_def_assigns,
3104 fix_phi_nodes, gen_inbound_check): Pass info around from ...
3105 (process_switch): ... here. Unify message format. Return a const
3106 char pointer to the failure reason message.
3107 (do_switchconv): Unify message format. Update process_switch usage.
3109 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
3110 * tree-cfg.c (edge_to_cases): Fix documentation.
3112 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
3114 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
3116 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3118 PR tree-optimization/52976
3119 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
3120 (possibly_move_powi): New function.
3121 (rewrite_expr_tree): Call possibly_move_powi.
3122 (rewrite_expr_tree_parallel): Likewise.
3123 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
3124 call add_to_ops_vec instead.
3126 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3128 PR tree-optimization/52976
3129 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
3130 (decrement_power): Likewise.
3131 (propagate_op_to_single_use): Likewise.
3132 (zero_one_operation): Handle __builtin_pow* calls in linearized
3133 expression trees; factor logic into propagate_op_to_single_use.
3134 (undistribute_ops_list): Allow operands with repeat counts > 1.
3136 2012-04-18 Richard Guenther <rguenther@suse.de>
3138 PR tree-optimization/44688
3139 * cfgloop.h (record_niter_bound): Declare.
3140 * tree-ssa-loop-niter.c (record_niter_bound): Export.
3141 Update the estimation with the upper bound here...
3142 (estimate_numbers_of_iterations_loop): ... instead of here.
3143 Do not forcefully reset a recorded upper bound.
3144 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
3145 Record the maximum number of loop iterations of the prologue loop.
3147 2012-04-18 Jan Hubicka <jh@suse.cz>
3149 * lto-symtab.c (lto_cgraph_replace_node): Update.
3150 * cgraphbuild.c (record_reference, record_type_list,
3151 record_eh_tables, mark_address, mark_load, mark_store): Update.
3152 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
3153 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
3155 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
3156 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
3157 * reload.c: Fix typo in comment.
3158 * rtlanal.c: Likewise.
3159 * tree-emultls.c (gen_emutls_addr): Update.
3160 * ipa-reference.c (analyze_function): Update.
3161 * cgraphunit.c (cgraph_analyze_function,
3162 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
3164 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
3165 (ipa_remove_reference): Likewise.
3166 (ipa_remove_all_refering): Rename to ...
3167 (ipa_remove_all_referring): ... this one; update.
3168 (ipa_dump_references): Update.
3169 (ipa_dump_referring): Update.
3170 (ipa_clone_references): Update.
3171 (ipa_clone_refering): Rename to ...
3172 (ipa_clone_referring): ... this one; update.
3173 (ipa_ref_cannot_lead_to_return): Update.
3174 (ipa_ref_has_aliases_p): Update.
3175 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
3177 (ipa_ref_type): Remove.
3178 (ipa_ref_ptr_u): Remove.
3179 (ipa_ref): Remove referencing, refered, refered_index, refering_type
3180 and refered_type; add referring, referred and referred_index.
3181 (ipa_ref_list): Rename refering to referring.
3182 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
3183 ipa_clone_references, ipa_clone_referring): Update prototypes.
3184 * lto-cgraph.c (referenced_from_other_partition_p): Update.
3185 (lto_output_ref): Update.
3186 (add_references): Update.
3187 (input_varpool_node): Update.
3188 (input_refs): Update.
3189 * ipa-ref-inline.h (ipa_ref_node): Update.
3190 (ipa_ref_varpool_node): Update.
3191 (ipa_ref_referring_node): Update.
3192 (ipa_ref_referring_varpool_node): Update.
3193 (ipa_ref_referring_ref_list): Update.
3194 (ipa_ref_referred_ref_list): Update.
3195 (ipa_ref_list_first_referring): Update.
3196 (ipa_empty_ref_list): Update.
3197 (ipa_ref_list_refering_iterate): Rename to ...
3198 (ipa_ref_list_referring_iterate): ... this one.
3199 * cse.c: Update comment.
3200 * ipa-utils.c (ipa_reverse_postorder): Update.
3201 * tree-ssa-alias.c: Update.
3202 * ipa-inline.c (reset_edge_caches): Update.
3203 (update_caller_keys): Update.
3204 * ipa-inline.h: Update comments.
3205 * jump.c: Update comment.
3206 * alias.c: Likewise.
3207 * ipa.c (process_references): Update.
3208 (cgraph_remove_unreachable_nodes): Likewise.
3209 (ipa_discover_readonly_nonaddressable_var): Likewise.
3210 (cgraph_address_taken_from_non_vtable_p): Likewise.
3211 * trans-mem.c (ipa_tm_execute): Update.
3212 * simplify-rtx.c: Fix comment.
3213 * rtl.c: Fix comment.
3214 * symtab.c (symtab_unregister_node): Update.
3215 * varpool.c (dump_varpool_node): Update.
3216 (varpool_analyze_pending_decls): Update.
3217 (assemble_aliases): Update.
3218 (varpool_for_node_and_aliases): Update.
3220 2012-04-18 Richard Guenther <rguenther@suse.de>
3222 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
3223 use_undefined_p parameter.
3224 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
3225 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
3227 (estimate_numbers_of_iterations): Likewise.
3228 (estimated_loop_iterations): Adjust.
3229 (max_loop_iterations): Likewise.
3230 (scev_probably_wraps_p): Likewise.
3231 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
3232 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
3233 not max_loop_iterations.
3234 (execute_vrp): Remove explicit number of iterations estimation.
3236 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
3238 * config/i386/linux-common.h: New.
3240 * config.gcc: Add i386/linux-common.h before
3241 all i386/linux.h and i386/linux64.h usages.
3243 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
3244 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
3245 * config/i386/gnu-user64.h: Likewise.
3247 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
3248 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
3249 (GNU_USER_TARGET_MATHFILE_SPEC): New.
3250 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
3252 2012-04-18 Jan Hubicka <jh@suse.cz>
3254 * cgraph.c (cgraph_node_name): Remove.
3255 (dump_cgraph_node): Use dump_symtab_base; reformat.
3256 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
3257 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
3259 (cgraph_node_name, varpool_node_name): Remove.
3260 (cgraph_node_asm_name, varpool_node_asm_name,
3261 cgraph_node_name, varpool_node_name): New.
3262 * tree-pass.h (TODO_dump_cgraph): Rename to ...
3263 (TODO_dump_symtab): ... this one.
3264 * ipa-cp (pass_ipa_cp): Update.
3265 * ia-reference.c (generate_summary, read_write_all_from_decl,
3266 propagate, ipa_reference_read_optimization_summary): Update.
3267 * cgraphunit.c (cgraph_analyze_functions): Update.
3268 (cgraph_optimize): Update.
3269 * ipa-ref.c (ipa_dump_references): Update.
3270 (ipa_dump_refering): Update.
3271 * ipa-inline.c (pass_ipa_inline): Update.
3272 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
3273 * ipa.c (pass_ipa_function_visibility,
3274 pass_ipa_whole_program_visibility): Update.
3275 * tree-sra.c (pass_early_ipa_sra): Update.
3276 * symtab.c: Include langhooks.h
3277 (symtab_node_asm_name): New.
3278 (symtab_node_name): New.
3279 (symtab_type_names): New static var.
3280 (dump_symtab_base): New.
3281 (dump_symtab_node, dump_symtab): New.
3282 (debug_symtab_node, debug_symtab): New.
3283 * tree-ssa-structalias.c: Dump symbol table.
3284 * pases.c (execute_todo): Handle TODO_dump_symtab instead
3285 of TODO_dump_cgraph.
3286 * varpoo.c (varpool_node_name): Remove.
3287 (dump_varpool_node): Use dump_symtab_base; reformat.
3289 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3291 * doc/invoke.texi (Language Independent Options): @item should be
3294 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3297 * rtl.c (rtx_code_size): Handle ADDRESS.
3299 2012-04-17 Tom de Vries <tom@codesourcery.com>
3301 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
3304 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
3307 * config/i386/sync.md (atomic_<code><mode>): Rename to
3308 atomic_<logic><mode>.
3310 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3312 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
3313 * alias.c (reg_base_value): Expand and update comment.
3314 (arg_base_value): New variable.
3315 (unique_id): Move up file.
3316 (unique_base_value, unique_base_value_p, known_base_value_p): New.
3317 (find_base_value): Use arg_base_value and known_base_value_p.
3318 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
3319 (find_base_term): Use known_base_value_p.
3320 (base_alias_check): Use unique_base_value_p.
3321 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
3322 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
3324 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
3326 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
3328 2012-04-17 Michael Matz <matz@suse.de>
3330 PR tree-optimization/18437
3331 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
3332 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
3333 (vect_check_strided_load): Declare.
3334 * tree-vect-data-refs.c (vect_check_strided_load): New function.
3335 (vect_analyze_data_refs): Use it to accept strided loads.
3336 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
3338 2012-04-17 Richard Guenther <rguenther@suse.de>
3341 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
3342 loops when redirecting an entry or latch edge.
3344 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
3346 * sel-sched.c (sel_global_init): Revert previous change.
3348 2012-04-17 Richard Guenther <rguenther@suse.de>
3350 * tree-flow.h (array_at_struct_end_p): Move declaration ...
3351 * tree.h (array_at_struct_end_p): ... here.
3352 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
3353 * expr.c (array_at_struct_end_p): ... here. Rewrite.
3355 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
3357 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
3358 COST_TABLE): Remove.
3359 (estimate_case_costs): Remove.
3360 (expand_case): Do not call estimate_case_costs
3361 to set use_cost_table.
3362 (balance_case_nodes): Do not use use_cost_table.
3364 2012-04-16 Jan Hubicka <jh@suse.cz>
3366 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
3367 (hash_node, eq_node): Remove.
3368 (cgraph_create_node): Do not handle hashtable.
3369 (cgraph_get_node): Remove.
3370 (cgraph_insert_node_to_hashtable): Remove.
3371 (hash_node_by_assembler_name): Remove.
3372 (eq_assembler_name): Remove.
3373 (cgraph_node_for_asm): Rewrite.
3374 (cgraph_find_replacement_node): Break out from ...
3375 (cgraph_remove_node): ... here; do not maintain hashtables.
3376 (change_decl_assembler_name): Remove.
3377 (cgraph_clone_node): Do not maintain hashtables.
3378 * cgraph.h (const_symtab_node): New typedef.
3379 (cgraph_insert_node_to_hashtable): Remove.
3380 (symtab_get_node, symtab_node_for_asm,
3381 symtab_insert_node_to_hashtable): Declare.
3382 (cgraph_find_replacement_node): Declare.
3383 (cgraph_get_node, varpool_get_node): Turn into inlines.
3384 (cgraph, varpool): Work sanely on NULL pointers.
3385 (FOR_EACH_SYMBOL): New walker.
3386 * ipa-inline-transform.c (save_inline_function_body): Use
3387 symtab_insert_node_to_hashtable.
3388 * symtab.c: Include ggc.h and diagnostics.h
3389 (symtab_hash, assembler_name_hash): New static vars;
3390 (hash_node, eq_node, hash_node_by_assembler_name,
3391 eq_assembler_name, insert_to_assembler_name_hash,
3392 unlink_from_assembler_name_hash): New.
3393 (symtab_register_node): Update hashtables.
3394 (symtab_insert_node_to_hashtable): New.
3395 (symtab_unregister_node): Update hashtables.
3396 (symtab_get_node): New.
3397 (symtab_node_for_asm): New.
3398 (change_decl_assembler_name): New.
3399 * Makefile.in (symtab.o): Needs GTY.
3400 * varpool.c (varpool_hash): Remove.
3401 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
3402 (varpool_node): Rewrite using varpool_get_node.
3403 (varpool_remove_node): DO not maintain hashtables.
3404 (varpool_node_for_asm): Rewrite.
3406 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
3408 * doc/invoke.texi: Copy-edit to put verbs in the present tense
3409 when describing the current behavior of GCC.
3411 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
3413 * genemit.c (gen_exp): Remove ADDRESS handling.
3414 * genoutput.c (scan_operands): Likewise.
3415 * genpeep.c (match_rtx): Likewise.
3416 * genrecog.c (add_to_sequence): Likewise.
3418 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
3420 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
3422 2012-04-16 Martin Jambor <mjambor@suse.cz>
3424 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
3427 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
3430 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
3431 hints for 'A' operand types.
3433 2012-04-16 Jan Hubicka <jh@suse.cz>
3435 * cgraph.h (symtab_node_base): Add next and previous pointers.
3436 (cgraph_node): Remove next and preivous pointers.
3437 (varpool_node): Likewise; remove next/previous GTY marker;
3438 it is not type safe.
3439 (symtab_node_def): Update GTY marker
3440 (x_cgraph_nodes, cgraph_nodes): Remove.
3441 (symtab_nodes): New function.
3442 (cgraph_order): Rename to ...
3443 (symtab_order): ... this one.
3444 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
3446 (x_varpool_nodes, varpool_nodes): Remove.
3447 (FOR_EACH_STATIC_VARIABLE): Update.
3448 (symtab_function_p, symtab_variable_p): New function.
3449 (FOR_EACH_VARIABLE): Update.
3450 (varpool_first_variable, varpool_next_variable): New functions.
3451 (FOR_EACH_VARIABLE): Update.
3452 (cgraph_first_defined_function): Update.
3453 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
3454 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
3455 (cgraph_first_function, cgraph_next_function): New.
3456 (FOR_EACH_FUNCTION): Update.
3457 (cgraph_first_function_with_gimple_body,
3458 cgraph_next_function_with_gimple_body): Update.
3459 * symtab.c: New file.
3460 * cgraph.c: Update copyright dates.
3461 (x_cgraph_nodes, cgraph_order): Remove.
3462 (NEXT_FREE_NODE): Update.
3463 (SET_NEXT_FREE_NODE): New.
3464 (cgraph_create_node_1): Remove common code.
3465 (cgraph_create_node): Remove common code; call symtab_register_node.
3466 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
3467 (cgraph_add_asm_node): Update.
3468 (cgraph_clone_node): Register new node.
3469 * cgraphunit.c (process_function_and_variable_attributes): Update.
3470 (cgraph_analyze_functions): Update.
3471 (cgraph_analyze_functions): Update.
3472 (cgraph_output_in_order): Update.
3473 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
3475 * ipa-inline.c (recursive_inlining): Update.
3476 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
3477 * ipa.c (cgraph_remove_unreachable_nodes): Update.
3478 * Makefile.in: Add symtab.o
3479 * varpool.c (x_varpool_nodes): Remove
3480 (varpool_node): Remove common code; call symtab_register_node.
3481 (varpool_remove_node): Remove common code; call symtab_unregister_node.
3483 2012-04-16 Richard Guenther <rguenther@suse.de>
3486 * tree.h (VECTOR_CST_NELTS): Adjust.
3487 (struct tree_vector): Add explicit length field.
3488 (make_vector_stat): Declare.
3489 (make_vector): Define.
3490 * tree.c (make_vector_stat): New function.
3491 (build_vector_stat): Use it.
3492 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
3494 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3496 PR tree-optimization/52976
3497 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
3498 (undistribute_ops_list): Ops with repeat counts aren't eligible for
3500 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
3502 2012-04-16 Jan Hubicka <jh@suse.cz>
3504 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
3506 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
3507 walkers to walk cgraph and varpool.
3508 * cgraph.c (cgraph_node_for_asm): Likewise.
3509 (dump_cgraph): Likewise.
3510 * value-prof.c (init_node_map): Likewise.
3511 * tree.c (free_lang_data_in_cgraph): Likewise.
3512 * tree-emutls.c: (ipa_lower_emutls): Likewise.
3513 * ipa-reference.c (generate_summary, propagate): Likewise.
3514 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
3515 cgraph_mark_functions_to_output, cgraph_output_in_order,
3516 output_weakrefs, cgraph_materialize_all_clones,
3517 cgraph_optimize): Likewise.
3518 * lto-cgraph.c (merge_profile_summaries): Likewise.
3519 (input_cgraph): Likewise.
3520 * ipa-pure-const.c (generate_summary): Likewise.
3521 (propagate): Likwise.
3522 * ipa-utils.c (ipa_reduced_postorder): Likewise.
3523 (ipa_free_postorder_info): Likewise.
3524 (ipa_reverse_postorder): Likewise.
3525 * ipa-inline.c (ipa_inline): Likewise.
3526 * matrix-reorg.c (find_matrices_decl): Likewise.
3527 (matrix_reorg): Likewise.
3528 * tree-vectorizer.c (increase_alignment): Likewise.
3529 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
3530 (function_and_variable_visibility): Likewise.
3531 (whole_program_function_and_variable_visibility): Likewise.
3532 (ipa_cdtor_merge): Likewise.
3533 * trans-mem.c (ipa_tm_execute): Likewise.
3534 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
3535 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
3536 (ipa_print_all_params): Likewise.
3537 (ipa_update_after_lto_read): Likewise.
3538 * tree-profie.c (tree_profiling): Likewise.
3539 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3540 * passes.c (dump_passes): Likewise.
3541 (do_per_function): Likewise.
3542 (ipa_write_summaries): Likewise.
3543 * varpool.c (dump_varpool): Likewise.
3544 (varpool_node_for_asm): Likewise.
3545 (varpool_assemble_pending_decls): Likewise.
3547 2012-04-16 Richard Guenther <rguenther@suse.de>
3549 PR tree-optimization/52975
3550 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
3551 condition but always mark it with TRUTH_NOT_EXPR.
3553 2012-04-16 Richard Guenther <rguenther@suse.de>
3555 PR tree-optimization/52975
3556 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
3557 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
3558 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
3559 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
3561 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
3563 * config/i386/sse.md (ssse3_plusminus): New code iterator.
3564 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
3565 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
3566 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
3567 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
3568 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
3569 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
3571 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
3572 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
3573 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
3574 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
3575 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
3576 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
3578 (xop_plus): New code iterator.
3579 (macs): New code attribute.
3581 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
3582 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
3584 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
3585 xop_plus code iterator.
3586 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
3587 xop_plus code iterator.
3588 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
3589 xop_plus code iterator.
3590 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
3591 xop_plus code iterator.
3593 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
3594 any_extend code iterator.
3595 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
3596 any_extend code iterator.
3597 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
3598 any_extend code iterator.
3599 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
3600 any_extend code iterator.
3601 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
3602 any_extend code iterator.
3603 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
3604 any_extend code iterator.
3606 2012-04-14 Tom de Vries <tom@codesourcery.com>
3608 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
3609 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
3610 DELETED_LABEL note, and move it to ...
3611 * cfgrtl.c (delete_insn): ... here. Change return type to void.
3612 (delete_insn_and_edges): Likewise.
3613 (delete_insn_chain): Handle new return type of delete_insn. Delete
3614 chain backwards rather than forwards.
3615 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
3617 * cfglayout.c (fixup_reorder_chain): Delete unused label.
3619 2012-04-14 Jan Hubicka <jh@suse.cz>
3621 * cgraph.h: Update copyrights;
3622 (symtab_node): Turn to union typedef.
3623 (symtab_node_base): New structure.
3624 (symtab_type): Add SYMTAB_SYMBOL tag.
3625 (cgraph_node): Annotate some pinters with nested_ptr.
3626 (varpool_node): Likewise.
3627 (cgraph_local_info): Remove lto_file_data
3628 and externally_visible.
3629 (cgraph_node): Remove decl; same_comdat_group list;
3630 aux; ref_list; order; address_taken; reachable_from_other_parittion,
3631 in_other_partition; resolution.
3632 (varpool_node): Remove decl; same_comdat_group;
3633 ref_list; lto_file_data; aux; order; resolution; externally_visible;
3634 used_from_other_partition; in_other_partition.
3635 (symtab_node_def): New union.
3636 (cgraph, varpool): Update.
3637 (varpool_first_static_initializer, varpool_next_static_initializer,
3638 cgraph_only_called_directly_or_aliased_p,
3639 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
3640 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
3641 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
3643 * cgraph.c: Likewise.
3644 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
3645 * cgraphbuild.c: Likewise.
3646 * lto-symtab.c: Likewise.
3647 * c-gimplify.c: Likewise.
3648 * value-prof.c: Likewise.
3650 * ipa-cp.c: Likewise.
3651 * tree-emutls.c: Likewise.
3652 * ipa-inline-transform.c: Likwise.
3653 * ipa-reference.c: Likewise.
3654 * cgraphunit.c: Likewise.
3655 * ipa-ref.c: Likewise.
3656 * lto-cgraph.c: Likewise.
3657 * ipa-ref-inline.h: Likewise.
3658 * ipa-pure-const.c: Likewise.
3659 * lto-streamer-out.c: Likewise.
3660 * ipa-utils.c: Likewise.
3661 * ipa-inline.c: Likewise.
3662 * matrix-reorg.c: Likewise.
3663 * tree-eh.c: Likewise.
3664 * tree-vectorizer.c: Likewise.
3665 * ipa-split.c: Likewise.
3667 * trans-mem.c: Likewise.
3668 * ipa-inline-analysis.c: Likewise.
3669 * gimplify.c: Likewise.
3670 * cfgexpand.c: Likewise.
3671 * tree-sra.c: Likewise.
3672 * ipa-prop.c: Likewise.
3673 * varasm.c: Likewise.
3674 * tree-nested.c: Likewise.
3675 * tree-inline.c: Likewise.
3676 * tree-profile.c: Likewise.
3677 * tree-ssa-structalias.c: Likewise.
3678 * passes.c: Likewise.
3679 * varpool.c: Likewise.
3681 2012-04-14 Tom de Vries <tom@codesourcery.com>
3683 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
3684 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
3685 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
3687 (gsi_advance_fw_nondebug_nonlocal): New function.
3688 (local_def): Removed function.
3689 (same_succ_hash): Use stmt_local_def.
3690 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
3691 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
3693 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
3695 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
3696 and __ILP32__ for x32.
3698 2012-04-13 Martin Jambor <mjambor@suse.cz>
3701 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
3702 fold_ctor_reference returns a zero constant.
3704 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
3706 * config.gcc: Add i386/gnu-user-common.h before all
3707 i386/gnu-user.h and i386/gnu-user64.h usages.
3709 * config/i386/gnu-user-common.h: New.
3711 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
3712 (CC1_SPEC): Likewise.
3713 (ENDFILE_SPEC): Likewise.
3714 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
3715 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
3716 (TARGET_OS_CPP_BUILTINS): Likewise.
3717 (LIBGCC2_HAS_TF_MODE): Likewise.
3718 (LIBGCC2_TF_CEXT): Likewise.
3719 (TF_SIZE): Likewise.
3720 (TARGET_ASM_FILE_END): Likewise.
3721 (STACK_CHECK_MOVING_SP): Likewise.
3722 (STACK_CHECK_STATIC_BUILTIN): Likewise.
3723 * config/i386/gnu-user64.h: Likewise.
3725 2012-04-13 Martin Jambor <mjambor@suse.cz>
3727 * expr.c (expand_expr_real_1): Pass type, not the expression, to
3728 set_mem_attributes for a memory temporary. Do not call the function
3729 for the memory temporary created for a bitfield.
3731 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3734 * df.h (enum debug_temp_where): New.
3735 (dead_debug_init, dead_debug_finish) Declare.
3736 (dead_debug_add, dead_debug_insert_temp): Declare.
3737 (struct dead_debug_use, struct dead_debug): Moved from...
3738 * df-problems.c: ... here.
3739 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
3741 (df_create_unused_note): Likewise.
3742 (df_set_dead_notes_for_mw): Move comment where it belongs.
3743 (dead_debug_init): Export.
3744 (dead_debug_reset_uses): New, factored out of...
3745 (dead_debug_finish): ...this. Export.
3746 (dead_debug_reset): Remove.
3747 (dead_debug_add): Export.
3748 (dead_debug_insert_before): Rename to...
3749 (dead_debug_insert_temp): ... this. Add where argument. Export.
3750 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
3751 Return insertion count.
3752 (df_note_bb_compute): Adjust.
3753 * dce.c (word_dce_process_block): Adjust dead debug uses.
3754 (dce_process_block): Likewise.
3756 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3758 * df-problems.c (df_note_bb_compute): Do not take note of
3759 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
3761 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3764 * var-tracking.c (expand_depth): New type.
3765 (onepart_aux, expand_loc_callback_data): Change depth type to it.
3766 (loc_exp_dep_alloc): Adjust initializer.
3767 (update_depth): Use new type. Add entryvals.
3768 (vt_expand_var_loc_chain): Take note of expansions with
3769 ENTRY_VALUEs, but don't accept them right away. Run an optional
3770 second pass accepting the minimum ENTRY_VALUE count found in the
3772 (vt_expand_loc_callback, INIT_ELCD): Adjust.
3774 2012-04-13 Tom de Vries <tom@codesourcery.com>
3776 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
3777 parameters vuse and vuse_escaped.
3778 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
3779 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
3782 2012-04-13 Richard Guenther <rguenther@suse.de>
3784 PR tree-optimization/52969
3785 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
3786 the condition for the COND_EXPR and handle predicate negation
3787 by swapping the COND_EXPR arms.
3789 2012-04-13 Nick Clifton <nickc@redhat.com>
3791 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
3792 TODO_dump_func flag.
3794 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
3796 PR rtl-optimization/52203
3797 PR rtl-optimization/52715
3799 Revert the 2012-03-07 fix for PR 52203.
3800 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
3801 the insn does not modify DFA right before issuing, adjust
3802 issue_rate accordingly.
3804 2012-04-13 Richard Guenther <rguenther@suse.de>
3807 * c-typeck.c (pointer_diff): Remove bogus assert.
3809 2012-04-13 Richard Guenther <rguenther@suse.de>
3812 * convert.c (convert_to_pointer): Remove special-casing of zero.
3814 2012-04-13 Joey Ye <joey.ye@arm.com>
3816 * config/arm/constraints.md (Pe): New constraint.
3817 * config/arm/arm.md: New split for imm 256-510.
3819 2012-04-13 Terry Guo <terry.guo@arm.com>
3821 * config/arm/arm-cores.def: Added core cortex-m0plus.
3822 * config/arm/arm-tune.md: Regenerated.
3823 * config/arm/arm-tables.opt: Regenerated.
3824 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
3826 2012-04-13 Alan Modra <amodra@gmail.com>
3829 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
3830 tie regs on destination of sets. Delete forward declaration.
3831 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
3832 (rs6000_emit_prologue): Likewise.
3833 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
3835 (is_mem_ref): Use tie_operand to recognise stack ties.
3836 * config/rs6000/predicates.md (tie_operand): New.
3837 * config/rs6000/rs6000.md (restore_stack_block): Generate new
3839 (restore_stack_nonlocal): Likewise.
3840 (stack_tie): Update.
3841 (frame_tie): Delete.
3843 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3845 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
3846 HOST_WIDE_INT_PRINT_DEC in format strings.
3848 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
3851 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
3852 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
3853 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
3854 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
3855 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
3856 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
3857 avx2_permvarv8si using VI4F_256 mode iterator.
3858 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
3859 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
3860 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
3861 gen_avx2_permvarv8sf.
3862 (expand_vec_perm_pshufb): Ditto.
3864 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3867 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
3868 the list of options to enable the FCFID instruction.
3869 (TARGET_EXTRA_BUILTINS): Adjust comment.
3871 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3873 PR tree-optimization/18589
3874 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
3875 (operand_entry): Add count field.
3876 (add_repeat_to_ops_vec): New function.
3877 (completely_remove_stmt): Likewise.
3878 (remove_def_if_absorbed_call): Likewise.
3879 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
3880 (acceptable_pow_call): New function.
3881 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
3882 entries with repeat counts when found.
3883 (repeat_factor_d): New struct and associated typedefs.
3884 (repeat_factor_vec): New static vector variable.
3885 (compare_repeat_factors): New function.
3886 (get_reassoc_pow_ssa_name): Likewise.
3887 (attempt_builtin_powi): Likewise.
3888 (reassociate_bb): Call attempt_builtin_powi.
3889 (fini_reassoc): Two new calls to statistics_counter_event.
3891 2012-04-12 Richard Guenther <rguenther@suse.de>
3893 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
3894 * cgraph.h (tree_rest_of_compilation): Remove.
3895 * cgraph.c (cgraph_add_new_function): Move ...
3896 * cgraphunit.c (cgraph_add_new_function): ... here.
3897 (tree_rest_of_compilation): Make static.
3898 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
3899 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
3900 gate_all_early_local_passes, execute_all_early_local_passes,
3901 pass_early_local_passes, gate_all_early_optimizations,
3902 pass_all_early_optimizations): Move ...
3903 * passes.c (gate_all_optimizations, pass_all_optimizations,
3904 gate_all_early_local_passes, execute_all_early_local_passes,
3905 pass_early_local_passes, gate_all_early_optimizations,
3906 pass_all_early_optimizations): ... here.
3907 * tree-optimize.c (execute_free_datastructures): Remove.
3908 * tree-flow.h (execute_free_datastructures): Remove.
3909 * tree-optimize.c (execute_init_datastructures,
3910 pass_init_datastructures): Move ...
3911 * tree-ssa.c (execute_init_datastructures,
3912 pass_init_datastructures): ... here.
3913 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
3914 execute_free_datastructures.
3916 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
3918 * dbgcnt.def (ira_move): New counter.
3919 * ira-int.h (ira_create_new_reg): Declare function.
3920 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
3921 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
3922 no longer static. All callers changed.
3923 * ira.c: Include "dbgcnt.h".
3924 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
3925 move_unallocated_pseudos): New static functions.
3926 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
3927 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
3928 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
3929 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
3930 to the pseudos generated in find_moveable_pseudos.
3931 * Makefile.in (ira.o): Add $(DBGCNT_H).
3933 2012-04-12 Richard Guenther <rguenther@suse.de>
3935 PR tree-optimization/52943
3936 * tree-chrec.h (chrec_is_positive): Remove.
3937 * tree-scalar-evolution.c (chrec_is_positive): Move ...
3938 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
3939 Return false for a constant zero instead of negative.
3940 (analyze_siv_subscript_cst_affine): Handle zero difference
3941 in the initial condition explicitely.
3943 2012-04-12 Richard Guenther <rguenther@suse.de>
3945 * tree-parloops.c (parallelize_loops): Also consult the upper
3946 bound for the number of iterations.
3947 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3948 (loop_prefetch_arrays): Likewise.
3950 2012-04-12 Richard Guenther <rguenther@suse.de>
3952 * cfgloop.h (estimated_loop_iterations_int): Ditch
3953 'conservative' parameter.
3954 (max_stmt_executions_int): Likewise.
3955 (estimated_loop_iterations): Likewise.
3956 (max_stmt_executions): Likewise.
3957 (max_loop_iterations): Declare.
3958 (max_loop_iterations_int): Likewise.
3959 (estimated_stmt_executions): Likewise.
3960 (estimated_stmt_executions_int): Likewise.
3961 * tree-ssa-loop-niter.c (estimated_loop_iterations):
3963 (max_loop_iterations): ... this.
3964 (estimated_loop_iterations_int): Split parts to ...
3965 (max_loop_iterations_int): ... this.
3966 (max_stmt_executions_int): Split parts to ...
3967 (estimated_stmt_executions_int): ... this.
3968 (max_stmt_executions): Split parts to ...
3969 (estimated_stmt_executions): ... this.
3970 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
3971 * predict.c (predict_loops): Likewise.
3972 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
3973 (analyze_siv_subscript_cst_affine): Likewise.
3974 (compute_overlap_steps_for_affine_1_2): Likewise.
3975 (analyze_subscript_affine_affine): Likewise.
3976 (init_omega_for_ddr_1): Likewise.
3977 * tree-parloops.c (parallelize_loops): Likewise.
3978 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3979 (may_eliminate_iv): Likewise.
3980 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
3981 (loop_prefetch_arrays): Likewise.
3982 * tree-vrp.c (adjust_range_with_scev): Likewise.
3984 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
3986 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
3987 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
3989 (dump_table): Use bool type for need_align and have_df variables.
3990 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
3991 (regs_used): Remove register modifier.
3992 (barrier_align): Move variables slot, credit, jump_to_next
3993 into if block above for loop. Use bool type for jump_to_next.
3994 (sh_function_arg): Use NULL_RTX instead of 0.
3996 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
3998 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
3999 (bswapsi2): New expander.
4001 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4003 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
4004 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
4006 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4008 PR rtl-optimization/52876
4009 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
4010 Don't call mark_reg_pointer for incompatible pointer sign extension.
4012 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
4015 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
4017 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
4018 comparisons against TYPE_PRECISION.
4019 * tree-ssa-forwprop.c (combine_conversions): Likewise.
4021 2012-04-11 Xinliang David Li <davidxl@google.com>
4023 * tree-passes.h: Remove TODO_dump_func.
4024 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
4025 * trans-mem.c: Remove TODO_dump_func.
4026 * ira.c: Remove TODO_dump_func.
4028 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4030 * config/i386/i386.c (ix86_option_override_internal): Check
4031 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
4032 after TARGET_64BIT is updated.
4034 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4036 * config/sh/sh.h: Remove old secondary reload code.
4038 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4040 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
4041 (ready_reorder): ... this function.
4043 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
4045 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
4048 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
4049 insns so that no other insn is queued for a time before them.
4051 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
4054 2012-04-11 Richard Guenther <rguenther@suse.de>
4057 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
4058 consider loop nesting.
4059 (evolution_function_is_univariate_p): Properly check the remainder
4062 2012-04-11 Richard Guenther <rguenther@suse.de>
4065 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
4067 2012-04-11 Nick Clifton <nickc@redhat.com>
4069 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
4070 information, if requested.
4072 * config/rx/rx.c (rx_expand_prologue): Likewise.
4074 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
4075 Michael Matz <matz@suse.de>
4078 * rtlanal.c (unsigned_reg_p): New function.
4079 Update copyright notice dates.
4080 * rtl.h (unsigned_reg_p): Prototype it.
4081 Update copyright notice dates.
4082 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
4084 * expr.c (expand_expr_real_1): Set register attributes.
4085 * stmt.c (expand_case): Likewise.
4087 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4090 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
4091 consider_sh2a and allow_zero.
4092 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
4093 (disp_addr_displacement): New function.
4094 (sh_address_cost): Use disp_addr_displacement function instead
4095 of DISP_ADDR_OFFSET.
4096 (sh_legitimate_address_p): Adapt to changed
4097 sh_legitimate_index_p declaration.
4098 (sh_find_mov_disp_adjust): Remove HImode check.
4099 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
4100 disp_addr_displacement and max_mov_insn_displacement.
4101 (max_mov_insn_displacement): Remove HImode check.
4102 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
4103 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
4104 * config/sh/constraints.md (K05, K13): New constraints.
4105 (K12): Correct comment.
4106 (Sdd): Do not use DISP_ADDR_P macro.
4107 (Snd, Sbw): Use satisfies_constraint_Sdd.
4108 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
4109 (*extendhisi2_compact, movhi_i): Remove.
4110 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
4111 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
4112 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
4113 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
4114 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
4115 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
4116 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
4118 Add new peepholes for HImode displacement addressing.
4120 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4122 * config/sh/sh.h (SIDI_OFF): Remove.
4123 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
4124 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
4127 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4130 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
4131 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
4132 * doc/md.texi (Standard Names): Add bswap.
4133 * builtin-types.def (BT_UINT16): New primitive type.
4134 (BT_FN_UINT16_UINT16): New function type.
4135 * builtins.def (BUILT_IN_BSWAP16): New.
4136 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
4137 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
4138 expand_builtin_bswap.
4139 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
4140 (fold_builtin_1): Likewise.
4141 (is_inexpensive_builtin): Likewise.
4142 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
4143 missing bits for bswap to libcall code.
4144 * tree.c (build_common_tree_nodes): Build uint16_type_node.
4145 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
4146 (uint16_type_node): New define.
4147 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
4148 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
4150 (rs6000_init_builtins): Likewise.
4151 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
4153 2012-04-11 Tristan Gingold <gingold@adacore.com>
4155 * doc/extend.texi (Type Attributes): Move paragraph.
4157 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4160 * diagnostic.h (show_caret): Declare.
4161 (caret_max_width): Declare.
4162 (diagnostic_show_locus): Declare.
4163 * diagnostic.c (diagnostic_initialize): Initialize to false.
4164 (diagnostic_show_locus): New.
4165 (diagnostic_report_diagnostic): Call it.
4166 (getenv_columns): New.
4168 (diagnostic_set_caret_max_width): New.
4169 * input.c (read_line): New.
4170 (location_get_source_line): New.
4171 * input.h (location_get_source_line): Declare.
4172 * toplev.c (general_init): Initialize show_caret from options.
4173 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
4174 * opts.c (common_handle_option): Likewise.
4175 * pretty-print.h (pp_get_prefix): New.
4176 (pp_base_get_prefix): New.
4177 * common.opt (fdiagnostics-show-caret): New option.
4178 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
4180 2012-04-11 Richard Guenther <rguenther@suse.de>
4182 PR rtl-optimization/52881
4183 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
4185 2012-04-11 Richard Guenther <rguenther@suse.de>
4187 PR tree-optimization/52912
4188 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
4189 manipulation code we are threading through a loop header
4190 to an exit destination.
4192 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4194 * tree.h (warn_if_unused_value): Move declaration from here.
4195 * stmt.c (warn_if_unused_value): Move definition from here.
4197 2010-04-10 Michael Matz <matz@suse.de>
4199 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
4201 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
4202 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
4203 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
4204 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
4205 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
4206 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
4207 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
4208 (vect_record_strided_load_vectors): Rename to
4209 vect_record_grouped_load_vectors.
4210 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
4211 Rename use of above macros.
4212 (vect_verify_datarefs_alignment): Ditto.
4213 (vector_alignment_reachable_p): Ditto.
4214 (vect_peeling_hash_get_lowest_cost): Ditto.
4215 (vect_enhance_data_refs_alignment): Ditto.
4216 (vect_analyze_group_access): Ditto and rename stride to groupsize.
4217 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
4218 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
4219 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
4220 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
4221 (vect_record_strided_load_vectors): Rename to
4222 vect_record_grouped_load_vectors.
4223 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
4224 (destroy_loop_vec_info): Ditto.
4225 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
4226 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
4227 (vect_analyze_slp): Ditto.
4228 (new_bb_vec_info): Ditto.
4229 (destroy_bb_vec_info): Ditto.
4230 (vect_schedule_slp_instance): Ditto and rename strided_store to
4232 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
4233 vect_cost_group_size.
4234 (vect_model_store_cost): Rename use of above macros and call
4235 to vect_cost_strided_group_size.
4236 (vect_model_load_cost): Ditto.
4237 (vectorizable_store): Ditto, rename strided_store to grouped_store
4238 and calls to renamed tree-vectorizer.h functions.
4239 (vectorizable_load): Ditto.
4240 (vect_transform_stmt): Rename use of above macros and strided_store
4243 2012-04-10 Jan Hubicka <jh@suse.cz>
4245 * cgraph.h: Remove misledaing comment on ipa-ref.h.
4246 (symtab_type): New enum.
4247 (symtab_node): New structure.
4248 (cgraph_node, varpool_node): Add symbol base type.
4249 (cgraph, varpool): New accestor functions.
4250 * cgraph.c (cgraph_create_node_1): Set symbol type.
4251 * varpool.c (varpool_node): Set symbol type.
4253 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
4254 Richard Sandiford <rdsandiford@googlemail.com>
4256 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
4258 2012-04-10 Richard Guenther <rguenther@suse.de>
4261 * gimple-low.c (gimple_check_call_args): Properly account for
4262 compatible aggregate types.
4264 2012-04-10 Richard Guenther <rguenther@suse.de>
4266 * toplev.h (tree_rest_of_compilation): Remove.
4267 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4268 * cgraph.h (tree_rest_of_compilation): Declare.
4269 * tree-optimize.c (tree_rest_of_compilation): Move ...
4270 * cgraphunit.c (tree_rest_of_compilation): ... here.
4271 * cgraph.c (cgraph_add_new_function): Adjust.
4272 * Makefile.in (tree-optimize.o): Adjust.
4273 (cgraphunit.o): Likewise.
4275 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
4277 PR tree-optimization/52870
4278 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
4279 presumed pattern statement is within the same loop or basic block.
4281 2012-04-10 Tristan Gingold <gingold@adacore.com>
4283 * gengtype.c (main): Make uintptr_t a known type.
4285 2012-04-10 Richard Guenther <rguenther@suse.de>
4287 * tree-pass.h (tree_lowering_passes): Remove.
4288 * tree-optimize.c (tree_lowering_passes): Remove.
4289 * cgraph.c (cgraph_add_new_function): Inline relevant parts
4290 of tree_lowering_passes, avoid redundant call of early local passes.
4291 * cgraphunit.c (cgraph_lower_function): Fold into ...
4292 (cgraph_analyze_function): ... its single caller. Inline
4293 relevant parts of tree_lowering_passes.
4295 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
4298 * config/pa/pa.opt: Remove SIO and GNU_LD.
4300 2012-04-09 Jan Hubicka <jh@suse.cz>
4305 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
4306 boundary, add its target too.
4307 * lto.c (add_references_to_partition): Add also aliased nodes.
4308 (add_cgraph_node_to_partition,
4309 add_varpool_node_to_partition): Work on nodes, not functions/variables;
4310 when adding alias, add also the aliased object.
4312 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
4315 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
4316 VOIDmode immediate operands.
4317 * config/i386/constraints.md (Wz): New constraint.
4318 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
4320 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
4323 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
4324 the DECL generated for the special GOT helper.
4326 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
4328 * config/sh/constraints.md: Update list of constraints in
4330 (Sr0): Remove unused memory constraint.
4332 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4334 * tree-pretty-print.h: Update comment.
4336 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
4338 * config/sh/sh.md: Use braced string notation where applicable.
4339 (*prefetch_i4, prefetch_m2a): Merge into ...
4340 (*prefetch): ... this new insn.
4342 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4344 * config/sh/sh.h (high_life_started): Remove
4345 * config/sh/predicates.md (general_movdst_operand): Use
4346 'reload_in_progress' instead of 'high_life_started'.
4347 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
4348 divsi_inv_fp): Likewise.
4350 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4352 * config/sh/sh-protos.h (prepare_move_operands): Return void
4354 * config/sh/sh.c (prepare_move_operands): Likewise.
4355 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
4357 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4359 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
4360 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
4361 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
4362 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
4363 commutative_float_operator, noncommutative_float_operator,
4364 sh_handle_pragma): Remove.
4366 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
4368 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
4369 Use @option markup on command-line options. Use @samp markup on
4370 literal keywords to options. Use @code markup on code fragments.
4371 Use other markup in preference to quotation marks in the text.
4372 Add markup to some passages without any.
4374 2012-04-06 Mike Stump <mikestump@comcast.net>
4376 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
4378 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4380 * config/sh/sh.c (hi_const): Remove.
4381 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
4384 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4386 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
4388 * config/sh/sh.c (sh_expand_t_scc): Likewise.
4389 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
4390 calling sh_expand_t_scc.
4392 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4394 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
4395 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
4396 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
4397 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
4398 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
4399 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
4400 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
4401 sh2a_is_function_vector_call): Use bool as return type.
4402 (sh_pass_in_reg_p): Remove.
4403 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
4404 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
4405 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
4406 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
4407 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
4408 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
4409 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
4410 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
4411 sh_loads_bankedreg_p): Use bool as return type.
4412 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
4413 'register' modifier.
4415 2012-04-06 Matt Turner <mattst88@gmail.com>
4417 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
4419 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
4421 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
4422 of the destination isn't also a FP_REGS register.
4424 2012-04-05 Teresa Johnson <tejohnson@google.com>
4425 H.J. Lu <hongjiu.lu@intel.com>
4427 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
4428 * config/i386/i386.md (move immediate to memory peephole2):
4429 Add cases for HImode move when LCP stall avoidance is needed.
4430 * config/i386/i386.c (initial_ix86_tune_features): Initialize
4431 X86_TUNE_LCP_STALL entry.
4433 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
4436 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
4437 CONST_INT operands, zero-extended with AND.
4439 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
4442 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
4443 first argument instead of mode size. Move displacement calculations
4445 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
4446 ... these new functions.
4447 (disp_adjust): Remove max_mov_disp field.
4448 (sh_legitimate_index_p): Use max_mov_insn_displacement and
4449 mov_insn_alignment_mask.
4450 (sh_address_cost): Use max_mov_insn_displacement.
4452 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
4454 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
4455 (arch_enabled): Handle new arch types.
4456 (one_cmpldi2): Add NEON support.
4458 2012-04-05 Richard Guenther <rguenther@suse.de>
4460 * gimple.c (walk_gimple_op): Compute val_only for the LHS
4461 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
4462 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
4463 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
4464 ... here and make static.
4465 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
4468 2012-04-05 Richard Guenther <rguenther@suse.de>
4470 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
4471 basic-block before removing it.
4473 2012-04-05 Richard Guenther <rguenther@suse.de>
4475 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
4476 version namespace as we release the freelist.
4478 2012-04-05 Richard Guenther <rguenther@suse.de>
4480 * tree-nrv.c (tree_nrv): Release VDEFs.
4481 * tree-sra.c (sra_modify_constructor_assign): Likewise.
4482 (sra_modify_assign): Likewise.
4483 * tree-vect-stmts.c (vect_remove_stores): Likewise.
4484 * tree-vect-loop.c (vect_transform_loop): Likewise.
4485 * tree-ssa-dom.c (optimize_stmt): Likewise.
4486 * tree-vect-slp.c (vect_schedule_slp): Likewise.
4487 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4489 2012-04-05 Richard Guenther <rguenther@suse.de>
4491 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
4493 * gimple.h (gsi_remove): Adjust.
4494 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
4495 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
4496 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
4497 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
4498 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
4499 * tree-ssa-pre.c (eliminate): Likewise.
4501 2012-04-04 Mike Stump <mikestump@comcast.net>
4503 * doc/rtl.texi (const_double): Document as sign-extending.
4504 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
4505 * emit-rtl.c (immed_double_int_const): Refine to state the
4507 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
4508 CONST_DOUBLE integers.
4509 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
4510 negative values are converted. Fix conversions bigger than
4511 HOST_BITS_PER_WIDE_INT.
4512 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
4513 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
4514 * explow.c (plus_constant_mode): Add.
4515 (plus_constant): Implement with plus_constant_mode.
4516 * rtl.h (plus_constant_mode): Add.
4518 2012-04-04 Richard Guenther <rguenther@suse.de>
4520 PR tree-optimization/52808
4521 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
4522 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
4524 2012-04-04 Tristan Gingold <gingold@adacore.com>
4526 * expr.c (expand_expr_real_2): Handle larger sizetype in
4529 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
4531 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
4532 to m2a-single instead of m2e.
4534 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
4536 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
4537 Change type of BITOFFSET to signed. Make sure the lower bound of
4538 the computed range is non-negative by adjusting OFFSET and BITPOS.
4539 (expand_assignment): Adjust call to get_bit_range.
4541 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4543 * h8300/h8300.c (h8300_current_function_monitor_function_p):
4544 New function. Added to check monitor functions.
4545 (h8300_option_override): Modified to generate error/warning
4546 messages for invalid combinations of different command line
4548 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
4549 save EXR on stack for monitor function in case of H8S target
4550 when "-mno-exr" is passed.
4551 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
4553 * doc/invoke.texi: Document H8S options.
4555 2012-04-03 Tristan Gingold <gingold@adacore.com>
4557 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
4558 of gcc_AC_FUNC_MMAP_BLACKLIST.
4559 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
4560 * Makefile.in (aclocal_deps): Add mmap.m4.
4561 * configure: Regenerate.
4562 * aclocal.m4: Regenerate.
4564 2012-04-03 Richard Guenther <rguenther@suse.de>
4566 PR tree-optimization/52808
4567 * tracer.c (tail_duplicate): Return whether we have duplicated
4569 (tracer): If we have duplicated any block, cleanup the CFG.
4570 * cfghooks.c (duplicate_block): If we duplicated a loop
4571 header but not its loop, destroy the loop because it now has
4573 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
4574 the cfg manipulation routines we are not creating a multiple
4577 2012-04-03 Tristan Gingold <gingold@adacore.com>
4579 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
4581 (vms_c_common_override_options): Allow parameterless variadic
4584 2012-04-03 Jakub Jelinek <jakub@redhat.com>
4586 PR tree-optimization/52835
4587 * tree-data-ref.c (build_rdg): Return NULL if
4588 compute_data_dependences_for_loop failed.
4590 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
4592 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
4593 for REAL_CST as well.
4594 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
4595 In the bitfield case, if the value is a REAL_CST, convert it first to
4598 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
4600 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
4601 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
4602 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
4604 * config/i386/biarchx32.h: New.
4606 2012-04-02 Anatoly Sokolov <aesok@post.ru>
4608 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
4609 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4610 (arm_preferred_reload_class): New function.
4612 2012-04-02 Richard Guenther <rguenther@suse.de>
4614 PR tree-optimization/52756
4615 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
4616 (thread_through_loop_header): After threading through the loop latch
4617 remove the split part from the loop and clear further threading
4618 opportunities that would create a multiple entry loop.
4620 2012-04-02 Richard Guenther <rguenther@suse.de>
4622 PR rtl-optimization/52800
4623 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
4624 CLEANUP_CFG_CHANGED.
4626 2012-04-02 Richard Guenther <rguenther@suse.de>
4629 * loop-init.c (gate_handle_loop2): Destroy loops here if
4630 we don't enter RTL loop optimizers.
4632 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
4635 2012-03-29 Richard Guenther <rguenther@suse.de>
4637 * rtl.h (extended_count): Remove.
4638 * combine.c (extended_count): Remove.
4640 2012-04-02 Dodji Seketeli <dodji@redhat.com>
4643 * pt.c (more_specialized_fn): Don't apply decay conversion to
4644 types of function parameters.
4646 2012-04-02 Tristan Gingold <gingold@adacore.com>
4648 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
4649 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
4650 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
4651 (ggc_pch_this_base): Use uintptr_t instead of size_t.
4653 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4656 * config/i386/i386.c (ix86_option_override_internal): Don't
4657 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
4659 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
4661 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
4662 (stmt_can_make_abnormal_goto): Use it.
4663 (is_ctrl_altering_stmt): Likewise.
4665 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
4666 Kaz Kojima <kkojima@gcc.gnu.org>
4668 * config/sh/sh.c (push_regs): Skip banked registers when
4669 resbank attribute is specified.
4670 (sh_expand_epilogue): Likewise.
4672 2012-03-30 Richard Henderson <rth@redhat.com>
4675 * combine-stack-adj.c (prev_active_insn_bb): New.
4676 (next_active_insn_bb): New.
4677 (force_move_args_size_note): New.
4678 (combine_stack_adjustments_for_block): Use it.
4680 2012-03-30 Richard Henderson <rth@redhat.com>
4682 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
4683 (ix86_expand_vector_init_duplicate): Initialize it.
4684 (expand_vec_perm_palignr): Likewise.
4685 (ix86_expand_vec_perm_const): Likewise.
4686 (ix86_vectorize_vec_perm_const_ok): Likewise.
4687 (expand_vec_perm_blend): Use it.
4688 (expand_vec_perm_vpermil): Likewise.
4689 (expand_vec_perm_pshufb): Likewise.
4690 (expand_vec_perm_1): Likewise.
4691 (expand_vec_perm_pshuflw_pshufhw): Likewise.
4692 (expand_vec_perm_interleave2): Likewise.
4693 (expand_vec_perm_vpermq_perm_1): Likewise.
4694 (expand_vec_perm_vperm2f128): Likewise.
4695 (expand_vec_perm_interleave3): Likewise.
4696 (expand_vec_perm_vperm2f128_vblend): Likewise.
4697 (expand_vec_perm_vpshufb2_vpermq): Likewise.
4698 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
4699 (expand_vec_perm_broadcast): Likewise.
4700 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
4702 2012-03-30 Richard Henderson <rth@redhat.com>
4704 * dwarf2out.c (gen_variable_die): Initialize off.
4706 2012-03-30 Tristan Gingold <gingold@adacore.com>
4708 * config/vms/vms-f.c: New file.
4709 * config/vms/t-vms (vms-f.o): New rule.
4710 * config.gcc (*-*-*vms*): Define fortran_target_objs.
4712 2012-03-30 Richard Guenther <rguenther@suse.de>
4714 PR tree-optimization/52754
4715 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4716 propagate arbitrary addresses into really plain dereferences.
4718 2012-03-30 Richard Guenther <rguenther@suse.de>
4721 * except.c (emit_to_new_bb_before): Move loop updating ...
4722 (dw2_build_landing_pads): ... here. Use a proper block for
4723 querying the loop father.
4725 2012-03-30 Tristan Gingold <gingold@adacore.com>
4727 * config/ia64/ia64.c (ia64_section_type_flags): Remove
4728 common_object attribute handling.
4729 (SECTION_VMS_OVERLAY): Remove
4730 (ia64_vms_common_object_attribute): Replace abort with an assert.
4731 Do not set DECL_SECTION_NAME.
4732 (ia64_vms_output_aligned_decl_common): Handle common_object
4734 (ia64_vms_elf_asm_named_section): Remove.
4735 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
4737 2012-03-30 Richard Guenther <rguenther@suse.de>
4740 * double-int.c (rshift_double): Remove not needed cast.
4742 2012-03-30 Richard Guenther <rguenther@suse.de>
4744 * tree-affine.h (print_aff): Remove.
4745 * tree-affine.c (print_aff): Make static.
4746 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
4747 (get_references_in_stmt): Likewise.
4748 (print_direction_vector): Likewise.
4749 (print_dir_vectors): Likewise.
4750 (print_dist_vectors): Likewise.
4751 (dump_subscript): Likewise.
4752 (dump_ddrs): Likewise.
4753 (dump_dist_dir_vectors): Likewise.
4754 (dump_data_references): Likewise.
4755 (dump_data_dependence_relation): Likewise.
4756 (dump_data_dependence_direction): Likewise.
4757 (dump_rdg_vertex): Likewise.
4758 (dump_rdg_component): Likewise.
4759 (debug_ddrs): Declare.
4760 (struct data_ref_loc_d): Move ...
4761 * tree-data-ref.c (struct data_ref_loc_d): ... here.
4762 (get_references_in_stmt): Make static.
4763 (dump_data_references): Likewise.
4764 (dump_subscript): Likewise.
4765 (print_direction_vector): Likewise.
4766 (print_dir_vectors): Likewise.
4767 (print_dist_vectors): Likewise.
4768 (dump_data_dependence_relation): Likewise.
4769 (dump_dist_dir_vectors): Likewise.
4770 (dump_ddrs): Likewise.
4771 (dump_rdg_vertex): Likewise.
4772 (dump_rdg_component): Likewise.
4773 (debug_ddrs): New function.
4774 (access_matrix_get_index_for_parameter): Remove.
4776 2012-03-30 Tristan Gingold <gingold@adacore.com>
4778 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
4779 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
4780 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
4781 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
4782 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
4783 (vms_patch_builtins): Handle new flags
4784 * config/vms/vms-crtlmap.map: Completed using nm on
4785 c and math system libraries.
4786 * config/vms/make-crtlmap.awk: Handle any number of flags.
4788 2012-03-30 Martin Jambor <mjambor@suse.cz>
4790 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
4791 is a builtin_stack_save in a dominating BB.
4793 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
4795 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
4796 crossing 128bit lane boundary.
4798 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
4800 * ira-color.c (setup_left_conflict_sizes_p): Process all
4801 conflicting objects.
4803 2012-03-29 Jakub Jelinek <jakub@redhat.com>
4805 PR tree-optimization/52760
4806 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
4807 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
4809 2012-03-29 Richard Guenther <rguenther@suse.de>
4811 * cgraph.h (cgraph_materialize_all_clones): Remove.
4812 (reset_inline_failed): Likewise.
4813 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
4814 * cgraphbuild.c (reset_inline_failed): Remove.
4815 * rtl.h (cse_main): Remove.
4816 (extended_count): Likewise.
4817 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
4818 (cse_main): Make static.
4819 * combine.c (extended_count): Remove.
4820 (dump_combine_stats): Mark as DEBUG_FUNCTION.
4821 * basic-block.h (reorder_basic_blocks): Remove.
4822 * bb-reorder.c (reorder_basic_blocks): Make static.
4823 * Makefile.in (dse.o): Remove dse.h dependency.
4825 * dse.c (gate_dse): Remove.
4826 (clear_alias_mode_eq): Likewise.
4827 (clear_alias_mode_hash): Likewise.
4828 (dse_record_singleton_alias_set): Likewise.
4829 (dse_invalidate_singleton_alias_set): Likewise.
4831 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
4833 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
4834 crtbegin_so%O%s for -shared.
4835 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
4837 2012-03-29 Richard Guenther <rguenther@suse.de>
4839 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
4840 (add_to_value): Remove.
4841 (print_value_expressions): Likewise.
4842 * tree-ssa-pre.c (add_to_value): Make static.
4843 (print_value_expressions): Likewise.
4844 * gimple.h (gimple_adjust_this_by_delta): Remove.
4845 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
4847 2012-03-29 Richard Guenther <rguenther@suse.de>
4850 * double-int.h (rshift_double): Remove.
4851 * double-int.c (lshift_double): Use absu_hwi to make count positive.
4852 (rshift_double): Make static, take unsigned count argument,
4853 remove handling of negative count argument.
4854 (double_int_rshift): Dispatch to lshift_double.
4856 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
4858 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
4861 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
4862 (SPEC_X32): Likewise.
4863 (MULTILIB_DEFAULTS): Likewise.
4865 * config/i386/i386.c (isa_opts): Remove -m64.
4866 (ix86_target_string): Properly handle -m32/-m64/-mx32.
4867 (ix86_option_override_internal): Properly
4868 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
4869 handle -m32, -m64 and -mx32.
4871 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
4872 with OPTION_ABI_X32. Moved after TARGET_LP64.
4873 (TARGET_LP64): Changed to OPTION_ABI_64.
4875 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
4876 (mx32): Replace ISA_X32 with ABI_X32.
4878 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
4880 * tree.c (tree_size) <VECTOR_CST>: New case.
4882 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
4884 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
4885 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
4887 2012-03-28 Jakub Jelinek <jakub@redhat.com>
4890 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
4891 __builtin_va_start to __builtin_next_arg if the latter is
4892 builtin_decl_explicit_p rather than when it is not.
4895 * tree-vect-generic.c (vector_element): Perform multiplication
4896 for pos in bitsizetype type instead of idx type.
4898 2012-03-28 Richard Guenther <rguenther@suse.de>
4900 * loop-init.c (loop_optimizer_init): If loops are preserved
4901 perform incremental initialization of required loop features.
4902 (loop_optimizer_finalize): If loops are to be preserved only
4903 clean up optional loop features.
4904 (rtl_loop_done): Forcefully free loops here.
4905 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
4906 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
4908 (construct_init_block): Likewise.
4909 (construct_exit_block): Likewise.
4910 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
4911 the CFG after expanding.
4912 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
4913 If we needed to calculate them, free them afterwards.
4914 * tree-pass.h (PROP_loops): New define.
4915 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
4916 * basic-block.h (CLEANUP_CFG_CHANGED): New.
4917 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
4918 (cleanup_cfg): If we did something and have loops around, fix them up.
4919 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
4920 with CLEANUP_CFG_CHANGED.
4921 * cfghooks.c (merge_blocks): If we merge a loop header into
4922 its predecessor, update the loop structure.
4923 (duplicate_block): If we copy a loop latch, adjust loop state
4924 to note we may have multiple latches.
4925 (delete_basic_block): Mark loops for fixup if we remove a loop.
4926 * cfganal.c (forwarder_block_p): Protect loop latches, headers
4928 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
4929 (cfg_layout_can_merge_blocks_p): Likewise.
4930 * cprop.c (bypass_block): If we create a loop with multiple
4931 entries, mark it for removal.
4932 * except.c (emit_to_new_bb_before): Add the new basic-block
4934 * tree-eh.c (lower_resx): Likewise.
4935 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
4936 (expand_omp_taskreg): Likewise.
4937 * tree-inline.c (initialize_cfun): Likewise.
4938 * tree-mudflap.c (add_bb_to_loop): Prototype.
4939 (mf_build_check_statement_for): Properly add new basic-blocks
4941 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
4942 if we remove a loop.
4943 (thread_through_loop_header): Likewise.
4944 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
4945 new basic-blocks to existing loops.
4946 (expand_transaction): Likewise.
4947 * Makefile.in (except.o): Add $(CFGLOOP_H).
4949 (cgraph.o): Likewise.
4950 (cprop.o): Likewise.
4951 (cfgexpand.o): Likewise.
4952 (cfganal.o): Likewise.
4953 (trans-mem.o): Likewise.
4954 (tree-eh.o): Likewise.
4956 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
4959 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
4960 (avr_builtin_decl): New static function.
4961 (struct avr_builtin_description, avr_bdesc): Move up.
4962 Add GTY marker. Add field fndecl. Remove redundant field id.
4963 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
4964 (avr_expand_builtin): Code cleanup because .id is removed.
4966 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
4969 * config.gcc (tm_file): Remove avr/multilib.h.
4971 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
4973 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
4974 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
4975 * config/avr/t-avr: Remove generation of multilib.h.
4976 * config/avr/t-multilib: Regenerate.
4977 * config/avr/multilib.h: Remove.
4978 * config/avr/avr.opt (-msp8): New option.
4979 (avr_sp8): New variable.
4980 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
4981 * config/avr/avr.h (AVR_HAVE_SPH): New define.
4982 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
4983 (avr_device_to_sp8): New prototype.
4984 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
4985 (DRIVER_SELF_SPECS): New define.
4986 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
4987 __AVR_SP8__, __AVR_HAVE_SPH__.
4988 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
4989 AVR_HAVE_8BIT_SP to decide if SP_H is present.
4990 (avr_file_start): Ditto.
4992 2012-03-28 Jakub Jelinek <jakub@redhat.com>
4995 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
4996 instead of 8 in adjust_address.
4998 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
5001 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
5004 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
5007 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
5008 Rearrange conditional logic. Move displacement address calculations
5010 (sh_find_mov_disp_adjust): ... this new function.
5012 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
5014 * config/arm/arm.opt (mapcs): Remove MaskExists.
5015 * config/cris/linux.opt (mno-gotplt): Likewise.
5016 * config/i386/i386.opt (mhard-float): Likewise.
5018 (mno-sse4): Likewise.
5019 * config/m68k/m68k.opt (mhard-float): Likewise.
5020 * config/mep/mep.op (mcop32): Likewise.
5021 * config/pa/pa-hpux.opt (msio): Likewise.
5022 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
5023 * config/picochip/picochip.opt (mlittle): Likewise.
5024 * config/sh/sh.opt (mrenesas): Likewise.
5025 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
5026 * config/sparc/sparc.opt (mhard-float): Likewise.
5027 * config/v850/v850.opt (mv850es): Likewise.
5028 * config/vax/vax.opt (mg-float): Likewise.
5030 2012-03-27 Martin Jambor <mjambor@suse.cz>
5033 * tree-sra.c (sra_modify_assign): Do not call
5034 load_assign_lhs_subreplacements when working with an unscalarizable
5037 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
5040 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
5042 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
5043 * config/i386/i386.c: Include reload.h.
5044 (ix86_legitimize_reload_address): New function.
5046 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
5048 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
5049 hasn't been allocated. Define a target macro for Mask and
5050 InverseMask if it hasn't been defined. Remove MaskExists handling.
5052 * doc/options.texi: Remove MaskExists.
5054 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
5057 * config/sh/sh.c (find_barrier): Add equality check of last_got
5058 to avoid going above orig insn. Update comments.
5060 2012-03-27 Richard Guenther <rguenther@suse.de>
5063 * fold-const.c (try_move_mult_to_index): Handle &x.array more
5066 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
5068 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
5069 of a unit before computing the offset in units.
5070 * expr.c (get_bit_range): Return the null range if the enclosing record
5071 is part of a larger bit field.
5073 2012-03-27 Tristan Gingold <gingold@adacore.com>
5075 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
5076 * config/ia64/ia64.md: Remove mode in template.
5077 Sign extend operand in expand_simple_binop.
5078 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
5079 CASE_VECTOR_MODE instead of TARGET_ILP32.
5080 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
5082 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
5084 * varasm.c (assemble_external): #if 0 out the new assert from the
5085 previous commit, it breaks the Java and Go front ends.
5087 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
5089 * toplev.c (check_global_declaration_1): Do not call assemble_external.
5090 * expr.c (emit_block_move_libcall_fn): Likewise.
5091 (clear_storage_libcall_fn): Likewise.
5092 (expand_expr_addr_expr_1): Likewise.
5093 (expand_expr_real_1): Likewise.
5094 * calls.c (rtx_for_function_call): Likewise.
5096 * varasm.c (assemble_external): Assert this function is only called
5097 during or after expanding to RTL.
5099 2012-03-26 Martin Jambor <mjambor@suse.cz>
5101 PR tree-optimization/50052
5102 * tree-sra.c (tree_non_aligned_mem_p): Removed.
5103 (tree_non_aligned_mem_for_access_p): Likewise.
5104 (build_accesses_from_assign): Removed strict alignment requirements
5106 (access_precludes_ipa_sra_p): Likewise.
5108 2012-03-26 Richard Guenther <rguenther@suse.de>
5110 PR tree-optimization/52701
5111 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
5112 compute and set the evolution part of PHI nodes.
5114 2012-03-26 Richard Guenther <rguenther@suse.de>
5116 PR tree-optimization/52721
5117 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
5119 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
5121 PR tree-optimization/52686
5122 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
5125 2012-03-26 Tristan Gingold <gingold@adacore.com>
5127 * config/alpha/vms.h (LINK_SPEC): Simplify.
5128 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
5129 (NAME__MAIN, SYMBOL__MAIN): Remove.
5130 (VMS_DEBUG_MAIN_POINTER): Remove.
5131 * config/ia64/vms.h: Likewise.
5132 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
5133 code to vms.c. Call vms_start_function.
5134 * config/ia64/ia64.c (ia64_start_function): Likewise.
5135 * config/vms/vms-protos.h (vms_start_function): Declare.
5136 * config/vms/vms.c (vms_start_function): New function.
5137 * config/vms/vms.h (MATH_LIBRARY): Define.
5138 (VMS_DEBUG_MAIN_POINTER): Define.
5140 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
5142 PR rtl-optimization/52629
5143 * reload1.c (count_pseudo): Short-circuit common case.
5144 (count_spilled_pseudo): Return early for pseudos without hard regs.
5145 Assert that the pseudo has got a hard reg before manipulating it.
5147 2012-03-24 Jan Hubicka <jh@suse.cz>
5150 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
5151 (decide_is_variable_needed): Do not handle toplevel reorder here.
5152 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
5153 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
5156 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
5158 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
5159 and str_bitsize instead of more convoluted expressions.
5161 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
5164 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
5166 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
5169 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
5171 2012-03-23 Martin Jambor <mjambor@suse.cz>
5173 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
5175 2012-03-23 Richard Guenther <rguenther@suse.de>
5177 PR tree-optimization/52678
5178 * tree-vectorizer.h (struct _stmt_vec_info): Add
5179 loop_phi_evolution_part member.
5180 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
5181 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
5182 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
5183 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5184 Use the cached evolution part and the PHI nodes value from
5185 the loop preheader edge instead of re-analyzing the evolution.
5187 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5189 * config/mips/mips-tables.opt: Update.
5190 * config/mips/mips.md (processor): Add xlp.
5191 * config/mips/mips-cpus.def: Add xlp.
5192 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
5194 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
5195 * doc/invoke.texi: Mention XLP.
5197 2012-03-22 Jakub Jelinek <jakub@redhat.com>
5200 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
5201 on any new_local_var_chain vars declared during recursing on
5202 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
5204 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
5206 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
5207 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
5208 (ASM_OUTPUT_LOCAL): Ditto.
5209 (ASM_OUTPUT_COMMON): Remove.
5210 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
5211 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
5213 2012-03-22 Jan Hubicka <jh@suse.cz>
5216 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
5218 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
5219 * ipa-inline-transform.c (save_inline_function_body): Remove
5220 copied clone if needed.
5221 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
5223 2012-03-22 Richard Guenther <rguenther@suse.de>
5226 * fold-const.c (fold_ternary_loc): Fix typo.
5228 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
5231 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
5232 (unspecv): Add UNSPECV_MEMORY_BARRIER.
5233 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
5234 (delay_cycles_1, delay_cycles_2): Ditto.
5235 (delay_cycles_3, delay_cycles_4): Ditto.
5236 (nopv, *nopv): Ditto.
5237 (sleep, *sleep): Ditto.
5240 2012-03-22 Richard Guenther <rguenther@suse.de>
5242 PR tree-optimization/52548
5243 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
5244 because of clobbers.
5245 (prune_clobbered_mems): New function.
5246 (compute_antic_aux): Use it to prune ANTIC_OUT.
5247 (compute_partial_antic_aux): Use it to prune PA_IN.
5248 (compute_avail): Only insert expressions into EXP_GEN that are not
5249 invalidated when translated up to the beginning of the block.
5251 2012-03-22 Richard Guenther <rguenther@suse.de>
5253 PR tree-optimization/52638
5254 * tree-vect-stmts.c (vect_init_vector_1): New function, split
5256 (vect_init_vector): ... here. Handle scalar vector inits.
5257 (vect_get_vec_def_for_operand): Adjust.
5258 (vectorizable_load): Likewise.
5260 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
5262 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
5263 (alpha*-*-freebsd*): Ditto.
5264 (alpha*-*-netbsd*): Ditto.
5265 (alpha*-*-openbsd*): Ditto.
5266 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
5267 (DWARF2_DEBUGGING_INFO): Remove.
5268 (PREFERRED_DEBUGGING_TYPE): Remove.
5269 (ASM_FINAL_SPEC): Remove.
5270 (IDENT_ASM_OP): Remove.
5271 (ASM_OUTPUT_IDENT): Remove.
5272 (SKIP_ASM_OP): Remove.
5273 (ASM_OUTPUT_SKIP): Remove.
5274 (ALIGN_ASM_OP): Remove.
5275 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5276 (ASM_OUTPUT_CASE_LABEL): Remove.
5277 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
5278 (COMMON_ASM_OP): Remove.
5279 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
5280 (ASCII_DATA_ASM_OP): Remove.
5281 (READONLY_DATA_SECTION_ASM_OP): Remove.
5282 (INIT_SECTION_ASM_OP): Remove.
5283 (FINI_SECTION_ASM_OP): Remove.
5284 (ASM_SECTION_START_OP): Remove.
5285 (ASM_OUTPUT_SECTION_START_FILE): Remove.
5286 (TARGET_ASM_NAMED_SECTION): Remove.
5287 (TARGET_ASM_SELECT_SECTION): Remove.
5288 (MAKE_DECL_ONE_ONLY): Remove.
5289 (TYPE_ASM_OP): Remove.
5290 (SIZE_ASM_OP): Remove.
5291 (ASM_WEAKEN_LABEL): Remove.
5292 (TYPE_OPERAND_FMT): Remove.
5293 (ASM_DECLARE_RESULT): Remove.
5294 (ASM_DECLARE_OBJECT_NAME): Remove.
5295 (ASM_FINISH_DECLARE_OBJECT): Remove.
5296 (ELF_ASCII_ESCAPES): Remove.
5297 (ELF_STRING_LIMIT): Remove.
5298 (STRING_ASM_OP): Remove.
5299 (ASM_OUTPUT_EXTERNAL): Remove.
5300 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
5301 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
5303 (ASM_DECLARE_FUNCTION_NAME): Ditto.
5304 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
5305 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
5306 (ASM_OUTPUT_SKIP): Ditto.
5307 (READONLY_DATA_SECTION_ASM_OP): Remove.
5308 (USER_LABEL_PREFIX): Remove.
5309 (ASM_OUTPUT_ASCII): Remove.
5310 (ASM_OUTPUT_CASE_LABEL): Remove.
5311 (NO_DOLLAR_IN_LABEL): Undefine.
5313 2012-03-22 Richard Guenther <rguenther@suse.de>
5315 PR tree-optimization/52459
5316 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
5317 PHI insertion for calls.
5319 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
5321 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
5322 find_sets_in_insn, canonicalize_insn): Split out from ...
5323 (cse_insn): ... here.
5324 (invalidate_from_clobbers): Take an insn instead of the pattern.
5326 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
5329 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
5330 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
5331 * config/sh/sh.md (sindf2, cosdf2): Remove.
5333 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
5336 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
5337 prologue for unwinder and profiler.
5339 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
5341 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
5342 Introduce emul_name to select the right linker emulation for
5343 powerpc64-*-freebsd*.
5344 * configure: Regenerate.
5345 * config.gcc: Add bits to support powerpc64-*-freebsd*.
5346 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
5347 * config/rs6000/freebsd64.h: New file.
5348 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
5350 (rs6000_savres_strategy): Likewise.
5351 (rs6000_savres_routine_name): Likewise.
5352 (rs6000_elf_file_end): Likewise.
5353 * config/rs6000/t-freebsd64: New file.
5354 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
5355 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
5357 * config/rs6000/freebsd64.h: Remove duplicated entries from last
5359 * config/rs6000/t-freebsd64: Likewise.
5361 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
5363 PR rtl-optimization/52543
5365 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
5366 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
5367 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
5368 (avr_load_libgcc_p): Restrict to __flash loads.
5369 (avr_out_lpm): Only handle 1-byte loads from __flash.
5370 (avr_load_lpm): New function.
5371 (avr_find_unused_d_reg): Remove.
5372 (avr_out_lpm_no_lpmx): Remove.
5373 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
5374 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
5375 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
5376 (load_<mode>, load_<mode>_clobber): New insns.
5377 (mov<mode>): For multi-byte move from non-generic
5378 16-bit address spaces: Expand to load_<mode> resp.
5379 load_<mode>_clobber.
5380 (load<mode>_libgcc): Remove expander.
5381 (split-lpmx): Remove split.
5383 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
5385 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
5386 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
5387 All callers changed.
5388 (Fixed_core_reg): New feature.
5389 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
5391 * neon-testgen.ml: Handle Fixed_core_reg.
5393 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
5395 * config/arm/arm.c (thumb2_reorg): Add complete support
5396 for 16-bit instructions.
5397 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
5399 2012-03-21 Richard Guenther <rguenther@suse.de>
5401 PR tree-optimizer/52636
5402 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
5403 to the appropriate type.
5405 2012-03-21 Richard Guenther <rguenther@suse.de>
5407 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
5409 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
5410 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
5411 * passes.c (init_optimization_passes): Remove pass_init_function,
5412 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
5413 * tree-pass.h (pass_init_function): Remove.
5414 (pass_jump): Remove.
5415 (pass_initial_value_sets): Remove.
5416 (pass_unshare_all_rtl): Remove.
5417 * integrate.c (pass_initial_value_sets): Remove.
5418 * emit-rtl.c (pass_unshare_all_rtl): Remove.
5419 * tree.h (init_function_for_compilation): Remove.
5420 * function.c (init_function_for_compilation): Remove.
5421 (pass_init_function): Remove.
5422 * cfgcleanup.c (rest_of_handle_jump): Remove.
5423 (pass_jump): Remove.
5425 2012-03-20 Jason Merrill <jason@redhat.com>
5427 * tree-streamer-in.c (streamer_alloc_tree): Call
5428 ggc_alloc_zone_cleared_tree_node instead of
5429 ggc_alloc_zone_cleared_tree_node_stat.
5431 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
5433 * doc/extend.texi (Template Instantiation): Remove anachronisms.
5435 2012-03-20 Jakub Jelinek <jakub@redhat.com>
5438 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
5439 (ix86_expand_vec_perm_const_1): Call it.
5441 * config/i386/i386.c (vselect_insn): New variable.
5442 (init_vselect_insn): New function.
5443 (expand_vselect, expand_vselect_insn): Add testing_p argument.
5444 Call init_vselect_insn if vselect_insn is NULL. Adjust
5445 PATTERN (vselect_insn), instead of creating a new insn each time,
5446 only emit a copy of it if not testing and recog has been successful.
5447 (expand_vec_perm_pshufb, expand_vec_perm_1,
5448 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
5452 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
5453 ("enabled" attribute): Handle avx2 and noavx2 isas.
5454 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
5456 (vec_dup<mode>): Add avx2 =x,x alternative.
5457 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
5458 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
5459 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
5460 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
5462 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
5463 if possible, handle also V8SFmode.
5465 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
5467 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
5468 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
5469 reg_or_zero_operand predicate.
5470 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
5472 2012-03-20 Jakub Jelinek <jakub@redhat.com>
5474 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
5475 If operand isn't UNSPEC, return 0.
5477 2012-03-20 Richard Guenther <rguenther@suse.de>
5479 * tree-pass.h (pass_rtl_eh): Remove.
5480 * except.c (gate_handle_eh): Likewise.
5481 (rest_of_handle_eh): Likewise.
5482 (pass_rtl_eh): Likewise.
5483 (finish_eh_generation): Export.
5484 * except.h (finish_eh_generation): Declare.
5485 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
5486 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
5487 after expanding stack alignment. Instead of compacting blocks
5490 2012-03-20 Richard Guenther <rguenther@suse.de>
5492 * stor-layout.c (finish_bitfield_representative): Fallback
5493 to conservative maximum size if the padding up to the next
5494 field cannot be computed as a constant.
5495 (finish_bitfield_layout): If we cannot compute the distance
5496 between the start of the bitfield representative and the
5497 bitfield member start a new representative.
5498 * expr.c (get_bit_range): The distance between the start of
5499 the bitfield representative and the bitfield member is zero
5500 if the field offsets are not constants.
5502 2012-03-20 Tristan Gingold <gingold@adacore.com>
5504 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
5505 convert in lowercase.
5506 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
5507 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
5508 * stor-layout.c (sizetype_tab): Adjust.
5509 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
5510 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
5511 instead of type_kind_last.
5512 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
5513 instead of size_int_kind.
5514 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
5515 * doc/tm.texi: Regenerate.
5516 * defaults.h (SIZETYPE): Provide a default value.
5517 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
5520 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
5522 * config/sh/sh.md: Use braced string notation where applicable.
5524 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5526 * config/i386/i386.md (allocate_stack): Simplify.
5528 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5530 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
5531 copy_to_mode_reg (Pmode, ...).
5532 (expand_builtin_frame_address): Ditto.
5533 * expr.c (emit_block_move_via_libcall): Ditto.
5534 (set_storage_via_libcall): Ditto.
5536 * config/i386/i386.c (ix86_expand_movmem): Ditto.
5537 (ix86_expand_setmem): Ditto.
5538 (ix86_trampoline_init): DItto.
5539 * config/i386/i386.md (cmpstrnsi): Ditto.
5541 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
5543 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
5544 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
5545 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
5546 (SH Options): Likewise.
5548 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5550 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
5551 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
5552 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
5553 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
5554 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
5557 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5559 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
5560 * config/i386/i386.c (ix86_decompose_address): Use
5561 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
5562 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
5563 thread pointer to a register.
5566 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
5568 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
5569 if Pmode != word_mode.
5570 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
5571 Pmode == SImode for TARGET_X32.
5573 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
5574 (tls_initial_exec_x32): Likewise.
5576 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
5579 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
5580 DISP_ADDR_OFFSET): New macros.
5581 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
5582 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
5583 (sh_legitimize_address): Add QImode displacement handling.
5584 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
5586 (sh_secondary_reload): Add QImode displacement handling.
5587 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
5588 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
5589 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
5590 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
5591 to register operands only.
5592 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
5593 (extendqihi2): Change insn to expander.
5594 (*extendqihi2_compact_reg): New insn.
5595 (movqi_i, movqi): Replace with ...
5596 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
5597 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
5598 Add new peepholes for QImode displacement addressing.
5600 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5603 * doc/invoke.texi: Document -Wuseless-cast.
5605 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
5607 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
5608 * tree.h (handled_component_p): Reorder cases.
5609 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
5610 not initialize unsignedp.
5611 (loc_list_from_tree): Likewise.
5612 (fortran_common): Likewise.
5613 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5615 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5617 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
5618 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
5619 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
5620 (ix86_split_long_move): Ditto.
5621 (legitimize_tls_address): Use ix86_gen_sub3.
5622 (construct_plt_address): Assert that Pmode == DImode.
5624 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
5626 * config/i386/i386.md: Remove empty predicates and/or constraints.
5627 * config/i386/sync.md: Ditto.
5628 * config/i386/sse.md: Ditto.
5629 * config/i386/mmx.md: Ditto.
5630 * config/i386/pentium.md: Ditto.
5631 * config/i386/athlon.md: Ditto.
5633 2012-03-16 Richard Guenther <rguenther@suse.de>
5635 PR tree-optimization/52603
5636 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
5640 2012-03-14 Richard Guenther <rguenther@suse.de>
5642 PR tree-optimization/52571
5643 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5644 flag_section_anchors check ...
5645 (vect_can_force_dr_alignment_p): ... here.
5647 2012-03-16 Martin Jambor <mjambor@suse.cz>
5649 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
5650 memory through MEM_REFs by calling extract_bit_field.
5652 2012-03-16 Richard Guenther <rguenther@suse.de>
5654 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
5655 and REFERENCE_TYPE interpretations.
5656 (can_native_interpret_type_p): New function.
5657 (fold_ternary_loc): Use native encode/interpret to fold
5658 BIT_FIELD_REFs of constants.
5660 2012-03-16 Richard Guenther <rguenther@suse.de>
5663 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
5664 of vector constants and constructors.
5666 2012-03-16 Richard Guenther <rguenther@suse.de>
5668 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5669 VIEW_CONVERT_EXPR to convert constants.
5670 (vect_is_simple_use): Treat all constants as vec_constant_def.
5672 2012-03-16 Richard Guenther <rguenther@suse.de>
5673 Kai Tietz <ktietz@redhat.com>
5676 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
5677 side-effects completely in the pre-queue and use a temporary
5680 2012-03-16 Richard Guenther <rguenther@suse.de>
5682 * stor-layout.c (finish_bitfield_representative): Fall back
5683 to the conservative maximum size if we cannot compute the
5684 size of the tail padding.
5686 2012-03-16 Tristan Gingold <gingold@adacore.com>
5688 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
5689 __CRTL_VER and __VMS_VER.
5690 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
5691 and vms_c_get_vms_ver.
5692 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
5694 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
5695 (VMS_DEFAULT_VMS_VER): Define.
5696 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
5697 (VMS_DEFAULT_VMS_VER): Define.
5699 2012-03-16 Richard Guenther <rguenther@suse.de>
5701 * tree-vect-loop.c (get_initial_def_for_induction): Use
5702 build_constructor directly.
5703 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5704 build_vector_from_val.
5705 * tree.c (build_vector_from_val): Avoid creating a constructor
5706 first when we want a constant vector.
5708 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5710 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
5712 2012-03-16 Richard Guenther <rguenther@suse.de>
5714 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
5715 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
5716 (struct tree_vector): Remove elements member, add variable size
5718 (build_vector_stat): Declare.
5719 (build_vector): Define in terms of build_vector_stat.
5720 * tree.c (build_vector): Rename to ...
5721 (build_vector_stat): ... this. Take array of trees as parameter.
5722 (build_vector_from_ctor): Adjust.
5723 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
5724 initializer_zerop): Adjust.
5725 * cfgexpand.c (expand_debug_expr): Likewise.
5726 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
5727 const_vector_from_tree): Likewise.
5728 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
5729 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
5730 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
5731 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
5732 (lto_input_ts_vector_tree_pointers): Adjust.
5733 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
5734 (write_ts_vector_tree_pointers): Adjust.
5735 * varasm.c (const_hash_1, compare_constant, copy_constant,
5736 output_constant): Adjust.
5737 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
5738 * print-tree.c (print_node): Adjust.
5739 * tree-pretty-print.c (dump_generic_node): Adjust.
5740 * tree-vect-generic.c (uniform_vector_p, vector_element,
5741 lower_vec_perm): Adjust.
5742 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
5743 * tree-vect-slp.c (vect_get_constant_vectors,
5744 vect_transform_slp_perm_load): Adjust.
5745 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
5746 * expmed.c (make_tree): Adjust.
5747 * config/i386/i386.c (ix86_expand_builtin): Adjust.
5748 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
5750 (sparc_fold_builtin): Adjust.
5752 2012-03-16 Tristan Gingold <gingold@adacore.com>
5754 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
5755 * config/vms/vms-stdint.h: New file.
5757 2012-03-16 Tristan Gingold <gingold@adacore.com>
5759 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
5760 (ia64-hp-*vms*): Replaced by ...
5761 (*-*-*vms*): ... This new entry.
5763 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5766 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
5767 (ix86_expand_vec_perm_const_1): Use it.
5770 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
5771 (avx2_permv4df): Remove.
5772 (avx2_permv4di): Macroize into...
5773 (avx2_perm<mode>): ... this using VI8F_256 iterator.
5774 (avx2_permv4di_1): Macroize into...
5775 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
5777 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5779 * combine.c (apply_distributive_law): Do not distribute SUBREG.
5781 2012-03-15 Ira Rosen <irar@il.ibm.com>
5782 Ulrich Weigand <ulrich.weigand@linaro.org>
5784 * tree-vect-patterns.c (widened_name_p): Rename to ...
5785 (type_conversion_p): ... this. Add new argument to determine
5786 if it's a promotion or demotion operation. Check for
5787 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
5788 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
5790 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
5791 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
5793 (vect_recog_mixed_size_cond_pattern): Likewise and allow
5794 non-constant then and else clauses.
5796 2012-03-15 Ira Rosen <irar@il.ibm.com>
5797 Ulrich Weigand <ulrich.weigand@linaro.org>
5799 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
5800 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
5802 * tree-vect-patterns.c (widened_name_p): Pass basic block
5803 info to vect_is_simple_use.
5804 (vect_recog_dot_prod_pattern): Fail for basic blocks.
5805 (vect_recog_widen_sum_pattern): Likewise.
5806 (vect_handle_widen_op_by_const): Support basic blocks.
5807 (vect_operation_fits_smaller_type,
5808 vect_recog_over_widening_pattern): Likewise.
5809 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
5810 Update call to vect_is_simple_use.
5811 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
5813 (check_bool_pattern): Add an argument, update call to
5814 vect_is_simple_use and the recursive calls.
5815 (vect_recog_bool_pattern): Update relevant function calls.
5817 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
5818 (vect_pattern_recog_1): Check for reduction only in loops.
5819 (vect_pattern_recog): Add new argument. Support basic blocks.
5820 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
5821 info to vect_is_simple_use_1.
5822 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
5823 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
5825 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5826 Andrew Pinski <apinski@cavium.com>
5829 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
5830 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
5831 calls instead of __builtin_ir{int,ound}*.
5833 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5835 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
5838 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5840 * config.gcc (target_type_format_char): New. Document it. Set it for
5842 * configure.ac (gnu_unique_option): Use target_type_format_char
5843 in test. Comment rationale.
5844 * configure: Regenerate .
5846 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5848 PR tree-optimization/52267
5849 * tree-vrp.c (masked_increment): New function.
5850 (register_edge_assert_for_2): Derive ASSERT_EXPRs
5851 from (X & CST1) cmp CST2 tests.
5853 2012-03-15 Richard Guenther <rguenther@suse.de>
5856 * tree-data-ref.c (subscript_dependence_tester_1): Check
5857 all dimensions for non-conflicting access functions.
5859 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5862 * doc/invoke.texi [C++ Language Options]: Document
5863 -ftemplate-backtrace-limit.
5865 2012-03-15 Tristan Gingold <gingold@adacore.com>
5867 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
5870 2012-03-15 Tristan Gingold <gingold@adacore.com>
5872 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
5873 use DW_OP_call_frame_cfa.
5875 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
5878 * config/i386/i386-opts.h (pmode): New.
5880 * config/i386/i386.c (ix86_option_override_internal): Properly
5881 check and set ix86_pmode.
5883 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
5885 * config/i386/i386.opt (maddress-mode=): New.
5887 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
5889 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5891 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
5892 (dwarf2out_do_cfi_asm): Likewise.
5893 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
5895 (add_data_member_location_attribute): Likewise.
5896 (gen_array_type_die): Likewise.
5897 (gen_subprogram_die): Likewise.
5898 (gen_producer_string): Likewise.
5899 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
5900 Remove MIPS_DEBUGGING_INFO handling.
5901 (sdb_debug_hooks): Likewise.
5902 (sdbout_begin_block): Likewise.
5903 (sdbout_end_block): Likewise.
5904 (sdbout_begin_prologue): Likewise.
5905 (sdbout_start_source_file): Likewise.
5906 (sdbout_end_source_file): Likewise.
5907 (sdbout_init): Likewise.
5908 * system.h (MIPS_DEBUGGING_INFO): Poison.
5910 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5912 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
5913 (alpha_file_start) [MS_STAMP]: Remove.
5915 * config/alpha/elf.h (TARGET_GAS): Remove.
5916 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
5917 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
5918 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
5919 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
5920 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
5921 (alpha*-*-freebsd*): Likewise.
5922 (alpha*-*-netbsd*): Likewise.
5923 (alpha*-*-openbsd*): Likewise.
5924 (alpha*-*-*): Remove target_cpu_default2.
5925 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
5927 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
5928 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
5929 * config/alpha/alpha.c (print_operand): Always assume
5930 TARGET_AS_SLASH_BEFORE_SUFFIX.
5931 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
5932 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
5933 ("*builtin_setjmp_receiver_er_1"): Remove.
5934 * config/alpha/alpha.opt (malpha-as): Remove.
5936 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
5938 Remove DEC Unix reference.
5940 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
5941 (EXTENDED_COFF): Remove.
5942 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
5943 (EXTENDED_COFF): Don't undef.
5944 * config/alpha/alpha.c (alpha_file_start): Always assume
5946 Don't set targetm.asm_file_start_file_directive.
5947 [!OBJECT_FORMAT_ELF]: Remove.
5948 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
5950 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
5951 (DBX_DEBUGGING_INFO): Remove.
5952 (MIPS_DEBUGGING_INFO): Remove.
5953 (PREFERRED_DEBUGGING_TYPE): Remove.
5954 (DBX_OUTPUT_SOURCE_LINE): Remove.
5955 (SDB_OUTPUT_SOURCE_LINE): Remove.
5956 (DBX_CONTIN_LENGTH): Remove.
5957 (NO_DBX_FUNCTION_END): Remove.
5958 (ASM_STABS_OP): Remove.
5959 (ASM_STABN_OP): Remove.
5960 (ASM_STABD_OP): Remove.
5961 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
5962 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
5963 (PUT_SDB_DEF): Remove.
5964 (PUT_SDB_PLAIN_DEF): Remove.
5965 (PUT_SDB_TYPE): Remove.
5966 (sdb_label_count): Remove.
5967 (PUT_SDB_BLOCK_START): Remove.
5968 (PUT_SDB_BLOCK_END): Remove.
5969 (PUT_SDB_FUNCTION_START): Remove.
5970 (PUT_SDB_FUNCTION_END): Remove.
5971 (PUT_SDB_EPILOGUE_END): Remove.
5972 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
5973 (MIPS_DEBUGGING_INFO): Don't undef.
5974 (DBX_DEBUGGING_INFO): Don't undef.
5975 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
5976 (MIPS_DEBUGGING_INFO): Don't undef.
5977 (DBX_DEBUGGING_INFO): Don't undef.
5978 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
5979 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
5981 (alpha_start_function): Likewise.
5982 (sdb_label_count): Remove.
5983 (alpha_output_filename): Remove DBX_DEBUG handling.
5984 (alpha_file_start): Likewise.
5986 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5988 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
5989 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
5990 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
5992 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
5993 (ld_tls_support): Remove Solaris 8 references.
5994 (lwp_dir, lwp_spec): Remove support for alternate thread library.
5995 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
5996 * configure: Regenerate.
5997 * config.in: Regenerate.
5999 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
6000 * config/i386/sol2.h: Remove Solaris 8 references.
6002 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
6003 (i?86-*-solaris2.9): ... this.
6004 Remove Solaris 8 references.
6005 (Specific, *-*-solaris2*): Document Solaris 8 removal.
6006 Remove Solaris 8 references.
6008 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6010 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
6011 (mips-sgi-irix6.5*): Remove.
6012 * config.host (mips-sgi-irix*): Remove.
6013 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
6014 (set_have_as_tls): Remove *-*-irix6*.
6015 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
6016 * configure: Regenerate.
6018 * config/mips/iris6.h: Remove.
6019 * config/mips/iris6.opt: Remove.
6020 * config/mips/t-irix6: Remove.
6022 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
6023 (TARGET_IRIX6): Remove.
6024 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
6025 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
6026 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
6028 (mips_file_start): Likewise.
6029 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
6031 * config/mips/driver-native.c [__sgi__]: Remove.
6032 (host_detect_local_cpu) [__sgi__]: Remove.
6034 * config/mips/gnu-user.h: Remove iris5.h reference.
6036 * config/mips/mips-modes.def: Remove IRIX 6 reference.
6037 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
6038 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
6041 * gcc.c (main): Move asm_debug initialization ...
6042 (asm_debug): ... here.
6044 * ginclude/stddef.h (__STDDEF_H__): Don't define.
6046 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
6047 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
6048 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
6049 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
6050 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
6051 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
6053 * doc/tm.texi: Regenerate.
6055 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
6057 (MIPS Options, -march): Remove IRIX reference.
6058 * doc/install.texi (Binaries, SGI IRIX): Remove.
6059 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
6061 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
6063 2012-03-14 Martin Jambor <mjambor@suse.cz>
6065 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
6066 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
6067 (expand_expr_real_1): Do not handle misalignment if modifier is
6070 2012-03-14 Richard Guenther <rguenther@suse.de>
6073 * tree-vect-generic.c (type_for_widest_vector_mode): Take
6074 element type instead of mode, use build_vector_type_for_mode
6075 instead of the langhook, build a vector of proper signedness.
6076 (expand_vector_operations_1): Adjust.
6078 2012-03-14 Richard Guenther <rguenther@suse.de>
6081 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
6082 a cgraph node for a FUNCTION_DECL that comes from a constructor.
6083 (gimple_get_virt_method_for_binfo): Likewise.
6085 2012-03-14 Richard Guenther <rguenther@suse.de>
6087 PR tree-optimization/52571
6088 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6089 flag_section_anchors check ...
6090 (vect_can_force_dr_alignment_p): ... here. Do not re-align
6091 DECL_COMMON variables.
6093 2012-03-14 Richard Guenther <rguenther@suse.de>
6095 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
6096 * stor-layout.c (start_bitfield_representative): New function.
6097 (finish_bitfield_representative): Likewise.
6098 (finish_bitfield_layout): Likewise.
6099 (finish_record_layout): Call finish_bitfield_layout.
6100 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
6101 for QUAL_UNION_TYPE fields.
6102 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
6103 Stream DECL_BIT_FIELD_REPRESENTATIVE.
6104 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
6109 * expr.c (get_bit_range): Unconditionally extract bitrange
6110 from DECL_BIT_FIELD_REPRESENTATIVE.
6111 (expand_assignment): Adjust call to get_bit_range.
6113 2012-03-14 Richard Guenther <rguenther@suse.de>
6116 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
6117 the outermost conversion is a sign-change only.
6118 (fold_binary_loc): Disregard widening and sign-changing
6119 conversions when we determine if two variables are equal
6121 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
6122 (T1)x if the outermost conversion is a sign-change only.
6124 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
6127 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
6129 * config/i386/predicates.md (constant_call_address_operand): Declare
6130 as special predicate. Update all uses.
6132 2012-03-13 Jakub Jelinek <jakub@redhat.com>
6135 * c-parser.c (c_parser_postfix_expression)
6136 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
6138 * config/i386/smmintrin.h: Avoid /* within a comment.
6139 * config/i386/nmmintrin.h: Likewise.
6141 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6143 * config/i386/i386.md (xbegin): Remove constraint from expander.
6145 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6147 * config/i386/predicates.md (constant_call_address_operand): Declare
6148 as special predicate. Update all uses.
6149 * config/i386/i386.md: Remove mode from constant_call_address_operand
6151 * config/i386/i386.c (ix86_output_call_insn): Call
6152 constant_call_address_operand with VOIDmode.
6154 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6156 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
6157 AND zero extended address correctly.
6159 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6161 * config/i386/predicates.md (tls_symbolic_operand): Declare as
6163 (tls_modbase_operand): Ditto.
6164 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
6165 tls_modbase_operand predicates.
6167 2012-03-13 Martin Jambor <mjambor@suse.cz>
6169 * expr.c (expand_assignment): Handle misaligned scalar writes to
6170 memory through top-level MEM_REFs by calling store_bit_field.
6172 2012-03-13 Richard Guenther <rguenther@suse.de>
6175 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
6176 if Y is a constant multiple of 1 << CST.
6178 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
6181 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
6182 offset (size) to a value the insns can deal with.
6183 (expand_epilogue): Ditto.
6185 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6187 * config/arm/neon.ml (ops): Fixup expected instructions for
6188 unsigned vector compares.
6190 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6192 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
6193 addresses only when %reg is not in word mode.
6195 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6197 * config/microblaze/microblaze.md: Fix typo.
6198 * tree-if-conv.c: Likewise.
6199 * tree-vect-patterns.c: Likewise.
6201 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6203 * config.gcc (extra_passes): Remove.
6204 * configure.ac (extra_passes): Don't substitute.
6205 * configure: Regenerate.
6206 * Makefile.in (EXTRA_PASSES): Remove.
6207 (GCC_PASSES): Remove $(EXTRA_PASSES).
6208 (MOSTLYCLEANFILES): Likewise.
6210 (install-common): Likewise.
6212 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6214 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
6215 * config/i386/i386.c (ix86_decompose_address): Use
6216 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
6217 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
6218 thread pointer to a register.
6220 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
6222 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
6223 on tls_symbolic_operand.
6224 (tls_global_dynamic_64_<mode>): Likewise.
6226 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
6229 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
6230 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
6232 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
6235 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
6236 type from reg_class_t to enum reg_class.
6237 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
6239 2012-03-12 Andrew Pinski <apinski@cavium.com>
6241 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
6242 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
6243 (value_replacement): Likewise.
6244 (empty_block_p): Check also if the PHIs for the block are empty.
6246 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
6249 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
6250 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
6251 r184615 from 2012-02-28.
6253 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
6255 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
6256 (ix86_gen_tls_local_dynamic_base_64): Likewise.
6257 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
6258 and ix86_gen_tls_local_dynamic_base_64.
6259 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
6260 ix86_gen_tls_local_dynamic_base_64.
6262 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
6263 (*tls_global_dynamic_64_<mode>): This.
6264 (tls_global_dynamic_64): Renamed to ...
6265 (tls_global_dynamic_64_<mode>): This.
6266 (*tls_local_dynamic_base_64): Renamed to ...
6267 (*tls_local_dynamic_base_64_<mode>): This.
6268 (tls_local_dynamic_base_64): Renamed to ...
6269 (tls_local_dynamic_base_64_<mode>): This.
6271 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
6273 * config/i386/i386.c (ix86_option_override_internal): Properly
6274 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
6275 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
6276 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
6277 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6279 * config/i386/sse.md (sse3_monitor64): Renamed to ...
6280 (sse3_monitor64_<mode>): This.
6282 2012-03-12 Tristan Gingold <gingold@adacore.com>
6284 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
6285 (ia64_function_arg_advance): Ditto.
6287 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6289 * config.gcc (mips*-*-openbsd*): Remove.
6290 * config/mips/openbsd.h: Remove.
6291 * config/mips/sdb.h: Remove.
6293 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
6294 * config/mips/mips.c (sdb_label_count): Remove.
6295 (mips_debugger_offset): Remove #if 0 code.
6296 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
6297 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
6299 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6301 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
6303 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
6304 Update binutils references.
6305 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
6306 Update binutils reference.
6307 Update Sun as/GNU ld caveat.
6308 Document binutils largefile requirement for LTO plugin.
6309 Remove reference to alternate libpthread.
6311 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6313 * config.gcc (alpha*-dec-osf5.1*): Remove.
6314 * config.host (alpha*-dec-osf*): Remove.
6315 * configure.ac (*-*-osf*): Remove.
6316 (alpha*-dec-osf*): Remove.
6317 * configure: Regenerate.
6319 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
6320 config/alpha/va_list.h, config/alpha/x-osf: Remove.
6322 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
6323 * config/alpha/alpha.c (struct machine_function): Update comment.
6324 (alpha_start_function): Remove Tru64 UNIX as handling for
6326 * config/alpha/alpha.md ("exception_receiver"): Remove
6327 TARGET_LD_BUGGY_LDGP.
6328 ("*exception_receiver_2"): Likewise.
6329 * except.c (finish_eh_generation): Remove Tru64 reference.
6330 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
6331 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
6332 * target.def (handle_pragma_extern_prefix): Remove.
6334 * Makefile.in (mips-tfile.o-warn): Remove.
6335 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
6336 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
6337 * mips-tdump.c, mips-tfile.c: Remove.
6339 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
6341 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
6342 (Specific, alpha*-dec-osf5.1): Note removal.
6343 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
6345 * doc/tm.texi: Regenerate.
6346 * doc/trouble.texi (Cross-Compiler Problems): Remove.
6348 2012-03-12 Richard Guenther <rguenther@suse.de>
6350 * config/arm/arm.c (neon_dereference_pointer): Do not call
6351 covert during RTL expansion.
6353 2012-03-12 Tristan Gingold <gingold@adacore.com>
6355 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
6356 Options. Mention -mpointer-size.
6358 2012-03-12 Richard Guenther <rguenther@suse.de>
6360 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
6361 build_nonstandard_integer_type.
6363 2012-03-12 Richard Guenther <rguenther@suse.de>
6365 * tree.c (signed_or_unsigned_type_for): Use
6366 build_nonstandard_integer_type.
6367 (signed_type_for): Adjust documentation.
6368 (unsigned_type_for): Likewise.
6369 * tree-pretty-print.c (dump_generic_node): Use standard names
6370 for non-standard integer types if available.
6372 2012-03-12 Tristan Gingold <gingold@adacore.com>
6374 * config/vms/vms.opt: Add vms-opts.h header.
6375 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
6377 (-mvms-return-codes): Document.
6378 (-mpointer-size): New option.
6379 (vms_pointer_size): Add enumeration.
6380 * config/vms/vms-opts.h: New file.
6381 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
6382 __INITIAL_POINTER_SIZE.
6383 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
6384 (C_COMMON_OVERRIDE_OPTIONS): Define.
6385 (DWARF2_ADDR_SIZE): Define.
6386 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
6387 * config/vms/vms-protos.h (vms_c_common_override_options):
6389 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
6390 if -mno-pointer-size.
6391 (vms_c_common_override_options): New function.
6392 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
6393 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
6394 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
6395 and flag_vms_pointer_size.
6396 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
6397 * config.gcc (*-*-*vms*): Define xm_file.
6398 (alpha*-dec-*vms*): Do not define xm_file.
6399 (alpha64-dec-*vms*): Remove.
6400 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
6403 2012-03-12 Jakub Jelinek <jakub@redhat.com>
6405 PR tree-optimization/51721
6406 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
6407 if (int) unsvar cmp CST.
6409 2012-03-12 Richard Guenther <rguenther@suse.de>
6411 * tree-sra.c (create_access_replacement): Only rename the replacement
6412 if we can rewrite it into SSA form. Properly mark register typed
6413 replacements that we cannot rewrite with TREE_ADDRESSABLE.
6414 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
6415 for aggregate or BLKmode results.
6417 2012-03-12 Jakub Jelinek <jakub@redhat.com>
6419 PR tree-optimization/52533
6420 * tree-vrp.c (register_edge_assert_for_2): Use double_int
6421 type for mask, only handle shifts by non-zero in-range
6422 shift count, for LE_EXPR and GT_EXPR if new_val is
6423 maximum, don't add the assertion.
6425 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
6427 * doc/invoke.texi: Document -mrtm option.
6428 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
6429 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
6430 (ix86_handle_option): Handle OPT_mrtm.
6431 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
6433 (x86_64-*-*): Ditto.
6434 * i386-builtin-types.def (INT_FTYPE_VOID): New.
6435 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6437 (ix86_target_string): Define -mrtm option.
6439 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
6441 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
6442 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
6444 (bdesc_special_args): Ditto.
6445 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
6446 (ix86_expand_special_args_builtin): Handle new built-in type.
6447 (ix86_expand_builtin): Handle XABORT instruction.
6448 * config/i386/i386.h (TARGET_RTM): New.
6449 * config/i386/i386.md (UNSPECV_XBEGIN): New.
6450 (UNSPECV_XEND): Ditto.
6451 (UNSPECV_XABORT): Ditto.
6452 (UNSPECV_XTEST): Ditto.
6459 * config/i386/i386.opt (mrtm): New.
6460 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
6461 * config/i386/rtmintrin.h: New header.
6462 * config/i386/xtestintrin.h: Ditto.
6464 2012-03-12 Tristan Gingold <gingold@adacore.com>
6466 * ginclude/stddef.h: Adjust previous patch.
6467 Use __VMS__ instead of VMS.
6469 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
6471 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
6472 Also convert sequences with CC setting arithmetic instruction.
6474 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
6476 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
6477 from C Language Options to Preprocessor Options.
6478 (C Dialect Options): Move -no-integrated-cpp documentation
6480 (Preprocessor Options): ...to here. Rewrite the description
6481 so it makes more sense, and remove discussion of merging front ends.
6483 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6485 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
6487 (ix86_expand_setmem): Likewise.
6489 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
6491 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
6494 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6496 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
6497 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
6499 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6501 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
6503 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6505 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
6508 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6509 Uros Bizjak <ubizjak@gmail.com>
6511 * config/i386/predicates.md (call_insn_operand): Allow
6512 constant_call_address_operand in Pmode only.
6513 (sibcall_insn_operand): Ditto.
6514 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
6515 (*call_vzeroupper): Ditto.
6517 (*sibcall_vzeroupper): Ditto.
6518 (*call_value): Ditto.
6519 (*call_value_vzeroupper): Ditto.
6520 (*sibcall_value): Ditto.
6521 (*sibcall_value_vzeroupper): Ditto.
6522 (*indirect_jump): Ditto.
6523 (*tablejump_1): Ditto.
6524 (indirect_jump): Convert memory address to word mode for TARGET_X32.
6526 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
6529 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
6532 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
6533 Use movrt_negc instead of negc pattern for non-SH2A.
6535 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
6537 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
6539 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
6540 if Pmode != word_mode.
6541 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
6542 Pmode == SImode for TARGET_X32.
6544 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
6545 (tls_initial_exec_x32): Likewise.
6547 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
6549 PR rtl-optimization/52528
6550 * combine.c (can_combine_p): Add setting of subst_low_luid
6551 before call to expand_field_assignment().
6553 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
6555 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
6556 and related program names.
6558 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
6560 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
6562 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
6565 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
6566 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
6568 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
6569 (*movdi_internal_rex64): Use %E operand modifier for lea.
6570 (*movsi_internal): Ditto.
6572 (*lea<mode>_2): Ditto.
6573 (*lea_{3,4,5,6}_zext): Ditto.
6574 (*tls_global_dynamic_32_gnu): Ditto.
6575 (*tls_global_dynamic_64): Ditto.
6576 (*tls_dynamic_gnu2_lea_32): Ditto.
6577 (*tls_dynamic_gnu2_lea_64): Ditto.
6578 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
6580 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6582 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
6583 redefine to be NULL if the current bit-size is different from the
6584 configured bit-size.
6586 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
6587 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
6588 set the default tuning. Add asserts to make sure the cpu and tune
6589 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
6590 test whether the index is set, instead of > 0.
6591 (rs6000_file_start): Do not reset the default cpu if the current
6592 bit-size is different from the configured bit-size.
6594 2012-03-09 Tristan Gingold <gingold@adacore.com>
6596 * config/vms/vms-crtlmap.map: Add comments.
6597 Add entries needed to build Ada RTS.
6599 2012-03-09 Tristan Gingold <gingold@adacore.com>
6601 * ginclude/stddef.h: Do not define __size_t on VMS.
6603 2012-03-09 Tristan Gingold <gingold@adacore.com>
6605 * c-tree.h (c_default_pointer_mode): New variable.
6606 * c-decl.c (c_default_pointer_mode): New variable.
6607 (c_build_pointer_type): New function.
6608 (grokdeclarator): Call c_build_pointer_type instead
6609 of build_pointer_type.
6611 * config/vms/vms-c.c: Include c-tree.h
6612 (saved_pointer_mode): New variable.
6613 (handle_pragma_pointer_size): New function.
6614 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
6615 (vms_c_register_pragma): Register __pointer_size and
6616 __required_pointer_size pragmas.
6618 2012-03-09 Tristan Gingold <gingold@adacore.com>
6620 * config/vms/vms-c.c (vms_construct_include_filename): New function.
6621 (vms_c_register_includes): Reference it.
6623 2012-03-09 Andrew Pinski <apinski@cavium.com>
6626 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
6628 (tree_ssa_phiopt_worker): Go through all the PHIs for
6629 value_replacement instead of just the singleton one.
6630 (value_replacement): Change return type to int. Return 0 instead of
6632 Allow the middle basic block to contain more than just the defining
6634 Handle non empty middle basic blocks.
6635 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
6637 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
6639 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
6640 array reference and component reference.
6641 (analyze_scalar_evolution_for_address_of): New.
6643 2012-03-08 Jie Zhang <jzhang918@gmail.com>
6646 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
6647 (hwloop_pattern_reg): Fix set but not used warning.
6648 (bfin_reorg_loops): Remove unused parameter.
6649 (bfin_reorg): Update use of bfin_reorg_loops.
6651 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
6653 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
6654 with integer parameters in registers.
6655 (gen_push): Push register in word_mode instead of Pmode.
6656 (ix86_emit_save_regs): Likewise.
6657 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
6658 (gen_pop): Pop register in word_mode instead of Pmode.
6659 (ix86_emit_restore_regs_using_pop): Likewise.
6660 (ix86_expand_prologue): Replace Pmode with word_mode for push
6661 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
6662 restore RAX and R10 in word_mode.
6663 (ix86_emit_restore_regs_using_mov): Restore integer registers
6665 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
6667 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
6668 (ix86_split_long_move): Likewise.
6670 * config/i386/i386.md (W): New.
6671 (*push<mode>2_prologue): Replace :P with :W.
6672 (*pop<mode>1): Likewise.
6673 (*pop<mode>1_epilogue): Likewise.
6674 (push/pop peephole2): Use word_mode scratch registers.
6676 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
6678 * config/i386/predicates.md (indirect_branch_operand): Simplify.
6680 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
6682 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
6683 for constants in [-63,63].
6685 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
6689 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6691 * config/i386/i386.c (ix86_print_operand_address): Only handle
6692 zero-extended DImode addresses.
6694 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6696 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
6697 * configure: Regenerate.
6699 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
6702 * config/avr/avr.c (avr_mem_clobber): New static function.
6703 (avr_expand_delay_cycles): Add memory clobber operand to
6704 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
6705 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
6706 (enable_interrupt, disable_interrupt): New expander.
6707 (nopv, sleep, wdr): New expanders.
6708 (delay_cycles_1): Add memory clobber.
6709 (delay_cycles_2): Add memory clobber.
6710 (delay_cycles_3): Add memory clobber.
6711 (delay_cycles_4): Add memory clobber.
6712 (cli_sei): New insn from former "enable_interrupt",
6713 "disable_interrupt" with memory clobber.
6714 (*wdt): New insn from former "wdt" with memory clobber.
6715 (*nopv): Similar, but for "nopv".
6716 (*sleep): Similar, but for "sleep".
6718 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
6719 Kaz Kojima <kkojima@gcc.gnu.org>
6722 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
6723 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
6724 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6726 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
6728 * config/i386/predicates.md (x86_64_zext_general_operand): New.
6729 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
6730 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
6732 2012-03-07 Walter Lee <walt@tilera.com>
6734 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
6735 REG_CFA_* notes for the stack pointer.
6736 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
6737 EH_RETURN_STACKADJ_RTX.
6738 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
6739 generate REG_CFA_* notes for the stack pointer.
6740 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
6741 by EH_RETURN_STACKADJ_RTX.
6743 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6745 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
6746 when __AVR_3_BYTE_PC__ is defined.
6748 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
6750 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
6751 (ix86_print_operand): Handle '^'.
6752 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
6753 using P mode iterator. Add %^ to asm template to conditionally emit
6755 (*rep_movdi_rex64): Ditto.
6756 (*strsetdi_rex_1): Ditto.
6757 (*rep_stosdi_rex64): Ditto.
6758 (*strmov{si,hi,qi}_1): Add %^ to asm template to
6759 conditionally emit addr32 prefix.
6760 (*rep_mov{si,qi}): Ditto.
6761 (*strset{si,hi,qi}): Ditto.
6762 (*rep_stos{si,qi}): Ditto.
6763 (*cmpstrnqi_nz_1): Ditto.
6764 (*cmpstrnqi_1): Ditto.
6765 (*strlenqi_1): Ditto.
6767 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
6769 * config/i386/i386.c (function_value_64): Return pointers in
6770 word_mode instead of Pmode.
6771 (ix86_promote_function_mode): Likewise.
6773 2012-03-07 Richard Guenther <rguenther@suse.de>
6775 * coverage.c (get_gcov_type): Use type_for_mode.
6776 (get_gcov_unsigned_t): Likewise.
6777 * expr.c (store_constructor): Use type_for_mode.
6778 (try_casesi): Likewise.
6779 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
6780 (add_standard_iv_candidates): Use standard type trees.
6781 * dojump.c (do_jump): Remove dead code.
6783 2012-03-07 Richard Guenther <rguenther@suse.de>
6785 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
6787 2012-03-07 Richard Guenther <rguenther@suse.de>
6789 * convert.c (strip_float_extensions): Move ...
6790 * tree.c (strip_float_extensions): ... here.
6792 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6795 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
6797 2012-03-07 Richard Guenther <rguenther@suse.de>
6799 * omp-low.c (extract_omp_for_data): Use signed_type_for.
6800 (expand_omp_for_generic): Likewise.
6801 (expand_omp_for_static_nochunk): Likewise.
6802 (expand_omp_for_static_chunk): Likewise.
6803 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
6804 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
6805 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6806 Use unsigned_type_for.
6807 (vect_create_cond_for_align_checks): Use signed_type_for.
6809 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
6811 PR rtl-optimization/52203
6812 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
6813 all callers to pass NULL except ...
6814 (reset_sched_cycles_in_current_ebb): ... here, save the value
6815 in new variable 'empty'. Increase issue_rate only for
6818 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
6821 * Makefile.in: Let install-gcc-ar depend on installdirs,
6822 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
6823 Don't double canonicalize if cross-compiling.
6825 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6828 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
6829 to: RAMPZ, RAMPY, RAMPX, RAMPD.
6830 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
6832 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6835 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
6837 * config/avr/avr.md (xload_8): Adjust insn length.
6839 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6842 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
6843 if RAMPZ affects reading from RAM.
6845 2012-03-07 Richard Guenther <rguenther@suse.de>
6849 * doc/invoke.texi (Precompiled Headers): Remove sentence that
6850 suggests you can include PCHs from inside another header.
6852 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
6855 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
6857 2012-03-07 Kai Tietz <ktietz@redhat.com>
6859 * doc/invoke.texi (fwritable-relocated-rdata): Document
6860 new Cygwin/MinGW target option.
6861 * config/i386/winnt.c (i386_pe_unique_section): Ignore
6862 reloc if flag -fwritable-relocated-rdata is not set.
6863 (i386_pe_section_type_flags): Likewise.
6864 * config/i386/cygming.opt (fwritable-relocated-rdata):
6865 Add new flag variable flag_writable_rel_rdata.
6867 2012-03-07 Richard Guenther <rguenther@suse.de>
6869 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
6870 precision against gimple constraints.
6872 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
6875 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
6877 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
6878 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
6880 (init_emit_regs): Move associated initialization to...
6881 (init_emit_once): ...here.
6883 2012-03-06 Richard Henderson <rth@redhat.com>
6885 * config/m68k/m68k.h (ISA_HAS_TAS): New.
6886 * config/m68k/sync.md (atomic_test_and_set): Use it.
6887 (atomic_test_and_set_1): Likewise.
6889 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6892 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
6893 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
6894 (vector_ltgt<mode>): Likewise.
6895 (vector_ordered<mode>): Likewise.
6896 (vector_unordered<mode>): Likewise.
6897 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6899 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
6901 * trans-mem.c: New typedef for tm_region_p.
6902 Define vector types for tm_region_p.
6903 (tm_region_init): Replace region_worklist to a vector called
6906 2012-03-06 Richard Guenther <rguenther@suse.de>
6908 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
6909 MEM_REF with constant pointer operand.
6911 2012-03-06 Richard Guenther <rguenther@suse.de>
6914 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
6916 2012-03-06 Tristan Gingold <gingold@adacore.com>
6918 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
6919 (external_model_kind): Improve documentation.
6920 (vms_pragma_extern_model): Handle relaxed_redef.
6921 (vms_c_register_pragma): Allow expansion for nomember_alignment.
6923 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
6925 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
6926 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
6927 Some more notes on EIND usage and reorder EIND subsection.
6929 2012-03-06 Tristan Gingold <gingold@adacore.com>
6931 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
6932 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
6934 2012-03-06 Tristan Gingold <gingold@adacore.com>
6936 * config/vms/t-vmsnative (version): Define.
6937 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
6939 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
6941 PR rtl-optimization/52250
6942 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
6943 to put note list into. Unconditionally call move_bb_info.
6944 (move_bb_info): Do not assert the blocks being in the same region,
6945 just drop the note list if they are not.
6947 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6950 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
6951 and use unified expansion logic.
6952 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
6953 closer to the existing movt insn.
6954 (negc): Rename insn to *negc. Add new expander.
6955 (movnegt): Use xor pattern for T bit negation. Reserve helper
6956 constant for negc pattern.
6957 (*movnegt): New insn and splitter.
6959 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
6961 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
6964 2012-03-05 Richard Henderson <rth@redhat.com>
6966 * genemit.c (main): Include "target.h" in insn-emit.c.
6967 * Makefile.in (insn-emit.o): Depend on TARGET_H.
6968 * config/sh/sync.md (atomic_test_and_set): Reference
6969 targetm.atomic_test_and_set_trueval instead of
6970 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
6972 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
6974 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
6977 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
6979 * langhooks.c (add_builtin_type): New function.
6980 * langhooks.h (add_builtin_type): Export it.
6981 * config/mep/mep.c (mep_init_builtins): Use it.
6982 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
6984 2012-03-05 Jakub Jelinek <jakub@redhat.com>
6987 * tree.h (BLOCK_SAME_RANGE): Define.
6988 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
6989 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
6990 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
6991 isn't equal to supercontext fragment's fragment chain.
6992 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
6994 (blocks_nreverse_all): Likewise.
6995 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
6996 BLOCK_SUPERCONTEXT to supercontext fragment instead of
6997 supercontext fragment's fragment origin.
6998 * dwarf2out.c (add_high_low_attributes): If stmt has the same
6999 range as its parent (or parents thereof etc.), use the parent's
7000 DW_AT_ranges value instead of creating a new .debug_ranges range.
7002 2012-03-05 Richard Henderson <rth@redhat.com>
7005 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
7006 * omp-low.c (expand_omp_atomic): Assume anything aligned to
7007 BIGGEST_ALIGNMENT is aligned.
7009 2012-03-05 Richard Henderson <rth@redhat.com>
7011 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
7012 * config/sh/sh.c: ... here.
7014 2012-03-05 Richard Henderson <rth@redhat.com>
7017 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
7018 instead of calling negqi2 directly.
7020 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
7023 * trans-mem.c (tm_region_init): Use last_basic_block.
7025 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
7027 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
7028 * config/sh/sync.md (atomic_test_and_set): New expander.
7029 (tasb, atomic_test_and_set_soft): New insns.
7030 * config/sh/sh.opt (menable-tas): New option.
7031 * doc/invoke.texi (SH Options): Document it.
7033 2012-03-05 Richard Guenther <rguenther@suse.de>
7035 * cfgloop.c (verify_loop_structure): Verify dominators before
7037 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
7038 dominators from here.
7039 * graphite-scop-detection.c (create_sese_edges): Likewise.
7040 * loop-doloop.c (doloop_optimize_loops): Likewise.
7041 * loop-init.c (loop_optimizer_init): Likewise.
7042 * loop-unroll.c (unroll_and_peel_loops): Likewise.
7043 * loop-unswitch.c (unswitch_loops): Likewise.
7044 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
7045 * tree-parloops.c (parallelize_loops): Likewise. Verify
7046 only when checking is enabled.
7047 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
7049 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
7051 * genautomata.c (parse_automata_opt): New static function.
7052 (initiate_automaton_gen): Remove all option handling code. Remove
7053 argc argument. All callers changed.
7054 (main): Call init_rtx_reader_args_cb with the new function as argument.
7056 2012-03-05 Richard Guenther <rguenther@suse.de>
7058 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
7059 * tree-if-conv.c (combine_blocks): Free post-dominator info
7061 * tree-parloops.c (create_parallel_loop): Free and re-compute
7062 dominator info after breaking it.
7064 2012-03-05 Richard Guenther <rguenther@suse.de>
7067 * optabs.h (trapv_unoptab_p): New function.
7068 (trapv_binoptab_p): Likewise.
7069 * optabs.c (expand_binop): Use emit_libcall_block_1 with
7070 a proper equiv_may_trap argument.
7071 (expand_unop): Likewise.
7072 (emit_libcall_block_1): Take extra argument whether the
7073 instruction may trap. Renamed from ...
7074 (emit_libcall_block): ... this. New wrapper.
7076 2012-03-05 Jakub Jelinek <jakub@redhat.com>
7078 PR tree-optimization/51721
7079 * tree-vrp.c (register_edge_assert_for_2): If comparing
7080 lhs of right shift by constant with an integer constant,
7081 add ASSERT_EXPRs for the rhs1 of the right shift.
7083 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
7085 2012-03-05 Richard Guenther <rguenther@suse.de>
7087 * tree.c (integer_zerop): Handle VECTOR_CSTs.
7088 (integer_onep): Likewise.
7089 (integer_all_onesp): Likewise.
7091 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
7093 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
7095 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7097 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
7098 instead of TARGET_64BIT.
7100 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7102 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
7105 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7107 * config/i386/i386.c (ix86_print_operand_address): Only handle
7108 zero-extended DImode addresses.
7110 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
7112 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
7113 taken and cputaken as bool.
7115 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
7117 * config/i386/constraints.md (Ya): New internal constraint.
7118 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
7119 (*zero_extendsidi2_rex64): Add x,x alternative.
7120 (*zero_extendsidi2): Ditto. Add o,0 alternative.
7121 Remove flags reg clobber. Adjust corresponding splits.
7122 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
7123 zero_extendqisi2 expanders using SWI12 mode iterator.
7124 (zero_extend<mode>si2_and): Macroize insn from
7125 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
7127 (*zero_extend<mode>si2): Macroize insn from
7128 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
7129 (*zero_extend*2_movzbl_and): Remove insn patterns.
7130 (zero_extendqihi2_and): Merge corresponding splitter.
7131 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
7132 (*zero_extend*2_movzbl_and): Remove insn patterns.
7133 (*anddi_1): Split TYPE_IMOVX instructions.
7134 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
7136 (and->zext splitter): Add splitter pattern.
7137 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
7139 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
7141 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
7143 (Debugging Options): Likewise.
7144 (Optimize Options): Likewise.
7145 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
7146 with other architectures. Use official processor names with correct
7147 spelling/capitalization. Fix formatting and grammar issues.
7148 (i386 and x86-64 Windows Options): Similar cleanup here.
7150 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7152 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
7154 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7156 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
7157 DBX_REGISTER_NUMBER.
7159 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7161 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
7162 operand is CONST_INT. Take COSTS_N_INSNS into account.
7163 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
7166 2012-03-02 Richard Henderson <rth@redhat.com>
7168 * optabs.c (expand_atomic_test_and_set): Honor
7169 atomic_test_and_set_trueval even when atomic_test_and_set
7170 optab is not in use.
7172 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
7176 * config/sh/sh.c (sh_register_move_cost): Increase cost between
7177 GENERAL_REGS and FP_REGS for SImode.
7179 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7182 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
7183 (absdi2): New expander.
7184 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
7186 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7188 * config/sh/sync.md (atomic_exchange<mode>): New expander.
7189 (atomic_exchange<mode>_soft): New insn.
7191 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7193 * config/sh/sync.md: Update copyright notice dates.
7194 (atomic_compare_and_swap<mode>): Use SImode for return value instead
7196 (atomic_compare_and_swap<mode>_soft): Likewise.
7198 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7201 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
7202 * config/sh/sh.c: Update copyright notice dates.
7203 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
7204 alignment for TARGET_HARD_SH4.
7205 (sh_option_override): Reduce default function alignment. Set
7206 loop alignment to 4 bytes when not optimizing for size.
7208 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
7211 * doc/invoke.texi (floop-flatten): Remove.
7212 * toplev.c (process_options): Remove references to flag_loop_flatten.
7213 * tree-ssa-loop.c (gate_graphite_transform): Same.
7214 * common.opt (floop-flatten): Obsolete.
7215 * graphite-poly.c (apply_poly_transforms): Remove reference to
7217 * Makefile.in (graphite-flattening.o): Remove.
7218 * graphite-flattening.c: Remove.
7220 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
7222 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
7223 having mode compatible with the mode of previous compare. Substitute
7224 compare mode of previous compare with the mode, compatible
7225 with eliminated and previous compare.
7227 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
7229 * config/rs6000/dfp.md (floatdidd2): New define_insn.
7231 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
7233 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
7234 compatible with CCGOCmode and CCGCmode.
7236 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
7238 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
7240 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7242 * config/arm/arm.c (arm_sat_operator_match): New function.
7243 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
7244 * config/arm/arm.md ("insn" attribute): Add "sat" value.
7245 ("SAT", "SATrev"): New code iterators.
7246 ("SATlo", "SAThi"): New code iterator attributes.
7247 ("*satsi_<SAT:code>"): New pattern.
7248 ("*satsi_<SAT:code>_shift"): Likewise.
7249 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
7250 and "shift" attributes.
7251 ("arm_usatsihi"): Add "insn" attribute.
7252 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
7253 by powers of two. Do not allow shift by 32.
7255 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
7258 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
7259 to pass the argument in the register of "natural" mode.
7261 2012-03-02 Richard Guenther <rguenther@suse.de>
7263 PR tree-optimization/52406
7264 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
7265 (struct indices): Add unconstrained_base member.
7266 (struct dr_alias): Remove unused vops member.
7267 (DR_UNCONSTRAINED_BASE): New define.
7268 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
7269 add indices to allow their disambiguation. Make DR_BASE_OBJECT
7270 be an artificial access that covers the whole indexed object,
7271 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
7272 plain decl base-objects to their MEM_REF variant.
7273 (dr_may_alias_p): When the base-object of either data reference
7274 has unknown size use only points-to information.
7275 (compute_affine_dependence): Make dumps easier to read and
7277 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
7278 DR_REF when looking for packed references.
7279 (vect_supportable_dr_alignment): Likewise.
7281 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
7283 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
7284 Improve conditions for peepholes of loads followed by commutative
7286 * config/arm/ldmstm.md: Regenerated.
7288 2012-03-02 Richard Guenther <rguenther@suse.de>
7290 * BASE-VER: Set to 4.8.0.
7292 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
7294 * config.gcc (obsolete): Add all ARM targets using the FPA.
7295 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
7296 * doc/install.texi: Avoid references to obsolete ARM ports.
7298 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
7300 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
7302 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
7303 Joern Rennecke <joern.rennecke@embecosm.com>
7305 * doc/extend.texi: Expand and update information on interrupt
7306 attribute for Epiphany.
7308 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
7310 * config/sh/sh-protos.h: Update copyright notice dates.
7311 * config/sh/sh.h: Likewise.
7312 * config/sh/sh.md: Likewise.
7313 * config/sh/constraints.md: Likewise.
7314 * config/sh/predicates.md: Likewise.
7316 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
7318 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
7319 * config/sh/sh.c (tertiary_reload_operand): Likewise.
7321 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
7323 * config/sh/constraints.md: Fix comment typo.
7325 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7328 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
7329 unsigned HOST_WIDE_INT.
7330 (zvdep_imm64): Likewise.
7331 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
7332 (vdepi_and): Likewise.
7333 Likewise for unamed 64-bit patterns.
7334 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
7336 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
7339 PR rtl-optimization/52417
7340 * cselib.c (cselib_any_perm_equivs): New variable.
7341 (cselib_reset_table): Check that it's not set when not
7342 preserving constants.
7343 (cselib_add_permanent_equiv): Set it.
7344 (cselib_have_permanent_equivalences): New.
7345 (cselib_init, cselib_finish): Reset it.
7346 * cselib.h (cselib_have_permanent_equivalences): Declare.
7347 * alias.c (get_addr): Restore earlier behavior when there
7348 aren't permanent equivalences.
7350 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
7352 * config/mn10300/mn10300-modes.def: Fix copyright notice.
7353 * config/v850/v850-modes.def: Fix copyright notice.
7355 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
7357 * doc/extend.texi (AVR Built-in Functions): Document
7358 __builtin_avr_flash_segment.
7360 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
7361 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
7362 (*split.flash_segment): New insn-and-split.
7363 * config/avr/avr.c (avr_init_builtins): Add local variables:
7364 const_memx_void_node, const_memx_ptr_type_node,
7365 char_ftype_const_memx_ptr.
7367 2012-03-01 Jakub Jelinek <jakub@redhat.com>
7369 PR tree-optimization/52445
7370 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
7371 add ssa_name_ver, offset and size fields and change store field
7373 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
7374 (add_or_mark_expr): Likewise. Only consider previous stores
7375 with the same size and offset.
7376 (nt_init_block): Only look at gimple_assign_single_p stmts,
7377 doesn't look at rhs2.
7379 2012-03-01 Richard Guenther <rguenther@suse.de>
7382 * tree-cfg.c (verify_gimple_assign_unary): Allow any
7383 conversions from integral types to pointer types.
7385 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
7387 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
7388 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
7389 unintentionally removed in r184616.
7391 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7393 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
7396 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7397 Uros Bizjak <ubizjak@gmail.com>
7400 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
7401 alternatives, add "e" constraint to the new last alternative
7402 and ! to last 3 alternatives.
7404 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
7406 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
7407 DW_AT_artificial attributes at the end of the processing.
7408 (gen_array_type_die): Likewise.
7409 (gen_enumeration_type_die): Likewise.
7410 (gen_struct_or_union_type_die): Likewise.
7411 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
7414 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7417 * expr.c (expand_assignment): If doing misaligned store that doesn't
7418 cover all mode bits, perform a RMW cycle.
7420 PR tree-optimization/52429
7421 * tree-parloops.c (separate_decls_in_region_debug): Return early
7422 if var is LABEL_DECL.
7424 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7426 PR tree-optimization/52424
7427 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
7428 calling dom_thread_across_edge.
7430 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7432 * config/avr/avr.c: Move definition of TARGET macros to end of file.
7434 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7436 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
7437 * config/avr/avr.c (avr_output_bld): Remove unused function.
7438 (avr_out_sbxx_branch): Use "%T" to print bit position.
7440 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7442 * config/avr/avr.md: Untabify.
7444 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7446 * config/avr/avr.md (eqne): New code iterator.
7447 (*dec-and-branchsi): Use it in text peephole's condition.
7448 (*dec-and-branchhi): Ditto.
7449 (*dec-and-branchqi): Ditto.
7451 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7454 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
7455 the device does not have the skip-bug.
7457 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
7459 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
7460 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
7461 -mpretend-cmove): New.
7463 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7466 * df.h (struct df_d): Adjust comment that hard_regs_live_count
7467 doesn't count DEBUG_INSN refs.
7468 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
7469 for DEBUG_INSN refs.
7471 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7475 2012-02-20 Richard Guenther <rguenther@suse.de>
7476 PR tree-optimization/52298
7477 * tree-vect-stmts.c (vectorizable_load): Properly use
7478 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
7480 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
7483 * gimple.h (gimple_in_transaction): New.
7484 (gimple_set_in_transaction): New.
7485 (struct gimple_statement_base): Add in_transaction field.
7486 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
7488 (tree_ssa_lim_initialize): Compute transaction bits.
7489 * tree.h (compute_transaction_bits): Protoize.
7490 * trans-mem.c (tm_region_init): Use the heap to store BB
7492 (compute_transaction_bits): New.
7494 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7496 * gcc.c (display_help): Document --help=common and sort entries
7499 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7501 * doc/install.texi: Document check-$LANG specific shortcuts
7503 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7506 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
7508 * config/arm/arm_neon.h: Regenerate.
7509 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
7510 (neon_vcgeu): New insn.
7511 (neon_vcgtu): Likewise.
7512 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
7513 (ops): Unsigned comparison intrinsics call a different builtin.
7515 2012-02-28 Richard Guenther <rguenther@suse.de>
7518 * config/i386/i386.c (ix86_expand_vector_set): Fix element
7519 ordering for the VEC_CONCAT for two element vectors for
7520 V2SFmode, V2SImode and V2DImode.
7522 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
7525 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
7526 detecting big-endian triplets.
7528 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
7530 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
7531 mode if there is no type information available.
7533 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
7535 PR tree-optimization/53207
7536 * doc/invoke.texi: Document as experimental and relying on graphite.
7538 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7540 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
7541 of initializer to changes from r184614.
7543 2012-02-28 Richard Guenther <rguenther@suse.de>
7545 PR tree-optimization/52395
7546 * tree-sra.c (build_ref_for_offset): Also look at the base
7547 TYPE_ALIGN when figuring out the alignment of the replacement.
7549 2012-02-28 Richard Guenther <rguenther@suse.de>
7551 PR tree-optimization/52402
7552 * ipa-prop.c (ipa_modify_call_arguments): Properly use
7553 mis-aligned types when creating the accesses at the call site.
7555 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7557 * config/avr/builtins.def: New file.
7558 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
7559 * config/avr/avr.c (enum avr_builtin_id): Use it.
7560 (avr_init_builtins): Use it. And use avr_bdesc.
7561 (bdesc_1arg): Remove.
7562 (bdesc_2arg): Remove.
7563 (bdesc_3arg): Remove.
7564 (struct avr_builtin_description): Add field n_args.
7565 (avr_bdesc): New static variable using builtins.def.
7566 (avr_expand_builtin): Use it.
7567 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
7568 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
7569 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
7571 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7574 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
7575 match only one single hard register with respective hard reg rtx.
7576 (movmemx_<mode>): Ditto.
7577 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
7578 insn anatomy of movmem[x]_<mode>.
7579 (avr_out_movmem): Same for printing assembler and operand usage.
7581 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7585 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
7586 address spaces located outside of device flash.
7588 * config/avr/avr.h (base_arch_s): Remove field n_segments.
7589 (mcu_type_s): Add field n_flash.
7590 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
7591 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
7592 (AVR_MCU): Add N_FLASH argument.
7593 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
7594 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
7595 macro __FLASH<n> if that address space makes sense for the device.
7596 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
7597 outside of target flash.
7598 (avr_asm_named_section): Ditto.
7599 (avr_asm_select_section): Ditto.
7600 (avr_addr_space_convert): Ditto.
7601 (avr_emit_movmemhi): Ditto.
7602 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
7603 address space is outside of device flash.
7604 (avr_insert_attributes): Ditto.
7605 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
7606 avr_current_arch->n_segments.
7608 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
7611 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
7612 (*movabs<mode>_2): Likewise.
7614 2012-02-27 Jakub Jelinek <jakub@redhat.com>
7617 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
7618 s_register_operand in the test instead of REG_P. Don't call
7619 gen_reg_rtx if it won't be used.
7621 PR tree-optimization/52376
7622 * ipa-split.c (split_function): Ignore CLOBBER stmts.
7624 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
7626 * ifcvt.c (noce_get_condition): Check condition variable is not
7627 small_register_classes_for_mode_p before accepting.
7629 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
7631 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
7633 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7636 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7637 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
7639 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
7641 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
7643 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
7645 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
7647 * config/sh/predicates.md: Remove blank lines.
7648 * config/sh/sh.c: Fix typos in comments.
7649 * config/sh/constraints.md: Likewise.
7650 * config/sh/sh.md: Remove blank lines.
7651 Fix typos in comments. Use ;; as comment characters.
7653 2012-02-26 Walter Lee <walt@tilera.com>
7655 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
7656 (replace_mov_pcrel_step2): Ditto.
7658 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
7661 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
7662 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
7663 and locs that reference values newer than the non-canonical value
7664 at hand. Return the canonical value as a worst case.
7665 (memrefs_conflict_p): Walk canonical value's locs.
7668 * cselib.c (preserve_only_constants): Rename to...
7669 (preserve_constants_and_equivs): ... this. Split out...
7670 (invariant_or_equiv_p): ... this. Preserve plus expressions
7671 of other preserved expressions too.
7672 (cselib_reset_table): Adjust.
7673 * var-tracking.c (reverse_op): Use canonical value to build
7676 2012-02-23 Kai Tietz <ktietz@redhat.com>
7678 * config/i386/i386.c (ix86_delegitimize_address): Handle
7679 UNSPEC_PCREL plus displacement.
7681 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
7684 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
7685 to test for unusedness in st X addressing.
7687 2012-02-24 Richard Guenther <rguenther@suse.de>
7690 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
7691 (is_gimple_reg_type): Move inline ...
7692 * gimple.h (is_gimple_reg_type): ... here.
7694 2012-02-24 Richard Guenther <rguenther@suse.de>
7697 * passes.c (execute_function_todo): When verifying SSA form
7698 verify gimple form first.
7699 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
7701 2012-02-24 Richard Guenther <rguenther@suse.de>
7704 * fold-const.c (fold_addr_of_array_ref_difference): New function.
7705 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
7707 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7709 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
7711 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7713 * tree-phinodes.c (make_phi_node): Mark static.
7714 * tree-flow.h (make_phi_node): Remove extern decl.
7715 * doc/gimple.texi (make_phi_node): Remove documentation.
7717 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7719 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
7720 * tree-ssa-sccvn.c (print_scc): Ditto.
7722 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7724 * doc/passes.texi (Full redundancy elimination): Fix typo.
7726 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7728 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
7730 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
7733 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
7735 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
7738 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
7740 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
7742 * config/avr/avr.md (code_stdname): Add ior, xor.
7743 (xior): New code iterator.
7744 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
7745 (*<code_stdname><mode>qi.byte1-3): Ditto.
7747 2012-02-23 Jakub Jelinek <jakub@redhat.com>
7749 PR tree-optimization/52019
7750 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
7753 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7755 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
7756 HAVE_INITFINI_ARRAY to work around namespace pollution in
7757 certain versions of newlib system headers.
7758 * config.in: Regenerate.
7759 * configure: Regenerate.
7760 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
7761 instead of HAVE_INITFINI_ARRAY.
7763 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
7766 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
7767 is not offsettable memory reference.
7769 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7772 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
7773 setting avr_need_clear_bss_p for __gnu_lto* symbols.
7775 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7777 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
7778 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
7780 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7782 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
7783 library on Solaris 8 even without TLS support.
7784 * configure: Regenerate.
7786 2012-02-22 Richard Guenther <rguenther@suse.de>
7789 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
7790 for GIMPLE_DEBUG stmts.
7792 2012-02-22 Martin Jambor <mjambor@suse.cz>
7795 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
7796 according to the base object.
7798 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7800 PR rtl-optimization/50063
7801 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
7802 and 2 (8-bit SP) in operand 2.
7803 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
7804 setup to use movhi_sp_r instead of vanilla move to write SP.
7805 Adjust REG_CFA notes to superseed unspec.
7806 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
7808 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
7809 known to be off) only with TARGET_NO_INTERRUPTS. Never use
7810 irq_state 1 (IRQ known to be on) here.
7812 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
7814 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
7816 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
7817 assign_hard_reg): Likewise.
7819 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7821 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
7823 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7826 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
7827 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
7829 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7831 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
7832 prototype from here to...
7833 * config/avr/avr.h: ...here.
7835 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
7838 * thumb2.md (thumb2_shiftsi3_short): Split register and
7839 immediate shifts. For register shifts tie operands 0 and 1.
7840 (peephole2 for above): Check that register-controlled shifts
7841 have suitably tied operands.
7843 2012-02-21 Quentin Neill <quentin.neill@amd.com>
7846 * config/i386/bdver1.md (bdver1_call, bdver1_push,
7847 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
7848 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
7849 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
7850 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
7851 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
7852 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
7853 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
7854 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
7855 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
7856 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
7857 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
7858 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
7859 bdver1_ssevector_avx256_unaligned_load,
7860 bdver1_ssevector_sse128_unaligned_load,
7861 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
7862 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
7863 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
7864 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
7865 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
7866 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
7867 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
7868 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
7869 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
7870 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
7871 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
7872 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
7873 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
7874 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
7875 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
7876 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
7877 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
7878 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
7879 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
7880 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
7881 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
7882 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
7883 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
7884 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
7885 bdver1_ssediv_double_load, bdver1_ssediv_double,
7886 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
7887 Add "bdver2" attribute.
7889 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7891 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
7892 default if possible and not specified otherwise.
7894 2012-02-21 Richard Guenther <rguenther@suse.de>
7897 * gimplify.c (create_tmp_from_val): Use the main variant type
7898 for the type of the temporary we create.
7900 2012-02-21 Richard Guenther <rguenther@suse.de>
7902 PR tree-optimization/52324
7903 * gimplify.c (gimplify_expr): When re-gimplifying expressions
7904 do not gimplify a MEM_REF address operand if it is already
7907 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7909 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
7910 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
7912 2012-02-21 Richard Guenther <rguenther@suse.de>
7914 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
7915 nested_in_vect_loop.
7917 2012-02-21 Jakub Jelinek <jakub@redhat.com>
7919 PR tree-optimization/52318
7920 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
7921 vdef also to non-pure/const call stmts in the sequence.
7923 2012-02-21 Tristan Gingold <gingold@adacore.com>
7925 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
7927 2012-02-20 David S. Miller <davem@davemloft.net>
7929 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
7930 don't use the "rd %pc" instruction on v9 for PIC register loads.
7932 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
7935 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
7936 in a transaction safe function.
7938 2012-02-20 Kai Tietz <ktietz@redhat.com>
7941 * stor-layout.c (place_field): Handle desired_align for
7944 2012-02-20 Richard Guenther <rguenther@suse.de>
7946 PR tree-optimization/52298
7947 * tree-vect-stmts.c (vectorizable_store): Properly use
7948 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
7950 (vectorizable_load): Likewise.
7951 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7952 Access DR_STEP after ensuring it is not NULL.
7954 2012-02-20 Jakub Jelinek <jakub@redhat.com>
7956 PR tree-optimization/52286
7957 * fold-const.c (fold_binary_loc): For (X & C1) | C2
7958 optimization use double_int_to_tree instead of build_int_cst_wide,
7959 rewrite to use double_int vars.
7961 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7964 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
7966 Remove -e 0 from $gcc_cv_ld invocation.
7967 Only use __GLIBC_PREREQ if defined.
7968 Enable on Solaris since Solaris 8 patch.
7969 (gcc_SUN_LD_VERSION): New macro.
7970 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
7971 gcc_SUN_LD_VERSION for version number format.
7972 * configure: Regenerate.
7973 * varasm.c (get_elf_initfini_array_priority_section): Set
7974 SECTION_NOTYPE for non-default priority.
7975 Use get_section instead of get_unnamed_section to emit
7976 .init_array/.fini_array with default priority.
7978 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
7980 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
7981 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
7982 (mips_start_unique_function, mips_output_mips16_rdhwr)
7983 (mips_code_end): New functions.
7984 (TARGET_ASM_CODE_END): Define.
7986 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
7988 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
7989 to stubs with non-sibling calls.
7991 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
7993 * doc/invoke.texi (-fira-* options): Copy-edit.
7994 (ira-* parameters): Copy-edit.
7996 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
7998 * doc/invoke.texi: Minor copy-edits to bring into conformance with
7999 GCC coding conventions.
8001 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
8003 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
8004 when used as adjectives.
8006 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
8008 * doc/invoke.texi: Clean up "that"/"which" confusion.
8010 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
8012 * system.h: Poison SMALL_REGISTER_CLASSES
8013 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
8014 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
8016 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8018 PR tree-optimization/52285
8019 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
8020 when deciding if a call is a tail call or tail recursion.
8022 2012-02-16 Kai Tietz <ktietz@redhat.com>
8024 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
8025 interger-constant displacement for UNSPEC_PCREL.
8027 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8029 PR rtl-optimization/52208
8030 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
8031 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
8033 PR tree-optimization/52255
8034 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
8035 loop->header has virtual PHI, but exit_e->dest doesn't, add
8036 virtual PHI to exit_e->dest and adjust all uses after the loop.
8039 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
8040 children with clone_tree_hash, not after it.
8042 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
8044 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
8045 extended identifiers.
8047 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8050 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
8051 a same_body_alias, also test whether e->callee isn't a former
8052 or current clone of the decl this is a same body alias of.
8054 PR translation/52264
8055 * cgraphunit.c (verify_cgraph_node): Fix a typo.
8057 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
8059 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
8061 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8064 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
8065 force_reg instead of copy_to_reg for better optimization. Force
8066 non-register or memory operands into a register.
8068 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
8070 * extend.texi: Reserve upper bits of memory model for future use.
8072 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
8073 Anatoly Sokolov <aesok@post.ru>
8074 Eric Weddington <eric.weddington@atmel.com>
8077 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
8078 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
8079 Rewrite initializers for .macro.
8080 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
8081 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
8082 atxmega32d4, atxmega32x1.
8083 avrxmega4: atxmega64a3, atxmega64d3.
8084 avrxmega5: atxmega64a1, atxmega64a1u.
8085 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
8086 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
8087 avrxmega7: atxmega128a1, atxmega128a1u.
8088 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
8089 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
8090 (struct base_arch_s): Rename reserved to xmega_p.
8091 Rename reserved2 to have_rampd.
8092 (AVR_XMEGA): New define.
8093 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
8094 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
8095 * config/avr/predicates.md (io_address_operand): Take into
8097 (low_io_address_operand): Ditto.
8098 (high_io_address_operand): Ditto.
8099 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
8100 (enabled, movhi_sp_r): Use them.
8101 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
8102 cpp_define_formatted to built-in define __AVR_ARCH__.
8103 (__AVR_XMEGA__): New built-in define.
8104 (__AVR_HAVE_RAMPD__): New built-in define.
8105 (__AVR_HAVE_RAMPX__): New built-in define.
8106 (__AVR_HAVE_RAMPY__): New built-in define.
8107 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
8109 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
8110 (avr_option_override): Initialize them.
8111 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
8112 (avr_init_expanders): Initialize them. No more block several calls.
8113 (emit_push_sfr): New static function.
8114 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
8116 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
8117 (avr_print_operand): Print addreeses as symbols for
8118 RAMPX, RAMPY, RAMPD, CCP.
8119 (output_movhi): Handle AVR_XMEGA when writing to SP.
8120 (avr_out_movhi_mr_r_xmega): New static function.
8121 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
8122 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
8123 __RAMPD__, __CCP__ as needed.
8125 * config/avr/multilib.h: Regenerate.
8126 * config/avr/t-multilib: Regenerate.
8127 * config/avr/avr-tables.opt: Regenerate.
8129 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
8131 PR tree-optimization/50561
8132 * graphite-flattening.c (lst_project_loop): Do not
8133 remove old scattering dimensions after flattening.
8134 (lst_do_flatten): Likewise.
8136 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
8138 * doc/extend.texi (AVR Built-in Functions): Remove doc for
8139 __builtin_avr_map8, __builtin_avr_map16.
8140 Document __builtin_avr_insert_bits.
8142 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
8143 (insert_bits): New insn.
8144 (adjust_len.map_bits): Rename to insert_bits.
8145 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
8146 * avr-protos.h (avr_out_map_bits): Remove.
8147 (avr_out_insert_bits, avr_has_nibble_0xf): New.
8148 * config/avr/constraints.md (Cxf,C0f): New.
8149 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
8150 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
8151 New built-in define __BUILTIN_AVR_INSERT_BITS.
8152 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
8153 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
8154 (avr_move_bits): Rewrite.
8155 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
8157 (avr_map_op_t): New typedef.
8158 (avr_map_op): New static variable.
8159 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
8160 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
8161 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
8162 (bdesc_3arg, avr_expand_triop_builtin): New.
8163 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
8164 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
8165 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
8166 (avr_map_equal_p, avr_map_sig_p): Remove.
8167 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
8168 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
8169 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
8170 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
8171 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
8172 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
8174 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
8176 * config/c6x/c6x.md (reserve_cycles): New attribute.
8177 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
8178 don't reserve functional units after the branch occurs.
8180 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
8183 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
8184 functions into non-tm_pure functions.
8186 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
8189 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
8190 (iterative_hash_canonical_type): Likewise.
8191 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
8194 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
8196 * haifa-sched.c (prune_ready_list): Ensure that if there is a
8197 sched-group insn, it either remains alone or the entire list is pruned.
8199 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
8201 * doc/install.texi (Prerequisites): Fix grammar.
8202 (Configuration): Likewise.
8204 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
8206 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
8207 MPC as part of GCC before describing configuring with --with-gmp etc.
8208 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
8209 sources are present.
8211 2012-02-14 Jakub Jelinek <jakub@redhat.com>
8214 * dwarf2out.c (clone_tree_hash): New function.
8215 (copy_decls_walk): Use it instead of clone_tree.
8217 2012-02-14 Richard Guenther <rguenther@suse.de>
8219 PR tree-optimization/52244
8220 PR tree-optimization/51528
8221 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
8222 replacements for integral types.
8224 2012-02-14 Walter Lee <walt@tilera.com>
8226 * config.gcc: Handle tilegx and tilepro.
8227 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
8229 Add HAVE_AS_TLS check for tilegx and tilepro.
8230 * configure: Regenerate.
8231 * doc/contrib.texi: Add Mat Hostetter and self.
8232 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
8233 Document instruction intrinsics and network accessing intrinsics.
8234 (TILEPro Built-in Functions): New node. Document instruction
8235 intrinsics and network accessing intrinsics.
8236 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
8237 (Specific, tilepro-*-linux*): Likewise.
8238 * doc/invoke.texi (TILE-Gx Options): New section.
8239 (TILEPro Options): New section.
8240 * doc/md.texi (TILE-Gx): New section.
8241 (TILEPro): New section.
8242 * common/config/tilegx/tilegx-common.c: New file.
8243 * common/config/tilepro/tilepro-common.c: New file.
8244 * config/tilegx/constraints.md: New file.
8245 * config/tilegx/linux.h: New file.
8246 * config/tilegx/mul-tables.c: New file.
8247 * config/tilegx/predicates.md: New file.
8248 * config/tilegx/sync.md: New file.
8249 * config/tilegx/t-tilegx: New file.
8250 * config/tilegx/tilegx-builtins.h: New file.
8251 * config/tilegx/tilegx-c.c: New file.
8252 * config/tilegx/tilegx-generic.md: New file.
8253 * config/tilegx/tilegx-modes.def: New file.
8254 * config/tilegx/tilegx-multiply.h: New file.
8255 * config/tilegx/tilegx-protos.h: New file.
8256 * config/tilegx/tilegx.c: New file.
8257 * config/tilegx/tilegx.h: New file.
8258 * config/tilegx/tilegx.md: New file.
8259 * config/tilegx/tilegx.opt: New file.
8260 * config/tilepro/constraints.md: New file.
8261 * config/tilepro/gen-mul-tables.cc: New file.
8262 * config/tilepro/linux.h: New file.
8263 * config/tilepro/mul-tables.c: New file.
8264 * config/tilepro/predicates.md: New file.
8265 * config/tilepro/t-tilepro: New file.
8266 * config/tilepro/tilepro-builtins.h: New file.
8267 * config/tilepro/tilepro-c.c: New file.
8268 * config/tilepro/tilepro-generic.md: New file.
8269 * config/tilepro/tilepro-modes.def: New file.
8270 * config/tilepro/tilepro-multiply.h: New file.
8271 * config/tilepro/tilepro-protos.h: New file.
8272 * config/tilepro/tilepro.c: New file.
8273 * config/tilepro/tilepro.h: New file.
8274 * config/tilepro/tilepro.md: New file.
8275 * config/tilepro/tilepro.opt: New file.
8277 2012-02-14 Jakub Jelinek <jakub@redhat.com>
8279 PR tree-optimization/52210
8280 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
8281 vect_model_simple_cost with two entry vect_def_type array instead
8282 of an address of dt.
8284 2012-02-14 Richard Guenther <rguenther@suse.de>
8287 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
8288 Do not stream DECL_QUALIFIER.
8289 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
8290 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
8291 (find_decls_types_r): Do not walk DECL_QUALIFIER.
8293 2012-02-14 Jakub Jelinek <jakub@redhat.com>
8296 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
8299 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8302 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
8303 * cselib.c (cselib_subst_to_values_from_insn): New function.
8304 * sched-deps.c (add_insn_mem_dependence,
8305 sched_analyze_1, sched_analyze_2): Use it.
8307 2012-02-13 Jan Hubicka <jh@suse.cz>
8310 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
8312 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
8314 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
8315 (GTM_SELF_SPECS): Define if not already defined.
8316 (driver_self_specs): Add GTM_SELF_SPECS.
8317 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
8318 (GTM_SELF_SPECS): Define.
8319 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
8320 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
8322 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8324 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
8327 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
8330 * omp-low.c (expand_omp_for): If a static schedule without chunk size
8331 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
8333 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
8336 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
8338 2012-02-13 Richard Guenther <rguenther@suse.de>
8340 PR translation/52211
8341 * passes.c (enable_disable_pass): Fix typo.
8343 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8346 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
8347 XOR for reduce_bit_field if type is unsigned.
8349 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
8351 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
8352 disallow changes from SFmode to mode with different size in FP regs.
8354 2012-02-12 Robert Millan <rmh@gnu.org>
8355 Gerald Pfeifer <gerald@pfeifer.com>
8357 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
8360 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
8362 PR rtl-optimization/52175
8363 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
8364 to frame-related instructions.
8366 2012-02-10 Jason Merrill <jason@redhat.com>
8369 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
8370 (demangle_new_symbols): Fill it.
8371 (scan_linker_output): Walk it.
8372 (start_tweaking): Split out from scan_linker_output.
8373 (maybe_tweak): Update sym->chosen.
8374 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
8376 2012-02-11 Jakub Jelinek <jakub@redhat.com>
8379 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
8381 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
8383 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
8384 having the same mode as previous compare.
8386 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
8388 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
8389 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
8390 (nonlocal_goto_internal): Likewise.
8391 (nonlocal_goto): Emit a use and an indirect jump directly.
8393 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
8396 * doc/extend.texi : Update comments for __atomic_compare_exchange and
8397 __atomic_{is,always}_lock_free.
8399 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
8402 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
8403 negative constant address for TARGET_X32.
8405 2012-02-10 Richard Henderson <rth@redhat.com>
8407 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
8408 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
8409 for GIMPLE_TRANSACTION. Tidy if's into a switch.
8411 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8412 Ira Rosen <irar@il.ibm.com>
8414 PR tree-optimization/50031
8415 * targhooks.c (default_builtin_vectorization_cost): Handle
8417 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
8418 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
8419 all types of reduction and pattern statements.
8420 (vect_estimate_min_profitable_iters): Likewise.
8421 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
8422 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
8423 for explicit realigns.
8424 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
8425 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
8427 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
8428 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
8429 vec_perm for VSX and handle vec_promote_demote.
8431 2012-02-10 Jakub Jelinek <jakub@redhat.com>
8434 * builtins.c (fold_builtin_atomic_always_lock_free,
8435 expand_builtin_atomic_always_lock_free,
8436 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
8437 Return and/or test boolean_true_node/boolean_false_node instead of
8438 integer_one_node/integer_zero_node.
8440 2012-02-10 Jan Hubicka <jh@suse.cz>
8443 * predict.c (predict_paths_for_bb): Prevent looping.
8444 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
8446 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
8448 * config/arm/arm.c (output_move_double): In one case properly
8449 count number of instructions that will be emitted.
8451 2012-02-10 Richard Guenther <rguenther@suse.de>
8453 PR translation/52193
8454 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
8456 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
8459 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
8461 2012-02-09 Jakub Jelinek <jakub@redhat.com>
8464 * var-tracking.c (emit_note_insn_var_location): If
8465 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
8466 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
8467 non-NOTE_DURING_CALL_P insn.
8469 2012-02-09 Bin Cheng <bin.cheng@arm.com>
8472 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
8474 2012-02-08 Magnus Granberg <zorry@gentoo.org>
8477 * gcc.c (switch_matches) Support switches with separated form,
8480 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
8482 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
8484 (RAMPZ_ADDR): Ditto.
8485 * config/avr/avr.c (avr_addr_t): New typedef.
8486 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
8487 (avr_init_expanders): Initialize it.
8488 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
8490 (expand_epilogue): Ditto.
8491 (avr_print_operand): Ditto.
8492 (avr_file_start): Ditto.
8493 (avr_emit_movmemhi): Ditto.
8495 2012-02-08 Richard Guenther <rguenther@suse.de>
8497 PR tree-optimization/46886
8498 * tree-flow.h (do_while_loop_p): Declare.
8499 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
8500 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
8502 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
8504 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
8505 always succeed for integers larger than a native word.
8507 2012-02-08 Richard Guenther <rguenther@suse.de>
8509 PR rtl-optimization/52170
8510 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
8511 properly handle integer vector modes.
8513 2012-02-08 Jakub Jelinek <jakub@redhat.com>
8515 PR gcov-profile/52150
8516 * coverage.c: Include target.h.
8517 (build_var): Call targetm.strip_name_encoding on the assembler name.
8518 Change one _ into . or $ if the target allows it.
8519 * Makefile.in (coverage.o): Depend on $(TARGET_H).
8521 PR rtl-optimization/52139
8522 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
8523 is a BARRIER after emit_insn_after_noloc, move BB_END
8524 to the last non-BARRIER insn before it.
8526 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
8529 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
8530 (mips_gimplify_va_arg_expr): Call it instead of
8531 std_gimplify_va_arg_expr.
8533 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8535 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
8536 message for -mno-pointers-to-nested-function.
8538 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
8541 * expr.c (get_inner_reference): If there is an offset, add a negative
8542 bit position to it (if any).
8544 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8546 PR rtl-optimization/52060
8547 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
8548 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
8549 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
8550 and/or i0src_copy2 when needed.
8552 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8554 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
8555 or LTOPLUGINSONAME if have_c.
8557 * config/freebsd-spec.h: Add comment about what macros can be defined
8559 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
8560 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
8563 2012-02-07 Richard Guenther <rguenther@suse.de>
8565 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
8566 newline in -alias dumps.
8568 2012-02-07 Kai Tietz <ktietz@redhat.com>
8569 Dave Korn <dave.korn.cygwin@gmail.com>
8572 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
8573 Take care that typinfo gets dllexport-attribute.
8575 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8578 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
8579 if modifier < EXPAND_SUM call force_operand on the result.
8581 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
8583 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
8584 adding __forwarder_dst__ prefix if a forwarder_section attribute is
8586 (epiphany_function_type): Replace types for specific interrupts with
8587 EPIPHANY_FUNCTION_INTERRUPT.
8588 (EPIPHANY_INTERRUPT_P): Update.
8589 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
8590 New static function.
8591 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
8592 <disinterrupt>: Affects type identity.
8593 (epiphany_handle_interrupt_attribute): Handle variable number of
8595 (epiphany_compute_function_type): Update for new
8596 epiphany_function_type definition.
8597 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
8598 handlers with a longcall forwarder.
8599 (epiphany_start_function): Handle multiple interrupt arguments and/or
8600 forwarder_section attribute.
8602 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
8605 2012-02-07 Alan Modra <amodra@gmail.com>
8608 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
8611 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8613 PR tree-optimization/50969
8614 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
8615 use vec_perm rather than vector_stmt.
8616 (vect_model_load_cost): Likewise.
8617 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
8618 vec_perm to be the same as other vector statements.
8619 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
8620 cost of vec_perm for TARGET_VSX.
8622 2012-02-06 Richard Guenther <rguenther@suse.de>
8624 PR tree-optimization/52115
8625 * tree-sra.c (access_has_replacements_p): New function.
8626 (sra_modify_assign): Use it to decide whether a use is uninitialized.
8628 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
8631 * trans-mem.c (expand_call_tm): Add an assertion.
8632 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
8635 2012-02-06 Richard Guenther <rguenther@suse.de>
8637 PR tree-optimization/50955
8638 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
8639 raise cost of expressions that replace an address with an
8640 expression based on a different pointer.
8642 2012-02-06 Jakub Jelinek <jakub@redhat.com>
8645 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
8646 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
8648 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8651 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
8652 -Weffc++ and specify guidelines come from second edition.
8654 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
8656 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
8657 (sibcall_value_multiple_internal, call_split, call_internal_direct)
8658 (call_direct_split, call_value_split, call_value_internal_direct)
8659 (call_value_direct_split, call_value_multiple_split): Use jal and
8660 jal_macro attributes.
8662 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
8664 * reload1.c (reload_regs_reach_end_p): Replace with...
8665 (reload_reg_rtx_reaches_end_p): ...this function.
8666 (new_spill_reg_store): Update commentary.
8667 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
8668 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
8669 before setting new_spill_reg_store.
8670 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
8671 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
8672 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
8673 for non-spill reload registers.
8675 2012-02-05 Ira Rosen <irar@il.ibm.com>
8677 PR tree-optimization/52091
8678 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
8679 (vect_is_simple_use_1): Likewise.
8680 * tree-vect-loop.c (vectorizable_reduction): Update calls
8681 to vect_is_simple_use_1 and vect_is_simple_use.
8682 (vectorizable_live_operation): Likewise.
8683 * tree-vect-patterns.c (widened_name_p,
8684 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
8685 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
8686 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
8687 vectorizable_shift,vectorizable_operation, vectorizable_store,
8688 vectorizable_load): Likewise.
8689 (vect_is_simple_cond): Add an argument, pass it to
8690 vect_is_simple_use_1.
8691 (vectorizable_condition): Update calls to vect_is_simple_cond,
8693 (vect_is_simple_use): Add an argument, the statement in which
8694 OPERAND is used. Check that if OPERAND's def stmt is a double
8695 reduction phi node, the use is a phi node too.
8696 (vect_is_simple_use_1): Add an argument, pass it to
8698 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
8699 to vect_is_simple_use.
8701 2012-02-04 Jakub Jelinek <jakub@redhat.com>
8703 PR rtl-optimization/52095
8704 * modulo-sched.c (dump_insn_locator): New function.
8705 (loop_canon_p, sms_schedule): Use it.
8707 PR rtl-optimization/52113
8708 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
8709 even for decomposable shift/zext insns.
8711 2012-02-03 Jakub Jelinek <jakub@redhat.com>
8712 Zdenek Dvorak <ook@ucw.cz>
8714 PR rtl-optimization/52092
8715 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
8716 on get_iv_value result.
8718 2012-02-02 Andrew Pinski <apinski@cavium.com>
8722 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
8724 2012-02-02 Jakub Jelinek <jakub@redhat.com>
8727 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
8729 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
8731 PR rtl-optimization/49800
8732 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
8733 (sched_finish): Call regstat_free_n_sets_and_refs.
8735 2012-02-02 Jia Liu <proljc@gmail.com>
8737 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
8740 2012-02-02 Jan Hubicka <jh@suse.cz>
8741 Tom de Vries <tom@codesourcery.com>
8744 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
8745 * varpool.c (varpool_analyze_pending_decls): Likewise.
8747 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
8748 Jayant R Sonar <jayant.sonar@kpitcummins.com>
8750 * config.gcc: Add cr16-* support.
8752 * doc/extend.texi: Document cr16 extensions.
8753 * doc/install.texi: Document cr16 install.
8754 * doc/invoke.texi: Document cr16 options.
8755 * doc/md.texi: Document cr16 constraints.
8757 * common/config/cr16/cr16-common.c: New file.
8758 * config/cr16/cr16.c: New file.
8759 * config/cr16/cr16.h: New file.
8760 * config/cr16/cr16.md: New file.
8761 * config/cr16/cr16.opt: New file.
8762 * config/cr16/cr16-protos.h: New file.
8763 * config/cr16/predicates.md: New file.
8764 * config/cr16/constraints.md: New file.
8765 * config/cr16/t-cr16: New file.
8767 2012-02-02 Jakub Jelinek <jakub@redhat.com>
8770 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
8771 that operands[2] is either immediate, or q_regs_operand.
8773 PR tree-optimization/52073
8774 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
8775 a pattern stmt for pattern uses, ignore uses outside of the loop.
8777 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
8779 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
8780 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
8781 (OUT_AS1, OUT_AS2): Remove.
8783 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
8785 PR rtl-optimization/51374
8786 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
8787 to cross other volatile_refs_p insns.
8789 2012-02-01 Richard Guenther <rguenther@suse.de>
8791 * doc/invoke.texi (fno-inline): Clarify documentation.
8792 (finline-small-functions): Likewise.
8793 (finline-functions): Likewise.
8794 * common.opt (finline): Adjust comment and documentation.
8795 (finline-small-functions): Clarify documentation.
8796 (finline-functions): Likewise.
8797 (finline-functions-called-once): Likewise.
8799 2012-02-01 Tristan Gingold <gingold@adacore.com>
8801 * c-typeck.c (composite_type): Keep mode for pointers.
8803 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
8805 * function.h (regno_reg_rtx): Adjust comment.
8806 * reginfo.c (init_reg_modes_target): Only use the previous mode
8807 if it fits within one register. Remove MIPS comment.
8809 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8812 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
8814 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8816 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
8817 to srak instruction.
8819 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8821 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
8823 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8828 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
8830 2012-01-31 Richard Guenther <rguenther@suse.de>
8832 PR tree-optimization/51528
8833 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
8836 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8841 * ree.c (add_removable_extension): Change def_map argument
8842 to unsigned *, store in def_map 1 + offset into *insn_list vector
8843 instead of pointers into the vector.
8844 (find_removable_extensions): Adjust caller.
8846 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
8848 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
8849 Transform all "* quoted-c-code" to { c-code }.
8850 Remove redundant test for "optimize" in combine patterns.
8851 Move (include "avr-dimode.md") to end of file.
8853 2012-01-30 Bin Cheng <bin.cheng@arm.com>
8856 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
8857 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
8859 2012-01-30 Richard Guenther <rguenther@suse.de>
8861 PR tree-optimization/52028
8862 * tree-loop-distribution.c (ldist_gen): Properly update
8865 2012-01-30 Jakub Jelinek <jakub@redhat.com>
8868 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
8869 set_cur_line_info_table if not emitting debug info.
8871 PR tree-optimization/52046
8872 * tree-vect-patterns.c (check_bool_pattern): Give up if
8873 a comparison could throw.
8876 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
8878 2012-01-30 Richard Guenther <rguenther@suse.de>
8880 PR tree-optimization/52045
8881 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
8882 SSA form if cfgcleanup did anything.
8884 2012-01-30 Richard Guenther <rguenther@suse.de>
8886 PR tree-optimization/52045
8887 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
8888 before computing final todo.
8890 2012-01-30 Richard Guenther <rguenther@suse.de>
8892 PR tree-optimization/51528
8893 * tree-sra.c (sra_modify_assign): Re-factor in preparation
8896 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
8898 * df-problems.c (df_kill_notes): Check that the use refers
8899 to the note under examination.
8901 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
8904 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
8905 parameter and use short-lived pseudos.
8906 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
8907 (sparc_expand_vector_init): Const-ify local variables and adjust
8908 calls to above functions.
8910 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
8912 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
8914 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
8916 * doc/invoke.texi: Make usage of "compile time" and
8917 "run time"/"runtime" consistent throughout the file.
8919 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
8921 * config/alpha/alpha.c (alpha_option_override): Default to
8922 full IEEE compliance mode for Go language.
8924 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
8926 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
8927 (LINK_SSP_SPEC): Define.
8929 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8932 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
8935 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
8937 * doc/invoke.texi: Correct hyphenation of "floating point",
8938 "double precision", and related terminology throughout the file.
8940 2012-01-28 Jakub Jelinek <jakub@redhat.com>
8943 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
8944 arm_general_register_operand predicate for operand 2 instead of
8947 2012-01-27 Ian Lance Taylor <iant@google.com>
8950 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
8951 * builtins.c (expand_builtin_init_trampoline): Add onstack
8952 parameter. Change caller.
8953 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
8954 * tree.c (build_common_builtin_nodes): Declare
8955 __builtin_init_heap_trampoline.
8957 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
8959 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
8960 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
8961 * config/avr/avr.c: Ditto.
8962 (avr_regnames): Remove because unused.
8963 * config/avr/avr.md (*cpse.ne): New peephole.
8964 (*cpse.eq): New peephole from former cpse peepholes.
8966 2012-01-27 Michael Eager <eager@eagercon.com>
8968 * config/microblaze.c (microblaze_emit_compare): Correct
8969 test after pcmp instruction.
8971 2012-01-27 Richard Guenther <rguenther@suse.de>
8973 PR tree-optimization/52020
8974 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
8976 2012-01-27 Richard Guenther <rguenther@suse.de>
8978 * ipa-pure-const.c (check_stmt): Clobbers do not make a
8979 function non-const/pure.
8981 2012-01-27 Richard Guenther <rguenther@suse.de>
8983 PR tree-optimization/50444
8984 * tree-sra.c (build_ref_for_offset): Properly adjust the
8985 MEM_REF type for unaligned accesses.
8987 2012-01-27 Richard Guenther <rguenther@suse.de>
8989 PR tree-optimization/50444
8990 * expr.c (mem_ref_refers_to_non_mem_p): New function.
8991 (expand_assignment): Use it. Properly handle misaligned
8992 bases when expanding stores to component references.
8993 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
8996 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
8999 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
9000 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
9001 * tree-data-ref.c (find_data_references_in_loop): Make static.
9002 (compute_all_dependences): Change return type to bool. Bail out
9003 for too many datarefs in a loop. Move the hunk resetting the data
9004 dependences vector from ...
9005 (compute_data_dependences_for_loop): ... here. Account for
9006 compute_all_dependences returning false.
9007 (compute_data_dependences_for_bb): Likewise.
9008 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
9009 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
9011 2012-01-27 Richard Guenther <rguenther@suse.de>
9014 * expr.c (store_field): Use the alias-set of the scratch memory
9017 2012-01-27 Tom de Vries <tom@codesourcery.com>
9019 PR tree-optimization/51990
9020 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9022 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
9024 2012-01-27 Jakub Jelinek <jakub@redhat.com>
9027 * var-tracking.c (reverse_op): Don't add any reverse operation
9028 if V already has any constant locations.
9030 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
9032 * doc/invoke.texi: Correct usage of "command line" (noun)
9033 vs "command-line" (adjective) throughout.
9035 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
9037 * doc/invoke.texi (Language Independent Options): Move
9038 -Wcoverage-mismatch blurb from here....
9039 (Warning Options): ...to here.
9041 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
9043 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9044 Set rs6000_always_hint to false for 476.
9046 2012-01-27 Matthias Klose <doko@ubuntu.com>
9048 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
9050 * incpath.c (add_standard_paths): Likewise.
9052 2012-01-27 Richard Henderson <rth@redhat.com>
9054 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9055 * config/m68k/sync.md (atomic_test_and_set): Rename from
9056 sync_test_and_setqi and adjust the operands.
9057 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
9058 and unconditionally enable.
9060 2012-01-27 Richard Henderson <rth@redhat.com>
9062 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9063 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
9064 (ldstub): Rename from ldstubqi.
9065 (ldstub<I24MODE>): Remove.
9067 2012-01-27 Richard Henderson <rth@redhat.com>
9069 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9070 * c-cppbuiltin.c (cpp_atomic_builtins): Define
9071 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
9072 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
9073 * doc/tm.texi: Rebuild.
9075 2012-01-27 Richard Henderson <rth@redhat.com>
9077 * optabs.c (gen_atomic_test_and_set): Remove default.
9078 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
9080 2012-01-26 Jakub Jelinek <jakub@redhat.com>
9082 PR rtl-optimization/51978
9083 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
9084 (combine_reaching_defs): Likewise.
9085 (struct re_info): Remove.
9086 (add_removable_extension): Remove x and data arguments,
9087 add insn, insn_list and def_map. Use the arguments directly
9088 instead of using struct re_info.
9089 (find_removable_extensions): Don't call add_removable_extension
9090 through note_stores, instead just call it with single_set
9092 (find_and_remove_re): Pass curr_cand->expr instead of
9093 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
9095 2012-01-26 Michael Matz <matz@suse.de>
9097 PR tree-optimization/46590
9098 * cfgexpand.c: Revert last change (r183305).
9099 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
9101 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
9102 checking for emptiness.
9104 2012-01-26 Jakub Jelinek <jakub@redhat.com>
9107 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
9108 non-addressable non-BLKmode base correctly.
9110 2012-01-26 Michael Matz <matz@suse.de>
9112 PR tree-optimization/48794
9113 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
9114 regions referenced from RESX/EH_DISPATCH.
9116 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9118 * config/s390/s390.h: Make BRANCH_COST an option.
9119 * config/s390/s390.opt: New option -mbranch-cost.
9121 2012-01-26 Richard Henderson <rth@redhat.com>
9123 Revert 2012-01-24 change:
9124 * trans-mem.c (requires_barrier): Do not instrument thread local
9125 variables and emit save/restore for them.
9127 2012-01-25 Jakub Jelinek <jakub@redhat.com>
9130 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
9133 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
9135 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
9138 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
9141 Rename __pgm to __flash.
9142 Rename __pgm1 to __flash1.
9143 Rename __pgm2 to __flash2.
9144 Rename __pgm3 to __flash3.
9145 Rename __pgm4 to __flash4.
9146 Rename __pgm5 to __flash5.
9147 Rename __pgmx to __memx.
9148 * doc/extend.texi (AVR Named Address Spaces)
9149 Rename address space names as indicated above.
9150 * config/avr/avr.c (avr_addrspace): Ditto.
9152 * config/avr/avr-protos.h
9153 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
9154 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
9155 * config/avr/predicates.md: Ditto.
9156 * config/avr/avr.c Ditto, and
9157 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
9158 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
9160 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
9161 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
9162 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
9163 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
9164 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
9165 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
9166 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
9167 * config/avr/avr.c: Ditto.
9168 * config/avr/avr.md: Ditto.
9170 2012-01-25 Jason Merrill <jason@redhat.com>
9173 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
9175 2012-01-25 Jakub Jelinek <jakub@redhat.com>
9177 PR tree-optimization/51987
9178 * tree-data-ref.c (get_references_in_stmt): Handle references in
9179 non-volatile GIMPLE_ASM.
9181 2012-01-25 Richard Guenther <rguenther@suse.de>
9183 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
9184 bases are dereferenced.
9186 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
9188 PR rtl-optimization/48374
9189 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
9191 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
9193 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
9194 compute_data_dependences_for_loop returns false.
9195 * tree-parloops.c (loop_parallel_p): Likewise.
9197 2012-01-25 Richard Guenther <rguenther@suse.de>
9199 * tree.h (get_pointer_alignment_1): Declare.
9200 * builtins.c (get_pointer_alignment_1): New function.
9201 (get_pointer_alignment): Use it.
9203 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9205 PR rtl-optimization/48308
9206 * combine.c (enum undo_kind): Add UNDO_LINKS.
9207 (struct undo): Add member l to other_contents and where.
9208 (do_SUBST_LINK): New.
9210 (try_combine): Handle LOG_LINKS for the dummy i1 case.
9211 (undo_all): Handle UNDO_LINKS.
9213 2012-01-25 Richard Henderson <rth@redhat.com>
9215 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
9218 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9220 * optabs.c (gen_atomic_test_and_set): Use each argument.
9222 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9224 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
9225 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
9226 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
9227 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
9228 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
9229 TARGET_PAIRED_SINGLE_FLOAT.
9231 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9233 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
9234 (in_struct, return_val): Remove MEM documentation.
9235 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
9236 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
9237 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
9239 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9240 * cfgexpand.c (add_alias_set_conflicts): Likewise.
9241 * expr.c (store_field): Likewise.
9242 * function.c (assign_stack_temp_for_type): Likewise.
9243 * ifcvt.c (noce_try_cmove_arith): Likewise.
9244 * reload1.c (reload): Likewise.
9245 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
9246 (alpha_set_memflags): Likewise.
9247 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
9249 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9251 * rtl.h (true_dependence, canon_true_dependence): Remove varies
9253 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
9254 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
9255 (true_dependence_1, true_dependence, canon_true_dependence): Remove
9257 * cselib.c (cselib_rtx_varies_p): Delete.
9258 (cselib_invalidate_mem): Update call to canon_true_dependence.
9259 * dse.c (record_store, check_mem_read_rtx): Likewise.
9260 (scan_reads_nospill): Likewise.
9261 * cse.c (check_dependence): Likewise.
9262 (cse_rtx_varies_p): Delete.
9263 * expr.c (safe_from_p): Update call to true_dependence.
9264 * ira.c (validate_equiv_mem_from_store): Likewise.
9265 (memref_referenced_p): Likewise.
9266 * postreload-gcse.c (find_mem_conflicts): Likewise.
9267 * sched-deps.c (sched_analyze_2): Likewise.
9268 * store-motion.c (load_kills_store): Likewise.
9269 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
9270 * gcse.c (mems_conflict_for_gcse_p): Likewise.
9271 (compute_transp): Update call to canon_true_dependence.
9273 2012-01-25 Richard Henderson <rth@redhat.com>
9275 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
9276 (maybe_emit_atomic_test_and_set): New.
9277 (expand_sync_lock_test_and_set): Use it.
9278 (expand_atomic_test_and_set): Likewise.
9279 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
9280 the implementation; clarify implementation defined details.
9281 * doc/md.texi (atomic_test_and_set): Document.
9283 2012-01-25 Richard Henderson <rth@redhat.com>
9285 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
9287 2012-01-25 Richard Henderson <rth@redhat.com>
9290 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
9291 to effect no-op split.
9293 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
9296 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
9297 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
9298 (BT_FN_VOID_PTR_INT_SIZE): New.
9299 (BT_FN_UINT_UINT_VAR): Remove.
9300 (BT_FN_UINT32_UINT32_VAR): New.
9301 (BT_FN_DOUBLE_VPTR): Remove.
9302 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
9304 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
9305 (_ITM_changeTransactionMode): Same.
9306 (_ITM_memmoveRtWt): Change return type to void.
9307 (_ITM_memcpyRtWt): Same.
9308 (_ITM_memsetW): Same.
9309 (_ITM_RaRD): Change types to double.
9314 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
9316 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
9317 Patrick Marlier <patrick.marlier@gmail.com>
9319 * trans-mem.c (requires_barrier): Do not instrument thread local
9320 variables and emit save/restore for them.
9322 2012-01-24 Jason Merrill <jason@redhat.com>
9325 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
9326 output static aliases.
9328 2012-01-24 Jakub Jelinek <jakub@redhat.com>
9331 * common.opt (-pie, -shared, pie, shared): Change from Common to
9333 * gcc.c (display_help): Display help for -pie and -shared.
9335 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
9338 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
9339 Remove note on size/offset limitation.
9340 (AVR Variable Attributes): Add example how to read data located
9341 with progmem. Refer to named address spaces.
9342 * doc/invoke.texi (AVR Options): Fix typo.
9344 2012-01-24 Richard Guenther <rguenther@suse.de>
9346 Forward-port to trunk
9347 2010-09-21 Jakub Jelinek <jakub@redhat.com>
9350 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
9351 op0 isn't sufficiently aligned and there is movmisalignM
9352 insn for mode, use it to load op0 into a temporary register.
9354 2012-01-24 Jakub Jelinek <jakub@redhat.com>
9357 * target.def (const_not_ok_for_debug_p): New hook.
9358 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
9360 * doc/tm.texi: Regenerated.
9361 * dwarf2out.c (const_ok_for_output_1): If
9362 targetm.const_not_ok_for_debug_p returns true, fail.
9363 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
9365 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
9367 2012-01-23 Kai Tietz <ktietz@redhat.com>
9370 * config/i386/predicates.md (symbolic_operand): Allow
9371 UNSPEC_PCREL as PIC expression for lea.
9372 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
9373 * config/i386/i386.c (ix86_delegitimize_address): Handle
9374 UNSPEC_PCREL for none-MEM, too.
9376 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
9378 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
9379 (ipa_tm_create_version_alias): Same.
9381 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
9384 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
9385 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
9387 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
9388 Patrick Marlier <patrick.marlier@gmail.com>
9389 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9392 * lto-wrapper.c (run_gcc): Pass the LTO section name to
9393 simple_object_start_read.
9395 2012-01-23 Richard Guenther <rguenther@suse.de>
9398 PR tree-optimization/51895
9399 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
9400 parameter decomposition into BLKmode components.
9402 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
9404 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
9405 fake variables for restrict-qualified pointers whose pointed-to type
9406 contains a placeholder.
9408 2012-01-23 Richard Guenther <rguenther@suse.de>
9410 PR tree-optimization/51949
9411 * ipa-split.c (execute_split_functions): Do not split malloc functions.
9413 2012-01-23 Jakub Jelinek <jakub@redhat.com>
9415 PR rtl-optimization/51933
9416 * ree.c (transform_ifelse): Return true right away if dstreg is
9417 already wider or equal to cand->mode.
9418 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
9419 (make_defs_and_copies_lists): Remove defs_list and copies_list
9420 arguments, add state argument, just truncate state->work_list
9421 instead of always allocating and freeing the vector. Assert that
9422 get_defs succeeds instead of returning 2. Changed return type to bool.
9423 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
9424 have ext_src_mode, see if it has been modified already with the
9425 right kind of extension and has been extended before from the
9426 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
9427 just return true. Remember the original mode in state->modified array.
9428 (combine_reaching_defs): Add state argument. Don't allocate and
9429 free here def_list, copied_list and vec vectors, instead just
9430 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
9431 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
9432 Add state variable, clear vectors in it, initialize state.modified
9433 if needed. Free all the vectors at the end and state.modified too.
9434 Don't skip a candidate if the extension expression has been modified.
9436 2012-01-22 Douglas B Rupp <rupp@gnat.com>
9439 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
9440 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
9441 (extra_options) interix.opt -> i386/interix.opt"
9442 (extra_objs):Add winnt-stubs.o
9443 * configure.ac: Add interix to target_os .comm on PE check.
9444 * configure: Regenerate.
9445 * config/interix3.h: Delete and move bits to..
9446 * config/interix.h: Delete and move bits to..
9447 * config/i386/i386-interix3.h: Delete and move bits to..
9448 * config/i386/i386-interix.h: ..here.
9449 (TARGET_CPU_DEFAULT): Remove redefinition.
9450 (TARGET_ASM_CONSTRUCTOR): Undefine.
9451 (SUBTARGET_SWITCHES): Define for ms-bitfields.
9452 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
9453 (PTRDIFF_TYPE): Define.
9454 (LONG_DOUBLE_TYPE_SIZE): Define.
9455 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
9456 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9457 (TARGET_SECTION_TYPE_FLAGS): Define.
9458 (ASM_DECLARE_FUNCTION_NAME): Define.
9459 (ASM_OUTPUT_EXTERNAL): Define.
9460 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
9461 (ASM_OUTPUT_ALIGNED_BSS): Define.
9462 (PCC_BITFIELD_TYPE_MATTERS): Define.
9463 (USE_CONST_SECTION): Define.
9464 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
9465 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9466 (SUPPORTS_ONE_ONLY): Remove.
9467 (I386_PE_STRIP_ENCODING): Define.
9468 * config/interix.opt: Delete and move bits to..
9469 * config/i386/interix.opt: ..here. New.
9470 (mpe-aligned-commons): Add.
9471 * config/i386/t-interix: Add copyright header.
9472 (winnt-stubs.o): Add rule.
9474 2012-01-22 Jason Merrill <jason@redhat.com>
9477 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
9478 for extra name aliases.
9480 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
9482 PR rtl-optimization/51924
9483 * ree.c (combine_set_extension): Improve debugging message.
9484 (combine_reaching_defs): Likewise.
9485 (get_defs): Rename confusingly named variable.
9486 (find_and_remove_re): Skip a candidate if the extension expression has
9489 2012-01-21 Robert Millan <rmh@gnu.org>
9490 Gerald Pfeifer <gerald@pfeifer.com>
9492 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
9493 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
9495 2012-01-20 Jakub Jelinek <jakub@redhat.com>
9497 PR tree-optimization/51914
9498 * tree-vect-stmts.c (vectorizable_conversion): For
9499 cvt_type && modifier == WIDEN, put temporary with cvt_type
9500 at the beginning of vec_dsts and set vec_dest to temporary
9503 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
9505 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
9507 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
9509 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
9510 * config/rs6000/rs6000.c: Likewise.
9512 2012-01-20 Jakub Jelinek <jakub@redhat.com>
9515 * config/arm/arm.c (arm_count_output_move_double_insns): Call
9516 output_move_double on a copy of operands array.
9518 2012-01-20 Cary Coutant <ccoutant@google.com>
9519 Dodji Seketeli <dodji@redhat.com>
9522 * dwarf2out.c (copy_declaration_context): Return ref to parent
9523 of declaration DIE, if necessary.
9524 (remove_child_or_replace_with_skeleton): Add new parameter; update
9525 caller. Place skeleton DIE under parent DIE of original declaration.
9526 Move call to copy_declaration_context to here ...
9527 (break_out_comdat_types): ... from here.
9529 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9531 PR rtl-optimization/51856
9532 * reload.c (find_reloads_subreg_address): Set the address_reloaded
9535 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9538 * config/arm/arm.c (arm_print_operand): Correct output of alignment
9539 hints for neon loads and stores.
9541 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
9545 * doc/extend.texi (Named Address Spaces): Split into subsections.
9546 (AVR Named Address Spaces): New subsection.
9547 (M32C Named Address Spaces): New subsection.
9548 (RL78 Named Address Spaces): New subsection.
9549 (SPU Named Address Spaces): New subsection.
9550 (Variable Attributes): New anchor "AVR Variable Attributes".
9551 (AVR Variable Attributes): Rewrite and avoid wording
9552 "address space" in this context.
9553 * doc/invoke.texi (AVR Options): Rewrite and add documentation
9554 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
9555 (AVR Built-in Macros): New subsubsection therein.
9556 * doc/md.texi (AVR constraints): Remove "C04", "R".
9558 2012-01-20 Richard Guenther <rguenther@suse.de>
9560 PR tree-optimization/51903
9561 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
9562 when removing stmts.
9564 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9567 * config/arm/arm.c (arm_load_pic_register): Use
9568 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
9569 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
9570 (arm_pic_static_addr): Likewise.
9571 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
9572 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
9573 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
9574 (pic_load_addr_unified): New.
9576 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
9579 * function.c (instantiate_virtual_regs_in_insn): Use
9580 delete_insn_and_edges when removing a wrong asm insn.
9582 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
9584 PR rtl-optimization/40761
9585 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
9586 Add new member loop_num.
9587 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
9588 (ira_build): Remove the parameter.
9590 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
9591 (ira.c): Do not build CFG loops for one region allocation. Remove
9592 argument from ira_build call.
9594 * ira-build.c (init_loop_tree_node): New function.
9595 (create_loop_tree_nodes): Use it. Separate the case when CFG
9596 loops are not built.
9597 (more_one_region_p): Check current_loops.
9598 (finish_loop_tree_nodes): Separate the case when CFG loops are not
9600 (add_loop_to_tree): Process loop equal to NULL too.
9601 (form_loop_tree): Separate the case when CFG loops are not built.
9602 Use explicitly number for the root.
9603 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
9605 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
9606 instead of loop->num.
9607 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
9608 (mark_all_loops_for_removal): Ditto.
9609 (remove_unnecessary_regions): Separate the case when CFG loops
9611 (ira_build): Remove the parameter. Use explicit number of regions
9612 when CFG loops are not built.
9614 * ira-color.c (print_loop_title): Separate the case for the root node.
9615 Use loop_num instead of loop->num.
9616 (move_spill_restore): Use loop_num instead of loop->num.
9618 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
9619 (change_loop): Ditto.
9620 (change_loop): Use loop_num instead of loop->num.
9622 * ira-lives.c (process_bb_node_lives): Ditto.
9624 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
9626 * ira-conflicts.c (print_allocno_conflicts): Ditto.
9628 2012-01-19 Jakub Jelinek <jakub@redhat.com>
9631 * tree-mudflap.c (mf_artificial): New function.
9632 (execute_mudflap_function_ops, execute_mudflap_function_decls,
9633 mx_register_decls, mudflap_enqueue_decl): Use it.
9636 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
9637 numbers in the insn pattern.
9639 2012-01-19 Michael Matz <matz@suse.de>
9641 PR tree-optimization/46590
9642 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
9643 use it in remembering which conflicts we already created.
9644 (add_scope_conflicts): Adjust call to above, (de)allocate helper
9647 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
9650 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
9651 (merge_and_complain): Same.
9653 2012-01-19 Jakub Jelinek <jakub@redhat.com>
9656 * config/initfini-array.h: Guard content of the header
9657 with #ifdef HAVE_INITFINI_ARRAY.
9658 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
9659 Add initfini-array.h to tm_file here.
9660 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
9661 * config.gcc: Don't add initfini-array.h to tm_file here.
9662 * configure: Regenerated.
9664 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
9666 PR rtl-optimization/51505
9667 * df-problems.c (df_kill_notes): New parameter live. Update comment.
9668 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
9669 (df_note_bb_compute): Update the call to df_kill_notes.
9671 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
9673 * trans-mem.c (requires_barrier): Remove call to is_global_var.
9675 2012-01-18 Richard Guenther <rguenther@suse.de>
9677 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
9678 of conversions to void *.
9680 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9681 Richard Sandiford <rdsandiford@googlemail.com>
9685 * optabs.h (simplify_expand_binop): Declare.
9686 * optabs.c (simplify_expand_binop): Make global.
9687 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
9688 endian targets if the source cannot be exactly covered by word
9691 2012-01-17 Jakub Jelinek <jakub@redhat.com>
9694 * hard-reg-set.h (struct hard_reg_set_container): New type.
9695 * target.h (struct hard_reg_set_container): Forward declare.
9696 * target.def (set_up_by_prologue): New target hook.
9697 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
9698 * doc/tm.texi: Regenerated.
9699 * function.c (thread_prologue_and_epilogue_insns): Change
9700 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
9701 Call targetm.set_up_by_prologue on it.
9702 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
9703 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
9705 2012-01-17 Nick Clifton <nickc@redhat.com>
9707 * config/rx/rx.c (rx_can_use_simple_return): New function.
9708 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
9709 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
9711 2012-01-17 Richard Guenther <rguenther@suse.de>
9714 * expr.c (expand_assignment): Take address-space information
9715 from the address operand of MEM_REF and TARGET_MEM_REF.
9716 (expand_expr_real_1): Likewise.
9718 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9720 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
9721 reload dump is requested.
9723 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
9726 * trans-mem.c (requires_barrier): Call may_be_aliased.
9728 2012-01-17 Jakub Jelinek <jakub@redhat.com>
9730 PR tree-optimization/51877
9731 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
9732 call arguments and fndecls compare equal, instead return false if they
9733 don't. Return true only if lhs1 and lhs2 are either both NULL, or
9734 both SSA_NAMEs that are valueized the same, or they satisfy
9737 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9739 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
9741 * configure: Regenerate.
9743 2012-01-16 Jan Hubicka <jh@suse.cz>
9747 * convert.c (convert_to_integer): Use fold_convert for
9748 converting an INTEGER_CST to integer type.
9750 2012-01-16 Jason Merrill <jason@redhat.com>
9753 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
9755 2012-01-16 Jakub Jelinek <jakub@redhat.com>
9758 * config/s390/s390.c (s390_chunkify_start): Don't skip
9759 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
9760 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
9761 If insn is followed by NOTE_INSN_VAR_LOCATION or
9762 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
9763 Don't use location of note insns.
9765 PR tree-optimization/51865
9766 * tree-inline.c (tree_function_versioning): Call remap_decl
9767 on DECL_RESULT whenever it has VOID_TYPE_P type.
9769 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
9771 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
9772 for calls to locally-binding MIPS16 functions if only the return
9773 type uses float regs.
9775 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
9776 Richard Sandiford <rdsandiford@googlemail.com>
9778 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
9779 (SYMBOL_32_HIGH): Likewise.
9780 (mips_output_tls_reloc_directive): Declare.
9781 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
9782 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
9783 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
9784 (mips_lo_relocs, mips_hi_relocs): Make extern.
9785 (mips16_stub_function): Move up file.
9786 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
9787 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
9788 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
9789 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
9790 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
9791 (mips_get_tp): Add MIPS16 support.
9792 (mips_legitimize_tls_address): Remove MIPS16 sorry().
9793 Generalize DTPREL and TPREL handling.
9794 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
9795 Add MIPS16 TLS support.
9796 (mips_output_tls_reloc_directive): New function.
9797 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
9798 * config/mips/predicates.md (symbolic_operand_with_high)
9799 (tls_reloc_operand): New predicates.
9800 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
9801 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
9802 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
9803 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
9804 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
9805 (*tls_get_tp_mips16_call_<mode>): Likewise.
9807 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
9809 PR rtl-optimization/51821
9810 * recog.c (peep2_find_free_register): Determine clobbered registers
9813 2012-01-14 Denis Chertykov <chertykov@gmail.com>
9816 * config/avr/avr-protos.h: Revert change of 2012-01-09.
9817 * config/avr/avr.c: Likewise.
9818 * config/avr/avr.h: Likewise.
9820 2012-01-13 Ian Lance Taylor <iant@google.com>
9823 * tree.h (TYPE_QUALS): Add cast to int.
9824 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
9826 2012-01-13 Ian Lance Taylor <iant@google.com>
9828 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
9829 comparing param_index to VEC_length result.
9831 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
9833 * c-decl.c: Do not include tree-mudflap.h
9834 * tree-optimize.c: Likewise.
9835 * Makefile.in: Update dependencies.
9837 2012-01-13 Richard Guenther <rguenther@suse.de>
9840 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
9841 variable-sized result always use RSO.
9843 2012-01-12 DJ Delorie <dj@redhat.com>
9845 * cfgexpand.c (convert_debug_memory_address): Allow any valid
9846 pointer type, not just the default pointer type.
9848 2012-01-09 Richard Henderson <rth@redhat.com>
9849 Denis Chertykov <chertykov@gmail.com>
9852 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
9853 * config/avr/avr.c (avr_can_eliminate): Simplify.
9854 (avr_initial_elimination_offset): Likewise.
9855 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
9856 (expand_epilogue): Likewise.
9857 (avr_legitimize_address): Gut.
9858 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
9859 (avr_hard_regno_nregs): New.
9860 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
9861 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
9862 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
9863 add soft frame pointer.
9864 (CALL_USED_REGISTERS): Likewise.
9865 (REG_CLASS_CONTENTS): Likewise.
9866 (REGISTER_NAMES): Likewise.
9867 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
9868 (HARD_FRAME_POINTER_REGNUM): New.
9869 (FRAME_POINTER_REGNUM): Use soft frame pointer.
9870 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
9871 remove the HARD_FRAME_POINTER self-elimination.
9873 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
9876 * config/avr/avr.c (avr_encode_section_info): Test for absence of
9877 DECL_EXTERNAL when checking for initializers of progmem variables.
9879 2012-01-12 Ira Rosen <irar@il.ibm.com>
9881 PR tree-optimization/51799
9882 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
9883 that the last operation is a type demotion.
9885 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
9887 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
9888 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
9890 2012-01-11 Jakub Jelinek <jakub@redhat.com>
9893 * combine.c (distribute_notes): If i3 is a noreturn call,
9894 allow old_size to be equal to args_size and make sure the
9895 noreturn call gets REG_ARGS_SIZE note.
9896 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
9897 on noreturn calls even when the delta is 0.
9899 2012-01-11 Nathan Sidwell <nathan@acm.org>
9901 * gcov.c (STRING_SIZE): Remove.
9902 (generate_results): Erase annotations for source files with no
9903 coverage information.
9905 (output_lines): Use it.
9907 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
9909 * gimple.h (gimplify_body): Remove first argument.
9910 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
9911 pointer set here, instead just pass DATA to walk_tree.
9912 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
9913 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
9914 (unvisit_body): Likewise, but with unmark_visited.
9915 (gimplify_body): Remove BODY_P argument and adjust.
9916 (gimplify_function_tree): Adjust call to gimplify_body.
9917 * omp-low.c (finalize_task_copyfn): Likewise.
9919 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
9921 * tree.h (build_function_decl_skip_args): Add boolean parameter.
9922 (build_function_type_skip_args): Delete.
9923 * tree.c (build_function_type_skip_args): Make static and add
9924 SKIP_RETURN parameter. Fix thinko in the handling of variants.
9925 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
9926 pass it to build_function_type_skip_args.
9927 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
9928 (tree_function_versioning): Likewise.
9929 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
9930 build_function_decl_skip_args.
9931 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
9932 and pass it to build_function_decl_skip_args/tree_function_versioning.
9933 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
9934 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9935 * trans-mem.c (ipa_tm_create_version): Likewise.
9936 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
9937 * tree-inline.c (declare_return_variable): Remove always-true test.
9938 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
9939 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
9940 * ipa-split.c (split_function): Skip the return value for the split
9941 part if it doesn't return.
9943 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9945 PR tree-optimization/49642
9946 * ipa-split.c (forbidden_dominators): New variable.
9947 (check_forbidden_calls): New function.
9948 (dominated_by_forbidden): Likewise.
9949 (consider_split): Check for forbidden dominators.
9950 (execute_split_functions): Initialize and free forbidden
9951 dominators info; call check_forbidden_calls.
9953 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9955 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
9957 2012-01-11 Nick Clifton <nickc@redhat.com>
9959 * config/rx/rx.md (return): Define pattern.
9961 2012-01-11 Richard Guenther <rguenther@suse.de>
9963 * doc/extend.texi (malloc attribute): Adjust according to
9966 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
9967 Patrick Marlier <patrick.marlier@gmail.com>
9970 * trans-mem.c (get_cg_data): Traverse aliases if requested.
9971 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
9972 (ipa_tm_note_irrevocable): Same.
9973 (ipa_tm_scan_irr_block): Same.
9974 (ipa_tm_decrement_clone_counts): Same.
9975 (ipa_tm_scan_irr_function): Same.
9976 (ipa_tm_create_version_alias): Same.
9977 (ipa_tm_create_version): Same.
9978 (ipa_tm_transform_calls_redirect): Same.
9979 (ipa_tm_transform_calls): Same.
9980 (ipa_tm_transform_transaction): Same.
9981 (ipa_tm_execute): Same.
9983 2012-01-10 Richard Guenther <rguenther@suse.de>
9986 * opts.c (common_handle_option): Handle -Werror.
9988 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
9990 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
9993 2012-01-10 Jason Merrill <jason@redhat.com>
9995 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
9998 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10000 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
10001 supports R_386_TLS_GD_PLT reloc.
10002 (gcc_cv_as_ix86_tlsldmplt): Check if linker
10003 supports R_386_TLS_LDM_PLT reloc.
10004 * configure: Regenerate.
10005 * config.in: Regenerate.
10007 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
10010 Extend __pgmx semantics to linearize memory.
10011 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
10012 determine if code comes inline or from libgcc.
10013 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
10014 (movmem_qi, movmem_qi): Set constraint #2 to "n".
10015 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
10016 (movmemx_qi, movmemx_hi): New insns.
10017 (xload_<mode>_libgcc): Rewrite to new insn condition.
10018 (xload_<mode>): Remove insns.
10019 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
10020 cases that don't satisfy avr_xload_libgcc_p().
10021 (avr_addr_space_convert): Allow converting in any direction.
10022 (avr_addr_space_subset_p): Return always true.
10023 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
10024 (avr_emit_movmemhi): Ditto.
10025 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
10026 (avr_out_movmem): Ditto.
10027 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
10028 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
10029 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
10030 (avr_encode_section_info): Encode 'progmem' in symbol flags.
10031 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
10033 2012-01-10 Richard Guenther <rguenther@suse.de>
10035 PR tree-optimization/50913
10036 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
10037 Require data-refs to be representable by Graphite with respect
10040 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
10042 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
10043 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
10045 2012-01-10 Tom de Vries <tom@codesourcery.com>
10047 PR rtl-optimization/51271
10048 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
10049 handling annulled branch.
10051 2012-01-10 Richard Henderson <rth@redhat.com>
10053 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
10054 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
10055 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
10056 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
10057 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
10058 arm_expand_vec_perm_const): New.
10059 * config/arm/arm-protos.h: Update.
10060 * config/arm/neon.md (UNSPEC_VCONCAT): New.
10061 (*neon_vswp<VDQX>): New.
10062 (neon_vcombine<VDX>): Use neon_split_vcombine.
10063 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
10064 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
10065 (vec_perm<VE>): New.
10067 2012-01-10 Richard Henderson <rth@redhat.com>
10069 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
10070 use it if reload_completed.
10071 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
10072 arm_output_asm_insn, arm_process_output_memory_barrier,
10073 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
10074 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
10075 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
10076 arm_process_output_sync_insn, arm_output_sync_insn,
10077 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
10078 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
10079 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
10080 (emit_unlikely_jump): New.
10081 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
10082 (arm_split_atomic_op): New.
10083 * config/arm/arm-protos.h: Update.
10084 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
10085 (struct arm_sync_generator): Remove.
10086 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
10087 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
10088 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
10089 (VUNSPEC_LL, VUNSPEC_SC): New.
10090 (sync_result, sync_memory, sync_required_value, sync_new_value,
10091 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
10092 (attr length): Don't use arm_sync_loop_insns.
10093 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
10094 (movsfcc, movdfcc): Likewise.
10095 * config/arm/constraints.md (Ua): New.
10096 * config/arm/prediates.md (mem_noofs_operand): New.
10097 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
10098 (sync_clobber, sync_t2_reqd): Remove.
10099 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
10100 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
10101 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
10102 (arm_sync_compare_and_swap<SIDI>): Remove.
10103 (arm_sync_compare_and_swap<NARROW>): Remove.
10104 (arm_sync_lock_test_and_set<SIDI>): Remove.
10105 (arm_sync_lock_test_and_set<NARROW>): Remove.
10106 (arm_sync_new_<syncop><SIDI>): Remove.
10107 (arm_sync_new_<syncop><NARROW>): Remove.
10108 (arm_sync_new_nand<SIDI>): Remove.
10109 (arm_sync_new_nand<NARROW>): Remove.
10110 (arm_sync_old_<syncop><SIDI>): Remove.
10111 (arm_sync_old_<syncop><NARROW>): Remove.
10112 (arm_sync_old_nand<SIDI>): Remove.
10113 (arm_sync_old_nand<NARROW>): Remove.
10114 (*memory_barrier): Merge arm_output_memory_barrier.
10115 (atomic_compare_and_swap<QHSD>): New.
10116 (atomic_compare_and_swap<NARROW>_1): New.
10117 (atomic_compare_and_swap<SIDI>_1): New.
10118 (atomic_exchange<QHSD>): New.
10119 (cas_cmp_operand, cas_cmp_str): New.
10120 (atomic_op_operand, atomic_op_str): New.
10121 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
10122 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
10123 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
10124 (arm_load_exclusive<NARROW>): New.
10125 (arm_load_exclusivesi, arm_load_exclusivedi): New.
10126 (arm_store_exclusive<QHSD>): New.
10128 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10130 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
10131 reload patterns if -mvsx-scalar-memory.
10133 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
10134 generated, even -mno-vsx-scalar-double was used.
10135 (vsx_xscvdpsp_scalar): Likewise.
10136 (vsx_xscvspdp_scalar2): Likewise.
10138 2012-01-09 Tom de Vries <tom@codesourcery.com>
10139 Andrew Pinski <apinski@cavium.com>
10142 * reorg.c (fill_slots_from_thread): Don't speculate
10143 frame-related insns.
10145 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10147 * sched-int.h (bb_note): Move to...
10148 * basic-block.h: ...here.
10149 * haifa-sched.c (bb_note): Move to...
10150 * cfgrtl.c: ...here.
10151 * function.c (next_block_for_reg): New function.
10152 (move_insn_for_shrink_wrap): Likewise.
10153 (prepare_shrink_wrap): Rewrite to use the above.
10155 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
10157 * gimple.c (is_gimple_non_addressable): Remove.
10158 * gimple.h: Remove is_gimple_non_addressable.
10159 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
10160 is_gimple_non_addressable.
10161 * trans-mem.c (expand_assign_tm): Same.
10163 2012-01-09 Richard Guenther <rguenther@suse.de>
10165 PR tree-optimization/51775
10166 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
10167 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
10169 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10171 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
10173 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
10175 2012-01-09 Richard Guenther <rguenther@suse.de>
10177 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
10179 2012-01-08 Jan Hubicka <jh@suse.cz>
10181 PR tree-optimize/51680
10182 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
10183 on when known_vals needs to be computed; cleanup.
10185 2012-01-08 Jan Hubicka <jh@suse.cz>
10187 PR tree-optimize/51694
10188 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
10190 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
10192 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
10193 for -std=c++98 and -std=c++11 too.
10195 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
10197 * cfgloop.c (cancel_loop): Add free() of bbs array.
10199 2012-01-07 Jan Hubicka <jh@suse.cz>
10201 PR tree-optimization/51600
10202 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
10203 that benefits small functions.
10205 2012-01-07 Jan Hubicka <jh@suse.cz>
10207 * ipa-inline.c (want_inline_small_function_p): Fix formating.
10209 2012-01-07 Jan Hubicka <jh@suse.cz>
10211 PR tree-optimization/51680
10212 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
10213 whose inlining reduce unit size.
10215 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
10218 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
10219 Add canonical node to containing_mem chain after the non-canonical
10220 one, even if there weren't any locs to propagate.
10221 (remove_useless_values): Keep only canonical values.
10222 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
10223 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
10224 canonicalize mem_chain elements that are not discarded.
10226 2012-01-06 Jakub Jelinek <jakub@redhat.com>
10229 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
10230 before emitting functions.
10232 PR gcov-profile/50127
10233 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
10234 clear_aux_for_blocks.
10236 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
10239 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
10241 2012-01-06 Arnaud Charlet <charlet@adacore.com>
10243 * c-decl.c (ext_block): Moved up.
10244 (collect_all_refs, for_each_global_decl): Take ext_block into account.
10246 2012-01-06 Han Shen <shenhan@google.com>
10248 Translate built-in include paths for sysroot.
10249 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
10250 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
10252 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
10253 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
10255 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
10256 control whether sysroot should be prepended to gxx include dir.
10258 * configure: Regenerate.
10260 2012-01-06 Torvald Riegel <triegel@redhat.com>
10262 PR rtl-optimization/51771
10263 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
10264 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
10266 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
10268 PR tree-optimization/51315
10269 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
10270 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
10272 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
10275 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
10276 for shrp pattern. Correctly handle and fixup shift variable.
10277 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
10279 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10282 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
10283 note when !ACCUMULATE_OUTGOING_ARGS.
10285 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
10287 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
10289 (extract_range_from_unary_expr_1): Avoid useless computations.
10291 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10293 PR rtl-optimization/51767
10294 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
10295 of jump_block and add an extra edge for degenerated asm gotos.
10297 PR middle-end/51768
10298 * stmt.c (check_unique_operand_names): Don't ICE during error
10299 reporting if i is from labels chain.
10301 PR middle-end/44777
10302 * profile.c (branch_prob): Split bbs that have exit edge
10303 and need a fake entry edge too.
10305 2012-01-05 Jan Hubicka <jh@suse.cz>
10307 PR middle-end/49710
10308 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
10311 2012-01-05 Richard Guenther <rguenther@suse.de>
10314 * tree-streamer-out.c (write_ts_optimization): New function.
10315 (streamer_write_tree_body): Call it.
10316 * tree-streamer-in.c (lto_input_ts_optimization): New function.
10317 (streamer_read_tree_body): Call it.
10318 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
10320 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10322 PR middle-end/51761
10323 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
10324 * gimplify.c (gimplify_cleanup_point_expr): Save and set
10325 in_cleanup_point_expr before gimplify_stmt call and restore it
10327 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
10328 in_cleanup_point_expr is false.
10330 2012-01-05 Richard Guenther <rguenther@suse.de>
10332 PR middle-end/51764
10333 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
10335 * toplev.c (process_options): Reject combining mudflap and LTO.
10336 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
10338 2012-01-05 Richard Guenther <rguenther@suse.de>
10340 PR tree-optimization/51760
10341 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
10343 (bit_value_unop): Handle UNDEFINED operands.
10344 (bit_value_binop): Likewise.
10346 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
10348 * config/avr/avr.c (avr_replace_prefix): Remove.
10349 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
10350 (avr_asm_function_rodata_section): Ditto.
10351 (avr_asm_select_section): Ditto.
10353 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10355 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
10358 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10361 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
10362 calls that have any non-fake successor edges.
10365 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
10367 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
10369 PR tree-optimization/51624
10370 * tree-sra.c (build_ref_for_model): When replicating a chain of
10371 COMPONENT_REFs, stop as soon as the offset would become negative.
10373 2012-01-04 Jakub Jelinek <jakub@redhat.com>
10376 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
10377 in .debug_loc on the floor.
10379 2012-01-04 Andrew Pinski <apinski@cavium.com>
10381 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
10383 2012-01-04 Andrew Pinski <apinski@cavium.com>
10384 Adam Nemet <anemet@caviumnetworks.com>
10386 * config/mips/mips.md (size): Add SI and DI.
10387 (SIZE): New mode attribute.
10388 (U): New code attribute.
10389 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
10390 (mips_lbux_<mode>): Delete.
10391 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
10392 (mips_lhx): Use gen_mips_lhx_extsi.
10393 (mips_lhx_<mode>): Delete.
10394 (mips_lwx): Delete.
10395 (mips_l<size>x): New expand.
10396 (mips_lwx_<mode>): Delete.
10397 (mips_l<GPR:size>x_<P:mode>): New pattern.
10398 (*mips_lw<u>x_<P:mode>_ext): Likewise.
10399 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
10400 * config/mips/mips.c (mips_lx_address_p): New function.
10401 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
10402 (dsp64): New availability predicate.
10403 (mips_builtins): Add an entry for __builtin_mips_ldx.
10404 * config/mips/mips.h (ISA_HAS_LBX): New define.
10405 (ISA_HAS_LBUX): Likewise.
10406 (ISA_HAS_LHX): Likewise.
10407 (ISA_HAS_LHUX): Likewise.
10408 (ISA_HAS_LWX): Likewise.
10409 (ISA_HAS_LWUX): Likewise.
10410 (ISA_HAS_LDX): Likewise.
10411 * doc/extend.texi (__builtin_mips_ldx): Document.
10413 2012-01-04 Tristan Gingold <gingold@adacore.com>
10415 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
10416 when long pointers are used.
10417 * config.build (*-*-*vms*): Handle all OpenVMS targets.
10418 (alpha64-dec-*vms*, alpha*-dec-*vms*)
10419 (ia64-hp-*vms*): Remove.
10420 * config/vms/xm-vms64.h: Delete.
10422 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10424 PR middle-end/51472
10425 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
10427 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10429 * opts.c (finish_options): Remove duplicate sorry.
10431 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10433 PR middle-end/51696
10434 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
10437 2012-01-04 Richard Guenther <rguenther@suse.de>
10439 PR middle-end/51750
10440 * tree.c (size_low_cst): New function.
10441 * tree.h (size_low_cst): Declare.
10442 * fold-const.c (fold_comparison): Use it to extract the low
10443 part of the POINTER_PLUS_EXPR offset.
10445 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
10447 Fix clearing ZERO_REG
10448 * config/avr/avr.md (cc): Add alternative "ldi".
10449 (movqi_insn): Use it in cc attribute.
10450 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
10451 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
10452 (output_reload_insisf): Use ZERO_REG to pre-clear register.
10454 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10456 * configure: Regenerate.
10458 2012-01-04 Richard Guenther <rguenther@suse.de>
10460 PR tree-optimization/49651
10461 * tree-ssa-structalias.c (type_can_have_subvars): New function.
10462 (var_can_have_subvars): Use it.
10463 (get_constraint_for_1): Only consider subfields if there can be any.
10465 2012-01-03 Jakub Jelinek <jakub@redhat.com>
10468 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
10469 to its new canonical_cselib_val and the cselib_val was in
10470 first_containing_mem chain, but the canonical_cselib_val was not,
10471 add the latter into the chain.
10472 (cselib_invalidate_mem): Compare canonical_cselib_val of
10473 addr_list chain elt with v.
10476 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
10477 dwarf2out_undef): Allocate e.info using ggc_strdup instead
10479 (output_macinfo_op): Don't ggc_strdup fd->filename.
10480 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
10481 then ggc_strdup it. Don't free inc->info or cur->info.
10482 (output_macinfo): Don't free ref->info or file->info.
10484 2012-01-03 Ira Rosen <irar@il.ibm.com>
10486 PR tree-optimization/51269
10487 * tree-vect-loop-manip.c (set_prologue_iterations): Make
10488 first_niters a pointer.
10489 (slpeel_tree_peel_loop_to_edge): Likewise.
10490 (vect_do_peeling_for_loop_bound): Update call to
10491 slpeel_tree_peel_loop_to_edge.
10492 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
10493 here. Remove it from the parameters list.
10494 (vect_do_peeling_for_alignment): Update calls and compute
10495 wide_prolog_niters.
10497 2012-01-03 Richard Guenther <rguenther@suse.de>
10499 PR tree-optimization/51070
10500 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
10501 Properly handle calls.
10503 2012-01-03 Richard Guenther <rguenther@suse.de>
10505 PR tree-optimization/51692
10506 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
10507 the LHS of allocation stmts.
10509 2012-01-03 Olivier Hainque <hainque@adacore.com>
10511 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
10513 2012-01-03 Olivier Hainque <hainque@adacore.com>
10515 * collect2.c (main): In AIX specific computations for vector
10516 insertions, use CONST_CAST2 to cast from char ** to const char **.
10518 2012-01-03 Richard Guenther <rguenther@suse.de>
10521 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
10522 the context of a limbo DIE when it does not already exist.
10524 2012-01-03 Jakub Jelinek <jakub@redhat.com>
10526 PR tree-optimization/51719
10527 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
10528 but direct call is, clear direct call's lhs and don't add fallthrough
10529 edge from dcall_bb to join_bb and PHIs.
10531 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10533 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
10534 the instructions emitted by the pattern.
10535 ("*TDC_insn_<mode>"): Add comment.
10537 2012-01-03 Richard Guenther <rguenther@suse.de>
10539 PR middle-end/51730
10540 * fold-const.c (fold_comparison): Properly canonicalize
10541 tree offset and HOST_WIDE_INT bit position.
10543 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
10545 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
10546 operands for extzv pattern.
10548 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10551 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
10554 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
10556 * doc/invoke.texi (-flto and related options): Copy-edit.
10558 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10560 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
10562 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10564 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
10567 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10569 * expr.h (move_by_pieces_ninsns): Declare.
10570 * expr.c (move_by_pieces_ninsns): Make external.
10571 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
10572 (mips_store_by_pieces_p): Likewise.
10573 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
10574 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
10575 * config/mips/mips.c (mips_move_by_pieces_p): New function.
10576 (mips_store_by_pieces_p): Likewise.
10578 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10580 * passes.c (register_one_dump_file): Free full_name.
10582 * reload1.c (reload): Don't allocate reg_max_ref_width here.
10583 (calculate_elim_costs_all_insns): Free offsets_at and
10584 offsets_known_at at the end and clear the pointers.
10586 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10588 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
10589 this option introduced in r180739.
10591 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10594 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
10595 (tmake_file target=avr): Add avr/t-multilib.
10597 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
10598 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
10599 * config/avr/genmultilib.awk: New file.
10600 * config/avr/t-multilib: New auto-generated file.
10601 * config/avr/multilib.h: New auto-generated file.
10602 * config/avr/t-avr (AVR_MCUS): New variable.
10603 (genopt.sh): Use it.
10604 (s-mlib): Depend on t-multilib.
10605 (t-multilib, multilib.h): New dependencies.
10606 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
10607 (MULTILIB_OPTIONS): Remove.
10608 (MULTILIB_MATCHES): Remove.
10609 (MULTILIB_DIRNAMES): Remove.
10610 (MULTILIB_EXCEPTIONS): Remove:
10611 * config/avr/genopt.sh: Don't use hard coded file name;
10612 pass AVR_MCUS from t-avr instead.
10614 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10616 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
10618 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10620 Implement light-weight DImode support.
10621 * config/avr/avr-dimode.md: New file.
10622 * config/avr/avr.md: Include it.
10623 (adjust_len): Add plus64, compare64.
10624 (HIDI): Remove code iterator.
10625 (code_stdname): New code attribute.
10626 (rotx, rotsmode): Remove DI.
10627 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
10629 * config/avr/avr-protos.h (avr_have_dimode): New.
10630 (avr_out_plus64, avr_out_compare64): New.
10631 * config/avr/avr.c (avr_out_compare): Handle DImode.
10632 (avr_have_dimode): New variable definition and initialization.
10633 (avr_out_compare64, avr_out_plus64): New functions.
10634 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
10635 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
10636 (avr_compare_pattern): Skip DImode comparisons.
10638 2012-01-02 Revital Eres <revital.eres@linaro.org>
10640 * ddg.c (def_has_ccmode_p): New function.
10641 (add_cross_iteration_register_deps,
10642 create_ddg_dep_from_intra_loop_link): Call it.
10644 2012-01-02 Richard Guenther <rguenther@suse.de>
10647 * invoke.texi (fassociative-math): Remove spurious paranthesis.
10649 2012-01-01 Jakub Jelinek <jakub@redhat.com>
10651 * gcc.c (process_command): Update copyright notice dates.
10652 * gcov.c (print_version): Likewise.
10653 * gcov-dump.c (print_version): Likewise.
10654 * mips-tfile.c (main): Likewise.
10655 * mips-tdump.c (main): Likewise.
10657 2012-01-01 Ira Rosen <irar@il.ibm.com>
10659 PR tree-optimization/51704
10660 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
10661 a use is inside the basic block or loop before accessing its vect info.
10663 2012-01-01 Jan Hubicka <jhjh@suse.cz>
10665 PR rtl-optimization/51069
10666 * cfgloopmanip.c (remove_path): Removing path making irreducible
10667 region unconditional makes BB part of the region.
10669 2012-01-01 Jakub Jelinek <jakub@redhat.com>
10671 PR tree-optimization/51683
10672 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
10673 calls with side-effects.
10674 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10676 Copyright (C) 2012 Free Software Foundation, Inc.
10678 Copying and distribution of this file, with or without modification,
10679 are permitted in any medium without royalty provided the copyright
10680 notice and this notice are preserved.