1 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
3 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
5 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7 * common.opt (Wtype-limits): Use EnabledBy.
9 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
11 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
12 (pushtf splitter): Ditto.
14 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
15 (<code>tf2): Enable for TARGET_SSE.
16 (*absnegtf2_sse): Ditto.
17 (copysign<mode>3): Enable TFmode for TARGET_SSE.
18 (copysign<mode>3_const): Ditto.
19 (copysign<mode>3_var): Ditto.
20 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
21 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
23 * config/i386/i386.c (struct builtin_description bdesc_args)
24 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
25 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
26 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
27 Emit a normal call if SSE isn't available.
29 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
31 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
32 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
33 (<code><mode>3): Ditto.
34 (*andnot<mode>3): Ditto.
36 (*<code><mode>3): Ditto.
39 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
41 * optc-gen.awk: Error instead of warning for conflicting help.
43 2012-05-12 Jason Merrill <jason@redhat.com>
46 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
49 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
51 * function.c (requires_stack_frame_p): If the function can throw
52 non-call exceptions, return true if the insn can throw internally.
54 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
56 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
58 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
60 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
61 ORDERED and UNORDERED conditions.
63 2012-05-11 Richard Guenther <rguenther@suse.de>
65 * tree-flow.h (referenced_var_check_and_insert): Remove.
66 (find_new_referenced_vars): Likewise.
67 * tree-dfa.c (referenced_var_check_and_insert): Make static.
68 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
69 * tree-inline.c (copy_bb): Use find_referenced_vars_in
70 instead of find_new_referenced_vars.
71 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
73 2012-05-11 Richard Guenther <rguenther@suse.de>
75 * tree-pass.h (pass_rest_of_compilation,
76 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
78 * passes.c (pass_all_optimizations, pass_postreload,
79 pass_all_early_optimizations): Make static.
80 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
81 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
82 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
83 (delete_tree_ssa): Do not call fini_phinodes.
84 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
86 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
89 * doc/options.texi (EnabledBy): Document
90 * opts.c: Include opts.h and options.h before tm.h.
91 (finish_options): Do not handle some sub-options here...
92 (common_handle_option): ... instead call common_handle_option_auto here.
93 * optc-gen.awk: Handle EnabledBy.
94 * opth-gen.awk: Declare common_handle_option_auto.
95 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
96 (Wmaybe-uninitialized): Likewise.
97 (Wunused-but-set-variable): Likewise.
98 (Wunused-function): Likewise.
99 (Wunused-label): Likewise.
100 (Wunused-value): Likewise.
101 (Wunused-variable): Likewise.
102 * opt-read.awk: Create opt_numbers array.
104 2012-05-11 Richard Guenther <rguenther@suse.de>
106 PR tree-optimization/53295
107 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
109 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
110 strides when analyzing data-references in a loop context.
111 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
112 non-constant strides for now.
113 (vect_enhance_data_refs_alignment): Ignore data references
114 that are strided loads.
115 (vect_analyze_data_ref_access): Handle non-constant strides.
116 (vect_check_strided_load): Verify the data-reference is a load.
117 (vect_analyze_data_refs): Restructure to make strided load
118 support not dependent on gather support.
119 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
120 when doing strided or gather loads.
121 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
122 integer_zerop to compare stride with zero.
124 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
126 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
128 2012-05-11 Jan Hubicka <jh@suse.cz>
131 * varpool.c (varpool_assemble_decl): Also output constat pool entries
132 that output_constant_pool missed.
134 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
136 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
139 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
142 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
144 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
146 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
147 optimization for TARGET_AVX.
148 (*movti_internal_sse): Ditto.
149 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
150 (*movdi_internal): Ditto.
151 (*movsi_internal): Ditto.
152 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
153 (*movdf_internal_rex64): Ditto.
154 (*movfd_internal): Ditto.
155 (*movsf_internal): Ditto.
156 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
158 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
160 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
161 reference as size attribute.
163 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
164 Tristan Gingold <gingold@adacore.com>
166 * doc/md.texi (Standard Names): Document probe_stack_address.
167 * explow.c (emit_stack_probe): Handle probe_stack_address.
168 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
169 (UNSPECV_PROBE_STACK_RANGE): Likewise.
170 (probe_stack_address): New insn.
171 (probe_stack_range): Likewise.
172 * config/ia64/ia64.c: Include common/common-target.h.
173 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
175 (ia64_emit_probe_stack_range): New function.
176 (output_probe_stack_range): Likewise.
177 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
178 builtin stack checking is enabled.
179 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
180 and UNSPECV_PROBE_STACK_ADDRESS.
181 (unknown_for_bundling_p): New predicate.
182 (group_barrier_needed): Use important_for_bundling_p.
183 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
184 (issue_nops_and_insn): Likewise.
185 (bundling): Likewise.
186 (final_emit_insn_group_barriers): Likewise.
187 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
188 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
189 (STACK_CHECK_PROTECT): Likewise.
190 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
192 2012-05-10 Jan Hubicka <jh@suse.cz>
194 * ipa-inline.c (update_all_callee_keys): Remove.
195 (inline_small_functions): Simplify priority updating.
197 2012-05-10 Jan Hubicka <jh@suse.cz>
199 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
201 2012-05-10 Jan Hubicka <jh@suse.cz>
203 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
204 (symtab_remove_unreachable_nodes): ... this one.
205 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
206 * cgraphunit.c (ipa_passes): Update.
207 * cgraphclones.c (cgraph_materialize_all_clones): Update.
208 * cgraph.c (cgraph_release_function_body): Only turn initial
209 into error mark when initial was previously set.
210 * ipa-inline.c (ipa_inline): Update.
211 * ipa.c: Include ipa-inline.h
212 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
213 (enqueue_node): New function.
214 (process_references): Update.
215 (symtab_remove_unreachable_nodes): Cleanup.
216 * passes.c (execute_todo, execute_one_pass): Update.
218 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
220 PR rtl-optimization/53125
221 * ira.c (ira): Call find_moveable_pseudos and
222 move_unallocated_pseudos if only ira_conflicts_p is true.
224 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
226 * config/i386/i386.md (*movoi_internal_avx): Handle
227 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
228 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
229 (*movti_internal_sse): Ditto.
230 (*movtf_internal): Ditto.
231 * config/i386/sse.md (ssePSmode): New mode attribute.
232 (*move<mode>_internal): Use ssePSmode.
233 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
234 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
235 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
236 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
238 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
240 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
241 DECL_ORIGINAL_TYPE if it is present.
243 2012-05-10 Nick Clifton <nickc@redhat.com>
246 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
247 a "0" constraint to being a (match_dup 0).
249 2012-05-10 Richard Guenther <rguenther@suse.de>
251 * stor-layout.c (byte_from_pos): Amend comment.
253 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
256 Document requirement to call in constructors.
258 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
260 2012-05-10 Richard Guenther <rguenther@suse.de>
262 * tree.h (TYPE_IS_SIZETYPE): Remove.
263 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
264 (extract_muldiv_1): Likewise.
265 * gimple.c (gtc_visit): Likewise.
266 (gimple_types_compatible_p): Likewise.
267 (iterative_hash_canonical_type): Likewise.
268 (gimple_canonical_types_compatible_p): Likewise.
269 * gimplify.c (gimplify_one_sizepos): Likewise.
270 * print-tree.c (print_node): Likewise.
271 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
273 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
276 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
277 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
278 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
279 instead of xop_mulv2div2di3_low.
280 (xop_p<macs>dql): Fix vec_select selector.
281 (xop_p<macs>dqh): Ditto.
282 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
283 (xop_mulv2div2di3_high): Ditto.
285 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
288 * diagnostic.h (diagnostic_context): Add last_location.
289 * diagnostic.c (diagnostic_initialize): Initialize it.
290 (diagnostic_show_locus): Use it.
292 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
294 * doc/extend.texi (Function Attributes): Point xref to section
297 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
299 * config/i386/i386.c (*movdf_internal_rex64): Remove
300 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
301 Calculate "mode" attribute according to
302 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
303 (*movdf_internal): Ditto.
305 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
308 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
309 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
310 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
311 or when optimizing for size.
312 * config/i386/sse.md (*mov<mode>_internal): Remove
313 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
314 Calculate "mode" attribute according to optimize_function_for_size_p
315 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
316 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
317 depending on the mode of the instruction. Calculate "mode" attribute
318 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
319 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
320 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
322 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
325 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
326 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
327 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
328 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
329 (expand_prologue): Move initialization of cfun->machine->is_naked,
330 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
331 (avr_set_current_function): ...this new static function.
332 (TARGET_SET_CURRENT_FUNCTION): New define.
333 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
334 checking attributes of current_function_decl.
335 (avr_regs_to_save): Ditto.
336 (signal_function_p): Rename to avr_signal_function_p.
337 (interrupt_function_p): Rename to avr_interrupt_function_p.
339 * doc/extend.texi (Function Attributes): Better explanation of
340 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
343 2012-05-09 Michael Matz <matz@suse.de>
345 PR tree-optimization/53185
346 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
347 peeling when we see strided loads.
349 2012-05-09 Matthias Klose <doko@ubuntu.com>
351 * gcc-ar.c (main): Don't check for execute bits for the plugin.
353 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
355 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
356 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
357 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
358 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
359 (USE_LOAD_POST_INCREMENT): Define.
360 (USE_LOAD_PRE_INCREMENT): Define.
361 (USE_LOAD_POST_DECREMENT): Define.
362 (USE_LOAD_PRE_DECREMENT): Define.
363 (USE_STORE_PRE_DECREMENT): Define.
364 (USE_STORE_PRE_INCREMENT): Define.
365 (USE_STORE_POST_DECREMENT): Define.
366 (USE_STORE_POST_INCREMENT): Define.
367 (arm_auto_incmodes): Add enumeration.
368 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
369 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
371 2012-05-09 Jakub Jelinek <jakub@redhat.com>
373 PR tree-optimization/53226
374 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
375 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
376 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
377 doesn't need to be revisited, look for earliest stmt with
378 !gimple_plf (stmt, GF_PLF_1) if something changed.
380 2012-05-09 Terry Guo <terry.guo@arm.com>
382 * genmultilib: Update copyright dates.
383 * doc/fragments.texi: Ditto.
385 2012-05-09 Terry Guo <terry.guo@arm.com>
387 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
388 * genmultilib (MULTILIB_REQUIRED): New.
389 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
391 2012-05-09 Richard Guenther <rguenther@suse.de>
393 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
394 (vect_do_peeling_for_loop_bound): Likewise.
395 (vect_do_peeling_for_alignment): Likewise.
396 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
397 (vect_do_peeling_for_loop_bound): Get check_profitability and
398 threshold as parameters.
399 (vect_do_peeling_for_alignment): Likewise.
400 (vect_loop_versioning): Likewise.
401 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
402 and threshold here. Control where to put the check here.
404 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
407 * dwarf2out.h (get_address_mode): Move declaration to...
409 * dwarf2out.c (get_address_mode): Move definition to...
410 * rtlanal.c: ...here.
411 * var-tracking.c (get_address_mode): Delete.
412 * combine.c (find_split_point): Use get_address_mode instead of
413 targetm.addr_space.address_mode.
414 * cselib.c (cselib_record_sets): Likewise.
415 * dse.c (canon_address, record_store): Likewise.
416 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
417 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
418 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
419 (expand_expr_real_1): Likewise.
420 * ifcvt.c (noce_try_cmove_arith): Likewise.
421 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
422 * reload.c (find_reloads): Likewise.
423 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
424 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
426 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
428 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
429 information from the instruction produced.
431 2012-05-09 Richard Guenther <rguenther@suse.de>
433 * stor-layout.c (bit_from_pos): Document.
434 (byte_from_pos): Likewise. Optimize.
435 (pos_from_bit): Likewise.
436 (normalize_offset): Use pos_from_bit instead of replicating it.
438 2012-05-09 Alan Modra <amodra@gmail.com>
441 * config/rs6000/rs6000.c (gen_frame_set): New function.
442 (gen_frame_load, gen_frame_store): New functions.
443 (rs6000_savres_rtx): Use the above.
444 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
445 Correct mode used for CR2 in save/restore_world patterns.
446 Don't emit instructions for eh_return frame unwind reg info.
448 2012-05-08 Jan Hubicka <jh@suse.cz>
450 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
452 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
454 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
456 (compile_file): Do not output variables.
457 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
459 * langhooks.c: Include timevar.h
460 (write_global_declarations): Finalize compilation unit after wrapup;
461 set timevars correctly.
462 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
463 not to be added to varpool.
464 * varpool.c (varpool_assemble_decl): Sanity check that we are called
465 only on cases where it makes sense; skip constant pool and value expr
468 2012-05-08 David S. Miller <davem@davemloft.net>
470 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
471 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
472 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
474 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
476 PR rtl-optimization/53278
477 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
478 speed_p code from earlier patch.
480 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
483 * config/sh/sh.md (*branch_true, *branch_false): New insns.
485 2012-05-08 Teresa Johnson <tejohnson@google.com>
487 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
488 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
490 2012-05-08 Jan Hubicka <jh@suse.cz>
492 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
493 (cgraph_create_node_1): Rename to ...
494 (cgraph_create_empty_node): ... this one; export.
495 (cgraph_create_node): Update.
496 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
497 (cgraph_create_edge_including_clones): Likewise.
498 (cgraph_find_replacement_node): Likewise.
499 (cgraph_clone_edge): Likewise.
500 (cgraph_clone_node): Likewise.
501 (clone_function_name): Likewise.
502 (cgraph_create_virtual_clone): Likewise.
503 (cgraph_remove_node_and_inline_clones): Likewise.
504 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
505 * cgraph.h: Reorder declarations so they match file of origin.
506 (cgraph_create_empty_node): Declare.
507 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
508 (cgraph_copy_node_for_versioning): Likewise.
509 (cgraph_function_versioning): Likewise.
510 (cgraph_materialize_clone): Likewise.
511 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
512 (cgraph_materialize_all_clones): Likewise.
513 * cgraphclones.c: New file.
514 * Makefile.in: Update for cgraphclones.
516 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
519 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
520 (ix86_rtx_costs): Handle SET.
522 2012-05-08 Michael Matz <matz@suse.de>
524 * basic-block.h (struct rtl_bb_info): Remove visited member and
525 move head_ member to ...
526 (struct basic_block_def.basic_block_il_dependent): ... the new
527 member x, replacing but containing old member rtl.
528 (enum bb_flags): New BB_VISITED flag.
529 (BB_HEADER, BB_FOOTER): New macros.
531 * jump.c (mark_all_labels): Adjust.
532 * cfgcleanup.c (try_optimize_cfg): Adjust.
533 * cfglayout.c (record_effective_endpoints): Adjust.
534 (relink_block_chain): Ditto (and don't fiddle with visited).
535 (fixup_reorder_chain): Adjust.
536 (fixup_fallthru_exit_predecessor): Ditto.
537 (cfg_layout_duplicate_bb): Ditto.
538 * combine.c (update_cfg_for_uncondjump): Adjust.
539 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
540 (bb_visited_trace): New accessor.
541 (mark_bb_visited): Move in front.
542 (rotate_loop): Use bb_visited_trace.
543 (find_traces_1_round): Ditto.
544 (emit_barrier_after): Ditto.
545 (copy_bb): Ditto, and initialize visited on resize.
546 (reorder_basic_blocks): Initize visited member.
547 (duplicate_computed_gotos): Clear bb flags at start, use
550 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
551 (rtl_verify_flow_info_1): Ditto.
552 (cfg_layout_split_block): Ditto.
553 (cfg_layout_delete_block): Ditto.
554 (cfg_layout_merge_blocks): Ditto.
555 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
557 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
560 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
561 when a constant source operand matches an "I" constraint, the "no
562 CC0 change" applies to a register-destination only, not a
563 strict_low_part-destination.
565 2012-05-08 Richard Guenther <rguenther@suse.de>
567 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
568 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
570 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
572 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
574 * doc/avr-mmcu.texi: New auto-generated file.
575 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
576 to document all valid -mmcu= arguments.
578 * config/avr/avr.h (arch_info_s): New struct definition.
579 * config/avr/avr-devices.c (avr_texinfo): New variable.
580 * config/avr/gen-avr-mmcu-texi.c: New file.
581 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
583 2012-05-08 Dehao Chen <dehao@google.com>
585 * predict.c (find_qualified_ssa_name): New.
586 (find_ssa_name_in_expr): New.
587 (find_ssa_name_in_assign_stmt): New.
588 (is_comparison_with_loop_invariant_p): New.
589 (is_bound_expr_similar): New.
590 (predict_iv_comparison): New.
591 (predict_loops): Add heuristic for loop-nested branches that compare an
592 induction variable to a loop bound variable.
593 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
595 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
597 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
598 TARGET_BDVER2 defines where appropriate.
600 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
602 * configure.ac (PLUGIN_LD): Rename into...
603 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
604 * config.in: Regenerate.
605 * configure: Likewise.
606 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
608 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
610 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
611 computation using the precision of the index type.
612 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
613 (fold_array_ctor_reference): Do index computations in the index type.
615 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
617 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
618 down to plus_constant.
619 (expand_epilogue): Ditto.
621 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
623 * postreload.c (reload_cse_regs): Make static.
624 * reload.h (reload_cse_regs): Remove prototype.
626 2012-05-07 Richard Henderson <rth@redhat.com>
628 * config/alpha/alpha.md (clear_cache): New pattern.
630 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
633 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
634 is folded to a type boundary value, verify that the resulting case
635 label is still a care range.
637 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
639 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
640 only for TARGET_GENERIC, when not optimizing for size.
641 (*ffs<mode>_1): Ditto.
643 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
645 * tree-cfg.c (verify_gimple_switch): Tighten checks.
647 2012-05-07 Jakub Jelinek <jakub@redhat.com>
649 PR tree-optimization/53239
650 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
651 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
653 2012-05-07 Richard Guenther <rguenther@suse.de>
655 PR tree-optimization/53195
656 * tree-inline.c (setup_one_parameter): Properly add referenced
657 vars from the parameters new known value.
659 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
661 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
662 (sched_branch_type): Remove.
663 (m68k_sched_md_init_global): Don't allocate it.
664 (m68k_sched_md_finish_global): Don't free it.
665 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
666 * config/m68k/m68k.md: Set the type of insns using
667 m68k_sched_branch_type to bcc directly.
669 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
671 * config/sol2.c (solaris_override_options): New function.
672 * config/sol2-protos.h (solaris_override_options): Declare.
673 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
675 2012-05-07 Richard Guenther <rguenther@suse.de>
677 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
678 whether we failed to compute data dependences.
679 (loop_prefetch_arrays): Fail if we failed.
681 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
682 Paolo Bonzini <bonzini@gnu.org>
684 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
685 Emit bsf when optimizing for size.
686 (*ffs<mode>_1): Ditto.
688 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
691 * config/sh/sh.c (sh_rtx_costs): Handle SET.
693 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
696 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
697 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
698 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
700 (*bswapdi2_doubleword): New insn pattern.
701 (*bswap<mode>2): Rename from *bswap<mode>2_1.
703 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
705 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
706 (mips_set_reg_reg_cost): Likewise.
707 (mips_rtx_costs): Handle SET.
709 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
711 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
712 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
713 to compute the cost of moves. Set the mode of the target register.
715 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
717 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
718 plus_constant function.
719 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
720 that the mode is sensible.
721 (use_anchored_address, round_push, allocate_dynamic_stack_space)
722 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
725 * alias.c (canon_rtx): Likewise.
726 (init_alias_analysis): Likewise.
727 * builtins.c (expand_builtin_return_addr)
728 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
729 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
730 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
731 (expand_builtin_stpcpy): Likewise.
732 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
733 (compute_argument_addresses, internal_arg_pointer_based_exp)
734 (expand_call, emit_library_call_value_1): Likewise.
735 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
736 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
737 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
738 * cse.c (insert_const_anchor, find_reg_offset_for_const)
739 (use_related_value, fold_rtx): Likewise.
740 * cselib.c (cselib_subst_to_values): Likewise.
741 * dse.c (record_store, check_mem_read_rtx): Likewise.
742 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
743 * emit-rtl.c (adjust_address_1): Likewise.
744 * except.c (sjlj_emit_function_enter)
745 (expand_builtin_extract_return_addr)
746 (expand_builtin_frob_return_addr): Likewise.
747 * expmed.c (expand_divmod): Likewise.
748 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
749 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
750 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
751 * function.c (assign_stack_local_1)
752 (instantiate_virtual_regs_in_rtx): Likewise.
753 * optabs.c (prepare_cmp_insn): Likewise.
754 * recog.c (offsettable_address_addr_space_p): Likewise.
755 * reload.c (find_reloads_address, form_sum)
756 (find_reloads_subreg_address): Likewise.
757 * reload1.c (init_reload, eliminate_regs_1)
758 (eliminate_regs_in_insn): Likewise.
759 * simplify-rtx.c (simplify_unary_operation_1)
760 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
761 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
762 (vt_add_function_parameter): Likewise.
764 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
765 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
766 * config/alpha/alpha.c (alpha_legitimize_address_1)
767 (get_unaligned_address, alpha_expand_unaligned_load)
768 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
769 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
770 (alpha_expand_builtin_establish_vms_condition_handler)
771 (alpha_setup_incoming_varargs, emit_frame_store_1)
772 (alpha_expand_prologue, alpha_expand_epilogue)
773 (alpha_use_linkage): Likewise.
774 * config/alpha/alpha.md: Likewise.
776 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
777 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
778 (thumb_legitimize_address, arm_gen_load_multiple_1)
779 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
780 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
781 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
782 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
783 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
784 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
785 (thumb_expand_movmemqi, arm_set_return_address)
786 (thumb_set_return_address): Likewise.
787 * config/arm/arm.md: Likewise.
789 * config/avr/avr.c (avr_incoming_return_addr_rtx)
790 (avr_prologue_setup_frame, expand_epilogue)
791 (avr_const_address_lo16): Likewise.
793 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
794 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
795 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
796 (bfin_output_mi_thunk): Likewise.
798 * config/c6x/c6x.c (c6x_initialize_trampoline)
799 (c6x_output_mi_thunk): Likewise.
801 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
802 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
804 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
805 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
806 (cris_emit_movem_store, cris_trampoline_init): Likewise.
807 * config/cris/cris.md: Likewise.
809 * config/darwin.c (machopic_indirect_data_reference)
810 (machopic_legitimize_pic_address): Likewise.
812 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
813 (epiphany_expand_prologue, epiphany_expand_epilogue)
814 (epiphany_trampoline_init): Likewise.
815 * config/epiphany/epiphany.md: Likewise.
817 * config/fr30/fr30.c (fr30_move_double): Likewise.
819 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
820 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
821 (frv_index_memory, unspec_got_name, frv_find_base_term)
822 (frv_output_dwarf_dtprel): Likewise.
824 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
825 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
827 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
828 * config/i386/i386.c (setup_incoming_varargs_64)
829 (setup_incoming_varargs_ms_64, choose_baseaddr)
830 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
831 (ix86_emit_probe_stack_range, ix86_expand_prologue)
832 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
833 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
834 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
835 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
836 (x86_output_mi_thunk): Likewise.
837 * config/i386/i386.md: Likewise.
839 * config/ia64/ia64.c (ia64_expand_load_address)
840 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
841 (do_spill, ia64_trampoline_init): Likewise.
843 * config/iq2000/iq2000.c (iq2000_va_start)
844 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
845 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
846 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
848 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
850 * config/m32c/m32c.c (m32c_return_addr_rtx)
851 (m32c_expand_insv): Likewise.
853 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
854 (m32r_legitimize_pic_address, m32r_print_operand)
855 (m32r_print_operand_address): Likewise.
857 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
858 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
859 (EH_RETURN_HANDLER_RTX): Likewise.
860 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
861 (m68k_expand_epilogue, legitimize_pic_address)
862 (m68k_output_mi_thunk): Likewise.
863 * config/m68k/m68k.md: Likewise.
865 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
866 (mcore_expand_epilog): Likewise.
867 * config/mcore/mcore.md: Likewise.
869 * config/mep/mep.c (mep_allocate_initial_value)
870 (mep_expand_prologue, mep_expand_epilogue): Likewise.
872 * config/microblaze/microblaze.c (double_memory_operand)
873 (microblaze_block_move_loop): Likewise.
875 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
876 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
877 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
878 (mips_expand_prologue, mips_epilogue_set_cfa)
879 (mips_expand_epilogue): Likewise.
880 * config/mips/mips.md: Likewise.
882 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
883 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
885 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
886 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
888 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
889 (EH_RETURN_HANDLER_RTX): Likewise.
890 * config/moxie/moxie.c (moxie_static_chain): Likewise.
892 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
893 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
894 (pa_return_addr_rtx, hppa_builtin_saveregs)
895 (pa_trampoline_init): Likewise.
896 * config/pa/pa.md: Likewise.
898 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
900 * config/picochip/picochip.c (picochip_static_chain): Likewise.
902 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
903 * config/rs6000/rs6000.c (rs6000_legitimize_address)
904 (setup_incoming_varargs, print_operand, rs6000_return_addr)
905 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
906 (rs6000_emit_epilogue)
907 (rs6000_machopic_legitimize_pic_address): Likewise.
909 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
911 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
912 (DYNAMIC_CHAIN_ADDRESS): Likewise.
913 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
914 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
915 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
916 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
917 (s390_emit_epilogue, s390_function_profiler): Likewise.
918 * config/s390/s390.md: Likewise.
920 * config/score/score.c (score_add_offset, score_prologue): Likewise.
922 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
923 (sh_output_mi_thunk): Likewise.
924 * config/sh/sh.md: Likewise.
926 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
927 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
928 * config/sparc/sparc.c (sparc_legitimize_pic_address)
929 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
930 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
931 (emit_and_preserve): Likewise.
932 * config/sparc/sparc.md: Likewise.
934 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
935 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
936 (spu_setup_incoming_varargs, ea_load_store_inline)
937 (spu_expand_load): Likewise.
939 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
940 (combine_bnp): Likewise.
942 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
943 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
944 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
946 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
947 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
948 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
950 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
951 * config/v850/v850.md: Likewise.
953 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
954 (EH_RETURN_HANDLER_RTX): Likewise.
955 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
956 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
957 (print_operand_address, vax_trampoline_init): Likewise.
959 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
960 (xtensa_function_value_regno_p): Likewise.
962 2012-05-04 Andrew Pinski <apinski@cavium.com>
964 * expr.c (get_def_for_expr_class): New function.
965 (convert_tree_comp_to_rtx): New function.
966 (expand_cond_expr_using_cmove): New function.
967 (expand_expr_real_2 <case COND_EXPR>): Call
968 expand_cond_expr_using_cmove first and return if it succeeds.
969 Remove the check for HAVE_conditional_move since we should have
970 already converted it to a conditional move.
971 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
972 modes of DImode for 32bits and TImode.
974 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
977 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
978 (print_md_ptr_loc, print_c_condition): Use them.
979 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
980 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
981 attr_file, dfa_file, latency_file): New global variables.
982 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
983 write_upcase, write_indent, write_length_unit_log, write_test_expr,
984 write_attr_get, write_insn_cases, write_eligible_delay,
985 write_const_num_delay_slots): Accept FILE pointer and toss it around.
987 (write_header, open_outfile, handle_arg): New funcions.
988 (make_automaton_attrs): Write prototypes as extern to the output
990 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
991 names from the command line. Open the output files and write out
992 internal functions for DFA functions to dfa_file_name, insn latency
993 functions to latency_file_name, and everything else to attr_file.
994 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
995 (BACKEND): Build libbackend first.
996 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
997 (.PRECIOUS): Likewise.
998 (insn-dfatab.o): New rule.
999 (insn-latencytab.o): New rule.
1000 (simple_rtl_generated_c): Do not include insn-attrtab.c.
1001 (s-attrtab): New rule.
1003 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
1005 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
1006 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
1007 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
1008 * reorg.c (get_jump_flags): Do not set the removed flags.
1010 * doc/md.texi (attr_flag): Update for abovementioned changes.
1012 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
1015 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
1016 (TARGET_CMOV): Rename from TARGET_CMOVE.
1017 (TARGET_CMOVE): New define.
1018 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
1019 Do not set TARGET_CMOVE here.
1021 2012-05-04 Dodji Seketeli <dodji@redhat.com>
1023 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
1024 * opts.c (finish_options): Activate -Wunused-local-typedefs if
1025 -Wunused is activated.
1026 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
1028 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1030 * config/s390/s390.md (*movmem_short, *clrmem_short)
1031 (*cmpmem_short): Move the mode check from the insn condition to
1034 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1036 PR tree-optimization/52633
1037 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
1038 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
1039 (vect_recog_over_widening_pattern): Remove handling of code that was
1040 already detected as over-widening pattern. Remove special handling
1041 of "unsigned" cases. Instead, support general case of conversion
1042 of the shift result to another type.
1044 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1046 * tree-vect-patterns.c (vect_single_imm_use): New function.
1047 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
1048 (vect_recog_over_widening_pattern): Likewise.
1049 (vect_recog_widen_shift_pattern): Likewise.
1051 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1053 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
1054 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
1055 (vect_recog_widen_mult_pattern): Likewise.
1056 (vect_operation_fits_smaller_type): Likewise.
1057 (vect_recog_over_widening_pattern): Likewise.
1058 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
1060 2012-05-04 Richard Guenther <rguenther@suse.de>
1063 * lto-wrapper.c (merge_and_complain): Complain about mismatches
1064 of -freg-struct-return and -fpcc-struct-return.
1065 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
1066 from the input file options and ignore those from the link
1069 2012-05-04 Richard Guenther <rguenther@suse.de>
1071 PR tree-optimization/53168
1072 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
1073 memory reads when the result is a constant we can pun.
1075 2012-05-04 Richard Guenther <rguenther@suse.de>
1077 * common.opt (flto-report): Do not mark as Optimization.
1079 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
1082 * recog.c (constrain_operands): If extra constraints are present, also
1083 accept pseudo-registers with equivalent memory locations during reload.
1085 2012-05-04 Olivier Hainque <hainque@adacore.com>
1087 * collect2.c (may_unlink_output_file): New global.
1088 (maybe_unlink): Honor it.
1089 * collect2.h: Add extern for it.
1090 * tlink.c (do_tlink): Set it to true if the link succeeded.
1092 2012-05-04 Olivier Hainque <hainque@adacore.com>
1094 * gcc.c (eval_spec_function): Finalize/restore the current string
1095 obstack state as part of the context push/pop operations.
1097 2012-05-04 Bin Cheng <bin.cheng@arm.com>
1099 PR rtl-optimization/52804
1100 * reload1.c (reload_reg_reaches_end_p): Check whether successor
1101 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
1102 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
1103 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
1104 RELOAD_FOR_OUTADDR_ADDRESS.
1106 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1109 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
1110 for macro expansion.
1112 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1114 * flags.h (flag_permissive): Do not declare.
1115 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
1117 * toplev.c (flag_permissive): Do not define.
1118 * c-tree.h (system_header_p): Delete unused.
1120 2012-05-03 David S. Miller <davem@davemloft.net>
1123 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
1124 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
1125 (sparc_emit_float_lib_cmp): Likewise.
1127 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1130 * config/rs6000/rs6000.md (bswapdi splitters): If
1131 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
1132 default) is used, generate an alternate sequence that does not
1133 depend on using indexed addressing.
1135 2012-05-03 Jason Merrill <jason@redhat.com>
1137 * gengtype.c (write_types): Fix warning message.
1138 (write_local): Likewise.
1140 2012-05-02 Jason Merrill <jason@redhat.com>
1142 * dwarf2out.c (struct external_ref, build_local_stub): New.
1143 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
1144 (optimize_external_refs, optimize_external_refs_1): New.
1145 (change_AT_die_ref): New.
1146 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
1147 (build_abbrev_table): Take the external refs hashtable.
1148 (output_comp_unit): Get it from optimize_external_refs and pass it in.
1150 2012-05-03 Jan Hubicka <jh@suse.cz>
1153 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
1155 2012-05-03 Jan Hubicka <jh@suse.cz>
1158 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
1160 2012-05-03 Jason Merrill <jason@redhat.com>
1162 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
1163 use_debug_types to discriminate the die_id union.
1164 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
1165 (build_abbrev_table, output_die): Likewise.
1166 (prune_unused_types_walk_attribs): Likewise.
1167 (generate_type_signature, copy_declaration_context): Set it.
1168 (remove_child_or_replace_with_skeleton): Set it.
1169 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
1170 check use_debug_types.
1171 (dwarf2out_finish): Do break_out_includes after .debug_types.
1173 2012-05-03 Jason Merrill <jason@redhat.com>
1175 * dwarf2out.c (modified_type_die): Use scope_die_for.
1176 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
1177 (uses_local_type_r, uses_local_type): New.
1178 (scope_die_for): Keep a type that uses a local type in local scope.
1179 Use get_context_die for namespace and type scope.
1181 2012-05-03 Jason Merrill <jason@redhat.com>
1183 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
1185 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
1186 (dwarf2out_finish): Likewise.
1188 2012-05-03 Martin Jambor <mjambor@suse.cz>
1190 * builtins.c (get_object_alignment_1): Return whether we can determine
1191 the alignment or conservatively assume byte alignment. Return the
1192 alignment by reference. Use get_pointer_alignment_1 for dereference
1194 (get_pointer_alignment_1): Return whether we can determine the
1195 alignment or conservatively assume byte alignment. Return the
1196 alignment by reference. Use get_ptr_info_alignment to get SSA name
1198 (get_object_alignment): Update call to get_object_alignment_1.
1199 (get_object_or_type_alignment): Likewise, fall back to type alignment
1200 only when it returned false.
1201 (get_pointer_alignment): Update call to get_pointer_alignment_1.
1202 * fold-const.c (get_pointer_modulus_and_residue): Update call to
1203 get_object_alignment_1.
1204 * ipa-prop.c (ipa_modify_call_arguments): Update call to
1205 get_pointer_alignment_1.
1206 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
1207 of MEM_REF or TARGET_MEM_REF only when it returns false.
1208 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
1209 get_object_alignment_1.
1210 (ccp_finalize): Use set_ptr_info_alignment.
1211 * tree.h (get_object_alignment_1): Update declaration.
1212 (get_pointer_alignment_1): Likewise.
1213 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
1214 (dump_gimple_stmt): Likewise.
1215 * tree-flow.h (ptr_info_def): Updated comments of fields align and
1217 (get_ptr_info_alignment): Declared.
1218 (mark_ptr_info_alignment_unknown): Likewise.
1219 (set_ptr_info_alignment): Likewise.
1220 (adjust_ptr_info_misalignment): Likewise.
1221 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
1222 and set alignment of SSA names.
1223 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
1224 mark_ptr_info_alignment_unknown.
1225 * tree-ssanames.c (get_ptr_info_alignment): New function.
1226 (mark_ptr_info_alignment_unknown): Likewise.
1227 (set_ptr_info_alignment): Likewise.
1228 (adjust_ptr_info_misalignment): Likewise.
1229 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
1230 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1232 (bump_vector_ptr): Likewise.
1233 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
1234 (vectorizable_store): Likewise.
1235 (vectorizable_load): Likewise.
1237 2012-05-03 Michael Matz <matz@suse.de>
1239 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
1240 in front of basic_block_def.
1241 (struct basic_block_def): Make il.gimple the full struct, not a
1243 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
1245 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
1246 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
1247 NULL il.gimple, which can't happen anymore.
1248 * gimple.h (bb_seq): il.gimple can't be NULL.
1249 (bb_seq_add): Ditto.
1250 (set_bb_seq): Adjust.
1251 (gsi_start_bb, gsi_last_bb): Tidy.
1252 * lto-streamer-in.c (make_new_block): Don't zero members that
1253 are zeroed already, don't allocate a gimple_bb_info.
1254 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
1255 (remove_bb): Clear all il.gimple members.
1256 (gimple_verify_flow_info): Adjust for flat il.gimple.
1257 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
1259 * coretypes.h (const_gimple_seq): Remove typedef.
1260 * gimple.h (gimple_seq_first): Take gimple_seq.
1261 (gimple_seq_first_stmt): Ditto.
1262 (gimple_seq_last): Ditto.
1263 (gimple_seq_last_stmt): Ditto.
1264 (gimple_seq_empty_p): Ditto.
1266 2012-05-03 Richard Guenther <rguenther@suse.de>
1268 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
1270 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
1271 (compute_avail): Do not add possibly trapping operations to
1272 EXP_GEN if they might not be executed in the block.
1274 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
1276 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
1278 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
1280 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
1281 information as early as possible. Update dominance info instead of
1284 2012-05-03 Richard Guenther <rguenther@suse.de>
1286 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
1287 (union_contains_value): Remove.
1288 (vro_valid_in_sets): Likewise.
1289 (op_valid_in_sets): New function.
1290 (valid_in_sets): Use op_valid_in_sets.
1291 (insert_into_preds_of_block): Move dumping ...
1292 (do_regular_insertion): ... here.
1293 (do_partial_partial_insertion): ... and here. Dump that
1294 we've found a partial partial redundancy.
1295 (insert): Dump the current insert iteration.
1297 2012-05-03 Jakub Jelinek <jakub@redhat.com>
1300 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
1301 append program name to it and pass that as first argument
1302 to make_relative_prefix. Always pass standard_libexec_prefix
1303 as last argument to make_relative_prefix. If
1304 make_relative_prefix returns NULL, fall back to
1305 standard_libexec_prefix.
1308 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
1312 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
1313 mode, return that mode.
1316 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
1317 define __ATOMIC_HLE_* macros here.
1318 (ix86_target_macros): But here, using cpp_define_formatted.
1320 2012-05-03 Richard Guenther <rguenther@suse.de>
1322 PR tree-optimization/53144
1323 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
1325 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
1326 with SSA name values.
1327 (vn_reference_lookup_3): Adjust callers.
1329 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1331 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
1332 has_fma4 for AMD processors with both fma3 and fma4 support.
1334 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
1337 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
1340 2012-05-03 Michael Matz <matz@suse.de>
1343 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
1344 (dse_enter_block): Properly iterate the whole sequence even
1345 if the last statement was removed.
1347 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
1349 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
1350 unset flag_jump_tables.
1351 * stmt.c (expand_case): Remove special flag_pic case conditional
1352 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
1354 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1356 * common/config/s390/s390-common.c (s390_option_optimization_table):
1357 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
1358 default when optimizing.
1360 2012-05-02 Martin Jambor <mjambor@suse.cz>
1363 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
1364 of a variable when the contect is a function.
1366 2012-05-02 Michael Matz <matz@suse.de>
1368 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
1369 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
1370 (const_gimple_seq_node): Remove.
1371 (gimple_seq_node): Typedef as gimple.
1372 (struct gimple_statement_base): Add next and prev members,
1373 adjust all WORD markers in using structs.
1374 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
1375 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
1376 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
1377 gimple are the same.
1378 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
1380 (gimple_init_singleton): New function.
1381 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
1382 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
1384 (gsi_stmt_ptr): Remove.
1385 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
1387 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
1388 again, adjust for above changes.
1389 (update_call_edge_frequencies): Adjust for above changes.
1390 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
1391 (gsi_insert_seq_nodes_after): Ditto.
1392 (gsi_split_seq_after): Ditto.
1393 (gsi_set_stmt): Ditto.
1394 (gsi_split_seq_before): Ditto.
1395 (gsi_remove): Ditto.
1396 (gsi_insert_seq_before_without_update): Don't free sequence.
1397 (gsi_insert_seq_after_without_update): Ditto.
1398 (gsi_replace): Assert some more invariants.
1399 (gsi_insert_before_without_update, gsi_insert_after_without_update):
1401 (gsi_for_stmt): Don't search for stmt.
1402 (gsi_insert_on_edge_immediate): Tidy.
1404 * gimple.c (gimple_alloc_k): Remove "sequences".
1405 (gimple_seq_cache): Remove.
1406 (gimple_alloc_stat): Make stmt a singleton sequence.
1407 (gimple_seq_alloc, gimple_seq_free): Remove.
1408 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
1409 (gimple_copy): Ditto.
1410 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
1411 create iterator from correct sequence.
1412 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
1414 2012-05-02 Michael Matz <matz@suse.de>
1416 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
1418 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
1419 sequence, lazily allocate it.
1420 (bb_seq_addr): New function.
1421 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
1422 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
1423 (gsi_none): New function.
1424 (gsi_start_bb): Adjust.
1425 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
1426 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
1427 (gsi_last_bb): Adjust.
1429 * tree-flow-inline.h (phi_nodes_ptr): New function.
1431 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
1432 datastructure and interface change.
1433 (gsi_insert_seq_before_without_update): Ditto.
1434 (gsi_insert_seq_nodes_after): Ditto.
1435 (gsi_insert_seq_after_without_update): Ditto.
1436 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
1437 (gsi_split_seq_before): Ditto.
1438 (gsi_start_phis): Adjust.
1439 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
1440 (vect_transform_loop): Ditto.
1441 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
1442 gimple_seq_copy): Don't use gimple_seq_alloc.
1443 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
1444 (gimplify_seq_add_seq): Ditto.
1445 * lto-streamer-in.c (make_new_block): Ditto.
1446 * tree-cfg.c (create_bb): Ditto.
1447 * tree-sra.c (initialize_parameter_reductions): Ditto.
1449 2012-05-02 Michael Matz <matz@suse.de>
1451 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
1452 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
1453 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
1454 set_bb_seq): Move down to after gimple_statement_d definition.
1456 2012-05-02 Michael Matz <matz@suse.de>
1458 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
1459 gsi_replace_with_seq, instead of inserting itself.
1460 * gimple-iterator.c (gsi_replace_with_seq): New function.
1461 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
1462 iterator instead of statement, advance it.
1463 (ssa_forward_propagate_and_combine): Adjust call to above.
1465 2012-05-02 Michael Matz <matz@suse.de>
1467 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
1469 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
1470 * tree-nested.c (walk_gimple_omp_for): Ditto.
1471 * trans-mem.c (lower_transaction): Ditto.
1472 * tree-eh.c (do_return_redirection): Ditto.
1473 (do_goto_redirection): Ditto.
1474 (lower_try_finally_switch): Ditto.
1475 * gimplify.c (gimplify_stmt): Ditto.
1476 (gimplify_scan_omp_clauses): Ditto.
1477 (gimplify_omp_for): Ditto.
1478 (gimplify_function_tree): Ditto.
1479 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
1480 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
1481 (mf_build_check_statement_for): Ditto.
1482 (mx_register_decls): Ditto.
1483 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
1484 and don't use itertors to append.
1485 (insert_stmts): Ditto.
1486 (insert_out_of_ssa_copy): Ditto.
1487 (insert_out_of_ssa_copy_on_edge): Ditto.
1489 2012-05-02 Michael Matz <matz@suse.de>
1491 * gimple.h (gimple_bind_body_ptr): New function.
1492 (gimple_bind_body): Use it.
1493 (gimple_catch_handler): Use gimple_catch_handler_ptr.
1494 (gimple_eh_filter_failure_ptr): New function.
1495 (gimple_eh_filter_failure): Use it.
1496 (gimple_eh_else_n_body_ptr): New function.
1497 (gimple_eh_else_n_body): Use it.
1498 (gimple_eh_else_e_body_ptr): New function.
1499 (gimple_eh_else_e_body): Use it.
1500 (gimple_try_eval_ptr): New function.
1501 (gimple_try_eval): Use it.
1502 (gimple_try_cleanup_ptr): New function.
1503 (gimple_try_cleanup): Use it.
1504 (gimple_wce_cleanup_ptr): New function.
1505 (gimple_wce_cleanup): Use it.
1506 (gimple_omp_body_ptr): New function.
1507 (gimple_omp_body): Use it.
1508 (gimple_omp_for_pre_body_ptr): New function.
1509 (gimple_omp_for_pre_body): Use it.
1510 (gimple_transaction_body_ptr): New function.
1511 (gimple_transaction_body): Use it.
1512 (gsi_split_seq_before): Adjust to return nothing and take pointer
1514 (gsi_set_stmt): Declare.
1515 (gsi_replace_with_seq): Declare.
1516 (walk_gimple_seq_mod): Declare.
1517 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
1519 * gimple-iterator.c (gsi_set_stmt): New function.
1520 (gsi_split_seq_before): Return new sequence via pointer argument.
1521 (gsi_replace): Use gsi_set_stmt.
1523 * tree-ssa-loop-im.c (move_computations_stmt): First remove
1525 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
1526 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
1528 (reserve_phi_args_for_new_edge): Change call to above,
1531 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
1532 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
1533 iterators. Adjust call to lower_omp.
1534 (lower_lastprivate_clauses): Adjust call to lower_omp.
1535 (lower_reduction_clauses): Ditto.
1536 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
1537 (lower_omp_sections): Don't explicitely count sequence length,
1538 nullify lowered bodies earlier, ensure stmts are part of only
1539 one sequence, adjust call to lower_omp.
1540 (lower_omp_single): Ensure stmts are part of only one sequence,
1541 adjust call to lower_omp.
1542 (lower_omp_master): Ditto.
1543 (lower_omp_ordered): Ditto.
1544 (lower_omp_critical): Ditto.
1545 (lower_omp_for): Ditto.
1546 (lower_omp_taskreg): Ditto, tidy.
1547 (lower_omp_1): Adjust calls to lower_omp.
1548 (execute_lower_omp): Ditto.
1549 (lower_omp): Adjust to take pointer to sequence.
1550 (diagnose_sb_2): Use walk_gimple_seq_mod.
1551 (diagnose_omp_structured_block_errors): Ditto and set possibly
1552 changed function body.
1553 * gimple-low.c (lower_function_body): Set function body after
1555 (lower_sequence): Adjust to take pointer to sequence.
1556 (lower_omp_directive): Ensure stmt isn't put twice into the
1557 sequence, adjust call to lower_sequence.
1558 (lower_stmt): Adjust calls to lower_sequence.
1559 (lower_gimple_bind): Ditto.
1560 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
1561 * tree-nested.c (walk_body): Take pointer to sequence, use
1562 walk_gimple_seq_mod.
1563 (walk_function): Adjust call to walk_body, set possibly changed body.
1564 (walk_gimple_omp_for): Adjust calls to walk_body.
1565 (convert_nonlocal_omp_clauses): Ditto.
1566 (convert_nonlocal_reference_stmt): Ditto.
1567 (convert_local_omp_clauses): Ditto.
1568 (convert_local_reference_stmt): Ditto.
1569 (convert_tramp_reference_stmt): Ditto.
1570 (convert_gimple_call): Ditto.
1571 (convert_nl_goto_reference): Use local iterator copy.
1572 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
1573 but taking pointer to sequence, ensure gsi_start is called with
1575 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
1576 asserting that the sequence head didn't change.
1577 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
1578 walk_gimple_seq_mod.
1579 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
1580 (execute_lower_tm): Ditto, and set possibly changed body.
1581 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
1582 call gsi_start with that lvalue.
1583 (replace_goto_queue_stmt_list): Ditto.
1584 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
1585 (replace_goto_queue): Ditto.
1586 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
1587 (lower_try_finally_onedest): Ditto.
1588 (lower_try_finally_copy): Ditto.
1589 (lower_try_finally_switch): Ditto.
1590 (lower_try_finally): Ditto.
1591 (lower_eh_filter): Ditto.
1592 (lower_eh_must_not_throw): Ditto.
1593 (lower_cleanup): Ditto.
1594 (lower_eh_constructs_2): Ditto.
1595 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
1596 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
1597 set possibly changed body.
1598 (optimize_double_finally): Call gsi_start with lvalue.
1600 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
1601 (gimple_split_block): Ditto.
1602 (gimple_merge_blocks): Use gsi_start_phis.
1603 (move_stmt_r): Use walk_gimple_seq_mod.
1604 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
1605 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
1606 (rebuild_cgraph_edges): Ditto.
1607 (cgraph_rebuild_references): Ditto.
1608 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
1609 * tree-inline.c (copy_phis_for_bb): Ditto.
1610 * tree-ssa-dce.c: Ditto.
1612 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
1614 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
1615 Andi Kleen <ak@linux.intel.com>
1617 * coretypes.h (MEMMODEL_MASK): New.
1618 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
1619 and return new variable.
1620 (expand_builtin_atomic_exchange): Mask memmodel values.
1621 (expand_builtin_atomic_compare_exchange): Ditto.
1622 (expand_builtin_atomic_load): Ditto.
1623 (expand_builtin_atomic_store): Ditto.
1624 (expand_builtin_atomic_clear): Ditto.
1625 * doc/extend.texi: Mention port-dependent memory model flags.
1626 * config/i386/cpuid.h (bit_HLE): New.
1627 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1629 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
1630 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
1631 (ix86_target_string)<-mhle>: New.
1632 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
1633 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
1634 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
1635 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
1636 enabled for generic, generic64 and core-avx2.
1637 (ix86_print_operand): Generate HLE lock prefixes.
1638 (ix86_memmodel_check): New.
1639 (TARGET_MEMMODEL_CHECK): Ditto.
1640 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
1641 (IX86_HLE_ACQUIRE): Ditto.
1642 (IX86_HLE_RELEASE): Ditto.
1643 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
1644 * config/i386/i386.opt (mhle): Ditto.
1645 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
1646 success model to instruction emitter.
1647 (atomic_fetch_add<mode>): Ditto.
1648 (atomic_exchange<mode>): Ditto.
1649 (atomic_add<mode>): Ditto.
1650 (atomic_sub<mode>): Ditto.
1651 (atomic_<code><mode>): Ditto.
1652 (*atomic_compare_and_swap_doubledi_pic): Ditto.
1653 (atomic_compare_and_swap_single<mode>): Define and use argument
1655 (atomic_compare_and_swap_double<mode>): Ditto.
1656 * configure.ac: Check if assembler support HLE prefixes.
1657 * configure: Regenerate.
1660 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
1663 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
1665 (gimplify_switch_expr): ... here.
1666 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
1667 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
1668 to clean up case labels with values outside the index type range.
1669 (simplify_gimple_switch): Call it if something changed.
1670 Remove strange and unnecessary assert.
1672 2012-05-02 Richard Guenther <rguenther@suse.de>
1674 * fold-const.c (div_if_zero_remainder): sizetypes no longer
1676 (int_const_binop_1): New worker for int_const_binop with
1677 overflowable parameter. Pass it through to force_fit_type_double.
1678 (int_const_binop): Wrap around int_const_binop_1 with overflowable
1680 (size_binop_loc): Call int_const_binop_1 with overflowable equal
1681 to minus one, forcing overflow detection for even unsigned types.
1682 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
1683 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
1684 * stor-layout.c (initialize_sizetypes): sizetypes no longer
1686 (layout_type): For zero-sized arrays ignore overflow on the
1688 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
1689 (bit_value_binop_1): Likewise.
1690 * tree.c (double_int_to_tree): Likewise.
1691 (double_int_fits_to_tree_p): Likewise.
1692 (force_fit_type_double): Likewise.
1693 (host_integerp): Likewise.
1694 (int_fits_type_p): Likewise.
1695 * varasm.c (output_constructor_regular_field): Sign-extend the
1696 field-offset to cater for negative offsets produced by the Ada
1698 * omp-low.c (extract_omp_for_data): Convert the loop step to
1699 signed for pointer adjustments.
1701 2012-05-02 Richard Guenther <rguenther@suse.de>
1703 * tree.c (valid_constant_size_p): New function.
1704 * tree.h (valid_constant_size_p): Declare.
1705 * cfgexpand.c (expand_one_var): Adjust check for too large
1706 variables by using valid_constant_size_p.
1707 * varasm.c (assemble_variable): Likewise.
1709 * c-decl.c (grokdeclarator): Properly check for sizes that
1710 cover more than half of the address-space.
1712 2012-05-02 Jakub Jelinek <jakub@redhat.com>
1714 PR tree-optimization/53163
1715 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
1716 return value from compute_all_dependences.
1718 PR rtl-optimization/53160
1719 * ree.c (combine_reaching_defs): Handle the case where cand->insn
1720 has been modified by ree pass already.
1722 2012-05-01 Ian Lance Taylor <iant@google.com>
1725 * c-decl.c (build_compound_literal): Make the decl readonly if it
1726 an array of a readonly type.
1727 * gimplify.c (gimplify_compound_literal_expr): Add fallback
1728 parameter. Change all callers. If the decl is not addressable
1729 and is not an l-value, make it readonly.
1731 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
1733 * ira.c (allocated_reg_info_size): New static variable.
1734 (expand_reg_info): Manage it. Call
1735 setup_preferred_alternate_classes_for_new_pseudos.
1736 (ira): Don't do it here. Remove local allocated_reg_info_size,
1737 set the global before calling find_moveable_pseudos.
1738 (find_moveable_pseudos): Call expand_reg_info rather than
1741 2012-05-01 Richard Henderson <rth@redhat.com>
1743 * common.opt (fsync-libcalls): New.
1744 * doc/invoke.texi: Document it.
1745 * optabs.c (init_sync_libfuncs): Honor it.
1747 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
1748 Richard Sandiford <r.sandiford@uk.ibm.com>
1750 PR rtl-optimization/52543
1751 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
1753 * lower-subreg.h: New file.
1754 * target-globals.h (this_target_lower_subreg): Declare.
1755 (target_globals): Add lower_subreg;
1756 (restore_target_globals): Restore this_target_lower_subreg.
1757 * target-globals.c: Include it.
1758 (default_target_globals): Add default_target_lower_subreg.
1759 (save_target_globals): Initialize target_lower_subreg.
1760 * rtl.h (init_lower_subreg): Added declaration.
1761 * toplev.c (backend_init_target): Call initializer for lower-subreg
1763 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
1764 (default_target_lower_subreg): New variable.
1765 (this_target_lower_subreg): Likewise.
1766 (twice_word_mode, choices): New macros.
1767 (shift_cost, compute_splitting_shift, compute_costs)
1768 (init_lower_subreg): New functions.
1769 (resolve_simple_move): Add speed_p argument. Check choices.
1770 (find_pseudo_copy): Don't check the mode size here.
1771 (resolve_simple_move): Assert the mode size.
1772 (find_decomposable_shift_zext): Add speed_p argument and return
1773 a bool. Check choices.
1774 (resolve_shift_zext): Add comment.
1775 (dump_shift_choices, dump_choices): New functions.
1776 (decompose_multiword_subregs): Dump list of profitable
1777 transformations. Add code to skip non profitable transformations.
1778 Update calls to simple_move and find_decomposable_shift_zext.
1780 2012-05-01 Ian Bolton <ian.bolton@arm.com>
1781 Sameera Deshpande <sameera.deshpande@arm.com>
1782 Greta Yorsh <greta.yorsh@arm.com>
1784 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
1785 (thumb1_unexpanded_epilogue): ...this.
1786 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
1787 (thumb1_unexpanded_epilogue): ...this.
1788 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
1789 (thumb1_unexpanded_epilogue): ...this.
1791 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
1793 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
1794 comparing enumeration values. Update comments.
1796 2012-05-01 Alan Modra <amodra@gmail.com>
1799 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
1800 load_cr_save, add_crlr_cfa_restore): New functions.
1801 (rs6000_restore_saved_cr): Rename to..
1802 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
1803 (rs6000_emit_epilogue): Use new functions. Adjust condition
1804 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
1805 regs when using out-of-line restore only when shrink wrapping.
1807 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1810 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
1811 calls to cgraph_node_name in xstrdup.
1812 (ipa_make_edge_direct_to_target): Ditto.
1813 * cgraph.c (dump_cgraph_node): Ditto.
1814 * tree-sra.c (convert_callers_for_node): Ditto.
1815 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
1816 * ipa-cp.c (perhaps_add_new_callers): Ditto.
1817 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
1818 (cgraph_materialize_all_clones): Ditto.
1819 * ipa-inline.c (report_inline_failed_reason): Ditto.
1820 (want_early_inline_function_p): Ditto.
1821 (edge_badness): Ditto.
1822 (update_edge_key): Ditto.
1823 (flatten_function): Ditto.
1824 (ipa_inline): Ditto.
1825 (inline_always_inline_functions): Ditto.
1826 (early_inline_small_functions): Ditto.
1828 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1831 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
1832 constraints 0 and 1.
1834 012-04-30 Jan Hubicka <jh@suse.cz>
1836 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
1837 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
1838 (cgraph_add_to_same_comdat_group): Remove.
1839 (cgraph_add_asm_node): Move to cgraphunit.c.
1840 (cgraph_make_decl_local): Move to symtab.c
1841 (cgraph_make_node_local_1): Update.
1842 (cgraph_can_remove_if_no_direct_calls_and): Update.
1843 (used_from_object_file_p): Update.
1844 (resolution_used_from_other_file_p): Move to symtab.c
1845 (cgraph_used_from_object_file_p): move to symtab.c
1846 (verify_cgraph_node): Verify same comdat groups.
1847 * cgraph.h (cgraph_asm_node): Rename to ...
1848 (asm_node): ... this one.
1849 (cgraph_asm_nodes): Rename to ...
1850 (asm_nodes): ... this one.
1851 (symtab_add_to_same_comdat_group): New function.
1852 (symtab_dissolve_same_comdat_group_list): New function.
1853 (symtab_used_from_object_file_p): Declare.
1854 (symtab_make_decl_local): Declare.
1855 (cgraph_add_to_same_comdat_group): Remove.
1856 (cgraph_add_asm_node): Remove.
1857 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
1859 (cgraph_finalize_compilation_unit): Rename to ...
1860 (finalize_compilation_unit): ... this one.
1861 (cgraph_optimize): Rename to ....
1862 (compile): ... this one.
1863 (add_asm_node): Declare.
1864 (fixup_same_cpp_alias_visibility): Declare.
1865 (cgraph_make_decl_local): Remove.
1866 (varpool_assemble_pending_decls): Rename to ...
1867 (varpool_output_variables): ... this one.
1868 (varpool_remove_unreferenced_decls): Remove.
1869 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
1870 (preserve_function_body_p): Make static.
1871 * toplev.c (compile_file): Update comments; update.
1872 * cgraphunit.c: Update comments.
1873 (cgraph_expand_all_functions): Rename to ...
1874 (expand_all_functions): ... this one; update.
1875 (cgraph_mark_functions_to_output): Rename to ...
1876 (mark_functions_to_output): ... this one; cleanup.
1877 (cgraph_output_pending_asms): Remove prototype.
1878 (asm_nodes, asm_last_node): New static vars.
1879 (cgraph_process_new_functions): Update.
1880 (cgraph_reset_node): Cleanup; add comment.
1881 (cgraph_add_new_function): Update.
1882 (cgraph_output_pending_asms): Rename to ...
1883 (output_asm_statements): ... this one.
1884 (add_asm_node): New function.
1885 (fixup_same_cpp_alias_visibility): New function based on code
1886 in cgraph_analyze_function.
1887 (cgraph_analyze_function): Use it.
1888 (cgraph_order_sort): Update.
1889 (cgraph_output_in_order): Update.
1890 (cgraph_function_versioning): Update.
1891 (cgraph_optimize): Rename to ...
1892 (compile): ... this one; initialize streamer hooks here.
1893 (cgraph_finalize_compilation_unit): Rename to ...
1894 (finalize_compilation_unit): ... this one; do not initialize streamer
1896 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
1897 * dwarf2out.c: Update ocmment.
1898 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
1899 * method.c (use_thunk): Likewise.
1900 * semantics.c (maybe_add_lambda_conv_op): Likewise.
1901 * decl2.c (maybe_emit_vtables): Likewise.
1902 (cp_write_global_declarations): Use finalize_compilation_unit.
1903 * parser.c (cp_parser_asm_definition): Use add_asm_node.
1904 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
1905 * c-decl.c (c_write_global_declarations): Use
1906 finalize_compilation_unit.
1907 * langhooks.c (write_global_declarations): Update.
1908 * ipa.c (cgraph_externally_visible_p): Update.
1909 (dissolve_same_comdat_group_list): Remove.
1910 (function_and_variable_visibility): Update.
1911 * symtab.c: Inlcude lto-streamer.h and rtl.h
1912 (ld_plugin_symbol_resolution_names): New.
1913 (symtab_add_to_same_comdat_group): New.
1914 (symtab_dissolve_same_comdat_group_list): New.
1915 (resolution_used_from_other_file_p): Move here from cgraph.c
1916 (symtab_used_from_object_file_p): New.
1917 (symtab_make_decl_local): New.
1918 * passes.c (register_pass): Update comments.
1919 * c-parser.c (c_parser_asm_definition): Update.
1920 * varpool.c (varpool_analyze_node): Use
1921 fixup_same_cpp_alias_visibility.
1922 (varpool_remove_unreferenced_decls): Make static.
1923 (varpool_assemble_pending_decls): Rename to ...
1924 (varpool_output_variables): ... this one; call
1925 varpool_remove_unreferenced_decls.
1926 (varpool_used_from_object_file_p): Remove.
1928 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1931 * c-typeck.c (build_array_ref): Call
1932 convert_vector_to_pointer_for_subscript.
1933 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
1935 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1937 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
1938 to compile-time "mode == <MODE>mode" checks.
1939 (and splitter): Ditto.
1941 2012-04-30 Richard Henderson <rth@redhat.com>
1943 * config/arm/arm.md (UNSPEC_LL): New.
1944 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
1945 (arm_load_exclusivedi): Use %H0.
1947 2012-04-30 Jason Merrill <jason@redhat.com>
1949 * dwarf2out.c (comdat_symbol_id): Add const.
1950 (union die_symbol_or_type_node): Add const to die_symbol.
1951 (output_die_symbol, output_die, output_comp_unit): Adjust.
1953 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
1955 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
1956 * config/arm/neon.md (negdi2_neon): New insn.
1957 Also add splitters for core and NEON registers.
1959 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
1961 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
1962 (arm_print_operand): Add 'x' format.
1963 * config/arm/constraints.md (Dn): Allow const_int.
1964 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
1965 Use 'x' format to print constants.
1966 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
1967 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
1969 (movdi_vfp_cortexa8): Likewise.
1971 2012-04-30 Ian Bolton <ian.bolton@arm.com>
1972 Sameera Deshpande <sameera.deshpande@arm.com>
1973 Greta Yorsh <greta.yorsh@arm.com>
1975 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
1976 * config/arm/arm.c (ldm_stm_operation_p): New function.
1977 * config/arm/predicates.md (load_multiple_operation): Update predicate.
1978 (store_multiple_operation): Likewise.
1980 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
1981 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
1982 * config/arm/predicates.md (load_multiple_operation): Add arguments.
1983 (store_multiple_operation): Likewise.
1985 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
1987 * config/i386/i386.md (and<mode>3): Expand masking operations with
1988 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
1989 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
1991 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1993 Add -Wvarargs option
1994 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
1995 argument for the various warning_at calls.
1996 * docs/invoke.texi: Update the documentation.
1998 2012-04-30 Dodji Seketeli <dodji@redhat.com>
2000 Switch -ftrack-macro-expansion=2 on by default.
2001 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
2004 Fix va_start related location
2005 * builtins.c (fold_builtin_next_arg): Unwinds to the first
2006 location in real source code.
2008 Make conversion warnings work on NULL with -ftrack-macro-expansion
2009 * input.h (expansion_point_location_if_in_system_header): Declare
2011 * input.c (expansion_point_location_if_in_system_header): Define it.
2013 Fix -Wuninitialized for -ftrack-macro-expansion
2014 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
2015 declaration. Use linemap_location_before_p for source locations.
2017 Strip "<built-in>" loc from displayed expansion context
2018 * input.c (expand_location_1): When expanding to spelling location
2019 in a context of a macro expansion, skip reserved system header
2020 locations. Update comments. * tree-diagnostic.c
2021 (maybe_unwind_expanded_macro_loc): Likewise.
2023 Make expand_location resolve to locus in main source file
2024 * input.c (expand_location_1): New. Takes a parameter to choose
2025 whether to resolve the location to spelling or expansion point.
2026 Was factorized from ...
2027 (expand_location): ... here.
2028 (expand_location_to_spelling_point): New. Implemented in terms of
2030 * diagnostic.c (diagnostic_build_prefix): Use the new
2031 expand_location_to_spelling_point instead of expand_location.
2033 Fix PCH crash on GTYed pointer-to-scalar field of a struct
2034 * gengtype.c (write_types_process_field): Force second argument of
2035 the call to the PCH object hierarchy walker to be 'x'.
2037 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
2039 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
2040 predicate to discriminate types.
2042 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2044 * doc/invoke.texi (Wmissing-format-attribute): Document as an
2045 alias of Wsuggest-attribute=format.
2046 * c-typeck.c (convert_for_assignment): Replace
2047 Wmissing-format-attribute with Wsuggest-attribute=format.
2048 (digest_init): Likewise.
2050 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2052 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
2053 * common.opt (Wmissing-noreturn): Alias of
2054 -Wsuggest-attribute=noreturn.
2056 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
2059 * config/cris/cris.md (andqu): New peephole2.
2060 (andu): Tweak head comment.
2062 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
2063 Steven Bosscher <steven@gcc.gnu.org>
2064 Maxim Kuvyrkov <maxim@codesourcery.com>
2066 PR tree-optimization/38785
2067 * common.opt (ftree-partial-pre): New option.
2068 * doc/invoke.texi: Document it.
2069 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
2070 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
2072 (execute_pre): Use flag_tree_partial_pre.
2074 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2077 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
2080 2012-04-27 Ollie Wild <aaw@google.com>
2082 * doc/invoke.texi (Wliteral-suffix): Document new option.
2084 2012-04-27 Tom Tromey <tromey@redhat.com>
2086 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
2087 (dwarf_tag_name): Use get_DW_TAG_name.
2088 (dwarf_attr_name): Use get_DW_AT_name.
2089 (dwarf_form_name): Use get_DW_FORM_name.
2090 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
2092 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
2094 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
2095 arguments are -1 and 0, by negating the result of the conditional.
2097 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
2100 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
2102 2012-04-27 Richard Guenther <rguenther@suse.de>
2104 * tree-flow.h (is_hidden_global_store): Remove.
2105 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
2106 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
2107 (stmt_may_clobber_global_p): Likewise.
2108 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
2109 (stmt_may_clobber_global_p): Likewise.
2110 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
2111 stmt_may_clobber_global_p.
2112 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
2114 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
2116 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
2119 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
2120 reorganize some fields and update comments. Rename bit_test_uniq
2121 and bit_test_count to uniq resp. count. Remove bit_test_bb.
2122 (collect_switch_conv_info): New function, collects info about a
2123 GIMPLE_SWITCH into a struct switch_conv_info.
2124 (check_range): Simplify to use pre-recorded info. Fix think-o in
2125 range-branch ratio check.
2126 (check_process_case): Remove function.
2127 (check_all_empty_except_final): New function, verifies that all
2128 non-final basic blocks are empty.
2129 (process_switch): Simplify to use pre-recorded info. Call
2130 collect_switch_conv_info to do that. Assert that degenerate switch
2131 statements have been cleaned up.
2133 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
2136 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
2138 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2141 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
2143 2012-04-27 Tom de Vries <tom@codesourcery.com>
2145 PR tree-optimization/51879
2146 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
2147 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
2149 (defs_to_varying): ... here. Don't set use_processed.
2150 (visit_reference_op_call): Handle gimple_vdef.
2151 Handle case that lhs is NULL_TREE.
2152 (visit_use): Use mark_use_processed. Handle calls with side-effect
2153 using visit_reference_op_call.
2155 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
2157 * sched-deps.c (fixup_sched_groups): Rename to...
2158 (chain_to_prev_insn): ...this.
2159 (chain_to_prev_insn_p): New function.
2160 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
2162 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
2164 * sched-int.h (_haifa_insn_data): Move priority_status.
2166 (INSN_MODEL_INDEX): New macro.
2167 * haifa-sched.c (insn_delay): New function.
2168 (sched_regno_pressure_class): Update commentary.
2169 (mark_regno_birth_or_death): Pass the liveness bitmap and
2170 pressure array as arguments, instead of using curr_reg_live and
2171 curr_reg_pressure. Only update the pressure if the bit in the
2172 liveness set has changed.
2173 (initiate_reg_pressure_info): Always trust the live-in set for
2174 SCHED_PRESSURE_MODEL.
2175 (initiate_bb_reg_pressure_info): Update call to
2176 mark_regno_birth_or_death.
2177 (dep_list_size): Take the list as argument.
2178 (calculate_reg_deaths): New function, extracted from...
2179 (setup_insn_reg_pressure_info): ...here.
2180 (MODEL_BAR): New macro.
2181 (model_pressure_data, model_insn_info, model_pressure_limit)
2182 (model_pressure_group): New structures.
2183 (model_schedule, model_worklist, model_insns, model_num_insns)
2184 (model_curr_point, model_before_pressure, model_next_priority):
2186 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
2187 (MODEL_INSN_INFO, MODEL_INSN): New macros.
2188 (model_index, model_update_limit_points_in_group): New functions.
2189 (model_update_limit_points, model_last_use_except): Likewise.
2190 (model_start_update_pressure, model_update_pressure): Likewise.
2191 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
2192 (model_excess_cost, model_dump_pressure_points): Likewise.
2193 (model_set_excess_costs): Likewise.
2194 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
2195 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
2196 schedule as an alternative tie-breaker. Update the call to
2198 (ready_sort): Call model_set_excess_costs.
2199 (update_register_pressure): Update call to mark_regno_birth_or_death.
2200 Rely on that function to check liveness rather than doing it here.
2201 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
2202 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
2203 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
2204 (model_record_pressure, model_record_pressures): New functions.
2205 (model_record_final_pressures, model_add_successors_to_worklist)
2206 (model_promote_predecessors, model_choose_insn): Likewise.
2207 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
2208 (model_start_schedule, model_finalize_pressure_group): Likewise.
2209 (model_end_schedule): Likewise.
2210 (schedule_insn): Say when we're scheduling the next instruction
2211 in the model schedule.
2212 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
2213 (queue_to_ready): Do not add instructions that are
2214 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
2215 Always allow the next instruction in the model schedule to be added.
2216 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
2217 and delay for SCHED_PRESSURE_MODEL too.
2218 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
2219 SCHED_PRIORITY_MODEL, but also take the DFA into account.
2220 (schedule_block): Call model_start_schedule and model_end_schedule.
2221 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
2222 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
2223 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
2225 (sched_finish): Update accordingly.
2226 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
2227 to SCHED_PRESSURE_MODEL.
2228 (add_jump_dependencies): Update call to dep_list_size.
2229 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
2230 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
2231 to SCHED_PRESSURE_MODEL.
2232 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
2233 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
2234 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
2235 handling to SCHED_PRESSURE_MODEL.
2237 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
2239 * common.opt (fsched-pressure-algorithm=): New option.
2240 * flag-types.h (sched_pressure_algorithm): New enum.
2241 * sched-int.h (sched_pressure_p): Replace with...
2242 (sched_pressure): ...this new variable.
2243 * haifa-sched.c (sched_pressure_p): Replace with...
2244 (sched_pressure): ...this new variable.
2245 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
2246 (update_reg_and_insn_max_reg_pressure, schedule_insn)
2247 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
2248 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
2249 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
2250 (sched_analyze_insn): Likewise.
2251 * sched-rgn.c (schedule_region): Likewise.
2252 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
2254 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
2256 * PR middle-end/52997
2257 * ira.c (find_moveable_pseudos): Call resize_reg_info.
2260 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
2261 * expr.c (convert_move): Honor unsignedp when extending partial int
2263 * genmodes.c (complete_mode): Don't clear component field of partial
2265 (emit_mode_inner): Don't emit it however.
2266 (calc_wider_mode): Partial int modes widen to their component.
2268 2012-04-26 David S. Miller <davem@davemloft.net>
2270 * config/sparc/niagara4.md: New file.
2271 * config/sparc/sparc.md: Include it.
2272 * config/sparc/sparc.c (niagara4_costs): New processor costs.
2273 (sparc_option_override): Use it.
2274 (sparc_use_sched_lookahead): Return 2 for niagara4.
2275 (sparc_issue_rate): Likewise.
2277 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
2278 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
2279 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2280 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
2281 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
2282 alignaddrldi_vis): Set type to gsr.
2283 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
2284 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
2285 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
2286 v<vis3_shift_patname><mode>3, fmean16_vis,
2287 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
2288 fucmp<code>8<P:mode>_vis): Set type to fga.
2289 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
2290 * config/sparc/niagara.md: Likewise.
2291 * config/sparc/niagara2.md: Likewise.
2292 * config/sparc/ultra3.md: Likewise, and fix type matching for
2293 us3_ialuX reservation.
2295 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2297 * reload.c (find_reloads): Change the loop nesting when trying an
2298 alternative with swapped operands.
2300 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2302 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
2303 comment. Delete unused parameter first_exp_point_map.
2304 (virt_loc_aware_diagnostic_finalizer): Update call.
2306 2012-04-26 Michael Hope <michael.hope@linaro.org>
2307 Richard Earnshaw <rearnsha@arm.com>
2309 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
2310 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
2311 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
2312 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
2314 2012-04-25 Sriraman Tallam <tmsriram@google.com>
2316 * doc/extend.texi: Document avx2 support.
2317 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
2319 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
2322 * config/cris/cris.md ("*andhi_lowpart_v32")
2323 ("*andqi_lowpart_v32"): Change first input-only operand from
2324 a (match_operand ...) to (match_dup 0). Drop alternatives with
2325 const_int-matching constraints for redundancy.
2326 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
2327 three-operand alternative.
2329 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2332 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
2333 instead expand it as zero extension.
2335 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
2338 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
2340 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2342 * common.opt (flag_debug_types_section): Default to 0.
2343 (dwarf_version): Default to 4.
2344 (dwarf_record_gcc_switches): Default to 1.
2345 (dwarf_strict): Default to 0.
2346 * toplev.c (process_options): Don't handle dwarf_strict
2347 or dwarf_version here.
2348 * config/vxworks.c (vxworks_override_options): Don't
2349 test whether dwarf_strict or dwarf_version are negative,
2350 instead test !global_options_set.x_dwarf_*.
2351 * config/darwin.c (darwin_override_options): Default to
2353 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
2354 and -fno-debug-types-section are now the default.
2356 2012-04-25 Jan Hubicka <jh@suse.cz>
2358 * cgraphunit.c: Update toplevel comment.
2359 (tree_rest_of_compilation): Merge into cgraph_expand_function.
2360 (cgraph_analyze_function): Make static.
2361 (cgraph_decide_is_function_needed): Make static.
2362 (cgraph_add_new_function): Use expand_function instead of
2363 rest_of_compilation.
2364 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
2365 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
2367 (cgraph_inline_p): Remove.
2368 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
2369 (init_cgraph): Add comment.
2370 * cgraphbuild.c (record_reference, mark_address, mark_load,
2371 mark_store): Do not call analyze_expr hook.
2372 * cgraph.c: Update toplevel comment.
2373 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
2374 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
2375 Move fere from cgraphunit.c
2376 (cgraph_mark_force_output_node): Move to cgraph.h
2377 * cgraph.h: Reorder so the comments match the function placement.
2378 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
2379 (cgraph_mark_force_output_node): Move here from cgraph.c
2380 * tree.c (free_lang_data): Do not clear analyze_expr hook.
2381 * ipa-inline-transform.c (preserve_function_body_p): New function.
2382 (inline_transform): Update.
2383 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
2384 * langhooks.h (lang_hooks_for_callgraph): Remove.
2385 (lang_hooks): Remove callgraph.
2386 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
2387 * varpool.c: Remove out of date comment.
2388 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
2389 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
2391 2012-04-25 Jan Hubicka <jh@suse.cz>
2394 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
2395 forward declaration.
2396 (cgraph_finalize_function): Finalize them here.
2397 * symtab.c (dump_symtab): Dump ctors and dtors.
2399 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2402 * stor-layout.c (get_best_mode): Don't return mode with bitsize
2403 larger than maxbits. Don't compute maxbits modulo align.
2404 Also check that unit bytes long store at bitpos / unit * unit
2405 doesn't affect bits beyond bitregion_end.
2406 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
2407 would not fit into bitregion_start ... bitregion_end + 1 bit region.
2408 (store_split_bit_field): Decrease unit close to end of bitregion_end
2409 if access is restricted in order to avoid mutual recursion.
2411 PR tree-optimization/53058
2412 * double-int.h (double_int_max_value, double_int_min_value): New
2414 * double-int.c (double_int_max_value, double_int_min_value): New
2416 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
2417 or GT_EXPR with double_int_max_value instead of double_int_mask.
2419 2012-04-25 Richard Guenther <rguenther@suse.de>
2421 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
2422 * tree-vect-loop.c (vect_transform_loop): Adjust.
2423 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
2424 the maximum number of iterations for the epilogue loop.
2425 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
2427 2012-04-25 Jakub Jelinek <jakub@redhat.com>
2430 * c-typeck.c (set_nonincremental_init,
2431 set_nonincremental_init_from_string): Pass true instead of false
2432 as IMPLICIT to add_pending_init.
2434 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2436 * c-typeck.c (pop_init_level): Improve diagnostics.
2438 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
2440 * compare-elim.c (try_eliminate_compare): Also handle operands with
2441 implicit extensions.
2443 2012-04-25 Alan Modra <amodra@gmail.com>
2445 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
2446 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
2447 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
2448 (no_global_regs_above): Delete.
2449 (no_global_regs): New function.
2450 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
2451 value for load multiple test.
2452 (savres_routine_syms): Increase size.
2453 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
2454 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
2455 rather than a number of boolean flags. Update all callers.
2456 (rs6000_savres_routine_name): Generate vector save/restore names.
2457 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
2458 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
2459 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
2460 and using_store_multiple. Expand uses. Don't always use r11 as
2461 frame reg when needed for out-of-line saves. Set up initial offset
2462 for out-of-line vector saves when buying stack frame. Handle pointer
2463 reg setup for out-of-line fp save. Emit call to out-of-line vector
2464 save function. Choose r11 or r12 for vrsave reg when available for
2466 (rs6000_output_function_prologue): Don't emit .extern for ELF.
2467 (rs6000_emit_epilogue): Choose a better frame reg when restoring
2468 from back-chain to suit out-of-line vector restore functions. Emit
2469 call to out-of-line vector restore function. Adjust register used
2470 for cr restore. Tweak pointer register setup for gpr restore.
2471 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
2473 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
2474 (V_SAVE_INLINE): Define.
2475 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
2477 2012-04-25 Alan Modra <amodra@gmail.com>
2479 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
2480 out-of-line save/restore for large frames. Don't disable
2481 out-of-line saves on ABI_AIX when using static chain reg.
2482 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
2483 clobber static chain reg, and tweak for out-of-line gpr saves
2486 2012-04-25 Alan Modra <amodra@gmail.com>
2488 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
2489 (rs6000_emit_prologue): Use the above to catch register overlap.
2491 2012-04-25 Alan Modra <amodra@gmail.com>
2493 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
2494 decl. Move logic selecting update reg to callers. Update all callers.
2495 (rs6000_emit_allocate_stack): Add copy_off param.
2496 (emit_frame_save): Don't handle reg+reg addressing.
2497 (ptr_regno_for_savres): New function, extracted from..
2498 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
2499 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
2500 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
2501 frame offset adjustment for out-of-line save with copy from sp.
2502 Simplify condition controlling whether cr is saved early or
2503 late. Use ptr_regno_for_savres to verify correct reg is set
2504 up for out-of-line saves. Pass the actual pointer reg used to
2505 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
2506 function. Rearrange spe vars so code is similar to that
2507 elsewhere in this function. Don't update frame_off when spe
2508 save code will restore r11. Use emit_frame_save for spe and
2509 gpr saves. Consolidate darwin out-of-line gpr setup with that
2510 for other abis. Don't assume frame_offset is zero and frame
2511 reg is sp when setting up altivec reg saves, and calculate
2512 exact offset requirement.
2513 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
2514 spe restore code. Consolidate darwin out-of-line gpr setup
2515 with that for other abis.
2517 2012-04-25 Alan Modra <amodra@gmail.com>
2519 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
2520 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
2522 (emit_frame_save): Delete frame_ptr param. Rename total_size to
2524 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
2525 and emit_frame_save calls. Cope with possibly missing note.
2527 2012-04-24 Sriraman Tallam <tmsriram@google.com>
2529 * config/i386/i386.c (build_processor_model_struct): New function.
2530 (make_var_decl): New function.
2531 (fold_builtin_cpu): New function.
2532 (ix86_fold_builtin): New function.
2533 (make_cpu_type_builtin): New function.
2534 (ix86_init_platform_type_builtins): New function.
2535 (ix86_expand_builtin): Expand new builtins by folding them.
2536 (ix86_init_builtins): Make new builtins to detect CPU type.
2537 (TARGET_FOLD_BUILTIN): New macro.
2538 (IX86_BUILTIN_CPU_INIT): New enum value.
2539 (IX86_BUILTIN_CPU_IS): New enum value.
2540 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
2541 * config/i386/i386-builtin-types.def: New function type.
2542 * testsuite/gcc.target/builtin_target.c: New testcase.
2543 * doc/extend.texi: Document builtins.
2545 2012-04-24 Olivier Hainque <hainque@adacore.com>
2547 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
2548 * toplev.c (process_options): Default to dwarf_version 2.
2549 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
2550 and dwarf_version 2.
2552 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2554 * tree-pretty-print.h (default_tree_printer): Do not declare.
2555 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
2557 (default_tree_diagnostic_starter): Make static.
2558 (default_tree_printer): Move to here. Make static.
2559 (tree_diagnostics_defaults): New.
2560 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
2561 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
2562 * toplev.c: Do not include tree-pass.h.
2563 (default_tree_printer): Move from here.
2564 (general_init): Use tree_diagnostics_defaults.
2566 2012-04-24 Chao-ying Fu <fu@mips.com>
2568 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
2569 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
2570 * config/mips/gnu-user.h
2571 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
2572 (GNU_USER_TARGET_LINK_SPEC): New define.
2573 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2574 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
2575 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
2576 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
2577 GNU_USER_TARGET_ENDFILE_SPEC.
2578 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
2579 (GNU_USER_TARGET_LINK_SPEC): New define.
2580 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
2581 * config/mips/linux-common.h: New file.
2583 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2586 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
2587 (altivec_build_resolved_builtin): Call fully_fold_convert.
2589 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
2592 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
2594 2012-04-24 Richard Guenther <rguenther@suse.de>
2596 PR tree-optimization/53085
2597 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
2600 2012-04-24 Richard Guenther <rguenther@suse.de>
2602 * tree-if-conv.c (main_tree_if_conversion): Move bb under
2605 2012-04-24 Jim Meyering <meyering@redhat.com>
2607 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
2608 absence of an define_enum call.
2610 2012-04-24 Richard Guenther <rguenther@suse.de>
2612 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
2613 the epilogue loop is not re-used as unvectorized version
2614 record the its maximum number of iterations.
2616 2012-04-24 Andrew Pinski <apinski@cavium.com>
2618 * tree-ssa-forwprop.c (simplify_bitwise_binary):
2619 Don't directly use def1/def2.
2621 2012-04-24 Richard Guenther <rguenther@suse.de>
2623 PR tree-optimization/53098
2624 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
2627 2012-04-24 Andrew Pinski <apinski@cavium.com>
2630 * tree-ssa-forwprop.c (defcodefor_name): New function.
2631 (simplify_bitwise_binary): Use defcodefor_name instead of manually
2632 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
2633 Simplify "(~X | Y) & X" to "X & Y" and
2634 "(~X & Y) | X" to "X | Y".
2636 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2638 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
2639 validate_change to add clobbers if IN_GROUP is nonzero.
2640 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
2641 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
2643 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
2645 * config/s390/s390.c (insn_invalid_p): Likewise.
2647 2012-04-24 Jakub Jelinek <jakub@redhat.com>
2650 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
2651 (output_addressed_constants): Likewise.
2654 * varasm.c (get_section): Don't ICE for section conflicts with
2655 built-in section kinds.
2657 2012-04-23 DJ Delorie <dj@redhat.com>
2659 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
2660 (LIBSTDCXX): Change to CPP2.
2662 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
2665 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
2668 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
2670 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
2671 (*addsi_2_zext): Ditto.
2672 (*add<mode>_3): Ditto.
2673 (*addsi_3_zext): Ditto.
2674 (*add<mode>_5): Ditto.
2676 2012-04-23 Andrew Pinski <apinski@cavium.com>
2678 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
2679 (C & B) to (A OP0) & B.
2681 2012-04-23 Martin Jambor <mjambor@suse.cz>
2683 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
2684 temporaries created for a bitfield (reverting revision 122014).
2686 2012-04-23 Richard Guenther <rguenther@suse.de>
2688 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
2689 the condition using is_gimple_condexpr and avoid the not necessary
2691 (set_prologue_iterations): Likewise.
2692 (vect_loop_versioning): Likewise.
2694 2012-04-23 Richard Guenther <rguenther@suse.de>
2696 PR tree-optimization/53070
2697 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
2698 (main_tree_if_conversion): Verify we succeeded in that.
2700 2012-04-23 Jan Hubicka <jh@suse.cz>
2702 * lto-symtab.c (lto_cgraph_replace_node): Do not call
2703 mark_reahcable_node.
2704 * cgraph.c (cgraph_remove_node): Do not clear reachable.
2705 (cgraph_mark_reachable_node): Remove.
2706 (cgraph_mark_force_output_node): Do not set reachable.
2707 (dump_cgraph_node): Do not dump reachable.
2708 (cgraph_create_virtual_clone): Do not set reachable.
2709 * cgraph.h (cgraph_node): Remove reachable flag.
2710 (varpool_node): Remove reachable flag.
2711 (cgraph_mark_if_needed): Remove.
2712 (cgraph_mark_reachable_node): Remove.
2713 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
2714 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
2716 (cgraph_add_new_function): Likewise.
2717 (cgraph_mark_if_needed): Remove.
2718 (cgraph_analyze_function): Do not set target as reachable.
2719 (process_function_and_variable_attributes): Do not care about
2721 (cgraph_analyze_functions): Do not set reachable flags.
2722 (cgraph_mark_functions_to_output): Do not check reachability.
2723 (cgraph_copy_node_for_versioning): Do not set reachable flag.
2724 (dbxout_expand_expr): Update.
2725 * c-decl.c (merge_decls): Do not track changed externs.
2726 * ipa.c: Include pointer-set.h
2727 (enqueue_cgraph_node): Use reachable pointer set.
2728 (process_references): Likewise.
2729 (cgraph_remove_unreachable_nodes): Likewise.
2730 (whole_program_function_and_variable_visibility): Do not recompute
2732 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
2734 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
2736 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
2738 2012-04-23 Richard Guenther <rguenther@suse.de>
2741 * c-typeck.c (build_binary_op): Fix typo.
2743 2012-04-23 Jakub Jelinek <jakub@redhat.com>
2745 PR tree-optimizations/52891
2746 * tree-vect-patterns.c (adjust_bool_pattern): Use
2747 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
2748 but with non-standard precision.
2750 2012-04-22 Jan Hubicka <jh@suse.cz>
2752 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
2755 2012-04-22 Jan Hubicka <jh@suse.cz>
2757 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
2758 * cgraphbuild.c (record_reference, record_type_list, mark_address,
2759 mark_load, mark_store): Do not mark varpool nodes as needed.
2760 * cgraph.c (cgraph_new_nodes): Remove.
2761 (cgraph_create_function_alias): Do not mark nodes as reachable.
2762 (cgraph_add_thunk): Likewise.
2763 (cgraph_mark_reachable_node): Do not manage the queue.
2764 * cgraph.h (cgraph_node): Remove next_needed.
2765 (varpool_nodes_queue): Remove next_needed and prev_needed.
2766 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
2767 (cgraph_new_nodes): Declare.
2768 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
2769 (varpool_analyze_pending_decls): Remove.
2770 (varpool_analyze_node): New.
2771 (varpool_mark_needed_node): Remove.
2772 (varpool_first_variable, varpool_next_variable): New inlines.
2773 (varpool_first_static_initializer, varpool_next_static_initializer):
2775 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
2776 (varpool_first_defined_variable): New inline.
2777 (varpool_next_defined_variable): New inline
2778 (FOR_EACH_VARIABLE): Reimplement.
2779 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
2780 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
2782 * cgraphunit.c (cgraph_new_nodes): Declare here.
2783 (enqueue_node): New function.
2784 (cgraph_process_new_functions): update for new
2785 node set; when constructing cgraph enqueue node for processing.
2786 (cgraph_add_new_function): Use new node set.
2787 (process_function_and_variable_attributes): Do not set varpool needed
2789 (referred_to_p): New function.
2790 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
2791 when varpool is in construction.
2792 (cgraph_analyze_functions): Rewrite.
2793 (cgraph_expand_all_functions): Update.
2794 (cgraph_output_in_order): Do not analyze pending decls; do not set
2796 (cgraph_optimize): Do not analyze pending decls.
2797 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
2798 in other partition; do not mark node as needed.
2799 * dwarf2out.c (reference_to_unused): Use analyzed flag.
2800 (premark_types_used_by_global_vars_helper): Likewise.
2801 * ipa.c (process_references): Do not call varpool_mark_needed_node.
2802 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
2804 (function_and_variable_visibility): Do not mark node as needed.
2805 (whole_program_function_and_variable_visibility): Likewise.
2806 * Makefile.in (gt-varpool.h): No longer needed.
2807 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
2808 (ipa_write_summaries): Do not use needed flag.
2809 * varpool.c: Do not include gt-varpool.h
2810 (x_varpool_nodes_queue, x_varpool_last_needed_node,
2811 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
2812 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
2814 (varpool_remove_node): Do not update the lists.
2815 (dump_varpool_node): Do not dump needed flag.
2816 (varpool_enqueue_needed_node): Remove.
2817 (varpool_mark_needed_node): Remove.
2818 (varpool_reset_queue): Remove.
2819 (varpool_finalize_decl): Move to cgraphunit.c
2820 (varpool_analyze_node): New functions based on former
2821 varpool_analyze_pending_decls.
2822 (varpool_analyze_pending_decls): Remove.
2823 (varpool_assemble_decl): Do not update the lists.
2824 (enqueue_node): New function.
2825 (varpool_remove_unreferenced_decls): Rewrite.
2826 (varpool_empty_needed_queue): Remove.
2827 (add_new_static_var): Do not mark node as needed.
2828 (varpool_create_variable_alias): Handle expansion state
2830 * except.c (output_ttype): Do not mark node as needed.
2831 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
2832 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
2834 * tree-switch-conversion.c (build_one_array): Likewise.
2836 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2839 * doc/invoke.texi (pedantic): Rename to Wpedantic.
2840 * common.opt (Wpedantic): New.
2841 (pedantic): Alias Wpedantic.
2842 * diagnostic.c (warning_at): Likewise.
2843 * c-decl.c (diagnose_mismatched_decls): Likewise.
2844 (build_array_declarator): Likewise.
2845 (mark_forward_parm_decls):
2846 (check_bitfield_type_and_width): Likewise.
2847 (grokdeclarator): Likewise.
2848 (grokfield): Likewise.
2849 (finish_struct): Likewise.
2850 (build_enumerator): Likewise.
2851 (store_parm_decls_oldstyle): Likewise.
2852 (declspecs_add_qual): Likewise.
2853 (declspecs_add_type): Likewise.
2854 (finish_declspecs): Likewise.
2855 * c-typeck.c (composite_type): Likewise.
2856 (comp_target_types): Likewise.
2857 (build_array_ref): Likewise.
2858 (pointer_diff): Likewise.
2859 (build_unary_op): Likewise.
2860 (build_conditional_expr): Likewise.
2861 (build_c_cast): Likewise.
2862 (convert_for_assignment): Likewise.
2863 (maybe_warn_string_init): Likewise.
2864 (digest_init): Likewise.
2865 (pop_init_level): Likewise.
2866 (set_init_index): Likewise.
2867 (c_finish_goto_label): Likewise.
2868 (c_finish_return): Likewise.
2869 (do_case): Likewise.
2870 (build_binary_op): Likewise.
2871 * c-parser.c (static): Likewise.
2872 (c_parser_external_declaration): Likewise.
2873 (c_parser_declaration_or_fndef): Likewise.
2874 (c_parser_static_assert_declaration_no_se): Likewise.
2875 (c_parser_enum_specifier): Likewise.
2876 (c_parser_struct_or_union_specifier): Likewise.
2877 (c_parser_struct_declaration): Likewise.
2878 (c_parser_alignas_specifier): Likewise.
2879 (c_parser_braced_init): Likewise.
2880 (c_parser_initelt): Likewise.
2881 (c_parser_compound_statement_nostart): Likewise.
2882 (c_parser_conditional_expression): Likewise.
2883 (c_parser_alignof_expression): Likewise.
2884 (c_parser_postfix_expression): Likewise.
2885 (c_parser_postfix_expression_after_paren_): Likewise.
2886 (c_parser_objc_class_instance_variables): Likewise.
2887 (c_parser_objc_method_definition): Likewise.
2888 (c_parser_objc_methodprotolist): Likewise.
2890 2012-04-22 Ian Lance Taylor <iant@google.com>
2892 * godump.c (go_output_typedef): Dump size of structs.
2894 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
2896 Correcting transform_to_exit_first_loop + fix to PR46886
2897 * tree-parloops.c (transform_to_exit_first_loop): Remove
2898 setting of number of iterations according to the loop pattern.
2899 Duplicate from entry to exit->src instead of loop->latch.
2900 (pallelize_loops): Remove the condition preventing do-while loops.
2901 * tree-cfg.c (bool bb_in_region_p): New.
2902 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
2903 Adjust redirection of the duplicated iteration.
2905 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
2908 * rtl.def (ADDRESS): Use "i" rather than "w".
2909 * rtl.h (find_base_term): Delete.
2910 (may_be_sp_based_p): Declare.
2911 * rtl.c (rtx_code_size): Remove ADDRESS special case.
2912 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
2913 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
2915 (find_base_term): Make static.
2916 (may_be_sp_based_p): New function.
2917 * dse.c (record_store): Use it.
2918 * store-motion.c (store_killed_in_insn): Likewise.
2920 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
2922 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
2924 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2927 * c-typeck.c (inform_declaration): New.
2928 (build_function_call_vec): Do not pretty-print
2929 expressions when caret is enabled.
2930 (convert_arguments): Use inform_declaration.
2932 2012-04-20 Jim Meyering <meyering@redhat.com>
2934 * genmodes.c (make_complex_modes): Don't truncate a mode name of
2935 length 7 or more when prepending a "C". Suggested by Richard Guenther.
2937 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2939 PR rtl-optimization/44214
2940 * fold-const.c (exact_inverse): New function.
2941 (fold_binary_loc): Fold vector and complex division by constant into
2942 multiply by recripocal with flag_reciprocal_math; fold vector division
2943 by constant into multiply by reciprocal with exact inverse.
2945 2012-04-20 Jan Hubicka <jh@suse.cz>
2947 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
2949 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
2950 (cgraph_remove_node): Update.
2951 (cgraph_mark_needed_node): Remove.
2952 (cgraph_mark_force_output_node): New.
2953 (dump_cgraph_node): Do not dump needed flag.
2954 (cgraph_node_cannot_be_local_p_1): Update.
2955 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
2956 * cgraph.h (symtab_node_base): Add force_output flag.
2957 (cgraph_node): Remove needed flag.
2958 (varpool_node): Remove force_output flag.
2959 (cgraph_mark_needed_node): Remove.
2960 (cgraph_mark_force_output_node): New.
2961 (cgraph_only_called_directly_or_aliased_p,
2962 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
2963 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
2964 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
2965 (cgraph_add_new_function): Update.
2966 (cgraph_mark_if_needed): Update.
2967 (verify_cgraph_node): Update.
2968 (cgraph_analyze_function): Alias target is reachable.
2969 (process_function_and_variable_attributes): Update: externally_visible
2970 flag makes function reachable.
2971 (cgraph_analyze_functions): Update dumping.
2972 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2973 input_overwrite_node, input_varpool_node): Update streaming.
2974 * lto-streamer-out.c (produce_symtab): Use force_output.
2975 * ipa.c (process_references): Weakrefs must be processed.
2976 (cgraph_remove_unreachable_nodes): Likewise; update for new
2978 (varpool_externally_visible_p): Weakrefs are externally visible
2979 even if they are not.
2980 (function_and_variable_visibility): Update; when processing alias
2981 pair force the targets to be output.
2982 (whole_program_function_and_variable_visility): Use
2983 mark_reachable_node.
2984 * trans-mem.c (ipa_tm_mark_needed_node): Remove
2985 (ipa_tm_mark_force_output_node): New function.
2986 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2987 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
2989 * varasm.c (mark_decl_referenced): Update.
2990 (find_decl_and_mark_needed): Remove.
2991 (find_decl): New function.
2992 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
2993 alias targets as needed.
2994 (dump_tm_clone_pairs): Update.
2995 * tree-inline.c (copy_bb): Update check.
2996 * symtab.c (dump_symtab_base): Dump force_output.
2997 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
2998 * passes.c (execute_todo): Fix dumping.
2999 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
3000 (varpool_analyze_pending_decls): Alias target is reachable.
3001 (varpool_create_variable_alias): Finalize weakrefs.
3003 2012-04-20 Jakub Jelinek <jakub@redhat.com>
3006 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
3007 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
3008 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
3009 macros instead of constants.
3010 * dse.c (record_store): Check for SP ADDRESS by comparing
3011 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
3012 XEXP to be stack_pointer_rtx.
3014 2012-04-20 Richard Guenther <rguenther@suse.de>
3016 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
3017 update_call_from_tree when propagating into a call.
3019 2012-04-20 Alan Modra <amodra@gmail.com>
3021 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
3022 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
3023 sp_offset to frame_off. Move world save code earlier.
3025 2012-04-20 Richard Guenther <rguenther@suse.de>
3027 PR tree-optimization/53050
3028 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
3029 Do only one transform on COND_EXPRs at the same time.
3031 2012-04-19 Jan Hubicka <jh@suse.cz>
3033 * symtab.c (dump_symtab_base): Revert accidental checkin.
3035 2012-04-20 Alan Modra <amodra@gmail.com>
3038 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
3039 static chain, set REST_INLINE_FPRS too.
3041 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
3043 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
3046 2012-04-20 Richard Guenther <rguenther@suse.de>
3048 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
3049 loops that can never run more often than the vectorization factor.
3051 2012-04-19 Jan Hubicka <jh@suse.cz>
3053 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
3055 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
3057 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
3059 2012-04-19 Jim Meyering <meyering@redhat.com>
3061 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
3062 We verified above that the string(including trailing NUL) fits in buf,
3065 2012-04-19 Richard Guenther <rguenther@suse.de>
3067 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
3068 for dumping DECL_SECTION_NAME.
3070 2012-04-19 Michael Matz <matz@suse.de>
3073 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
3074 (struct tree_vector): Adjust GTY length.
3075 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
3077 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
3079 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
3080 caller emitted the length calulation already.
3081 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
3082 before handling any of the fields for structs.
3084 2012-04-19 Richard Guenther <rguenther@suse.de>
3086 PR tree-optimization/53031
3087 * tree-vrp.c (adjust_range_with_scev): Revert back to
3088 using max_loop_iterations.
3090 2012-04-19 Michael Matz <matz@suse.de>
3092 * diagnostic.c (emit_diagnostic): Move va_end call after user
3094 (warning, warning_at, pedwarn, permerror): Ditto.
3096 2012-04-19 Richard Guenther <rguenther@suse.de>
3098 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
3101 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
3104 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
3105 the case *(X+const).
3107 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3109 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
3111 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
3114 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
3115 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
3117 2012-04-19 Richard Guenther <rguenther@suse.de>
3119 PR rtl-optimization/44688
3120 * loop-iv.c (determine_max_iter): Only return max_iter.
3121 (iv_number_of_iterations): Also use the recorded loop bound
3122 on the maximum number of iterations.
3123 * loop-unroll.c (decide_unroll_runtime_iterations): Use
3124 max_iter to avoid unrolling loops that do not roll.
3125 (decide_unroll_stupid): Likewise.
3127 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
3129 * targhooks.c (default_case_values_threshold): Fix code style nit.
3131 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
3132 case range and type folding from here...
3133 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
3134 type, as documented in tree.def.
3136 2012-04-18 Jan Hubicka <jh@suse.cz>
3138 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
3140 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
3141 cgraph hash and same comdat groups.
3142 (cgraph_optimize): Verify symbol table.
3143 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
3144 (dissolve_same_comdat_group_list): Work on symtab nodes.
3145 (function_and_variable_visibility): Dissolve variable same comdat group
3147 * symtab.c: Include timevar.h
3148 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
3150 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
3152 * tree-switch-conversion.c (info): Remove global pass info.
3153 (check_range, check_process_case, check_final_bb, create_temp_arrays,
3154 free_temp_arrays, gather_default_values, build_constructors,
3155 array_value_type, build_one_array, build_arrays, gen_def_assigns,
3156 fix_phi_nodes, gen_inbound_check): Pass info around from ...
3157 (process_switch): ... here. Unify message format. Return a const
3158 char pointer to the failure reason message.
3159 (do_switchconv): Unify message format. Update process_switch usage.
3161 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
3162 * tree-cfg.c (edge_to_cases): Fix documentation.
3164 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
3166 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
3168 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3170 PR tree-optimization/52976
3171 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
3172 (possibly_move_powi): New function.
3173 (rewrite_expr_tree): Call possibly_move_powi.
3174 (rewrite_expr_tree_parallel): Likewise.
3175 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
3176 call add_to_ops_vec instead.
3178 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3180 PR tree-optimization/52976
3181 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
3182 (decrement_power): Likewise.
3183 (propagate_op_to_single_use): Likewise.
3184 (zero_one_operation): Handle __builtin_pow* calls in linearized
3185 expression trees; factor logic into propagate_op_to_single_use.
3186 (undistribute_ops_list): Allow operands with repeat counts > 1.
3188 2012-04-18 Richard Guenther <rguenther@suse.de>
3190 PR tree-optimization/44688
3191 * cfgloop.h (record_niter_bound): Declare.
3192 * tree-ssa-loop-niter.c (record_niter_bound): Export.
3193 Update the estimation with the upper bound here...
3194 (estimate_numbers_of_iterations_loop): ... instead of here.
3195 Do not forcefully reset a recorded upper bound.
3196 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
3197 Record the maximum number of loop iterations of the prologue loop.
3199 2012-04-18 Jan Hubicka <jh@suse.cz>
3201 * lto-symtab.c (lto_cgraph_replace_node): Update.
3202 * cgraphbuild.c (record_reference, record_type_list,
3203 record_eh_tables, mark_address, mark_load, mark_store): Update.
3204 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
3205 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
3207 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
3208 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
3209 * reload.c: Fix typo in comment.
3210 * rtlanal.c: Likewise.
3211 * tree-emultls.c (gen_emutls_addr): Update.
3212 * ipa-reference.c (analyze_function): Update.
3213 * cgraphunit.c (cgraph_analyze_function,
3214 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
3216 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
3217 (ipa_remove_reference): Likewise.
3218 (ipa_remove_all_refering): Rename to ...
3219 (ipa_remove_all_referring): ... this one; update.
3220 (ipa_dump_references): Update.
3221 (ipa_dump_referring): Update.
3222 (ipa_clone_references): Update.
3223 (ipa_clone_refering): Rename to ...
3224 (ipa_clone_referring): ... this one; update.
3225 (ipa_ref_cannot_lead_to_return): Update.
3226 (ipa_ref_has_aliases_p): Update.
3227 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
3229 (ipa_ref_type): Remove.
3230 (ipa_ref_ptr_u): Remove.
3231 (ipa_ref): Remove referencing, refered, refered_index, refering_type
3232 and refered_type; add referring, referred and referred_index.
3233 (ipa_ref_list): Rename refering to referring.
3234 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
3235 ipa_clone_references, ipa_clone_referring): Update prototypes.
3236 * lto-cgraph.c (referenced_from_other_partition_p): Update.
3237 (lto_output_ref): Update.
3238 (add_references): Update.
3239 (input_varpool_node): Update.
3240 (input_refs): Update.
3241 * ipa-ref-inline.h (ipa_ref_node): Update.
3242 (ipa_ref_varpool_node): Update.
3243 (ipa_ref_referring_node): Update.
3244 (ipa_ref_referring_varpool_node): Update.
3245 (ipa_ref_referring_ref_list): Update.
3246 (ipa_ref_referred_ref_list): Update.
3247 (ipa_ref_list_first_referring): Update.
3248 (ipa_empty_ref_list): Update.
3249 (ipa_ref_list_refering_iterate): Rename to ...
3250 (ipa_ref_list_referring_iterate): ... this one.
3251 * cse.c: Update comment.
3252 * ipa-utils.c (ipa_reverse_postorder): Update.
3253 * tree-ssa-alias.c: Update.
3254 * ipa-inline.c (reset_edge_caches): Update.
3255 (update_caller_keys): Update.
3256 * ipa-inline.h: Update comments.
3257 * jump.c: Update comment.
3258 * alias.c: Likewise.
3259 * ipa.c (process_references): Update.
3260 (cgraph_remove_unreachable_nodes): Likewise.
3261 (ipa_discover_readonly_nonaddressable_var): Likewise.
3262 (cgraph_address_taken_from_non_vtable_p): Likewise.
3263 * trans-mem.c (ipa_tm_execute): Update.
3264 * simplify-rtx.c: Fix comment.
3265 * rtl.c: Fix comment.
3266 * symtab.c (symtab_unregister_node): Update.
3267 * varpool.c (dump_varpool_node): Update.
3268 (varpool_analyze_pending_decls): Update.
3269 (assemble_aliases): Update.
3270 (varpool_for_node_and_aliases): Update.
3272 2012-04-18 Richard Guenther <rguenther@suse.de>
3274 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
3275 use_undefined_p parameter.
3276 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
3277 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
3279 (estimate_numbers_of_iterations): Likewise.
3280 (estimated_loop_iterations): Adjust.
3281 (max_loop_iterations): Likewise.
3282 (scev_probably_wraps_p): Likewise.
3283 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
3284 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
3285 not max_loop_iterations.
3286 (execute_vrp): Remove explicit number of iterations estimation.
3288 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
3290 * config/i386/linux-common.h: New.
3292 * config.gcc: Add i386/linux-common.h before
3293 all i386/linux.h and i386/linux64.h usages.
3295 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
3296 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
3297 * config/i386/gnu-user64.h: Likewise.
3299 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
3300 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
3301 (GNU_USER_TARGET_MATHFILE_SPEC): New.
3302 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
3304 2012-04-18 Jan Hubicka <jh@suse.cz>
3306 * cgraph.c (cgraph_node_name): Remove.
3307 (dump_cgraph_node): Use dump_symtab_base; reformat.
3308 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
3309 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
3311 (cgraph_node_name, varpool_node_name): Remove.
3312 (cgraph_node_asm_name, varpool_node_asm_name,
3313 cgraph_node_name, varpool_node_name): New.
3314 * tree-pass.h (TODO_dump_cgraph): Rename to ...
3315 (TODO_dump_symtab): ... this one.
3316 * ipa-cp (pass_ipa_cp): Update.
3317 * ia-reference.c (generate_summary, read_write_all_from_decl,
3318 propagate, ipa_reference_read_optimization_summary): Update.
3319 * cgraphunit.c (cgraph_analyze_functions): Update.
3320 (cgraph_optimize): Update.
3321 * ipa-ref.c (ipa_dump_references): Update.
3322 (ipa_dump_refering): Update.
3323 * ipa-inline.c (pass_ipa_inline): Update.
3324 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
3325 * ipa.c (pass_ipa_function_visibility,
3326 pass_ipa_whole_program_visibility): Update.
3327 * tree-sra.c (pass_early_ipa_sra): Update.
3328 * symtab.c: Include langhooks.h
3329 (symtab_node_asm_name): New.
3330 (symtab_node_name): New.
3331 (symtab_type_names): New static var.
3332 (dump_symtab_base): New.
3333 (dump_symtab_node, dump_symtab): New.
3334 (debug_symtab_node, debug_symtab): New.
3335 * tree-ssa-structalias.c: Dump symbol table.
3336 * pases.c (execute_todo): Handle TODO_dump_symtab instead
3337 of TODO_dump_cgraph.
3338 * varpoo.c (varpool_node_name): Remove.
3339 (dump_varpool_node): Use dump_symtab_base; reformat.
3341 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3343 * doc/invoke.texi (Language Independent Options): @item should be
3346 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3349 * rtl.c (rtx_code_size): Handle ADDRESS.
3351 2012-04-17 Tom de Vries <tom@codesourcery.com>
3353 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
3356 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
3359 * config/i386/sync.md (atomic_<code><mode>): Rename to
3360 atomic_<logic><mode>.
3362 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3364 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
3365 * alias.c (reg_base_value): Expand and update comment.
3366 (arg_base_value): New variable.
3367 (unique_id): Move up file.
3368 (unique_base_value, unique_base_value_p, known_base_value_p): New.
3369 (find_base_value): Use arg_base_value and known_base_value_p.
3370 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
3371 (find_base_term): Use known_base_value_p.
3372 (base_alias_check): Use unique_base_value_p.
3373 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
3374 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
3376 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
3378 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
3380 2012-04-17 Michael Matz <matz@suse.de>
3382 PR tree-optimization/18437
3383 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
3384 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
3385 (vect_check_strided_load): Declare.
3386 * tree-vect-data-refs.c (vect_check_strided_load): New function.
3387 (vect_analyze_data_refs): Use it to accept strided loads.
3388 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
3390 2012-04-17 Richard Guenther <rguenther@suse.de>
3393 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
3394 loops when redirecting an entry or latch edge.
3396 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
3398 * sel-sched.c (sel_global_init): Revert previous change.
3400 2012-04-17 Richard Guenther <rguenther@suse.de>
3402 * tree-flow.h (array_at_struct_end_p): Move declaration ...
3403 * tree.h (array_at_struct_end_p): ... here.
3404 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
3405 * expr.c (array_at_struct_end_p): ... here. Rewrite.
3407 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
3409 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
3410 COST_TABLE): Remove.
3411 (estimate_case_costs): Remove.
3412 (expand_case): Do not call estimate_case_costs
3413 to set use_cost_table.
3414 (balance_case_nodes): Do not use use_cost_table.
3416 2012-04-16 Jan Hubicka <jh@suse.cz>
3418 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
3419 (hash_node, eq_node): Remove.
3420 (cgraph_create_node): Do not handle hashtable.
3421 (cgraph_get_node): Remove.
3422 (cgraph_insert_node_to_hashtable): Remove.
3423 (hash_node_by_assembler_name): Remove.
3424 (eq_assembler_name): Remove.
3425 (cgraph_node_for_asm): Rewrite.
3426 (cgraph_find_replacement_node): Break out from ...
3427 (cgraph_remove_node): ... here; do not maintain hashtables.
3428 (change_decl_assembler_name): Remove.
3429 (cgraph_clone_node): Do not maintain hashtables.
3430 * cgraph.h (const_symtab_node): New typedef.
3431 (cgraph_insert_node_to_hashtable): Remove.
3432 (symtab_get_node, symtab_node_for_asm,
3433 symtab_insert_node_to_hashtable): Declare.
3434 (cgraph_find_replacement_node): Declare.
3435 (cgraph_get_node, varpool_get_node): Turn into inlines.
3436 (cgraph, varpool): Work sanely on NULL pointers.
3437 (FOR_EACH_SYMBOL): New walker.
3438 * ipa-inline-transform.c (save_inline_function_body): Use
3439 symtab_insert_node_to_hashtable.
3440 * symtab.c: Include ggc.h and diagnostics.h
3441 (symtab_hash, assembler_name_hash): New static vars;
3442 (hash_node, eq_node, hash_node_by_assembler_name,
3443 eq_assembler_name, insert_to_assembler_name_hash,
3444 unlink_from_assembler_name_hash): New.
3445 (symtab_register_node): Update hashtables.
3446 (symtab_insert_node_to_hashtable): New.
3447 (symtab_unregister_node): Update hashtables.
3448 (symtab_get_node): New.
3449 (symtab_node_for_asm): New.
3450 (change_decl_assembler_name): New.
3451 * Makefile.in (symtab.o): Needs GTY.
3452 * varpool.c (varpool_hash): Remove.
3453 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
3454 (varpool_node): Rewrite using varpool_get_node.
3455 (varpool_remove_node): DO not maintain hashtables.
3456 (varpool_node_for_asm): Rewrite.
3458 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
3460 * doc/invoke.texi: Copy-edit to put verbs in the present tense
3461 when describing the current behavior of GCC.
3463 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
3465 * genemit.c (gen_exp): Remove ADDRESS handling.
3466 * genoutput.c (scan_operands): Likewise.
3467 * genpeep.c (match_rtx): Likewise.
3468 * genrecog.c (add_to_sequence): Likewise.
3470 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
3472 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
3474 2012-04-16 Martin Jambor <mjambor@suse.cz>
3476 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
3479 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
3482 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
3483 hints for 'A' operand types.
3485 2012-04-16 Jan Hubicka <jh@suse.cz>
3487 * cgraph.h (symtab_node_base): Add next and previous pointers.
3488 (cgraph_node): Remove next and preivous pointers.
3489 (varpool_node): Likewise; remove next/previous GTY marker;
3490 it is not type safe.
3491 (symtab_node_def): Update GTY marker
3492 (x_cgraph_nodes, cgraph_nodes): Remove.
3493 (symtab_nodes): New function.
3494 (cgraph_order): Rename to ...
3495 (symtab_order): ... this one.
3496 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
3498 (x_varpool_nodes, varpool_nodes): Remove.
3499 (FOR_EACH_STATIC_VARIABLE): Update.
3500 (symtab_function_p, symtab_variable_p): New function.
3501 (FOR_EACH_VARIABLE): Update.
3502 (varpool_first_variable, varpool_next_variable): New functions.
3503 (FOR_EACH_VARIABLE): Update.
3504 (cgraph_first_defined_function): Update.
3505 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
3506 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
3507 (cgraph_first_function, cgraph_next_function): New.
3508 (FOR_EACH_FUNCTION): Update.
3509 (cgraph_first_function_with_gimple_body,
3510 cgraph_next_function_with_gimple_body): Update.
3511 * symtab.c: New file.
3512 * cgraph.c: Update copyright dates.
3513 (x_cgraph_nodes, cgraph_order): Remove.
3514 (NEXT_FREE_NODE): Update.
3515 (SET_NEXT_FREE_NODE): New.
3516 (cgraph_create_node_1): Remove common code.
3517 (cgraph_create_node): Remove common code; call symtab_register_node.
3518 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
3519 (cgraph_add_asm_node): Update.
3520 (cgraph_clone_node): Register new node.
3521 * cgraphunit.c (process_function_and_variable_attributes): Update.
3522 (cgraph_analyze_functions): Update.
3523 (cgraph_analyze_functions): Update.
3524 (cgraph_output_in_order): Update.
3525 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
3527 * ipa-inline.c (recursive_inlining): Update.
3528 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
3529 * ipa.c (cgraph_remove_unreachable_nodes): Update.
3530 * Makefile.in: Add symtab.o
3531 * varpool.c (x_varpool_nodes): Remove
3532 (varpool_node): Remove common code; call symtab_register_node.
3533 (varpool_remove_node): Remove common code; call symtab_unregister_node.
3535 2012-04-16 Richard Guenther <rguenther@suse.de>
3538 * tree.h (VECTOR_CST_NELTS): Adjust.
3539 (struct tree_vector): Add explicit length field.
3540 (make_vector_stat): Declare.
3541 (make_vector): Define.
3542 * tree.c (make_vector_stat): New function.
3543 (build_vector_stat): Use it.
3544 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
3546 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3548 PR tree-optimization/52976
3549 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
3550 (undistribute_ops_list): Ops with repeat counts aren't eligible for
3552 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
3554 2012-04-16 Jan Hubicka <jh@suse.cz>
3556 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
3558 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
3559 walkers to walk cgraph and varpool.
3560 * cgraph.c (cgraph_node_for_asm): Likewise.
3561 (dump_cgraph): Likewise.
3562 * value-prof.c (init_node_map): Likewise.
3563 * tree.c (free_lang_data_in_cgraph): Likewise.
3564 * tree-emutls.c: (ipa_lower_emutls): Likewise.
3565 * ipa-reference.c (generate_summary, propagate): Likewise.
3566 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
3567 cgraph_mark_functions_to_output, cgraph_output_in_order,
3568 output_weakrefs, cgraph_materialize_all_clones,
3569 cgraph_optimize): Likewise.
3570 * lto-cgraph.c (merge_profile_summaries): Likewise.
3571 (input_cgraph): Likewise.
3572 * ipa-pure-const.c (generate_summary): Likewise.
3573 (propagate): Likwise.
3574 * ipa-utils.c (ipa_reduced_postorder): Likewise.
3575 (ipa_free_postorder_info): Likewise.
3576 (ipa_reverse_postorder): Likewise.
3577 * ipa-inline.c (ipa_inline): Likewise.
3578 * matrix-reorg.c (find_matrices_decl): Likewise.
3579 (matrix_reorg): Likewise.
3580 * tree-vectorizer.c (increase_alignment): Likewise.
3581 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
3582 (function_and_variable_visibility): Likewise.
3583 (whole_program_function_and_variable_visibility): Likewise.
3584 (ipa_cdtor_merge): Likewise.
3585 * trans-mem.c (ipa_tm_execute): Likewise.
3586 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
3587 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
3588 (ipa_print_all_params): Likewise.
3589 (ipa_update_after_lto_read): Likewise.
3590 * tree-profie.c (tree_profiling): Likewise.
3591 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
3592 * passes.c (dump_passes): Likewise.
3593 (do_per_function): Likewise.
3594 (ipa_write_summaries): Likewise.
3595 * varpool.c (dump_varpool): Likewise.
3596 (varpool_node_for_asm): Likewise.
3597 (varpool_assemble_pending_decls): Likewise.
3599 2012-04-16 Richard Guenther <rguenther@suse.de>
3601 PR tree-optimization/52975
3602 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
3603 condition but always mark it with TRUTH_NOT_EXPR.
3605 2012-04-16 Richard Guenther <rguenther@suse.de>
3607 PR tree-optimization/52975
3608 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
3609 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
3610 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
3611 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
3613 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
3615 * config/i386/sse.md (ssse3_plusminus): New code iterator.
3616 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
3617 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
3618 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
3619 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
3620 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
3621 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
3623 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
3624 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
3625 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
3626 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
3627 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
3628 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
3630 (xop_plus): New code iterator.
3631 (macs): New code attribute.
3633 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
3634 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
3636 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
3637 xop_plus code iterator.
3638 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
3639 xop_plus code iterator.
3640 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
3641 xop_plus code iterator.
3642 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
3643 xop_plus code iterator.
3645 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
3646 any_extend code iterator.
3647 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
3648 any_extend code iterator.
3649 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
3650 any_extend code iterator.
3651 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
3652 any_extend code iterator.
3653 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
3654 any_extend code iterator.
3655 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
3656 any_extend code iterator.
3658 2012-04-14 Tom de Vries <tom@codesourcery.com>
3660 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
3661 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
3662 DELETED_LABEL note, and move it to ...
3663 * cfgrtl.c (delete_insn): ... here. Change return type to void.
3664 (delete_insn_and_edges): Likewise.
3665 (delete_insn_chain): Handle new return type of delete_insn. Delete
3666 chain backwards rather than forwards.
3667 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
3669 * cfglayout.c (fixup_reorder_chain): Delete unused label.
3671 2012-04-14 Jan Hubicka <jh@suse.cz>
3673 * cgraph.h: Update copyrights;
3674 (symtab_node): Turn to union typedef.
3675 (symtab_node_base): New structure.
3676 (symtab_type): Add SYMTAB_SYMBOL tag.
3677 (cgraph_node): Annotate some pinters with nested_ptr.
3678 (varpool_node): Likewise.
3679 (cgraph_local_info): Remove lto_file_data
3680 and externally_visible.
3681 (cgraph_node): Remove decl; same_comdat_group list;
3682 aux; ref_list; order; address_taken; reachable_from_other_parittion,
3683 in_other_partition; resolution.
3684 (varpool_node): Remove decl; same_comdat_group;
3685 ref_list; lto_file_data; aux; order; resolution; externally_visible;
3686 used_from_other_partition; in_other_partition.
3687 (symtab_node_def): New union.
3688 (cgraph, varpool): Update.
3689 (varpool_first_static_initializer, varpool_next_static_initializer,
3690 cgraph_only_called_directly_or_aliased_p,
3691 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
3692 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
3693 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
3695 * cgraph.c: Likewise.
3696 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
3697 * cgraphbuild.c: Likewise.
3698 * lto-symtab.c: Likewise.
3699 * c-gimplify.c: Likewise.
3700 * value-prof.c: Likewise.
3702 * ipa-cp.c: Likewise.
3703 * tree-emutls.c: Likewise.
3704 * ipa-inline-transform.c: Likwise.
3705 * ipa-reference.c: Likewise.
3706 * cgraphunit.c: Likewise.
3707 * ipa-ref.c: Likewise.
3708 * lto-cgraph.c: Likewise.
3709 * ipa-ref-inline.h: Likewise.
3710 * ipa-pure-const.c: Likewise.
3711 * lto-streamer-out.c: Likewise.
3712 * ipa-utils.c: Likewise.
3713 * ipa-inline.c: Likewise.
3714 * matrix-reorg.c: Likewise.
3715 * tree-eh.c: Likewise.
3716 * tree-vectorizer.c: Likewise.
3717 * ipa-split.c: Likewise.
3719 * trans-mem.c: Likewise.
3720 * ipa-inline-analysis.c: Likewise.
3721 * gimplify.c: Likewise.
3722 * cfgexpand.c: Likewise.
3723 * tree-sra.c: Likewise.
3724 * ipa-prop.c: Likewise.
3725 * varasm.c: Likewise.
3726 * tree-nested.c: Likewise.
3727 * tree-inline.c: Likewise.
3728 * tree-profile.c: Likewise.
3729 * tree-ssa-structalias.c: Likewise.
3730 * passes.c: Likewise.
3731 * varpool.c: Likewise.
3733 2012-04-14 Tom de Vries <tom@codesourcery.com>
3735 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
3736 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
3737 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
3739 (gsi_advance_fw_nondebug_nonlocal): New function.
3740 (local_def): Removed function.
3741 (same_succ_hash): Use stmt_local_def.
3742 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
3743 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
3745 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
3747 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
3748 and __ILP32__ for x32.
3750 2012-04-13 Martin Jambor <mjambor@suse.cz>
3753 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
3754 fold_ctor_reference returns a zero constant.
3756 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
3758 * config.gcc: Add i386/gnu-user-common.h before all
3759 i386/gnu-user.h and i386/gnu-user64.h usages.
3761 * config/i386/gnu-user-common.h: New.
3763 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
3764 (CC1_SPEC): Likewise.
3765 (ENDFILE_SPEC): Likewise.
3766 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
3767 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
3768 (TARGET_OS_CPP_BUILTINS): Likewise.
3769 (LIBGCC2_HAS_TF_MODE): Likewise.
3770 (LIBGCC2_TF_CEXT): Likewise.
3771 (TF_SIZE): Likewise.
3772 (TARGET_ASM_FILE_END): Likewise.
3773 (STACK_CHECK_MOVING_SP): Likewise.
3774 (STACK_CHECK_STATIC_BUILTIN): Likewise.
3775 * config/i386/gnu-user64.h: Likewise.
3777 2012-04-13 Martin Jambor <mjambor@suse.cz>
3779 * expr.c (expand_expr_real_1): Pass type, not the expression, to
3780 set_mem_attributes for a memory temporary. Do not call the function
3781 for the memory temporary created for a bitfield.
3783 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3786 * df.h (enum debug_temp_where): New.
3787 (dead_debug_init, dead_debug_finish) Declare.
3788 (dead_debug_add, dead_debug_insert_temp): Declare.
3789 (struct dead_debug_use, struct dead_debug): Moved from...
3790 * df-problems.c: ... here.
3791 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
3793 (df_create_unused_note): Likewise.
3794 (df_set_dead_notes_for_mw): Move comment where it belongs.
3795 (dead_debug_init): Export.
3796 (dead_debug_reset_uses): New, factored out of...
3797 (dead_debug_finish): ...this. Export.
3798 (dead_debug_reset): Remove.
3799 (dead_debug_add): Export.
3800 (dead_debug_insert_before): Rename to...
3801 (dead_debug_insert_temp): ... this. Add where argument. Export.
3802 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
3803 Return insertion count.
3804 (df_note_bb_compute): Adjust.
3805 * dce.c (word_dce_process_block): Adjust dead debug uses.
3806 (dce_process_block): Likewise.
3808 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3810 * df-problems.c (df_note_bb_compute): Do not take note of
3811 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
3813 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
3816 * var-tracking.c (expand_depth): New type.
3817 (onepart_aux, expand_loc_callback_data): Change depth type to it.
3818 (loc_exp_dep_alloc): Adjust initializer.
3819 (update_depth): Use new type. Add entryvals.
3820 (vt_expand_var_loc_chain): Take note of expansions with
3821 ENTRY_VALUEs, but don't accept them right away. Run an optional
3822 second pass accepting the minimum ENTRY_VALUE count found in the
3824 (vt_expand_loc_callback, INIT_ELCD): Adjust.
3826 2012-04-13 Tom de Vries <tom@codesourcery.com>
3828 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
3829 parameters vuse and vuse_escaped.
3830 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
3831 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
3834 2012-04-13 Richard Guenther <rguenther@suse.de>
3836 PR tree-optimization/52969
3837 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
3838 the condition for the COND_EXPR and handle predicate negation
3839 by swapping the COND_EXPR arms.
3841 2012-04-13 Nick Clifton <nickc@redhat.com>
3843 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
3844 TODO_dump_func flag.
3846 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
3848 PR rtl-optimization/52203
3849 PR rtl-optimization/52715
3851 Revert the 2012-03-07 fix for PR 52203.
3852 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
3853 the insn does not modify DFA right before issuing, adjust
3854 issue_rate accordingly.
3856 2012-04-13 Richard Guenther <rguenther@suse.de>
3859 * c-typeck.c (pointer_diff): Remove bogus assert.
3861 2012-04-13 Richard Guenther <rguenther@suse.de>
3864 * convert.c (convert_to_pointer): Remove special-casing of zero.
3866 2012-04-13 Joey Ye <joey.ye@arm.com>
3868 * config/arm/constraints.md (Pe): New constraint.
3869 * config/arm/arm.md: New split for imm 256-510.
3871 2012-04-13 Terry Guo <terry.guo@arm.com>
3873 * config/arm/arm-cores.def: Added core cortex-m0plus.
3874 * config/arm/arm-tune.md: Regenerated.
3875 * config/arm/arm-tables.opt: Regenerated.
3876 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
3878 2012-04-13 Alan Modra <amodra@gmail.com>
3881 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
3882 tie regs on destination of sets. Delete forward declaration.
3883 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
3884 (rs6000_emit_prologue): Likewise.
3885 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
3887 (is_mem_ref): Use tie_operand to recognise stack ties.
3888 * config/rs6000/predicates.md (tie_operand): New.
3889 * config/rs6000/rs6000.md (restore_stack_block): Generate new
3891 (restore_stack_nonlocal): Likewise.
3892 (stack_tie): Update.
3893 (frame_tie): Delete.
3895 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3897 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
3898 HOST_WIDE_INT_PRINT_DEC in format strings.
3900 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
3903 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
3904 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
3905 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
3906 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
3907 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
3908 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
3909 avx2_permvarv8si using VI4F_256 mode iterator.
3910 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
3911 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
3912 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
3913 gen_avx2_permvarv8sf.
3914 (expand_vec_perm_pshufb): Ditto.
3916 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3919 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
3920 the list of options to enable the FCFID instruction.
3921 (TARGET_EXTRA_BUILTINS): Adjust comment.
3923 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3925 PR tree-optimization/18589
3926 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
3927 (operand_entry): Add count field.
3928 (add_repeat_to_ops_vec): New function.
3929 (completely_remove_stmt): Likewise.
3930 (remove_def_if_absorbed_call): Likewise.
3931 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
3932 (acceptable_pow_call): New function.
3933 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
3934 entries with repeat counts when found.
3935 (repeat_factor_d): New struct and associated typedefs.
3936 (repeat_factor_vec): New static vector variable.
3937 (compare_repeat_factors): New function.
3938 (get_reassoc_pow_ssa_name): Likewise.
3939 (attempt_builtin_powi): Likewise.
3940 (reassociate_bb): Call attempt_builtin_powi.
3941 (fini_reassoc): Two new calls to statistics_counter_event.
3943 2012-04-12 Richard Guenther <rguenther@suse.de>
3945 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
3946 * cgraph.h (tree_rest_of_compilation): Remove.
3947 * cgraph.c (cgraph_add_new_function): Move ...
3948 * cgraphunit.c (cgraph_add_new_function): ... here.
3949 (tree_rest_of_compilation): Make static.
3950 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
3951 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
3952 gate_all_early_local_passes, execute_all_early_local_passes,
3953 pass_early_local_passes, gate_all_early_optimizations,
3954 pass_all_early_optimizations): Move ...
3955 * passes.c (gate_all_optimizations, pass_all_optimizations,
3956 gate_all_early_local_passes, execute_all_early_local_passes,
3957 pass_early_local_passes, gate_all_early_optimizations,
3958 pass_all_early_optimizations): ... here.
3959 * tree-optimize.c (execute_free_datastructures): Remove.
3960 * tree-flow.h (execute_free_datastructures): Remove.
3961 * tree-optimize.c (execute_init_datastructures,
3962 pass_init_datastructures): Move ...
3963 * tree-ssa.c (execute_init_datastructures,
3964 pass_init_datastructures): ... here.
3965 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
3966 execute_free_datastructures.
3968 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
3970 * dbgcnt.def (ira_move): New counter.
3971 * ira-int.h (ira_create_new_reg): Declare function.
3972 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
3973 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
3974 no longer static. All callers changed.
3975 * ira.c: Include "dbgcnt.h".
3976 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
3977 move_unallocated_pseudos): New static functions.
3978 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
3979 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
3980 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
3981 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
3982 to the pseudos generated in find_moveable_pseudos.
3983 * Makefile.in (ira.o): Add $(DBGCNT_H).
3985 2012-04-12 Richard Guenther <rguenther@suse.de>
3987 PR tree-optimization/52943
3988 * tree-chrec.h (chrec_is_positive): Remove.
3989 * tree-scalar-evolution.c (chrec_is_positive): Move ...
3990 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
3991 Return false for a constant zero instead of negative.
3992 (analyze_siv_subscript_cst_affine): Handle zero difference
3993 in the initial condition explicitely.
3995 2012-04-12 Richard Guenther <rguenther@suse.de>
3997 * tree-parloops.c (parallelize_loops): Also consult the upper
3998 bound for the number of iterations.
3999 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4000 (loop_prefetch_arrays): Likewise.
4002 2012-04-12 Richard Guenther <rguenther@suse.de>
4004 * cfgloop.h (estimated_loop_iterations_int): Ditch
4005 'conservative' parameter.
4006 (max_stmt_executions_int): Likewise.
4007 (estimated_loop_iterations): Likewise.
4008 (max_stmt_executions): Likewise.
4009 (max_loop_iterations): Declare.
4010 (max_loop_iterations_int): Likewise.
4011 (estimated_stmt_executions): Likewise.
4012 (estimated_stmt_executions_int): Likewise.
4013 * tree-ssa-loop-niter.c (estimated_loop_iterations):
4015 (max_loop_iterations): ... this.
4016 (estimated_loop_iterations_int): Split parts to ...
4017 (max_loop_iterations_int): ... this.
4018 (max_stmt_executions_int): Split parts to ...
4019 (estimated_stmt_executions_int): ... this.
4020 (max_stmt_executions): Split parts to ...
4021 (estimated_stmt_executions): ... this.
4022 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
4023 * predict.c (predict_loops): Likewise.
4024 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
4025 (analyze_siv_subscript_cst_affine): Likewise.
4026 (compute_overlap_steps_for_affine_1_2): Likewise.
4027 (analyze_subscript_affine_affine): Likewise.
4028 (init_omega_for_ddr_1): Likewise.
4029 * tree-parloops.c (parallelize_loops): Likewise.
4030 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4031 (may_eliminate_iv): Likewise.
4032 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4033 (loop_prefetch_arrays): Likewise.
4034 * tree-vrp.c (adjust_range_with_scev): Likewise.
4036 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
4038 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
4039 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
4041 (dump_table): Use bool type for need_align and have_df variables.
4042 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
4043 (regs_used): Remove register modifier.
4044 (barrier_align): Move variables slot, credit, jump_to_next
4045 into if block above for loop. Use bool type for jump_to_next.
4046 (sh_function_arg): Use NULL_RTX instead of 0.
4048 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
4050 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
4051 (bswapsi2): New expander.
4053 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4055 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
4056 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
4058 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4060 PR rtl-optimization/52876
4061 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
4062 Don't call mark_reg_pointer for incompatible pointer sign extension.
4064 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
4067 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
4069 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
4070 comparisons against TYPE_PRECISION.
4071 * tree-ssa-forwprop.c (combine_conversions): Likewise.
4073 2012-04-11 Xinliang David Li <davidxl@google.com>
4075 * tree-passes.h: Remove TODO_dump_func.
4076 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
4077 * trans-mem.c: Remove TODO_dump_func.
4078 * ira.c: Remove TODO_dump_func.
4080 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
4082 * config/i386/i386.c (ix86_option_override_internal): Check
4083 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
4084 after TARGET_64BIT is updated.
4086 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4088 * config/sh/sh.h: Remove old secondary reload code.
4090 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4092 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
4093 (ready_reorder): ... this function.
4095 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
4097 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
4100 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
4101 insns so that no other insn is queued for a time before them.
4103 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
4106 2012-04-11 Richard Guenther <rguenther@suse.de>
4109 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
4110 consider loop nesting.
4111 (evolution_function_is_univariate_p): Properly check the remainder
4114 2012-04-11 Richard Guenther <rguenther@suse.de>
4117 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
4119 2012-04-11 Nick Clifton <nickc@redhat.com>
4121 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
4122 information, if requested.
4124 * config/rx/rx.c (rx_expand_prologue): Likewise.
4126 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
4127 Michael Matz <matz@suse.de>
4130 * rtlanal.c (unsigned_reg_p): New function.
4131 Update copyright notice dates.
4132 * rtl.h (unsigned_reg_p): Prototype it.
4133 Update copyright notice dates.
4134 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
4136 * expr.c (expand_expr_real_1): Set register attributes.
4137 * stmt.c (expand_case): Likewise.
4139 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4142 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
4143 consider_sh2a and allow_zero.
4144 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
4145 (disp_addr_displacement): New function.
4146 (sh_address_cost): Use disp_addr_displacement function instead
4147 of DISP_ADDR_OFFSET.
4148 (sh_legitimate_address_p): Adapt to changed
4149 sh_legitimate_index_p declaration.
4150 (sh_find_mov_disp_adjust): Remove HImode check.
4151 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
4152 disp_addr_displacement and max_mov_insn_displacement.
4153 (max_mov_insn_displacement): Remove HImode check.
4154 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
4155 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
4156 * config/sh/constraints.md (K05, K13): New constraints.
4157 (K12): Correct comment.
4158 (Sdd): Do not use DISP_ADDR_P macro.
4159 (Snd, Sbw): Use satisfies_constraint_Sdd.
4160 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
4161 (*extendhisi2_compact, movhi_i): Remove.
4162 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
4163 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
4164 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
4165 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
4166 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
4167 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
4168 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
4170 Add new peepholes for HImode displacement addressing.
4172 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
4174 * config/sh/sh.h (SIDI_OFF): Remove.
4175 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
4176 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
4179 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4182 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
4183 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
4184 * doc/md.texi (Standard Names): Add bswap.
4185 * builtin-types.def (BT_UINT16): New primitive type.
4186 (BT_FN_UINT16_UINT16): New function type.
4187 * builtins.def (BUILT_IN_BSWAP16): New.
4188 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
4189 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
4190 expand_builtin_bswap.
4191 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
4192 (fold_builtin_1): Likewise.
4193 (is_inexpensive_builtin): Likewise.
4194 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
4195 missing bits for bswap to libcall code.
4196 * tree.c (build_common_tree_nodes): Build uint16_type_node.
4197 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
4198 (uint16_type_node): New define.
4199 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
4200 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
4202 (rs6000_init_builtins): Likewise.
4203 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
4205 2012-04-11 Tristan Gingold <gingold@adacore.com>
4207 * doc/extend.texi (Type Attributes): Move paragraph.
4209 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4212 * diagnostic.h (show_caret): Declare.
4213 (caret_max_width): Declare.
4214 (diagnostic_show_locus): Declare.
4215 * diagnostic.c (diagnostic_initialize): Initialize to false.
4216 (diagnostic_show_locus): New.
4217 (diagnostic_report_diagnostic): Call it.
4218 (getenv_columns): New.
4220 (diagnostic_set_caret_max_width): New.
4221 * input.c (read_line): New.
4222 (location_get_source_line): New.
4223 * input.h (location_get_source_line): Declare.
4224 * toplev.c (general_init): Initialize show_caret from options.
4225 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
4226 * opts.c (common_handle_option): Likewise.
4227 * pretty-print.h (pp_get_prefix): New.
4228 (pp_base_get_prefix): New.
4229 * common.opt (fdiagnostics-show-caret): New option.
4230 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
4232 2012-04-11 Richard Guenther <rguenther@suse.de>
4234 PR rtl-optimization/52881
4235 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
4237 2012-04-11 Richard Guenther <rguenther@suse.de>
4239 PR tree-optimization/52912
4240 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
4241 manipulation code we are threading through a loop header
4242 to an exit destination.
4244 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4246 * tree.h (warn_if_unused_value): Move declaration from here.
4247 * stmt.c (warn_if_unused_value): Move definition from here.
4249 2010-04-10 Michael Matz <matz@suse.de>
4251 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
4253 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
4254 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
4255 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
4256 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
4257 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
4258 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
4259 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
4260 (vect_record_strided_load_vectors): Rename to
4261 vect_record_grouped_load_vectors.
4262 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
4263 Rename use of above macros.
4264 (vect_verify_datarefs_alignment): Ditto.
4265 (vector_alignment_reachable_p): Ditto.
4266 (vect_peeling_hash_get_lowest_cost): Ditto.
4267 (vect_enhance_data_refs_alignment): Ditto.
4268 (vect_analyze_group_access): Ditto and rename stride to groupsize.
4269 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
4270 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
4271 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
4272 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
4273 (vect_record_strided_load_vectors): Rename to
4274 vect_record_grouped_load_vectors.
4275 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
4276 (destroy_loop_vec_info): Ditto.
4277 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
4278 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
4279 (vect_analyze_slp): Ditto.
4280 (new_bb_vec_info): Ditto.
4281 (destroy_bb_vec_info): Ditto.
4282 (vect_schedule_slp_instance): Ditto and rename strided_store to
4284 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
4285 vect_cost_group_size.
4286 (vect_model_store_cost): Rename use of above macros and call
4287 to vect_cost_strided_group_size.
4288 (vect_model_load_cost): Ditto.
4289 (vectorizable_store): Ditto, rename strided_store to grouped_store
4290 and calls to renamed tree-vectorizer.h functions.
4291 (vectorizable_load): Ditto.
4292 (vect_transform_stmt): Rename use of above macros and strided_store
4295 2012-04-10 Jan Hubicka <jh@suse.cz>
4297 * cgraph.h: Remove misledaing comment on ipa-ref.h.
4298 (symtab_type): New enum.
4299 (symtab_node): New structure.
4300 (cgraph_node, varpool_node): Add symbol base type.
4301 (cgraph, varpool): New accestor functions.
4302 * cgraph.c (cgraph_create_node_1): Set symbol type.
4303 * varpool.c (varpool_node): Set symbol type.
4305 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
4306 Richard Sandiford <rdsandiford@googlemail.com>
4308 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
4310 2012-04-10 Richard Guenther <rguenther@suse.de>
4313 * gimple-low.c (gimple_check_call_args): Properly account for
4314 compatible aggregate types.
4316 2012-04-10 Richard Guenther <rguenther@suse.de>
4318 * toplev.h (tree_rest_of_compilation): Remove.
4319 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4320 * cgraph.h (tree_rest_of_compilation): Declare.
4321 * tree-optimize.c (tree_rest_of_compilation): Move ...
4322 * cgraphunit.c (tree_rest_of_compilation): ... here.
4323 * cgraph.c (cgraph_add_new_function): Adjust.
4324 * Makefile.in (tree-optimize.o): Adjust.
4325 (cgraphunit.o): Likewise.
4327 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
4329 PR tree-optimization/52870
4330 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
4331 presumed pattern statement is within the same loop or basic block.
4333 2012-04-10 Tristan Gingold <gingold@adacore.com>
4335 * gengtype.c (main): Make uintptr_t a known type.
4337 2012-04-10 Richard Guenther <rguenther@suse.de>
4339 * tree-pass.h (tree_lowering_passes): Remove.
4340 * tree-optimize.c (tree_lowering_passes): Remove.
4341 * cgraph.c (cgraph_add_new_function): Inline relevant parts
4342 of tree_lowering_passes, avoid redundant call of early local passes.
4343 * cgraphunit.c (cgraph_lower_function): Fold into ...
4344 (cgraph_analyze_function): ... its single caller. Inline
4345 relevant parts of tree_lowering_passes.
4347 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
4350 * config/pa/pa.opt: Remove SIO and GNU_LD.
4352 2012-04-09 Jan Hubicka <jh@suse.cz>
4357 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
4358 boundary, add its target too.
4359 * lto.c (add_references_to_partition): Add also aliased nodes.
4360 (add_cgraph_node_to_partition,
4361 add_varpool_node_to_partition): Work on nodes, not functions/variables;
4362 when adding alias, add also the aliased object.
4364 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
4367 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
4368 VOIDmode immediate operands.
4369 * config/i386/constraints.md (Wz): New constraint.
4370 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
4372 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
4375 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
4376 the DECL generated for the special GOT helper.
4378 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
4380 * config/sh/constraints.md: Update list of constraints in
4382 (Sr0): Remove unused memory constraint.
4384 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4386 * tree-pretty-print.h: Update comment.
4388 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
4390 * config/sh/sh.md: Use braced string notation where applicable.
4391 (*prefetch_i4, prefetch_m2a): Merge into ...
4392 (*prefetch): ... this new insn.
4394 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4396 * config/sh/sh.h (high_life_started): Remove
4397 * config/sh/predicates.md (general_movdst_operand): Use
4398 'reload_in_progress' instead of 'high_life_started'.
4399 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
4400 divsi_inv_fp): Likewise.
4402 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4404 * config/sh/sh-protos.h (prepare_move_operands): Return void
4406 * config/sh/sh.c (prepare_move_operands): Likewise.
4407 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
4409 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
4411 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
4412 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
4413 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
4414 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
4415 commutative_float_operator, noncommutative_float_operator,
4416 sh_handle_pragma): Remove.
4418 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
4420 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
4421 Use @option markup on command-line options. Use @samp markup on
4422 literal keywords to options. Use @code markup on code fragments.
4423 Use other markup in preference to quotation marks in the text.
4424 Add markup to some passages without any.
4426 2012-04-06 Mike Stump <mikestump@comcast.net>
4428 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
4430 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4432 * config/sh/sh.c (hi_const): Remove.
4433 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
4436 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4438 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
4440 * config/sh/sh.c (sh_expand_t_scc): Likewise.
4441 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
4442 calling sh_expand_t_scc.
4444 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
4446 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
4447 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
4448 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
4449 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
4450 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
4451 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
4452 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
4453 sh2a_is_function_vector_call): Use bool as return type.
4454 (sh_pass_in_reg_p): Remove.
4455 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
4456 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
4457 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
4458 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
4459 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
4460 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
4461 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
4462 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
4463 sh_loads_bankedreg_p): Use bool as return type.
4464 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
4465 'register' modifier.
4467 2012-04-06 Matt Turner <mattst88@gmail.com>
4469 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
4471 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
4473 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
4474 of the destination isn't also a FP_REGS register.
4476 2012-04-05 Teresa Johnson <tejohnson@google.com>
4477 H.J. Lu <hongjiu.lu@intel.com>
4479 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
4480 * config/i386/i386.md (move immediate to memory peephole2):
4481 Add cases for HImode move when LCP stall avoidance is needed.
4482 * config/i386/i386.c (initial_ix86_tune_features): Initialize
4483 X86_TUNE_LCP_STALL entry.
4485 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
4488 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
4489 CONST_INT operands, zero-extended with AND.
4491 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
4494 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
4495 first argument instead of mode size. Move displacement calculations
4497 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
4498 ... these new functions.
4499 (disp_adjust): Remove max_mov_disp field.
4500 (sh_legitimate_index_p): Use max_mov_insn_displacement and
4501 mov_insn_alignment_mask.
4502 (sh_address_cost): Use max_mov_insn_displacement.
4504 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
4506 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
4507 (arch_enabled): Handle new arch types.
4508 (one_cmpldi2): Add NEON support.
4510 2012-04-05 Richard Guenther <rguenther@suse.de>
4512 * gimple.c (walk_gimple_op): Compute val_only for the LHS
4513 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
4514 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
4515 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
4516 ... here and make static.
4517 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
4520 2012-04-05 Richard Guenther <rguenther@suse.de>
4522 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
4523 basic-block before removing it.
4525 2012-04-05 Richard Guenther <rguenther@suse.de>
4527 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
4528 version namespace as we release the freelist.
4530 2012-04-05 Richard Guenther <rguenther@suse.de>
4532 * tree-nrv.c (tree_nrv): Release VDEFs.
4533 * tree-sra.c (sra_modify_constructor_assign): Likewise.
4534 (sra_modify_assign): Likewise.
4535 * tree-vect-stmts.c (vect_remove_stores): Likewise.
4536 * tree-vect-loop.c (vect_transform_loop): Likewise.
4537 * tree-ssa-dom.c (optimize_stmt): Likewise.
4538 * tree-vect-slp.c (vect_schedule_slp): Likewise.
4539 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
4541 2012-04-05 Richard Guenther <rguenther@suse.de>
4543 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
4545 * gimple.h (gsi_remove): Adjust.
4546 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
4547 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
4548 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
4549 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
4550 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
4551 * tree-ssa-pre.c (eliminate): Likewise.
4553 2012-04-04 Mike Stump <mikestump@comcast.net>
4555 * doc/rtl.texi (const_double): Document as sign-extending.
4556 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
4557 * emit-rtl.c (immed_double_int_const): Refine to state the
4559 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
4560 CONST_DOUBLE integers.
4561 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
4562 negative values are converted. Fix conversions bigger than
4563 HOST_BITS_PER_WIDE_INT.
4564 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
4565 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
4566 * explow.c (plus_constant_mode): Add.
4567 (plus_constant): Implement with plus_constant_mode.
4568 * rtl.h (plus_constant_mode): Add.
4570 2012-04-04 Richard Guenther <rguenther@suse.de>
4572 PR tree-optimization/52808
4573 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
4574 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
4576 2012-04-04 Tristan Gingold <gingold@adacore.com>
4578 * expr.c (expand_expr_real_2): Handle larger sizetype in
4581 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
4583 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
4584 to m2a-single instead of m2e.
4586 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
4588 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
4589 Change type of BITOFFSET to signed. Make sure the lower bound of
4590 the computed range is non-negative by adjusting OFFSET and BITPOS.
4591 (expand_assignment): Adjust call to get_bit_range.
4593 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4595 * h8300/h8300.c (h8300_current_function_monitor_function_p):
4596 New function. Added to check monitor functions.
4597 (h8300_option_override): Modified to generate error/warning
4598 messages for invalid combinations of different command line
4600 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
4601 save EXR on stack for monitor function in case of H8S target
4602 when "-mno-exr" is passed.
4603 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
4605 * doc/invoke.texi: Document H8S options.
4607 2012-04-03 Tristan Gingold <gingold@adacore.com>
4609 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
4610 of gcc_AC_FUNC_MMAP_BLACKLIST.
4611 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
4612 * Makefile.in (aclocal_deps): Add mmap.m4.
4613 * configure: Regenerate.
4614 * aclocal.m4: Regenerate.
4616 2012-04-03 Richard Guenther <rguenther@suse.de>
4618 PR tree-optimization/52808
4619 * tracer.c (tail_duplicate): Return whether we have duplicated
4621 (tracer): If we have duplicated any block, cleanup the CFG.
4622 * cfghooks.c (duplicate_block): If we duplicated a loop
4623 header but not its loop, destroy the loop because it now has
4625 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
4626 the cfg manipulation routines we are not creating a multiple
4629 2012-04-03 Tristan Gingold <gingold@adacore.com>
4631 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
4633 (vms_c_common_override_options): Allow parameterless variadic
4636 2012-04-03 Jakub Jelinek <jakub@redhat.com>
4638 PR tree-optimization/52835
4639 * tree-data-ref.c (build_rdg): Return NULL if
4640 compute_data_dependences_for_loop failed.
4642 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
4644 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
4645 for REAL_CST as well.
4646 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
4647 In the bitfield case, if the value is a REAL_CST, convert it first to
4650 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
4652 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
4653 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
4654 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
4656 * config/i386/biarchx32.h: New.
4658 2012-04-02 Anatoly Sokolov <aesok@post.ru>
4660 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
4661 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4662 (arm_preferred_reload_class): New function.
4664 2012-04-02 Richard Guenther <rguenther@suse.de>
4666 PR tree-optimization/52756
4667 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
4668 (thread_through_loop_header): After threading through the loop latch
4669 remove the split part from the loop and clear further threading
4670 opportunities that would create a multiple entry loop.
4672 2012-04-02 Richard Guenther <rguenther@suse.de>
4674 PR rtl-optimization/52800
4675 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
4676 CLEANUP_CFG_CHANGED.
4678 2012-04-02 Richard Guenther <rguenther@suse.de>
4681 * loop-init.c (gate_handle_loop2): Destroy loops here if
4682 we don't enter RTL loop optimizers.
4684 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
4687 2012-03-29 Richard Guenther <rguenther@suse.de>
4689 * rtl.h (extended_count): Remove.
4690 * combine.c (extended_count): Remove.
4692 2012-04-02 Dodji Seketeli <dodji@redhat.com>
4695 * pt.c (more_specialized_fn): Don't apply decay conversion to
4696 types of function parameters.
4698 2012-04-02 Tristan Gingold <gingold@adacore.com>
4700 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
4701 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
4702 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
4703 (ggc_pch_this_base): Use uintptr_t instead of size_t.
4705 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
4708 * config/i386/i386.c (ix86_option_override_internal): Don't
4709 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
4711 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
4713 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
4714 (stmt_can_make_abnormal_goto): Use it.
4715 (is_ctrl_altering_stmt): Likewise.
4717 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
4718 Kaz Kojima <kkojima@gcc.gnu.org>
4720 * config/sh/sh.c (push_regs): Skip banked registers when
4721 resbank attribute is specified.
4722 (sh_expand_epilogue): Likewise.
4724 2012-03-30 Richard Henderson <rth@redhat.com>
4727 * combine-stack-adj.c (prev_active_insn_bb): New.
4728 (next_active_insn_bb): New.
4729 (force_move_args_size_note): New.
4730 (combine_stack_adjustments_for_block): Use it.
4732 2012-03-30 Richard Henderson <rth@redhat.com>
4734 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
4735 (ix86_expand_vector_init_duplicate): Initialize it.
4736 (expand_vec_perm_palignr): Likewise.
4737 (ix86_expand_vec_perm_const): Likewise.
4738 (ix86_vectorize_vec_perm_const_ok): Likewise.
4739 (expand_vec_perm_blend): Use it.
4740 (expand_vec_perm_vpermil): Likewise.
4741 (expand_vec_perm_pshufb): Likewise.
4742 (expand_vec_perm_1): Likewise.
4743 (expand_vec_perm_pshuflw_pshufhw): Likewise.
4744 (expand_vec_perm_interleave2): Likewise.
4745 (expand_vec_perm_vpermq_perm_1): Likewise.
4746 (expand_vec_perm_vperm2f128): Likewise.
4747 (expand_vec_perm_interleave3): Likewise.
4748 (expand_vec_perm_vperm2f128_vblend): Likewise.
4749 (expand_vec_perm_vpshufb2_vpermq): Likewise.
4750 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
4751 (expand_vec_perm_broadcast): Likewise.
4752 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
4754 2012-03-30 Richard Henderson <rth@redhat.com>
4756 * dwarf2out.c (gen_variable_die): Initialize off.
4758 2012-03-30 Tristan Gingold <gingold@adacore.com>
4760 * config/vms/vms-f.c: New file.
4761 * config/vms/t-vms (vms-f.o): New rule.
4762 * config.gcc (*-*-*vms*): Define fortran_target_objs.
4764 2012-03-30 Richard Guenther <rguenther@suse.de>
4766 PR tree-optimization/52754
4767 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
4768 propagate arbitrary addresses into really plain dereferences.
4770 2012-03-30 Richard Guenther <rguenther@suse.de>
4773 * except.c (emit_to_new_bb_before): Move loop updating ...
4774 (dw2_build_landing_pads): ... here. Use a proper block for
4775 querying the loop father.
4777 2012-03-30 Tristan Gingold <gingold@adacore.com>
4779 * config/ia64/ia64.c (ia64_section_type_flags): Remove
4780 common_object attribute handling.
4781 (SECTION_VMS_OVERLAY): Remove
4782 (ia64_vms_common_object_attribute): Replace abort with an assert.
4783 Do not set DECL_SECTION_NAME.
4784 (ia64_vms_output_aligned_decl_common): Handle common_object
4786 (ia64_vms_elf_asm_named_section): Remove.
4787 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
4789 2012-03-30 Richard Guenther <rguenther@suse.de>
4792 * double-int.c (rshift_double): Remove not needed cast.
4794 2012-03-30 Richard Guenther <rguenther@suse.de>
4796 * tree-affine.h (print_aff): Remove.
4797 * tree-affine.c (print_aff): Make static.
4798 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
4799 (get_references_in_stmt): Likewise.
4800 (print_direction_vector): Likewise.
4801 (print_dir_vectors): Likewise.
4802 (print_dist_vectors): Likewise.
4803 (dump_subscript): Likewise.
4804 (dump_ddrs): Likewise.
4805 (dump_dist_dir_vectors): Likewise.
4806 (dump_data_references): Likewise.
4807 (dump_data_dependence_relation): Likewise.
4808 (dump_data_dependence_direction): Likewise.
4809 (dump_rdg_vertex): Likewise.
4810 (dump_rdg_component): Likewise.
4811 (debug_ddrs): Declare.
4812 (struct data_ref_loc_d): Move ...
4813 * tree-data-ref.c (struct data_ref_loc_d): ... here.
4814 (get_references_in_stmt): Make static.
4815 (dump_data_references): Likewise.
4816 (dump_subscript): Likewise.
4817 (print_direction_vector): Likewise.
4818 (print_dir_vectors): Likewise.
4819 (print_dist_vectors): Likewise.
4820 (dump_data_dependence_relation): Likewise.
4821 (dump_dist_dir_vectors): Likewise.
4822 (dump_ddrs): Likewise.
4823 (dump_rdg_vertex): Likewise.
4824 (dump_rdg_component): Likewise.
4825 (debug_ddrs): New function.
4826 (access_matrix_get_index_for_parameter): Remove.
4828 2012-03-30 Tristan Gingold <gingold@adacore.com>
4830 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
4831 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
4832 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
4833 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
4834 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
4835 (vms_patch_builtins): Handle new flags
4836 * config/vms/vms-crtlmap.map: Completed using nm on
4837 c and math system libraries.
4838 * config/vms/make-crtlmap.awk: Handle any number of flags.
4840 2012-03-30 Martin Jambor <mjambor@suse.cz>
4842 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
4843 is a builtin_stack_save in a dominating BB.
4845 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
4847 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
4848 crossing 128bit lane boundary.
4850 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
4852 * ira-color.c (setup_left_conflict_sizes_p): Process all
4853 conflicting objects.
4855 2012-03-29 Jakub Jelinek <jakub@redhat.com>
4857 PR tree-optimization/52760
4858 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
4859 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
4861 2012-03-29 Richard Guenther <rguenther@suse.de>
4863 * cgraph.h (cgraph_materialize_all_clones): Remove.
4864 (reset_inline_failed): Likewise.
4865 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
4866 * cgraphbuild.c (reset_inline_failed): Remove.
4867 * rtl.h (cse_main): Remove.
4868 (extended_count): Likewise.
4869 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
4870 (cse_main): Make static.
4871 * combine.c (extended_count): Remove.
4872 (dump_combine_stats): Mark as DEBUG_FUNCTION.
4873 * basic-block.h (reorder_basic_blocks): Remove.
4874 * bb-reorder.c (reorder_basic_blocks): Make static.
4875 * Makefile.in (dse.o): Remove dse.h dependency.
4877 * dse.c (gate_dse): Remove.
4878 (clear_alias_mode_eq): Likewise.
4879 (clear_alias_mode_hash): Likewise.
4880 (dse_record_singleton_alias_set): Likewise.
4881 (dse_invalidate_singleton_alias_set): Likewise.
4883 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
4885 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
4886 crtbegin_so%O%s for -shared.
4887 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
4889 2012-03-29 Richard Guenther <rguenther@suse.de>
4891 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
4892 (add_to_value): Remove.
4893 (print_value_expressions): Likewise.
4894 * tree-ssa-pre.c (add_to_value): Make static.
4895 (print_value_expressions): Likewise.
4896 * gimple.h (gimple_adjust_this_by_delta): Remove.
4897 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
4899 2012-03-29 Richard Guenther <rguenther@suse.de>
4902 * double-int.h (rshift_double): Remove.
4903 * double-int.c (lshift_double): Use absu_hwi to make count positive.
4904 (rshift_double): Make static, take unsigned count argument,
4905 remove handling of negative count argument.
4906 (double_int_rshift): Dispatch to lshift_double.
4908 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
4910 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
4913 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
4914 (SPEC_X32): Likewise.
4915 (MULTILIB_DEFAULTS): Likewise.
4917 * config/i386/i386.c (isa_opts): Remove -m64.
4918 (ix86_target_string): Properly handle -m32/-m64/-mx32.
4919 (ix86_option_override_internal): Properly
4920 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
4921 handle -m32, -m64 and -mx32.
4923 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
4924 with OPTION_ABI_X32. Moved after TARGET_LP64.
4925 (TARGET_LP64): Changed to OPTION_ABI_64.
4927 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
4928 (mx32): Replace ISA_X32 with ABI_X32.
4930 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
4932 * tree.c (tree_size) <VECTOR_CST>: New case.
4934 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
4936 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
4937 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
4939 2012-03-28 Jakub Jelinek <jakub@redhat.com>
4942 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
4943 __builtin_va_start to __builtin_next_arg if the latter is
4944 builtin_decl_explicit_p rather than when it is not.
4947 * tree-vect-generic.c (vector_element): Perform multiplication
4948 for pos in bitsizetype type instead of idx type.
4950 2012-03-28 Richard Guenther <rguenther@suse.de>
4952 * loop-init.c (loop_optimizer_init): If loops are preserved
4953 perform incremental initialization of required loop features.
4954 (loop_optimizer_finalize): If loops are to be preserved only
4955 clean up optional loop features.
4956 (rtl_loop_done): Forcefully free loops here.
4957 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
4958 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
4960 (construct_init_block): Likewise.
4961 (construct_exit_block): Likewise.
4962 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
4963 the CFG after expanding.
4964 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
4965 If we needed to calculate them, free them afterwards.
4966 * tree-pass.h (PROP_loops): New define.
4967 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
4968 * basic-block.h (CLEANUP_CFG_CHANGED): New.
4969 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
4970 (cleanup_cfg): If we did something and have loops around, fix them up.
4971 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
4972 with CLEANUP_CFG_CHANGED.
4973 * cfghooks.c (merge_blocks): If we merge a loop header into
4974 its predecessor, update the loop structure.
4975 (duplicate_block): If we copy a loop latch, adjust loop state
4976 to note we may have multiple latches.
4977 (delete_basic_block): Mark loops for fixup if we remove a loop.
4978 * cfganal.c (forwarder_block_p): Protect loop latches, headers
4980 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
4981 (cfg_layout_can_merge_blocks_p): Likewise.
4982 * cprop.c (bypass_block): If we create a loop with multiple
4983 entries, mark it for removal.
4984 * except.c (emit_to_new_bb_before): Add the new basic-block
4986 * tree-eh.c (lower_resx): Likewise.
4987 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
4988 (expand_omp_taskreg): Likewise.
4989 * tree-inline.c (initialize_cfun): Likewise.
4990 * tree-mudflap.c (add_bb_to_loop): Prototype.
4991 (mf_build_check_statement_for): Properly add new basic-blocks
4993 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
4994 if we remove a loop.
4995 (thread_through_loop_header): Likewise.
4996 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
4997 new basic-blocks to existing loops.
4998 (expand_transaction): Likewise.
4999 * Makefile.in (except.o): Add $(CFGLOOP_H).
5001 (cgraph.o): Likewise.
5002 (cprop.o): Likewise.
5003 (cfgexpand.o): Likewise.
5004 (cfganal.o): Likewise.
5005 (trans-mem.o): Likewise.
5006 (tree-eh.o): Likewise.
5008 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
5011 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
5012 (avr_builtin_decl): New static function.
5013 (struct avr_builtin_description, avr_bdesc): Move up.
5014 Add GTY marker. Add field fndecl. Remove redundant field id.
5015 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
5016 (avr_expand_builtin): Code cleanup because .id is removed.
5018 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
5021 * config.gcc (tm_file): Remove avr/multilib.h.
5023 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
5025 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
5026 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
5027 * config/avr/t-avr: Remove generation of multilib.h.
5028 * config/avr/t-multilib: Regenerate.
5029 * config/avr/multilib.h: Remove.
5030 * config/avr/avr.opt (-msp8): New option.
5031 (avr_sp8): New variable.
5032 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
5033 * config/avr/avr.h (AVR_HAVE_SPH): New define.
5034 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
5035 (avr_device_to_sp8): New prototype.
5036 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
5037 (DRIVER_SELF_SPECS): New define.
5038 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
5039 __AVR_SP8__, __AVR_HAVE_SPH__.
5040 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
5041 AVR_HAVE_8BIT_SP to decide if SP_H is present.
5042 (avr_file_start): Ditto.
5044 2012-03-28 Jakub Jelinek <jakub@redhat.com>
5047 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
5048 instead of 8 in adjust_address.
5050 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
5053 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
5056 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
5059 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
5060 Rearrange conditional logic. Move displacement address calculations
5062 (sh_find_mov_disp_adjust): ... this new function.
5064 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
5066 * config/arm/arm.opt (mapcs): Remove MaskExists.
5067 * config/cris/linux.opt (mno-gotplt): Likewise.
5068 * config/i386/i386.opt (mhard-float): Likewise.
5070 (mno-sse4): Likewise.
5071 * config/m68k/m68k.opt (mhard-float): Likewise.
5072 * config/mep/mep.op (mcop32): Likewise.
5073 * config/pa/pa-hpux.opt (msio): Likewise.
5074 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
5075 * config/picochip/picochip.opt (mlittle): Likewise.
5076 * config/sh/sh.opt (mrenesas): Likewise.
5077 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
5078 * config/sparc/sparc.opt (mhard-float): Likewise.
5079 * config/v850/v850.opt (mv850es): Likewise.
5080 * config/vax/vax.opt (mg-float): Likewise.
5082 2012-03-27 Martin Jambor <mjambor@suse.cz>
5085 * tree-sra.c (sra_modify_assign): Do not call
5086 load_assign_lhs_subreplacements when working with an unscalarizable
5089 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
5092 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
5094 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
5095 * config/i386/i386.c: Include reload.h.
5096 (ix86_legitimize_reload_address): New function.
5098 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
5100 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
5101 hasn't been allocated. Define a target macro for Mask and
5102 InverseMask if it hasn't been defined. Remove MaskExists handling.
5104 * doc/options.texi: Remove MaskExists.
5106 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
5109 * config/sh/sh.c (find_barrier): Add equality check of last_got
5110 to avoid going above orig insn. Update comments.
5112 2012-03-27 Richard Guenther <rguenther@suse.de>
5115 * fold-const.c (try_move_mult_to_index): Handle &x.array more
5118 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
5120 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
5121 of a unit before computing the offset in units.
5122 * expr.c (get_bit_range): Return the null range if the enclosing record
5123 is part of a larger bit field.
5125 2012-03-27 Tristan Gingold <gingold@adacore.com>
5127 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
5128 * config/ia64/ia64.md: Remove mode in template.
5129 Sign extend operand in expand_simple_binop.
5130 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
5131 CASE_VECTOR_MODE instead of TARGET_ILP32.
5132 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
5134 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
5136 * varasm.c (assemble_external): #if 0 out the new assert from the
5137 previous commit, it breaks the Java and Go front ends.
5139 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
5141 * toplev.c (check_global_declaration_1): Do not call assemble_external.
5142 * expr.c (emit_block_move_libcall_fn): Likewise.
5143 (clear_storage_libcall_fn): Likewise.
5144 (expand_expr_addr_expr_1): Likewise.
5145 (expand_expr_real_1): Likewise.
5146 * calls.c (rtx_for_function_call): Likewise.
5148 * varasm.c (assemble_external): Assert this function is only called
5149 during or after expanding to RTL.
5151 2012-03-26 Martin Jambor <mjambor@suse.cz>
5153 PR tree-optimization/50052
5154 * tree-sra.c (tree_non_aligned_mem_p): Removed.
5155 (tree_non_aligned_mem_for_access_p): Likewise.
5156 (build_accesses_from_assign): Removed strict alignment requirements
5158 (access_precludes_ipa_sra_p): Likewise.
5160 2012-03-26 Richard Guenther <rguenther@suse.de>
5162 PR tree-optimization/52701
5163 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
5164 compute and set the evolution part of PHI nodes.
5166 2012-03-26 Richard Guenther <rguenther@suse.de>
5168 PR tree-optimization/52721
5169 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
5171 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
5173 PR tree-optimization/52686
5174 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
5177 2012-03-26 Tristan Gingold <gingold@adacore.com>
5179 * config/alpha/vms.h (LINK_SPEC): Simplify.
5180 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
5181 (NAME__MAIN, SYMBOL__MAIN): Remove.
5182 (VMS_DEBUG_MAIN_POINTER): Remove.
5183 * config/ia64/vms.h: Likewise.
5184 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
5185 code to vms.c. Call vms_start_function.
5186 * config/ia64/ia64.c (ia64_start_function): Likewise.
5187 * config/vms/vms-protos.h (vms_start_function): Declare.
5188 * config/vms/vms.c (vms_start_function): New function.
5189 * config/vms/vms.h (MATH_LIBRARY): Define.
5190 (VMS_DEBUG_MAIN_POINTER): Define.
5192 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
5194 PR rtl-optimization/52629
5195 * reload1.c (count_pseudo): Short-circuit common case.
5196 (count_spilled_pseudo): Return early for pseudos without hard regs.
5197 Assert that the pseudo has got a hard reg before manipulating it.
5199 2012-03-24 Jan Hubicka <jh@suse.cz>
5202 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
5203 (decide_is_variable_needed): Do not handle toplevel reorder here.
5204 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
5205 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
5208 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
5210 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
5211 and str_bitsize instead of more convoluted expressions.
5213 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
5216 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
5218 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
5221 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
5223 2012-03-23 Martin Jambor <mjambor@suse.cz>
5225 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
5227 2012-03-23 Richard Guenther <rguenther@suse.de>
5229 PR tree-optimization/52678
5230 * tree-vectorizer.h (struct _stmt_vec_info): Add
5231 loop_phi_evolution_part member.
5232 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
5233 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
5234 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
5235 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5236 Use the cached evolution part and the PHI nodes value from
5237 the loop preheader edge instead of re-analyzing the evolution.
5239 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5241 * config/mips/mips-tables.opt: Update.
5242 * config/mips/mips.md (processor): Add xlp.
5243 * config/mips/mips-cpus.def: Add xlp.
5244 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
5246 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
5247 * doc/invoke.texi: Mention XLP.
5249 2012-03-22 Jakub Jelinek <jakub@redhat.com>
5252 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
5253 on any new_local_var_chain vars declared during recursing on
5254 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
5256 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
5258 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
5259 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
5260 (ASM_OUTPUT_LOCAL): Ditto.
5261 (ASM_OUTPUT_COMMON): Remove.
5262 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
5263 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
5265 2012-03-22 Jan Hubicka <jh@suse.cz>
5268 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
5270 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
5271 * ipa-inline-transform.c (save_inline_function_body): Remove
5272 copied clone if needed.
5273 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
5275 2012-03-22 Richard Guenther <rguenther@suse.de>
5278 * fold-const.c (fold_ternary_loc): Fix typo.
5280 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
5283 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
5284 (unspecv): Add UNSPECV_MEMORY_BARRIER.
5285 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
5286 (delay_cycles_1, delay_cycles_2): Ditto.
5287 (delay_cycles_3, delay_cycles_4): Ditto.
5288 (nopv, *nopv): Ditto.
5289 (sleep, *sleep): Ditto.
5292 2012-03-22 Richard Guenther <rguenther@suse.de>
5294 PR tree-optimization/52548
5295 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
5296 because of clobbers.
5297 (prune_clobbered_mems): New function.
5298 (compute_antic_aux): Use it to prune ANTIC_OUT.
5299 (compute_partial_antic_aux): Use it to prune PA_IN.
5300 (compute_avail): Only insert expressions into EXP_GEN that are not
5301 invalidated when translated up to the beginning of the block.
5303 2012-03-22 Richard Guenther <rguenther@suse.de>
5305 PR tree-optimization/52638
5306 * tree-vect-stmts.c (vect_init_vector_1): New function, split
5308 (vect_init_vector): ... here. Handle scalar vector inits.
5309 (vect_get_vec_def_for_operand): Adjust.
5310 (vectorizable_load): Likewise.
5312 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
5314 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
5315 (alpha*-*-freebsd*): Ditto.
5316 (alpha*-*-netbsd*): Ditto.
5317 (alpha*-*-openbsd*): Ditto.
5318 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
5319 (DWARF2_DEBUGGING_INFO): Remove.
5320 (PREFERRED_DEBUGGING_TYPE): Remove.
5321 (ASM_FINAL_SPEC): Remove.
5322 (IDENT_ASM_OP): Remove.
5323 (ASM_OUTPUT_IDENT): Remove.
5324 (SKIP_ASM_OP): Remove.
5325 (ASM_OUTPUT_SKIP): Remove.
5326 (ALIGN_ASM_OP): Remove.
5327 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
5328 (ASM_OUTPUT_CASE_LABEL): Remove.
5329 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
5330 (COMMON_ASM_OP): Remove.
5331 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
5332 (ASCII_DATA_ASM_OP): Remove.
5333 (READONLY_DATA_SECTION_ASM_OP): Remove.
5334 (INIT_SECTION_ASM_OP): Remove.
5335 (FINI_SECTION_ASM_OP): Remove.
5336 (ASM_SECTION_START_OP): Remove.
5337 (ASM_OUTPUT_SECTION_START_FILE): Remove.
5338 (TARGET_ASM_NAMED_SECTION): Remove.
5339 (TARGET_ASM_SELECT_SECTION): Remove.
5340 (MAKE_DECL_ONE_ONLY): Remove.
5341 (TYPE_ASM_OP): Remove.
5342 (SIZE_ASM_OP): Remove.
5343 (ASM_WEAKEN_LABEL): Remove.
5344 (TYPE_OPERAND_FMT): Remove.
5345 (ASM_DECLARE_RESULT): Remove.
5346 (ASM_DECLARE_OBJECT_NAME): Remove.
5347 (ASM_FINISH_DECLARE_OBJECT): Remove.
5348 (ELF_ASCII_ESCAPES): Remove.
5349 (ELF_STRING_LIMIT): Remove.
5350 (STRING_ASM_OP): Remove.
5351 (ASM_OUTPUT_EXTERNAL): Remove.
5352 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
5353 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
5355 (ASM_DECLARE_FUNCTION_NAME): Ditto.
5356 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
5357 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
5358 (ASM_OUTPUT_SKIP): Ditto.
5359 (READONLY_DATA_SECTION_ASM_OP): Remove.
5360 (USER_LABEL_PREFIX): Remove.
5361 (ASM_OUTPUT_ASCII): Remove.
5362 (ASM_OUTPUT_CASE_LABEL): Remove.
5363 (NO_DOLLAR_IN_LABEL): Undefine.
5365 2012-03-22 Richard Guenther <rguenther@suse.de>
5367 PR tree-optimization/52459
5368 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
5369 PHI insertion for calls.
5371 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
5373 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
5374 find_sets_in_insn, canonicalize_insn): Split out from ...
5375 (cse_insn): ... here.
5376 (invalidate_from_clobbers): Take an insn instead of the pattern.
5378 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
5381 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
5382 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
5383 * config/sh/sh.md (sindf2, cosdf2): Remove.
5385 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
5388 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
5389 prologue for unwinder and profiler.
5391 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
5393 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
5394 Introduce emul_name to select the right linker emulation for
5395 powerpc64-*-freebsd*.
5396 * configure: Regenerate.
5397 * config.gcc: Add bits to support powerpc64-*-freebsd*.
5398 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
5399 * config/rs6000/freebsd64.h: New file.
5400 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
5402 (rs6000_savres_strategy): Likewise.
5403 (rs6000_savres_routine_name): Likewise.
5404 (rs6000_elf_file_end): Likewise.
5405 * config/rs6000/t-freebsd64: New file.
5406 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
5407 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
5409 * config/rs6000/freebsd64.h: Remove duplicated entries from last
5411 * config/rs6000/t-freebsd64: Likewise.
5413 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
5415 PR rtl-optimization/52543
5417 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
5418 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
5419 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
5420 (avr_load_libgcc_p): Restrict to __flash loads.
5421 (avr_out_lpm): Only handle 1-byte loads from __flash.
5422 (avr_load_lpm): New function.
5423 (avr_find_unused_d_reg): Remove.
5424 (avr_out_lpm_no_lpmx): Remove.
5425 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
5426 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
5427 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
5428 (load_<mode>, load_<mode>_clobber): New insns.
5429 (mov<mode>): For multi-byte move from non-generic
5430 16-bit address spaces: Expand to load_<mode> resp.
5431 load_<mode>_clobber.
5432 (load<mode>_libgcc): Remove expander.
5433 (split-lpmx): Remove split.
5435 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
5437 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
5438 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
5439 All callers changed.
5440 (Fixed_core_reg): New feature.
5441 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
5443 * neon-testgen.ml: Handle Fixed_core_reg.
5445 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
5447 * config/arm/arm.c (thumb2_reorg): Add complete support
5448 for 16-bit instructions.
5449 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
5451 2012-03-21 Richard Guenther <rguenther@suse.de>
5453 PR tree-optimizer/52636
5454 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
5455 to the appropriate type.
5457 2012-03-21 Richard Guenther <rguenther@suse.de>
5459 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
5461 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
5462 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
5463 * passes.c (init_optimization_passes): Remove pass_init_function,
5464 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
5465 * tree-pass.h (pass_init_function): Remove.
5466 (pass_jump): Remove.
5467 (pass_initial_value_sets): Remove.
5468 (pass_unshare_all_rtl): Remove.
5469 * integrate.c (pass_initial_value_sets): Remove.
5470 * emit-rtl.c (pass_unshare_all_rtl): Remove.
5471 * tree.h (init_function_for_compilation): Remove.
5472 * function.c (init_function_for_compilation): Remove.
5473 (pass_init_function): Remove.
5474 * cfgcleanup.c (rest_of_handle_jump): Remove.
5475 (pass_jump): Remove.
5477 2012-03-20 Jason Merrill <jason@redhat.com>
5479 * tree-streamer-in.c (streamer_alloc_tree): Call
5480 ggc_alloc_zone_cleared_tree_node instead of
5481 ggc_alloc_zone_cleared_tree_node_stat.
5483 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
5485 * doc/extend.texi (Template Instantiation): Remove anachronisms.
5487 2012-03-20 Jakub Jelinek <jakub@redhat.com>
5490 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
5491 (ix86_expand_vec_perm_const_1): Call it.
5493 * config/i386/i386.c (vselect_insn): New variable.
5494 (init_vselect_insn): New function.
5495 (expand_vselect, expand_vselect_insn): Add testing_p argument.
5496 Call init_vselect_insn if vselect_insn is NULL. Adjust
5497 PATTERN (vselect_insn), instead of creating a new insn each time,
5498 only emit a copy of it if not testing and recog has been successful.
5499 (expand_vec_perm_pshufb, expand_vec_perm_1,
5500 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
5504 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
5505 ("enabled" attribute): Handle avx2 and noavx2 isas.
5506 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
5508 (vec_dup<mode>): Add avx2 =x,x alternative.
5509 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
5510 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
5511 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
5512 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
5514 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
5515 if possible, handle also V8SFmode.
5517 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
5519 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
5520 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
5521 reg_or_zero_operand predicate.
5522 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
5524 2012-03-20 Jakub Jelinek <jakub@redhat.com>
5526 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
5527 If operand isn't UNSPEC, return 0.
5529 2012-03-20 Richard Guenther <rguenther@suse.de>
5531 * tree-pass.h (pass_rtl_eh): Remove.
5532 * except.c (gate_handle_eh): Likewise.
5533 (rest_of_handle_eh): Likewise.
5534 (pass_rtl_eh): Likewise.
5535 (finish_eh_generation): Export.
5536 * except.h (finish_eh_generation): Declare.
5537 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
5538 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
5539 after expanding stack alignment. Instead of compacting blocks
5542 2012-03-20 Richard Guenther <rguenther@suse.de>
5544 * stor-layout.c (finish_bitfield_representative): Fallback
5545 to conservative maximum size if the padding up to the next
5546 field cannot be computed as a constant.
5547 (finish_bitfield_layout): If we cannot compute the distance
5548 between the start of the bitfield representative and the
5549 bitfield member start a new representative.
5550 * expr.c (get_bit_range): The distance between the start of
5551 the bitfield representative and the bitfield member is zero
5552 if the field offsets are not constants.
5554 2012-03-20 Tristan Gingold <gingold@adacore.com>
5556 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
5557 convert in lowercase.
5558 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
5559 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
5560 * stor-layout.c (sizetype_tab): Adjust.
5561 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
5562 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
5563 instead of type_kind_last.
5564 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
5565 instead of size_int_kind.
5566 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
5567 * doc/tm.texi: Regenerate.
5568 * defaults.h (SIZETYPE): Provide a default value.
5569 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
5572 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
5574 * config/sh/sh.md: Use braced string notation where applicable.
5576 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5578 * config/i386/i386.md (allocate_stack): Simplify.
5580 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5582 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
5583 copy_to_mode_reg (Pmode, ...).
5584 (expand_builtin_frame_address): Ditto.
5585 * expr.c (emit_block_move_via_libcall): Ditto.
5586 (set_storage_via_libcall): Ditto.
5588 * config/i386/i386.c (ix86_expand_movmem): Ditto.
5589 (ix86_expand_setmem): Ditto.
5590 (ix86_trampoline_init): DItto.
5591 * config/i386/i386.md (cmpstrnsi): Ditto.
5593 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
5595 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
5596 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
5597 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
5598 (SH Options): Likewise.
5600 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5602 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
5603 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
5604 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
5605 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
5606 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
5609 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
5611 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
5612 * config/i386/i386.c (ix86_decompose_address): Use
5613 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
5614 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
5615 thread pointer to a register.
5618 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
5620 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
5621 if Pmode != word_mode.
5622 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
5623 Pmode == SImode for TARGET_X32.
5625 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
5626 (tls_initial_exec_x32): Likewise.
5628 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
5631 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
5632 DISP_ADDR_OFFSET): New macros.
5633 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
5634 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
5635 (sh_legitimize_address): Add QImode displacement handling.
5636 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
5638 (sh_secondary_reload): Add QImode displacement handling.
5639 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
5640 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
5641 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
5642 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
5643 to register operands only.
5644 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
5645 (extendqihi2): Change insn to expander.
5646 (*extendqihi2_compact_reg): New insn.
5647 (movqi_i, movqi): Replace with ...
5648 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
5649 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
5650 Add new peepholes for QImode displacement addressing.
5652 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5655 * doc/invoke.texi: Document -Wuseless-cast.
5657 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
5659 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
5660 * tree.h (handled_component_p): Reorder cases.
5661 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
5662 not initialize unsignedp.
5663 (loc_list_from_tree): Likewise.
5664 (fortran_common): Likewise.
5665 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
5667 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
5669 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
5670 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
5671 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
5672 (ix86_split_long_move): Ditto.
5673 (legitimize_tls_address): Use ix86_gen_sub3.
5674 (construct_plt_address): Assert that Pmode == DImode.
5676 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
5678 * config/i386/i386.md: Remove empty predicates and/or constraints.
5679 * config/i386/sync.md: Ditto.
5680 * config/i386/sse.md: Ditto.
5681 * config/i386/mmx.md: Ditto.
5682 * config/i386/pentium.md: Ditto.
5683 * config/i386/athlon.md: Ditto.
5685 2012-03-16 Richard Guenther <rguenther@suse.de>
5687 PR tree-optimization/52603
5688 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
5692 2012-03-14 Richard Guenther <rguenther@suse.de>
5694 PR tree-optimization/52571
5695 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
5696 flag_section_anchors check ...
5697 (vect_can_force_dr_alignment_p): ... here.
5699 2012-03-16 Martin Jambor <mjambor@suse.cz>
5701 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
5702 memory through MEM_REFs by calling extract_bit_field.
5704 2012-03-16 Richard Guenther <rguenther@suse.de>
5706 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
5707 and REFERENCE_TYPE interpretations.
5708 (can_native_interpret_type_p): New function.
5709 (fold_ternary_loc): Use native encode/interpret to fold
5710 BIT_FIELD_REFs of constants.
5712 2012-03-16 Richard Guenther <rguenther@suse.de>
5715 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
5716 of vector constants and constructors.
5718 2012-03-16 Richard Guenther <rguenther@suse.de>
5720 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5721 VIEW_CONVERT_EXPR to convert constants.
5722 (vect_is_simple_use): Treat all constants as vec_constant_def.
5724 2012-03-16 Richard Guenther <rguenther@suse.de>
5725 Kai Tietz <ktietz@redhat.com>
5728 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
5729 side-effects completely in the pre-queue and use a temporary
5732 2012-03-16 Richard Guenther <rguenther@suse.de>
5734 * stor-layout.c (finish_bitfield_representative): Fall back
5735 to the conservative maximum size if we cannot compute the
5736 size of the tail padding.
5738 2012-03-16 Tristan Gingold <gingold@adacore.com>
5740 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
5741 __CRTL_VER and __VMS_VER.
5742 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
5743 and vms_c_get_vms_ver.
5744 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
5746 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
5747 (VMS_DEFAULT_VMS_VER): Define.
5748 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
5749 (VMS_DEFAULT_VMS_VER): Define.
5751 2012-03-16 Richard Guenther <rguenther@suse.de>
5753 * tree-vect-loop.c (get_initial_def_for_induction): Use
5754 build_constructor directly.
5755 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5756 build_vector_from_val.
5757 * tree.c (build_vector_from_val): Avoid creating a constructor
5758 first when we want a constant vector.
5760 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5762 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
5764 2012-03-16 Richard Guenther <rguenther@suse.de>
5766 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
5767 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
5768 (struct tree_vector): Remove elements member, add variable size
5770 (build_vector_stat): Declare.
5771 (build_vector): Define in terms of build_vector_stat.
5772 * tree.c (build_vector): Rename to ...
5773 (build_vector_stat): ... this. Take array of trees as parameter.
5774 (build_vector_from_ctor): Adjust.
5775 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
5776 initializer_zerop): Adjust.
5777 * cfgexpand.c (expand_debug_expr): Likewise.
5778 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
5779 const_vector_from_tree): Likewise.
5780 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
5781 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
5782 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
5783 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
5784 (lto_input_ts_vector_tree_pointers): Adjust.
5785 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
5786 (write_ts_vector_tree_pointers): Adjust.
5787 * varasm.c (const_hash_1, compare_constant, copy_constant,
5788 output_constant): Adjust.
5789 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
5790 * print-tree.c (print_node): Adjust.
5791 * tree-pretty-print.c (dump_generic_node): Adjust.
5792 * tree-vect-generic.c (uniform_vector_p, vector_element,
5793 lower_vec_perm): Adjust.
5794 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
5795 * tree-vect-slp.c (vect_get_constant_vectors,
5796 vect_transform_slp_perm_load): Adjust.
5797 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
5798 * expmed.c (make_tree): Adjust.
5799 * config/i386/i386.c (ix86_expand_builtin): Adjust.
5800 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
5802 (sparc_fold_builtin): Adjust.
5804 2012-03-16 Tristan Gingold <gingold@adacore.com>
5806 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
5807 * config/vms/vms-stdint.h: New file.
5809 2012-03-16 Tristan Gingold <gingold@adacore.com>
5811 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
5812 (ia64-hp-*vms*): Replaced by ...
5813 (*-*-*vms*): ... This new entry.
5815 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5818 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
5819 (ix86_expand_vec_perm_const_1): Use it.
5822 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
5823 (avx2_permv4df): Remove.
5824 (avx2_permv4di): Macroize into...
5825 (avx2_perm<mode>): ... this using VI8F_256 iterator.
5826 (avx2_permv4di_1): Macroize into...
5827 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
5829 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5831 * combine.c (apply_distributive_law): Do not distribute SUBREG.
5833 2012-03-15 Ira Rosen <irar@il.ibm.com>
5834 Ulrich Weigand <ulrich.weigand@linaro.org>
5836 * tree-vect-patterns.c (widened_name_p): Rename to ...
5837 (type_conversion_p): ... this. Add new argument to determine
5838 if it's a promotion or demotion operation. Check for
5839 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
5840 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
5842 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
5843 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
5845 (vect_recog_mixed_size_cond_pattern): Likewise and allow
5846 non-constant then and else clauses.
5848 2012-03-15 Ira Rosen <irar@il.ibm.com>
5849 Ulrich Weigand <ulrich.weigand@linaro.org>
5851 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
5852 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
5854 * tree-vect-patterns.c (widened_name_p): Pass basic block
5855 info to vect_is_simple_use.
5856 (vect_recog_dot_prod_pattern): Fail for basic blocks.
5857 (vect_recog_widen_sum_pattern): Likewise.
5858 (vect_handle_widen_op_by_const): Support basic blocks.
5859 (vect_operation_fits_smaller_type,
5860 vect_recog_over_widening_pattern): Likewise.
5861 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
5862 Update call to vect_is_simple_use.
5863 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
5865 (check_bool_pattern): Add an argument, update call to
5866 vect_is_simple_use and the recursive calls.
5867 (vect_recog_bool_pattern): Update relevant function calls.
5869 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
5870 (vect_pattern_recog_1): Check for reduction only in loops.
5871 (vect_pattern_recog): Add new argument. Support basic blocks.
5872 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
5873 info to vect_is_simple_use_1.
5874 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
5875 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
5877 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5878 Andrew Pinski <apinski@cavium.com>
5881 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
5882 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
5883 calls instead of __builtin_ir{int,ound}*.
5885 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5887 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
5890 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5892 * config.gcc (target_type_format_char): New. Document it. Set it for
5894 * configure.ac (gnu_unique_option): Use target_type_format_char
5895 in test. Comment rationale.
5896 * configure: Regenerate .
5898 2012-03-15 Jakub Jelinek <jakub@redhat.com>
5900 PR tree-optimization/52267
5901 * tree-vrp.c (masked_increment): New function.
5902 (register_edge_assert_for_2): Derive ASSERT_EXPRs
5903 from (X & CST1) cmp CST2 tests.
5905 2012-03-15 Richard Guenther <rguenther@suse.de>
5908 * tree-data-ref.c (subscript_dependence_tester_1): Check
5909 all dimensions for non-conflicting access functions.
5911 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5914 * doc/invoke.texi [C++ Language Options]: Document
5915 -ftemplate-backtrace-limit.
5917 2012-03-15 Tristan Gingold <gingold@adacore.com>
5919 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
5922 2012-03-15 Tristan Gingold <gingold@adacore.com>
5924 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
5925 use DW_OP_call_frame_cfa.
5927 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
5930 * config/i386/i386-opts.h (pmode): New.
5932 * config/i386/i386.c (ix86_option_override_internal): Properly
5933 check and set ix86_pmode.
5935 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
5937 * config/i386/i386.opt (maddress-mode=): New.
5939 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
5941 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5943 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
5944 (dwarf2out_do_cfi_asm): Likewise.
5945 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
5947 (add_data_member_location_attribute): Likewise.
5948 (gen_array_type_die): Likewise.
5949 (gen_subprogram_die): Likewise.
5950 (gen_producer_string): Likewise.
5951 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
5952 Remove MIPS_DEBUGGING_INFO handling.
5953 (sdb_debug_hooks): Likewise.
5954 (sdbout_begin_block): Likewise.
5955 (sdbout_end_block): Likewise.
5956 (sdbout_begin_prologue): Likewise.
5957 (sdbout_start_source_file): Likewise.
5958 (sdbout_end_source_file): Likewise.
5959 (sdbout_init): Likewise.
5960 * system.h (MIPS_DEBUGGING_INFO): Poison.
5962 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5964 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
5965 (alpha_file_start) [MS_STAMP]: Remove.
5967 * config/alpha/elf.h (TARGET_GAS): Remove.
5968 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
5969 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
5970 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
5971 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
5972 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
5973 (alpha*-*-freebsd*): Likewise.
5974 (alpha*-*-netbsd*): Likewise.
5975 (alpha*-*-openbsd*): Likewise.
5976 (alpha*-*-*): Remove target_cpu_default2.
5977 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
5979 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
5980 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
5981 * config/alpha/alpha.c (print_operand): Always assume
5982 TARGET_AS_SLASH_BEFORE_SUFFIX.
5983 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
5984 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
5985 ("*builtin_setjmp_receiver_er_1"): Remove.
5986 * config/alpha/alpha.opt (malpha-as): Remove.
5988 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
5990 Remove DEC Unix reference.
5992 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
5993 (EXTENDED_COFF): Remove.
5994 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
5995 (EXTENDED_COFF): Don't undef.
5996 * config/alpha/alpha.c (alpha_file_start): Always assume
5998 Don't set targetm.asm_file_start_file_directive.
5999 [!OBJECT_FORMAT_ELF]: Remove.
6000 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6002 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
6003 (DBX_DEBUGGING_INFO): Remove.
6004 (MIPS_DEBUGGING_INFO): Remove.
6005 (PREFERRED_DEBUGGING_TYPE): Remove.
6006 (DBX_OUTPUT_SOURCE_LINE): Remove.
6007 (SDB_OUTPUT_SOURCE_LINE): Remove.
6008 (DBX_CONTIN_LENGTH): Remove.
6009 (NO_DBX_FUNCTION_END): Remove.
6010 (ASM_STABS_OP): Remove.
6011 (ASM_STABN_OP): Remove.
6012 (ASM_STABD_OP): Remove.
6013 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
6014 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
6015 (PUT_SDB_DEF): Remove.
6016 (PUT_SDB_PLAIN_DEF): Remove.
6017 (PUT_SDB_TYPE): Remove.
6018 (sdb_label_count): Remove.
6019 (PUT_SDB_BLOCK_START): Remove.
6020 (PUT_SDB_BLOCK_END): Remove.
6021 (PUT_SDB_FUNCTION_START): Remove.
6022 (PUT_SDB_FUNCTION_END): Remove.
6023 (PUT_SDB_EPILOGUE_END): Remove.
6024 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
6025 (MIPS_DEBUGGING_INFO): Don't undef.
6026 (DBX_DEBUGGING_INFO): Don't undef.
6027 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
6028 (MIPS_DEBUGGING_INFO): Don't undef.
6029 (DBX_DEBUGGING_INFO): Don't undef.
6030 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
6031 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
6033 (alpha_start_function): Likewise.
6034 (sdb_label_count): Remove.
6035 (alpha_output_filename): Remove DBX_DEBUG handling.
6036 (alpha_file_start): Likewise.
6038 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6040 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
6041 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
6042 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
6044 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
6045 (ld_tls_support): Remove Solaris 8 references.
6046 (lwp_dir, lwp_spec): Remove support for alternate thread library.
6047 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
6048 * configure: Regenerate.
6049 * config.in: Regenerate.
6051 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
6052 * config/i386/sol2.h: Remove Solaris 8 references.
6054 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
6055 (i?86-*-solaris2.9): ... this.
6056 Remove Solaris 8 references.
6057 (Specific, *-*-solaris2*): Document Solaris 8 removal.
6058 Remove Solaris 8 references.
6060 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6062 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
6063 (mips-sgi-irix6.5*): Remove.
6064 * config.host (mips-sgi-irix*): Remove.
6065 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
6066 (set_have_as_tls): Remove *-*-irix6*.
6067 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
6068 * configure: Regenerate.
6070 * config/mips/iris6.h: Remove.
6071 * config/mips/iris6.opt: Remove.
6072 * config/mips/t-irix6: Remove.
6074 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
6075 (TARGET_IRIX6): Remove.
6076 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
6077 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
6078 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
6080 (mips_file_start): Likewise.
6081 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
6083 * config/mips/driver-native.c [__sgi__]: Remove.
6084 (host_detect_local_cpu) [__sgi__]: Remove.
6086 * config/mips/gnu-user.h: Remove iris5.h reference.
6088 * config/mips/mips-modes.def: Remove IRIX 6 reference.
6089 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
6090 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
6093 * gcc.c (main): Move asm_debug initialization ...
6094 (asm_debug): ... here.
6096 * ginclude/stddef.h (__STDDEF_H__): Don't define.
6098 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
6099 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
6100 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
6101 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
6102 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
6103 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
6105 * doc/tm.texi: Regenerate.
6107 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
6109 (MIPS Options, -march): Remove IRIX reference.
6110 * doc/install.texi (Binaries, SGI IRIX): Remove.
6111 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
6113 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
6115 2012-03-14 Martin Jambor <mjambor@suse.cz>
6117 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
6118 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
6119 (expand_expr_real_1): Do not handle misalignment if modifier is
6122 2012-03-14 Richard Guenther <rguenther@suse.de>
6125 * tree-vect-generic.c (type_for_widest_vector_mode): Take
6126 element type instead of mode, use build_vector_type_for_mode
6127 instead of the langhook, build a vector of proper signedness.
6128 (expand_vector_operations_1): Adjust.
6130 2012-03-14 Richard Guenther <rguenther@suse.de>
6133 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
6134 a cgraph node for a FUNCTION_DECL that comes from a constructor.
6135 (gimple_get_virt_method_for_binfo): Likewise.
6137 2012-03-14 Richard Guenther <rguenther@suse.de>
6139 PR tree-optimization/52571
6140 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
6141 flag_section_anchors check ...
6142 (vect_can_force_dr_alignment_p): ... here. Do not re-align
6143 DECL_COMMON variables.
6145 2012-03-14 Richard Guenther <rguenther@suse.de>
6147 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
6148 * stor-layout.c (start_bitfield_representative): New function.
6149 (finish_bitfield_representative): Likewise.
6150 (finish_bitfield_layout): Likewise.
6151 (finish_record_layout): Call finish_bitfield_layout.
6152 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
6153 for QUAL_UNION_TYPE fields.
6154 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
6155 Stream DECL_BIT_FIELD_REPRESENTATIVE.
6156 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
6161 * expr.c (get_bit_range): Unconditionally extract bitrange
6162 from DECL_BIT_FIELD_REPRESENTATIVE.
6163 (expand_assignment): Adjust call to get_bit_range.
6165 2012-03-14 Richard Guenther <rguenther@suse.de>
6168 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
6169 the outermost conversion is a sign-change only.
6170 (fold_binary_loc): Disregard widening and sign-changing
6171 conversions when we determine if two variables are equal
6173 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
6174 (T1)x if the outermost conversion is a sign-change only.
6176 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
6179 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
6181 * config/i386/predicates.md (constant_call_address_operand): Declare
6182 as special predicate. Update all uses.
6184 2012-03-13 Jakub Jelinek <jakub@redhat.com>
6187 * c-parser.c (c_parser_postfix_expression)
6188 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
6190 * config/i386/smmintrin.h: Avoid /* within a comment.
6191 * config/i386/nmmintrin.h: Likewise.
6193 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6195 * config/i386/i386.md (xbegin): Remove constraint from expander.
6197 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6199 * config/i386/predicates.md (constant_call_address_operand): Declare
6200 as special predicate. Update all uses.
6201 * config/i386/i386.md: Remove mode from constant_call_address_operand
6203 * config/i386/i386.c (ix86_output_call_insn): Call
6204 constant_call_address_operand with VOIDmode.
6206 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6208 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
6209 AND zero extended address correctly.
6211 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6213 * config/i386/predicates.md (tls_symbolic_operand): Declare as
6215 (tls_modbase_operand): Ditto.
6216 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
6217 tls_modbase_operand predicates.
6219 2012-03-13 Martin Jambor <mjambor@suse.cz>
6221 * expr.c (expand_assignment): Handle misaligned scalar writes to
6222 memory through top-level MEM_REFs by calling store_bit_field.
6224 2012-03-13 Richard Guenther <rguenther@suse.de>
6227 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
6228 if Y is a constant multiple of 1 << CST.
6230 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
6233 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
6234 offset (size) to a value the insns can deal with.
6235 (expand_epilogue): Ditto.
6237 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6239 * config/arm/neon.ml (ops): Fixup expected instructions for
6240 unsigned vector compares.
6242 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6244 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
6245 addresses only when %reg is not in word mode.
6247 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6249 * config/microblaze/microblaze.md: Fix typo.
6250 * tree-if-conv.c: Likewise.
6251 * tree-vect-patterns.c: Likewise.
6253 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6255 * config.gcc (extra_passes): Remove.
6256 * configure.ac (extra_passes): Don't substitute.
6257 * configure: Regenerate.
6258 * Makefile.in (EXTRA_PASSES): Remove.
6259 (GCC_PASSES): Remove $(EXTRA_PASSES).
6260 (MOSTLYCLEANFILES): Likewise.
6262 (install-common): Likewise.
6264 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
6266 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
6267 * config/i386/i386.c (ix86_decompose_address): Use
6268 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
6269 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
6270 thread pointer to a register.
6272 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
6274 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
6275 on tls_symbolic_operand.
6276 (tls_global_dynamic_64_<mode>): Likewise.
6278 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
6281 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
6282 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
6284 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
6287 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
6288 type from reg_class_t to enum reg_class.
6289 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
6291 2012-03-12 Andrew Pinski <apinski@cavium.com>
6293 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
6294 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
6295 (value_replacement): Likewise.
6296 (empty_block_p): Check also if the PHIs for the block are empty.
6298 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
6301 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
6302 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
6303 r184615 from 2012-02-28.
6305 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
6307 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
6308 (ix86_gen_tls_local_dynamic_base_64): Likewise.
6309 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
6310 and ix86_gen_tls_local_dynamic_base_64.
6311 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
6312 ix86_gen_tls_local_dynamic_base_64.
6314 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
6315 (*tls_global_dynamic_64_<mode>): This.
6316 (tls_global_dynamic_64): Renamed to ...
6317 (tls_global_dynamic_64_<mode>): This.
6318 (*tls_local_dynamic_base_64): Renamed to ...
6319 (*tls_local_dynamic_base_64_<mode>): This.
6320 (tls_local_dynamic_base_64): Renamed to ...
6321 (tls_local_dynamic_base_64_<mode>): This.
6323 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
6325 * config/i386/i386.c (ix86_option_override_internal): Properly
6326 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
6327 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
6328 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
6329 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
6331 * config/i386/sse.md (sse3_monitor64): Renamed to ...
6332 (sse3_monitor64_<mode>): This.
6334 2012-03-12 Tristan Gingold <gingold@adacore.com>
6336 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
6337 (ia64_function_arg_advance): Ditto.
6339 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6341 * config.gcc (mips*-*-openbsd*): Remove.
6342 * config/mips/openbsd.h: Remove.
6343 * config/mips/sdb.h: Remove.
6345 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
6346 * config/mips/mips.c (sdb_label_count): Remove.
6347 (mips_debugger_offset): Remove #if 0 code.
6348 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
6349 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
6351 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6353 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
6355 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
6356 Update binutils references.
6357 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
6358 Update binutils reference.
6359 Update Sun as/GNU ld caveat.
6360 Document binutils largefile requirement for LTO plugin.
6361 Remove reference to alternate libpthread.
6363 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6365 * config.gcc (alpha*-dec-osf5.1*): Remove.
6366 * config.host (alpha*-dec-osf*): Remove.
6367 * configure.ac (*-*-osf*): Remove.
6368 (alpha*-dec-osf*): Remove.
6369 * configure: Regenerate.
6371 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
6372 config/alpha/va_list.h, config/alpha/x-osf: Remove.
6374 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
6375 * config/alpha/alpha.c (struct machine_function): Update comment.
6376 (alpha_start_function): Remove Tru64 UNIX as handling for
6378 * config/alpha/alpha.md ("exception_receiver"): Remove
6379 TARGET_LD_BUGGY_LDGP.
6380 ("*exception_receiver_2"): Likewise.
6381 * except.c (finish_eh_generation): Remove Tru64 reference.
6382 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
6383 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
6384 * target.def (handle_pragma_extern_prefix): Remove.
6386 * Makefile.in (mips-tfile.o-warn): Remove.
6387 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
6388 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
6389 * mips-tdump.c, mips-tfile.c: Remove.
6391 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
6393 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
6394 (Specific, alpha*-dec-osf5.1): Note removal.
6395 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
6397 * doc/tm.texi: Regenerate.
6398 * doc/trouble.texi (Cross-Compiler Problems): Remove.
6400 2012-03-12 Richard Guenther <rguenther@suse.de>
6402 * config/arm/arm.c (neon_dereference_pointer): Do not call
6403 covert during RTL expansion.
6405 2012-03-12 Tristan Gingold <gingold@adacore.com>
6407 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
6408 Options. Mention -mpointer-size.
6410 2012-03-12 Richard Guenther <rguenther@suse.de>
6412 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
6413 build_nonstandard_integer_type.
6415 2012-03-12 Richard Guenther <rguenther@suse.de>
6417 * tree.c (signed_or_unsigned_type_for): Use
6418 build_nonstandard_integer_type.
6419 (signed_type_for): Adjust documentation.
6420 (unsigned_type_for): Likewise.
6421 * tree-pretty-print.c (dump_generic_node): Use standard names
6422 for non-standard integer types if available.
6424 2012-03-12 Tristan Gingold <gingold@adacore.com>
6426 * config/vms/vms.opt: Add vms-opts.h header.
6427 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
6429 (-mvms-return-codes): Document.
6430 (-mpointer-size): New option.
6431 (vms_pointer_size): Add enumeration.
6432 * config/vms/vms-opts.h: New file.
6433 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
6434 __INITIAL_POINTER_SIZE.
6435 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
6436 (C_COMMON_OVERRIDE_OPTIONS): Define.
6437 (DWARF2_ADDR_SIZE): Define.
6438 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
6439 * config/vms/vms-protos.h (vms_c_common_override_options):
6441 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
6442 if -mno-pointer-size.
6443 (vms_c_common_override_options): New function.
6444 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
6445 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
6446 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
6447 and flag_vms_pointer_size.
6448 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
6449 * config.gcc (*-*-*vms*): Define xm_file.
6450 (alpha*-dec-*vms*): Do not define xm_file.
6451 (alpha64-dec-*vms*): Remove.
6452 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
6455 2012-03-12 Jakub Jelinek <jakub@redhat.com>
6457 PR tree-optimization/51721
6458 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
6459 if (int) unsvar cmp CST.
6461 2012-03-12 Richard Guenther <rguenther@suse.de>
6463 * tree-sra.c (create_access_replacement): Only rename the replacement
6464 if we can rewrite it into SSA form. Properly mark register typed
6465 replacements that we cannot rewrite with TREE_ADDRESSABLE.
6466 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
6467 for aggregate or BLKmode results.
6469 2012-03-12 Jakub Jelinek <jakub@redhat.com>
6471 PR tree-optimization/52533
6472 * tree-vrp.c (register_edge_assert_for_2): Use double_int
6473 type for mask, only handle shifts by non-zero in-range
6474 shift count, for LE_EXPR and GT_EXPR if new_val is
6475 maximum, don't add the assertion.
6477 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
6479 * doc/invoke.texi: Document -mrtm option.
6480 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
6481 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
6482 (ix86_handle_option): Handle OPT_mrtm.
6483 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
6485 (x86_64-*-*): Ditto.
6486 * i386-builtin-types.def (INT_FTYPE_VOID): New.
6487 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6489 (ix86_target_string): Define -mrtm option.
6491 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
6493 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
6494 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
6496 (bdesc_special_args): Ditto.
6497 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
6498 (ix86_expand_special_args_builtin): Handle new built-in type.
6499 (ix86_expand_builtin): Handle XABORT instruction.
6500 * config/i386/i386.h (TARGET_RTM): New.
6501 * config/i386/i386.md (UNSPECV_XBEGIN): New.
6502 (UNSPECV_XEND): Ditto.
6503 (UNSPECV_XABORT): Ditto.
6504 (UNSPECV_XTEST): Ditto.
6511 * config/i386/i386.opt (mrtm): New.
6512 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
6513 * config/i386/rtmintrin.h: New header.
6514 * config/i386/xtestintrin.h: Ditto.
6516 2012-03-12 Tristan Gingold <gingold@adacore.com>
6518 * ginclude/stddef.h: Adjust previous patch.
6519 Use __VMS__ instead of VMS.
6521 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
6523 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
6524 Also convert sequences with CC setting arithmetic instruction.
6526 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
6528 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
6529 from C Language Options to Preprocessor Options.
6530 (C Dialect Options): Move -no-integrated-cpp documentation
6532 (Preprocessor Options): ...to here. Rewrite the description
6533 so it makes more sense, and remove discussion of merging front ends.
6535 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6537 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
6539 (ix86_expand_setmem): Likewise.
6541 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
6543 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
6546 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6548 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
6549 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
6551 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6553 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
6555 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6557 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
6560 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
6561 Uros Bizjak <ubizjak@gmail.com>
6563 * config/i386/predicates.md (call_insn_operand): Allow
6564 constant_call_address_operand in Pmode only.
6565 (sibcall_insn_operand): Ditto.
6566 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
6567 (*call_vzeroupper): Ditto.
6569 (*sibcall_vzeroupper): Ditto.
6570 (*call_value): Ditto.
6571 (*call_value_vzeroupper): Ditto.
6572 (*sibcall_value): Ditto.
6573 (*sibcall_value_vzeroupper): Ditto.
6574 (*indirect_jump): Ditto.
6575 (*tablejump_1): Ditto.
6576 (indirect_jump): Convert memory address to word mode for TARGET_X32.
6578 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
6581 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
6584 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
6585 Use movrt_negc instead of negc pattern for non-SH2A.
6587 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
6589 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
6591 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
6592 if Pmode != word_mode.
6593 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
6594 Pmode == SImode for TARGET_X32.
6596 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
6597 (tls_initial_exec_x32): Likewise.
6599 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
6601 PR rtl-optimization/52528
6602 * combine.c (can_combine_p): Add setting of subst_low_luid
6603 before call to expand_field_assignment().
6605 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
6607 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
6608 and related program names.
6610 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
6612 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
6614 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
6617 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
6618 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
6620 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
6621 (*movdi_internal_rex64): Use %E operand modifier for lea.
6622 (*movsi_internal): Ditto.
6624 (*lea<mode>_2): Ditto.
6625 (*lea_{3,4,5,6}_zext): Ditto.
6626 (*tls_global_dynamic_32_gnu): Ditto.
6627 (*tls_global_dynamic_64): Ditto.
6628 (*tls_dynamic_gnu2_lea_32): Ditto.
6629 (*tls_dynamic_gnu2_lea_64): Ditto.
6630 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
6632 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6634 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
6635 redefine to be NULL if the current bit-size is different from the
6636 configured bit-size.
6638 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
6639 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
6640 set the default tuning. Add asserts to make sure the cpu and tune
6641 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
6642 test whether the index is set, instead of > 0.
6643 (rs6000_file_start): Do not reset the default cpu if the current
6644 bit-size is different from the configured bit-size.
6646 2012-03-09 Tristan Gingold <gingold@adacore.com>
6648 * config/vms/vms-crtlmap.map: Add comments.
6649 Add entries needed to build Ada RTS.
6651 2012-03-09 Tristan Gingold <gingold@adacore.com>
6653 * ginclude/stddef.h: Do not define __size_t on VMS.
6655 2012-03-09 Tristan Gingold <gingold@adacore.com>
6657 * c-tree.h (c_default_pointer_mode): New variable.
6658 * c-decl.c (c_default_pointer_mode): New variable.
6659 (c_build_pointer_type): New function.
6660 (grokdeclarator): Call c_build_pointer_type instead
6661 of build_pointer_type.
6663 * config/vms/vms-c.c: Include c-tree.h
6664 (saved_pointer_mode): New variable.
6665 (handle_pragma_pointer_size): New function.
6666 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
6667 (vms_c_register_pragma): Register __pointer_size and
6668 __required_pointer_size pragmas.
6670 2012-03-09 Tristan Gingold <gingold@adacore.com>
6672 * config/vms/vms-c.c (vms_construct_include_filename): New function.
6673 (vms_c_register_includes): Reference it.
6675 2012-03-09 Andrew Pinski <apinski@cavium.com>
6678 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
6680 (tree_ssa_phiopt_worker): Go through all the PHIs for
6681 value_replacement instead of just the singleton one.
6682 (value_replacement): Change return type to int. Return 0 instead of
6684 Allow the middle basic block to contain more than just the defining
6686 Handle non empty middle basic blocks.
6687 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
6689 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
6691 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
6692 array reference and component reference.
6693 (analyze_scalar_evolution_for_address_of): New.
6695 2012-03-08 Jie Zhang <jzhang918@gmail.com>
6698 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
6699 (hwloop_pattern_reg): Fix set but not used warning.
6700 (bfin_reorg_loops): Remove unused parameter.
6701 (bfin_reorg): Update use of bfin_reorg_loops.
6703 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
6705 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
6706 with integer parameters in registers.
6707 (gen_push): Push register in word_mode instead of Pmode.
6708 (ix86_emit_save_regs): Likewise.
6709 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
6710 (gen_pop): Pop register in word_mode instead of Pmode.
6711 (ix86_emit_restore_regs_using_pop): Likewise.
6712 (ix86_expand_prologue): Replace Pmode with word_mode for push
6713 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
6714 restore RAX and R10 in word_mode.
6715 (ix86_emit_restore_regs_using_mov): Restore integer registers
6717 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
6719 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
6720 (ix86_split_long_move): Likewise.
6722 * config/i386/i386.md (W): New.
6723 (*push<mode>2_prologue): Replace :P with :W.
6724 (*pop<mode>1): Likewise.
6725 (*pop<mode>1_epilogue): Likewise.
6726 (push/pop peephole2): Use word_mode scratch registers.
6728 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
6730 * config/i386/predicates.md (indirect_branch_operand): Simplify.
6732 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
6734 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
6735 for constants in [-63,63].
6737 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
6741 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
6743 * config/i386/i386.c (ix86_print_operand_address): Only handle
6744 zero-extended DImode addresses.
6746 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6748 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
6749 * configure: Regenerate.
6751 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
6754 * config/avr/avr.c (avr_mem_clobber): New static function.
6755 (avr_expand_delay_cycles): Add memory clobber operand to
6756 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
6757 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
6758 (enable_interrupt, disable_interrupt): New expander.
6759 (nopv, sleep, wdr): New expanders.
6760 (delay_cycles_1): Add memory clobber.
6761 (delay_cycles_2): Add memory clobber.
6762 (delay_cycles_3): Add memory clobber.
6763 (delay_cycles_4): Add memory clobber.
6764 (cli_sei): New insn from former "enable_interrupt",
6765 "disable_interrupt" with memory clobber.
6766 (*wdt): New insn from former "wdt" with memory clobber.
6767 (*nopv): Similar, but for "nopv".
6768 (*sleep): Similar, but for "sleep".
6770 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
6771 Kaz Kojima <kkojima@gcc.gnu.org>
6774 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
6775 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
6776 (SUBTARGET_OVERRIDE_OPTIONS): Define.
6778 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
6780 * config/i386/predicates.md (x86_64_zext_general_operand): New.
6781 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
6782 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
6784 2012-03-07 Walter Lee <walt@tilera.com>
6786 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
6787 REG_CFA_* notes for the stack pointer.
6788 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
6789 EH_RETURN_STACKADJ_RTX.
6790 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
6791 generate REG_CFA_* notes for the stack pointer.
6792 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
6793 by EH_RETURN_STACKADJ_RTX.
6795 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6797 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
6798 when __AVR_3_BYTE_PC__ is defined.
6800 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
6802 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
6803 (ix86_print_operand): Handle '^'.
6804 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
6805 using P mode iterator. Add %^ to asm template to conditionally emit
6807 (*rep_movdi_rex64): Ditto.
6808 (*strsetdi_rex_1): Ditto.
6809 (*rep_stosdi_rex64): Ditto.
6810 (*strmov{si,hi,qi}_1): Add %^ to asm template to
6811 conditionally emit addr32 prefix.
6812 (*rep_mov{si,qi}): Ditto.
6813 (*strset{si,hi,qi}): Ditto.
6814 (*rep_stos{si,qi}): Ditto.
6815 (*cmpstrnqi_nz_1): Ditto.
6816 (*cmpstrnqi_1): Ditto.
6817 (*strlenqi_1): Ditto.
6819 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
6821 * config/i386/i386.c (function_value_64): Return pointers in
6822 word_mode instead of Pmode.
6823 (ix86_promote_function_mode): Likewise.
6825 2012-03-07 Richard Guenther <rguenther@suse.de>
6827 * coverage.c (get_gcov_type): Use type_for_mode.
6828 (get_gcov_unsigned_t): Likewise.
6829 * expr.c (store_constructor): Use type_for_mode.
6830 (try_casesi): Likewise.
6831 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
6832 (add_standard_iv_candidates): Use standard type trees.
6833 * dojump.c (do_jump): Remove dead code.
6835 2012-03-07 Richard Guenther <rguenther@suse.de>
6837 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
6839 2012-03-07 Richard Guenther <rguenther@suse.de>
6841 * convert.c (strip_float_extensions): Move ...
6842 * tree.c (strip_float_extensions): ... here.
6844 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6847 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
6849 2012-03-07 Richard Guenther <rguenther@suse.de>
6851 * omp-low.c (extract_omp_for_data): Use signed_type_for.
6852 (expand_omp_for_generic): Likewise.
6853 (expand_omp_for_static_nochunk): Likewise.
6854 (expand_omp_for_static_chunk): Likewise.
6855 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
6856 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
6857 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6858 Use unsigned_type_for.
6859 (vect_create_cond_for_align_checks): Use signed_type_for.
6861 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
6863 PR rtl-optimization/52203
6864 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
6865 all callers to pass NULL except ...
6866 (reset_sched_cycles_in_current_ebb): ... here, save the value
6867 in new variable 'empty'. Increase issue_rate only for
6870 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
6873 * Makefile.in: Let install-gcc-ar depend on installdirs,
6874 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
6875 Don't double canonicalize if cross-compiling.
6877 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6880 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
6881 to: RAMPZ, RAMPY, RAMPX, RAMPD.
6882 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
6884 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6887 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
6889 * config/avr/avr.md (xload_8): Adjust insn length.
6891 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
6894 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
6895 if RAMPZ affects reading from RAM.
6897 2012-03-07 Richard Guenther <rguenther@suse.de>
6901 * doc/invoke.texi (Precompiled Headers): Remove sentence that
6902 suggests you can include PCHs from inside another header.
6904 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
6907 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
6909 2012-03-07 Kai Tietz <ktietz@redhat.com>
6911 * doc/invoke.texi (fwritable-relocated-rdata): Document
6912 new Cygwin/MinGW target option.
6913 * config/i386/winnt.c (i386_pe_unique_section): Ignore
6914 reloc if flag -fwritable-relocated-rdata is not set.
6915 (i386_pe_section_type_flags): Likewise.
6916 * config/i386/cygming.opt (fwritable-relocated-rdata):
6917 Add new flag variable flag_writable_rel_rdata.
6919 2012-03-07 Richard Guenther <rguenther@suse.de>
6921 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
6922 precision against gimple constraints.
6924 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
6927 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
6929 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
6930 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
6932 (init_emit_regs): Move associated initialization to...
6933 (init_emit_once): ...here.
6935 2012-03-06 Richard Henderson <rth@redhat.com>
6937 * config/m68k/m68k.h (ISA_HAS_TAS): New.
6938 * config/m68k/sync.md (atomic_test_and_set): Use it.
6939 (atomic_test_and_set_1): Likewise.
6941 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
6944 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
6945 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
6946 (vector_ltgt<mode>): Likewise.
6947 (vector_ordered<mode>): Likewise.
6948 (vector_unordered<mode>): Likewise.
6949 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6951 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
6953 * trans-mem.c: New typedef for tm_region_p.
6954 Define vector types for tm_region_p.
6955 (tm_region_init): Replace region_worklist to a vector called
6958 2012-03-06 Richard Guenther <rguenther@suse.de>
6960 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
6961 MEM_REF with constant pointer operand.
6963 2012-03-06 Richard Guenther <rguenther@suse.de>
6966 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
6968 2012-03-06 Tristan Gingold <gingold@adacore.com>
6970 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
6971 (external_model_kind): Improve documentation.
6972 (vms_pragma_extern_model): Handle relaxed_redef.
6973 (vms_c_register_pragma): Allow expansion for nomember_alignment.
6975 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
6977 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
6978 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
6979 Some more notes on EIND usage and reorder EIND subsection.
6981 2012-03-06 Tristan Gingold <gingold@adacore.com>
6983 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
6984 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
6986 2012-03-06 Tristan Gingold <gingold@adacore.com>
6988 * config/vms/t-vmsnative (version): Define.
6989 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
6991 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
6993 PR rtl-optimization/52250
6994 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
6995 to put note list into. Unconditionally call move_bb_info.
6996 (move_bb_info): Do not assert the blocks being in the same region,
6997 just drop the note list if they are not.
6999 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
7002 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
7003 and use unified expansion logic.
7004 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
7005 closer to the existing movt insn.
7006 (negc): Rename insn to *negc. Add new expander.
7007 (movnegt): Use xor pattern for T bit negation. Reserve helper
7008 constant for negc pattern.
7009 (*movnegt): New insn and splitter.
7011 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
7013 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
7016 2012-03-05 Richard Henderson <rth@redhat.com>
7018 * genemit.c (main): Include "target.h" in insn-emit.c.
7019 * Makefile.in (insn-emit.o): Depend on TARGET_H.
7020 * config/sh/sync.md (atomic_test_and_set): Reference
7021 targetm.atomic_test_and_set_trueval instead of
7022 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
7024 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
7026 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
7029 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
7031 * langhooks.c (add_builtin_type): New function.
7032 * langhooks.h (add_builtin_type): Export it.
7033 * config/mep/mep.c (mep_init_builtins): Use it.
7034 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
7036 2012-03-05 Jakub Jelinek <jakub@redhat.com>
7039 * tree.h (BLOCK_SAME_RANGE): Define.
7040 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
7041 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
7042 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
7043 isn't equal to supercontext fragment's fragment chain.
7044 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
7046 (blocks_nreverse_all): Likewise.
7047 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
7048 BLOCK_SUPERCONTEXT to supercontext fragment instead of
7049 supercontext fragment's fragment origin.
7050 * dwarf2out.c (add_high_low_attributes): If stmt has the same
7051 range as its parent (or parents thereof etc.), use the parent's
7052 DW_AT_ranges value instead of creating a new .debug_ranges range.
7054 2012-03-05 Richard Henderson <rth@redhat.com>
7057 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
7058 * omp-low.c (expand_omp_atomic): Assume anything aligned to
7059 BIGGEST_ALIGNMENT is aligned.
7061 2012-03-05 Richard Henderson <rth@redhat.com>
7063 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
7064 * config/sh/sh.c: ... here.
7066 2012-03-05 Richard Henderson <rth@redhat.com>
7069 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
7070 instead of calling negqi2 directly.
7072 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
7075 * trans-mem.c (tm_region_init): Use last_basic_block.
7077 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
7079 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
7080 * config/sh/sync.md (atomic_test_and_set): New expander.
7081 (tasb, atomic_test_and_set_soft): New insns.
7082 * config/sh/sh.opt (menable-tas): New option.
7083 * doc/invoke.texi (SH Options): Document it.
7085 2012-03-05 Richard Guenther <rguenther@suse.de>
7087 * cfgloop.c (verify_loop_structure): Verify dominators before
7089 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
7090 dominators from here.
7091 * graphite-scop-detection.c (create_sese_edges): Likewise.
7092 * loop-doloop.c (doloop_optimize_loops): Likewise.
7093 * loop-init.c (loop_optimizer_init): Likewise.
7094 * loop-unroll.c (unroll_and_peel_loops): Likewise.
7095 * loop-unswitch.c (unswitch_loops): Likewise.
7096 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
7097 * tree-parloops.c (parallelize_loops): Likewise. Verify
7098 only when checking is enabled.
7099 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
7101 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
7103 * genautomata.c (parse_automata_opt): New static function.
7104 (initiate_automaton_gen): Remove all option handling code. Remove
7105 argc argument. All callers changed.
7106 (main): Call init_rtx_reader_args_cb with the new function as argument.
7108 2012-03-05 Richard Guenther <rguenther@suse.de>
7110 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
7111 * tree-if-conv.c (combine_blocks): Free post-dominator info
7113 * tree-parloops.c (create_parallel_loop): Free and re-compute
7114 dominator info after breaking it.
7116 2012-03-05 Richard Guenther <rguenther@suse.de>
7119 * optabs.h (trapv_unoptab_p): New function.
7120 (trapv_binoptab_p): Likewise.
7121 * optabs.c (expand_binop): Use emit_libcall_block_1 with
7122 a proper equiv_may_trap argument.
7123 (expand_unop): Likewise.
7124 (emit_libcall_block_1): Take extra argument whether the
7125 instruction may trap. Renamed from ...
7126 (emit_libcall_block): ... this. New wrapper.
7128 2012-03-05 Jakub Jelinek <jakub@redhat.com>
7130 PR tree-optimization/51721
7131 * tree-vrp.c (register_edge_assert_for_2): If comparing
7132 lhs of right shift by constant with an integer constant,
7133 add ASSERT_EXPRs for the rhs1 of the right shift.
7135 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
7137 2012-03-05 Richard Guenther <rguenther@suse.de>
7139 * tree.c (integer_zerop): Handle VECTOR_CSTs.
7140 (integer_onep): Likewise.
7141 (integer_all_onesp): Likewise.
7143 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
7145 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
7147 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7149 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
7150 instead of TARGET_64BIT.
7152 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7154 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
7157 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
7159 * config/i386/i386.c (ix86_print_operand_address): Only handle
7160 zero-extended DImode addresses.
7162 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
7164 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
7165 taken and cputaken as bool.
7167 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
7169 * config/i386/constraints.md (Ya): New internal constraint.
7170 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
7171 (*zero_extendsidi2_rex64): Add x,x alternative.
7172 (*zero_extendsidi2): Ditto. Add o,0 alternative.
7173 Remove flags reg clobber. Adjust corresponding splits.
7174 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
7175 zero_extendqisi2 expanders using SWI12 mode iterator.
7176 (zero_extend<mode>si2_and): Macroize insn from
7177 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
7179 (*zero_extend<mode>si2): Macroize insn from
7180 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
7181 (*zero_extend*2_movzbl_and): Remove insn patterns.
7182 (zero_extendqihi2_and): Merge corresponding splitter.
7183 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
7184 (*zero_extend*2_movzbl_and): Remove insn patterns.
7185 (*anddi_1): Split TYPE_IMOVX instructions.
7186 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
7188 (and->zext splitter): Add splitter pattern.
7189 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
7191 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
7193 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
7195 (Debugging Options): Likewise.
7196 (Optimize Options): Likewise.
7197 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
7198 with other architectures. Use official processor names with correct
7199 spelling/capitalization. Fix formatting and grammar issues.
7200 (i386 and x86-64 Windows Options): Similar cleanup here.
7202 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7204 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
7206 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7208 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
7209 DBX_REGISTER_NUMBER.
7211 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7213 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
7214 operand is CONST_INT. Take COSTS_N_INSNS into account.
7215 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
7218 2012-03-02 Richard Henderson <rth@redhat.com>
7220 * optabs.c (expand_atomic_test_and_set): Honor
7221 atomic_test_and_set_trueval even when atomic_test_and_set
7222 optab is not in use.
7224 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
7228 * config/sh/sh.c (sh_register_move_cost): Increase cost between
7229 GENERAL_REGS and FP_REGS for SImode.
7231 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7234 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
7235 (absdi2): New expander.
7236 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
7238 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7240 * config/sh/sync.md (atomic_exchange<mode>): New expander.
7241 (atomic_exchange<mode>_soft): New insn.
7243 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7245 * config/sh/sync.md: Update copyright notice dates.
7246 (atomic_compare_and_swap<mode>): Use SImode for return value instead
7248 (atomic_compare_and_swap<mode>_soft): Likewise.
7250 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
7253 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
7254 * config/sh/sh.c: Update copyright notice dates.
7255 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
7256 alignment for TARGET_HARD_SH4.
7257 (sh_option_override): Reduce default function alignment. Set
7258 loop alignment to 4 bytes when not optimizing for size.
7260 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
7263 * doc/invoke.texi (floop-flatten): Remove.
7264 * toplev.c (process_options): Remove references to flag_loop_flatten.
7265 * tree-ssa-loop.c (gate_graphite_transform): Same.
7266 * common.opt (floop-flatten): Obsolete.
7267 * graphite-poly.c (apply_poly_transforms): Remove reference to
7269 * Makefile.in (graphite-flattening.o): Remove.
7270 * graphite-flattening.c: Remove.
7272 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
7274 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
7275 having mode compatible with the mode of previous compare. Substitute
7276 compare mode of previous compare with the mode, compatible
7277 with eliminated and previous compare.
7279 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
7281 * config/rs6000/dfp.md (floatdidd2): New define_insn.
7283 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
7285 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
7286 compatible with CCGOCmode and CCGCmode.
7288 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
7290 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
7292 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
7294 * config/arm/arm.c (arm_sat_operator_match): New function.
7295 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
7296 * config/arm/arm.md ("insn" attribute): Add "sat" value.
7297 ("SAT", "SATrev"): New code iterators.
7298 ("SATlo", "SAThi"): New code iterator attributes.
7299 ("*satsi_<SAT:code>"): New pattern.
7300 ("*satsi_<SAT:code>_shift"): Likewise.
7301 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
7302 and "shift" attributes.
7303 ("arm_usatsihi"): Add "insn" attribute.
7304 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
7305 by powers of two. Do not allow shift by 32.
7307 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
7310 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
7311 to pass the argument in the register of "natural" mode.
7313 2012-03-02 Richard Guenther <rguenther@suse.de>
7315 PR tree-optimization/52406
7316 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
7317 (struct indices): Add unconstrained_base member.
7318 (struct dr_alias): Remove unused vops member.
7319 (DR_UNCONSTRAINED_BASE): New define.
7320 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
7321 add indices to allow their disambiguation. Make DR_BASE_OBJECT
7322 be an artificial access that covers the whole indexed object,
7323 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
7324 plain decl base-objects to their MEM_REF variant.
7325 (dr_may_alias_p): When the base-object of either data reference
7326 has unknown size use only points-to information.
7327 (compute_affine_dependence): Make dumps easier to read and
7329 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
7330 DR_REF when looking for packed references.
7331 (vect_supportable_dr_alignment): Likewise.
7333 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
7335 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
7336 Improve conditions for peepholes of loads followed by commutative
7338 * config/arm/ldmstm.md: Regenerated.
7340 2012-03-02 Richard Guenther <rguenther@suse.de>
7342 * BASE-VER: Set to 4.8.0.
7344 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
7346 * config.gcc (obsolete): Add all ARM targets using the FPA.
7347 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
7348 * doc/install.texi: Avoid references to obsolete ARM ports.
7350 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
7352 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
7354 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
7355 Joern Rennecke <joern.rennecke@embecosm.com>
7357 * doc/extend.texi: Expand and update information on interrupt
7358 attribute for Epiphany.
7360 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
7362 * config/sh/sh-protos.h: Update copyright notice dates.
7363 * config/sh/sh.h: Likewise.
7364 * config/sh/sh.md: Likewise.
7365 * config/sh/constraints.md: Likewise.
7366 * config/sh/predicates.md: Likewise.
7368 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
7370 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
7371 * config/sh/sh.c (tertiary_reload_operand): Likewise.
7373 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
7375 * config/sh/constraints.md: Fix comment typo.
7377 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7380 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
7381 unsigned HOST_WIDE_INT.
7382 (zvdep_imm64): Likewise.
7383 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
7384 (vdepi_and): Likewise.
7385 Likewise for unamed 64-bit patterns.
7386 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
7388 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
7391 PR rtl-optimization/52417
7392 * cselib.c (cselib_any_perm_equivs): New variable.
7393 (cselib_reset_table): Check that it's not set when not
7394 preserving constants.
7395 (cselib_add_permanent_equiv): Set it.
7396 (cselib_have_permanent_equivalences): New.
7397 (cselib_init, cselib_finish): Reset it.
7398 * cselib.h (cselib_have_permanent_equivalences): Declare.
7399 * alias.c (get_addr): Restore earlier behavior when there
7400 aren't permanent equivalences.
7402 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
7404 * config/mn10300/mn10300-modes.def: Fix copyright notice.
7405 * config/v850/v850-modes.def: Fix copyright notice.
7407 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
7409 * doc/extend.texi (AVR Built-in Functions): Document
7410 __builtin_avr_flash_segment.
7412 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
7413 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
7414 (*split.flash_segment): New insn-and-split.
7415 * config/avr/avr.c (avr_init_builtins): Add local variables:
7416 const_memx_void_node, const_memx_ptr_type_node,
7417 char_ftype_const_memx_ptr.
7419 2012-03-01 Jakub Jelinek <jakub@redhat.com>
7421 PR tree-optimization/52445
7422 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
7423 add ssa_name_ver, offset and size fields and change store field
7425 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
7426 (add_or_mark_expr): Likewise. Only consider previous stores
7427 with the same size and offset.
7428 (nt_init_block): Only look at gimple_assign_single_p stmts,
7429 doesn't look at rhs2.
7431 2012-03-01 Richard Guenther <rguenther@suse.de>
7434 * tree-cfg.c (verify_gimple_assign_unary): Allow any
7435 conversions from integral types to pointer types.
7437 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
7439 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
7440 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
7441 unintentionally removed in r184616.
7443 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7445 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
7448 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7449 Uros Bizjak <ubizjak@gmail.com>
7452 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
7453 alternatives, add "e" constraint to the new last alternative
7454 and ! to last 3 alternatives.
7456 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
7458 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
7459 DW_AT_artificial attributes at the end of the processing.
7460 (gen_array_type_die): Likewise.
7461 (gen_enumeration_type_die): Likewise.
7462 (gen_struct_or_union_type_die): Likewise.
7463 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
7466 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7469 * expr.c (expand_assignment): If doing misaligned store that doesn't
7470 cover all mode bits, perform a RMW cycle.
7472 PR tree-optimization/52429
7473 * tree-parloops.c (separate_decls_in_region_debug): Return early
7474 if var is LABEL_DECL.
7476 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7478 PR tree-optimization/52424
7479 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
7480 calling dom_thread_across_edge.
7482 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7484 * config/avr/avr.c: Move definition of TARGET macros to end of file.
7486 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7488 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
7489 * config/avr/avr.c (avr_output_bld): Remove unused function.
7490 (avr_out_sbxx_branch): Use "%T" to print bit position.
7492 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7494 * config/avr/avr.md: Untabify.
7496 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7498 * config/avr/avr.md (eqne): New code iterator.
7499 (*dec-and-branchsi): Use it in text peephole's condition.
7500 (*dec-and-branchhi): Ditto.
7501 (*dec-and-branchqi): Ditto.
7503 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
7506 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
7507 the device does not have the skip-bug.
7509 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
7511 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
7512 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
7513 -mpretend-cmove): New.
7515 2012-02-29 Jakub Jelinek <jakub@redhat.com>
7518 * df.h (struct df_d): Adjust comment that hard_regs_live_count
7519 doesn't count DEBUG_INSN refs.
7520 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
7521 for DEBUG_INSN refs.
7523 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7527 2012-02-20 Richard Guenther <rguenther@suse.de>
7528 PR tree-optimization/52298
7529 * tree-vect-stmts.c (vectorizable_load): Properly use
7530 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
7532 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
7535 * gimple.h (gimple_in_transaction): New.
7536 (gimple_set_in_transaction): New.
7537 (struct gimple_statement_base): Add in_transaction field.
7538 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
7540 (tree_ssa_lim_initialize): Compute transaction bits.
7541 * tree.h (compute_transaction_bits): Protoize.
7542 * trans-mem.c (tm_region_init): Use the heap to store BB
7544 (compute_transaction_bits): New.
7546 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7548 * gcc.c (display_help): Document --help=common and sort entries
7551 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7553 * doc/install.texi: Document check-$LANG specific shortcuts
7555 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7558 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
7560 * config/arm/arm_neon.h: Regenerate.
7561 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
7562 (neon_vcgeu): New insn.
7563 (neon_vcgtu): Likewise.
7564 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
7565 (ops): Unsigned comparison intrinsics call a different builtin.
7567 2012-02-28 Richard Guenther <rguenther@suse.de>
7570 * config/i386/i386.c (ix86_expand_vector_set): Fix element
7571 ordering for the VEC_CONCAT for two element vectors for
7572 V2SFmode, V2SImode and V2DImode.
7574 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
7577 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
7578 detecting big-endian triplets.
7580 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
7582 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
7583 mode if there is no type information available.
7585 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
7587 PR tree-optimization/53207
7588 * doc/invoke.texi: Document as experimental and relying on graphite.
7590 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7592 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
7593 of initializer to changes from r184614.
7595 2012-02-28 Richard Guenther <rguenther@suse.de>
7597 PR tree-optimization/52395
7598 * tree-sra.c (build_ref_for_offset): Also look at the base
7599 TYPE_ALIGN when figuring out the alignment of the replacement.
7601 2012-02-28 Richard Guenther <rguenther@suse.de>
7603 PR tree-optimization/52402
7604 * ipa-prop.c (ipa_modify_call_arguments): Properly use
7605 mis-aligned types when creating the accesses at the call site.
7607 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7609 * config/avr/builtins.def: New file.
7610 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
7611 * config/avr/avr.c (enum avr_builtin_id): Use it.
7612 (avr_init_builtins): Use it. And use avr_bdesc.
7613 (bdesc_1arg): Remove.
7614 (bdesc_2arg): Remove.
7615 (bdesc_3arg): Remove.
7616 (struct avr_builtin_description): Add field n_args.
7617 (avr_bdesc): New static variable using builtins.def.
7618 (avr_expand_builtin): Use it.
7619 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
7620 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
7621 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
7623 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7626 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
7627 match only one single hard register with respective hard reg rtx.
7628 (movmemx_<mode>): Ditto.
7629 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
7630 insn anatomy of movmem[x]_<mode>.
7631 (avr_out_movmem): Same for printing assembler and operand usage.
7633 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
7637 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
7638 address spaces located outside of device flash.
7640 * config/avr/avr.h (base_arch_s): Remove field n_segments.
7641 (mcu_type_s): Add field n_flash.
7642 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
7643 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
7644 (AVR_MCU): Add N_FLASH argument.
7645 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
7646 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
7647 macro __FLASH<n> if that address space makes sense for the device.
7648 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
7649 outside of target flash.
7650 (avr_asm_named_section): Ditto.
7651 (avr_asm_select_section): Ditto.
7652 (avr_addr_space_convert): Ditto.
7653 (avr_emit_movmemhi): Ditto.
7654 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
7655 address space is outside of device flash.
7656 (avr_insert_attributes): Ditto.
7657 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
7658 avr_current_arch->n_segments.
7660 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
7663 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
7664 (*movabs<mode>_2): Likewise.
7666 2012-02-27 Jakub Jelinek <jakub@redhat.com>
7669 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
7670 s_register_operand in the test instead of REG_P. Don't call
7671 gen_reg_rtx if it won't be used.
7673 PR tree-optimization/52376
7674 * ipa-split.c (split_function): Ignore CLOBBER stmts.
7676 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
7678 * ifcvt.c (noce_get_condition): Check condition variable is not
7679 small_register_classes_for_mode_p before accepting.
7681 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
7683 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
7685 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7688 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7689 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
7691 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
7693 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
7695 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
7697 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
7699 * config/sh/predicates.md: Remove blank lines.
7700 * config/sh/sh.c: Fix typos in comments.
7701 * config/sh/constraints.md: Likewise.
7702 * config/sh/sh.md: Remove blank lines.
7703 Fix typos in comments. Use ;; as comment characters.
7705 2012-02-26 Walter Lee <walt@tilera.com>
7707 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
7708 (replace_mov_pcrel_step2): Ditto.
7710 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
7713 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
7714 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
7715 and locs that reference values newer than the non-canonical value
7716 at hand. Return the canonical value as a worst case.
7717 (memrefs_conflict_p): Walk canonical value's locs.
7720 * cselib.c (preserve_only_constants): Rename to...
7721 (preserve_constants_and_equivs): ... this. Split out...
7722 (invariant_or_equiv_p): ... this. Preserve plus expressions
7723 of other preserved expressions too.
7724 (cselib_reset_table): Adjust.
7725 * var-tracking.c (reverse_op): Use canonical value to build
7728 2012-02-23 Kai Tietz <ktietz@redhat.com>
7730 * config/i386/i386.c (ix86_delegitimize_address): Handle
7731 UNSPEC_PCREL plus displacement.
7733 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
7736 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
7737 to test for unusedness in st X addressing.
7739 2012-02-24 Richard Guenther <rguenther@suse.de>
7742 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
7743 (is_gimple_reg_type): Move inline ...
7744 * gimple.h (is_gimple_reg_type): ... here.
7746 2012-02-24 Richard Guenther <rguenther@suse.de>
7749 * passes.c (execute_function_todo): When verifying SSA form
7750 verify gimple form first.
7751 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
7753 2012-02-24 Richard Guenther <rguenther@suse.de>
7756 * fold-const.c (fold_addr_of_array_ref_difference): New function.
7757 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
7759 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7761 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
7763 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7765 * tree-phinodes.c (make_phi_node): Mark static.
7766 * tree-flow.h (make_phi_node): Remove extern decl.
7767 * doc/gimple.texi (make_phi_node): Remove documentation.
7769 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7771 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
7772 * tree-ssa-sccvn.c (print_scc): Ditto.
7774 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7776 * doc/passes.texi (Full redundancy elimination): Fix typo.
7778 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7780 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
7782 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
7785 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
7787 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
7790 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
7792 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
7794 * config/avr/avr.md (code_stdname): Add ior, xor.
7795 (xior): New code iterator.
7796 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
7797 (*<code_stdname><mode>qi.byte1-3): Ditto.
7799 2012-02-23 Jakub Jelinek <jakub@redhat.com>
7801 PR tree-optimization/52019
7802 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
7805 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7807 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
7808 HAVE_INITFINI_ARRAY to work around namespace pollution in
7809 certain versions of newlib system headers.
7810 * config.in: Regenerate.
7811 * configure: Regenerate.
7812 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
7813 instead of HAVE_INITFINI_ARRAY.
7815 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
7818 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
7819 is not offsettable memory reference.
7821 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7824 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
7825 setting avr_need_clear_bss_p for __gnu_lto* symbols.
7827 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7829 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
7830 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
7832 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7834 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
7835 library on Solaris 8 even without TLS support.
7836 * configure: Regenerate.
7838 2012-02-22 Richard Guenther <rguenther@suse.de>
7841 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
7842 for GIMPLE_DEBUG stmts.
7844 2012-02-22 Martin Jambor <mjambor@suse.cz>
7847 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
7848 according to the base object.
7850 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
7852 PR rtl-optimization/50063
7853 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
7854 and 2 (8-bit SP) in operand 2.
7855 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
7856 setup to use movhi_sp_r instead of vanilla move to write SP.
7857 Adjust REG_CFA notes to superseed unspec.
7858 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
7860 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
7861 known to be off) only with TARGET_NO_INTERRUPTS. Never use
7862 irq_state 1 (IRQ known to be on) here.
7864 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
7866 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
7868 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
7869 assign_hard_reg): Likewise.
7871 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7873 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
7875 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7878 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
7879 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
7881 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
7883 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
7884 prototype from here to...
7885 * config/avr/avr.h: ...here.
7887 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
7890 * thumb2.md (thumb2_shiftsi3_short): Split register and
7891 immediate shifts. For register shifts tie operands 0 and 1.
7892 (peephole2 for above): Check that register-controlled shifts
7893 have suitably tied operands.
7895 2012-02-21 Quentin Neill <quentin.neill@amd.com>
7898 * config/i386/bdver1.md (bdver1_call, bdver1_push,
7899 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
7900 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
7901 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
7902 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
7903 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
7904 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
7905 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
7906 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
7907 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
7908 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
7909 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
7910 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
7911 bdver1_ssevector_avx256_unaligned_load,
7912 bdver1_ssevector_sse128_unaligned_load,
7913 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
7914 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
7915 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
7916 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
7917 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
7918 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
7919 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
7920 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
7921 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
7922 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
7923 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
7924 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
7925 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
7926 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
7927 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
7928 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
7929 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
7930 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
7931 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
7932 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
7933 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
7934 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
7935 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
7936 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
7937 bdver1_ssediv_double_load, bdver1_ssediv_double,
7938 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
7939 Add "bdver2" attribute.
7941 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7943 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
7944 default if possible and not specified otherwise.
7946 2012-02-21 Richard Guenther <rguenther@suse.de>
7949 * gimplify.c (create_tmp_from_val): Use the main variant type
7950 for the type of the temporary we create.
7952 2012-02-21 Richard Guenther <rguenther@suse.de>
7954 PR tree-optimization/52324
7955 * gimplify.c (gimplify_expr): When re-gimplifying expressions
7956 do not gimplify a MEM_REF address operand if it is already
7959 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7961 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
7962 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
7964 2012-02-21 Richard Guenther <rguenther@suse.de>
7966 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
7967 nested_in_vect_loop.
7969 2012-02-21 Jakub Jelinek <jakub@redhat.com>
7971 PR tree-optimization/52318
7972 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
7973 vdef also to non-pure/const call stmts in the sequence.
7975 2012-02-21 Tristan Gingold <gingold@adacore.com>
7977 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
7979 2012-02-20 David S. Miller <davem@davemloft.net>
7981 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
7982 don't use the "rd %pc" instruction on v9 for PIC register loads.
7984 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
7987 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
7988 in a transaction safe function.
7990 2012-02-20 Kai Tietz <ktietz@redhat.com>
7993 * stor-layout.c (place_field): Handle desired_align for
7996 2012-02-20 Richard Guenther <rguenther@suse.de>
7998 PR tree-optimization/52298
7999 * tree-vect-stmts.c (vectorizable_store): Properly use
8000 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
8002 (vectorizable_load): Likewise.
8003 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8004 Access DR_STEP after ensuring it is not NULL.
8006 2012-02-20 Jakub Jelinek <jakub@redhat.com>
8008 PR tree-optimization/52286
8009 * fold-const.c (fold_binary_loc): For (X & C1) | C2
8010 optimization use double_int_to_tree instead of build_int_cst_wide,
8011 rewrite to use double_int vars.
8013 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8016 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
8018 Remove -e 0 from $gcc_cv_ld invocation.
8019 Only use __GLIBC_PREREQ if defined.
8020 Enable on Solaris since Solaris 8 patch.
8021 (gcc_SUN_LD_VERSION): New macro.
8022 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
8023 gcc_SUN_LD_VERSION for version number format.
8024 * configure: Regenerate.
8025 * varasm.c (get_elf_initfini_array_priority_section): Set
8026 SECTION_NOTYPE for non-default priority.
8027 Use get_section instead of get_unnamed_section to emit
8028 .init_array/.fini_array with default priority.
8030 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
8032 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
8033 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
8034 (mips_start_unique_function, mips_output_mips16_rdhwr)
8035 (mips_code_end): New functions.
8036 (TARGET_ASM_CODE_END): Define.
8038 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
8040 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
8041 to stubs with non-sibling calls.
8043 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
8045 * doc/invoke.texi (-fira-* options): Copy-edit.
8046 (ira-* parameters): Copy-edit.
8048 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
8050 * doc/invoke.texi: Minor copy-edits to bring into conformance with
8051 GCC coding conventions.
8053 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
8055 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
8056 when used as adjectives.
8058 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
8060 * doc/invoke.texi: Clean up "that"/"which" confusion.
8062 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
8064 * system.h: Poison SMALL_REGISTER_CLASSES
8065 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
8066 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
8068 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8070 PR tree-optimization/52285
8071 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
8072 when deciding if a call is a tail call or tail recursion.
8074 2012-02-16 Kai Tietz <ktietz@redhat.com>
8076 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
8077 interger-constant displacement for UNSPEC_PCREL.
8079 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8081 PR rtl-optimization/52208
8082 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
8083 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
8085 PR tree-optimization/52255
8086 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
8087 loop->header has virtual PHI, but exit_e->dest doesn't, add
8088 virtual PHI to exit_e->dest and adjust all uses after the loop.
8091 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
8092 children with clone_tree_hash, not after it.
8094 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
8096 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
8097 extended identifiers.
8099 2012-02-16 Jakub Jelinek <jakub@redhat.com>
8102 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
8103 a same_body_alias, also test whether e->callee isn't a former
8104 or current clone of the decl this is a same body alias of.
8106 PR translation/52264
8107 * cgraphunit.c (verify_cgraph_node): Fix a typo.
8109 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
8111 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
8113 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8116 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
8117 force_reg instead of copy_to_reg for better optimization. Force
8118 non-register or memory operands into a register.
8120 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
8122 * extend.texi: Reserve upper bits of memory model for future use.
8124 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
8125 Anatoly Sokolov <aesok@post.ru>
8126 Eric Weddington <eric.weddington@atmel.com>
8129 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
8130 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
8131 Rewrite initializers for .macro.
8132 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
8133 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
8134 atxmega32d4, atxmega32x1.
8135 avrxmega4: atxmega64a3, atxmega64d3.
8136 avrxmega5: atxmega64a1, atxmega64a1u.
8137 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
8138 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
8139 avrxmega7: atxmega128a1, atxmega128a1u.
8140 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
8141 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
8142 (struct base_arch_s): Rename reserved to xmega_p.
8143 Rename reserved2 to have_rampd.
8144 (AVR_XMEGA): New define.
8145 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
8146 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
8147 * config/avr/predicates.md (io_address_operand): Take into
8149 (low_io_address_operand): Ditto.
8150 (high_io_address_operand): Ditto.
8151 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
8152 (enabled, movhi_sp_r): Use them.
8153 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
8154 cpp_define_formatted to built-in define __AVR_ARCH__.
8155 (__AVR_XMEGA__): New built-in define.
8156 (__AVR_HAVE_RAMPD__): New built-in define.
8157 (__AVR_HAVE_RAMPX__): New built-in define.
8158 (__AVR_HAVE_RAMPY__): New built-in define.
8159 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
8161 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
8162 (avr_option_override): Initialize them.
8163 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
8164 (avr_init_expanders): Initialize them. No more block several calls.
8165 (emit_push_sfr): New static function.
8166 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
8168 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
8169 (avr_print_operand): Print addreeses as symbols for
8170 RAMPX, RAMPY, RAMPD, CCP.
8171 (output_movhi): Handle AVR_XMEGA when writing to SP.
8172 (avr_out_movhi_mr_r_xmega): New static function.
8173 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
8174 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
8175 __RAMPD__, __CCP__ as needed.
8177 * config/avr/multilib.h: Regenerate.
8178 * config/avr/t-multilib: Regenerate.
8179 * config/avr/avr-tables.opt: Regenerate.
8181 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
8183 PR tree-optimization/50561
8184 * graphite-flattening.c (lst_project_loop): Do not
8185 remove old scattering dimensions after flattening.
8186 (lst_do_flatten): Likewise.
8188 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
8190 * doc/extend.texi (AVR Built-in Functions): Remove doc for
8191 __builtin_avr_map8, __builtin_avr_map16.
8192 Document __builtin_avr_insert_bits.
8194 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
8195 (insert_bits): New insn.
8196 (adjust_len.map_bits): Rename to insert_bits.
8197 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
8198 * avr-protos.h (avr_out_map_bits): Remove.
8199 (avr_out_insert_bits, avr_has_nibble_0xf): New.
8200 * config/avr/constraints.md (Cxf,C0f): New.
8201 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
8202 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
8203 New built-in define __BUILTIN_AVR_INSERT_BITS.
8204 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
8205 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
8206 (avr_move_bits): Rewrite.
8207 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
8209 (avr_map_op_t): New typedef.
8210 (avr_map_op): New static variable.
8211 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
8212 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
8213 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
8214 (bdesc_3arg, avr_expand_triop_builtin): New.
8215 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
8216 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
8217 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
8218 (avr_map_equal_p, avr_map_sig_p): Remove.
8219 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
8220 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
8221 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
8222 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
8223 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
8224 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
8226 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
8228 * config/c6x/c6x.md (reserve_cycles): New attribute.
8229 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
8230 don't reserve functional units after the branch occurs.
8232 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
8235 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
8236 functions into non-tm_pure functions.
8238 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
8241 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
8242 (iterative_hash_canonical_type): Likewise.
8243 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
8246 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
8248 * haifa-sched.c (prune_ready_list): Ensure that if there is a
8249 sched-group insn, it either remains alone or the entire list is pruned.
8251 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
8253 * doc/install.texi (Prerequisites): Fix grammar.
8254 (Configuration): Likewise.
8256 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
8258 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
8259 MPC as part of GCC before describing configuring with --with-gmp etc.
8260 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
8261 sources are present.
8263 2012-02-14 Jakub Jelinek <jakub@redhat.com>
8266 * dwarf2out.c (clone_tree_hash): New function.
8267 (copy_decls_walk): Use it instead of clone_tree.
8269 2012-02-14 Richard Guenther <rguenther@suse.de>
8271 PR tree-optimization/52244
8272 PR tree-optimization/51528
8273 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
8274 replacements for integral types.
8276 2012-02-14 Walter Lee <walt@tilera.com>
8278 * config.gcc: Handle tilegx and tilepro.
8279 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
8281 Add HAVE_AS_TLS check for tilegx and tilepro.
8282 * configure: Regenerate.
8283 * doc/contrib.texi: Add Mat Hostetter and self.
8284 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
8285 Document instruction intrinsics and network accessing intrinsics.
8286 (TILEPro Built-in Functions): New node. Document instruction
8287 intrinsics and network accessing intrinsics.
8288 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
8289 (Specific, tilepro-*-linux*): Likewise.
8290 * doc/invoke.texi (TILE-Gx Options): New section.
8291 (TILEPro Options): New section.
8292 * doc/md.texi (TILE-Gx): New section.
8293 (TILEPro): New section.
8294 * common/config/tilegx/tilegx-common.c: New file.
8295 * common/config/tilepro/tilepro-common.c: New file.
8296 * config/tilegx/constraints.md: New file.
8297 * config/tilegx/linux.h: New file.
8298 * config/tilegx/mul-tables.c: New file.
8299 * config/tilegx/predicates.md: New file.
8300 * config/tilegx/sync.md: New file.
8301 * config/tilegx/t-tilegx: New file.
8302 * config/tilegx/tilegx-builtins.h: New file.
8303 * config/tilegx/tilegx-c.c: New file.
8304 * config/tilegx/tilegx-generic.md: New file.
8305 * config/tilegx/tilegx-modes.def: New file.
8306 * config/tilegx/tilegx-multiply.h: New file.
8307 * config/tilegx/tilegx-protos.h: New file.
8308 * config/tilegx/tilegx.c: New file.
8309 * config/tilegx/tilegx.h: New file.
8310 * config/tilegx/tilegx.md: New file.
8311 * config/tilegx/tilegx.opt: New file.
8312 * config/tilepro/constraints.md: New file.
8313 * config/tilepro/gen-mul-tables.cc: New file.
8314 * config/tilepro/linux.h: New file.
8315 * config/tilepro/mul-tables.c: New file.
8316 * config/tilepro/predicates.md: New file.
8317 * config/tilepro/t-tilepro: New file.
8318 * config/tilepro/tilepro-builtins.h: New file.
8319 * config/tilepro/tilepro-c.c: New file.
8320 * config/tilepro/tilepro-generic.md: New file.
8321 * config/tilepro/tilepro-modes.def: New file.
8322 * config/tilepro/tilepro-multiply.h: New file.
8323 * config/tilepro/tilepro-protos.h: New file.
8324 * config/tilepro/tilepro.c: New file.
8325 * config/tilepro/tilepro.h: New file.
8326 * config/tilepro/tilepro.md: New file.
8327 * config/tilepro/tilepro.opt: New file.
8329 2012-02-14 Jakub Jelinek <jakub@redhat.com>
8331 PR tree-optimization/52210
8332 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
8333 vect_model_simple_cost with two entry vect_def_type array instead
8334 of an address of dt.
8336 2012-02-14 Richard Guenther <rguenther@suse.de>
8339 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
8340 Do not stream DECL_QUALIFIER.
8341 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
8342 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
8343 (find_decls_types_r): Do not walk DECL_QUALIFIER.
8345 2012-02-14 Jakub Jelinek <jakub@redhat.com>
8348 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
8351 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8354 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
8355 * cselib.c (cselib_subst_to_values_from_insn): New function.
8356 * sched-deps.c (add_insn_mem_dependence,
8357 sched_analyze_1, sched_analyze_2): Use it.
8359 2012-02-13 Jan Hubicka <jh@suse.cz>
8362 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
8364 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
8366 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
8367 (GTM_SELF_SPECS): Define if not already defined.
8368 (driver_self_specs): Add GTM_SELF_SPECS.
8369 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
8370 (GTM_SELF_SPECS): Define.
8371 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
8372 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
8374 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8376 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
8379 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
8382 * omp-low.c (expand_omp_for): If a static schedule without chunk size
8383 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
8385 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
8388 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
8390 2012-02-13 Richard Guenther <rguenther@suse.de>
8392 PR translation/52211
8393 * passes.c (enable_disable_pass): Fix typo.
8395 2012-02-13 Jakub Jelinek <jakub@redhat.com>
8398 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
8399 XOR for reduce_bit_field if type is unsigned.
8401 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
8403 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
8404 disallow changes from SFmode to mode with different size in FP regs.
8406 2012-02-12 Robert Millan <rmh@gnu.org>
8407 Gerald Pfeifer <gerald@pfeifer.com>
8409 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
8412 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
8414 PR rtl-optimization/52175
8415 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
8416 to frame-related instructions.
8418 2012-02-10 Jason Merrill <jason@redhat.com>
8421 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
8422 (demangle_new_symbols): Fill it.
8423 (scan_linker_output): Walk it.
8424 (start_tweaking): Split out from scan_linker_output.
8425 (maybe_tweak): Update sym->chosen.
8426 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
8428 2012-02-11 Jakub Jelinek <jakub@redhat.com>
8431 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
8433 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
8435 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
8436 having the same mode as previous compare.
8438 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
8440 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
8441 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
8442 (nonlocal_goto_internal): Likewise.
8443 (nonlocal_goto): Emit a use and an indirect jump directly.
8445 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
8448 * doc/extend.texi : Update comments for __atomic_compare_exchange and
8449 __atomic_{is,always}_lock_free.
8451 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
8454 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
8455 negative constant address for TARGET_X32.
8457 2012-02-10 Richard Henderson <rth@redhat.com>
8459 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
8460 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
8461 for GIMPLE_TRANSACTION. Tidy if's into a switch.
8463 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8464 Ira Rosen <irar@il.ibm.com>
8466 PR tree-optimization/50031
8467 * targhooks.c (default_builtin_vectorization_cost): Handle
8469 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
8470 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
8471 all types of reduction and pattern statements.
8472 (vect_estimate_min_profitable_iters): Likewise.
8473 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
8474 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
8475 for explicit realigns.
8476 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
8477 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
8479 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
8480 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
8481 vec_perm for VSX and handle vec_promote_demote.
8483 2012-02-10 Jakub Jelinek <jakub@redhat.com>
8486 * builtins.c (fold_builtin_atomic_always_lock_free,
8487 expand_builtin_atomic_always_lock_free,
8488 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
8489 Return and/or test boolean_true_node/boolean_false_node instead of
8490 integer_one_node/integer_zero_node.
8492 2012-02-10 Jan Hubicka <jh@suse.cz>
8495 * predict.c (predict_paths_for_bb): Prevent looping.
8496 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
8498 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
8500 * config/arm/arm.c (output_move_double): In one case properly
8501 count number of instructions that will be emitted.
8503 2012-02-10 Richard Guenther <rguenther@suse.de>
8505 PR translation/52193
8506 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
8508 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
8511 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
8513 2012-02-09 Jakub Jelinek <jakub@redhat.com>
8516 * var-tracking.c (emit_note_insn_var_location): If
8517 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
8518 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
8519 non-NOTE_DURING_CALL_P insn.
8521 2012-02-09 Bin Cheng <bin.cheng@arm.com>
8524 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
8526 2012-02-08 Magnus Granberg <zorry@gentoo.org>
8529 * gcc.c (switch_matches) Support switches with separated form,
8532 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
8534 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
8536 (RAMPZ_ADDR): Ditto.
8537 * config/avr/avr.c (avr_addr_t): New typedef.
8538 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
8539 (avr_init_expanders): Initialize it.
8540 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
8542 (expand_epilogue): Ditto.
8543 (avr_print_operand): Ditto.
8544 (avr_file_start): Ditto.
8545 (avr_emit_movmemhi): Ditto.
8547 2012-02-08 Richard Guenther <rguenther@suse.de>
8549 PR tree-optimization/46886
8550 * tree-flow.h (do_while_loop_p): Declare.
8551 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
8552 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
8554 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
8556 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
8557 always succeed for integers larger than a native word.
8559 2012-02-08 Richard Guenther <rguenther@suse.de>
8561 PR rtl-optimization/52170
8562 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
8563 properly handle integer vector modes.
8565 2012-02-08 Jakub Jelinek <jakub@redhat.com>
8567 PR gcov-profile/52150
8568 * coverage.c: Include target.h.
8569 (build_var): Call targetm.strip_name_encoding on the assembler name.
8570 Change one _ into . or $ if the target allows it.
8571 * Makefile.in (coverage.o): Depend on $(TARGET_H).
8573 PR rtl-optimization/52139
8574 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
8575 is a BARRIER after emit_insn_after_noloc, move BB_END
8576 to the last non-BARRIER insn before it.
8578 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
8581 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
8582 (mips_gimplify_va_arg_expr): Call it instead of
8583 std_gimplify_va_arg_expr.
8585 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
8587 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
8588 message for -mno-pointers-to-nested-function.
8590 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
8593 * expr.c (get_inner_reference): If there is an offset, add a negative
8594 bit position to it (if any).
8596 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8598 PR rtl-optimization/52060
8599 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
8600 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
8601 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
8602 and/or i0src_copy2 when needed.
8604 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8606 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
8607 or LTOPLUGINSONAME if have_c.
8609 * config/freebsd-spec.h: Add comment about what macros can be defined
8611 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
8612 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
8615 2012-02-07 Richard Guenther <rguenther@suse.de>
8617 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
8618 newline in -alias dumps.
8620 2012-02-07 Kai Tietz <ktietz@redhat.com>
8621 Dave Korn <dave.korn.cygwin@gmail.com>
8624 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
8625 Take care that typinfo gets dllexport-attribute.
8627 2012-02-07 Jakub Jelinek <jakub@redhat.com>
8630 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
8631 if modifier < EXPAND_SUM call force_operand on the result.
8633 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
8635 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
8636 adding __forwarder_dst__ prefix if a forwarder_section attribute is
8638 (epiphany_function_type): Replace types for specific interrupts with
8639 EPIPHANY_FUNCTION_INTERRUPT.
8640 (EPIPHANY_INTERRUPT_P): Update.
8641 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
8642 New static function.
8643 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
8644 <disinterrupt>: Affects type identity.
8645 (epiphany_handle_interrupt_attribute): Handle variable number of
8647 (epiphany_compute_function_type): Update for new
8648 epiphany_function_type definition.
8649 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
8650 handlers with a longcall forwarder.
8651 (epiphany_start_function): Handle multiple interrupt arguments and/or
8652 forwarder_section attribute.
8654 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
8657 2012-02-07 Alan Modra <amodra@gmail.com>
8660 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
8663 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8665 PR tree-optimization/50969
8666 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
8667 use vec_perm rather than vector_stmt.
8668 (vect_model_load_cost): Likewise.
8669 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
8670 vec_perm to be the same as other vector statements.
8671 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
8672 cost of vec_perm for TARGET_VSX.
8674 2012-02-06 Richard Guenther <rguenther@suse.de>
8676 PR tree-optimization/52115
8677 * tree-sra.c (access_has_replacements_p): New function.
8678 (sra_modify_assign): Use it to decide whether a use is uninitialized.
8680 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
8683 * trans-mem.c (expand_call_tm): Add an assertion.
8684 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
8687 2012-02-06 Richard Guenther <rguenther@suse.de>
8689 PR tree-optimization/50955
8690 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
8691 raise cost of expressions that replace an address with an
8692 expression based on a different pointer.
8694 2012-02-06 Jakub Jelinek <jakub@redhat.com>
8697 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
8698 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
8700 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8703 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
8704 -Weffc++ and specify guidelines come from second edition.
8706 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
8708 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
8709 (sibcall_value_multiple_internal, call_split, call_internal_direct)
8710 (call_direct_split, call_value_split, call_value_internal_direct)
8711 (call_value_direct_split, call_value_multiple_split): Use jal and
8712 jal_macro attributes.
8714 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
8716 * reload1.c (reload_regs_reach_end_p): Replace with...
8717 (reload_reg_rtx_reaches_end_p): ...this function.
8718 (new_spill_reg_store): Update commentary.
8719 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
8720 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
8721 before setting new_spill_reg_store.
8722 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
8723 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
8724 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
8725 for non-spill reload registers.
8727 2012-02-05 Ira Rosen <irar@il.ibm.com>
8729 PR tree-optimization/52091
8730 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
8731 (vect_is_simple_use_1): Likewise.
8732 * tree-vect-loop.c (vectorizable_reduction): Update calls
8733 to vect_is_simple_use_1 and vect_is_simple_use.
8734 (vectorizable_live_operation): Likewise.
8735 * tree-vect-patterns.c (widened_name_p,
8736 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
8737 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
8738 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
8739 vectorizable_shift,vectorizable_operation, vectorizable_store,
8740 vectorizable_load): Likewise.
8741 (vect_is_simple_cond): Add an argument, pass it to
8742 vect_is_simple_use_1.
8743 (vectorizable_condition): Update calls to vect_is_simple_cond,
8745 (vect_is_simple_use): Add an argument, the statement in which
8746 OPERAND is used. Check that if OPERAND's def stmt is a double
8747 reduction phi node, the use is a phi node too.
8748 (vect_is_simple_use_1): Add an argument, pass it to
8750 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
8751 to vect_is_simple_use.
8753 2012-02-04 Jakub Jelinek <jakub@redhat.com>
8755 PR rtl-optimization/52095
8756 * modulo-sched.c (dump_insn_locator): New function.
8757 (loop_canon_p, sms_schedule): Use it.
8759 PR rtl-optimization/52113
8760 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
8761 even for decomposable shift/zext insns.
8763 2012-02-03 Jakub Jelinek <jakub@redhat.com>
8764 Zdenek Dvorak <ook@ucw.cz>
8766 PR rtl-optimization/52092
8767 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
8768 on get_iv_value result.
8770 2012-02-02 Andrew Pinski <apinski@cavium.com>
8774 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
8776 2012-02-02 Jakub Jelinek <jakub@redhat.com>
8779 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
8781 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
8783 PR rtl-optimization/49800
8784 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
8785 (sched_finish): Call regstat_free_n_sets_and_refs.
8787 2012-02-02 Jia Liu <proljc@gmail.com>
8789 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
8792 2012-02-02 Jan Hubicka <jh@suse.cz>
8793 Tom de Vries <tom@codesourcery.com>
8796 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
8797 * varpool.c (varpool_analyze_pending_decls): Likewise.
8799 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
8800 Jayant R Sonar <jayant.sonar@kpitcummins.com>
8802 * config.gcc: Add cr16-* support.
8804 * doc/extend.texi: Document cr16 extensions.
8805 * doc/install.texi: Document cr16 install.
8806 * doc/invoke.texi: Document cr16 options.
8807 * doc/md.texi: Document cr16 constraints.
8809 * common/config/cr16/cr16-common.c: New file.
8810 * config/cr16/cr16.c: New file.
8811 * config/cr16/cr16.h: New file.
8812 * config/cr16/cr16.md: New file.
8813 * config/cr16/cr16.opt: New file.
8814 * config/cr16/cr16-protos.h: New file.
8815 * config/cr16/predicates.md: New file.
8816 * config/cr16/constraints.md: New file.
8817 * config/cr16/t-cr16: New file.
8819 2012-02-02 Jakub Jelinek <jakub@redhat.com>
8822 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
8823 that operands[2] is either immediate, or q_regs_operand.
8825 PR tree-optimization/52073
8826 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
8827 a pattern stmt for pattern uses, ignore uses outside of the loop.
8829 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
8831 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
8832 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
8833 (OUT_AS1, OUT_AS2): Remove.
8835 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
8837 PR rtl-optimization/51374
8838 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
8839 to cross other volatile_refs_p insns.
8841 2012-02-01 Richard Guenther <rguenther@suse.de>
8843 * doc/invoke.texi (fno-inline): Clarify documentation.
8844 (finline-small-functions): Likewise.
8845 (finline-functions): Likewise.
8846 * common.opt (finline): Adjust comment and documentation.
8847 (finline-small-functions): Clarify documentation.
8848 (finline-functions): Likewise.
8849 (finline-functions-called-once): Likewise.
8851 2012-02-01 Tristan Gingold <gingold@adacore.com>
8853 * c-typeck.c (composite_type): Keep mode for pointers.
8855 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
8857 * function.h (regno_reg_rtx): Adjust comment.
8858 * reginfo.c (init_reg_modes_target): Only use the previous mode
8859 if it fits within one register. Remove MIPS comment.
8861 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8864 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
8866 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8868 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
8869 to srak instruction.
8871 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8873 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
8875 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8880 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
8882 2012-01-31 Richard Guenther <rguenther@suse.de>
8884 PR tree-optimization/51528
8885 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
8888 2012-01-31 Jakub Jelinek <jakub@redhat.com>
8893 * ree.c (add_removable_extension): Change def_map argument
8894 to unsigned *, store in def_map 1 + offset into *insn_list vector
8895 instead of pointers into the vector.
8896 (find_removable_extensions): Adjust caller.
8898 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
8900 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
8901 Transform all "* quoted-c-code" to { c-code }.
8902 Remove redundant test for "optimize" in combine patterns.
8903 Move (include "avr-dimode.md") to end of file.
8905 2012-01-30 Bin Cheng <bin.cheng@arm.com>
8908 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
8909 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
8911 2012-01-30 Richard Guenther <rguenther@suse.de>
8913 PR tree-optimization/52028
8914 * tree-loop-distribution.c (ldist_gen): Properly update
8917 2012-01-30 Jakub Jelinek <jakub@redhat.com>
8920 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
8921 set_cur_line_info_table if not emitting debug info.
8923 PR tree-optimization/52046
8924 * tree-vect-patterns.c (check_bool_pattern): Give up if
8925 a comparison could throw.
8928 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
8930 2012-01-30 Richard Guenther <rguenther@suse.de>
8932 PR tree-optimization/52045
8933 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
8934 SSA form if cfgcleanup did anything.
8936 2012-01-30 Richard Guenther <rguenther@suse.de>
8938 PR tree-optimization/52045
8939 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
8940 before computing final todo.
8942 2012-01-30 Richard Guenther <rguenther@suse.de>
8944 PR tree-optimization/51528
8945 * tree-sra.c (sra_modify_assign): Re-factor in preparation
8948 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
8950 * df-problems.c (df_kill_notes): Check that the use refers
8951 to the note under examination.
8953 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
8956 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
8957 parameter and use short-lived pseudos.
8958 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
8959 (sparc_expand_vector_init): Const-ify local variables and adjust
8960 calls to above functions.
8962 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
8964 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
8966 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
8968 * doc/invoke.texi: Make usage of "compile time" and
8969 "run time"/"runtime" consistent throughout the file.
8971 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
8973 * config/alpha/alpha.c (alpha_option_override): Default to
8974 full IEEE compliance mode for Go language.
8976 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
8978 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
8979 (LINK_SSP_SPEC): Define.
8981 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8984 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
8987 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
8989 * doc/invoke.texi: Correct hyphenation of "floating point",
8990 "double precision", and related terminology throughout the file.
8992 2012-01-28 Jakub Jelinek <jakub@redhat.com>
8995 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
8996 arm_general_register_operand predicate for operand 2 instead of
8999 2012-01-27 Ian Lance Taylor <iant@google.com>
9002 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
9003 * builtins.c (expand_builtin_init_trampoline): Add onstack
9004 parameter. Change caller.
9005 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
9006 * tree.c (build_common_builtin_nodes): Declare
9007 __builtin_init_heap_trampoline.
9009 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
9011 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
9012 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
9013 * config/avr/avr.c: Ditto.
9014 (avr_regnames): Remove because unused.
9015 * config/avr/avr.md (*cpse.ne): New peephole.
9016 (*cpse.eq): New peephole from former cpse peepholes.
9018 2012-01-27 Michael Eager <eager@eagercon.com>
9020 * config/microblaze.c (microblaze_emit_compare): Correct
9021 test after pcmp instruction.
9023 2012-01-27 Richard Guenther <rguenther@suse.de>
9025 PR tree-optimization/52020
9026 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
9028 2012-01-27 Richard Guenther <rguenther@suse.de>
9030 * ipa-pure-const.c (check_stmt): Clobbers do not make a
9031 function non-const/pure.
9033 2012-01-27 Richard Guenther <rguenther@suse.de>
9035 PR tree-optimization/50444
9036 * tree-sra.c (build_ref_for_offset): Properly adjust the
9037 MEM_REF type for unaligned accesses.
9039 2012-01-27 Richard Guenther <rguenther@suse.de>
9041 PR tree-optimization/50444
9042 * expr.c (mem_ref_refers_to_non_mem_p): New function.
9043 (expand_assignment): Use it. Properly handle misaligned
9044 bases when expanding stores to component references.
9045 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
9048 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
9051 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
9052 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
9053 * tree-data-ref.c (find_data_references_in_loop): Make static.
9054 (compute_all_dependences): Change return type to bool. Bail out
9055 for too many datarefs in a loop. Move the hunk resetting the data
9056 dependences vector from ...
9057 (compute_data_dependences_for_loop): ... here. Account for
9058 compute_all_dependences returning false.
9059 (compute_data_dependences_for_bb): Likewise.
9060 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
9061 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
9063 2012-01-27 Richard Guenther <rguenther@suse.de>
9066 * expr.c (store_field): Use the alias-set of the scratch memory
9069 2012-01-27 Tom de Vries <tom@codesourcery.com>
9071 PR tree-optimization/51990
9072 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9074 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
9076 2012-01-27 Jakub Jelinek <jakub@redhat.com>
9079 * var-tracking.c (reverse_op): Don't add any reverse operation
9080 if V already has any constant locations.
9082 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
9084 * doc/invoke.texi: Correct usage of "command line" (noun)
9085 vs "command-line" (adjective) throughout.
9087 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
9089 * doc/invoke.texi (Language Independent Options): Move
9090 -Wcoverage-mismatch blurb from here....
9091 (Warning Options): ...to here.
9093 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
9095 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9096 Set rs6000_always_hint to false for 476.
9098 2012-01-27 Matthias Klose <doko@ubuntu.com>
9100 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
9102 * incpath.c (add_standard_paths): Likewise.
9104 2012-01-27 Richard Henderson <rth@redhat.com>
9106 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9107 * config/m68k/sync.md (atomic_test_and_set): Rename from
9108 sync_test_and_setqi and adjust the operands.
9109 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
9110 and unconditionally enable.
9112 2012-01-27 Richard Henderson <rth@redhat.com>
9114 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9115 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
9116 (ldstub): Rename from ldstubqi.
9117 (ldstub<I24MODE>): Remove.
9119 2012-01-27 Richard Henderson <rth@redhat.com>
9121 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
9122 * c-cppbuiltin.c (cpp_atomic_builtins): Define
9123 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
9124 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
9125 * doc/tm.texi: Rebuild.
9127 2012-01-27 Richard Henderson <rth@redhat.com>
9129 * optabs.c (gen_atomic_test_and_set): Remove default.
9130 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
9132 2012-01-26 Jakub Jelinek <jakub@redhat.com>
9134 PR rtl-optimization/51978
9135 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
9136 (combine_reaching_defs): Likewise.
9137 (struct re_info): Remove.
9138 (add_removable_extension): Remove x and data arguments,
9139 add insn, insn_list and def_map. Use the arguments directly
9140 instead of using struct re_info.
9141 (find_removable_extensions): Don't call add_removable_extension
9142 through note_stores, instead just call it with single_set
9144 (find_and_remove_re): Pass curr_cand->expr instead of
9145 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
9147 2012-01-26 Michael Matz <matz@suse.de>
9149 PR tree-optimization/46590
9150 * cfgexpand.c: Revert last change (r183305).
9151 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
9153 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
9154 checking for emptiness.
9156 2012-01-26 Jakub Jelinek <jakub@redhat.com>
9159 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
9160 non-addressable non-BLKmode base correctly.
9162 2012-01-26 Michael Matz <matz@suse.de>
9164 PR tree-optimization/48794
9165 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
9166 regions referenced from RESX/EH_DISPATCH.
9168 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9170 * config/s390/s390.h: Make BRANCH_COST an option.
9171 * config/s390/s390.opt: New option -mbranch-cost.
9173 2012-01-26 Richard Henderson <rth@redhat.com>
9175 Revert 2012-01-24 change:
9176 * trans-mem.c (requires_barrier): Do not instrument thread local
9177 variables and emit save/restore for them.
9179 2012-01-25 Jakub Jelinek <jakub@redhat.com>
9182 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
9185 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
9187 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
9190 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
9193 Rename __pgm to __flash.
9194 Rename __pgm1 to __flash1.
9195 Rename __pgm2 to __flash2.
9196 Rename __pgm3 to __flash3.
9197 Rename __pgm4 to __flash4.
9198 Rename __pgm5 to __flash5.
9199 Rename __pgmx to __memx.
9200 * doc/extend.texi (AVR Named Address Spaces)
9201 Rename address space names as indicated above.
9202 * config/avr/avr.c (avr_addrspace): Ditto.
9204 * config/avr/avr-protos.h
9205 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
9206 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
9207 * config/avr/predicates.md: Ditto.
9208 * config/avr/avr.c Ditto, and
9209 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
9210 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
9212 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
9213 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
9214 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
9215 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
9216 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
9217 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
9218 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
9219 * config/avr/avr.c: Ditto.
9220 * config/avr/avr.md: Ditto.
9222 2012-01-25 Jason Merrill <jason@redhat.com>
9225 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
9227 2012-01-25 Jakub Jelinek <jakub@redhat.com>
9229 PR tree-optimization/51987
9230 * tree-data-ref.c (get_references_in_stmt): Handle references in
9231 non-volatile GIMPLE_ASM.
9233 2012-01-25 Richard Guenther <rguenther@suse.de>
9235 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
9236 bases are dereferenced.
9238 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
9240 PR rtl-optimization/48374
9241 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
9243 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
9245 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
9246 compute_data_dependences_for_loop returns false.
9247 * tree-parloops.c (loop_parallel_p): Likewise.
9249 2012-01-25 Richard Guenther <rguenther@suse.de>
9251 * tree.h (get_pointer_alignment_1): Declare.
9252 * builtins.c (get_pointer_alignment_1): New function.
9253 (get_pointer_alignment): Use it.
9255 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9257 PR rtl-optimization/48308
9258 * combine.c (enum undo_kind): Add UNDO_LINKS.
9259 (struct undo): Add member l to other_contents and where.
9260 (do_SUBST_LINK): New.
9262 (try_combine): Handle LOG_LINKS for the dummy i1 case.
9263 (undo_all): Handle UNDO_LINKS.
9265 2012-01-25 Richard Henderson <rth@redhat.com>
9267 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
9270 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9272 * optabs.c (gen_atomic_test_and_set): Use each argument.
9274 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9276 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
9277 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
9278 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
9279 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
9280 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
9281 TARGET_PAIRED_SINGLE_FLOAT.
9283 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9285 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
9286 (in_struct, return_val): Remove MEM documentation.
9287 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
9288 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
9289 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
9291 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9292 * cfgexpand.c (add_alias_set_conflicts): Likewise.
9293 * expr.c (store_field): Likewise.
9294 * function.c (assign_stack_temp_for_type): Likewise.
9295 * ifcvt.c (noce_try_cmove_arith): Likewise.
9296 * reload1.c (reload): Likewise.
9297 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
9298 (alpha_set_memflags): Likewise.
9299 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
9301 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
9303 * rtl.h (true_dependence, canon_true_dependence): Remove varies
9305 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
9306 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
9307 (true_dependence_1, true_dependence, canon_true_dependence): Remove
9309 * cselib.c (cselib_rtx_varies_p): Delete.
9310 (cselib_invalidate_mem): Update call to canon_true_dependence.
9311 * dse.c (record_store, check_mem_read_rtx): Likewise.
9312 (scan_reads_nospill): Likewise.
9313 * cse.c (check_dependence): Likewise.
9314 (cse_rtx_varies_p): Delete.
9315 * expr.c (safe_from_p): Update call to true_dependence.
9316 * ira.c (validate_equiv_mem_from_store): Likewise.
9317 (memref_referenced_p): Likewise.
9318 * postreload-gcse.c (find_mem_conflicts): Likewise.
9319 * sched-deps.c (sched_analyze_2): Likewise.
9320 * store-motion.c (load_kills_store): Likewise.
9321 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
9322 * gcse.c (mems_conflict_for_gcse_p): Likewise.
9323 (compute_transp): Update call to canon_true_dependence.
9325 2012-01-25 Richard Henderson <rth@redhat.com>
9327 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
9328 (maybe_emit_atomic_test_and_set): New.
9329 (expand_sync_lock_test_and_set): Use it.
9330 (expand_atomic_test_and_set): Likewise.
9331 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
9332 the implementation; clarify implementation defined details.
9333 * doc/md.texi (atomic_test_and_set): Document.
9335 2012-01-25 Richard Henderson <rth@redhat.com>
9337 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
9339 2012-01-25 Richard Henderson <rth@redhat.com>
9342 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
9343 to effect no-op split.
9345 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
9348 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
9349 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
9350 (BT_FN_VOID_PTR_INT_SIZE): New.
9351 (BT_FN_UINT_UINT_VAR): Remove.
9352 (BT_FN_UINT32_UINT32_VAR): New.
9353 (BT_FN_DOUBLE_VPTR): Remove.
9354 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
9356 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
9357 (_ITM_changeTransactionMode): Same.
9358 (_ITM_memmoveRtWt): Change return type to void.
9359 (_ITM_memcpyRtWt): Same.
9360 (_ITM_memsetW): Same.
9361 (_ITM_RaRD): Change types to double.
9366 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
9368 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
9369 Patrick Marlier <patrick.marlier@gmail.com>
9371 * trans-mem.c (requires_barrier): Do not instrument thread local
9372 variables and emit save/restore for them.
9374 2012-01-24 Jason Merrill <jason@redhat.com>
9377 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
9378 output static aliases.
9380 2012-01-24 Jakub Jelinek <jakub@redhat.com>
9383 * common.opt (-pie, -shared, pie, shared): Change from Common to
9385 * gcc.c (display_help): Display help for -pie and -shared.
9387 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
9390 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
9391 Remove note on size/offset limitation.
9392 (AVR Variable Attributes): Add example how to read data located
9393 with progmem. Refer to named address spaces.
9394 * doc/invoke.texi (AVR Options): Fix typo.
9396 2012-01-24 Richard Guenther <rguenther@suse.de>
9398 Forward-port to trunk
9399 2010-09-21 Jakub Jelinek <jakub@redhat.com>
9402 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
9403 op0 isn't sufficiently aligned and there is movmisalignM
9404 insn for mode, use it to load op0 into a temporary register.
9406 2012-01-24 Jakub Jelinek <jakub@redhat.com>
9409 * target.def (const_not_ok_for_debug_p): New hook.
9410 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
9412 * doc/tm.texi: Regenerated.
9413 * dwarf2out.c (const_ok_for_output_1): If
9414 targetm.const_not_ok_for_debug_p returns true, fail.
9415 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
9417 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
9419 2012-01-23 Kai Tietz <ktietz@redhat.com>
9422 * config/i386/predicates.md (symbolic_operand): Allow
9423 UNSPEC_PCREL as PIC expression for lea.
9424 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
9425 * config/i386/i386.c (ix86_delegitimize_address): Handle
9426 UNSPEC_PCREL for none-MEM, too.
9428 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
9430 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
9431 (ipa_tm_create_version_alias): Same.
9433 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
9436 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
9437 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
9439 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
9440 Patrick Marlier <patrick.marlier@gmail.com>
9441 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9444 * lto-wrapper.c (run_gcc): Pass the LTO section name to
9445 simple_object_start_read.
9447 2012-01-23 Richard Guenther <rguenther@suse.de>
9450 PR tree-optimization/51895
9451 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
9452 parameter decomposition into BLKmode components.
9454 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
9456 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
9457 fake variables for restrict-qualified pointers whose pointed-to type
9458 contains a placeholder.
9460 2012-01-23 Richard Guenther <rguenther@suse.de>
9462 PR tree-optimization/51949
9463 * ipa-split.c (execute_split_functions): Do not split malloc functions.
9465 2012-01-23 Jakub Jelinek <jakub@redhat.com>
9467 PR rtl-optimization/51933
9468 * ree.c (transform_ifelse): Return true right away if dstreg is
9469 already wider or equal to cand->mode.
9470 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
9471 (make_defs_and_copies_lists): Remove defs_list and copies_list
9472 arguments, add state argument, just truncate state->work_list
9473 instead of always allocating and freeing the vector. Assert that
9474 get_defs succeeds instead of returning 2. Changed return type to bool.
9475 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
9476 have ext_src_mode, see if it has been modified already with the
9477 right kind of extension and has been extended before from the
9478 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
9479 just return true. Remember the original mode in state->modified array.
9480 (combine_reaching_defs): Add state argument. Don't allocate and
9481 free here def_list, copied_list and vec vectors, instead just
9482 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
9483 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
9484 Add state variable, clear vectors in it, initialize state.modified
9485 if needed. Free all the vectors at the end and state.modified too.
9486 Don't skip a candidate if the extension expression has been modified.
9488 2012-01-22 Douglas B Rupp <rupp@gnat.com>
9491 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
9492 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
9493 (extra_options) interix.opt -> i386/interix.opt"
9494 (extra_objs):Add winnt-stubs.o
9495 * configure.ac: Add interix to target_os .comm on PE check.
9496 * configure: Regenerate.
9497 * config/interix3.h: Delete and move bits to..
9498 * config/interix.h: Delete and move bits to..
9499 * config/i386/i386-interix3.h: Delete and move bits to..
9500 * config/i386/i386-interix.h: ..here.
9501 (TARGET_CPU_DEFAULT): Remove redefinition.
9502 (TARGET_ASM_CONSTRUCTOR): Undefine.
9503 (SUBTARGET_SWITCHES): Define for ms-bitfields.
9504 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
9505 (PTRDIFF_TYPE): Define.
9506 (LONG_DOUBLE_TYPE_SIZE): Define.
9507 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
9508 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9509 (TARGET_SECTION_TYPE_FLAGS): Define.
9510 (ASM_DECLARE_FUNCTION_NAME): Define.
9511 (ASM_OUTPUT_EXTERNAL): Define.
9512 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
9513 (ASM_OUTPUT_ALIGNED_BSS): Define.
9514 (PCC_BITFIELD_TYPE_MATTERS): Define.
9515 (USE_CONST_SECTION): Define.
9516 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
9517 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
9518 (SUPPORTS_ONE_ONLY): Remove.
9519 (I386_PE_STRIP_ENCODING): Define.
9520 * config/interix.opt: Delete and move bits to..
9521 * config/i386/interix.opt: ..here. New.
9522 (mpe-aligned-commons): Add.
9523 * config/i386/t-interix: Add copyright header.
9524 (winnt-stubs.o): Add rule.
9526 2012-01-22 Jason Merrill <jason@redhat.com>
9529 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
9530 for extra name aliases.
9532 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
9534 PR rtl-optimization/51924
9535 * ree.c (combine_set_extension): Improve debugging message.
9536 (combine_reaching_defs): Likewise.
9537 (get_defs): Rename confusingly named variable.
9538 (find_and_remove_re): Skip a candidate if the extension expression has
9541 2012-01-21 Robert Millan <rmh@gnu.org>
9542 Gerald Pfeifer <gerald@pfeifer.com>
9544 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
9545 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
9547 2012-01-20 Jakub Jelinek <jakub@redhat.com>
9549 PR tree-optimization/51914
9550 * tree-vect-stmts.c (vectorizable_conversion): For
9551 cvt_type && modifier == WIDEN, put temporary with cvt_type
9552 at the beginning of vec_dsts and set vec_dest to temporary
9555 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
9557 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
9559 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
9561 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
9562 * config/rs6000/rs6000.c: Likewise.
9564 2012-01-20 Jakub Jelinek <jakub@redhat.com>
9567 * config/arm/arm.c (arm_count_output_move_double_insns): Call
9568 output_move_double on a copy of operands array.
9570 2012-01-20 Cary Coutant <ccoutant@google.com>
9571 Dodji Seketeli <dodji@redhat.com>
9574 * dwarf2out.c (copy_declaration_context): Return ref to parent
9575 of declaration DIE, if necessary.
9576 (remove_child_or_replace_with_skeleton): Add new parameter; update
9577 caller. Place skeleton DIE under parent DIE of original declaration.
9578 Move call to copy_declaration_context to here ...
9579 (break_out_comdat_types): ... from here.
9581 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9583 PR rtl-optimization/51856
9584 * reload.c (find_reloads_subreg_address): Set the address_reloaded
9587 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9590 * config/arm/arm.c (arm_print_operand): Correct output of alignment
9591 hints for neon loads and stores.
9593 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
9597 * doc/extend.texi (Named Address Spaces): Split into subsections.
9598 (AVR Named Address Spaces): New subsection.
9599 (M32C Named Address Spaces): New subsection.
9600 (RL78 Named Address Spaces): New subsection.
9601 (SPU Named Address Spaces): New subsection.
9602 (Variable Attributes): New anchor "AVR Variable Attributes".
9603 (AVR Variable Attributes): Rewrite and avoid wording
9604 "address space" in this context.
9605 * doc/invoke.texi (AVR Options): Rewrite and add documentation
9606 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
9607 (AVR Built-in Macros): New subsubsection therein.
9608 * doc/md.texi (AVR constraints): Remove "C04", "R".
9610 2012-01-20 Richard Guenther <rguenther@suse.de>
9612 PR tree-optimization/51903
9613 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
9614 when removing stmts.
9616 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9619 * config/arm/arm.c (arm_load_pic_register): Use
9620 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
9621 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
9622 (arm_pic_static_addr): Likewise.
9623 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
9624 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
9625 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
9626 (pic_load_addr_unified): New.
9628 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
9631 * function.c (instantiate_virtual_regs_in_insn): Use
9632 delete_insn_and_edges when removing a wrong asm insn.
9634 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
9636 PR rtl-optimization/40761
9637 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
9638 Add new member loop_num.
9639 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
9640 (ira_build): Remove the parameter.
9642 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
9643 (ira.c): Do not build CFG loops for one region allocation. Remove
9644 argument from ira_build call.
9646 * ira-build.c (init_loop_tree_node): New function.
9647 (create_loop_tree_nodes): Use it. Separate the case when CFG
9648 loops are not built.
9649 (more_one_region_p): Check current_loops.
9650 (finish_loop_tree_nodes): Separate the case when CFG loops are not
9652 (add_loop_to_tree): Process loop equal to NULL too.
9653 (form_loop_tree): Separate the case when CFG loops are not built.
9654 Use explicitly number for the root.
9655 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
9657 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
9658 instead of loop->num.
9659 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
9660 (mark_all_loops_for_removal): Ditto.
9661 (remove_unnecessary_regions): Separate the case when CFG loops
9663 (ira_build): Remove the parameter. Use explicit number of regions
9664 when CFG loops are not built.
9666 * ira-color.c (print_loop_title): Separate the case for the root node.
9667 Use loop_num instead of loop->num.
9668 (move_spill_restore): Use loop_num instead of loop->num.
9670 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
9671 (change_loop): Ditto.
9672 (change_loop): Use loop_num instead of loop->num.
9674 * ira-lives.c (process_bb_node_lives): Ditto.
9676 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
9678 * ira-conflicts.c (print_allocno_conflicts): Ditto.
9680 2012-01-19 Jakub Jelinek <jakub@redhat.com>
9683 * tree-mudflap.c (mf_artificial): New function.
9684 (execute_mudflap_function_ops, execute_mudflap_function_decls,
9685 mx_register_decls, mudflap_enqueue_decl): Use it.
9688 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
9689 numbers in the insn pattern.
9691 2012-01-19 Michael Matz <matz@suse.de>
9693 PR tree-optimization/46590
9694 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
9695 use it in remembering which conflicts we already created.
9696 (add_scope_conflicts): Adjust call to above, (de)allocate helper
9699 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
9702 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
9703 (merge_and_complain): Same.
9705 2012-01-19 Jakub Jelinek <jakub@redhat.com>
9708 * config/initfini-array.h: Guard content of the header
9709 with #ifdef HAVE_INITFINI_ARRAY.
9710 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
9711 Add initfini-array.h to tm_file here.
9712 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
9713 * config.gcc: Don't add initfini-array.h to tm_file here.
9714 * configure: Regenerated.
9716 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
9718 PR rtl-optimization/51505
9719 * df-problems.c (df_kill_notes): New parameter live. Update comment.
9720 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
9721 (df_note_bb_compute): Update the call to df_kill_notes.
9723 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
9725 * trans-mem.c (requires_barrier): Remove call to is_global_var.
9727 2012-01-18 Richard Guenther <rguenther@suse.de>
9729 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
9730 of conversions to void *.
9732 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9733 Richard Sandiford <rdsandiford@googlemail.com>
9737 * optabs.h (simplify_expand_binop): Declare.
9738 * optabs.c (simplify_expand_binop): Make global.
9739 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
9740 endian targets if the source cannot be exactly covered by word
9743 2012-01-17 Jakub Jelinek <jakub@redhat.com>
9746 * hard-reg-set.h (struct hard_reg_set_container): New type.
9747 * target.h (struct hard_reg_set_container): Forward declare.
9748 * target.def (set_up_by_prologue): New target hook.
9749 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
9750 * doc/tm.texi: Regenerated.
9751 * function.c (thread_prologue_and_epilogue_insns): Change
9752 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
9753 Call targetm.set_up_by_prologue on it.
9754 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
9755 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
9757 2012-01-17 Nick Clifton <nickc@redhat.com>
9759 * config/rx/rx.c (rx_can_use_simple_return): New function.
9760 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
9761 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
9763 2012-01-17 Richard Guenther <rguenther@suse.de>
9766 * expr.c (expand_assignment): Take address-space information
9767 from the address operand of MEM_REF and TARGET_MEM_REF.
9768 (expand_expr_real_1): Likewise.
9770 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9772 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
9773 reload dump is requested.
9775 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
9778 * trans-mem.c (requires_barrier): Call may_be_aliased.
9780 2012-01-17 Jakub Jelinek <jakub@redhat.com>
9782 PR tree-optimization/51877
9783 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
9784 call arguments and fndecls compare equal, instead return false if they
9785 don't. Return true only if lhs1 and lhs2 are either both NULL, or
9786 both SSA_NAMEs that are valueized the same, or they satisfy
9789 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9791 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
9793 * configure: Regenerate.
9795 2012-01-16 Jan Hubicka <jh@suse.cz>
9799 * convert.c (convert_to_integer): Use fold_convert for
9800 converting an INTEGER_CST to integer type.
9802 2012-01-16 Jason Merrill <jason@redhat.com>
9805 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
9807 2012-01-16 Jakub Jelinek <jakub@redhat.com>
9810 * config/s390/s390.c (s390_chunkify_start): Don't skip
9811 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
9812 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
9813 If insn is followed by NOTE_INSN_VAR_LOCATION or
9814 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
9815 Don't use location of note insns.
9817 PR tree-optimization/51865
9818 * tree-inline.c (tree_function_versioning): Call remap_decl
9819 on DECL_RESULT whenever it has VOID_TYPE_P type.
9821 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
9823 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
9824 for calls to locally-binding MIPS16 functions if only the return
9825 type uses float regs.
9827 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
9828 Richard Sandiford <rdsandiford@googlemail.com>
9830 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
9831 (SYMBOL_32_HIGH): Likewise.
9832 (mips_output_tls_reloc_directive): Declare.
9833 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
9834 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
9835 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
9836 (mips_lo_relocs, mips_hi_relocs): Make extern.
9837 (mips16_stub_function): Move up file.
9838 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
9839 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
9840 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
9841 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
9842 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
9843 (mips_get_tp): Add MIPS16 support.
9844 (mips_legitimize_tls_address): Remove MIPS16 sorry().
9845 Generalize DTPREL and TPREL handling.
9846 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
9847 Add MIPS16 TLS support.
9848 (mips_output_tls_reloc_directive): New function.
9849 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
9850 * config/mips/predicates.md (symbolic_operand_with_high)
9851 (tls_reloc_operand): New predicates.
9852 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
9853 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
9854 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
9855 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
9856 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
9857 (*tls_get_tp_mips16_call_<mode>): Likewise.
9859 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
9861 PR rtl-optimization/51821
9862 * recog.c (peep2_find_free_register): Determine clobbered registers
9865 2012-01-14 Denis Chertykov <chertykov@gmail.com>
9868 * config/avr/avr-protos.h: Revert change of 2012-01-09.
9869 * config/avr/avr.c: Likewise.
9870 * config/avr/avr.h: Likewise.
9872 2012-01-13 Ian Lance Taylor <iant@google.com>
9875 * tree.h (TYPE_QUALS): Add cast to int.
9876 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
9878 2012-01-13 Ian Lance Taylor <iant@google.com>
9880 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
9881 comparing param_index to VEC_length result.
9883 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
9885 * c-decl.c: Do not include tree-mudflap.h
9886 * tree-optimize.c: Likewise.
9887 * Makefile.in: Update dependencies.
9889 2012-01-13 Richard Guenther <rguenther@suse.de>
9892 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
9893 variable-sized result always use RSO.
9895 2012-01-12 DJ Delorie <dj@redhat.com>
9897 * cfgexpand.c (convert_debug_memory_address): Allow any valid
9898 pointer type, not just the default pointer type.
9900 2012-01-09 Richard Henderson <rth@redhat.com>
9901 Denis Chertykov <chertykov@gmail.com>
9904 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
9905 * config/avr/avr.c (avr_can_eliminate): Simplify.
9906 (avr_initial_elimination_offset): Likewise.
9907 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
9908 (expand_epilogue): Likewise.
9909 (avr_legitimize_address): Gut.
9910 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
9911 (avr_hard_regno_nregs): New.
9912 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
9913 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
9914 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
9915 add soft frame pointer.
9916 (CALL_USED_REGISTERS): Likewise.
9917 (REG_CLASS_CONTENTS): Likewise.
9918 (REGISTER_NAMES): Likewise.
9919 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
9920 (HARD_FRAME_POINTER_REGNUM): New.
9921 (FRAME_POINTER_REGNUM): Use soft frame pointer.
9922 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
9923 remove the HARD_FRAME_POINTER self-elimination.
9925 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
9928 * config/avr/avr.c (avr_encode_section_info): Test for absence of
9929 DECL_EXTERNAL when checking for initializers of progmem variables.
9931 2012-01-12 Ira Rosen <irar@il.ibm.com>
9933 PR tree-optimization/51799
9934 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
9935 that the last operation is a type demotion.
9937 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
9939 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
9940 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
9942 2012-01-11 Jakub Jelinek <jakub@redhat.com>
9945 * combine.c (distribute_notes): If i3 is a noreturn call,
9946 allow old_size to be equal to args_size and make sure the
9947 noreturn call gets REG_ARGS_SIZE note.
9948 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
9949 on noreturn calls even when the delta is 0.
9951 2012-01-11 Nathan Sidwell <nathan@acm.org>
9953 * gcov.c (STRING_SIZE): Remove.
9954 (generate_results): Erase annotations for source files with no
9955 coverage information.
9957 (output_lines): Use it.
9959 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
9961 * gimple.h (gimplify_body): Remove first argument.
9962 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
9963 pointer set here, instead just pass DATA to walk_tree.
9964 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
9965 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
9966 (unvisit_body): Likewise, but with unmark_visited.
9967 (gimplify_body): Remove BODY_P argument and adjust.
9968 (gimplify_function_tree): Adjust call to gimplify_body.
9969 * omp-low.c (finalize_task_copyfn): Likewise.
9971 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
9973 * tree.h (build_function_decl_skip_args): Add boolean parameter.
9974 (build_function_type_skip_args): Delete.
9975 * tree.c (build_function_type_skip_args): Make static and add
9976 SKIP_RETURN parameter. Fix thinko in the handling of variants.
9977 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
9978 pass it to build_function_type_skip_args.
9979 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
9980 (tree_function_versioning): Likewise.
9981 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
9982 build_function_decl_skip_args.
9983 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
9984 and pass it to build_function_decl_skip_args/tree_function_versioning.
9985 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
9986 * ipa-inline-transform.c (save_inline_function_body): Likewise.
9987 * trans-mem.c (ipa_tm_create_version): Likewise.
9988 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
9989 * tree-inline.c (declare_return_variable): Remove always-true test.
9990 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
9991 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
9992 * ipa-split.c (split_function): Skip the return value for the split
9993 part if it doesn't return.
9995 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9997 PR tree-optimization/49642
9998 * ipa-split.c (forbidden_dominators): New variable.
9999 (check_forbidden_calls): New function.
10000 (dominated_by_forbidden): Likewise.
10001 (consider_split): Check for forbidden dominators.
10002 (execute_split_functions): Initialize and free forbidden
10003 dominators info; call check_forbidden_calls.
10005 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10007 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
10009 2012-01-11 Nick Clifton <nickc@redhat.com>
10011 * config/rx/rx.md (return): Define pattern.
10013 2012-01-11 Richard Guenther <rguenther@suse.de>
10015 * doc/extend.texi (malloc attribute): Adjust according to
10018 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
10019 Patrick Marlier <patrick.marlier@gmail.com>
10021 PR middle-end/51516
10022 * trans-mem.c (get_cg_data): Traverse aliases if requested.
10023 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
10024 (ipa_tm_note_irrevocable): Same.
10025 (ipa_tm_scan_irr_block): Same.
10026 (ipa_tm_decrement_clone_counts): Same.
10027 (ipa_tm_scan_irr_function): Same.
10028 (ipa_tm_create_version_alias): Same.
10029 (ipa_tm_create_version): Same.
10030 (ipa_tm_transform_calls_redirect): Same.
10031 (ipa_tm_transform_calls): Same.
10032 (ipa_tm_transform_transaction): Same.
10033 (ipa_tm_execute): Same.
10035 2012-01-10 Richard Guenther <rguenther@suse.de>
10037 PR middle-end/51806
10038 * opts.c (common_handle_option): Handle -Werror.
10040 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
10042 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
10045 2012-01-10 Jason Merrill <jason@redhat.com>
10047 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
10050 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10052 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
10053 supports R_386_TLS_GD_PLT reloc.
10054 (gcc_cv_as_ix86_tlsldmplt): Check if linker
10055 supports R_386_TLS_LDM_PLT reloc.
10056 * configure: Regenerate.
10057 * config.in: Regenerate.
10059 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
10062 Extend __pgmx semantics to linearize memory.
10063 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
10064 determine if code comes inline or from libgcc.
10065 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
10066 (movmem_qi, movmem_qi): Set constraint #2 to "n".
10067 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
10068 (movmemx_qi, movmemx_hi): New insns.
10069 (xload_<mode>_libgcc): Rewrite to new insn condition.
10070 (xload_<mode>): Remove insns.
10071 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
10072 cases that don't satisfy avr_xload_libgcc_p().
10073 (avr_addr_space_convert): Allow converting in any direction.
10074 (avr_addr_space_subset_p): Return always true.
10075 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
10076 (avr_emit_movmemhi): Ditto.
10077 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
10078 (avr_out_movmem): Ditto.
10079 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
10080 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
10081 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
10082 (avr_encode_section_info): Encode 'progmem' in symbol flags.
10083 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
10085 2012-01-10 Richard Guenther <rguenther@suse.de>
10087 PR tree-optimization/50913
10088 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
10089 Require data-refs to be representable by Graphite with respect
10092 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
10094 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
10095 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
10097 2012-01-10 Tom de Vries <tom@codesourcery.com>
10099 PR rtl-optimization/51271
10100 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
10101 handling annulled branch.
10103 2012-01-10 Richard Henderson <rth@redhat.com>
10105 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
10106 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
10107 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
10108 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
10109 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
10110 arm_expand_vec_perm_const): New.
10111 * config/arm/arm-protos.h: Update.
10112 * config/arm/neon.md (UNSPEC_VCONCAT): New.
10113 (*neon_vswp<VDQX>): New.
10114 (neon_vcombine<VDX>): Use neon_split_vcombine.
10115 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
10116 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
10117 (vec_perm<VE>): New.
10119 2012-01-10 Richard Henderson <rth@redhat.com>
10121 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
10122 use it if reload_completed.
10123 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
10124 arm_output_asm_insn, arm_process_output_memory_barrier,
10125 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
10126 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
10127 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
10128 arm_process_output_sync_insn, arm_output_sync_insn,
10129 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
10130 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
10131 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
10132 (emit_unlikely_jump): New.
10133 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
10134 (arm_split_atomic_op): New.
10135 * config/arm/arm-protos.h: Update.
10136 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
10137 (struct arm_sync_generator): Remove.
10138 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
10139 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
10140 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
10141 (VUNSPEC_LL, VUNSPEC_SC): New.
10142 (sync_result, sync_memory, sync_required_value, sync_new_value,
10143 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
10144 (attr length): Don't use arm_sync_loop_insns.
10145 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
10146 (movsfcc, movdfcc): Likewise.
10147 * config/arm/constraints.md (Ua): New.
10148 * config/arm/prediates.md (mem_noofs_operand): New.
10149 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
10150 (sync_clobber, sync_t2_reqd): Remove.
10151 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
10152 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
10153 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
10154 (arm_sync_compare_and_swap<SIDI>): Remove.
10155 (arm_sync_compare_and_swap<NARROW>): Remove.
10156 (arm_sync_lock_test_and_set<SIDI>): Remove.
10157 (arm_sync_lock_test_and_set<NARROW>): Remove.
10158 (arm_sync_new_<syncop><SIDI>): Remove.
10159 (arm_sync_new_<syncop><NARROW>): Remove.
10160 (arm_sync_new_nand<SIDI>): Remove.
10161 (arm_sync_new_nand<NARROW>): Remove.
10162 (arm_sync_old_<syncop><SIDI>): Remove.
10163 (arm_sync_old_<syncop><NARROW>): Remove.
10164 (arm_sync_old_nand<SIDI>): Remove.
10165 (arm_sync_old_nand<NARROW>): Remove.
10166 (*memory_barrier): Merge arm_output_memory_barrier.
10167 (atomic_compare_and_swap<QHSD>): New.
10168 (atomic_compare_and_swap<NARROW>_1): New.
10169 (atomic_compare_and_swap<SIDI>_1): New.
10170 (atomic_exchange<QHSD>): New.
10171 (cas_cmp_operand, cas_cmp_str): New.
10172 (atomic_op_operand, atomic_op_str): New.
10173 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
10174 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
10175 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
10176 (arm_load_exclusive<NARROW>): New.
10177 (arm_load_exclusivesi, arm_load_exclusivedi): New.
10178 (arm_store_exclusive<QHSD>): New.
10180 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10182 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
10183 reload patterns if -mvsx-scalar-memory.
10185 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
10186 generated, even -mno-vsx-scalar-double was used.
10187 (vsx_xscvdpsp_scalar): Likewise.
10188 (vsx_xscvspdp_scalar2): Likewise.
10190 2012-01-09 Tom de Vries <tom@codesourcery.com>
10191 Andrew Pinski <apinski@cavium.com>
10194 * reorg.c (fill_slots_from_thread): Don't speculate
10195 frame-related insns.
10197 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
10199 * sched-int.h (bb_note): Move to...
10200 * basic-block.h: ...here.
10201 * haifa-sched.c (bb_note): Move to...
10202 * cfgrtl.c: ...here.
10203 * function.c (next_block_for_reg): New function.
10204 (move_insn_for_shrink_wrap): Likewise.
10205 (prepare_shrink_wrap): Rewrite to use the above.
10207 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
10209 * gimple.c (is_gimple_non_addressable): Remove.
10210 * gimple.h: Remove is_gimple_non_addressable.
10211 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
10212 is_gimple_non_addressable.
10213 * trans-mem.c (expand_assign_tm): Same.
10215 2012-01-09 Richard Guenther <rguenther@suse.de>
10217 PR tree-optimization/51775
10218 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
10219 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
10221 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10223 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
10225 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
10227 2012-01-09 Richard Guenther <rguenther@suse.de>
10229 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
10231 2012-01-08 Jan Hubicka <jh@suse.cz>
10233 PR tree-optimize/51680
10234 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
10235 on when known_vals needs to be computed; cleanup.
10237 2012-01-08 Jan Hubicka <jh@suse.cz>
10239 PR tree-optimize/51694
10240 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
10242 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
10244 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
10245 for -std=c++98 and -std=c++11 too.
10247 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
10249 * cfgloop.c (cancel_loop): Add free() of bbs array.
10251 2012-01-07 Jan Hubicka <jh@suse.cz>
10253 PR tree-optimization/51600
10254 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
10255 that benefits small functions.
10257 2012-01-07 Jan Hubicka <jh@suse.cz>
10259 * ipa-inline.c (want_inline_small_function_p): Fix formating.
10261 2012-01-07 Jan Hubicka <jh@suse.cz>
10263 PR tree-optimization/51680
10264 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
10265 whose inlining reduce unit size.
10267 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
10270 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
10271 Add canonical node to containing_mem chain after the non-canonical
10272 one, even if there weren't any locs to propagate.
10273 (remove_useless_values): Keep only canonical values.
10274 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
10275 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
10276 canonicalize mem_chain elements that are not discarded.
10278 2012-01-06 Jakub Jelinek <jakub@redhat.com>
10281 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
10282 before emitting functions.
10284 PR gcov-profile/50127
10285 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
10286 clear_aux_for_blocks.
10288 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
10291 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
10293 2012-01-06 Arnaud Charlet <charlet@adacore.com>
10295 * c-decl.c (ext_block): Moved up.
10296 (collect_all_refs, for_each_global_decl): Take ext_block into account.
10298 2012-01-06 Han Shen <shenhan@google.com>
10300 Translate built-in include paths for sysroot.
10301 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
10302 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
10304 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
10305 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
10307 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
10308 control whether sysroot should be prepended to gxx include dir.
10310 * configure: Regenerate.
10312 2012-01-06 Torvald Riegel <triegel@redhat.com>
10314 PR rtl-optimization/51771
10315 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
10316 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
10318 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
10320 PR tree-optimization/51315
10321 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
10322 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
10324 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
10327 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
10328 for shrp pattern. Correctly handle and fixup shift variable.
10329 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
10331 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10334 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
10335 note when !ACCUMULATE_OUTGOING_ARGS.
10337 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
10339 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
10341 (extract_range_from_unary_expr_1): Avoid useless computations.
10343 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10345 PR rtl-optimization/51767
10346 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
10347 of jump_block and add an extra edge for degenerated asm gotos.
10349 PR middle-end/51768
10350 * stmt.c (check_unique_operand_names): Don't ICE during error
10351 reporting if i is from labels chain.
10353 PR middle-end/44777
10354 * profile.c (branch_prob): Split bbs that have exit edge
10355 and need a fake entry edge too.
10357 2012-01-05 Jan Hubicka <jh@suse.cz>
10359 PR middle-end/49710
10360 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
10363 2012-01-05 Richard Guenther <rguenther@suse.de>
10366 * tree-streamer-out.c (write_ts_optimization): New function.
10367 (streamer_write_tree_body): Call it.
10368 * tree-streamer-in.c (lto_input_ts_optimization): New function.
10369 (streamer_read_tree_body): Call it.
10370 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
10372 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10374 PR middle-end/51761
10375 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
10376 * gimplify.c (gimplify_cleanup_point_expr): Save and set
10377 in_cleanup_point_expr before gimplify_stmt call and restore it
10379 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
10380 in_cleanup_point_expr is false.
10382 2012-01-05 Richard Guenther <rguenther@suse.de>
10384 PR middle-end/51764
10385 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
10387 * toplev.c (process_options): Reject combining mudflap and LTO.
10388 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
10390 2012-01-05 Richard Guenther <rguenther@suse.de>
10392 PR tree-optimization/51760
10393 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
10395 (bit_value_unop): Handle UNDEFINED operands.
10396 (bit_value_binop): Likewise.
10398 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
10400 * config/avr/avr.c (avr_replace_prefix): Remove.
10401 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
10402 (avr_asm_function_rodata_section): Ditto.
10403 (avr_asm_select_section): Ditto.
10405 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
10407 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
10410 2012-01-05 Jakub Jelinek <jakub@redhat.com>
10413 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
10414 calls that have any non-fake successor edges.
10417 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
10419 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
10421 PR tree-optimization/51624
10422 * tree-sra.c (build_ref_for_model): When replicating a chain of
10423 COMPONENT_REFs, stop as soon as the offset would become negative.
10425 2012-01-04 Jakub Jelinek <jakub@redhat.com>
10428 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
10429 in .debug_loc on the floor.
10431 2012-01-04 Andrew Pinski <apinski@cavium.com>
10433 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
10435 2012-01-04 Andrew Pinski <apinski@cavium.com>
10436 Adam Nemet <anemet@caviumnetworks.com>
10438 * config/mips/mips.md (size): Add SI and DI.
10439 (SIZE): New mode attribute.
10440 (U): New code attribute.
10441 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
10442 (mips_lbux_<mode>): Delete.
10443 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
10444 (mips_lhx): Use gen_mips_lhx_extsi.
10445 (mips_lhx_<mode>): Delete.
10446 (mips_lwx): Delete.
10447 (mips_l<size>x): New expand.
10448 (mips_lwx_<mode>): Delete.
10449 (mips_l<GPR:size>x_<P:mode>): New pattern.
10450 (*mips_lw<u>x_<P:mode>_ext): Likewise.
10451 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
10452 * config/mips/mips.c (mips_lx_address_p): New function.
10453 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
10454 (dsp64): New availability predicate.
10455 (mips_builtins): Add an entry for __builtin_mips_ldx.
10456 * config/mips/mips.h (ISA_HAS_LBX): New define.
10457 (ISA_HAS_LBUX): Likewise.
10458 (ISA_HAS_LHX): Likewise.
10459 (ISA_HAS_LHUX): Likewise.
10460 (ISA_HAS_LWX): Likewise.
10461 (ISA_HAS_LWUX): Likewise.
10462 (ISA_HAS_LDX): Likewise.
10463 * doc/extend.texi (__builtin_mips_ldx): Document.
10465 2012-01-04 Tristan Gingold <gingold@adacore.com>
10467 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
10468 when long pointers are used.
10469 * config.build (*-*-*vms*): Handle all OpenVMS targets.
10470 (alpha64-dec-*vms*, alpha*-dec-*vms*)
10471 (ia64-hp-*vms*): Remove.
10472 * config/vms/xm-vms64.h: Delete.
10474 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10476 PR middle-end/51472
10477 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
10479 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10481 * opts.c (finish_options): Remove duplicate sorry.
10483 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
10485 PR middle-end/51696
10486 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
10489 2012-01-04 Richard Guenther <rguenther@suse.de>
10491 PR middle-end/51750
10492 * tree.c (size_low_cst): New function.
10493 * tree.h (size_low_cst): Declare.
10494 * fold-const.c (fold_comparison): Use it to extract the low
10495 part of the POINTER_PLUS_EXPR offset.
10497 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
10499 Fix clearing ZERO_REG
10500 * config/avr/avr.md (cc): Add alternative "ldi".
10501 (movqi_insn): Use it in cc attribute.
10502 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
10503 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
10504 (output_reload_insisf): Use ZERO_REG to pre-clear register.
10506 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10508 * configure: Regenerate.
10510 2012-01-04 Richard Guenther <rguenther@suse.de>
10512 PR tree-optimization/49651
10513 * tree-ssa-structalias.c (type_can_have_subvars): New function.
10514 (var_can_have_subvars): Use it.
10515 (get_constraint_for_1): Only consider subfields if there can be any.
10517 2012-01-03 Jakub Jelinek <jakub@redhat.com>
10520 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
10521 to its new canonical_cselib_val and the cselib_val was in
10522 first_containing_mem chain, but the canonical_cselib_val was not,
10523 add the latter into the chain.
10524 (cselib_invalidate_mem): Compare canonical_cselib_val of
10525 addr_list chain elt with v.
10528 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
10529 dwarf2out_undef): Allocate e.info using ggc_strdup instead
10531 (output_macinfo_op): Don't ggc_strdup fd->filename.
10532 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
10533 then ggc_strdup it. Don't free inc->info or cur->info.
10534 (output_macinfo): Don't free ref->info or file->info.
10536 2012-01-03 Ira Rosen <irar@il.ibm.com>
10538 PR tree-optimization/51269
10539 * tree-vect-loop-manip.c (set_prologue_iterations): Make
10540 first_niters a pointer.
10541 (slpeel_tree_peel_loop_to_edge): Likewise.
10542 (vect_do_peeling_for_loop_bound): Update call to
10543 slpeel_tree_peel_loop_to_edge.
10544 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
10545 here. Remove it from the parameters list.
10546 (vect_do_peeling_for_alignment): Update calls and compute
10547 wide_prolog_niters.
10549 2012-01-03 Richard Guenther <rguenther@suse.de>
10551 PR tree-optimization/51070
10552 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
10553 Properly handle calls.
10555 2012-01-03 Richard Guenther <rguenther@suse.de>
10557 PR tree-optimization/51692
10558 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
10559 the LHS of allocation stmts.
10561 2012-01-03 Olivier Hainque <hainque@adacore.com>
10563 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
10565 2012-01-03 Olivier Hainque <hainque@adacore.com>
10567 * collect2.c (main): In AIX specific computations for vector
10568 insertions, use CONST_CAST2 to cast from char ** to const char **.
10570 2012-01-03 Richard Guenther <rguenther@suse.de>
10573 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
10574 the context of a limbo DIE when it does not already exist.
10576 2012-01-03 Jakub Jelinek <jakub@redhat.com>
10578 PR tree-optimization/51719
10579 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
10580 but direct call is, clear direct call's lhs and don't add fallthrough
10581 edge from dcall_bb to join_bb and PHIs.
10583 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10585 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
10586 the instructions emitted by the pattern.
10587 ("*TDC_insn_<mode>"): Add comment.
10589 2012-01-03 Richard Guenther <rguenther@suse.de>
10591 PR middle-end/51730
10592 * fold-const.c (fold_comparison): Properly canonicalize
10593 tree offset and HOST_WIDE_INT bit position.
10595 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
10597 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
10598 operands for extzv pattern.
10600 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10603 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
10606 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
10608 * doc/invoke.texi (-flto and related options): Copy-edit.
10610 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10612 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
10614 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10616 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
10619 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
10621 * expr.h (move_by_pieces_ninsns): Declare.
10622 * expr.c (move_by_pieces_ninsns): Make external.
10623 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
10624 (mips_store_by_pieces_p): Likewise.
10625 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
10626 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
10627 * config/mips/mips.c (mips_move_by_pieces_p): New function.
10628 (mips_store_by_pieces_p): Likewise.
10630 2012-01-02 Jakub Jelinek <jakub@redhat.com>
10632 * passes.c (register_one_dump_file): Free full_name.
10634 * reload1.c (reload): Don't allocate reg_max_ref_width here.
10635 (calculate_elim_costs_all_insns): Free offsets_at and
10636 offsets_known_at at the end and clear the pointers.
10638 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10640 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
10641 this option introduced in r180739.
10643 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10646 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
10647 (tmake_file target=avr): Add avr/t-multilib.
10649 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
10650 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
10651 * config/avr/genmultilib.awk: New file.
10652 * config/avr/t-multilib: New auto-generated file.
10653 * config/avr/multilib.h: New auto-generated file.
10654 * config/avr/t-avr (AVR_MCUS): New variable.
10655 (genopt.sh): Use it.
10656 (s-mlib): Depend on t-multilib.
10657 (t-multilib, multilib.h): New dependencies.
10658 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
10659 (MULTILIB_OPTIONS): Remove.
10660 (MULTILIB_MATCHES): Remove.
10661 (MULTILIB_DIRNAMES): Remove.
10662 (MULTILIB_EXCEPTIONS): Remove:
10663 * config/avr/genopt.sh: Don't use hard coded file name;
10664 pass AVR_MCUS from t-avr instead.
10666 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10668 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
10670 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
10672 Implement light-weight DImode support.
10673 * config/avr/avr-dimode.md: New file.
10674 * config/avr/avr.md: Include it.
10675 (adjust_len): Add plus64, compare64.
10676 (HIDI): Remove code iterator.
10677 (code_stdname): New code attribute.
10678 (rotx, rotsmode): Remove DI.
10679 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
10681 * config/avr/avr-protos.h (avr_have_dimode): New.
10682 (avr_out_plus64, avr_out_compare64): New.
10683 * config/avr/avr.c (avr_out_compare): Handle DImode.
10684 (avr_have_dimode): New variable definition and initialization.
10685 (avr_out_compare64, avr_out_plus64): New functions.
10686 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
10687 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
10688 (avr_compare_pattern): Skip DImode comparisons.
10690 2012-01-02 Revital Eres <revital.eres@linaro.org>
10692 * ddg.c (def_has_ccmode_p): New function.
10693 (add_cross_iteration_register_deps,
10694 create_ddg_dep_from_intra_loop_link): Call it.
10696 2012-01-02 Richard Guenther <rguenther@suse.de>
10699 * invoke.texi (fassociative-math): Remove spurious paranthesis.
10701 2012-01-01 Jakub Jelinek <jakub@redhat.com>
10703 * gcc.c (process_command): Update copyright notice dates.
10704 * gcov.c (print_version): Likewise.
10705 * gcov-dump.c (print_version): Likewise.
10706 * mips-tfile.c (main): Likewise.
10707 * mips-tdump.c (main): Likewise.
10709 2012-01-01 Ira Rosen <irar@il.ibm.com>
10711 PR tree-optimization/51704
10712 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
10713 a use is inside the basic block or loop before accessing its vect info.
10715 2012-01-01 Jan Hubicka <jhjh@suse.cz>
10717 PR rtl-optimization/51069
10718 * cfgloopmanip.c (remove_path): Removing path making irreducible
10719 region unconditional makes BB part of the region.
10721 2012-01-01 Jakub Jelinek <jakub@redhat.com>
10723 PR tree-optimization/51683
10724 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
10725 calls with side-effects.
10726 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
10728 Copyright (C) 2012 Free Software Foundation, Inc.
10730 Copying and distribution of this file, with or without modification,
10731 are permitted in any medium without royalty provided the copyright
10732 notice and this notice are preserved.